/* Crux landing page, plain CSS, no build step, no frameworks.
   Palette and type mirror the Crux desktop app (see meeting-transcription/
   src/gui/theme.py): warm cream surfaces, near-black ink, black pill
   buttons, one orange accent. Fonts are system stacks only, zero
   external requests. */

/* ---------- Design tokens ---------- */
:root {
  --bg: #FAF7F3;
  --bg-elevated: #FFFFFF;
  --bg-card: #F5F2ED;
  --bg-card-alt: #EAE5DC;
  --text: #1A1A1A;
  --text-secondary: #6B6560;
  --text-muted: #A09890;
  --text-faint: #C5BFB8;
  --border: #EDECEB;
  --border-hover: #DFDEDD;
  --accent: #E88A30;
  --accent-soft: #FDF3E9;
  --pill-bg: #1A1A1A;
  --pill-fg: #FBF7F0;
  --pill-hover: #2D2D2D;
  --shadow-sm: 0 1px 2px rgba(26, 20, 15, 0.06);
  --shadow-md: 0 10px 30px rgba(26, 20, 15, 0.10);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --max-width: 1120px;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "New York", Georgia, "Times New Roman", serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono",
    monospace;

  /* Hero demo bubble colors, matching meeting-transcription/src/gui/theme.py
     Colors.BUBBLE_OTHERS / Colors.BUBBLE_YOU / Colors.GREEN / Colors.RED,
     which stay the same hex in the app regardless of theme. */
  --bubble-other-bg: var(--bg-card);
  --bubble-you-bg: #E9F2EB;
  --live-green: #3B9E6F;
  --stop-red: #D94F4F;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #17130F;
    --bg-elevated: #201A14;
    --bg-card: #241E17;
    --bg-card-alt: #2B241A;
    --text: #F5EFE6;
    --text-secondary: #C7BCAC;
    --text-muted: #948875;
    --text-faint: #5C5346;
    --border: #332B21;
    --border-hover: #453B2E;
    --accent: #E88A30;
    --accent-soft: #2E2116;
    --pill-bg: #F5EFE6;
    --pill-fg: #17130F;
    --pill-hover: #E4DCCB;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.5);

    /* Warm near-black variants of the hero demo bubbles, same family as
       --bg-card/--accent-soft above. --live-green/--stop-red are theme-
       invariant in the app itself, so they repeat unchanged here. */
    --bubble-other-bg: var(--bg-card);
    --bubble-you-bg: #213027;
    --live-green: #3B9E6F;
    --stop-red: #D94F4F;
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section eyebrow (mono numbered label, app's "001 CAPTURE" motif) ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 2px;
  background: var(--accent);
  flex-shrink: 0;
}
.section > .wrap > .eyebrow,
.section .feature-card .eyebrow {
  justify-content: center;
}
.feature-card .eyebrow { justify-content: flex-start; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease,
    background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--pill-bg);
  color: var(--pill-fg);
  box-shadow: var(--shadow-sm);
}
.btn-primary:not(:disabled):hover { background: var(--pill-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-primary:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-small { padding: 9px 18px; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
  white-space: nowrap;
}
.logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: var(--pill-bg);
  color: var(--pill-fg);
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 600;
}
.nav-links {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.92rem;
  font-weight: 500;
}
.nav-links a:hover { color: var(--accent); }

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-inner { text-align: center; }

.badge {
  display: inline-block;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  background: var(--accent-soft);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  margin: 0 0 24px;
}

h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.14;
  max-width: 18ch;
  margin: 0 auto;
}

.hero-sub {
  max-width: 46ch;
  margin: 20px auto 0;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  color: var(--text-secondary);
}

.privacy-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 22px auto 0;
  font-weight: 700;
  color: var(--accent);
  font-size: 1.02rem;
}
.icon-lock { color: var(--accent); flex-shrink: 0; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 30px;
}

.hero-fineprint {
  margin-top: 16px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* ---------- Screenshot placeholder frame ---------- */
.frame {
  margin: 48px auto 0;
  max-width: 880px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  text-align: left;
}
.frame-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}
.frame-dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.dot-red { background: #FF5F57; }
.dot-yellow { background: #FEBC2E; }
.dot-green { background: #28C840; }
.frame-title {
  margin: 0 auto;
  transform: translateX(-19px);
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--text-secondary);
}
.frame-caption {
  text-align: center;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ---------- Five-scene feature reel (stands in for a real screenshot) ----------
   One 23s master timeline (.scene-1..5 below) crossfades five scenes inside
   the window frame, ~4.5s each with a ~0.4s crossfade. Each scene and its
   caption-bar entry share the same @keyframes name, so content and caption
   always switch in lockstep. JS only drives the scene-1 timer digits. */
.reel {
  position: relative;
  min-height: 348px;
  background: var(--bg-elevated);
  overflow: hidden;
}
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
}
.scene-1 { animation: reel-scene-1 23s ease-in-out infinite; }
.scene-2 { animation: reel-scene-2 23s ease-in-out infinite; }
.scene-3 { animation: reel-scene-3 23s ease-in-out infinite; }
.scene-4 { animation: reel-scene-4 23s ease-in-out infinite; }
.scene-5 { animation: reel-scene-5 23s ease-in-out infinite; }

/* Scene windows (23s total, ~4.6s each) with a ~1.7% (~0.4s) crossfade
   shared between neighbours. Scene 1 also wraps 98.3%-100%/0% so the loop
   is seamless. */
@keyframes reel-scene-1 {
  0%     { opacity: 1; }
  18.3%  { opacity: 1; }
  20%    { opacity: 0; }
  98.3%  { opacity: 0; }
  100%   { opacity: 1; }
}
@keyframes reel-scene-2 {
  0%, 18.3%   { opacity: 0; }
  20%, 38.3%  { opacity: 1; }
  40%, 100%   { opacity: 0; }
}
@keyframes reel-scene-3 {
  0%, 38.3%   { opacity: 0; }
  40%, 58.3%  { opacity: 1; }
  60%, 100%   { opacity: 0; }
}
@keyframes reel-scene-4 {
  0%, 58.3%   { opacity: 0; }
  60%, 78.3%  { opacity: 1; }
  80%, 100%   { opacity: 0; }
}
@keyframes reel-scene-5 {
  0%, 78.3%  { opacity: 0; }
  80%, 98.3% { opacity: 1; }
  100%       { opacity: 0; }
}

.demo-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
}
.demo-tab {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--accent);
}
.demo-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--live-green);
}
.demo-live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--live-green);
}
.demo-timer {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.demo-done {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--live-green);
}
.demo-done svg { flex-shrink: 0; }

.demo-transcript {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px 20px;
}
.bubble {
  max-width: 78%;
  margin: 0;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--text);
  overflow-wrap: break-word;
  opacity: 0;
  transform: translateY(8px);
}
.bubble-other { align-self: flex-start; background: var(--bubble-other-bg); }
.bubble-you { align-self: flex-end; background: var(--bubble-you-bg); }

/* Scene 1: four bubbles rise quickly, one after another, over the first
   ~3.6s the scene is visible; they reset off-screen (parent opacity 0)
   long before the next loop, so the rise repeats each time. */
.reel-b1 { animation: reel-b1 23s ease-in-out infinite; }
.reel-b2 { animation: reel-b2 23s ease-in-out infinite; }
.reel-b3 { animation: reel-b3 23s ease-in-out infinite; }
.reel-b4 { animation: reel-b4 23s ease-in-out infinite; }
@keyframes reel-b1 { 0% { opacity: 0; transform: translateY(8px); } 1.3% { opacity: 1; transform: translateY(0); } 18% { opacity: 1; transform: translateY(0); } 20%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes reel-b2 { 0%, 4.3% { opacity: 0; transform: translateY(8px); } 5.65% { opacity: 1; transform: translateY(0); } 18% { opacity: 1; transform: translateY(0); } 20%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes reel-b3 { 0%, 8.7% { opacity: 0; transform: translateY(8px); } 10% { opacity: 1; transform: translateY(0); } 18% { opacity: 1; transform: translateY(0); } 20%, 100% { opacity: 0; transform: translateY(8px); } }
@keyframes reel-b4 { 0%, 13% { opacity: 0; transform: translateY(8px); } 14.3% { opacity: 1; transform: translateY(0); } 18% { opacity: 1; transform: translateY(0); } 20%, 100% { opacity: 0; transform: translateY(8px); } }

/* Scene 2: labeled bubbles (You / Other 1 / Other 2), mirroring the app's
   export speaker labels. Fade in gently, no rise - it's the "settled"
   final transcript, not a live feed. */
.labeled-bubble {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-self: flex-start;
  max-width: 78%;
  opacity: 0;
  transform: translateY(6px);
}
.labeled-bubble .bubble { align-self: stretch; opacity: 1; transform: none; }
.labeled-bubble-you { align-self: flex-end; align-items: flex-end; }
.bubble-label {
  margin: 0;
  padding: 0 4px;
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-muted);
}
.reel-c1 { animation: reel-c1 23s ease-in-out infinite; }
.reel-c2 { animation: reel-c2 23s ease-in-out infinite; }
.reel-c3 { animation: reel-c3 23s ease-in-out infinite; }
@keyframes reel-c1 { 0%, 20% { opacity: 0; transform: translateY(6px); } 21.3% { opacity: 1; transform: translateY(0); } 38% { opacity: 1; transform: translateY(0); } 40%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes reel-c2 { 0%, 22.6% { opacity: 0; transform: translateY(6px); } 23.9% { opacity: 1; transform: translateY(0); } 38% { opacity: 1; transform: translateY(0); } 40%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes reel-c3 { 0%, 25.2% { opacity: 0; transform: translateY(6px); } 26.5% { opacity: 1; transform: translateY(0); } 38% { opacity: 1; transform: translateY(0); } 40%, 100% { opacity: 0; transform: translateY(6px); } }

/* Scene 3: one line cycling through languages, paired with the model card
   whose highlight ring tracks it (reel-lang-1/2/3 shared below). */
.lang-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 20px;
  text-align: center;
}
.lang-line-wrap {
  position: relative;
  width: 100%;
  max-width: 420px;
  min-height: 52px;
}
.lang-line {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  background: var(--bubble-other-bg);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.4;
  overflow-wrap: break-word;
  word-break: break-word;
  opacity: 0;
}
.model-cards {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-top: 16px;
}
.model-card {
  position: relative;
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}
.model-name {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
}
.model-desc {
  margin: 2px 0 0;
  font-size: 0.64rem;
  line-height: 1.3;
  color: var(--text-secondary);
}
.model-highlight {
  position: absolute;
  inset: -1px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  opacity: 0;
  pointer-events: none;
}
.lang-1, .model-highlight-1 { animation: reel-lang-1 23s ease-in-out infinite; }
.lang-2, .model-highlight-2 { animation: reel-lang-2 23s ease-in-out infinite; }
.lang-3, .model-highlight-3 { animation: reel-lang-3 23s ease-in-out infinite; }
@keyframes reel-lang-1 { 0%, 39.1% { opacity: 0; } 40% { opacity: 1; } 45.1% { opacity: 1; } 46.1%, 100% { opacity: 0; } }
@keyframes reel-lang-2 { 0%, 45.1% { opacity: 0; } 46.1% { opacity: 1; } 51.2% { opacity: 1; } 52.2%, 100% { opacity: 0; } }
@keyframes reel-lang-3 { 0%, 51.2% { opacity: 0; } 52.2% { opacity: 1; } 57.3% { opacity: 1; } 58.3%, 100% { opacity: 0; } }

/* Scene 4: on-device privacy - a laptop with a waveform inside it, plus a
   crossed-out cloud tag. currentColor throughout so both tokens stay
   theme-correct automatically. */
.privacy-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 20px;
}
.laptop-svg {
  width: 130px;
  height: auto;
  color: var(--live-green);
}
.wave-bars line {
  animation: reel-wave-pulse 1.2s ease-in-out infinite;
  transform-origin: center;
}
.wave-bars line:nth-child(2n) { animation-delay: 0.2s; }
.wave-bars line:nth-child(3n) { animation-delay: 0.4s; }
@keyframes reel-wave-pulse {
  0%, 100% { transform: scaleY(0.82); }
  50%      { transform: scaleY(1); }
}
.privacy-tag {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.icon-cloud-slash { color: var(--stop-red); flex-shrink: 0; }

/* Scene 5: a note materializing - serif title, three bullets fading in in
   turn, a small "your own endpoint" hint line. */
.note-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px 30px;
}
.note-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--text);
}
.note-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
}
.note-bullets li {
  position: relative;
  padding-left: 16px;
  font-size: 0.86rem;
  color: var(--text-secondary);
  opacity: 0;
  transform: translateY(6px);
}
.note-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.note-hint {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}
.reel-n1 { animation: reel-n1 23s ease-in-out infinite; }
.reel-n2 { animation: reel-n2 23s ease-in-out infinite; }
.reel-n3 { animation: reel-n3 23s ease-in-out infinite; }
@keyframes reel-n1 { 0%, 80% { opacity: 0; transform: translateY(6px); } 81.3% { opacity: 1; transform: translateY(0); } 96% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes reel-n2 { 0%, 82.6% { opacity: 0; transform: translateY(6px); } 83.9% { opacity: 1; transform: translateY(0); } 96% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(6px); } }
@keyframes reel-n3 { 0%, 85.2% { opacity: 0; transform: translateY(6px); } 86.5% { opacity: 1; transform: translateY(0); } 96% { opacity: 1; transform: translateY(0); } 98%, 100% { opacity: 0; transform: translateY(6px); } }

/* ---------- Reel caption bar (numbered eyebrow + one-line caption) ----------
   Lives inside the window frame, under the simulated screen. Shares the
   scene-1..5 keyframes above so it always switches with its scene. */
.demo-caption-bar {
  position: relative;
  height: 58px;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  overflow: hidden;
}
.cap {
  position: absolute;
  inset: 0;
  padding: 9px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  opacity: 0;
}
.cap-1 { animation: reel-scene-1 23s ease-in-out infinite; }
.cap-2 { animation: reel-scene-2 23s ease-in-out infinite; }
.cap-3 { animation: reel-scene-3 23s ease-in-out infinite; }
.cap-4 { animation: reel-scene-4 23s ease-in-out infinite; }
.cap-5 { animation: reel-scene-5 23s ease-in-out infinite; }
.cap-eyebrow {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.cap-text {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

/* Reduced-motion fallback list: hidden unless prefers-reduced-motion. */
.reel-fallback-captions {
  display: none;
  flex-direction: column;
  gap: 10px;
  max-width: 520px;
  margin: 18px auto 0;
  padding: 0;
  list-style: none;
  text-align: left;
}
.reel-fallback-captions li { display: flex; flex-direction: column; gap: 2px; }

/* Reduced motion: freeze the reel on scene 1 (Live badge, timer, all four
   bubbles already in place, no rise) and list every scene's caption below
   the frame as plain static text instead of crossfading through them. */
@media (prefers-reduced-motion: reduce) {
  .reel, .reel *, .demo-caption-bar, .demo-caption-bar * {
    animation: none !important;
  }
  .scene-1 { opacity: 1; }
  .scene-2, .scene-3, .scene-4, .scene-5 { display: none; }
  .reel-b1, .reel-b2, .reel-b3, .reel-b4 {
    opacity: 1;
    transform: none;
  }
  .demo-caption-bar { display: none; }
  .reel-fallback-captions { display: flex; }
}

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-subtle { background: var(--bg-card); }
.section .wrap > .eyebrow { display: flex; }

h2 {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: center;
}
.section-sub {
  max-width: 56ch;
  margin: 12px auto 0;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.98rem;
}

/* ---------- Features ---------- */
.feature-grid {
  margin-top: 44px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
@media (max-width: 720px) {
  .feature-grid { grid-template-columns: 1fr; }
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 10px;
}
.feature-card p { color: var(--text-secondary); font-size: 0.95rem; }

/* ---------- Comparison table ---------- */
.compare-table {
  width: 100%;
  margin-top: 40px;
  border-collapse: collapse;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.compare-table th, .compare-table td {
  padding: 16px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
.compare-table thead th {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
  background: var(--bg-card);
}
.compare-table tbody th {
  font-weight: 600;
  color: var(--text);
  background: var(--bg-elevated);
}
.compare-table tbody td:first-of-type { color: var(--accent); font-weight: 600; }
.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td { border-bottom: none; }

.table-footnote {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Stack the comparison table on narrow screens. No horizontal scroll. */
@media (max-width: 640px) {
  .compare-table thead { display: none; }
  .compare-table, .compare-table tbody, .compare-table tr, .compare-table th, .compare-table td {
    display: block;
    width: 100%;
  }
  .compare-table tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--border);
  }
  .compare-table tbody tr:last-child { border-bottom: none; }
  .compare-table th, .compare-table td {
    border-bottom: none;
    padding: 4px 0;
  }
  .compare-table tbody th {
    background: transparent;
    padding-top: 0;
  }
  .compare-table td::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    color: var(--text-muted);
  }
}

/* ---------- Pricing ---------- */
.pricing-card {
  max-width: 460px;
  margin: 40px auto 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 32px;
  text-align: center;
}
.price { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.price-amount {
  font-family: var(--font-mono);
  font-size: 2.8rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.price-term {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--text-secondary);
  font-size: 1rem;
}
.price-sub { margin-top: 12px; color: var(--text-secondary); font-size: 0.94rem; }

.pricing-list {
  margin: 28px 0;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-list li {
  position: relative;
  padding-left: 28px;
  font-size: 0.95rem;
}
.pricing-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
}
.pricing-list li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

.pricing-ctas {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.pricing-fineprint {
  margin-top: 18px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* Plain-text "coming soon" line under an active CTA - honest about what's
   not ready yet without looking like a broken/disabled button. Shared by
   the pricing-ctas stack; the hero uses .hero-fineprint for the same job. */
.trial-note {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 760px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
details {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
}
summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}
details[open] summary::after { content: "\2212"; }
details p {
  padding-bottom: 18px;
  color: var(--text-secondary);
  font-size: 0.94rem;
  max-width: 68ch;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.footer-brand p {
  margin-top: 8px;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
}
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ---------- Legal document pages (EULA / Privacy / Refunds) ----------
   Simple readable prose column, reusing the site's existing tokens/type.
   The site-header/site-footer rules above are reused as-is on these pages;
   only .legal-* below is new. */
.legal-page { padding: 56px 0 88px; }
.legal-wrap { max-width: 720px; }

.legal-content h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.8rem, 3.4vw, 2.3rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-align: left;
  max-width: none;
  margin: 0 0 6px;
}
.legal-updated {
  margin: 0 0 36px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.legal-content h2 {
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  text-align: left;
  margin: 36px 0 12px;
}
.legal-content > h2:first-of-type { margin-top: 0; }
.legal-content p {
  margin: 0 0 16px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
}
.legal-content ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 16px;
  padding: 0;
}
.legal-content li {
  position: relative;
  padding-left: 22px;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.6;
}
.legal-content li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}
.legal-content strong { color: var(--text); font-weight: 700; }
.legal-content em { font-style: italic; }
.legal-content code {
  font-family: var(--font-mono);
  font-size: 0.87em;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--border-hover);
  text-underline-offset: 2px;
}
.legal-content a:hover { text-decoration-color: var(--accent); }

.legal-back {
  display: inline-block;
  margin-top: 44px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.legal-back:hover { color: var(--accent); }
