/* ============================================================
   Parker — landing page
   Monochrome zinc + emerald accent, mirroring the app's
   Vercel Night / Vercel Day themes (src/lib/themes.ts).
   ============================================================ */

:root {
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --max: 1080px;
  --radius: 14px;
  --radius-sm: 10px;

  /* neon syntax (Vercel Night content palette) */
  --syn-head: #a78bfa;   /* violet-400  */
  --syn-bold: #fbbf24;   /* amber-400   */
  --syn-ital: #6ee7b7;   /* emerald-300 */
  --syn-list: #22d3ee;   /* cyan-400    */
  --syn-code: #e879f9;   /* fuchsia-400 */
  --syn-kw:   #f472b6;   /* pink-400    */
  --syn-str:  #4ade80;   /* green-400   */
  --syn-fn:   #22d3ee;   /* cyan-400    */
  --syn-cmt:  #71717a;   /* zinc-500    */
  --syn-plain:#f4f4f5;   /* zinc-100    */
}

/* ---------- Dark (Vercel Night) ---------- */
:root[data-theme="dark"] {
  --bg:          #000000;
  --bg-elevated: #09090b; /* zinc-950 */
  --surface:     #101012;
  --surface-2:   #18181b; /* zinc-900 */
  --header:      #27272a; /* zinc-800 */
  --border:      #27272a; /* zinc-800 */
  --border-soft: #1c1c1f;
  --text:        #f4f4f5; /* zinc-100 */
  --text-2:      #a1a1aa; /* zinc-400 */
  --muted:       #71717a; /* zinc-500 */
  --accent:      #10b981; /* emerald-500 */
  --accent-hi:   #34d399; /* emerald-400 */
  --on-accent:   #022c22; /* emerald-950 */
  --mark-bg:     #18181b;
  --glow:        rgba(16, 185, 129, 0.16);
  --card-hi:     rgba(255, 255, 255, 0.02);
  --shadow:      0 40px 80px -20px rgba(0,0,0,0.8), 0 8px 24px -8px rgba(0,0,0,0.6);
}

/* ---------- Light (Vercel Day) ---------- */
:root[data-theme="light"] {
  --bg:          #ffffff;
  --bg-elevated: #fafafa; /* zinc-50 */
  --surface:     #ffffff;
  --surface-2:   #fafafa;
  --header:      #f4f4f5; /* zinc-100 */
  --border:      #e4e4e7; /* zinc-200 */
  --border-soft: #efeff1;
  --text:        #18181b; /* zinc-900 */
  --text-2:      #52525b; /* zinc-600 */
  --muted:       #a1a1aa; /* zinc-400 */
  --accent:      #059669; /* emerald-600 */
  --accent-hi:   #10b981; /* emerald-500 */
  --on-accent:   #ffffff;
  --mark-bg:     #ffffff;
  --glow:        rgba(5, 150, 105, 0.10);
  --card-hi:     rgba(0, 0, 0, 0.012);
  --shadow:      0 40px 80px -24px rgba(24,24,27,0.18), 0 8px 24px -10px rgba(24,24,27,0.12);
}
/* the mockup keeps Parker's signature neon-on-black in BOTH themes —
   it's the app's default (Vercel Night), so it stays constant. */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* Safety net: no image ever overflows its container. */
img { max-width: 100%; height: auto; }

/* ambient accent glow behind the hero */
.ambient {
  position: fixed;
  top: -20vh; left: 50%;
  transform: translateX(-50%);
  width: min(1200px, 120vw);
  height: 700px;
  background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%);
  pointer-events: none;
  z-index: 0;
  filter: blur(20px);
}

/* ───────────────────── Nav ───────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.nav.scrolled { border-bottom-color: var(--border); }
.nav-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
/* The mark: the brand head illustration (currentColor single-path SVG),
   driven through a CSS mask so it flips ink↔paper with the theme's text color. */
.mark-head {
  display: inline-block;
  width: 30px;
  height: 30px;
  background: var(--text);
  -webkit-mask: url("/brand/parker-head.svg") center / contain no-repeat;
          mask: url("/brand/parker-head.svg") center / contain no-repeat;
  flex: none;
}
.brand-name {
  /* Wordmark: always lowercase `parker`, Geist Mono Medium, tight tracking. */
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.045em;
}
.beta-tag {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  line-height: 1;
  color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 3px 6px 2px;
  border-radius: 999px;
  margin-left: -2px;
  align-self: center;
}
.nav-links {
  display: flex;
  gap: 26px;
  margin-left: 14px;
  font-size: 14px;
  /* A label that breaks in half ("Your / data") reads as two items. */
  white-space: nowrap;
}
/* Four items plus the actions bar get tight before the mobile breakpoint
   hides the list; close the gaps rather than let anything wrap. */
@media (max-width: 940px) {
  .nav-links { gap: 18px; margin-left: 8px; }
  .nav-inner { gap: 12px; }
}
.nav-links a {
  position: relative;
  color: var(--text-2);
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
/* Leaves the site. Small enough to read as punctuation rather than as a
   second thing to click, and dimmer than the label it trails. */
.nav-links .ext {
  width: 0.78em;
  height: 0.78em;
  vertical-align: -0.02em;
  margin-left: 1px;
  opacity: 0.55;
  transition: opacity .15s ease, transform .15s ease;
}
.nav-links a:hover .ext { opacity: 1; transform: translate(1px, -1px); }

/* The page you are on. The nav lists the same places everywhere — a menu that
   drops the item you are standing on stops being a map. */
.nav-links a[aria-current="page"] { color: var(--text); }
.nav-links a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1.5px;
  border-radius: 2px;
  background: var(--accent);
}
.nav-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.icon-btn:hover { color: var(--text); border-color: var(--muted); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* ───────────────────── Buttons ───────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 500;
  padding: 11px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  box-shadow: 0 1px 0 rgba(255,255,255,.15) inset, 0 6px 20px -8px var(--glow);
}
.btn-primary:hover { background: var(--accent-hi); }
.btn-ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--muted); }

/* ───────────────────── Hero ───────────────────── */
.hero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(56px, 11vh, 120px) 24px 0;
  text-align: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  transition: border-color .15s ease, color .15s ease;
}
.pill:hover { border-color: var(--muted); color: var(--text); }
.pill-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--glow);
}
.pill-arrow { color: var(--muted); transition: transform .15s ease; }
.pill:hover .pill-arrow { transform: translateX(2px); }

h1 {
  font-size: clamp(40px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 26px auto 0;
  max-width: 15ch;
}
/* Typewriter headline — the rotating word types & deletes with a block caret,
   echoing Parker's editor caret. min-width is set in JS to the widest word so
   the centered line never reflows. */
.typer {
  display: inline-block;
  text-align: left;
  white-space: nowrap;
  vertical-align: baseline;
}
.typer-text { display: inline-block; }
.typer-caret {
  display: inline-block;
  width: 0.56ch;
  height: 0.74em;
  margin-left: 0.05em;
  background: var(--accent);
  vertical-align: -0.04em;
  border-radius: 1px;
  animation: caretBlink 1.1s infinite;
}
@keyframes caretBlink { 0%, 50% { opacity: 1; } 51%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .typer-caret { animation: none; } }

.lede {
  font-size: clamp(16px, 2.1vw, 20px);
  color: var(--text-2);
  max-width: 60ch;
  margin: 22px auto 0;
}
.lede strong { color: var(--text); font-weight: 600; }

.cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 32px;
}
.cta-row.center { margin-top: 26px; }
.cta-note {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}

/* ───────────────────── Hero screenshot (real app) ───────────────────── */
/* The PNG/WebP is a native window capture with rounded corners + shadow baked
   into its transparent margins. drop-shadow() follows that alpha, so the glow
   hugs the real window shape and reads on both black and white backgrounds. */
.hero-shot {
  display: block;
  margin: clamp(40px, 8vh, 84px) auto 0;
  max-width: 1000px;
  width: 100%;
  filter:
    drop-shadow(0 28px 60px rgba(0, 0, 0, 0.45))
    drop-shadow(0 0 44px var(--glow));
}
.hero-shot img { display: block; width: 100%; height: auto; }
/* theme-adaptive: dark app shot in dark mode, light app shot in light mode */
.hero-shot .shot { display: block; }
.hero-shot .shot--light { display: none; }
:root[data-theme="light"] .hero-shot .shot--dark { display: none; }
:root[data-theme="light"] .hero-shot .shot--light { display: block; }
:root[data-theme="dark"] .hero-shot {
  /* faint light rim so the dark window separates from the black page */
  filter:
    drop-shadow(0 30px 70px rgba(0, 0, 0, 0.6))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.14))
    drop-shadow(0 0 60px var(--glow));
}

/* ───────────────────── Sections ───────────────────── */
.section {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 12vh, 130px) 24px 0;
}
.section-head { text-align: center; max-width: 44ch; margin: 0 auto clamp(40px, 6vh, 64px); }
.section-head h2, .strip h2, .final h2 {
  font-size: clamp(28px, 4.4vw, 42px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.1;
  margin: 0;
}
.section-head p { color: var(--text-2); font-size: 17px; margin: 16px auto 0; }

/* features grid */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  transition: border-color .2s ease, transform .2s ease, background .2s ease;
}
.card:hover {
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
  background: linear-gradient(180deg, var(--card-hi), transparent);
  transform: translateY(-3px);
}
.card-icon {
  display: inline-grid;
  place-items: center;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--accent);
  margin-bottom: 16px;
}
.card h3 { font-size: 17px; font-weight: 600; margin: 0 0 7px; letter-spacing: -0.01em; }
.card p { color: var(--text-2); font-size: 14.5px; margin: 0; line-height: 1.6; }

/* philosophy strip */
.strip {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: clamp(32px, 5vw, 56px);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}
.strip-text h2 { margin-bottom: 16px; }
.strip-text p { color: var(--text-2); font-size: 16px; margin: 0 0 20px; }
.strip-text p strong { color: var(--text); font-weight: 600; }
/* git = an optional versioned backup layer — set apart with an accent rail */
.git-note {
  border-left: 2px solid var(--accent);
  padding-left: 16px;
}
.git-note em { color: var(--accent); font-style: normal; font-weight: 600; }
.strip-text code,
.sc-text code {
  font-family: var(--font-mono);
  font-size: .88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  color: var(--text);
}
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 15px;
  color: var(--text-2);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 17px; height: 17px;
  border-radius: 50%;
  background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
}

/* The folder, drawn as a folder. It used to be box-drawing characters —
   ├─ │ └─ — which Geist Mono renders as thin strokes that do not meet, so the
   tree read as broken rather than as a tree. Lucide icons instead, matching
   the app, which uses the same set.
   The nesting is real nesting (a <ul> inside the <li> it belongs to), and the
   branch line is a border on that list rather than a glyph per row: one
   continuous rule down the children, which is what makes them read as
   children. Every directory takes the same folder icon — .git included. It is
   a folder; what makes it special is the word next to it, not a second
   iconographic grammar. */
.filetree {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: #d4d4d8;
}
.filetree ul {
  list-style: none;
  margin: 0;
  /* The rule sits under the parent's icon, so it drops out of the folder it
     belongs to instead of floating in the margin. */
  margin-left: 7px;
  padding: 0 0 0 17px;
  border-left: 1px solid #27272a;
}
.t-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  white-space: nowrap;
}
.t-row .ti {
  width: 15px;
  height: 15px;
  flex: none;
  color: #52525b; /* files recede; the folders are the structure */
}
.t-root { color: #71717a; }
.t-root .ti,
.t-dir .ti { color: #10b981; }
.t-note { color: #52525b; font-size: 12.5px; }

.strip-visual {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow);
}
.tree { font-family: var(--font-mono); font-size: 13.5px; line-height: 2; color: #d4d4d8; }
.tree-row { white-space: nowrap; }
.tree-row.muted, .tree .muted { color: #71717a; }
.tree-row.indent { padding-left: 0; }
.tw-accent { color: #10b981; }

/* final CTA */
.final {
  text-align: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(48px, 8vw, 80px) 24px;
  position: relative;
  overflow: hidden;
}
.final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 120% at 50% 0%, var(--glow), transparent 60%);
  pointer-events: none;
}
.final h2, .final p, .final .cta-row, .final .final-note { position: relative; }
.final-note {
  color: var(--muted);
  font-size: 13.5px;
  font-style: italic;
  line-height: 1.6;
  max-width: 52ch;
  margin: 22px auto 0;
}
/* The brand figure — a large, theme-adaptive Parker crowning the closing CTA.
   currentColor single-path SVG via mask → paper on dark, ink on light. */
.brand-figure {
  position: relative;
  display: block;
  height: clamp(150px, 20vw, 244px);
  aspect-ratio: 822 / 998;
  margin: 0 auto clamp(18px, 3vw, 30px);
  background: var(--text);
  -webkit-mask: url("/brand/parker-mark.svg") center / contain no-repeat;
          mask: url("/brand/parker-mark.svg") center / contain no-repeat;
}
.final p { color: var(--text-2); font-size: 17px; margin: 16px auto 0; max-width: 46ch; }

/* ───────────────────── Footer ───────────────────── */
.footer {
  margin-top: clamp(80px, 14vh, 160px);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  display: grid;
  gap: 12px;
  justify-items: center;
}
.footer .brand { justify-content: center; }
.footer .mark-head { width: 26px; height: 26px; }
.footer-tag { color: var(--text-2); font-size: 15px; margin: 2px 0 6px; }
.footer-links { display: flex; gap: 24px; font-size: 14px; }
.footer-links a { color: var(--text-2); transition: color .15s ease; }
.footer-links a:hover { color: var(--text); }
.footer-author { color: var(--text-2); font-size: 14px; margin: 4px 0 2px; }
.footer-author a { color: var(--text); border-bottom: 1px solid var(--border); transition: border-color .15s ease; }
.footer-author a:hover { border-color: var(--muted); }
.social { display: flex; gap: 18px; align-items: center; }
.social a {
  display: inline-flex;
  color: var(--muted);
  transition: color .15s ease, transform .15s ease;
}
.social a:hover { color: var(--text); transform: translateY(-1px); }
.footer-copy {
  color: var(--muted);
  font-size: 13px;
  font-family: var(--font-mono);
  margin-top: 6px;
}

/* ───────────────────── Reveal on scroll ───────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.16,1,.3,1), transform .6s cubic-bezier(.16,1,.3,1);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ───────────────────── Responsive ───────────────────── */
@media (max-width: 860px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: 1fr; }
  .strip-visual { order: -1; }
}
@media (max-width: 640px) {
  .nav-links { display: none; }
  .grid { grid-template-columns: 1fr; }
  .win-tabs .tab:nth-child(3) { display: none; }
  h1 { letter-spacing: -0.03em; }
  .window { border-radius: 12px; }
}

/* ============================================================
   Features page (/features)
   Same tokens as the landing page; only the layouts below are new.
   ============================================================ */

/* ---------- Page hero ---------- */
.fhero {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(52px, 10vh, 96px) 24px 0;
  text-align: center;
}
.fhero h1 { max-width: 18ch; font-size: clamp(36px, 6vw, 60px); }
.fhero .lede { margin-top: 20px; }

/* "jump to" chips — a table of contents that costs one line of markup */
.jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 30px auto 0;
  max-width: 760px;
}
.jump a {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: -0.01em;
  color: var(--text-2);
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  transition: color .15s ease, border-color .15s ease;
}
.jump a:hover { color: var(--text); border-color: var(--muted); }

/* ---------- Showcase rows ---------- */
.showcase {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(64px, 11vh, 118px) 24px 0;
  scroll-margin-top: 80px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: clamp(28px, 5vw, 62px);
  align-items: center;
}
/* alternate which side the shot lands on, without touching source order */
.showcase.flip .sc-text { order: 2; }

.sc-text h2 {
  font-size: clamp(25px, 3.6vw, 36px);
  letter-spacing: -0.03em;
  font-weight: 600;
  line-height: 1.12;
  margin: 0 0 16px;
}
.sc-text p {
  color: var(--text-2);
  font-size: 16.5px;
  margin: 0 0 20px;
}
.sc-text p strong { color: var(--text); font-weight: 600; }
.sc-text p:last-child { margin-bottom: 0; }
.sc-text .checks { margin-top: 20px; }

/* a row of shortcut chips under the copy */
.kbds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}
kbd {
  font-family: var(--font-mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-bottom-color: color-mix(in srgb, var(--muted) 45%, var(--border));
  border-radius: 7px;
  padding: 3px 8px;
  white-space: nowrap;
}
.kbds kbd span { color: var(--muted); padding-left: 6px; }

/* Key glyphs, as Lucide rather than as characters. The Unicode symbols carry
   the meaning, but a font draws them at whatever weight it likes and Geist
   Mono's ⌥ and ⏎ come out lighter than the letters beside them, so a chip read
   as half text and half smudge. These are drawn at the text's own weight.
   Sized to the cap height, not the em: an icon matched to the em box floats
   above the baseline of the letters it sits next to. */
.ki {
  width: 0.92em;
  height: 0.92em;
  vertical-align: -0.13em;
  flex: none;
}
/* Letters and icons in one chip need the same optical spacing; the glyphs used
   to supply it themselves. */
kbd .ki + .ki { margin-left: 0.06em; }

/* ---------- Screenshot frames ---------- */
/* Feature shots are Vercel Night captures in both site themes — they're
   product shots of the app's default look, the way the hero already is. */
.shot-frame {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #000;
  box-shadow: var(--shadow);
}
.shot-frame img { display: block; width: 100%; height: auto; }
.shot-frame figcaption {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  padding: 10px 14px;
  border-top: 1px solid var(--border-soft);
  background: var(--bg-elevated);
}


/* ---------- Lead showcase (full-width, centered) ---------- */
.showcase.lead {
  display: block;
  text-align: center;
  padding-top: clamp(40px, 7vh, 80px);
}
.showcase.lead .sc-text { max-width: 62ch; margin: 0 auto; }
.showcase.lead .sc-text h2 { font-size: clamp(28px, 4.4vw, 42px); }
.showcase.lead .sc-shot { margin-top: clamp(32px, 5vw, 52px); }
.showcase.lead .checks {
  max-width: 720px;
  margin: 26px auto 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}

/* ---------- Always-dark demo card (to-dos) ---------- */
.demo {
  background: #000;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.demo-head {
  display: grid;
  grid-template-columns: 108px 1fr;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #52525b;
  border-bottom: 1px solid #27272a;
}
.demo-head span { padding: 11px 18px; }
.demo-head span + span { border-left: 1px solid #27272a; }

.todo-rows { display: grid; }
.todo-row {
  display: grid;
  grid-template-columns: 108px 1fr;
  align-items: stretch;
  font-family: var(--font-mono);
  font-size: 13.5px;
  border-top: 1px solid #131316;
}
.todo-rows .todo-row:first-child { border-top: 0; }
.todo-src, .todo-out {
  padding: 9px 18px;
  color: #d4d4d8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.todo-out { border-left: 1px solid #27272a; }
.todo-tag { color: #71717a; }

/* the checkbox, rebuilt from the app's own geometry (src/App.css) */
.tbox {
  display: inline-block;
  box-sizing: border-box;
  width: 0.95em;
  height: 0.95em;
  /* In the app the marker is an atomic widget (0.95em, with 3px/1px of margin)
     and the space after it is still a real character in the document. Those
     three together measure almost exactly three monospace cells, which is why
     the text after a checkbox lands on the same grid as everything else.
     Reproduce that footprint rather than the widget alone: 0.95 + 0.85 = 1.8em,
     and Geist Mono's cell is 0.6em. Using margin instead of a literal space
     keeps the markup free of whitespace that HTML would be free to collapse. */
  margin-left: 0.21em;
  margin-right: 0.64em;
  overflow: hidden;
  vertical-align: -0.07em;
}
.tglyph {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border: 1.5px solid #71717a;
  border-radius: 4px;
  color: #000; /* knockout: the glyph is punched out of the fill */
  transition: border-color .12s ease, background .12s ease;
}
.tglyph svg { width: 0.85em; height: 0.85em; display: block; }

/* one colour per state, straight from the app's state machine */
.todo-row { --c: #d4d4d8; }
.todo-row[data-state="doing"]  { --c: #22d3ee; }
.todo-row[data-state="pause"]  { --c: #60a5fa; }
.todo-row[data-state="wait"]   { --c: #c084fc; }
.todo-row[data-state="attn"]   { --c: #fbbf24; }
.todo-row[data-state="done"]   { --c: #4ade80; }
.todo-row[data-state="fail"]   { --c: #ef4444; }
.todo-row[data-state="cancel"] { --c: #71717a; }
.todo-row:not([data-state="todo"]) .todo-out { color: var(--c); }
.todo-row:not([data-state="todo"]) .tglyph {
  background: var(--c);
  border-color: var(--c);
}
.todo-row[data-state="todo"] .tglyph { background: transparent; }

button.todo-out {
  font: inherit;
  text-align: left;
  width: 100%;
  background: none;
  border: 0;
  border-left: 1px solid #27272a;
  cursor: pointer;
}
button.todo-out:hover { background: rgba(255,255,255,0.03); }
button.todo-out:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }

.demo-foot {
  /* It is a <p>: without this its default margin sits OUTSIDE the border, so
     the rule floats away from the last row and the card gains a dead strip
     under the text. */
  margin: 0;
  font-size: 13px;
  color: #71717a;
  padding: 12px 18px;
  border-top: 1px solid #27272a;
}
.demo-foot b { color: #a1a1aa; font-weight: 500; }

/* ---------- Theme cards ---------- */
.themes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 8px;
}
.theme-card {
  margin: 0;
  border: 1px solid var(--tbd);
  border-radius: var(--radius-sm);
  background: var(--tbg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.theme-code {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.95;
  padding: 14px 15px 16px;
  color: var(--tfg);
  white-space: nowrap;
  overflow: hidden;
}
.theme-code .h { color: var(--th); font-weight: 600; }
.theme-code .b { color: var(--tb); font-weight: 600; }
.theme-code .l { color: var(--tl); }
.theme-code .c { color: var(--tc); }
.theme-code .m { color: var(--tm); }
.theme-card figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--tm);
  padding: 9px 15px;
  border-top: 1px solid var(--tbd);
}

/* ---------- Shortcut reference ---------- */
.keys {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.keycol {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px 22px;
}
.keycol h3 {
  font-size: 12px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 14px;
  font-weight: 500;
}
.keycol dl { margin: 0; display: grid; gap: 9px; }
.keyrow {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  font-size: 14px;
}
.keyrow dt { color: var(--text-2); }
.keyrow dd { margin: 0; display: flex; gap: 4px; flex: none; }

/* ---------- Spec strip ---------- */
.specs {
  margin: 0; /* it is a <dl> */
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.spec {
  background: var(--bg-elevated);
  padding: 22px 20px;
}
.spec dt {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 7px;
}
.spec dd { margin: 0; font-size: 15px; color: var(--text); font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
  .themes { grid-template-columns: repeat(2, 1fr); }
  .keys { grid-template-columns: 1fr; }
  .specs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .showcase { grid-template-columns: 1fr; }
  .showcase.flip .sc-text { order: 0; }
  .showcase.lead .checks { grid-template-columns: 1fr; }
  .demo-head, .todo-row { grid-template-columns: 84px 1fr; }
  .demo-head span, .todo-src, .todo-out, button.todo-out { padding-left: 12px; padding-right: 12px; }
  .demo-head span { letter-spacing: 0.08em; }
}
@media (max-width: 560px) {
  .themes { grid-template-columns: 1fr; }
  .specs { grid-template-columns: 1fr; }
}

/* "See every feature →" under the home grid */
.more-link {
  text-align: center;
  margin: 34px 0 0;
  font-size: 15px;
}
.more-link a {
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 2px;
  transition: border-color .15s ease;
}
.more-link a:hover { border-bottom-color: var(--accent); }
.more-link span { display: inline-block; transition: transform .15s ease; }
.more-link a:hover span { transform: translateX(3px); }
