/* Shared styles for ZaskPress app pages (thanks, account, buy-test). Matches the landing page tokens. */
:root { --paper:#F5F6F8; --surface:#FFFFFF; --surface-2:#ECEEF2; --line:#D9DDE5; --line-strong:#868EA2; --ink:#141826; --ink-muted:#565D70;
  --jade:#0A7F71; --on-jade:#FFFFFF; --jade-tint:#DCF2EE; --jade-strong:#086357; --ember:#E4572E; --risk-mid:#8F5400; --risk-high:#C02A2A; }
@media (prefers-color-scheme: dark) { :root { --paper:#0E111A; --surface:#161A26; --surface-2:#1F2433; --line:#2B3144; --line-strong:#5F6886; --ink:#EDEFF4; --ink-muted:#A2A9BA;
  --jade:#2CC9B2; --on-jade:#0B1F1C; --jade-tint:#10302C; --jade-strong:#7FE3D3; --ember:#FF7A4F; --risk-mid:#F2A33A; --risk-high:#FF6B63; color-scheme:dark; } }
* { box-sizing:border-box; } html, body { margin:0; } [hidden] { display:none !important; }
body { background:var(--paper); color:var(--ink); font:16px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing:antialiased; }
main { max-width:720px; margin:0 auto; padding:32px max(20px, env(safe-area-inset-left, 0px)) 80px; }
.top { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:28px; }
.top img { height:32px; width:auto; display:block; }
h1, h2 { font-family:"Bricolage Grotesque", "Plus Jakarta Sans", sans-serif; letter-spacing:-0.6px; line-height:1.12; margin:0; text-wrap:balance; }
h1 { font-size:clamp(30px, 5vw, 40px); } h2 { font-size:22px; }
p { margin:0; } .muted { color:var(--ink-muted); } .small { font-size:14px; }
.eyebrow { font-size:12px; font-weight:600; letter-spacing:0.08em; text-transform:uppercase; color:var(--jade-strong); margin-bottom:8px; }
.card { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:28px; margin-top:20px; }
.stack > * + * { margin-top:14px; }
a { color:var(--jade); }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:8px; font-family:inherit; font-weight:600; font-size:15px; line-height:22px; border-radius:12px; padding:11px 18px; border:1px solid transparent; text-decoration:none; cursor:pointer; min-height:44px; }
.btn-primary { background:var(--jade); color:var(--on-jade); } .btn-primary:hover { filter:brightness(1.08); }
.btn-secondary { background:transparent; color:var(--ink); border-color:var(--line-strong); } .btn-secondary:hover { border-color:var(--ink); }
.btn-quiet { background:transparent; color:var(--ink-muted); padding:8px 10px; min-height:36px; font-weight:500; }
.btn-quiet:hover { color:var(--ink); }
.btn:disabled { opacity:.6; cursor:default; }
:focus-visible { outline:2px solid var(--jade); outline-offset:2px; }
.row { display:flex; flex-wrap:wrap; gap:12px; align-items:center; }
.key { display:flex; align-items:center; justify-content:space-between; gap:12px; background:var(--paper); border:1px solid var(--line); border-radius:12px; padding:14px 16px; }
.key code { font:600 clamp(16px, 3.4vw, 20px)/1.3 "JetBrains Mono", ui-monospace, Menlo, monospace; letter-spacing:1px; word-break:break-all; }
.badge { display:inline-block; font-size:12px; font-weight:600; border-radius:999px; padding:3px 10px; background:var(--jade-tint); color:var(--jade-strong); }
.badge.warn { background:color-mix(in srgb, var(--risk-mid) 15%, transparent); color:var(--risk-mid); }
.badge.off { background:var(--surface-2); color:var(--ink-muted); }
.sites { list-style:none; padding:0; margin:0; border-top:1px solid var(--line); }
.sites li { display:flex; justify-content:space-between; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.sites code { font:14px/1.4 "JetBrains Mono", ui-monospace, Menlo, monospace; word-break:break-all; }
ol.steps { margin:0; padding-left:22px; } ol.steps li + li { margin-top:6px; }
label { display:block; font-weight:600; font-size:14px; margin-bottom:6px; }
input[type=email] { width:100%; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:12px; padding:11px 14px; min-height:44px; }
.msg { font-size:14px; } .msg.err { color:var(--risk-high); }
.spinner { width:22px; height:22px; border:3px solid var(--line); border-top-color:var(--jade); border-radius:50%; animation:spin .8s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation:none; } }
.toggle { display:inline-flex; background:var(--surface-2); border-radius:12px; padding:4px; gap:4px; }
.toggle button { font-family:inherit; font-weight:600; font-size:14px; line-height:20px; border:0; background:transparent; color:var(--ink-muted); padding:8px 14px; border-radius:9px; cursor:pointer; min-height:36px; }
.toggle button[aria-pressed=true] { background:var(--surface); color:var(--ink); box-shadow:0 1px 2px rgba(20,24,38,.08); }
.plans { display:grid; grid-template-columns:repeat(auto-fit, minmax(240px, 1fr)); gap:16px; }
.price { font-family:"Bricolage Grotesque", sans-serif; font-size:36px; font-weight:700; letter-spacing:-1px; }
.note { border-left:3px solid var(--ember); padding:10px 14px; background:var(--surface); border-radius:8px; font-size:14px; }

/* ---------- Account area (account.html) ---------- */
.skip { position:absolute; left:-9999px; } .skip:focus { left:12px; top:12px; z-index:10; background:var(--surface); padding:8px 12px; border-radius:8px; }
.appbar { border-bottom:1px solid var(--line); background:var(--surface); position:sticky; top:0; z-index:5; }
.appbar-in { max-width:1120px; margin:0 auto; padding:14px max(20px, env(safe-area-inset-left, 0px)); display:flex; align-items:center; justify-content:space-between; gap:16px; }
.appbar img { height:28px; width:auto; display:block; }
.who-email { max-width:40vw; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.center-msg { display:flex; flex-direction:column; align-items:center; gap:14px; padding:96px 20px; }
#signin { max-width:560px; padding-top:56px; }
.app { max-width:1120px; margin:0 auto; padding:32px max(20px, env(safe-area-inset-left, 0px)) 96px; display:grid; grid-template-columns:232px minmax(0, 1fr); gap:40px; align-items:start; }
.sidenav { position:sticky; top:88px; display:flex; flex-direction:column; gap:2px; }
.sidenav a { display:flex; align-items:center; gap:12px; padding:10px 12px; border-radius:10px; color:var(--ink-muted); text-decoration:none; font-weight:500; font-size:15px; }
.sidenav a:hover { background:var(--surface-2); color:var(--ink); }
.sidenav a[aria-current=page] { background:var(--jade-tint); color:var(--jade-strong); font-weight:600; }
.sidenav svg { width:20px; height:20px; flex:none; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.view { min-width:0; outline:none; max-width:none; margin:0; padding:0; }
.view h1:focus { outline:none; }
.lead { margin-top:10px; max-width:60ch; }
.row.spread { justify-content:space-between; }
.strong { font-weight:600; }
.mono { font-family:"JetBrains Mono", ui-monospace, Menlo, monospace; }
.sr { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.hint { margin-top:6px; }
.tiles { display:grid; grid-template-columns:repeat(auto-fit, minmax(190px, 1fr)); gap:16px; margin-top:24px; }
.tile { background:var(--surface); border:1px solid var(--line); border-radius:16px; padding:20px; display:flex; flex-direction:column; gap:6px; }
.tile-label { font-size:12px; font-weight:600; letter-spacing:.08em; text-transform:uppercase; color:var(--ink-muted); }
.tile-value { font-family:"Bricolage Grotesque", sans-serif; font-size:22px; font-weight:700; letter-spacing:-.4px; line-height:1.25; }
.meter { height:6px; border-radius:99px; background:var(--surface-2); overflow:hidden; margin-top:6px; }
.meter span { display:block; height:100%; background:var(--jade); border-radius:99px; }
.alert { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 20px; margin-top:20px; padding:16px 18px; border-radius:14px; border:1px solid var(--line); background:var(--surface); border-left:4px solid var(--jade); }
.alert.warn { border-left-color:var(--risk-mid); }
.alert > div { flex:1 1 320px; }
.checklist { list-style:none; margin:0; padding:0; }
.checklist li { display:flex; gap:14px; align-items:flex-start; padding:12px 0; border-top:1px solid var(--line); }
.checklist li:first-child { border-top:0; padding-top:4px; }
.checklist li > div { flex:1; }
.checklist li > a { font-size:14px; font-weight:600; white-space:nowrap; }
.tick { flex:none; width:24px; height:24px; border-radius:50%; border:2px solid var(--line-strong); margin-top:1px; position:relative; }
.checklist li.done .tick { background:var(--jade); border-color:var(--jade); }
.checklist li.done .tick::after { content:""; position:absolute; left:7px; top:3px; width:6px; height:11px; border:solid var(--on-jade); border-width:0 2px 2px 0; transform:rotate(45deg); }
.quick { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:16px; margin-top:20px; }
.quick-card { display:flex; flex-direction:column; gap:4px; padding:18px 20px; border-radius:16px; border:1px solid var(--line); background:var(--surface); color:var(--ink); text-decoration:none; }
.quick-card:hover { border-color:var(--jade); }
.dl { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:14px 24px; margin:4px 0 0; }
.dl dt { font-size:13px; color:var(--ink-muted); margin-bottom:2px; }
.dl dd { margin:0; font-weight:600; overflow-wrap:anywhere; }
.card.flush { padding:0; overflow:hidden; }
.card-pad { padding:24px 24px 8px; }
.card.empty { text-align:left; }
table.data { width:100%; border-collapse:collapse; font-size:15px; }
table.data th { text-align:left; font-size:12px; font-weight:600; letter-spacing:.06em; text-transform:uppercase; color:var(--ink-muted); padding:12px 16px; border-bottom:1px solid var(--line); background:var(--paper); }
table.data th:first-child, table.data td:first-child { padding-left:24px; } table.data th:last-child, table.data td:last-child { padding-right:24px; }
table.data td { padding:12px 16px; border-bottom:1px solid var(--line); vertical-align:middle; }
table.data tr:last-child td { border-bottom:0; }
table.data td.actions { text-align:right; white-space:nowrap; }
table.data a.mono { color:var(--ink); text-decoration:none; overflow-wrap:anywhere; } table.data a.mono:hover { color:var(--jade); text-decoration:underline; }
.dot { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:8px; vertical-align:1px; background:var(--line-strong); }
.dot.on { background:var(--jade); }
.bullets { margin:0; padding-left:20px; } .bullets li + li { margin-top:6px; }
.faq { padding:6px 24px; }
.faq details { border-bottom:1px solid var(--line); } .faq details:last-child { border-bottom:0; }
.faq summary { cursor:pointer; font-weight:600; padding:16px 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(--ink-muted); font-weight:400; font-size:20px; line-height:1; }
.faq details[open] summary::after { content:"–"; }
.faq details p { padding:0 0 16px; max-width:65ch; }
.grid2 { display:grid; grid-template-columns:repeat(auto-fit, minmax(220px, 1fr)); gap:14px 16px; }
input[type=text], select, textarea { width:100%; font:inherit; color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:12px; padding:11px 14px; min-height:44px; }
textarea { resize:vertical; min-height:140px; line-height:1.5; }
.check { display:flex; gap:12px; align-items:flex-start; }
.check input { width:20px; height:20px; margin:2px 0 0; accent-color:var(--jade); flex:none; }
.check label { display:flex; flex-direction:column; gap:2px; font-weight:600; margin:0; }
.check label .small { font-weight:400; }
.changelog + .changelog { padding-top:14px; border-top:1px solid var(--line); }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); max-width:min(520px, calc(100vw - 32px)); background:var(--ink); color:var(--paper); padding:12px 18px; border-radius:12px; font-size:15px; box-shadow:0 8px 24px rgba(20,24,38,.2); z-index:20; }
.toast.err { background:var(--risk-high); color:#fff; }
@media (max-width: 860px) {
  .app { grid-template-columns:minmax(0, 1fr); gap:20px; padding-top:16px; }
  .sidenav { position:static; flex-direction:row; overflow-x:auto; gap:6px; margin:0 -20px; padding:0 20px 4px; scrollbar-width:none; }
  .sidenav a { white-space:nowrap; padding:8px 12px; border:1px solid var(--line); background:var(--surface); font-size:14px; }
  .sidenav svg { display:none; }
  .who-email { display:none; }
  .card { padding:20px; }
  table.data thead { display:none; }
  table.data tr { display:block; padding:12px 16px; border-bottom:1px solid var(--line); }
  table.data td { display:flex; justify-content:space-between; gap:12px; padding:4px 0; border:0; }
  table.data tr { padding:12px 20px; }
  table.data td, table.data td:first-child, table.data td:last-child { padding-left:0; padding-right:0; }
  table.data td[data-label]::before { content:attr(data-label); color:var(--ink-muted); font:400 13px/1.6 "Plus Jakarta Sans", system-ui, sans-serif; letter-spacing:0; }
  .card-pad { padding:20px 20px 4px; }
  table.data td.actions { justify-content:flex-end; }
}

/* Legal links on app pages */
.legal-foot { display:flex; flex-wrap:wrap; justify-content:center; gap:6px 18px; padding:8px 20px 40px; font-size:13px; }
.legal-foot a { color:var(--ink-muted); }
