  :root {
    --bg: #fcfbf9; --surface: #ffffff; --surface-2: #f6f4f0;
    --ink: #1c1b18; --ink-2: #4a4842; --muted: #75736b;
    --line: #e7e3da; --line-2: #d6d1c6;
    --accent: #2f5c8f; --accent-hover: #264b76; --accent-ink: #ffffff;
    --accent-soft: #eaf0f7; --ok: #1f6b46; --err: #a52c22;
    --shadow: 0 1px 2px rgba(28,27,24,.05), 0 8px 24px -12px rgba(28,27,24,.18);
    --shadow-lg: 0 2px 4px rgba(28,27,24,.05), 0 24px 56px -20px rgba(28,27,24,.24);
    --radius: 14px; --radius-sm: 9px;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter,
            "Helvetica Neue", Arial, sans-serif;
    --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
             Georgia, serif;
  }
  [data-theme="dark"] {
    --bg: #131311; --surface: #1b1b19; --surface-2: #232320;
    --ink: #eeece6; --ink-2: #c3c0b8; --muted: #918e85;
    --line: #2e2e2a; --line-2: #3b3a35;
    --accent: #82ade0; --accent-hover: #9cbfe8; --accent-ink: #10161f;
    --accent-soft: #1e2733; --ok: #6cc294; --err: #f08b80;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
    --shadow-lg: 0 2px 4px rgba(0,0,0,.4), 0 24px 56px -20px rgba(0,0,0,.7);
  }

  * { box-sizing: border-box; }
  [hidden] { display: none !important; }
  html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
  body {
    margin: 0; background: var(--bg); color: var(--ink);
    font-family: var(--sans); font-size: 16px; line-height: 1.6;
    -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  }
  ::selection { background: var(--accent-soft); }
  a { color: var(--accent); }
  .wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
  .narrow { max-width: 720px; }

  /* ---------- header ---------- */
  header.site {
    border-bottom: 1px solid var(--line); background: var(--bg);
    position: sticky; top: 0; z-index: 20;
    backdrop-filter: saturate(1.4) blur(8px);
  }
  .bar { display: flex; align-items: center; gap: 16px; height: 62px; }
  .brand {
    display: flex; align-items: center; gap: 9px; font-weight: 640;
    letter-spacing: -.015em; color: var(--ink); text-decoration: none;
    font-size: 16.5px;
  }
  .brand svg { display: block; }
  .spacer { margin-left: auto; }
  .ghost {
    display: inline-flex; align-items: center; gap: 7px; height: 36px;
    padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px;
    background: var(--surface); color: var(--ink-2); font: inherit;
    font-size: 14px; cursor: pointer; text-decoration: none;
  }
  .ghost:hover { color: var(--ink); border-color: var(--muted); }
  .icon-sun, .icon-moon { width: 16px; height: 16px; }
  #avatar { border-radius: 50%; display: block; }
  .acct-wrap { position: relative; }
  .credit-chip { display: inline-flex; align-items: center; gap: 6px; }
  .credit-chip b { font-weight: 660; }
  .credit-menu {
    position: absolute; right: 0; top: calc(100% + 7px); min-width: 232px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; z-index: 30;
  }
  .credit-menu .head {
    padding: 8px 10px 9px; font-size: 13px; color: var(--muted);
    border-bottom: 1px solid var(--line); margin-bottom: 5px;
  }
  .credit-menu button {
    display: flex; width: 100%; align-items: baseline; gap: 8px;
    text-align: left; background: none; border: none; font: inherit;
    font-size: 14.5px; color: var(--ink); padding: 9px 10px;
    border-radius: 7px; cursor: pointer;
  }
  .credit-menu button:hover { background: var(--surface-2); }
  .credit-menu button .amt { margin-left: auto; color: var(--muted); font-size: 13.5px; }
  .acct-menu {
    position: absolute; right: 0; top: calc(100% + 7px); min-width: 208px;
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
    padding: 6px; z-index: 30;
  }
  .acct-email {
    padding: 8px 10px 9px; font-size: 13px; color: var(--muted);
    border-bottom: 1px solid var(--line); margin-bottom: 5px;
    word-break: break-all;
  }
  .acct-menu a, .acct-menu button {
    display: block; width: 100%; text-align: left; background: none;
    border: none; font: inherit; font-size: 14.5px; color: var(--ink);
    padding: 9px 10px; border-radius: 7px; cursor: pointer;
    text-decoration: none;
  }
  .acct-menu a:hover, .acct-menu button:hover { background: var(--surface-2); }
  .acct-menu button { color: var(--err); }
  .receipt {
    font-size: 12.5px; color: var(--muted); margin-top: 3px;
  }
  .gate {
    margin-top: 14px; padding: 16px; border: 1px solid var(--line);
    background: var(--surface-2); border-radius: var(--radius-sm);
    display: none;
  }
  .gate.show { display: block; }
  .gate p { margin: 0 0 13px; font-size: 14.5px; color: var(--ink-2); }
  .gate strong { color: var(--ink); display: block; margin-bottom: 3px; }

  /* Google's brand guidance: white surface, their mark, unmodified. */
  .gbtn {
    display: inline-flex; align-items: center; gap: 11px;
    background: #fff; color: #1f1f1f; border: 1px solid #dadce0;
    border-radius: 9px; padding: 11px 20px 11px 14px; font-weight: 600;
    font-size: 14.5px; text-decoration: none; cursor: pointer;
    font-family: var(--sans); transition: box-shadow .15s, background .15s;
  }
  .gbtn:hover { background: #f8f9fa; box-shadow: 0 1px 3px rgba(60,64,67,.28); }
  .gbtn svg { width: 18px; height: 18px; flex-shrink: 0; }
  [data-theme="dark"] .gbtn {
    background: #131314; color: #e3e3e3; border-color: #47484a;
  }
  [data-theme="dark"] .gbtn:hover { background: #1e1f20; }

  .pay-btn {
    display: inline-flex; align-items: center; gap: 9px; border: none;
    background: var(--accent); color: var(--accent-ink); font: inherit;
    font-weight: 620; font-size: 14.5px; padding: 12px 20px;
    border-radius: var(--radius-sm); cursor: pointer; text-decoration: none;
  }
  .pay-btn:hover { background: var(--accent-hover); }
  .gate-note { margin: 11px 0 0; font-size: 13px; color: var(--muted); }
  [data-theme="light"] .icon-sun { display: none; }
  [data-theme="dark"] .icon-moon { display: none; }

  /* ---------- hero ---------- */
  .hero { padding: 68px 0 8px; text-align: center; }
  h1 {
    font-family: var(--serif); font-weight: 600; letter-spacing: -.02em;
    font-size: clamp(34px, 5.4vw, 52px); line-height: 1.1;
    margin: 0 0 16px; text-wrap: balance;
  }
  .lede {
    font-size: clamp(16.5px, 2vw, 19px); color: var(--ink-2);
    margin: 0 auto; max-width: 620px; text-wrap: balance;
  }
  .trust {
    display: flex; gap: 8px 22px; justify-content: center; flex-wrap: wrap;
    margin-top: 22px; color: var(--muted); font-size: 14px;
  }
  .trust span { display: inline-flex; align-items: center; gap: 7px; }
  .trust svg { width: 15px; height: 15px; color: var(--ok); flex-shrink: 0; }

  /* ---------- app card ---------- */
  .app { margin: 34px auto 0; max-width: 720px; }
  .card {
    background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
  }
  #drop {
    border: 1.5px dashed var(--line-2); border-radius: var(--radius-sm);
    padding: 42px 20px; text-align: center; cursor: pointer;
    transition: border-color .14s, background .14s;
  }
  #drop:hover, #drop.hot { border-color: var(--accent); background: var(--accent-soft); }
  #drop.has-file { padding: 18px; text-align: left; }
  .drop-icon { width: 30px; height: 30px; color: var(--muted); margin-bottom: 10px; }
  .drop-title { font-weight: 600; margin-bottom: 3px; }
  .drop-hint { color: var(--muted); font-size: 13.5px; }
  .file-row { display: flex; align-items: center; gap: 13px; }
  .file-badge {
    width: 38px; height: 38px; border-radius: 8px; background: var(--accent-soft);
    color: var(--accent); display: grid; place-items: center; flex-shrink: 0;
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
  }
  .file-name { font-weight: 600; word-break: break-all; line-height: 1.35; }
  .file-meta { color: var(--muted); font-size: 13px; }
  .clear {
    margin-left: auto; border: 1px solid var(--line-2); background: transparent;
    color: var(--muted); border-radius: 8px; padding: 6px 11px; cursor: pointer;
    font: inherit; font-size: 13px; flex-shrink: 0;
  }
  .clear:hover { color: var(--ink); border-color: var(--muted); }

  .controls { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
  .field { flex: 1; min-width: 200px; position: relative; }
  select {
    width: 100%; appearance: none; font: inherit; font-size: 15px;
    padding: 12px 38px 12px 14px; border: 1px solid var(--line-2);
    border-radius: var(--radius-sm); background: var(--surface);
    color: var(--ink); cursor: pointer;
  }
  select:focus-visible, button:focus-visible, a:focus-visible, #drop:focus-visible {
    outline: 2px solid var(--accent); outline-offset: 2px;
  }
  .field::after {
    content: ""; position: absolute; right: 15px; top: 50%; width: 8px; height: 8px;
    border-right: 1.8px solid var(--muted); border-bottom: 1.8px solid var(--muted);
    transform: translateY(-70%) rotate(45deg); pointer-events: none;
  }
  button.go {
    font: inherit; font-size: 15px; font-weight: 620; padding: 12px 24px;
    border: 1px solid var(--accent); border-radius: var(--radius-sm);
    background: var(--accent); color: var(--accent-ink); cursor: pointer;
    min-width: 150px; transition: background .14s;
  }
  button.go:hover:not(:disabled) { background: var(--accent-hover); }
  button.go:disabled { opacity: .45; cursor: not-allowed; }

  .status { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); display: none; }
  .status.show { display: block; }
  .status.err { color: var(--err); }
  .spinner {
    display: inline-block; width: 13px; height: 13px; margin-right: 8px;
    border: 2px solid var(--line-2); border-top-color: var(--accent);
    border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px;
  }
  @keyframes spin { to { transform: rotate(360deg); } }
  .bar-track {
    height: 5px; background: var(--surface-2); border-radius: 3px;
    overflow: hidden; margin-top: 12px; display: none;
  }
  .bar-track.show { display: block; }
  .bar-track > i {
    display: block; height: 100%; width: 0%; background: var(--accent);
    border-radius: 3px; transition: width .3s ease;
  }

  /* ---------- result ---------- */
  #result { display: none; margin-top: 20px; }
  #result.show { display: block; animation: rise .3s ease both; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } }
  .result-head {
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
    padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line);
  }
  .result-stats { color: var(--muted); font-size: 13.5px; }
  .result-stats b { color: var(--ok); font-weight: 640; }
  a.dl {
    margin-left: auto; background: var(--accent); color: var(--accent-ink);
    text-decoration: none; padding: 10px 18px; border-radius: var(--radius-sm);
    font-weight: 620; font-size: 14.5px; display: inline-flex; gap: 8px;
    align-items: center;
  }
  a.dl:hover { background: var(--accent-hover); }
  a.dl svg { width: 15px; height: 15px; }
  .compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .pane h3 {
    font-size: 11.5px; text-transform: uppercase; letter-spacing: .075em;
    color: var(--muted); margin: 0 0 8px; font-weight: 660;
  }
  .pane img {
    width: 100%; display: block; border: 1px solid var(--line);
    border-radius: 8px; background: #fff;
  }

  /* ---------- sections ---------- */
  section { padding: 62px 0; border-top: 1px solid var(--line); margin-top: 62px; }
  h2 {
    font-family: var(--serif); font-weight: 600; letter-spacing: -.015em;
    font-size: clamp(24px, 3.2vw, 31px); margin: 0 0 12px; text-wrap: balance;
  }
  .section-lede { color: var(--ink-2); margin: 0 0 34px; max-width: 620px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .step-n {
    width: 30px; height: 30px; border-radius: 50%; background: var(--accent-soft);
    color: var(--accent); display: grid; place-items: center; font-weight: 700;
    font-size: 14px; margin-bottom: 12px;
  }
  .step h3 { font-size: 16.5px; margin: 0 0 5px; font-weight: 640; }
  .step p { margin: 0; color: var(--ink-2); font-size: 15px; }

  /* ---------- documents ---------- */
  .doc-list { display: flex; flex-direction: column; gap: 8px; }
  .doc {
    display: flex; align-items: center; gap: 14px; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
  }
  .doc-name { font-weight: 600; word-break: break-all; }
  .doc-meta { color: var(--muted); font-size: 13px; }
  .doc-get {
    margin-left: auto; flex-shrink: 0; text-decoration: none; font-weight: 620;
    font: inherit; font-size: 14px; font-weight: 620; padding: 8px 14px;
    border-radius: 8px; border: 1px solid var(--line-2);
    color: var(--ink); background: var(--surface); cursor: pointer;
  }
  .doc-get:hover { border-color: var(--accent); color: var(--accent); }
  .doc-unpaid { color: var(--muted); font-size: 13px; margin-left: auto; }
  .doc-empty { color: var(--muted); }

  /* ---------- proof ---------- */
  .proof { margin: 0; }
  .proof-pair {
    display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px;
    align-items: center;
  }
  .proof-shot { display: flex; flex-direction: column; gap: 9px; }
  .proof-shot img {
    width: 100%; height: auto; display: block; border: 1px solid var(--line);
    border-radius: 10px; box-shadow: var(--shadow); background: #fff;
  }
  .tag {
    align-self: flex-start; background: var(--surface-2);
    border: 1px solid var(--line); color: var(--muted); font-size: 11px;
    font-weight: 660; letter-spacing: .07em; text-transform: uppercase;
    padding: 4px 10px; border-radius: 999px;
  }
  .tag-accent {
    background: var(--accent-soft); border-color: var(--accent); color: var(--accent);
  }
  .proof-arrow { color: var(--muted); }
  .proof-arrow svg { width: 26px; height: 26px; display: block; }
  figcaption {
    margin-top: 16px; color: var(--muted); font-size: 14px; text-align: center;
  }
  @media (max-width: 760px) {
    .proof-pair { grid-template-columns: 1fr; }
    .proof-arrow { transform: rotate(90deg); margin: 0 auto; }
  }

  /* ---------- pricing ---------- */
  .plans {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
    align-items: start;
  }
  .plan {
    position: relative; background: var(--surface); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 24px 22px 22px; display: flex;
    flex-direction: column; gap: 3px; box-shadow: var(--shadow);
  }
  .plan.popular { border-color: var(--accent); box-shadow: var(--shadow-lg); }
  .badge {
    position: absolute; top: -10px; left: 22px; background: var(--accent);
    color: var(--accent-ink); font-size: 11px; font-weight: 680;
    letter-spacing: .05em; text-transform: uppercase; padding: 4px 10px;
    border-radius: 999px;
  }
  .plan h3 { font-size: 17px; font-weight: 660; margin: 0; }
  .plan-d { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
  .price {
    font-family: var(--serif); font-size: 40px; line-height: 1.05;
    letter-spacing: -.02em; margin: 0; display: flex; align-items: baseline; gap: 3px;
  }
  .price .cur { font-size: 22px; color: var(--ink-2); }
  .price .unit {
    font-family: var(--sans); font-size: 13.5px; font-weight: 500;
    color: var(--muted); margin-left: 5px; letter-spacing: 0;
  }
  .plan-note { color: var(--muted); font-size: 13.5px; margin: 4px 0 16px; }
  .plan-feats { list-style: none; margin: 0 0 14px; padding: 0; flex: 1; }
  .plan-feats li {
    position: relative; padding-left: 23px; font-size: 14.5px;
    color: var(--ink-2); margin-bottom: 7px;
  }
  .plan-feats li::before {
    content: ""; position: absolute; left: 3px; top: 7px; width: 9px; height: 5px;
    border-left: 1.9px solid var(--accent); border-bottom: 1.9px solid var(--accent);
    transform: rotate(-45deg);
  }
  .plan-extra {
    color: var(--muted); font-size: 12.5px; margin: 0 0 16px;
    padding-top: 13px; border-top: 1px solid var(--line);
  }
  .plan-cta {
    display: block; text-align: center; text-decoration: none; font-weight: 620;
    font-size: 14.5px; padding: 11px 16px; border-radius: var(--radius-sm);
    border: 1px solid var(--line-2); color: var(--ink); background: var(--surface);
  }
  .plan-cta:hover { border-color: var(--accent); color: var(--accent); }
  .plan.popular .plan-cta {
    background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
  }
  .plan.popular .plan-cta:hover { background: var(--accent-hover); color: var(--accent-ink); }
  @media (max-width: 860px) { .plans { grid-template-columns: 1fr; } }

  .lang-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr));
    gap: 9px;
  }
  .lang-grid a {
    display: block; padding: 11px 14px; border: 1px solid var(--line);
    border-radius: var(--radius-sm); text-decoration: none; color: var(--ink);
    background: var(--surface); font-size: 14.5px; transition: border-color .14s;
  }
  .lang-grid a:hover { border-color: var(--accent); color: var(--accent); }
  .lang-grid a small { display: block; color: var(--muted); font-size: 12.5px; }
  .lang-more {
    margin: 18px 0 0; color: var(--muted); font-size: 14px; line-height: 1.7;
  }

  details {
    border-bottom: 1px solid var(--line); padding: 17px 0;
  }
  details summary {
    cursor: pointer; font-weight: 620; font-size: 16.5px; list-style: none;
    display: flex; align-items: center; gap: 12px;
  }
  details summary::-webkit-details-marker { display: none; }
  details summary::after {
    content: "+"; margin-left: auto; color: var(--muted); font-weight: 400;
    font-size: 21px; line-height: 1;
  }
  details[open] summary::after { content: "\2212"; }
  details p { margin: 11px 0 0; color: var(--ink-2); max-width: 68ch; }

  footer.site {
    border-top: 1px solid var(--line); padding: 34px 0 54px; margin-top: 62px;
    color: var(--muted); font-size: 14px;
  }
  .foot { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }

  @media (max-width: 760px) {
    .steps { grid-template-columns: 1fr; gap: 22px; }
    .compare { grid-template-columns: 1fr; }
    .hero { padding: 44px 0 4px; }
    section { padding: 46px 0; margin-top: 46px; }
  }
  @media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
    html { scroll-behavior: auto; }
  }