:root {
  /* Color palette — deep navy + warm amber accent */
  --color-bg: #0a0e17;
  --color-bg-elevated: #111827;
  --color-bg-card: #1a2236;
  --color-bg-hover: #1f2b42;
  --color-bg-input: #0f1623;

  --color-border: #2a3654;
  --color-border-subtle: #1e293b;

  --color-text-primary: #e8ecf4;
  --color-text-secondary: #8896b3;
  --color-text-muted: #5a6a8a;
  --color-text-inverse: #0a0e17;

  --color-accent: #f59e0b;
  --color-accent-hover: #d97706;
  --color-accent-subtle: rgba(245, 158, 11, 0.12);

  --color-success: #10b981;
  --color-success-subtle: rgba(16, 185, 129, 0.12);
  --color-warning: #f59e0b;
  --color-warning-subtle: rgba(245, 158, 11, 0.12);
  --color-danger: #ef4444;
  --color-danger-subtle: rgba(239, 68, 68, 0.12);
  --color-info: #3b82f6;
  --color-info-subtle: rgba(59, 130, 246, 0.12);

  /* Typography */
  --font-display: 'Space Mono', monospace;
  --font-body: 'DM Sans', system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Border radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);

  /* Sidebar */
  --sidebar-width: 260px;
  --header-height: 64px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-base: 250ms ease;
}

/* Marketing site styles. Design tokens come from variables.css, which build.js
   prepends — never redefine a --color-* or --text-* here. */

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

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--color-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -0.02em; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1rem; }
h3 { font-size: var(--text-xl); margin: 2rem 0 0.5rem; }
p, ul, ol { margin: 0 0 1.25rem; }
li { margin-bottom: 0.4rem; }

/* Nav — mirrors PublicNav.css so the static and app shells look identical. */
.public-nav { border-bottom: 1px solid var(--color-border-subtle); background: var(--color-bg); position: sticky; top: 0; z-index: 10; }
.public-nav-inner { max-width: 1100px; margin: 0 auto; padding: 0.9rem 1.5rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
/* min-width: 0 lets the brand shrink below its content width, so the wordmark
   truncates rather than pushing the page into horizontal scroll. That matters
   because --font-body falls back to system-ui if the webfont does not load,
   which widens the two nav buttons by ~30px. */
.public-nav-brand { display: flex; align-items: center; gap: 0.6rem; min-width: 0; color: var(--color-text-primary); text-decoration: none; }
.public-nav-logo { background: var(--color-accent); color: var(--color-text-inverse); font-family: var(--font-display); font-weight: 700; padding: 0.25rem 0.5rem; border-radius: 4px; flex-shrink: 0; }
.public-nav-name { font-family: var(--font-display); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.public-nav-links { display: flex; align-items: center; gap: 1.25rem; flex-wrap: wrap; }
/* :not(.btn) is load-bearing, not tidiness. PublicNav.jsx rendered the two CTAs
   as <button>, so a bare `.public-nav-links a` could never reach them. The
   static nav renders them as <a> so they do a full page load, and that turned
   this into a specificity trap: `.public-nav-links a` is (0,1,1) and beats
   `.btn-primary` at (0,1,0), repainting the amber CTA's label in muted
   secondary grey. Keep every nav rule that sets a button-owned property
   excluded from .btn — the media query below relies on the same guard. */
.public-nav-links a:not(.btn) { color: var(--color-text-secondary); font-size: var(--text-sm); }
.public-nav-links a:not(.btn):hover { color: var(--color-text-primary); }

.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 6px; font-weight: 600; font-size: var(--text-sm); border: 1px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--color-accent); color: var(--color-text-inverse); }
.btn-primary:hover { background: var(--color-accent-hover); }
.btn-secondary { background: transparent; color: var(--color-text-primary); border-color: var(--color-border); }
.btn-secondary:hover { background: var(--color-bg-hover); }
.btn-sm { padding: 0.45rem 0.9rem; }

/* overflow-wrap stops an unbreakable token forcing the page into horizontal
   scroll. /privacy quotes a bare URL (myaccount.google.com/permissions) that
   is wider than a 320px column, which pushed the whole document 7px sideways. */
.site-main { max-width: 760px; margin: 0 auto; padding: 3.5rem 1.5rem; overflow-wrap: break-word; }
.site-main > h1 { max-width: 18ch; }

/* Landing layout: the hero, the card grid and the CTA band set their own
   measures, so <main> stops constraining and the running prose is re-narrowed
   to the same 760px reading column the article pages use. */
.site-main-landing { max-width: none; padding: 0; }
.site-prose { max-width: 760px; margin: 0 auto; padding: 0 1.5rem; }

.lede { font-size: var(--text-lg); color: var(--color-text-secondary); }

/* ── Hero ─────────────────────────────────────────────── ported from Landing.css */
.landing-hero { text-align: center; padding: var(--space-16) var(--space-8) var(--space-12); max-width: 800px; margin: 0 auto; }
.hero-badge {
  display: inline-block;
  margin: 0 0 var(--space-6);
  padding: var(--space-1) var(--space-4);
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-radius: 20px;
}
.hero-title { font-size: 3.5rem; line-height: 1.1; margin: 0 0 var(--space-6); letter-spacing: -0.03em; max-width: none; }
.hero-accent { color: var(--color-accent); }
.hero-subtitle { font-size: var(--text-lg); color: var(--color-text-secondary); line-height: 1.7; max-width: 600px; margin: 0 auto var(--space-8); }
.hero-cta { display: flex; gap: var(--space-4); justify-content: center; margin-bottom: var(--space-3); }
.hero-cta .btn { padding: 12px 32px; font-size: var(--text-base); }
.hero-note { font-size: var(--text-xs); color: var(--color-text-muted); margin: 0; }

/* ── Feature cards ────────────────────────────────────── ported from Landing.css */
.landing-features { padding: var(--space-16) var(--space-8); max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: var(--text-3xl); margin: 0 0 var(--space-10); }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature-card {
  padding: var(--space-6);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}
.feature-card:hover { border-color: var(--color-accent); transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent-subtle);
  color: var(--color-accent);
  border-radius: var(--radius-md);
  margin-bottom: var(--space-4);
}
.feature-card h3 { font-size: var(--text-lg); margin: 0 0 var(--space-2); }
.feature-card p { font-size: var(--text-sm); color: var(--color-text-secondary); line-height: 1.6; margin: 0; }

/* ── Full-bleed CTA band ──────────────────────────────── ported from Landing.css */
.landing-cta-section {
  text-align: center;
  margin-top: var(--space-16);
  padding: var(--space-16) var(--space-8);
  background: var(--color-bg-elevated);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}
.landing-cta-section h2 { font-size: var(--text-3xl); margin: 0 0 var(--space-3); }
.landing-cta-section p { color: var(--color-text-secondary); margin: 0 0 var(--space-6); }
.landing-cta-section .btn { padding: 14px 40px; font-size: var(--text-lg); }

/* ── Pricing cards ────────────────────────────────────── ported from Pricing.css */
.pricing-header { text-align: center; padding: var(--space-12) var(--space-8) var(--space-8); }
.pricing-header h1 { font-size: var(--text-3xl); margin: 0 0 var(--space-2); max-width: none; }
.pricing-header p { color: var(--color-text-secondary); font-size: var(--text-lg); max-width: 640px; margin: 0 auto; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-8) var(--space-12);
}
.pricing-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-6);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-base);
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pricing-popular { border-color: var(--color-accent); box-shadow: 0 0 0 1px var(--color-accent); }
.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  margin: 0;
  background: var(--color-accent);
  color: var(--color-text-inverse);
  font-family: var(--font-display);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: 20px;
  white-space: nowrap;
}
.pricing-plan-name { font-size: var(--text-xl); margin: 0 0 var(--space-4); }
.pricing-tagline { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 var(--space-3); }
.pricing-price { margin: 0 0 var(--space-2); display: flex; align-items: baseline; gap: 2px; flex-wrap: wrap; }
.pricing-amount { font-family: var(--font-display); font-size: var(--text-4xl); font-weight: 700; line-height: 1.1; }
.pricing-period { font-size: var(--text-sm); color: var(--color-text-muted); }
.pricing-custom { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--color-text-secondary); }
.pricing-annual { font-size: var(--text-xs); color: var(--color-success); margin: 0 0 var(--space-4); }
.pricing-features {
  list-style: none;
  flex: 1;
  padding: 0;
  margin: var(--space-2) 0 var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.pricing-features li { display: flex; align-items: flex-start; gap: var(--space-2); font-size: var(--text-sm); color: var(--color-text-secondary); margin: 0; }
.pricing-check { color: var(--color-success); flex-shrink: 0; width: 16px; height: 16px; margin-top: 4px; }
.pricing-cta { display: block; width: 100%; text-align: center; padding: var(--space-3); }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: var(--text-sm); display: block; overflow-x: auto; }
th, td { text-align: left; padding: 0.6rem 0.8rem; border-bottom: 1px solid var(--color-border-subtle); }
th { color: var(--color-text-secondary); font-weight: 600; }

blockquote { margin: 0 0 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--color-accent); background: var(--color-bg-card); border-radius: 0 6px 6px 0; }

/* ── FAQ accordion ───────────────────────────────────────────────────────────
   .faq-item is a <details>; the question is an <h3> inside its <summary> and
   the answer is a plain <p> sibling that is in the document whether the item is
   open or closed. Nothing here is JavaScript — see renderFaqBlock(). */
.faq { margin-top: 3.5rem; border-top: 1px solid var(--color-border-subtle); padding-top: 1rem; }
.faq-item { border-bottom: 1px solid var(--color-border-subtle); }

/* The padding lives on <summary>, not on .faq-item, so the whole question row
   is the hit target rather than just the text.
   Removing the default disclosure triangle takes all three declarations:
   `display: flex` is what actually does it in Chrome and Firefox (the marker
   only exists while the box is display: list-item), `list-style: none` states
   the intent and is the documented lever, and Safari still honours only the
   -webkit- pseudo-element. */
.faq-item > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
  cursor: pointer;
  list-style: none;
}
.faq-item > summary::-webkit-details-marker { display: none; }
/* min-width: 0 lets a long question wrap instead of forcing the flex row wider
   than the column — at 320px the questions are two and three lines. */
.faq-item h3 { margin: 0; font-size: var(--text-lg); min-width: 0; }

/* The chevron is a rotated pair of borders rather than an <svg> sibling, which
   keeps <summary> to a single heading element and keeps the glyph out of the
   text a crawler extracts. It points down when closed, up when open. */
.faq-item > summary::after {
  content: '';
  flex: 0 0 auto;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  transform: rotate(45deg);
  transition: transform var(--transition-base);
}
.faq-item[open] > summary::after { transform: rotate(-135deg); }
.faq-item > summary:hover h3 { color: var(--color-accent); }
.faq-item > summary:hover::after { border-color: var(--color-accent); }

/* No other rule on this site defines a focus style, so <summary> would fall
   back to the UA ring — and Firefox's is a dark blue on a #0a0e17 page, which
   is not a visible indicator. Amber is 9.0:1 against --color-bg and 7.4:1
   against --color-bg-card, well over the 3:1 WCAG 2.2 asks of one. */
.faq-item > summary:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

.faq-item > p { margin: 0; padding: 0 0 1.25rem; color: var(--color-text-secondary); }

@media (prefers-reduced-motion: reduce) {
  .faq-item > summary::after { transition: none; }
}

.site-cta { margin-top: 3.5rem; padding: 2.5rem 1.5rem; text-align: center; background: var(--color-bg-card); border: 1px solid var(--color-border); border-radius: 10px; }
.site-cta h2 { margin-top: 0; }

.site-footer { border-top: 1px solid var(--color-border-subtle); margin-top: 4rem; padding: 3rem 1.5rem; }
.site-footer-cols { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 2rem; }
.site-footer h2 { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.08em; color: var(--color-text-muted); margin: 0 0 0.75rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--color-text-secondary); font-size: var(--text-sm); }
.site-footer-legal { max-width: 1100px; margin: 2.5rem auto 0; color: var(--color-text-muted); font-size: var(--text-xs); }

/* Landing.css collapsed the three-up grid and dropped the headline a step at
   900px; the pricing grid is auto-fit and reflows on its own. */
@media (max-width: 900px) {
  .features-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 2.5rem; }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}

/* Phone nav: brand and both CTAs on a single row. The text links are already
   hidden here, so the two buttons are the whole nav and their tap target is
   what matters — min-height rather than computed padding, so the 44px holds
   whatever the font metrics do. flex-wrap: nowrap stops them stacking; the
   widths below are measured to fit, with the wordmark dropped under 375px. */
@media (max-width: 640px) {
  .public-nav-inner { padding: 0.6rem 1rem; gap: 0.5rem; }
  .public-nav-brand { gap: 0.5rem; }
  .public-nav-name { font-size: var(--text-sm); }
  .public-nav-links { gap: 0.5rem; flex-wrap: nowrap; flex-shrink: 0; }
  .public-nav-links a:not(.btn) { display: none; }
  .public-nav-links .btn {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0.45rem 0.6rem;
    white-space: nowrap;
  }
  .site-main { padding: 2.5rem 1.25rem; }
  .site-prose { padding: 0 1.25rem; }
  .landing-hero { padding: var(--space-12) var(--space-5) var(--space-8); }
  .hero-title { font-size: 2rem; }
  .landing-features { padding: var(--space-12) var(--space-5); }
  .landing-cta-section { margin-top: var(--space-12); padding: var(--space-12) var(--space-5); }
  .pricing-header { padding: var(--space-8) var(--space-5) var(--space-6); }
  .pricing-grid { padding: 0 var(--space-5) var(--space-10); }
}

/* Below 375px the wordmark no longer fits beside both CTAs without squeezing
   the buttons under a comfortable tap target, so the amber CV tile carries the
   brand on its own. 375px (iPhone SE/13 mini) and 390px (iPhone 14/15) both
   keep the full wordmark — measured, not guessed. */
@media (max-width: 374px) {
  .public-nav-name { display: none; }
}
