/* Layout: split hero (promise left, drop zone right), then a ledger-style results list. */
:root {
  --paper: #f6f7fb;
  --card: #ffffff;
  --ink: #10132b;
  --muted: #5a6080;
  --line: #e1e4f0;
  --accent: #5b5bf7;
  --accent-ink: #ffffff;
  --accent-soft: #ececff;
  --flag: #d93a52;
  --flag-soft: #fde8ec;
  --gold: #b07a0c;

  --f-display: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Figtree', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --s-xs: 0.8125rem;
  --s-sm: 0.9375rem;
  --s-md: 1.0625rem;
  --s-lg: 1.375rem;
  --s-xl: clamp(1.75rem, 1.2rem + 2vw, 2.375rem);
  --s-2xl: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);

  --r: 14px;
  --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b0c18; --card: #14162a; --ink: #ecedf8; --muted: #9a9ec0; --line: #262a45;
    --accent: #8b8bff; --accent-ink: #0b0c18; --accent-soft: #24264a;
    --flag: #ff7b8c; --flag-soft: #3a1c26; --gold: #e8b64a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b0c18; --card: #14162a; --ink: #ecedf8; --muted: #9a9ec0; --line: #262a45;
    --accent: #8b8bff; --accent-ink: #0b0c18; --accent-soft: #24264a;
    --flag: #ff7b8c; --flag-soft: #3a1c26; --gold: #e8b64a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--s-md)/1.55 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--f-mono); font-size: 0.85em; background: var(--accent-soft); padding: 0.1em 0.35em; border-radius: 5px; word-break: break-all; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.08; text-wrap: balance; margin: 0; letter-spacing: -0.02em; }
h2 { font-size: var(--s-xl); font-weight: 800; }
h3 { font-size: var(--s-lg); font-weight: 600; }

.wrap { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--card); padding: 8px 12px; }

.eyebrow { font: 600 var(--s-xs)/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.12em; color: var(--accent); margin: 0 0 14px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 var(--s-sm)/1 var(--f-body); border-radius: 999px; padding: 12px 20px;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); padding: 10px 16px; }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--accent); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link.danger { color: var(--flag); }

/* Header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-inner { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 1.25rem/1 var(--f-display); letter-spacing: -0.02em; }
.logo-mark { position: relative; width: 30px; height: 22px; flex: none; }
.logo-mark i { position: absolute; top: 0; width: 22px; height: 22px; border-radius: 50%; }
.logo-mark i:first-child { left: 0; background: var(--accent); }
.logo-mark i:last-child { right: 0; border: 2.5px solid var(--ink); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: var(--s-sm); font-weight: 500; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.install { margin-left: 4px; }
.nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 8px; }
.pro-tag { font: 600 0.65rem/1 var(--f-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); vertical-align: 2px; margin-left: 2px; }
.pro-badge { font: 600 var(--s-xs)/1 var(--f-body); padding: 6px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); }
.menu-btn { display: none; margin-left: auto; font: 600 var(--s-sm)/1 var(--f-body); color: var(--ink); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 9px 14px; cursor: pointer; }
@media (max-width: 860px) {
  .top-inner { flex-wrap: wrap; gap: 12px; }
  .menu-btn { display: inline-flex; }
  .nav { display: none; order: 10; width: 100%; flex-direction: column; gap: 0; margin: 0; padding-bottom: 6px; }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 2px; border-top: 1px solid var(--line); font-size: var(--s-md); }
  .nav a[aria-current="page"] { text-decoration: none; color: var(--accent); }
  .install { order: 5; }
}

/* Hero */
.hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(36px, 7vw, 88px) clamp(28px, 5vw, 56px); }
.hero-copy { min-width: 0; }
.hero h1 { font-size: var(--s-2xl); font-weight: 800; }
.hero h1 span { display: block; color: var(--accent); font-weight: 600; font-size: 0.78em; margin-top: 0.15em; }
.lede { font-size: var(--s-md); color: var(--muted); max-width: 52ch; margin: 20px 0 22px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.trust li { font-size: var(--s-xs); font-weight: 600; padding: 7px 12px 7px 28px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); position: relative; }
.trust li::before { content: ''; position: absolute; left: 12px; top: 50%; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(-45deg); }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }

.drop-card { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 14px; box-shadow: 0 20px 50px -30px rgb(30 30 90 / 0.28); min-width: 0; }
.drop { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: clamp(28px, 5vw, 44px) 18px; border: 2px dashed var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop.is-over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop input:focus-visible + .drop-icon { outline: 3px solid var(--accent); outline-offset: 6px; }
.drop-icon { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); position: relative; }
.drop-icon::before { content: ''; position: absolute; left: 50%; top: 12px; width: 2.5px; height: 18px; background: var(--accent-ink); transform: translateX(-50%); }
.drop-icon::after { content: ''; position: absolute; left: 50%; top: 12px; width: 11px; height: 11px; border-left: 2.5px solid var(--accent-ink); border-top: 2.5px solid var(--accent-ink); transform: translateX(-50%) rotate(45deg); }
.drop-title { font: 600 var(--s-lg)/1.2 var(--f-display); }
.drop-sub { color: var(--muted); font-size: var(--s-sm); }
.drop .btn { margin-top: 6px; pointer-events: none; }
.drop-foot { padding: 14px 6px 4px; display: grid; gap: 8px; font-size: var(--s-sm); color: var(--muted); }
.drop-foot p { margin: 0; }
.check { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--accent); }
.status { margin: 6px 6px 0; font-size: var(--s-sm); min-height: 0; }
.status:empty { display: none; }
.status.is-error { color: var(--flag); background: var(--flag-soft); padding: 10px 12px; border-radius: 10px; }
.status.is-busy { color: var(--muted); }

/* Results */
.results { padding-block: 8px 48px; scroll-margin-top: 80px; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 18px; }
.results-head h2 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.badge { font: 600 var(--s-xs)/1 var(--f-body); letter-spacing: 0.04em; padding: 6px 10px; border-radius: 999px; background: var(--flag-soft); color: var(--flag); }
.sum { margin: 0; font-family: var(--f-mono); font-size: var(--s-sm); color: var(--muted); font-variant-numeric: tabular-nums; }
.sum b { color: var(--ink); font-weight: 500; }
.sum .eq { color: var(--flag); }

.tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.tab { flex: none; font: 600 var(--s-sm)/1 var(--f-body); color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 999px; padding: 10px 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.tab b { font: 500 var(--s-xs)/1 var(--f-mono); font-variant-numeric: tabular-nums; padding: 4px 7px; border-radius: 999px; background: var(--paper); color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.tab[aria-selected="true"] b { background: var(--accent); color: var(--accent-ink); }
.tab:hover:not([aria-selected="true"]) { border-color: var(--accent); color: var(--ink); }

.panel { margin-top: 14px; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: clamp(14px, 2.5vw, 22px); }
.view-note { margin: 0 0 14px; color: var(--muted); font-size: var(--s-sm); max-width: 70ch; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 8px; }
.toolbar input, .toolbar select { font: 500 var(--s-sm)/1.2 var(--f-body); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.toolbar input { flex: 1 1 200px; min-width: 0; }
.tool-actions { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
@media (max-width: 560px) { .tool-actions { margin-left: 0; width: 100%; } .tool-actions .btn { flex: 1; } }

.list { list-style: none; margin: 0; padding: 0; }
.row { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 12px 4px; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font: 600 0.95rem/1 var(--f-display); color: #fff; background: hsl(var(--h, 160) 45% 42%); text-transform: uppercase; }
.who { min-width: 0; }
.handle { font: 500 var(--s-sm)/1.3 var(--f-mono); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.handle:hover { color: var(--accent); text-decoration: underline; }
.meta { font-size: var(--s-xs); color: var(--muted); margin-top: 2px; }
.row.is-done .handle { text-decoration: line-through; color: var(--muted); }
.row-actions { display: flex; gap: 6px; }
.chip { font: 600 var(--s-xs)/1 var(--f-body); border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 999px; padding: 8px 11px; cursor: pointer; white-space: nowrap; }
.chip:hover { border-color: var(--accent); color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.chip.keep[aria-pressed="true"] { color: var(--gold); border-color: var(--gold); background: transparent; }
@media (max-width: 480px) { .row { grid-template-columns: auto 1fr; } .row-actions { grid-column: 2; } }

.empty { text-align: center; padding: 36px 12px; color: var(--muted); }
.empty strong { display: block; font: 600 var(--s-lg)/1.2 var(--f-display); color: var(--ink); margin-bottom: 6px; }
.more { display: flex; margin: 14px auto 0; }
.clear-row { font-size: var(--s-xs); color: var(--muted); margin: 14px 0 0; }

.ad-slot { margin-top: 20px; min-height: 90px; border: 1px dashed var(--line); border-radius: var(--r); display: grid; place-items: center; color: var(--muted); font-size: var(--s-xs); }

/* Pages */
.page-hero { padding-block: clamp(32px, 6vw, 72px) 20px; }
.page-hero h1 { font-size: var(--s-2xl); font-weight: 800; }
.page-hero .lede { margin-bottom: 0; }
.check-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .check-hero { grid-template-columns: 1fr; } }
.band { padding-block: clamp(48px, 7vw, 88px) 0; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.guide .cta-row { margin-top: 28px; }
.btn-lg { padding: 15px 24px; font-size: var(--s-md); }
.prose { max-width: 68ch; }
.prose h2 { font-size: var(--s-lg); margin-top: 28px; }
.prose p { color: var(--muted); }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.2em; }
.prose li { margin-block: 6px; }
.prose li b, .prose p b { color: var(--ink); }
.hint { font-size: var(--s-sm); color: var(--muted); }
.article-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.article-list a { display: block; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink); text-decoration: none; }
.article-list a:hover, .article-list a:focus-visible { border-color: var(--accent); }
.article-list h2, .article-list h3 { font-size: var(--s-lg); margin: 0 0 8px; }
.article-list p { margin: 0; color: var(--muted); }
.article-list + .cta-row { margin-top: 28px; }
@media (max-width: 700px) { .article-list { grid-template-columns: 1fr; } }
.note { font-size: var(--s-sm); padding: 10px 14px; border-radius: 10px; background: var(--flag-soft); color: var(--ink) !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Landing mock of the results list */
.mock { margin: 0; background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 6px); padding: 16px 18px 12px; box-shadow: 0 20px 50px -30px rgb(30 30 90 / 0.28); min-width: 0; }
.mock-head { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.mock-tab { font: 600 var(--s-xs)/1 var(--f-body); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; display: inline-flex; gap: 6px; align-items: center; }
.mock-tab b { font: 500 var(--s-xs)/1 var(--f-mono); }
.mock-tab.is-on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mock-list .chip { cursor: default; }
.mock-av1 { --h: 150; } .mock-av2 { --h: 280; } .mock-av3 { --h: 20; }
.mock figcaption { font-size: var(--s-xs); color: var(--muted); text-align: right; }

.howto { list-style: none; counter-reset: how; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.howto li { counter-increment: how; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.howto li::before { content: counter(how); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 600 var(--s-sm)/1 var(--f-mono); margin-bottom: 14px; }
.howto h3 { margin-bottom: 6px; }
.howto p { margin: 0; color: var(--muted); font-size: var(--s-sm); }
@media (max-width: 760px) { .howto { grid-template-columns: 1fr; } }

.pro-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; background: var(--ink); color: var(--paper); border-radius: calc(var(--r) + 6px); padding: clamp(24px, 4vw, 40px); }
.pro-band > div { max-width: 56ch; min-width: 0; }
.pro-band .eyebrow { color: var(--accent); }
.pro-band p:not(.eyebrow) { color: color-mix(in srgb, var(--paper) 75%, var(--ink)); margin: 12px 0 0; }

.upsell { margin: 16px 0 0; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); font-size: var(--s-sm); }

/* History */
.history { display: grid; gap: 16px; }
.lock { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px 18px; border-radius: var(--r); border: 1.5px solid var(--accent); background: var(--accent-soft); }
.lock > div { max-width: 62ch; min-width: 0; font-size: var(--s-sm); }
.lock strong { display: block; font-size: var(--s-md); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats:empty { display: none; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 4px; min-width: 0; }
.stat-label { font-size: var(--s-xs); color: var(--muted); }
.stat-value { font: 600 1.5rem/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.panel-title { font-size: var(--s-lg); font-weight: 600; margin-bottom: 12px; }
.history .panel { margin-top: 0; }
.chart { overflow-x: auto; }
.chart svg { width: 100%; min-width: 320px; height: auto; display: block; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--muted); font: 500 11px var(--f-mono); }
.chart .area { fill: var(--accent); opacity: 0.12; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; }
.chart .dot { fill: var(--card); stroke: var(--accent); stroke-width: 2; }
.chart .dot.end { fill: var(--accent); }
.chart .end-label { fill: var(--ink); font: 600 13px var(--f-mono); }
.chart-empty { color: var(--muted); margin: 0; padding: 24px 0; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { padding: 14px 0 14px 20px; border-left: 2px solid var(--line); position: relative; }
.tl-item::before { content: ''; position: absolute; left: -6px; top: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--accent); }
.tl-date { font: 500 var(--s-xs)/1.3 var(--f-mono); color: var(--muted); margin-bottom: 4px; }
.tl-line { margin: 2px 0; }
.tl-line.muted { color: var(--muted); font-size: var(--s-sm); }
.neg { color: var(--flag); font-weight: 600; }
.handles { list-style: none; padding: 0; margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tl-gained summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: var(--s-sm); margin-top: 4px; }

/* Pricing */
.seg .save { font: 600 0.7rem/1 var(--f-body); padding: 3px 6px; border-radius: 6px; background: var(--accent-soft); color: var(--accent); margin-left: 4px; }
.seg-btn[aria-checked="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-btn[aria-checked="true"] .save { background: var(--accent-ink); }
.plan-sub { margin: -6px 0 0; font-size: var(--s-xs); color: var(--muted); }
.license { max-width: 760px; margin-top: 24px; }
.license p { margin: 0 0 12px; color: var(--muted); font-size: var(--s-sm); }
.license-form { display: flex; flex-wrap: wrap; gap: 10px; }
.license-form input { flex: 1 1 260px; min-width: 0; font: 500 var(--s-sm)/1.2 var(--f-mono); color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.license-links { display: flex; flex-wrap: wrap; gap: 16px; }
.faq.compact { margin-top: 32px; }

/* Sections */
.section-head { max-width: 62ch; margin-bottom: 26px; }
.section-head p:not(.eyebrow) { color: var(--muted); margin: 14px 0 0; }

.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); margin-bottom: 20px; max-width: 100%; }
.seg-btn { font: 600 var(--s-sm)/1 var(--f-body); border: 0; background: transparent; color: var(--muted); padding: 10px 16px; border-radius: 999px; cursor: pointer; }
.seg-btn[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }

.steps { list-style: none; counter-reset: step; margin: 0; padding: 0; display: grid; gap: 0; max-width: 760px; }
.steps li { counter-increment: step; position: relative; padding: 14px 0 14px 54px; border-top: 1px solid var(--line); }
.steps li:first-child { border-top: 0; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 12px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 600 var(--s-sm)/1 var(--f-mono); background: var(--card); border: 1.5px solid var(--accent); color: var(--accent); }
.steps li:last-child::before { background: var(--accent); color: var(--accent-ink); }
.kbd { font-family: var(--f-mono); font-size: 0.9em; padding: 0 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--card); }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { border-top: 3px solid var(--accent); padding-top: 16px; }
.fact h3 { font-size: var(--s-lg); margin-bottom: 8px; }
.fact p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; gap: 26px; } }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; max-width: 760px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: calc(var(--r) + 4px); padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.plan.is-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-name { font: 600 var(--s-sm)/1 var(--f-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.plan-price { font: 800 2.5rem/1 var(--f-display); letter-spacing: -0.03em; }
.plan-price small { font: 500 var(--s-sm)/1 var(--f-body); color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.plan ul { margin: 0; padding: 0 0 0 18px; color: var(--muted); font-size: var(--s-sm); display: grid; gap: 6px; flex: 1; }
.plan .btn[aria-disabled="true"] { opacity: 0.55; cursor: default; pointer-events: none; }

.faq details { border-top: 1px solid var(--line); padding-block: 16px; max-width: 760px; }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 500 1.25rem/1 var(--f-mono); color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { color: var(--muted); margin: 10px 0 0; max-width: 68ch; }

.foot { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid var(--line); font-size: var(--s-xs); color: var(--muted); }
.foot-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 24px 36px; }
.foot p { margin: 0; max-width: 70ch; }
.foot-links { display: flex; flex-wrap: wrap; gap: 16px; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); font-size: var(--s-sm); font-weight: 500; padding: 12px 18px; border-radius: 999px; z-index: 20; max-width: calc(100% - 32px); }

/* ---------- Share image + Pro lock on Check ---------- */
.share-btn { margin-left: auto; }
@media (max-width: 560px) { .share-btn { margin-left: 0; width: 100%; } }
.tab .pro-tag { margin: 0; vertical-align: 0; }
.tab[aria-selected="true"] .pro-tag { background: var(--accent); color: var(--accent-ink); }
.empty p { margin: 0 auto 16px; max-width: 46ch; }
.empty .btn { display: inline-flex; }
.share-dlg { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); color: var(--ink); }
.install-steps { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 10px; line-height: 1.5; }
.share-dlg::backdrop { background: rgba(11, 12, 24, 0.6); }
.share-dlg h2 { margin: 0 0 4px; font-size: var(--s-lg); }
.share-dlg .hint { margin: 0 0 12px; font-size: var(--s-sm); color: var(--muted); }
.share-dlg img { display: block; width: 100%; max-width: 280px; aspect-ratio: 9 / 16; margin: 0 auto 12px; border-radius: 14px; box-shadow: 0 8px 30px rgba(11, 12, 24, 0.25); }
.share-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.share-actions .btn { flex: 1 1 auto; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }


/* Pro snapshot comparison */
.compare-panel { overflow: hidden; }
.compare-hint { color: var(--muted); font-size: var(--s-sm); margin: 8px 0; }
.compare-controls { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin: 18px 0; }
.compare-controls label { display: grid; gap: 6px; color: var(--muted); font-size: var(--s-xs); font-weight: 600; }
.compare-controls select { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); background: var(--paper); font: 500 var(--s-sm)/1.2 var(--f-body); }
.compare-controls button:disabled { opacity: .5; cursor: not-allowed; }
.compare-range { margin: 12px 0; color: var(--muted); font-size: var(--s-sm); }
.compare-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.compare-stat { min-width: 0; display: grid; gap: 6px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.compare-stat .stat-value { font: 600 var(--s-lg)/1.2 var(--f-display); overflow-wrap: anywhere; }
.compare-stat .positive { color: #16805d; }
.compare-stat .negative { color: var(--flag); }
.compare-lists { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.compare-list { min-width: 0; }
.compare-list h3 { font-size: var(--s-md); margin-bottom: 8px; }
.compare-list .handles { max-height: 280px; overflow: auto; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.compare-list .handles li + li { margin-top: 6px; }
@media (max-width: 620px) {
  .compare-controls { grid-template-columns: 1fr; }
  .compare-controls .btn { width: 100%; }
  .compare-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compare-lists { grid-template-columns: 1fr; }
}
