/* Public site (landing, Q&A, sign-in, upgrade, admin). Bright, friendly theme:
   white + mint/sky tints, jade brand colour, highlighter yellow for the passages that matter. */
:root {
  --paper: #ffffff;
  --paper-2: #f2f8f6;      /* mint tint */
  --paper-3: #e4f0ec;
  --sky: #eef5ff;          /* sky tint, used for alternating sections */
  --rule: #e2e9ee;
  --rule-strong: #c9d4dc;
  --ink: #15213b;
  --ink-2: #4a5672;
  --ink-3: #75809a;
  --pen: #0d8a7b;          /* jade: actions, links */
  --pen-2: #086b60;
  --pen-tint: #e1f4f0;
  --sun: #ffd84d;          /* highlighter */
  --sun-soft: #fff6cc;
  --seal: #d6402f;         /* "this clause breaks the law" only */
  --ok: #17935a;
  --err: #c2342a;
  --err-bg: #fdeceb;
  --shadow: 0 1px 2px rgba(21, 33, 59, .06), 0 12px 32px -12px rgba(13, 90, 80, .22);
  --shadow-lg: 0 2px 4px rgba(21, 33, 59, .05), 0 28px 60px -20px rgba(13, 90, 80, .30);
  --radius: 16px;
  --font: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --serif: "Literata", "Noto Serif", Georgia, serif;   /* only for verbatim law text */
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0f1a1f; --paper-2: #13232a; --paper-3: #1a2f37; --sky: #121e2c; --rule: #233741; --rule-strong: #34505c;
    --ink: #eaf2f1; --ink-2: #b4c4c8; --ink-3: #85989e;
    --pen: #4fd1bd; --pen-2: #8ee6d8; --pen-tint: #123a37; --sun: #e9c341; --sun-soft: #3a3417;
    --seal: #ff7a6b; --ok: #5fd39a; --err: #ff8a80; --err-bg: #3a1d1b;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .6);
  }
}
:root[data-theme="dark"] {
  --paper: #0f1a1f; --paper-2: #13232a; --paper-3: #1a2f37; --sky: #121e2c; --rule: #233741; --rule-strong: #34505c;
  --ink: #eaf2f1; --ink-2: #b4c4c8; --ink-3: #85989e;
  --pen: #4fd1bd; --pen-2: #8ee6d8; --pen-tint: #123a37; --sun: #e9c341; --sun-soft: #3a3417;
  --seal: #ff7a6b; --ok: #5fd39a; --err: #ff8a80; --err-bg: #3a1d1b;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -12px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -20px rgba(0, 0, 0, .6);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--pen); text-decoration-color: color-mix(in srgb, var(--pen) 40%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--pen-2); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--pen); outline-offset: 3px; }
[hidden] { display: none !important; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }

/* ---------- brand + nav --------------------------------------------------- */
.nav { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.brand-mark {
  width: 16px; height: 16px; border-radius: 50%; flex: none;
  border: 2px solid var(--seal); box-shadow: inset 0 0 0 2px var(--paper), inset 0 0 0 5px var(--seal);
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; padding: 8px 10px; border-radius: 6px; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }

/* ---------- buttons ------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 20px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-primary { background: var(--pen); color: #fff; }
.btn-primary:hover { background: var(--pen-2); color: #fff; }
:root[data-theme="dark"] .btn-primary, :root[data-theme="dark"] .btn-primary:hover { color: #0f1520; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-primary, :root:not([data-theme="light"]) .btn-primary:hover { color: #0f1520; } }
.btn-ghost { background: transparent; border-color: var(--rule-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink-3); background: var(--paper-2); color: var(--ink); }
.btn-google { background: var(--paper); border-color: var(--rule-strong); color: var(--ink); }
.btn-google:hover { background: var(--paper-2); color: var(--ink); }
.btn-google svg { width: 18px; height: 18px; flex: none; }
.btn-small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- hero ---------------------------------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; padding: 56px 0 88px; }
.hero h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 22px; max-width: 15ch; text-wrap: balance;
}
.lead { font-size: 18px; color: var(--ink-2); margin: 0 0 32px; max-width: 46ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin: 16px 0 0; font-size: 13.5px; color: var(--ink-3); }

/* the specimen: one real exchange, citation stamped as verified */
.specimen {
  position: relative; background: var(--paper); border: 1px solid var(--rule);
  border-radius: 10px; padding: 22px 24px 24px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -28px rgba(28, 36, 48, .35);
}
.spec-q { border-left: 3px solid var(--pen); background: var(--paper-2); padding: 10px 14px; border-radius: 0 6px 6px 0; margin-bottom: 18px; }
.spec-q small { display: block; color: var(--pen); font-size: 12.5px; }
.spec-q p { margin: 2px 0 0; font-weight: 500; color: var(--pen-2); line-height: 1.45; }
.spec-a { font-size: 15px; margin: 0 0 14px; }
.spec-a strong { font-weight: 600; }
.spec-quote {
  position: relative; margin: 0; padding: 14px 16px 14px 18px; border-left: 3px solid var(--rule-strong);
  font-family: var(--serif); font-size: 15.5px; line-height: 1.75; color: var(--ink-2); background: var(--paper-2);
  border-radius: 0 6px 6px 0;
}
.spec-quote cite { display: block; margin-top: 8px; font-family: var(--font); font-style: normal; font-size: 13px; color: var(--pen); }
.spec-trace { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px dashed var(--rule-strong); font-size: 13px; color: var(--ink-3); display: grid; gap: 4px; }
.spec-trace li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); margin-right: 9px; vertical-align: 2px; }

.seal {
  position: absolute; right: -18px; top: 50%; width: 124px; height: 124px; border-radius: 50%;
  display: grid; place-items: center; text-align: center;
  color: var(--seal); border: 3px solid var(--seal);
  box-shadow: inset 0 0 0 4px var(--paper), inset 0 0 0 6px var(--seal);
  font-weight: 700; font-size: 10.5px; line-height: 1.2; letter-spacing: .02em; padding: 14px; align-content: center;
  transform: translateY(-50%) rotate(-14deg); opacity: .9; mix-blend-mode: multiply;
  background: color-mix(in srgb, var(--paper) 30%, transparent);
  animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1) .9s both;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .seal { mix-blend-mode: normal; } }
:root[data-theme="dark"] .seal { mix-blend-mode: normal; }
.seal span { display: block; white-space: nowrap; }
.seal b { display: block; font-size: 22px; line-height: 1; letter-spacing: 0; margin: 1px 0; }
@keyframes stamp {
  0% { opacity: 0; transform: translateY(-50%) rotate(-14deg) scale(1.9); }
  100% { opacity: .9; transform: translateY(-50%) rotate(-14deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) { .seal { animation: none; } }

/* ---------- sections ------------------------------------------------------ */
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(26px, 3vw, 34px); line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 14px; max-width: 32ch; text-wrap: balance; }
.section .sub { color: var(--ink-2); max-width: 60ch; margin: 0 0 44px; font-size: 17px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps li { counter-increment: step; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  border: 1.5px solid var(--pen); color: var(--pen); font-weight: 600; font-size: 14px; margin-bottom: 16px;
  background: var(--paper); position: relative; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 16px; left: 32px; right: 0; border-top: 1.5px solid var(--rule-strong); }
.steps h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.steps p { margin: 0; color: var(--ink-2); font-size: 15px; }
.steps code { font-size: 13px; background: var(--paper-2); padding: 1px 5px; border-radius: 4px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.mode-card { padding: 32px 32px 36px; }
.mode-card + .mode-card { border-left: 1px solid var(--rule); background: var(--paper-2); }
.mode-card h3 { font-size: 21px; margin: 0 0 8px; letter-spacing: -0.01em; }
.mode-card > p { color: var(--ink-2); margin: 0 0 20px; }
.mode-card ul { margin: 0; padding: 0; list-style: none; }
.mode-card li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--pen-2); }
.mode-card li:last-child { border-bottom: 1px solid var(--rule); }

.promises { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.promise h3 { font-size: 17px; margin: 0 0 6px; font-weight: 600; }
.promise p { margin: 0; color: var(--ink-2); font-size: 15.5px; max-width: 48ch; }

.facts { display: flex; flex-wrap: wrap; gap: 12px 40px; margin: 0 0 40px; padding: 0; list-style: none; }
.facts li { font-size: 15px; color: var(--ink-2); }
.facts b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; line-height: 1.2; }

.pricing { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; overflow: hidden; }
.price-card { padding: 28px 24px; display: flex; flex-direction: column; gap: 4px; }
.price-card + .price-card { border-left: 1px solid var(--rule); }
.price-card.is-featured { background: var(--pen-tint); }
.price-card h3 { font-size: 17px; margin: 0; font-weight: 600; }
.price { font-family: var(--serif); font-size: 32px; font-weight: 600; margin: 8px 0 0; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.price-note { color: var(--ink-2); font-size: 14.5px; margin: 0 0 20px; flex: 1; }
.price-card .btn { width: 100%; }

/* ---------- upgrade page -------------------------------------------------- */
.upgrade h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; margin: 24px 0 8px; letter-spacing: -0.015em; }
.upgrade .sub { color: var(--ink-2); margin: 0 0 28px; max-width: 60ch; }
.status-line { padding: 12px 16px; border-radius: 8px; background: var(--paper-2); margin: 0 0 28px; font-size: 15px; }
.status-line.is-paid { background: color-mix(in srgb, var(--ok) 14%, var(--paper)); color: var(--ok); font-weight: 500; }
.plan-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 32px; }
.plan-opt { text-align: left; border: 1.5px solid var(--rule-strong); background: var(--paper); border-radius: 10px; padding: 16px 18px; cursor: pointer; }
.plan-opt:hover { border-color: var(--ink-3); }
.plan-opt[aria-checked="true"] { border-color: var(--pen); background: var(--pen-tint); box-shadow: inset 0 0 0 1px var(--pen); }
.plan-opt b { display: block; font-size: 16px; }
.plan-opt .price { font-size: 24px; margin: 4px 0 2px; }
.plan-opt small { color: var(--ink-2); font-size: 13.5px; }
.pay { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 36px; align-items: start; border: 1px solid var(--rule); border-radius: 10px; padding: 28px; }
.pay img { width: 100%; aspect-ratio: 1; border-radius: 8px; background: #fff; border: 1px solid var(--rule); }
.pay dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 20px; align-items: baseline; }
.pay dt { color: var(--ink-3); font-size: 14px; }
.pay dd { margin: 0; font-weight: 600; font-size: 16px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; word-break: break-all; }
.pay dd code { font-family: inherit; background: var(--paper-2); padding: 2px 8px; border-radius: 6px; }
.copy { background: none; border: 0; color: var(--pen); cursor: pointer; font-size: 13.5px; padding: 0; text-decoration: underline; text-underline-offset: 3px; font-weight: 500; }
.pay-steps { margin: 24px 0 0; padding-left: 20px; color: var(--ink-2); font-size: 14.5px; }
.pay-steps li { margin: 4px 0; }
.waiting { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: var(--ink-3); font-size: 14px; }
.waiting::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pen); animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .waiting::before { animation: none; } }


.closing { padding: 96px 0; border-top: 1px solid var(--rule); background: var(--pen-tint); }
.closing-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.closing h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; margin: 0 0 10px; max-width: 20ch; letter-spacing: -0.015em; }
.closing p { margin: 0; color: var(--ink-2); max-width: 52ch; }

.footer { padding: 28px 0 40px; font-size: 13.5px; color: var(--ink-3); }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* ---------- legal pages ------------------------------------------------- */
.legal { max-width: 720px; padding-bottom: 48px; }
.legal h1 { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 38px); font-weight: 600; margin: 32px 0 4px; letter-spacing: -0.015em; }
.legal .updated { color: var(--ink-3); font-size: 14px; margin: 0 0 28px; }
.legal h2 { font-size: 18px; font-weight: 600; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--ink-2); font-size: 16px; line-height: 1.7; }
.legal ul { padding-left: 20px; }
.legal li { margin: 8px 0; }
.legal strong { color: var(--ink); font-weight: 600; }

/* ---------- auth page ----------------------------------------------------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-side {
  background: var(--paper-2); border-right: 1px solid var(--rule); padding: 32px 48px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
}
.auth-side blockquote { margin: 0; max-width: 34ch; font-family: var(--serif); font-size: 22px; line-height: 1.55; color: var(--ink); }
.auth-side blockquote cite { display: block; margin-top: 14px; font-family: var(--font); font-style: normal; font-size: 14px; color: var(--ink-3); }
.auth-main { display: grid; place-items: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 380px; }
.auth-box h1 { font-family: var(--serif); font-size: 30px; font-weight: 600; margin: 0 0 6px; letter-spacing: -0.015em; }
.auth-box .hint { color: var(--ink-2); margin: 0 0 28px; }
.auth-box .btn-google { width: 100%; }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 13.5px; margin: 22px 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--rule); }
.field { display: block; margin-bottom: 16px; }
.field span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--rule-strong); background: var(--paper); font-size: 16px;
}
.field input:focus { outline: none; border-color: var(--pen); box-shadow: 0 0 0 3px color-mix(in srgb, var(--pen) 22%, transparent); }
.field small { display: block; color: var(--ink-3); font-size: 13px; margin-top: 5px; }
.auth-box .btn-primary { width: 100%; margin-top: 6px; }
.switch { margin: 22px 0 0; font-size: 14.5px; color: var(--ink-2); }
.switch button { background: none; border: 0; padding: 0; color: var(--pen); cursor: pointer; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.alert { background: var(--err-bg); color: var(--err); border-radius: 8px; padding: 10px 14px; font-size: 14.5px; margin: 0 0 18px; }

/* ---------- admin --------------------------------------------------------- */
.admin-head { display: flex; align-items: center; gap: 16px; height: 64px; border-bottom: 1px solid var(--rule); }
.admin-head .who { margin-left: auto; color: var(--ink-3); font-size: 14px; }
.admin h1 { font-family: var(--serif); font-size: 28px; margin: 32px 0 20px; font-weight: 600; }
.admin h2 { font-size: 16px; margin: 36px 0 12px; font-weight: 600; }
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--rule); border-radius: 10px; }
.kpi { padding: 16px 18px; }
.kpi + .kpi { border-left: 1px solid var(--rule); }
.kpi b { display: block; font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; }
.kpi span { color: var(--ink-3); font-size: 13.5px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; height: 120px; border-bottom: 1px solid var(--rule-strong); }
.bar { background: var(--pen); border-radius: 3px 3px 0 0; min-height: 2px; position: relative; }
.bar:hover { background: var(--pen-2); }
.bar-labels { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; font-size: 11.5px; color: var(--ink-3); text-align: center; margin-top: 6px; font-variant-numeric: tabular-nums; }
.toolbar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar input { height: 38px; padding: 0 12px; border: 1px solid var(--rule-strong); border-radius: 8px; background: var(--paper); min-width: 260px; }
.toolbar .count { color: var(--ink-3); font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: 10px; }
table.users { width: 100%; border-collapse: collapse; font-size: 14px; }
.users th, .users td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: middle; white-space: nowrap; }
.users th { background: var(--paper-2); font-weight: 600; font-size: 13px; color: var(--ink-2); position: sticky; top: 0; }
.users tr:last-child td { border-bottom: 0; }
.users td.num { text-align: right; font-variant-numeric: tabular-nums; }
.users .person { display: flex; align-items: center; gap: 10px; }
.users .person img, .users .avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; background: var(--paper-3); display: grid; place-items: center; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.users .person small { display: block; color: var(--ink-3); font-size: 12.5px; }
.users select, .users input[type="number"] { height: 32px; border: 1px solid var(--rule-strong); border-radius: 6px; background: var(--paper); padding: 0 6px; }
.users input[type="number"] { width: 76px; }
.users tr.is-disabled td { color: var(--ink-3); }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--paper-3); color: var(--ink-2); margin-right: 4px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 8px; font-size: 14px; }

/* ---------- responsive ---------------------------------------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 48px; padding: 32px 0 64px; }
  .seal { right: -8px; width: 100px; height: 100px; font-size: 9.5px; padding: 12px; }
  .steps { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .steps li:nth-child(2)::after { display: none; }
  .modes { grid-template-columns: 1fr; }
  .pricing { grid-template-columns: 1fr 1fr; }
  .price-card:nth-child(3) { border-left: 0; }
  .price-card:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .pay { grid-template-columns: 1fr; }
  .pay img { max-width: 280px; }
  .plan-pick { grid-template-columns: 1fr; }
  .mode-card + .mode-card { border-left: 0; border-top: 1px solid var(--rule); }
  .closing-inner { grid-template-columns: 1fr; align-items: start; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-side { border-right: 0; border-bottom: 1px solid var(--rule); padding: 20px 24px; }
  .auth-side blockquote { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi + .kpi { border-left: 0; }
  .kpi { border-bottom: 1px solid var(--rule); }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .nav-links .hide-sm { display: none; }
  .section { padding: 64px 0; }
  .specimen { padding: 18px 16px 20px; }
  .seal { top: auto; bottom: 76px; transform: rotate(-14deg); width: 88px; height: 88px; font-size: 8.5px; padding: 10px; animation: none; }
  .seal b { font-size: 18px; }
  .steps { grid-template-columns: 1fr; }
  .steps li::after { display: none; }
  .promises { grid-template-columns: 1fr; gap: 28px; }
  .pricing { grid-template-columns: 1fr; }
  .price-card + .price-card { border-left: 0; border-top: 1px solid var(--rule); }
  .pay { padding: 18px; }
  .pay dl { grid-template-columns: 1fr; gap: 2px; }
  .pay dd { margin-bottom: 10px; }
  .mode-card { padding: 24px 20px 28px; }
  .cta-row .btn { flex: 1 1 100%; }
  .toolbar input { min-width: 0; flex: 1; }
}

/* =========================================================================
   Landing v2 – kept last so it wins over the earlier landing rules
   ========================================================================= */
:root { --band: #213659; --band-2: #182a47; --band-ink: #eef2f8; --band-ink-2: #b9c6dc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: #1b2740; --band-2: #141e33; } }
:root[data-theme="dark"] { --band: #1b2740; --band-2: #141e33; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* sticky nav that gains a hairline once the page scrolls */
.topnav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.topnav.is-scrolled { border-bottom-color: var(--rule); }
html { scroll-padding-top: 76px; }

/* hero */
.hero { padding: 48px 0 72px; gap: 64px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 52px); max-width: 16ch; }
.hero .lead { margin-bottom: 26px; }
.ask {
  display: flex; gap: 8px; align-items: stretch; max-width: 560px;
  background: var(--paper); border: 1.5px solid var(--rule-strong); border-radius: 12px; padding: 6px;
  box-shadow: 0 10px 30px -18px rgba(28, 36, 48, .35);
  transition: border-color .15s, box-shadow .15s;
}
.ask:focus-within { border-color: var(--pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--pen) 16%, transparent), 0 10px 30px -18px rgba(28, 36, 48, .35); }
.ask textarea {
  flex: 1; min-width: 0; border: 0; background: transparent; resize: none; outline: none;
  padding: 10px; font-size: 16px; line-height: 1.45; min-height: 48px;
}
.ask textarea::placeholder { color: var(--ink-3); }
.ask .btn { align-self: stretch; border-radius: 8px; padding: 0 22px; }
.hero .fine { margin-top: 12px; }

.tryline { margin-top: 30px; }
.tryline-label { margin: 0 0 10px; font-size: 14px; color: var(--ink-2); }
.tries { display: flex; flex-wrap: wrap; gap: 8px; }
.try {
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink-2);
  border-radius: 999px; padding: 7px 14px; font-size: 14px; cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.try:hover { border-color: var(--pen); color: var(--pen-2); }
.try[aria-selected="true"] { background: var(--pen); border-color: var(--pen); color: #fff; }
:root[data-theme="dark"] .try[aria-selected="true"] { color: #0f1520; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .try[aria-selected="true"] { color: #0f1520; } }

.specimen { transition: opacity .16s ease; }
.specimen.is-swapping { opacity: .35; }
@media (prefers-reduced-motion: reduce) { .specimen { transition: none; } }

.source-strip { border-top: 1px solid var(--rule); background: var(--paper-2); color: var(--ink-2); font-size: 14px; }
.source-strip .wrap { padding-top: 14px; padding-bottom: 14px; }

/* sections */
.section-alt { background: var(--paper-2); }

.uses { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--rule); }
.use { padding: 28px 32px 30px 0; border-bottom: 1px solid var(--rule); }
.use:nth-child(odd) { border-right: 1px solid var(--rule); }
.use:nth-child(even) { padding-left: 32px; padding-right: 0; }
.use h3 { font-size: 18px; margin: 0 0 8px; font-weight: 600; letter-spacing: -0.005em; }
.use p { margin: 0 0 14px; color: var(--ink-2); font-size: 15.5px; max-width: 48ch; }
.use q { display: block; font-family: var(--serif); font-style: italic; color: var(--pen-2); font-size: 15.5px; }

/* document review mock */
.doc-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 540px); gap: 64px; align-items: center; }
.doc-split .sub { margin-bottom: 24px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; font-size: 16px; }
.checks li::before {
  content: ""; position: absolute; left: 2px; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  border: 1.5px solid var(--pen);
}
.checks li::after { content: ""; position: absolute; left: 8px; top: calc(.3em + 4px); width: 4px; height: 8px; border: solid var(--pen); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

.paper {
  margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px;
  padding: 30px 32px 26px; font-family: var(--serif); font-size: 15px; line-height: 1.75; color: var(--ink);
  box-shadow: 0 1px 0 var(--rule), 0 30px 60px -36px rgba(28, 36, 48, .45);
  transform: rotate(.6deg);
}
.paper-title { text-align: center; font-weight: 600; letter-spacing: .04em; margin: 0 0 16px; font-size: 14.5px; }
.paper-art { font-weight: 600; margin: 0 0 6px; }
.clause { margin: 0 0 8px; }
.clause.faded { color: var(--ink-3); -webkit-mask-image: linear-gradient(#000 20%, transparent); mask-image: linear-gradient(#000 20%, transparent); margin-bottom: 0; }
.paper mark { background: none; color: inherit; text-decoration: underline wavy var(--seal); text-decoration-thickness: 1.5px; text-underline-offset: 4px; }
.note {
  font-family: var(--font); font-size: 13.5px; line-height: 1.55; margin: 2px 0 14px 18px; padding: 8px 12px;
  border-left: 3px solid; border-radius: 0 6px 6px 0;
}
.note b { font-weight: 600; }
.note cite { display: block; font-style: normal; font-size: 12.5px; margin-top: 2px; opacity: .85; }
.note-bad { border-color: var(--seal); color: var(--seal); background: color-mix(in srgb, var(--seal) 7%, var(--paper)); }
.note-ok { border-color: var(--ok); color: var(--ok); background: color-mix(in srgb, var(--ok) 8%, var(--paper)); }

/* topics */
.topics { display: flex; flex-wrap: wrap; gap: 10px; max-width: 900px; }
.topic {
  border: 1px solid var(--rule-strong); background: var(--paper); color: var(--ink);
  border-radius: 10px; padding: 12px 18px; font-size: 15.5px; font-weight: 500; cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
.topic:hover { border-color: var(--pen); color: var(--pen-2); background: var(--pen-tint); }

/* FAQ */
.faq-wrap .faq { max-width: 820px; }
.faq { border-top: 1px solid var(--rule); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-size: 17px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border: solid var(--ink-3); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq summary:hover { color: var(--pen-2); }
.faq details p { margin: 0 0 20px; color: var(--ink-2); max-width: 68ch; }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }

/* closing band */
.closing { background: var(--band); border-top: 0; color: var(--band-ink); padding: 80px 0; }
.closing h2 { color: var(--band-ink); max-width: 26ch; }
.closing p { color: var(--band-ink-2); }
.btn-light { background: #fff; color: #1b2a45; min-height: 50px; padding: 0 26px; font-size: 16px; }
.btn-light:hover { background: #e8eef8; color: #1b2a45; }

/* footer */
.site-footer { background: var(--band-2); color: var(--band-ink-2); font-size: 14.5px; }
.site-footer a { color: var(--band-ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--band-ink); }
.site-footer .brand { color: var(--band-ink); }
.site-footer .brand-mark { box-shadow: inset 0 0 0 2px var(--band-2), inset 0 0 0 5px var(--seal); }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 32px; padding-top: 48px; padding-bottom: 36px; }
.footer-grid p { margin: 12px 0 0; max-width: 40ch; }
.footer-grid h4 { margin: 0 0 12px; color: var(--band-ink); font-size: 14.5px; font-weight: 600; }
.footer-grid a:not(.brand) { display: block; padding: 4px 0; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13px; }

@media (max-width: 900px) {
  .hero { gap: 40px; padding: 28px 0 56px; }
  .doc-split { grid-template-columns: 1fr; gap: 40px; }
  .paper { transform: none; }
  .uses { grid-template-columns: 1fr; }
  .use, .use:nth-child(even) { padding: 24px 0; }
  .use:nth-child(odd) { border-right: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ask { flex-direction: column; }
  .ask .btn { min-height: 46px; }
  .paper { padding: 22px 18px 20px; font-size: 14.5px; }
  .note { margin-left: 8px; }
  .topic { padding: 10px 14px; font-size: 15px; }
  .closing { padding: 56px 0; }
  .closing .btn-light { width: 100%; }
}

/* =========================================================================
   Q&A pages (/hoi-dap), About / Contact / Disclaimer
   ========================================================================= */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 14px; color: var(--ink-3); padding-top: 24px; }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.crumbs a:hover { color: var(--pen); text-decoration: underline; }
.crumbs .sep { color: var(--rule-strong); }
.crumbs [aria-current] { color: var(--ink-3); max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.qa h1, .qa-hub h1 {
  font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.18;
  letter-spacing: -0.018em; margin: 18px 0 12px; max-width: 32ch; text-wrap: balance;
}
.qa-meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0 0 28px; font-size: 14px; color: var(--ink-3); }
.qa-short {
  max-width: 760px; margin: 0 0 40px; padding: 20px 24px; border-radius: 10px;
  background: var(--pen-tint); border-left: 4px solid var(--pen);
}
.qa-short h2 { font-size: 14px; font-weight: 600; margin: 0 0 6px; color: var(--pen-2); }
.qa-short p { margin: 0; font-size: 18px; line-height: 1.6; color: var(--ink); }

.qa-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 56px; align-items: start; padding-bottom: 72px; }
.qa-main { max-width: 720px; }
.qa-main h2 { font-family: var(--serif); font-weight: 600; font-size: 24px; margin: 8px 0 14px; letter-spacing: -0.01em; }
.qa-main > p, .qa-main > ul { font-size: 16.5px; line-height: 1.75; color: var(--ink); }
.qa-main > p { margin: 0 0 16px; }
.qa-main > ul { padding-left: 22px; margin: 0 0 18px; }
.qa-main > ul li { margin: 6px 0; }
.qa-main > ul + h2, .qa-main > p + h2 { margin-top: 40px; }

.law-quote { margin: 0 0 22px; }
.law-quote blockquote {
  margin: 0; padding: 16px 20px; background: var(--paper-2); border-left: 3px solid var(--rule-strong); border-radius: 0 8px 8px 0;
  font-family: var(--serif); font-size: 15.5px; line-height: 1.8; color: var(--ink-2);
}
.law-quote blockquote p { margin: 0 0 6px; }
.law-quote blockquote p:last-child { margin-bottom: 0; }
.law-quote .gap { color: var(--ink-3); margin: 2px 0 6px; }
.law-quote figcaption { margin-top: 8px; font-size: 14px; color: var(--ink-2); }
.law-quote figcaption a { white-space: nowrap; }

.qa-status { margin: 30px 0 0; padding: 18px 20px; border: 1px solid var(--rule); border-radius: 10px; font-size: 14.5px; color: var(--ink-2); }
.qa-status h3 { margin: 0 0 8px; font-size: 15px; color: var(--ink); }
.qa-status ul { margin: 0 0 10px; padding-left: 18px; }
.qa-status li { margin: 4px 0; }
.qa-status p { margin: 0; }

.qa-ask { margin: 40px 0 0; padding: 26px 26px 22px; border-radius: 12px; background: var(--band); color: var(--band-ink); }
.qa-ask h2 { color: var(--band-ink); font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.qa-ask > p { color: var(--band-ink-2); margin: 0 0 16px; }
.qa-ask .ask { max-width: none; border-color: transparent; color: var(--ink); }
.qa-ask .ask textarea { color: var(--ink); }
.qa-ask .fine { color: var(--band-ink-2); }
.qa-disclaimer { margin-top: 24px; font-size: 13.5px; color: var(--ink-3); }

.qa-side { position: sticky; top: 84px; }
.qa-side h2 { font-size: 15px; font-weight: 600; margin: 0 0 10px; }
.qa-side ul { list-style: none; margin: 0 0 14px; padding: 0; border-top: 1px solid var(--rule); }
.qa-side li { border-bottom: 1px solid var(--rule); }
.qa-side li a { display: block; padding: 11px 0; color: var(--ink); text-decoration: none; font-size: 15px; line-height: 1.45; }
.qa-side li a:hover { color: var(--pen-2); }
.qa-topic-link { font-size: 14.5px; font-weight: 500; }

.qa-hub { padding-bottom: 72px; }
.qa-hub .lead { max-width: 62ch; margin-bottom: 36px; }
.q-list { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--rule); max-width: 860px; }
.q-list li { border-bottom: 1px solid var(--rule); }
.q-list a { display: block; padding: 18px 0; text-decoration: none; color: var(--ink); }
.q-list a:hover .qi-title { color: var(--pen-2); text-decoration: underline; text-underline-offset: 3px; }
.qi-title { display: block; font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.qi-sum { display: block; color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 56px; margin-bottom: 8px; }
.hub-topic h2 { font-family: var(--serif); font-size: 22px; margin: 0 0 6px; }
.hub-topic h2 a { color: var(--ink); text-decoration: none; }
.hub-topic h2 a:hover { color: var(--pen-2); text-decoration: underline; }
.hub-topic > p { color: var(--ink-2); font-size: 15px; margin: 0 0 12px; }
.hub-topic ul { margin: 0; padding-left: 18px; }
.hub-topic li { margin: 6px 0; font-size: 15.5px; }
.qa-hub .qa-ask { max-width: 860px; }

.legal .crumbs + h1 { margin-top: 18px; }
.contact-mail { font-size: 20px; font-weight: 600; margin: 4px 0 18px; }
.footer-grid-4 { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }

/* landing: popular questions */
.popular { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; border-top: 1px solid var(--rule); }
.popular li { border-bottom: 1px solid var(--rule); }
.popular a { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; color: var(--ink); text-decoration: none; font-size: 16px; }
.popular a:hover { color: var(--pen-2); }
.popular small { color: var(--ink-3); font-size: 13px; white-space: nowrap; }
.more-link { display: inline-block; margin-top: 18px; font-weight: 600; }

@media (max-width: 900px) {
  .qa-grid { grid-template-columns: 1fr; gap: 40px; }
  .qa-side { position: static; }
  .hub-grid, .popular { grid-template-columns: 1fr; }
  .footer-grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .qa-short { padding: 16px 18px; }
  .qa-short p { font-size: 17px; }
  .law-quote blockquote { padding: 14px 16px; font-size: 15px; }
  .qa-ask { padding: 20px 16px 18px; }
  .crumbs [aria-current] { display: none; }
  .crumbs .sep:last-of-type { display: none; }
  .popular small { display: none; }
}

/* =========================================================================
   v3: bright & friendly – kept last so it wins over everything above
   ========================================================================= */
:root { --band: #0d8a7b; --band-2: #f2f8f6; --band-ink: #ffffff; --band-ink-2: #d9f3ee; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --band: #0f5f56; --band-2: #0c161a; --band-ink: #f2fbf9; --band-ink-2: #b5dcd4; } }
:root[data-theme="dark"] { --band: #0f5f56; --band-2: #0c161a; --band-ink: #f2fbf9; --band-ink-2: #b5dcd4; }

body { font-size: 16.5px; }
::selection { background: var(--sun); color: #15213b; }

/* headings: friendly heavy sans; serif stays only on verbatim law text */
.hero h1, .section h2, .closing h2, .qa h1, .qa-hub h1, .qa-main h2, .hub-topic h2, .legal h1, .upgrade h1,
.auth-box h1, .qa-ask h2, .price, .facts b, .admin h1 {
  font-family: var(--font); font-weight: 800; letter-spacing: -0.025em;
}
.auth-side blockquote { font-family: var(--font); font-weight: 600; letter-spacing: -0.01em; }

/* brand mark: jade tile with a highlighter tick */
.brand { font-weight: 700; }
.brand-mark {
  width: 28px; height: 28px; border-radius: 9px; border: 0; position: relative; flex: none;
  background: linear-gradient(145deg, #12a08f, #0b7a6d); box-shadow: 0 4px 10px -4px rgba(13, 138, 123, .6);
}
.brand-mark::after {
  content: ""; position: absolute; left: 10px; top: 5px; width: 7px; height: 13px;
  border: solid var(--sun); border-width: 0 3.2px 3.2px 0; transform: rotate(42deg); border-radius: 1px;
}
.site-footer .brand-mark { box-shadow: none; }

/* buttons: pill, lift on hover */
.btn { border-radius: 999px; transition: transform .18s ease, box-shadow .18s ease, background-color .18s, border-color .18s, color .18s; }
.btn-primary { background: var(--pen); box-shadow: 0 6px 16px -8px rgba(13, 138, 123, .7); }
.btn-primary:hover { background: var(--pen-2); transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(13, 138, 123, .8); }
.btn-primary:active { transform: translateY(0); }
.btn-ghost:hover, .btn-google:hover { transform: translateY(-1px); }
.btn-light { background: #fff; color: #0b6b60; box-shadow: 0 10px 24px -12px rgba(0, 0, 0, .35); }
.btn-light:hover { background: var(--sun); color: #15213b; transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn:hover { transition: none; transform: none; } }

.topnav { background: color-mix(in srgb, var(--paper) 82%, transparent); }
.topnav.is-scrolled { border-bottom-color: var(--rule); box-shadow: 0 6px 20px -16px rgba(21, 33, 59, .35); }
.nav-links a:not(.btn) { border-radius: 999px; }

/* ---------- hero ---------- */
.hero-wrap { position: relative; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #9fe7da; top: -180px; left: -140px; animation: drift 18s ease-in-out infinite alternate; }
.b2 { width: 460px; height: 460px; background: #bfe0ff; top: 40px; right: -160px; animation: drift 22s ease-in-out infinite alternate-reverse; }
.b3 { width: 340px; height: 340px; background: #ffe98a; bottom: -200px; left: 38%; opacity: .45; animation: drift 26s ease-in-out infinite alternate; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .blob { opacity: .14; } }
:root[data-theme="dark"] .blob { opacity: .14; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 100% { transform: translate(40px, 30px) scale(1.08); } }
.hero { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; padding: 56px 0 80px; align-items: center; }
.hello {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 18px; padding: 6px 14px 6px 10px;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--pen-2);
  box-shadow: var(--shadow);
}
.wave { display: inline-block; transform-origin: 70% 70%; animation: wave 2.4s ease-in-out 1s 2; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(16deg); } 20%, 40% { transform: rotate(-8deg); } }
.hero h1 { font-size: clamp(34px, 4.8vw, 56px); line-height: 1.1; max-width: 15ch; margin-bottom: 18px; }
.hero .lead { font-size: 18.5px; color: var(--ink-2); max-width: 44ch; }
.ask {
  border-radius: 999px; padding: 6px 6px 6px 10px; border: 1.5px solid var(--rule); background: var(--paper);
  box-shadow: var(--shadow-lg);
}
.ask textarea { padding: 12px 12px; min-height: 50px; }
.ask .btn { border-radius: 999px; padding: 0 24px; }
.ask.flash { animation: flash .9s ease; }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(255, 216, 77, .9), var(--shadow-lg); } 100% { box-shadow: 0 0 0 14px rgba(255, 216, 77, 0), var(--shadow-lg); } }
.perks { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; padding: 0; font-size: 14px; color: var(--ink-2); }
.perks li { display: inline-flex; align-items: center; gap: 7px; }
.perks li::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; flex: none;
  background: var(--pen-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.3l2.6 2.5L12 5.5' fill='none' stroke='%230d8a7b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* demo tabs */
.demo-col { position: relative; }
.tries { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.try { background: var(--paper); border: 1px solid var(--rule); color: var(--ink-2); font-weight: 600; padding: 7px 15px; box-shadow: 0 2px 6px -4px rgba(21, 33, 59, .3); }
.try:hover { border-color: var(--pen); color: var(--pen-2); transform: translateY(-1px); }
.try[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
:root[data-theme="dark"] .try[aria-selected="true"] { background: var(--pen); color: #08201d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .try[aria-selected="true"] { background: var(--pen); color: #08201d; } }
.try { transition: transform .15s, border-color .15s, color .15s, background-color .15s; }

/* chat card */
.chat {
  margin: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: 24px; padding: 18px 18px 20px;
  box-shadow: var(--shadow-lg); min-height: 430px; display: flex; flex-direction: column; gap: 12px;
}
.chat-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.chat-head b { display: block; font-size: 14.5px; }
.chat-head small { display: block; font-size: 12.5px; color: var(--ok); }
.chat.is-busy .chat-head small { color: var(--ink-3); }
.avatar { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(145deg, #12a08f, #0b7a6d); }
.avatar svg { width: 18px; height: 18px; fill: none; stroke: var(--sun); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.msg { max-width: 92%; font-size: 15px; line-height: 1.6; }
.msg-user {
  align-self: flex-end; background: var(--pen); color: #fff; padding: 10px 15px; border-radius: 18px 18px 4px 18px;
  font-weight: 500; box-shadow: 0 8px 18px -12px rgba(13, 138, 123, .9);
}
:root[data-theme="dark"] .msg-user { color: #08201d; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .msg-user { color: #08201d; } }
.msg-bot { align-self: flex-start; display: flex; flex-direction: column; gap: 10px; max-width: 100%; }
.answer { margin: 0; background: var(--paper-2); padding: 12px 15px; border-radius: 4px 18px 18px 18px; min-height: 2.2em; }
.answer:empty { display: none; }
.typing { display: inline-flex; gap: 5px; padding: 12px 15px; background: var(--paper-2); border-radius: 4px 18px 18px 18px; width: max-content; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); animation: bounce 1s infinite ease-in-out; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 80%, 100% { transform: translateY(0); opacity: .45; } 40% { transform: translateY(-5px); opacity: 1; } }

/* streaming words + highlighter sweep */
.js .w { opacity: 0; filter: blur(3px); transition: opacity .25s ease, filter .25s ease; }
.js .w.on { opacity: 1; filter: none; }
mark.hl {
  color: inherit; font-weight: 700; padding: 0 2px; border-radius: 3px;
  background: linear-gradient(transparent 52%, var(--sun) 52%) no-repeat 0 0 / 0% 100%;
  transition: background-size .7s cubic-bezier(.3, .8, .3, 1);
}
mark.hl.on { background-size: 100% 100%; }
.msg-user { transform: translateY(6px) scale(.98); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.2), opacity .25s; }
.msg-user.is-in { transform: none; opacity: 1; }
.no-js .msg-user, html:not(.js) .msg-user { transform: none; opacity: 1; }

.cite-card {
  margin: 0; padding: 12px 15px 12px 16px; border-radius: 14px; border: 1px solid var(--rule); border-left: 4px solid var(--sun);
  background: var(--sun-soft); font-family: var(--serif); font-size: 14.5px; line-height: 1.7; color: var(--ink);
  opacity: 0; transform: translateY(12px); transition: opacity .45s ease, transform .45s cubic-bezier(.2, .9, .3, 1.1);
}
.cite-card.is-in { opacity: 1; transform: none; }
.cite-card cite { display: block; margin-top: 6px; font-family: var(--font); font-style: normal; font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.verified {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; font-size: 12.5px; font-weight: 700; color: var(--ok);
  background: color-mix(in srgb, var(--ok) 12%, var(--paper)); padding: 5px 11px 5px 7px; border-radius: 999px;
  opacity: 0; transform: scale(.7); transition: opacity .3s, transform .45s cubic-bezier(.2, 1.6, .4, 1);
}
.verified.is-in { opacity: 1; transform: none; }
.verified svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-reduced-motion: reduce) {
  .blob, .wave, .typing i { animation: none; }
  .js .w, mark.hl, .cite-card, .verified, .msg-user { transition: none; }
}

/* trust strip */
.trust { border-block: 1px solid var(--rule); background: var(--paper); position: relative; z-index: 1; }
.trust-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 28px; padding-top: 16px; padding-bottom: 16px; font-size: 14.5px; color: var(--ink-2); }
.trust-row b { color: var(--pen-2); font-size: 17px; }

/* ---------- sections ---------- */
.section { border-top: 0; padding: 88px 0; }
.section-tint { background: var(--paper-2); }
.section-sky { background: var(--sky); }
.section h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; }
.section .sub { font-size: 17.5px; }

.reveal { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } }

.icon, .ti { display: grid; place-items: center; flex: none; border-radius: 14px; }
.icon { width: 48px; height: 48px; margin-bottom: 16px; }
.icon svg, .ti svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-jade { background: #dcf5ef; color: #0b7a6d; }
.i-sun { background: #fff3c4; color: #9a6b00; }
.i-sky { background: #e2efff; color: #2f6fca; }
.i-rose { background: #ffe6e3; color: #c4473a; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-jade { background: #123a37; color: #6fe0cd; }
  :root:not([data-theme="light"]) .i-sun { background: #3a3417; color: #f3d266; }
  :root:not([data-theme="light"]) .i-sky { background: #16273d; color: #8cbcff; }
  :root:not([data-theme="light"]) .i-rose { background: #3a1f1d; color: #ff9a8e; }
}

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 24px 22px 22px;
  display: flex; flex-direction: column; box-shadow: 0 1px 2px rgba(21, 33, 59, .04);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s, opacity .6s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; letter-spacing: -0.01em; }
.card p { margin: 0 0 16px; color: var(--ink-2); font-size: 15px; flex: 1; }
.card q { display: block; font-size: 14px; color: var(--pen-2); background: var(--paper-2); border-radius: 12px; padding: 10px 12px; font-style: normal; font-weight: 500; }
.card q::before, .card q::after { content: none; }
.uses { display: none; }

.doc-split { gap: 72px; }
.paper { border-radius: 18px; box-shadow: var(--shadow-lg); border: 1px solid var(--rule); transform: rotate(.8deg); transition: transform .4s ease, opacity .6s ease; }
.paper.is-in { transform: rotate(.8deg); }
.paper:hover { transform: rotate(0) translateY(-3px); }
.paper mark { text-decoration: none; background: linear-gradient(transparent 55%, color-mix(in srgb, var(--seal) 28%, transparent) 55%); font-weight: 600; }
.note { border-radius: 0 12px 12px 0; }
.checks li::before { background: var(--pen-tint); border-color: var(--pen); }

.topics { gap: 12px; max-width: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.topic {
  display: flex; align-items: center; gap: 12px; text-align: left; border-radius: 16px; padding: 14px 16px;
  border: 1px solid var(--rule); background: var(--paper); font-weight: 600; font-size: 15.5px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s, opacity .6s ease;
}
.topic:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: transparent; background: var(--paper); color: var(--ink); }
.ti { width: 40px; height: 40px; border-radius: 12px; }
.ti svg { width: 21px; height: 21px; }

.popular { gap: 0 40px; border-top: 0; }
.popular li { border-bottom: 1px solid color-mix(in srgb, var(--pen) 14%, var(--rule)); }
.popular a { padding: 16px 4px; font-weight: 500; transition: color .15s, padding .2s ease; }
.popular a:hover { padding-left: 10px; color: var(--pen-2); }
.popular small { background: var(--paper); border-radius: 999px; padding: 2px 10px; color: var(--ink-2); font-weight: 600; }
.more-link { display: inline-flex; margin-top: 24px; font-weight: 700; }

.promises { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.promise h3 { font-size: 17.5px; font-weight: 700; }
.promise p { font-size: 15px; }

.faq-wrap .faq { max-width: 820px; }
.faq { border-top: 0; display: grid; gap: 10px; margin-top: 28px; }
.faq details { background: var(--paper); border: 1px solid var(--rule); border-radius: 16px; padding: 0 20px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { padding: 18px 36px 18px 0; }
.faq details p { margin-bottom: 18px; }

.closing { background: var(--band); background-image: radial-gradient(600px 300px at 85% 0%, rgba(255, 216, 77, .28), transparent 70%), radial-gradient(500px 280px at 0% 100%, rgba(159, 231, 218, .35), transparent 70%); padding: 84px 0; }
.closing h2 { max-width: 24ch; }

/* footer: light */
.site-footer { background: var(--band-2); color: var(--ink-2); border-top: 1px solid var(--rule); }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--pen-2); }
.site-footer .brand { color: var(--ink); }
.footer-grid h4 { color: var(--ink); }
.footer-base { border-top: 1px solid var(--rule); color: var(--ink-3); }

/* Q&A + other pages pick up the theme */
.qa-short { background: var(--sun-soft); border-left-color: var(--sun); border-radius: 0 18px 18px 0; }
.qa-short h2 { color: #8a5b00; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qa-short h2 { color: var(--sun); } }
.law-quote blockquote { border-radius: 0 14px 14px 0; border-left-color: var(--pen); }
.qa-status { border-radius: 16px; background: var(--paper-2); border-color: transparent; }
.qa-ask { border-radius: 22px; background-image: radial-gradient(420px 220px at 100% 0%, rgba(255, 216, 77, .25), transparent 70%); }
.q-list a { border-radius: 12px; padding: 18px 12px; margin: 0 -12px; transition: background-color .15s; }
.q-list a:hover { background: var(--paper-2); }
.hub-topic { background: var(--paper); border: 1px solid var(--rule); border-radius: 20px; padding: 24px; transition: box-shadow .2s, transform .2s; }
.hub-topic:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.auth-side { background: var(--paper-2); background-image: radial-gradient(500px 300px at 0% 0%, rgba(159, 231, 218, .5), transparent 70%), radial-gradient(400px 260px at 100% 100%, rgba(255, 216, 77, .35), transparent 70%); }
.field input { border-radius: 12px; }
.auth-box .btn-primary, .auth-box .btn-google { border-radius: 999px; }
.plan-opt, .pay, .kpis, .table-wrap { border-radius: 18px; }

@media (max-width: 1000px) {
  .cards, .promises { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding: 32px 0 56px; gap: 36px; }
  .chat { min-height: 0; }
  .doc-split { gap: 40px; }
  .paper, .paper.is-in { transform: none; }
}
@media (max-width: 600px) {
  .ask { border-radius: 22px; padding: 6px; }
  .ask .btn { border-radius: 16px; }
  .cards, .promises, .topics { grid-template-columns: 1fr; }
  .chat { border-radius: 20px; padding: 14px 14px 16px; }
  .trust-row { justify-content: flex-start; }
  .section { padding: 64px 0; }
  .b1 { width: 340px; height: 340px; } .b2 { width: 300px; height: 300px; } .b3 { display: none; }
}

/* hover lift must beat the reveal transform (.js .reveal.is-in) */
.js .card.reveal.is-in:hover, .card:hover { transform: translateY(-4px); }
.js .topic.reveal.is-in:hover, .topic:hover { transform: translateY(-3px); }
.js .paper.reveal.is-in:hover { transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) {
  .js .card.reveal.is-in:hover, .card:hover, .js .topic.reveal.is-in:hover, .topic:hover, .js .paper.reveal.is-in:hover { transform: none; }
}
.popular a { align-items: center; }
.popular small { flex: none; }
.card h3, .promise h3, .hub-topic h2 { text-wrap: balance; }
