/* Grove landing page.
   Palette is lifted verbatim from the app's src/styles/tokens.css so the site
   and the product read as one thing. Light is the default; the system's
   prefers-color-scheme: dark flips to the app's dark palette. */

:root {
  color-scheme: light dark;
  --page: #ece8e1;
  --bg: #f5f2ec;
  --surface: #fbf9f5;
  --surface2: #f1ede6;
  --surface3: #e9e4db;
  --line: #d9d2c6;
  --line-soft: #e4ded4;
  --text: #20262d;
  --dim: #5a6572;
  --faint: #8a939e;
  --accent: #6d28d9;
  --accent-dim: rgba(109, 40, 217, 0.1);
  --sage: #257a55;
  --sage-dim: rgba(37, 122, 85, 0.1);
  --red: #b8453a;
  --red-dim: rgba(184, 69, 58, 0.1);
  --accent-ink: #ffffff;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --shadow: 0 1px 2px rgba(32, 38, 45, 0.04), 0 8px 24px rgba(32, 38, 45, 0.05);
}

/* Dark palette. Applied when the system prefers dark and no explicit choice
   overrides it, or when the visitor explicitly picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --page: #0a0d10;
    --bg: #0f1317;
    --surface: #151a20;
    --surface2: #1b222a;
    --surface3: #212933;
    --line: #29323d;
    --line-soft: #1f2731;
    --text: #e6ecf2;
    --dim: #8b96a3;
    --faint: #5c6773;
    --accent: #a855f7;
    --accent-dim: rgba(168, 85, 247, 0.15);
    --sage: #7fc9a6;
    --sage-dim: rgba(127, 201, 166, 0.12);
    --red: #e0685c;
    --red-dim: rgba(224, 104, 92, 0.12);
    --accent-ink: #180827;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
  }
}
:root[data-theme="dark"] {
    --page: #0a0d10;
    --bg: #0f1317;
    --surface: #151a20;
    --surface2: #1b222a;
    --surface3: #212933;
    --line: #29323d;
    --line-soft: #1f2731;
    --text: #e6ecf2;
    --dim: #8b96a3;
    --faint: #5c6773;
    --accent: #a855f7;
    --accent-dim: rgba(168, 85, 247, 0.15);
    --sage: #7fc9a6;
    --sage-dim: rgba(127, 201, 166, 0.12);
    --red: #e0685c;
    --red-dim: rgba(224, 104, 92, 0.12);
    --accent-ink: #180827;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.25);
}
:root[data-theme="light"] { color-scheme: light; }
:root[data-theme="dark"] { color-scheme: dark; }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.033em; font-weight: 750; }
p { margin: 0; }
a { color: inherit; }

.wrap { width: 100%; max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 760px; }

.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;
}

/* ---------- nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--page) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px;
}
.mark {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-style: italic;
  font-weight: 700; letter-spacing: -0.01em; text-decoration: none; font-size: 16px;
}
.mark svg { display: block; }
.mark .punk { color: var(--accent); }
.nav-cta {
  font-size: 14px; font-weight: 500; text-decoration: none;
  color: var(--dim); padding: 7px 14px; border-radius: 7px;
  border: 1px solid var(--line); background: var(--surface);
  transition: color 140ms ease, border-color 140ms ease;
}
.nav-cta:hover { color: var(--text); border-color: var(--faint); }
.nav-right { display: flex; align-items: center; gap: 8px; }
.theme-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; padding: 0; cursor: pointer;
  color: var(--dim); background: var(--surface);
  border: 1px solid var(--line); border-radius: 7px;
  transition: color 140ms ease, border-color 140ms ease;
}
.theme-btn:hover { color: var(--text); border-color: var(--faint); }
.theme-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-btn svg { display: block; width: 16px; height: 16px; }
.theme-btn [data-ico] { display: none; }
.theme-btn[data-mode="system"] [data-ico="system"],
.theme-btn[data-mode="light"] [data-ico="light"],
.theme-btn[data-mode="dark"] [data-ico="dark"] { display: block; }

/* ---------- hero ---------- */

.hero { padding: 88px 0 72px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  padding: 5px 11px; border-radius: 5px; margin-bottom: 22px; font-weight: 600;
}
.hero h1 { font-size: clamp(36px, 6vw, 62px); max-width: 15ch; font-weight: 800; }
.hero .sub {
  margin-top: 22px; font-size: clamp(17px, 2vw, 20px);
  color: var(--dim); max-width: 60ch;
}
.hero .sub strong { color: var(--text); font-weight: 600; }

/* ---------- waitlist form ---------- */

.wl-block { margin-top: 34px; max-width: 520px; }
.wl { display: flex; gap: 10px; }
.wl.is-done { display: none; }
.wl input[type="email"] {
  flex: 1 1 auto; min-width: 0;
  font-family: var(--sans); font-size: 16px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 9px; padding: 13px 15px;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.wl input[type="email"]::placeholder { color: var(--faint); }
.wl input[type="email"]:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.wl button {
  flex: 0 0 auto; cursor: pointer;
  font-family: var(--sans); font-size: 15px; font-weight: 600;
  color: var(--accent-ink); background: var(--accent);
  border: 1px solid var(--accent); border-radius: 9px; padding: 13px 20px;
  transition: filter 140ms ease, transform 90ms ease;
}
.wl button:hover { filter: brightness(1.08); }
.wl button:active { transform: translateY(1px); }
.wl button:disabled { opacity: 0.6; cursor: default; }
.wl button:focus-visible, .nav-cta:focus-visible, a:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}

.wl-note {
  margin-top: 12px; font-size: 13.5px; color: var(--dim); line-height: 1.5;
}
.wl-note.ok {
  color: var(--sage); background: var(--sage-dim);
  border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent);
  border-radius: 9px; padding: 12px 14px; font-size: 14.5px;
}
.wl-note.err {
  color: var(--red); background: var(--red-dim);
  border: 1px solid color-mix(in srgb, var(--red) 30%, transparent);
  border-radius: 9px; padding: 12px 14px; font-size: 14.5px;
}

/* ---------- app screenshot (HTML recreation of the running-task screen,
   from grove-mockups.html, reskinned to the punk brand) ---------- */

.shotsec { padding: 64px 0 72px; }
.shot {
  max-width: 1060px; margin: 0 auto;
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  font-family: var(--sans);
}
.shot, .shot * { box-sizing: border-box; }
.shot .tbar { height: 42px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.shot .lights { display: flex; gap: 8px; margin-right: 6px; }
.shot .lights i { width: 11px; height: 11px; border-radius: 50%; background: var(--surface3); display: block; }
.shot .appname { font: italic 700 13px/1 var(--mono); letter-spacing: 0.02em; color: var(--text); }
.shot .appname .punk { color: var(--accent); }
.shot .repo { font: 400 11.5px/1 var(--mono); color: var(--faint); margin-left: auto; }
.shot .sbody { display: flex; align-items: stretch; }

.shot .side { width: 240px; flex: none; border-right: 1px solid var(--line-soft); background: var(--surface); display: flex; flex-direction: column; }
.shot .slabel { font: 600 10px/1 var(--mono); letter-spacing: 0.14em; color: var(--faint); padding: 15px 15px 9px; }
.shot .stask { padding: 11px 15px; border-left: 2px solid transparent; }
.shot .stask.on { background: var(--surface2); border-left-color: var(--accent); }
.shot .stask .t { font: 500 12.5px/1.35 var(--sans); color: var(--text); margin-bottom: 4px; }
.shot .stask .b { font: 400 10.5px/1 var(--mono); color: var(--faint); margin-bottom: 6px; }
.shot .schip { display: inline-flex; align-items: center; gap: 6px; font: 500 9.5px/1 var(--mono); letter-spacing: 0.05em; padding: 4px 8px; border-radius: 99px; border: 1px solid var(--line); }
.shot .schip i { width: 6px; height: 6px; border-radius: 50%; display: block; }
.shot .schip.attn { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, transparent); background: var(--accent-dim); }
.shot .schip.attn i { background: var(--accent); animation: shotpulse 1.1s ease-in-out infinite; }
.shot .schip.work { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 35%, transparent); background: var(--sage-dim); }
.shot .schip.work i { background: var(--sage); animation: shotpulse 1.6s ease-in-out infinite; }
.shot .schip.done { color: var(--sage); border-color: color-mix(in srgb, var(--sage) 35%, transparent); }
.shot .schip.done i { background: var(--sage); }
.shot .newtask { margin: auto 11px 13px; padding: 9px; border: 1px dashed var(--line); border-radius: 8px; font: 500 11px/1 var(--mono); color: var(--dim); text-align: center; }
@keyframes shotpulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@media (prefers-reduced-motion: reduce) { .shot .schip i, .shot .led { animation: none !important; } }

.shot .center { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.shot .thead { flex: none; padding: 14px 20px 0; border-bottom: 1px solid var(--line-soft); }
.shot .thead .row1 { display: flex; align-items: baseline; gap: 11px; margin-bottom: 3px; }
.shot .thead h3 { font: 600 15px/1.3 var(--sans); color: var(--text); margin: 0; letter-spacing: 0; }
.shot .thead .branch { font: 400 11px/1 var(--mono); color: var(--faint); }
.shot .stepper { display: flex; align-items: center; gap: 9px; padding: 12px 0 14px; flex-wrap: wrap; }
.shot .sstep { display: flex; align-items: center; gap: 6px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.05em; color: var(--dim); }
.shot .sstep .dot { width: 17px; height: 17px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font-size: 9px; color: var(--faint); }
.shot .sstep.done { color: var(--sage); } .shot .sstep.done .dot { border-color: var(--sage); color: var(--sage); }
.shot .sarrow { color: var(--faint); font: 400 11px/1 var(--mono); }
.shot .sloop { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border: 1.5px solid var(--accent); border-radius: 99px; background: var(--accent-dim); }
.shot .sloop .cyc { font: 600 12px/1 var(--mono); color: var(--accent); }
.shot .sloop .lbl { font: 500 10.5px/1 var(--mono); letter-spacing: 0.05em; color: var(--text); }
.shot .sloop .rnd { font: 500 9.5px/1 var(--mono); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); border-radius: 99px; padding: 3px 6px; }

.shot .feed { flex: 1; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.shot .ev { display: flex; align-items: flex-start; gap: 9px; }
.shot .ev .tick { font: 400 9.5px/1.9 var(--mono); color: var(--faint); width: 38px; flex: none; text-align: right; }
.shot .ev .evcard { flex: 1; min-width: 0; }
.shot .sysline { font: 400 11.5px/1.6 var(--mono); color: var(--dim); padding: 6px 11px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); }
.shot .sysline b { color: var(--text); font-weight: 600; }
.shot .sysbody { margin-top: 5px; padding: 10px 12px; border: 1px solid var(--line-soft); border-radius: 7px; background: var(--surface); font: 400 11.5px/1.8 var(--mono); color: var(--dim); }
.shot .sysbody .iss { color: var(--text); } .shot .sysbody .sev { color: var(--red); }
.shot .smsg { padding: 10px 14px; border-radius: 10px; font: 400 12.5px/1.55 var(--sans); color: var(--text); max-width: 540px; }
.shot .smsg.super { background: var(--surface2); border: 1px solid var(--line-soft); }
.shot .smsg.you { background: var(--accent-dim); border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent); margin-left: auto; }
.shot .smsg .who { font: 600 9.5px/1 var(--mono); letter-spacing: 0.12em; color: var(--faint); margin-bottom: 6px; display: block; }
.shot .smsg.you .who { color: var(--accent); }

.shot .composer { flex: none; padding: 12px 20px 16px; border-top: 1px solid var(--line-soft); }
.shot .composer .box { display: flex; align-items: center; gap: 10px; background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.shot .composer .ph { flex: 1; font: 400 12.5px/1 var(--sans); color: var(--faint); }
.shot .composer .send { font: 600 10.5px/1 var(--mono); color: var(--accent); letter-spacing: 0.05em; }

.shot .rack { width: 212px; flex: none; border-left: 1px solid var(--line-soft); background: var(--surface); display: flex; flex-direction: column; padding-bottom: 10px; }
.shot .agentc { margin: 0 9px 7px; padding: 10px 11px; border: 1px solid var(--line-soft); border-radius: 9px; background: var(--surface2); }
.shot .agentc.live { border-color: color-mix(in srgb, var(--sage) 35%, transparent); }
.shot .agentc.hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.shot .agentc .top { display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.shot .led { width: 8px; height: 8px; border-radius: 50%; background: var(--faint); flex: none; }
.shot .agentc.live .led { background: var(--sage); animation: shotpulse 1.6s ease-in-out infinite; }
.shot .agentc.hot .led { background: var(--accent); animation: shotpulse 1.1s ease-in-out infinite; }
.shot .agentc .nm { font: 600 11.5px/1 var(--mono); color: var(--text); }
.shot .agentc .role { font: 400 9.5px/1 var(--mono); color: var(--faint); margin-left: auto; }
.shot .agentc .st { font: 400 10.5px/1.5 var(--mono); color: var(--dim); }
.shot .agentc .st b { color: var(--text); font-weight: 500; }

.shot-caption { max-width: 1060px; margin: 14px auto 0; font-size: 13.5px; color: var(--dim); text-align: center; }

@media (max-width: 900px) { .shot .rack { display: none; } }
@media (max-width: 640px) { .shot .side { display: none; } }

/* ---------- generic section ---------- */

section { padding: 72px 0; border-top: 1px solid var(--line-soft); }
.sec-label {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--dim); margin-bottom: 14px;
}
section h2 { font-size: clamp(26px, 3.6vw, 36px); max-width: 22ch; }
section h2 + .lede { margin-top: 16px; color: var(--dim); max-width: 62ch; }

/* ---------- pipeline ---------- */

.pipe { margin-top: 40px; display: grid; gap: 12px; }
.step {
  display: grid; grid-template-columns: 118px 1fr; gap: 20px; align-items: start;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 18px 20px; box-shadow: var(--shadow);
}
.step .who {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--dim); background: var(--surface3);
  border: 1px solid var(--line);
  border-radius: 6px; padding: 4px 9px; text-align: center; white-space: nowrap;
}
.step.ship .who { color: var(--sage); background: var(--sage-dim); border-color: color-mix(in srgb, var(--sage) 26%, transparent); }
.step h3 { font-size: 17px; }
.step p { margin-top: 6px; color: var(--dim); font-size: 15.5px; }
.pipe .arrow {
  height: 14px; margin: -4px 0 -4px 58px;
  border-left: 2px dotted var(--line); width: 0;
}
.loop-zone { position: relative; display: grid; gap: 12px; }
.loop-zone::after {
  content: ""; position: absolute; top: 30px; bottom: 16px; right: -13px; width: 13px;
  border: 2px dashed color-mix(in srgb, var(--red) 55%, transparent);
  border-left: none; border-radius: 0 11px 11px 0;
  pointer-events: none;
}
.loop-zone::before {
  content: ""; position: absolute; top: 25px; right: -3px;
  border: 5px solid transparent;
  border-right: 8px solid color-mix(in srgb, var(--red) 65%, transparent);
  pointer-events: none;
}
.verdict { display: flex; gap: 10px; flex-wrap: wrap; }
.verdict .v {
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.02em;
  padding: 7px 12px; border-radius: 7px;
}
.verdict .v.fail { color: var(--red); background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.verdict .v.pass { color: var(--sage); background: var(--sage-dim); border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent); }

/* ---------- pillars ---------- */

.grid3 { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 22px; box-shadow: var(--shadow);
}
.card h3 { font-size: 17px; margin-bottom: 9px; }
.card p { color: var(--dim); font-size: 15.5px; }
.card .tag {
  display: inline-block; font-family: var(--mono); font-size: 11.5px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--faint); margin-bottom: 12px;
}

/* ---------- honest limits ---------- */

.limits {
  margin-top: 34px; background: var(--surface2);
  border: 1px solid var(--line); border-radius: 11px; padding: 24px 26px;
}
.limits ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.limits li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; }
.limits .x { color: var(--red); font-family: var(--mono); font-size: 15px; line-height: 1.5; }
.limits strong { font-weight: 600; }
.limits span.d { color: var(--dim); display: block; font-size: 15.5px; margin-top: 2px; }

/* ---------- requirements ---------- */

.reqs { margin-top: 30px; display: grid; gap: 10px; }
.req {
  display: flex; align-items: baseline; gap: 12px;
  font-size: 15.5px; color: var(--dim);
  padding: 12px 16px; background: var(--surface);
  border: 1px solid var(--line-soft); border-radius: 9px;
}
.req code {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface3); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 6px;
}

/* ---------- closing cta ---------- */

.close { text-align: center; padding: 86px 0 96px; }
.close h2 { margin: 0 auto; }
.close .lede { margin: 16px auto 0; }
.close .wl-block { margin-left: auto; margin-right: auto; }
.close .wl-note { text-align: center; }

/* ---------- footer ---------- */

footer {
  border-top: 1px solid var(--line-soft); padding: 28px 0;
  font-size: 13.5px; color: var(--dim);
}
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--dim); text-decoration: none; }
footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */

@media (max-width: 820px) {
  .grid3 { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .hero { padding: 60px 0 52px; }
  section { padding: 56px 0; }
  .wl { flex-direction: column; }
  .wl button { width: 100%; }
  .step { grid-template-columns: 1fr; gap: 12px; }
  .step .who { justify-self: start; }
  .pipe .arrow { margin-left: 22px; }
  .vswitch { right: 10px; bottom: 10px; }
}

/* ---------- founder byline (hero) ---------- */

.byline {
  margin-top: 26px; max-width: 56ch;
  border-left: 2px solid var(--accent);
  padding: 2px 0 2px 16px;
  color: var(--dim); font-size: 15.5px; line-height: 1.55;
}
.byline strong { color: var(--text); font-weight: 600; }

/* ---------- two-up ---------- */

.grid2 { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 820px) { .grid2 { grid-template-columns: 1fr; } }

/* ---------- pricing ---------- */

.plans { margin-top: 40px; display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }
.plan {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 11px; padding: 26px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.plan.featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.plan .name { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.plan.featured .name { color: var(--accent); }
.plan .price { margin-top: 10px; font-size: 34px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.plan .price small { font-size: 14px; font-weight: 500; color: var(--dim); letter-spacing: 0; margin-left: 4px; }
.plan ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 11px; flex: 1; }
.plan li { display: grid; grid-template-columns: 18px 1fr; gap: 9px; font-size: 15px; color: var(--dim); }
.plan li .tick { color: var(--sage); font-family: var(--mono); font-weight: 700; }
.plan li strong { color: var(--text); font-weight: 600; }
.plan .plan-cta {
  margin-top: 24px; text-align: center; text-decoration: none;
  font-size: 15px; font-weight: 600; padding: 12px 18px; border-radius: 9px;
  color: var(--text); background: var(--surface2); border: 1px solid var(--line);
  transition: border-color 140ms ease;
}
.plan .plan-cta:hover { border-color: var(--faint); }
.plan.featured .plan-cta { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); }
.plan.featured .plan-cta:hover { filter: brightness(1.08); }
.plans-note { margin-top: 15px; font-size: 13.5px; color: var(--dim); max-width: 66ch; }
@media (max-width: 620px) { .plans { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 17px 0;
  font-size: 16.5px; font-weight: 600; color: var(--text);
  display: flex; align-items: baseline; justify-content: space-between; gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 17px;
  color: var(--faint); flex: 0 0 auto; line-height: 1;
}
.faq details[open] summary::after { content: "–"; }
.faq summary:hover { color: var(--accent); }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.faq .a { padding: 0 0 20px; color: var(--dim); font-size: 15.5px; max-width: 70ch; }
.faq .a + .a { margin-top: -8px; }
.faq .a code {
  font-family: var(--mono); font-size: 13px; color: var(--text);
  background: var(--surface3); border: 1px solid var(--line-soft);
  border-radius: 5px; padding: 1px 6px;
}

/* ---------- comparison table ---------- */

.cmp-wrap {
  margin-top: 36px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: 11px;
  background: var(--surface); box-shadow: var(--shadow);
  -webkit-overflow-scrolling: touch;
}
.cmp { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 14.5px; }
.cmp th, .cmp td {
  text-align: left; vertical-align: top;
  padding: 15px 16px; border-bottom: 1px solid var(--line-soft);
}
.cmp thead th {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em;
  color: var(--faint); font-weight: 500;
  border-bottom: 1px solid var(--line);
}
/* equal-width product columns; long names wrap instead of stretching */
.cmp thead th:not(:first-child) {
  text-align: center; width: 13%; min-width: 84px; white-space: normal;
}
.cmp tbody th {
  font-weight: 600; color: var(--text); min-width: 220px;
  background: var(--surface2);
}
.cmp td { text-align: center; white-space: nowrap; }
.chip {
  display: inline-block; font-family: var(--mono); font-size: 12px;
  font-weight: 700; letter-spacing: 0.05em;
  padding: 3px 10px; border-radius: 5px;
}
.chip.y { color: var(--sage); background: var(--sage-dim); border: 1px solid color-mix(in srgb, var(--sage) 30%, transparent); }
.chip.n { color: var(--red); background: var(--red-dim); border: 1px solid color-mix(in srgb, var(--red) 30%, transparent); }
.chip.na { color: var(--faint); background: transparent; border: 1px solid var(--line-soft); }
.cmp td { color: var(--dim); }
.cmp .me { background: var(--accent-dim); }
.cmp td.me { color: var(--text); }
.cmp thead th.me {
  color: var(--accent); font-weight: 700;
  border-bottom-color: color-mix(in srgb, var(--accent) 40%, transparent);
}
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp-note { margin-top: 15px; font-size: 13.5px; color: var(--dim); max-width: 70ch; }
