  :root {
    --bg: #f5f5f7;
    --surface: #ffffff;
    --text: #1d1d1f;
    --muted: #6e6e73;
    --faint: #86868b;
    --line: #d2d2d7;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --accent-text: #0066cc;
    --good: #1d8a3a;
    --warn: #b64400;
    --field: #ffffff;
    --shadow: 0 2px 6px rgba(0,0,0,.04), 0 12px 40px rgba(0,0,0,.08);
    --seg-bg: #e8e8ed;
    --seg-on: #ffffff;
  }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
      --bg: #000000;
      --surface: #1d1d1f;
      --text: #f5f5f7;
      --muted: #a1a1a6;
      --faint: #86868b;
      --line: #424245;
      --accent: #0071e3;
      --accent-hover: #0077ed;
      --accent-text: #2997ff;
      --good: #30d158;
      --warn: #ff9f0a;
      --field: #1d1d1f;
      --shadow: 0 0 0 1px rgba(255,255,255,.06), 0 12px 40px rgba(0,0,0,.5);
      --seg-bg: #2c2c2e;
      --seg-on: #48484a;
    }
  }

  * { box-sizing: border-box; }
  html { -webkit-text-size-adjust: 100%; }
  body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }
  button, input { font: inherit; color: inherit; }
  a { color: var(--accent-text); text-decoration: none; }
  a:hover { text-decoration: underline; }

  /* Nav */
  .nav {
    height: 48px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 0 max(20px, calc((100% - 980px) / 2));
    font-size: 14px; letter-spacing: -0.01em;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    position: sticky; top: 0; z-index: 10;
  }
  .nav .brand { font-weight: 600; color: var(--text); text-decoration: none; }
  .nav .brand span { color: var(--faint); font-weight: 400; }
  .nav-links { display: flex; gap: 20px; }
  .nav-links a { color: var(--muted); text-decoration: none; font-size: 13px; }
  .nav-links a:hover { color: var(--text); }
  @media (max-width: 420px) { .nav-links { gap: 12px; } }

  main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(56px, 12vh, 120px) 20px 64px;
    text-align: center;
  }

  .eyebrow {
    font-size: 17px; font-weight: 600; color: var(--warn);
    margin: 0 0 10px;
    background: linear-gradient(90deg, #0071e3, #a24bf0 55%, #ff2d6f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }

  h1 {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(40px, 8vw, 80px);
    line-height: 1.05;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0;
  }
  /* Same line box as the rest of the h1, so the word shares its baseline and size.
     clip-path (not overflow) lets descenders like the "p" in iPad show. */
  .rotator {
    display: inline-block;
    position: relative;
    vertical-align: top;
    height: 1.05em;
    line-height: inherit;
    clip-path: inset(-0.1em -0.1em -0.3em -0.1em);
  }
  /* Fixed-width slot, words right-aligned against "worth?" so the line never shifts. */
  .rotator > span {
    position: absolute;
    right: 0; top: 0;
    white-space: nowrap;
    padding-right: .02em;
    background: linear-gradient(90deg, #0071e3, #a24bf0 55%, #ff2d6f);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    transform: translateY(110%);
    opacity: 0;
    transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .6s;
  }
  .rotator > span.on { transform: none; opacity: 1; }
  .rotator > span.off { transform: translateY(-110%); opacity: 0; }

  .sub {
    font-size: clamp(19px, 2.4vw, 24px);
    line-height: 1.35;
    color: var(--muted);
    max-width: 560px;
    margin: 20px auto 44px;
    font-weight: 400;
  }

  /* Search */
  form.search {
    position: relative;
    max-width: 580px;
    margin: 0 auto;
  }
  .search input {
    width: 100%;
    height: 64px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--field);
    padding: 0 76px 0 28px;
    font-size: 21px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    outline: none;
    box-shadow: var(--shadow);
    transition: border-color .2s, box-shadow .2s;
  }
  .search input::placeholder { text-transform: none; letter-spacing: -0.01em; color: var(--faint); }
  .search input:focus { border-color: var(--accent); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent); }
  .search button {
    position: absolute; right: 8px; top: 8px;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 0;
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    display: grid; place-items: center;
    transition: background .2s, transform .15s;
  }
  .search button:hover { background: var(--accent-hover); }
  .search button:active { transform: scale(.94); }
  .search button:disabled { cursor: default; }
  .search button svg { width: 22px; height: 22px; }
  .spinner {
    width: 22px; height: 22px; border-radius: 50%;
    border: 2.5px solid rgba(255,255,255,.35); border-top-color: #fff;
    animation: spin .8s linear infinite;
  }
  @keyframes spin { to { transform: rotate(360deg); } }

  .proof {
    list-style: none; padding: 0; margin: -20px auto 36px;
    display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px;
    font-size: 15px; color: var(--text); font-weight: 500;
  }
  .proof li { display: inline-flex; align-items: center; gap: 7px; }
  .proof svg, .verified svg { width: 17px; height: 17px; color: var(--good); flex: none; }
  .verified {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; color: var(--good);
    background: color-mix(in srgb, var(--good) 10%, transparent);
    padding: 5px 12px 5px 8px; border-radius: 999px;
  }
  .card-top { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
  .how { max-width: 580px; margin: 56px auto 0; text-align: left; }
  .how h2 { font-size: 21px; letter-spacing: -0.02em; margin: 0 0 14px; text-align: center; }
  .how ol { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
  .how li {
    counter-increment: step; position: relative; padding: 16px 18px 16px 58px;
    background: var(--surface); border-radius: 18px; font-size: 15px; line-height: 1.45; color: var(--muted);
  }
  .how li::before {
    content: counter(step); position: absolute; left: 16px; top: 14px;
    width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
    background: var(--text); color: var(--bg); font-weight: 700; font-size: 14px;
  }
  .how strong { color: var(--text); }
  .region { margin-top: 18px; font-size: 14px; color: var(--muted); display: flex; gap: 6px; justify-content: center; align-items: center; }
  .region button {
    border: 1px solid var(--line); background: transparent; border-radius: 999px;
    padding: 3px 12px; font-size: 13px; font-weight: 600; cursor: pointer; color: var(--muted);
    transition: background .2s, color .2s, border-color .2s;
  }
  .region button[aria-checked="true"] { background: var(--text); border-color: var(--text); color: var(--bg); }
  .status {
    min-height: 24px;
    margin-top: 16px;
    font-size: 15px;
    color: var(--muted);
  }

  /* Help */
  details.help { margin-top: 4px; }
  details.help summary {
    list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
    color: var(--accent-text); font-size: 15px;
  }
  details.help summary::-webkit-details-marker { display: none; }
  details.help summary::after { content: "+"; font-size: 18px; line-height: 1; transition: transform .25s; }
  details.help[open] summary::after { transform: rotate(45deg); }
  .help-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
    margin: 20px auto 0; max-width: 640px; text-align: left;
  }
  .help-grid div { background: var(--surface); border-radius: 18px; padding: 18px; font-size: 14px; line-height: 1.45; color: var(--muted); }
  .help-grid strong { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }

  /* Result */
  .card {
    margin: 44px auto 0;
    max-width: 580px;
    background: var(--surface);
    border-radius: 28px;
    padding: 40px 32px 32px;
    box-shadow: var(--shadow);
    text-align: center;
    animation: rise .6s cubic-bezier(.2,.8,.2,1) both;
  }
  @keyframes rise { from { opacity: 0; transform: translateY(24px) scale(.98); } to { opacity: 1; transform: none; } }
  .chip {
    display: inline-block;
    font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
    color: var(--muted); background: var(--seg-bg);
    padding: 5px 12px; border-radius: 999px;
  }
  .device { font-size: 21px; font-weight: 600; line-height: 1.3; margin: 14px 0 0; letter-spacing: -0.02em; }
  .value {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: clamp(72px, 16vw, 112px);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 1;
    margin: 22px 0 6px;
    font-variant-numeric: tabular-nums;
  }
  .value.zero { font-size: clamp(40px, 9vw, 56px); letter-spacing: -0.03em; }
  .caption { font-size: 15px; color: var(--muted); margin: 0; }

  .seg {
    display: inline-grid; grid-template-columns: 1fr 1fr;
    background: var(--seg-bg); border-radius: 12px; padding: 3px;
    margin: 28px 0 0; min-width: 260px; position: relative;
  }
  .seg button {
    border: 0; background: transparent; padding: 9px 18px; border-radius: 9px;
    font-size: 15px; font-weight: 500; cursor: pointer; position: relative; z-index: 1;
    transition: color .2s;
  }
  .seg .thumb {
    position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
    background: var(--seg-on); border-radius: 9px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 3px 8px rgba(0,0,0,.06);
    transition: transform .35s cubic-bezier(.2,.8,.2,1);
  }
  .seg[data-v="damaged"] .thumb { transform: translateX(100%); }

  .quiz { margin-top: 26px; text-align: left; border-top: 1px solid var(--line); padding-top: 24px; }
  .quiz .q { font-size: 19px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.02em; }
  .quiz .info { font-size: 14px; color: var(--muted); line-height: 1.45; margin: 0 0 18px; }
  .quiz .info p { margin: 0 0 6px; }
  .quiz .info ul { margin: 0; padding-left: 20px; }
  .quiz .info li { margin: 2px 0; }
  .card.asking .value, .card.asking .caption { opacity: .25; filter: blur(2px); transition: opacity .3s, filter .3s; }
  .quiz .step { font-size: 12px; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 8px; font-weight: 600; }
  .opts { display: flex; gap: 10px; }
  .opts button {
    flex: 1; border: 1px solid var(--line); background: transparent; border-radius: 14px;
    padding: 14px; font-size: 17px; cursor: pointer; transition: border-color .2s, background .2s;
  }
  .opts button:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); }

  .actions { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; margin-top: 30px; font-size: 16px; }
  .actions button { border: 0; background: none; color: var(--accent-text); cursor: pointer; padding: 0; }
  .actions button:hover { text-decoration: underline; }

  .card.error .icon { font-size: 40px; line-height: 1; }
  .card.error h2 { font-size: 24px; margin: 14px 0 8px; letter-spacing: -0.02em; }
  .card.error p { color: var(--muted); font-size: 17px; line-height: 1.45; margin: 0; }


  .cta {
    position: relative; overflow: hidden;
    margin: 20px auto 0; max-width: 580px; text-align: left;
    padding: 34px 32px 28px; border-radius: 28px; color: #fff;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(162,75,240,.55), transparent 55%),
      radial-gradient(90% 80% at 0% 100%, rgba(0,113,227,.55), transparent 60%),
      #111114;
    box-shadow: 0 20px 50px rgba(0,0,0,.18);
    animation: rise .6s cubic-bezier(.2,.8,.2,1) .15s both;
  }
  .cta-tag {
    display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff;
  }
  .cta h2 { font-size: clamp(24px, 4.2vw, 30px); line-height: 1.15; letter-spacing: -0.025em; margin: 14px 0 8px; }
  .cta-lead { font-size: 17px; line-height: 1.45; color: rgba(255,255,255,.78); margin: 0 0 18px; }
  .cta-points { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 9px; }
  .cta-points li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: rgba(255,255,255,.92); }
  .cta-points li::before {
    content: ""; flex: none; width: 18px; height: 18px; border-radius: 50%;
    background: #30d158 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.8 10.4l2.7 2.7 5.7-6' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
  }
  .cta-button {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 17px 22px; border-radius: 16px;
    background: #fff; color: #111114 !important; font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
    text-decoration: none !important; transition: transform .15s, box-shadow .2s;
    box-shadow: 0 6px 20px rgba(0,0,0,.25);
  }
  .cta-button:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.3); }
  .cta-button:active { transform: scale(.98); }
  .cta-button svg { width: 20px; height: 20px; }
  .cta-note { font-size: 13px; color: rgba(255,255,255,.6); margin: 14px 0 0; line-height: 1.45; text-align: center; }
  .ad-slot { max-width: 580px; margin: 20px auto 0; min-height: 90px; }
  @media (max-width: 640px) { .cta { padding: 28px 20px 22px; border-radius: 24px; } }

  footer {
    text-align: center; font-size: 12px; line-height: 1.6; color: var(--faint);
    padding: 24px 20px 32px; max-width: 680px; margin: 0 auto;
    border-top: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  }

  @media (max-width: 640px) {
    .help-grid { grid-template-columns: 1fr; }
    .search input { height: 58px; font-size: 18px; padding-left: 22px; }
    .search button { width: 42px; height: 42px; }
    .card { padding: 32px 20px 26px; border-radius: 24px; }
  }
  @media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
  }
  [hidden] { display: none !important; }

  /* ---------- Model & hub pages ---------- */
  .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  main.doc { max-width: 760px; padding-top: 32px; text-align: left; min-width: 0; }
  .table-wrap { max-width: 100%; }
  .crumbs { font-size: 13px; color: var(--faint); margin-bottom: 14px; }
  .crumbs a { color: var(--muted); }
  main.doc h1 { font-size: clamp(34px, 6vw, 56px); letter-spacing: -0.035em; line-height: 1.05; }
  .doc-lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.45; color: var(--muted); margin: 18px 0 12px; }
  .doc-lead strong { color: var(--text); }
  .doc-meta { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 0 0 26px; }
  .doc-meta .verified { padding-left: 12px; }
  form.search.doc-search { margin: 0 0 30px; max-width: none; }
  .doc-search input { height: 58px; font-size: 18px; }
  .doc-search input::placeholder { font-size: 17px; }
  .doc-search button { width: 42px; height: 42px; }
  .table-wrap { background: var(--surface); border-radius: 22px; box-shadow: var(--shadow); overflow-x: auto; }
  table.values { width: 100%; border-collapse: collapse; font-size: 15px; }
  table.values th, table.values td { padding: 13px 18px; text-align: left; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  table.values tbody tr:last-child th, table.values tbody tr:last-child td { border-bottom: 0; }
  table.values thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--faint); font-weight: 600; }
  table.values tbody th { font-weight: 500; }
  table.values td { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
  table.values td:nth-child(2), table.values td:nth-child(3), table.values thead th:nth-child(2), table.values thead th:nth-child(3) { text-align: right; }
  table.values.hub tbody th a { color: var(--text); font-weight: 600; }
  table.values.hub tbody th a:hover { color: var(--accent-text); }
  .table-note { font-size: 13px; color: var(--faint); margin: 12px 4px 0; line-height: 1.5; }
  main.doc .cta { margin-top: 32px; max-width: none; }
  .faq { margin-top: 48px; }
  .faq h2, .related h2 { font-size: 24px; letter-spacing: -0.02em; margin: 0 0 14px; }
  .faq details { background: var(--surface); border-radius: 16px; margin-bottom: 10px; padding: 0 20px; }
  .faq summary { cursor: pointer; font-weight: 600; font-size: 16px; padding: 17px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
  .faq summary::-webkit-details-marker { display: none; }
  .faq summary::after { content: "+"; color: var(--faint); font-size: 20px; line-height: 1; transition: transform .25s; }
  .faq details[open] summary::after { transform: rotate(45deg); }
  .faq details p { margin: 0 0 18px; color: var(--muted); line-height: 1.55; font-size: 15px; }
  .related { margin-top: 44px; }
  .related ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
  .related li a { display: inline-block; background: var(--surface); border-radius: 999px; padding: 8px 14px; font-size: 14px; color: var(--text); }
  .related li a:hover { color: var(--accent-text); text-decoration: none; }

  /* ---------- Home: browse by model ---------- */
  .browse { max-width: 760px; margin: 64px auto 0; text-align: left; }
  .browse h2 { font-size: 28px; letter-spacing: -0.025em; text-align: center; margin: 0 0 6px; }
  .browse-lead { text-align: center; color: var(--muted); margin: 0 0 22px; }
  .browse-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .browse-col { background: var(--surface); border-radius: 20px; padding: 20px 22px; }
  .browse-col h3 { margin: 0 0 10px; font-size: 18px; }
  .browse-col h3 a { color: var(--text); }
  .browse-col ul { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 7px; }
  .browse-col li a { color: var(--muted); font-size: 14px; }
  .browse-col li a:hover { color: var(--accent-text); }
  .browse-col .more { font-size: 14px; font-weight: 600; }
  @media (max-width: 640px) {
    .browse-grid { grid-template-columns: 1fr; }
    table.values th, table.values td { padding: 12px 12px; font-size: 14px; }
  }
