:root {
  --bg: #f7f8f7;
  --surface: #ffffff;
  --surface-2: #f1f3f4;
  --text: #1f2421;
  --muted: #5f6763;
  --line: #dadfdc;
  --grid-line: #e2e3e3;
  --head-bg: #f8f9fa;
  --head-on: #d3e3fd;
  --accent: #188038;
  --accent-ink: #ffffff;
  --accent-soft: #e6f4ea;
  --blue: #1a73e8;
  --blue-soft: #e8f0fe;
  --target: #fff8d6;
  --target-line: #e8b400;
  --bad: #c5221f;
  --bad-soft: #fce8e6;
  --shadow: 0 1px 2px rgba(0,0,0,.06), 0 4px 14px rgba(0,0,0,.06);
  --radius: 10px;
  --font: ui-sans-serif, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131614; --surface: #1b1f1d; --surface-2: #232825; --text: #e7ebe8; --muted: #9aa39e;
    --line: #313733; --grid-line: #2c312e; --head-bg: #202422; --head-on: #2a3b55;
    --accent: #34a853; --accent-ink: #0b1a10; --accent-soft: #1d3324; --blue: #8ab4f8; --blue-soft: #1c2738;
    --target: #3a3315; --target-line: #c99c00; --bad: #f28b82; --bad-soft: #3b1f1d;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
code, kbd { font-family: var(--mono); font-size: .88em; }
code { background: var(--surface-2); padding: .1em .35em; border-radius: 4px; }
kbd { border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 .35em; border-radius: 4px; background: var(--surface); }
.muted { color: var(--muted); }
.small { font-size: 13px; }
[hidden] { display: none !important; }

/* ── top bar ── */
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; height: 56px; padding: 0 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; text-decoration: none; letter-spacing: -.01em; }
.logo { width: 26px; height: 26px; border-radius: 7px; background: var(--accent); position: relative; overflow: hidden; }
.logo::before { content: ""; position: absolute; inset: 6px; border: 2px solid var(--accent-ink); border-radius: 2px;
  background: linear-gradient(var(--accent-ink),var(--accent-ink)) 4px 0/2px 100% no-repeat, linear-gradient(var(--accent-ink),var(--accent-ink)) 0 4px/100% 2px no-repeat; }
.points { margin-left: auto; font-weight: 600; background: var(--accent-soft); color: var(--accent); padding: 4px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.lesson-nav { display: flex; align-items: center; gap: 12px; margin-left: 12px; font-size: 14px; }
.navbtn { text-decoration: none; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--line); }
.navbtn:hover { background: var(--surface-2); }
.navbtn.disabled { pointer-events: none; opacity: .4; }

.env-badge { font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; color: #fff; }
.env-badge.staging { background: #e37400; }
.env-badge.local { background: #5f6368; }

/* ── buttons & chips ── */
.btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.lg { font-size: 16px; padding: 12px 22px; border-radius: 10px; }
.btn.small { font-size: 13px; padding: 4px 10px; }
.btn.ghost { background: transparent; }
.linkbtn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: 13px; }
.chip { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted); vertical-align: middle; }
.chip.green { background: var(--accent-soft); color: var(--accent); }
.chips { display: flex; gap: 6px; margin-bottom: 6px; }

/* ── home ── */
.hero { position: relative; max-width: 1120px; margin: 0 auto; padding: 72px 20px 48px; display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.hero::before { content: ""; position: absolute; inset: -40px 0 auto; height: 520px; z-index: -1; pointer-events: none;
  background: radial-gradient(600px 300px at 15% 30%, var(--accent-soft), transparent 70%), radial-gradient(500px 280px at 85% 40%, var(--blue-soft), transparent 70%); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 6px 12px; border-radius: 999px; margin-bottom: 20px; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero h1 { font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -.035em; margin: 0 0 20px; }
.hero h1 .mark { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); }
.lede { font-size: 19px; color: var(--muted); max-width: 32em; margin: 0 0 30px; }
.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn.xl { font-size: 17px; padding: 15px 26px; border-radius: 12px; box-shadow: 0 6px 20px -6px var(--accent); transition: transform .15s, box-shadow .15s, filter .15s; }
.btn.xl:hover { transform: translateY(-1px); box-shadow: 0 10px 26px -8px var(--accent); }
.btn.xl span { transition: transform .15s; }
.btn.xl:hover span { transform: translateX(3px); }
.progress-line { display: flex; align-items: center; gap: 10px; margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.progress-line .bar { width: 120px; height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.progress-line .bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; }
.reassure { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: var(--muted); }
.reassure li::before { content: "✓"; color: var(--accent); font-weight: 800; margin-right: 6px; }

.hero-demo { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 24px 48px -16px rgba(0,0,0,.18); overflow: hidden; transform: rotate(.6deg); }
.demo-bar { display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 14px; min-height: 42px; }
.demo-bar .fx { color: var(--muted); font-style: italic; font-weight: 600; }
.demo-bar code { background: none; padding: 0; }
table.demo { border-collapse: collapse; width: 100%; font-size: 14px; }
.demo th { background: var(--head-bg); color: var(--muted); font-weight: 500; font-size: 12px; border: 1px solid var(--grid-line); padding: 3px 8px; }
.demo td { border: 1px solid var(--grid-line); padding: 6px 10px; height: 34px; }
.demo tr:nth-child(2) td { font-weight: 600; }
.demo td.n { text-align: right; font-variant-numeric: tabular-nums; }
.demo td.out { background: var(--target); min-width: 64px; }
.demo td.filled { background: var(--accent-soft); }
.demo td.active { outline: 2px solid var(--blue); outline-offset: -2px; }
.demo td.editing { text-align: left; font-family: var(--mono); font-size: 13px; }
.demo td.flash { animation: flash .5s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--accent) 35%, transparent); } }
.demo-task { padding: 12px 14px; font-size: 14px; border-top: 1px solid var(--line); background: var(--surface); }
.demo-toast { position: absolute; right: 10px; top: 6px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(.96); transition: opacity .25s, transform .25s; }
.demo-toast.show { opacity: 1; transform: none; }

.stats { max-width: 1120px; margin: 0 auto; padding: 8px 20px 8px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stats > div { text-align: center; padding: 16px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.stats b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--accent); font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: var(--muted); }

.how { max-width: 1120px; margin: 0 auto; padding: 48px 20px 16px; }
.how h2, .cta-band h2 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.02em; margin: 0 0 20px; }
.how h2 { text-align: center; }
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.how-steps li { padding: 22px 22px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.how-num { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; margin-bottom: 12px; }
.how-steps p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.why { max-width: 1120px; margin: 0 auto; padding: 20px 20px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.why > div { background: var(--surface-2); border-radius: 14px; padding: 20px 22px; }
.why-icon { display: block; font-size: 22px; margin-bottom: 8px; }
.why p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.why a { color: var(--accent); font-weight: 600; }

.cta-band { max-width: 1080px; margin: 8px auto 48px; padding: 44px 24px; text-align: center; border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), var(--blue-soft)); }
.cta-band h2 { margin-bottom: 8px; }
.cta-band p { margin: 0 0 24px; color: var(--muted); font-size: 16px; }
.chip.free { background: var(--accent); color: var(--accent-ink); letter-spacing: .04em; font-size: 11px; }
.card.start { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.card.start .num { background: var(--accent); color: var(--accent-ink); }
.start-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 7px; border-radius: 999px; vertical-align: 1px; }
.catalog { max-width: 1120px; margin: 0 auto; padding: 16px 20px 40px; }
.cat { margin-top: 36px; }
.cat-head h2 { margin: 0; font-size: 22px; letter-spacing: -.01em; }
.cat-head p { margin: 2px 0 14px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.card { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--accent); transform: translateY(-1px); }
.card .num { grid-row: span 2; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 14px; color: var(--muted); }
.card.done .num { background: var(--accent); color: var(--accent-ink); }
.card-title { font-weight: 600; }
.card-meta { font-size: 13px; color: var(--muted); }
.footer { max-width: 1120px; margin: 0 auto; padding: 24px 20px 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer p { margin: 0; }

/* ── lesson page ── */
.lesson-page { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.lesson-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 380px 1fr; }
.panel { overflow-y: auto; padding: 22px 22px 40px; background: var(--surface); border-right: 1px solid var(--line); }
.panel h1 { font-size: 26px; margin: 4px 0 8px; letter-spacing: -.02em; }
.intro { color: var(--text); }
.intro p { margin: 0 0 10px; }
.steps { list-style: none; padding: 0; margin: 18px 0 0; counter-reset: step; display: grid; gap: 10px; }
.steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 46px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.steps li::before { content: counter(step); position: absolute; left: 12px; top: 12px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.steps li.current { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.steps li.current::before { background: var(--accent); color: var(--accent-ink); }
.steps li.solved { opacity: .75; }
.steps li.solved::before { content: "✓"; background: var(--accent); color: var(--accent-ink); }
.steps li.locked { opacity: .5; }
.step-tools { display: flex; gap: 8px; margin-top: 10px; }
.hint { margin-top: 10px; padding: 10px 12px; background: var(--surface-2); border-radius: 8px; font-size: 14px; }
.answer { margin-top: 6px; }
.feedback { margin-top: 10px; font-size: 14px; }
.bad { color: var(--bad); font-weight: 700; margin-right: 4px; }
.done-card { margin-top: 18px; padding: 18px; border-radius: var(--radius); background: var(--accent-soft); }
.done-card .big { font-size: 20px; font-weight: 700; }
.done-card p { margin: 6px 0 14px; }
.sheet-wrap { min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 14px 16px 16px; gap: 10px; }
.sheet-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sheet-tools .muted { margin-left: auto; }
#grid { flex: 1; min-height: 0; }
.toast { position: fixed; left: 50%; bottom: 32px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-weight: 700; padding: 10px 20px; border-radius: 999px; box-shadow: var(--shadow); z-index: 50; animation: pop .25s ease-out; transition: opacity .4s, transform .4s; }
.toast.out { opacity: 0; transform: translate(-50%, 10px); }
@keyframes pop { from { transform: translate(-50%, 12px) scale(.96); opacity: 0; } }

/* ── spreadsheet ── */
.ss { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.ss-bar { display: flex; align-items: center; height: 36px; border-bottom: 1px solid var(--line); background: var(--surface); }
.ss-name { width: 90px; padding: 0 10px; font-size: 13px; color: var(--text); border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; font-variant-numeric: tabular-nums; }
.ss-fx { padding: 0 10px; color: var(--muted); font-style: italic; font-weight: 600; font-size: 14px; border-right: 1px solid var(--line); height: 100%; display: flex; align-items: center; }
.ss-formula { flex: 1; height: 100%; border: 0; outline: 0; padding: 0 10px; font: 14px var(--mono); background: transparent; color: var(--text); }
.ss-scroll { flex: 1; overflow: auto; outline: none; position: relative; }
.ss-inner { position: relative; width: max-content; }
.ss-table { border-collapse: separate; border-spacing: 0; table-layout: fixed; font-size: 13px; user-select: none; -webkit-user-select: none; }
.ss-table th { position: sticky; z-index: 4; background: var(--head-bg); color: var(--muted); font-weight: 500; font-size: 12px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); }
.ss-table thead th { top: 0; height: 26px; }
.ss-table th.ss-rh { left: 0; text-align: center; }
.ss-table th.ss-corner { left: 0; top: 0; z-index: 5; }
.ss-table th.on { background: var(--head-on); color: var(--text); font-weight: 700; }
.ss-table td { height: 24px; padding: 0 5px; border-right: 1px solid var(--grid-line); border-bottom: 1px solid var(--grid-line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: cell; background: var(--surface); }
.ss-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.ss-table td.b, .ss-table td.e { text-align: center; }
.ss-table td.e { color: var(--bad); position: relative; }
.ss-table td.e::after { content: ""; position: absolute; right: 0; top: 0; border: 4px solid transparent; border-top-color: var(--bad); border-right-color: var(--bad); }
.ss-table td.target { background: var(--target); box-shadow: inset 0 0 0 1px var(--target-line); }
.ss-refs, .ss-sel, .ss-active, .ss-fillbox, .ss-handle, .ss-refbox { position: absolute; pointer-events: none; }
.ss-refs { inset: 0; z-index: 2; }
.ss-refbox { border: 2px dashed; }
.ss-sel { z-index: 2; display: none; background: rgba(26,115,232,.1); border: 1px solid var(--blue); }
.ss-active { z-index: 3; border: 2px solid var(--blue); }
.ss-handle { z-index: 3; width: 8px; height: 8px; background: var(--blue); border: 1px solid var(--surface); pointer-events: auto; cursor: crosshair; }
.ss-fillbox { z-index: 3; display: none; border: 1px dashed var(--text); }
.ss-fillbox.marching { border: 2px dashed var(--blue); }
.ss-editor { position: absolute; z-index: 6; display: none; border: 2px solid var(--blue); outline: none; padding: 0 4px; font: 13px var(--font); background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.ss-ac, .ss-hint, .ss-tip { position: absolute; z-index: 10; display: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow); font-size: 13px; }
.ss-ac { min-width: 280px; max-width: 420px; padding: 4px 0; }
.ss-ac div { padding: 5px 12px; cursor: pointer; display: grid; }
.ss-ac div span { color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ss-ac div.on { background: var(--surface-2); }
.ss-hint { max-width: 460px; padding: 10px 12px; }
.ss-hint .sig { font-family: var(--mono); font-size: 13px; }
.ss-hint .sig b { color: var(--blue); }
.ss-hint .desc { color: var(--muted); margin-top: 4px; }
.ss-tip { max-width: 300px; padding: 8px 10px; border-left: 3px solid var(--bad); }

/* ── responsive ── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 40px; gap: 28px; }
  .why, .how-steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: 36px; }
  .hero-demo { transform: none; }
  .hero-cta .btn { flex: 1 1 100%; justify-content: center; }
  .lesson-page { height: auto; overflow: visible; }
  .lesson-layout { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .sheet-wrap { height: 70vh; padding: 12px 16px; }
  .sheet-tools .muted { display: none; }
  .lesson-nav #position { display: none; }
  .topbar { gap: 8px; padding: 0 16px; }
  .lesson-nav { margin-left: 4px; gap: 6px; }
}
.navbtn, .points { white-space: nowrap; }

/* ── accounts & Pro ── */
.account { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.account + .points { margin-left: 0; }
.pro-badge { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #188038, #1a73e8); color: #fff; vertical-align: middle; }
body.is-pro .pro-only { display: none; }
.lock { font-size: 12px; }
.menu-wrap { position: relative; }
.avatar { width: 32px; height: 32px; border-radius: 50%; border: 0; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; font-size: 14px; }
.menu { position: absolute; right: 0; top: 40px; min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; z-index: 30; display: grid; }
.menu-who { padding: 8px 10px; font-weight: 600; border-bottom: 1px solid var(--line); margin-bottom: 4px; display: grid; }
.menu-who span { font-weight: 400; font-size: 12px; color: var(--muted); }
.menu a, .menu button { text-align: left; padding: 8px 10px; border-radius: 6px; text-decoration: none; background: none; border: 0; font: inherit; color: var(--text); cursor: pointer; }
.menu a:hover, .menu button:hover { background: var(--surface-2); }

.pricing { max-width: 920px; margin: 0 auto; padding: 48px 20px 32px; text-align: center; }
.pricing h1 { font-size: clamp(30px, 4.5vw, 44px); letter-spacing: -.03em; margin: 0 0 12px; line-height: 1.1; }
.pricing .lede { margin: 0 auto 28px; }
.billing-toggle { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 28px; }
.billing-toggle button { font: inherit; font-weight: 600; font-size: 14px; border: 0; background: none; color: var(--muted); padding: 8px 18px; border-radius: 999px; cursor: pointer; }
.billing-toggle button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.save { font-size: 12px; color: var(--accent); margin-left: 4px; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 6px; }
.plan.pro { border: 2px solid var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.plan h2 { margin: 0; font-size: 20px; display: flex; align-items: center; gap: 8px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 6px; }
.price b { font-size: 40px; letter-spacing: -.03em; }
.price span { color: var(--muted); }
.plan ul { padding-left: 20px; margin: 14px 0 20px; flex: 1; }
.plan li { margin: 6px 0; }
.plan .btn { justify-content: center; }
.plan .btn:disabled { opacity: .6; cursor: default; filter: none; }
.success-banner { margin: 0 auto 24px; padding: 14px 18px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.success-banner.ok { background: var(--accent-soft); border-color: var(--accent); }
.faq { text-align: left; margin-top: 48px; }
.faq h2 { font-size: 22px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { margin: 8px 0 0; color: var(--muted); }

.paywall { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface-2); }
.paywall .lock { font-size: 28px; }
.paywall p { margin: 8px 0 14px; }
.locked-sheet { height: 100%; min-height: 300px; border-radius: var(--radius); border: 1px dashed var(--line);
  background: repeating-linear-gradient(0deg, transparent 0 23px, var(--grid-line) 23px 24px), repeating-linear-gradient(90deg, transparent 0 99px, var(--grid-line) 99px 100px); opacity: .6; }

@media (max-width: 900px) {
  .plans { grid-template-columns: 1fr; }
  .account .navbtn { display: none; }
}

@media (prefers-reduced-motion: reduce) { .eyebrow .dot { animation: none; } .btn.xl, .card { transition: none; } }
