/* Grove landing v2 — page styles. Values come from tokens.css (Grove design
   system); layout numbers match the approved "Grove Landing v2" design. */

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: var(--surface-app, #FAF7F0);
  color: var(--text-primary);
  font-family: var(--font-ui);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); }
::selection { background: var(--selection); }

.container { max-width: 1120px; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.spacer { flex: 1; }

/* ---- keyframes (from the design) ---- */
@keyframes grove-agent-breath {
  0%, 100% { opacity: .55; box-shadow: 0 0 0 0 var(--agent-glow); }
  50% { opacity: 1; box-shadow: 0 0 0 4px var(--agent-glow); }
}
@keyframes grove-caret-blink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
@keyframes grove-patch-settle {
  0% { background: transparent; }
  18% { background: var(--diff-sweep); }
  100% { background: transparent; }
}
@keyframes grove-text-in {
  0% { opacity: .25; }
  100% { opacity: 1; }
}
@keyframes grove-pop-in {
  from { opacity: 0; transform: scale(0.97) translateY(-4px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- shared bits ---- */
.wordmark { font-family: var(--font-prose); letter-spacing: -0.01em; color: var(--text-primary); }
.wordmark-dot { color: var(--accent); }
.wordmark-nav { font-size: 25px; }
.wordmark-cta { font-size: 30px; }
.wordmark-foot { font-size: 19px; }

.caret {
  display: inline-block; width: 1.5px; height: 1.05em;
  background: var(--accent); vertical-align: -0.18em; margin-left: 1px;
  animation: grove-caret-blink 1.1s step-end infinite;
}

.agent-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--agent);
  animation: grove-agent-breath 1.9s var(--ease-in-out) infinite;
}

.kbd {
  font-family: var(--font-mono); font-size: 11px; color: var(--text-faint);
  border: 1px solid var(--border-hairline); border-radius: 4px; padding: 1px 6px;
}
.kbd-inline { font-size: 0.9em; color: inherit; }

mark {
  background: var(--accent-soft); color: var(--accent-text);
  border-radius: 3px; padding: 0 2px;
}

.wiki-link { color: var(--link); border-bottom: 1px solid var(--accent-soft); }

.caption { margin: 12px 4px 0; font-size: 12.5px; color: var(--text-tertiary); }
.caption-narrow { margin-top: 14px; max-width: 360px; }
.caption-inline { font-size: 12.5px; color: var(--text-tertiary); }

/* ---- buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; font-family: var(--font-ui); font-weight: 600;
  border-radius: 8px; white-space: nowrap;
  transition: var(--transition-control);
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-primary:hover { background: var(--accent-hover); color: var(--text-on-accent); }
.btn-primary:active { background: var(--accent-press); }
.btn-primary:disabled { opacity: .45; cursor: default; }
.btn-primary:disabled:hover { background: var(--accent); }
.btn-nav { height: 30px; padding: 0 14px; border-radius: 7px; font-size: 13px; }
.btn-waitlist { height: 42px; padding: 0 18px; font-size: 14px; }
.btn-secondary {
  background: var(--surface-card); color: var(--text-primary);
  border: 1px solid var(--border-default); box-shadow: var(--shadow-card);
}
.btn-secondary:hover { background: var(--surface-hover); }
.btn-small { height: 30px; padding: 0 12px; font-size: 12.5px; border-radius: 7px; }
.btn-ghost { background: transparent; color: var(--text-secondary); height: 34px; padding: 0 14px; }
.btn-ghost:hover { background: var(--surface-hover); color: var(--text-primary); }
.btn-apply { height: 34px; padding: 0 18px; font-size: 13px; }
.btn-full { width: 100%; height: 36px; font-size: 13px; }

/* ---- header ---- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  backdrop-filter: var(--material-blur);
  -webkit-backdrop-filter: var(--material-blur);
  background: var(--material-sidebar);
  border-bottom: 1px solid var(--border-hairline);
}
.header-inner { height: 66px; display: flex; align-items: center; gap: 30px; }
.site-nav { display: flex; gap: 24px; font-size: 13px; margin-left: 8px; }
.site-nav a { color: var(--text-secondary); }
.site-nav a:hover { color: var(--text-primary); }

/* ---- hero ---- */
.hero { overflow: hidden; }
.hero-inner {
  padding-top: 76px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero-title {
  font-family: var(--font-prose); font-size: 62px; line-height: 1.08;
  font-weight: 400; letter-spacing: -0.022em; margin: 0 0 20px;
  max-width: 22ch; text-wrap: balance;
}
.hero-sub {
  font-size: 17.5px; line-height: 1.65; color: var(--text-secondary);
  max-width: 52ch; margin: 0 0 10px; text-wrap: pretty;
}
.hero-sub-last { margin-bottom: 28px; }

.waitlist-form { display: flex; flex-wrap: wrap; gap: 10px; }
/* Turnstile mount (site.js, Task 0d-iv) — interaction-only, so usually 0-height */
.waitlist-form .turnstile-slot { flex-basis: 100%; }
.waitlist-form .turnstile-slot:empty { display: none; }
.waitlist-hero { width: 460px; max-width: 100%; }
.waitlist-foot { max-width: 460px; margin: 0 auto; }
.email-input {
  flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--border-default); background: var(--surface-editor);
  color: var(--text-primary); font-size: 14px; font-family: var(--font-ui); outline: none;
}
.email-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus-ring); }
.email-input::placeholder { color: var(--text-faint); }
.waitlist-status { margin: 12px 0 0; font-size: 13px; color: var(--accent-text); }
.waitlist-status.error { color: var(--git-deleted); }
.fine-print { margin: 14px 0 0; font-size: 12.5px; color: var(--text-tertiary); }
.fine-print-cta { margin-top: 16px; }

/* ---- app windows ---- */
.app-window {
  background: var(--surface-editor);
  border: 1px solid var(--border-hairline);
  overflow: hidden; text-align: left;
}
.hero-window {
  width: 920px; max-width: 100%;
  margin: 60px auto -2px;
  border-radius: 14px 14px 0 0;
  box-shadow: var(--shadow-window);
}
.window-titlebar {
  height: 40px; display: flex; align-items: center; gap: 7px; padding: 0 16px;
  border-bottom: 1px solid var(--border-hairline); background: var(--material-sidebar);
}
.window-titlebar-slim { height: 38px; gap: 8px; }
.window-titlebar-preview { height: 36px; padding: 0 14px; }
.traffic { width: 11px; height: 11px; border-radius: 50%; }
.traffic-sm { width: 10px; height: 10px; }
.traffic.red { background: #EC6A5F; }
.traffic.yellow { background: #F4BF50; }
.traffic.green { background: #61C555; }
.titlebar-crumb { margin-left: 10px; font-size: 12px; color: var(--text-secondary); }
.window-titlebar-preview .titlebar-crumb { margin-left: 8px; }
.crumb-sep { color: var(--text-faint); }
.crumb-doc { color: var(--text-primary); font-weight: 600; }
.doc-file-icon { font-size: 13px; color: var(--text-tertiary); }
.doc-file-name { font-size: 12px; font-weight: 600; }

.welcome-doc {
  font-family: var(--font-prose); padding: 30px 44px 12px;
  font-size: 17px; line-height: 1.8; max-width: 70ch; margin: 0 auto;
}
.doc-chips { display: flex; gap: 8px; margin-bottom: 16px; font-family: var(--font-ui); }
.doc-chip {
  font-size: 11px; color: var(--text-tertiary); background: var(--surface-hover);
  border-radius: 5px; padding: 3px 9px;
}
.doc-chip-label { font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.doc-chip-label i { font-size: 11px; }
.doc-title { font-size: 27px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.doc-p { margin: 0 0 10px; color: var(--text-secondary); }
.doc-p strong { color: var(--text-primary); }
.doc-p-wide { margin-bottom: 14px; }
.doc-p-flush { margin-bottom: 0; }

.todo-list { display: flex; flex-direction: column; gap: 8px; margin: 0 0 26px; }
.todo-row { display: flex; align-items: center; gap: 10px; }
.todo-done { color: var(--text-tertiary); }
.todo-strike { text-decoration: line-through; }
.todo-box {
  width: 16px; height: 16px; flex: none;
  border: 1.5px solid var(--border-strong); border-radius: 4px;
}
.todo-box-checked {
  border: none; background: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.todo-box-checked i { font-size: 11px; color: var(--text-on-accent); }

.window-terminal {
  border-top: 1px solid var(--border-hairline); background: var(--surface-terminal);
  font-family: var(--font-mono);
}
.hero-terminal { padding: 10px 20px; font-size: 11.5px; line-height: 1.9; }
.doc-terminal { padding: 10px 16px; font-size: 11px; line-height: 1.8; }
.preview-terminal { padding: 8px 14px; font-size: 11px; color: var(--text-secondary); }
.term-cmd { color: var(--text-primary); }
.term-prompt { color: var(--accent-text); }
.term-status { display: flex; align-items: center; gap: 6px; }
.term-status[hidden] { display: none; }
.term-busy { color: var(--accent-text); }
.term-done { color: var(--text-secondary); }
.term-status-slot { height: 1.8em; }

/* patch lines (animated diff) — double the class so the offset survives the
   margin shorthand on .doc-p / .doc-line regardless of rule order */
.doc-p.patch-line, .doc-line.patch-line { padding: 1px 8px; margin-left: -8px; border-radius: 6px; }
.patch-line.animate {
  animation: grove-patch-settle 1.6s var(--ease-out) both,
             grove-text-in .42s var(--ease-out) both;
}

/* ---- feature row ---- */
.feature-row { border-top: 1px solid var(--border-hairline); background: var(--paper-2); }
.feature-grid {
  padding-top: 64px; padding-bottom: 64px;
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 52px; align-items: start;
}
.feature-ruled { border-left: 1px solid var(--border-hairline); padding-left: 36px; }
.feature-title {
  font-family: var(--font-prose); font-size: 19px; font-weight: 600; margin: 5px 0 8px;
}
.feature p { font-size: 14px; line-height: 1.65; color: var(--text-secondary); margin: 0; text-wrap: pretty; }

/* ---- bands & splits ---- */
.band { border-top: 1px solid var(--border-hairline); }
.band-tinted { background: var(--paper-2); }
.band > .container { padding-top: 96px; padding-bottom: 96px; }
.band-themes > .container { padding-top: 72px; padding-bottom: 72px; }

.split { display: grid; gap: 72px; align-items: center; }
.split-copy-first { grid-template-columns: 1fr 1.05fr; }
.split-demo-first { grid-template-columns: 1.05fr 1fr; }
.split-safety { grid-template-columns: 1.15fr 1fr; align-items: start; }
.split-stacked { margin-top: 88px; }
.split-demo-first.split-stacked { grid-template-columns: 1.15fr 1fr; }
.split-copy-first.split-stacked { grid-template-columns: 1fr 1.15fr; }

.section-title {
  font-family: var(--font-prose); font-size: 40px; line-height: 1.12;
  font-weight: 400; letter-spacing: -0.015em; margin: 14px 0 16px; text-wrap: pretty;
}
.section-title-center { margin-top: 0; }
.section-title-themes { font-size: 34px; line-height: 1.15; margin: 0 0 12px; }
.section-body { font-size: 15.5px; line-height: 1.7; color: var(--text-secondary); margin: 0 0 14px; text-wrap: pretty; }
.section-body-last { margin-bottom: 0; }
.sub-title {
  font-family: var(--font-prose); font-size: 28px; line-height: 1.2;
  font-weight: 400; letter-spacing: -0.01em; margin: 0 0 12px;
}
.sub-body { margin-bottom: 24px; }
.center-head { max-width: 62ch; margin: 0 auto 56px; text-align: center; }
.center-head .section-body { margin-bottom: 0; }
.center-head-tight { margin-bottom: 0; }
.center-head-themes { max-width: 58ch; margin-bottom: 36px; }

/* ---- auto-hide demo ---- */
.demo-card {
  background: var(--surface-editor); border: 1px solid var(--border-hairline);
  border-radius: 12px; padding: 30px 34px;
  font-family: var(--font-prose); font-size: 17px; line-height: 1.8;
}
.ah-line {
  padding: 4px 12px; margin: 0 -12px; border-radius: 7px;
  background: transparent; transition: background .14s var(--ease-out);
  cursor: default; white-space: nowrap;
}
.ah-line.active { background: var(--surface-hover); }
.ah-line .mk {
  display: none;
  font-family: var(--font-mono); font-size: 0.82em; color: var(--accent-text); opacity: .85;
}
.ah-line.active .mk { display: inline; animation: grove-text-in .16s var(--ease-out) both; }
.ah-h1 { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; }
.ah-line strong { color: var(--text-primary); }
.ah-todo { display: flex; align-items: center; gap: 9px; }
.ah-todo .todo-box { width: 15px; height: 15px; }
.ah-todo.active .ah-box { display: none; }

/* ---- agents / live reflection ---- */
.doc-window { border-radius: 12px; box-shadow: var(--shadow-card); }
.doc-body { font-family: var(--font-prose); padding: 24px 28px; font-size: 16px; line-height: 1.8; }
.doc-line { margin: 0 0 10px; white-space: nowrap; }
.doc-line-last { margin-bottom: 0; }
.replay-row { margin-top: 14px; display: flex; align-items: center; gap: 12px; }

/* ---- reconcile card ---- */
.reconcile-card {
  max-width: 560px; background: var(--surface-editor);
  border: 1px solid var(--border-hairline); border-radius: 14px;
  box-shadow: var(--shadow-popover); overflow: hidden;
}
.recon-head { padding: 18px 20px 14px; border-bottom: 1px solid var(--border-hairline); }
.recon-title { font-size: 14px; font-weight: 600; }
.recon-sub { font-size: 12.5px; color: var(--text-tertiary); margin-top: 4px; line-height: 1.5; }
.recon-choices { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; }
.recon-choice {
  display: block; width: 100%; text-align: left; cursor: pointer;
  font-family: var(--font-ui);
  padding: 12px 14px; border-radius: 10px;
  background: var(--surface-card); border: 1.5px solid var(--border-hairline);
  transition: background .14s var(--ease-out), border-color .14s var(--ease-out);
}
.recon-choice.selected { background: var(--accent-soft); border-color: var(--accent); }
.recon-meta { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.recon-dot { width: 7px; height: 7px; border-radius: 50%; }
.dot-modified { background: var(--git-modified); }
.dot-agent { background: var(--agent); }
.dot-renamed { background: var(--git-renamed); }
.recon-who {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-secondary);
}
.recon-when { font-size: 11px; color: var(--text-faint); }
.recon-check { font-size: 16px; color: var(--text-faint); margin-left: auto; }
.recon-choice.selected .recon-check { color: var(--accent); }
.recon-text { font-family: var(--font-prose); font-size: 15.5px; line-height: 1.5; color: var(--text-primary); display: block; }
.recon-result {
  margin-top: 2px; padding: 10px 14px; border-radius: 8px;
  background: var(--surface-well); border: 1px dashed var(--border-default);
  min-height: 24px; display: flex; align-items: center; gap: 10px;
}
.recon-result-label {
  font-size: 10.5px; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; color: var(--text-tertiary); flex: none;
}
.recon-result-text { font-family: var(--font-prose); font-size: 14.5px; line-height: 1.5; color: var(--text-faint); }
.recon-result-text.picked { color: var(--text-primary); }
.recon-actions {
  display: flex; justify-content: flex-end; gap: 10px; padding: 12px 20px;
  border-top: 1px solid var(--border-hairline);
}

/* ---- timeline card ---- */
.timeline-card {
  max-width: 360px; background: var(--surface-card);
  border: 1px solid var(--border-hairline); border-radius: 12px;
  box-shadow: var(--shadow-popover); overflow: hidden; font-size: 13px;
}
.tl-head {
  display: flex; align-items: center; gap: 8px; height: 44px;
  padding: 0 14px 0 16px; border-bottom: 1px solid var(--border-hairline);
}
.tl-head > i { font-size: 16px; color: var(--text-secondary); }
.tl-title { font-weight: 600; color: var(--text-primary); }
.tl-file { font-size: 11px; color: var(--text-faint); }
.tl-close { font-size: 13px; color: var(--text-tertiary); }
.tl-rows { padding: 8px; }
.tl-row { display: flex; gap: 12px; padding: 10px 14px 10px 12px; border-radius: 8px; }
.tl-row-selected { background: var(--surface-selected); }
.tl-rail { position: relative; width: 16px; flex: none; display: flex; justify-content: center; }
.tl-line { position: absolute; top: 18px; bottom: -10px; width: 1.5px; background: var(--border-hairline); }
.tl-node {
  position: relative; z-index: 1; margin-top: 3px; width: 14px; height: 14px;
  border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--surface-card); border: 1.5px solid;
}
.tl-node-core { width: 5px; height: 5px; border-radius: 50%; }
.node-accent { border-color: var(--accent); } .node-accent .tl-node-core { background: var(--accent); }
.node-agent { border-color: var(--agent); } .node-agent .tl-node-core { background: var(--agent); }
.node-faint { border-color: var(--text-faint); } .node-faint .tl-node-core { background: var(--text-faint); }
.node-modified { border-color: var(--git-modified); } .node-modified .tl-node-core { background: var(--git-modified); }
.tl-cell { flex: 1; min-width: 0; }
.tl-row-top { display: flex; align-items: baseline; gap: 8px; }
.tl-row-title { font-weight: 500; color: var(--text-primary); }
.tl-time { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }
.tl-row-note { display: flex; align-items: center; gap: 5px; margin-top: 2px; }
.tl-row-note i { font-size: 12px; }
.ico-accent { color: var(--accent); }
.ico-agent { color: var(--agent); }
.ico-faint { color: var(--text-faint); }
.ico-modified { color: var(--git-modified); }
.tl-row-note span { font-size: 12px; color: var(--text-tertiary); }
.tl-foot { padding: 12px 16px; border-top: 1px solid var(--border-hairline); }
.tl-safety {
  display: flex; align-items: center; gap: 6px; margin-bottom: 10px;
  font-size: 12px; color: var(--text-tertiary);
}
.tl-safety i { font-size: 14px; color: var(--git-added); }

/* ---- workspace mock ---- */
.workspace-mock {
  display: grid; grid-template-columns: 340px 1fr;
  max-width: 880px; margin: 44px auto 0;
  background: var(--surface-editor); border: 1px solid var(--border-hairline);
  border-radius: 12px; overflow: hidden;
}
.ws-sidebar {
  border-right: 1px solid var(--border-hairline); background: var(--material-sidebar);
  padding: 16px 10px; font-size: 12.5px;
}
.ws-root {
  display: flex; align-items: center; gap: 6px; padding: 4px 10px;
  color: var(--text-tertiary); font-weight: 600; font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase;
}
.ws-root i { font-size: 10px; }
.ws-root-second { padding-top: 14px; padding-bottom: 4px; }
.ws-path {
  font-family: var(--font-mono); font-size: 10px; color: var(--text-faint);
  text-transform: none; letter-spacing: 0;
}
.ws-file { display: flex; align-items: center; gap: 7px; padding: 5px 10px; color: var(--text-secondary); }
.ws-file i { font-size: 13px; }
.ws-file-active {
  border-radius: 6px; background: var(--accent-soft);
  color: var(--accent-text); font-weight: 500;
}
.git-badge { font-family: var(--font-mono); font-size: 10px; color: var(--git-modified); }
.ws-editor { position: relative; padding: 26px 30px; font-family: var(--font-prose); font-size: 16px; line-height: 1.8; }
.ws-p { margin: 0 0 10px; color: var(--text-secondary); }
.ws-p-last { margin: 0; }
.wiki-popover {
  position: absolute; left: 150px; bottom: 16px;
  background: var(--surface-editor); border: 1px solid var(--border-hairline);
  border-radius: 10px; box-shadow: var(--shadow-popover); padding: 12px 14px; width: 250px;
  font-family: var(--font-ui);
}
.wiki-pop-title { font-size: 12px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.wiki-pop-title i { font-size: 13px; color: var(--accent-text); }
.wiki-pop-sub { font-size: 11px; color: var(--text-tertiary); margin-top: 3px; }

/* ---- palettes (search + command) ---- */
.palette-card {
  background: var(--surface-editor); border: 1px solid var(--border-hairline);
  border-radius: 12px; box-shadow: var(--shadow-popover); overflow: hidden;
}
.palette-card-cmd { max-width: 520px; }
.palette-input {
  display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 50px;
  border-bottom: 1px solid var(--border-hairline);
}
.palette-input-cmd { height: 48px; }
.palette-input > i { font-size: 16px; color: var(--text-tertiary); }
.palette-query { font-size: 14px; color: var(--text-primary); }
.search-scope {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px;
  border-bottom: 1px solid var(--border-hairline);
}
.seg { display: inline-flex; background: var(--surface-hover); border-radius: 7px; padding: 2px; font-size: 11.5px; font-weight: 600; }
.seg-item { padding: 3px 10px; color: var(--text-tertiary); }
.seg-item-on { border-radius: 5px; background: var(--surface-editor); box-shadow: var(--shadow-card); color: var(--text-primary); }
.search-count { margin-left: auto; font-size: 12px; color: var(--text-tertiary); }
.palette-rows { padding: 6px; font-size: 13px; }
.group-label {
  display: flex; align-items: center; gap: 6px; padding: 6px 10px 4px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-faint);
}
.group-label i { font-size: 12px; }
.group-label-second { padding-top: 8px; }
.search-hit { padding: 9px 12px; border-radius: 8px; }
.search-hit-active, .search-hit:hover { background: var(--surface-hover); }
.hit-top { display: flex; align-items: center; gap: 8px; }
.hit-top > i { font-size: 14px; color: var(--text-tertiary); }
.hit-name { font-weight: 500; color: var(--text-primary); }
.hit-kind {
  font-size: 9.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--text-tertiary); background: var(--surface-well);
  border-radius: 4px; padding: 1px 6px;
}
.hit-kind-tag { color: var(--git-renamed); }
.hit-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--git-modified); }
.hit-snippet {
  margin-top: 3px; margin-left: 22px;
  font-family: var(--font-prose); font-size: 14.5px; line-height: 1.5; color: var(--text-secondary);
}
.cmd-row {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px;
  border-radius: 8px; color: var(--text-primary);
}
.cmd-row > i { font-size: 15px; color: var(--text-tertiary); }
.cmd-row:hover { background: var(--surface-hover); }
.cmd-row-active { background: var(--accent-soft); color: var(--accent-text); }
.cmd-row-active > i { color: inherit; }
.cmd-name { font-weight: 500; }
.cmd-key { font-family: var(--font-mono); font-size: 11px; color: var(--text-faint); }

/* ---- themes ---- */
.themes-layout {
  display: grid; grid-template-columns: 300px 1fr; gap: 40px;
  max-width: 920px; margin: 0 auto; align-items: start;
}
.theme-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-chip {
  display: flex; align-items: center; gap: 9px; padding: 9px 12px;
  border-radius: 8px; border: 1px solid var(--border-hairline);
  background: var(--surface-app); cursor: pointer; font-family: var(--font-ui);
  transition: transform .14s var(--ease-spring);
}
.theme-chip:hover { transform: scale(1.03); }
.theme-chip:active { transform: scale(0.97); }
.theme-chip.selected { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.chip-swatches { display: flex; }
.sw { width: 14px; height: 14px; border-radius: 50%; }
.sw-app { background: var(--surface-app); border: 1px solid var(--border-default); }
.sw-accent { background: var(--accent); margin-left: -5px; }
.sw-ink { background: var(--text-primary); margin-left: -5px; }
.chip-name { font-size: 12.5px; font-weight: 600; color: var(--text-primary); }
.theme-preview {
  background: var(--surface-editor); color: var(--text-primary);
  border: 1px solid var(--border-hairline); border-radius: 12px;
  box-shadow: var(--shadow-card); overflow: hidden;
  transition: background .22s var(--ease-in-out);
}
.preview-doc { font-family: var(--font-prose); padding: 22px 28px; font-size: 16px; line-height: 1.8; }
.preview-title { font-size: 22px; font-weight: 600; margin-bottom: 6px; }
.preview-doc .doc-p { margin-bottom: 8px; }
.preview-doc .doc-p-flush { margin-bottom: 0; }

/* ---- FAQ ---- */
.faq-wrap { max-width: 720px; margin: 0 auto; padding: 96px 40px; }
.faq-title { text-align: center; margin: 0 0 36px; text-wrap: balance; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border-hairline); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: 12px; padding: 20px 4px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-ui); text-align: left;
}
.faq-q:hover { background: var(--surface-hover); }
.faq-q span { font-size: 16px; font-weight: 600; color: var(--text-primary); flex: 1; }
.faq-q i { font-size: 15px; color: var(--text-tertiary); }
.faq-a {
  margin: 0; padding: 0 36px 22px 4px;
  font-size: 15px; line-height: 1.7; color: var(--text-secondary); text-wrap: pretty;
  animation: grove-pop-in .22s var(--ease-out) both;
}

/* ---- final CTA ---- */
.cta-wrap { max-width: 640px; margin: 0 auto; padding: 104px 40px; text-align: center; }
.cta-title {
  font-family: var(--font-prose); font-size: 46px; line-height: 1.1;
  font-weight: 400; letter-spacing: -0.02em; margin: 20px 0 14px; text-wrap: balance;
}
.cta-body { margin-bottom: 30px; }

/* ---- footer ---- */
.site-footer { border-top: 1px solid var(--border-hairline); }
.footer-inner { padding-top: 36px; padding-bottom: 36px; display: flex; align-items: center; gap: 24px; }
.footer-inner a { font-size: 12px; color: var(--text-tertiary); }
.footer-inner a:hover { color: var(--text-primary); }
.footer-copy { font-size: 12px; color: var(--text-faint); }

/* ---- reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  .caret, .agent-dot { animation: none; }
  .caret { opacity: 1; }
  .agent-dot { opacity: 1; }
  .patch-line.animate, .ah-line.active .mk, .faq-a { animation: none; }
  .theme-chip:hover, .theme-chip:active { transform: none; }
}

/* ---- responsive ---- */
@media (max-width: 960px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .hero-title { font-size: 44px; }
  .split, .split-copy-first, .split-demo-first, .split-safety,
  .split-demo-first.split-stacked, .split-copy-first.split-stacked {
    grid-template-columns: 1fr; gap: 36px;
  }
  .split-stacked { margin-top: 64px; }
  /* demos read better under their copy when stacked */
  .split-demo-first > div:first-child { order: 2; }
  .split-demo-first > div:last-child { order: 1; }
  .feature-grid { grid-template-columns: 1fr; gap: 28px; }
  .feature-ruled { border-left: none; padding-left: 0; border-top: 1px solid var(--border-hairline); padding-top: 24px; }
  .themes-layout { grid-template-columns: 1fr; }
  .workspace-mock { grid-template-columns: 1fr; }
  .ws-sidebar { border-right: none; border-bottom: 1px solid var(--border-hairline); }
  .band > .container { padding-top: 64px; padding-bottom: 64px; }
  .faq-wrap { padding: 64px 24px; }
  .cta-wrap { padding: 72px 24px; }
  .doc-line, .ah-line { white-space: normal; }
}

@media (max-width: 640px) {
  .site-nav { display: none; }
  .hero-title { font-size: 34px; }
  .waitlist-form { flex-direction: column; }
  .waitlist-hero { width: 100%; }
  .btn-waitlist { width: 100%; }
  /* the floating link preview would cover the prose at this width — let it flow below */
  .wiki-popover { position: static; margin-top: 16px; width: auto; max-width: 280px; }
}
