/* ============================================================
   Raven — design system
   Shared by index.html, the legal pages and the blog.
   Palette comes from the Raven logo kit: orange #E35A38,
   navy #1B2036. The Flutter app's app_theme.dart uses the
   same values, so site and product read as one brand.
   ============================================================ */

:root {
  --bg: #F5F6FA;
  --surface: #FFFFFF;
  --surface-2: #F8F9FC;
  --border: #E1E3EF;
  --divider: #EBEDF5;
  --ink: #1B2036;
  --muted: #5B5F78;
  --faint: #8B8FA3;
  --accent: #E35A38;
  --accent-soft: #FBE3DB;
  --accent-ink: #A93A20;
  --warm: #F5E9D6;
  --warm-ink: #8A5A17;
  --neutral-tint: #E7E9F3;
  --neutral-tint-ink: #454A6E;
  --overdue: #C13B3B;
  --overdue-soft: #F8DEDE;
  --success: #2F9E6E;
  --surface-dark: #1B2036;
  --on-dark: #FFFFFF;
  --shadow: rgba(16, 32, 28, 0.10);
  --shadow-lg: rgba(16, 32, 28, 0.16);

  --font-display: 'Space Grotesk', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 28px;
  --max: 1180px;
  --max-prose: 720px;
}

/* Dark palette — defined once, applied in both the system-preference
   case and the explicit toggle case. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12142A;
    --surface: #191C38;
    --surface-2: #1E2140;
    --border: #2C2F52;
    --divider: #232649;
    --ink: #EEF0F8;
    --muted: #A7ABC4;
    --faint: #7C80A0;
    --accent: #F07A57;
    --accent-soft: #3A2418;
    --accent-ink: #F5A480;
    --warm: #3A2E12;
    --warm-ink: #E8C888;
    --neutral-tint: #262A4E;
    --neutral-tint-ink: #B7BCDE;
    --overdue: #E17870;
    --overdue-soft: #3A1E1B;
    --success: #5FBF95;
    --surface-dark: #232A52;
    --shadow: rgba(0, 0, 0, 0.35);
    --shadow-lg: rgba(0, 0, 0, 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: #12142A;
  --surface: #191C38;
  --surface-2: #1E2140;
  --border: #2C2F52;
  --divider: #232649;
  --ink: #EEF0F8;
  --muted: #A7ABC4;
  --faint: #7C80A0;
  --accent: #F07A57;
  --accent-soft: #3A2418;
  --accent-ink: #F5A480;
  --warm: #3A2E12;
  --warm-ink: #E8C888;
  --neutral-tint: #262A4E;
  --neutral-tint-ink: #B7BCDE;
  --overdue: #E17870;
  --overdue-soft: #3A1E1B;
  --success: #5FBF95;
  --surface-dark: #232A52;
  --shadow: rgba(0, 0, 0, 0.35);
  --shadow-lg: rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); font-feature-settings: "tnum" 1; font-variant-numeric: tabular-nums; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px var(--shadow-lg); }
.btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; box-shadow: none; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-sm { padding: 10px 16px; font-size: 13.5px; }
.btn-block { width: 100%; }

/* ---------- nav ---------- */
header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--divider);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
}
.brand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }

/* Horizontal Raven lockup, inlined as SVG so it follows the theme:
   the R keeps the brand orange on both grounds, the lettering takes
   --ink and therefore flips to near-white in dark mode. The kit asks
   for 160px in navigation and 140px minimum — respected below. */
.brand-logo {
  width: 160px;
  height: auto;
  display: block;
}
.brand-logo .logo-mark { fill: var(--accent); }
.brand-logo .logo-word { fill: var(--ink); }
.brand:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }

@media (max-width: 420px) {
  .brand-logo { width: 140px; }
}

/* Footer lockup sits slightly smaller but stays above the 140px floor. */
.footer-brand .brand-logo { width: 148px; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: color 0.15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }

/* ---------- theme toggle ---------- */
.theme-toggle {
  width: 38px; height: 38px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--faint); }
.theme-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show the icon for the theme you would switch TO. */
.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: block; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
:root[data-theme="light"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* ---------- mobile nav ---------- */
.nav-burger {
  display: none;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nav-burger svg { width: 18px; height: 18px; }
.mobile-menu {
  display: none;
  border-top: 1px solid var(--divider);
  background: var(--bg);
  padding: 12px 24px 20px;
}
.mobile-menu.is-open { display: block; }
.mobile-menu a:not(.btn) {
  display: block;
  padding: 12px 0;
  font-size: 15px;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--divider);
}
.mobile-menu a:not(.btn):last-of-type { border-bottom: 0; }
.mobile-menu .btn { margin-top: 18px; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-cta .btn-primary { display: none; }
}
@media (min-width: 861px) {
  .mobile-menu { display: none !important; }
}

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- hero ---------- */
.hero { padding: 76px 0 40px; position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 100px;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(2.4rem, 3.4vw + 1.1rem, 3.9rem);
  font-weight: 700;
  line-height: 1.04;
  color: var(--ink);
}
.hero-sub {
  margin-top: 20px;
  max-width: 490px;
  font-size: 17px;
  line-height: 1.65;
  color: var(--muted);
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 32px; }
.hero-price {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}
.hero-price strong { color: var(--ink); font-weight: 700; }
.hero-price a { color: var(--accent); font-weight: 600; text-decoration: none; }
.hero-price a:hover { text-decoration: underline; }
.hero-note { display: flex; align-items: center; gap: 8px; margin-top: 24px; font-size: 12.5px; color: var(--faint); }
.hero-note svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* ---------- hero visual ---------- */
.hero-visual { position: relative; height: 460px; }
.stage-card {
  position: absolute;
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 60px -24px var(--shadow-lg);
}
.card-revenue {
  width: 84%;
  top: 6px; left: 0;
  background: var(--surface-dark);
  color: #fff;
  padding: 26px 26px 24px;
  z-index: 2;
}
.card-revenue .eyebrow { color: rgba(255,255,255,0.5); }
.card-revenue .amount { font-family: var(--font-mono); font-size: 2.15rem; font-weight: 700; margin-top: 10px; letter-spacing: -0.01em; }
.card-revenue .sub { margin-top: 10px; font-size: 12.5px; color: rgba(255,255,255,0.55); }
.card-revenue .trend {
  position: absolute; top: 24px; right: 24px;
  background: var(--accent); color: #fff;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 700;
  padding: 4px 9px; border-radius: 100px;
}
.card-receipt {
  width: 68%;
  right: 0; bottom: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 20px 22px 22px;
  z-index: 3;
}
.receipt-client { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.receipt-avatar {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--accent-soft); color: var(--accent-ink);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 13px; flex-shrink: 0;
}
.receipt-client-name { font-weight: 700; font-size: 13.5px; }
.receipt-client-meta { font-size: 11px; color: var(--faint); }
.receipt-row { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); padding: 5px 0; }
.receipt-row .mono { color: var(--ink); font-size: 12.5px; }
.receipt-dash {
  height: 1px; margin: 12px 0;
  background-image: repeating-linear-gradient(to right, var(--border) 0, var(--border) 5px, transparent 5px, transparent 9px);
}
.receipt-total { display: flex; justify-content: space-between; align-items: flex-end; }
.receipt-total .eyebrow { font-size: 10px; }
.receipt-total .mono { font-size: 1.5rem; font-weight: 700; }
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 100px;
  font-size: 11px; font-weight: 700;
}
.badge-paid { background: var(--accent-soft); color: var(--accent-ink); }
.card-tag {
  position: absolute; top: -14px; left: 22px; z-index: 4;
  background: var(--surface); border: 1px solid var(--border);
  padding: 6px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; color: var(--muted);
  box-shadow: 0 8px 18px -8px var(--shadow);
  display: flex; align-items: center; gap: 6px;
}
.card-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 380px; max-width: 460px; margin: 0 auto; width: 100%; }
}
@media (max-width: 480px) {
  .hero-visual { height: 340px; }
  .card-revenue .amount { font-size: 1.7rem; }
}

/* ---------- trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--divider);
  border-bottom: 1px solid var(--divider);
  margin-top: 56px;
}
.trust-row { display: flex; flex-wrap: wrap; gap: 34px; padding: 22px 0; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; color: var(--muted); }
.trust-item svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; }

/* ---------- section shell ---------- */
section { padding: 108px 0; }
.section-head { max-width: 620px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.7rem, 1.6vw + 1.1rem, 2.5rem); font-weight: 700; margin-top: 12px; }
.section-head p { margin-top: 14px; font-size: 16px; color: var(--muted); line-height: 1.6; }

/* ---------- bento features ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card {
  grid-column: span 2;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.bento .card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -18px var(--shadow-lg); }
.bento .card.half { grid-column: span 3; }
.bento .card.wide { grid-column: span 6; display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: center; }
.card-icon {
  width: 42px; height: 42px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card-icon svg { width: 21px; height: 21px; }
.tint-accent { background: var(--accent-soft); color: var(--accent-ink); }
.tint-neutral { background: var(--neutral-tint); color: var(--neutral-tint-ink); }
.tint-warm { background: var(--warm); color: var(--warm-ink); }
.card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

@media (max-width: 900px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento .card, .bento .card.half { grid-column: span 1; }
  .bento .card.wide { grid-column: span 2; grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .bento .card.wide { grid-column: span 1; }
}

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step { position: relative; padding-top: 8px; }
.step-num { font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--accent); display: block; margin-bottom: 16px; }
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--muted); line-height: 1.6; }
.step-line { height: 1px; background: var(--divider); margin-bottom: 20px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 36px; } }

/* ---------- ledger story ---------- */
.ledger {
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
  background: var(--surface-2); border-radius: var(--radius-xl);
  padding: 56px; border: 1px solid var(--border);
}
.ledger h2 { font-size: clamp(1.5rem, 1.4vw + 1rem, 2.1rem); font-weight: 700; }
.ledger p { margin-top: 16px; font-size: 15.5px; color: var(--muted); line-height: 1.7; }
.ledger-demo { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 22px 24px; }
.ledger-demo .receipt-row, .ledger-demo .receipt-total { font-size: 13.5px; }
.ledger-demo .receipt-total .mono { font-size: 1.7rem; }
@media (max-width: 860px) { .ledger { grid-template-columns: 1fr; padding: 34px 26px; gap: 32px; } }

/* ---------- product screenshots ---------- */
.shot-frame {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
  box-shadow: 0 24px 48px -30px var(--shadow-lg);
  line-height: 0;
}
.shot-frame img { width: 100%; height: auto; display: block; }
.shot-cap {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}
.shot-cap strong { color: var(--ink); font-weight: 600; }

.shot-featured { margin-bottom: 22px; }
.shot-featured .shot-cap { max-width: 640px; }

/* Two stacked wide shots beside one tall phone shot. */
.shots-grid {
  display: grid;
  grid-template-columns: 1.7fr 0.85fr;
  gap: 22px;
  align-items: start;
}
.shots-col { display: grid; gap: 22px; }
.shots-phone .shot-frame { background: var(--surface); }

@media (max-width: 900px) {
  .shots-grid { grid-template-columns: 1fr; }
  .shots-phone { max-width: 340px; margin: 0 auto; }
}

/* ---------- pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: stretch;
  max-width: 980px;
  margin: 0 auto;
}
.price-card {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 38px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.price-card::before {
  content: "";
  position: absolute; width: 320px; height: 320px; border-radius: 50%;
  background: var(--accent); opacity: 0.30; filter: blur(12px);
  top: -150px; right: -110px;
}
.price-card > * { position: relative; z-index: 1; }
.price-card .eyebrow { color: var(--accent); }
.price-card h3 { color: #fff; font-size: 1.35rem; margin-top: 8px; }
.price-amount { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.price-amount .value { font-family: var(--font-mono); font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.02em; }
.price-amount .unit { font-size: 15px; color: rgba(255,255,255,0.66); font-weight: 500; }
.price-billing {
  margin-top: 14px;
  font-size: 13.5px;
  color: rgba(255,255,255,0.66);
  line-height: 1.55;
}
.price-billing strong { color: #fff; font-weight: 600; }
.price-compare {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.14);
  font-size: 12.5px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}
.price-launch {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 22px;
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.16);
  padding: 8px 13px; border-radius: 100px;
  font-size: 12px; font-weight: 600; color: #fff;
  align-self: flex-start;
}
.price-launch svg { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }

.price-side {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 38px;
  display: flex;
  flex-direction: column;
}
.price-side h3 { font-size: 1.05rem; font-weight: 700; }
.include-list { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 11px; }
.include-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.include-list svg { width: 16px; height: 16px; color: var(--accent); flex-shrink: 0; margin-top: 3px; }
.price-side .access-form { margin-top: auto; padding-top: 28px; }

@media (max-width: 860px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card, .price-side { padding: 32px 26px; }
  .price-amount .value { font-size: 2.9rem; }
}

/* ---------- early access form ---------- */
.access-form { display: flex; flex-direction: column; gap: 12px; }
.access-form .field { display: flex; flex-direction: column; gap: 5px; }
.access-form label {
  font-size: 12.5px; font-weight: 600; color: var(--muted);
  letter-spacing: 0.01em;
}
.access-form .field-optional { font-weight: 500; color: var(--faint); }
.access-form input {
  width: 100%;
  padding: 13px 15px; border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2); color: var(--ink);
  font-size: 14.5px; font-family: var(--font-body);
}
.access-form input[aria-invalid="true"] { border-color: var(--overdue); }
.access-form .field-error {
  font-size: 12px; font-weight: 500; color: var(--overdue);
}
.access-form button { margin-top: 4px; }
.access-form input::placeholder { color: var(--faint); }
.access-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.access-note { margin-top: 14px; font-size: 12px; color: var(--faint); line-height: 1.55; }
.access-note a { color: var(--muted); text-decoration: underline; }
.consent-row {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 14px; font-size: 12px; color: var(--faint); line-height: 1.5;
}
.consent-row input[type="checkbox"] {
  width: 15px; height: 15px; margin: 2px 0 0; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer;
}
.consent-row label { cursor: pointer; }
.consent-row a { color: var(--muted); text-decoration: underline; }

/* dark hero-style form (used inside .price-card if needed) */
.access-form--on-dark input {
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.06);
  color: #fff;
}
.access-form--on-dark input::placeholder { color: rgba(255,255,255,0.42); }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
  padding: 6px 22px;
}
details.faq-item summary {
  cursor: pointer; list-style: none;
  padding: 18px 0; font-weight: 600; font-size: 15px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.faq-chevron { flex-shrink: 0; width: 18px; height: 18px; color: var(--faint); transition: transform 0.2s ease; }
details.faq-item[open] .faq-chevron { transform: rotate(180deg); }
.faq-item p { padding-bottom: 20px; font-size: 14.5px; color: var(--muted); line-height: 1.65; max-width: 640px; }
.faq-item p a { color: var(--accent); font-weight: 600; text-decoration: none; }
.faq-item p a:hover { text-decoration: underline; }

/* ---------- blog teaser on home ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 860px) { .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-decoration: none;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.post-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: 0 16px 30px -18px var(--shadow-lg); }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: 11px; color: var(--faint); margin-bottom: 12px; }
.post-tag {
  background: var(--accent-soft); color: var(--accent-ink);
  padding: 3px 9px; border-radius: 100px; font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.post-card h3 { font-size: 17px; font-weight: 700; line-height: 1.3; margin-bottom: 10px; color: var(--ink); }
.post-card p { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.post-more {
  margin-top: auto; padding-top: 18px;
  font-size: 13px; font-weight: 600; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.post-more svg { width: 14px; height: 14px; }

/* ---------- final cta ---------- */
.final-cta { text-align: center; }
.final-cta h2 { font-size: clamp(1.9rem, 2.2vw + 1rem, 2.8rem); font-weight: 700; }
.final-cta p { margin-top: 14px; font-size: 16px; color: var(--muted); }
.final-cta .hero-ctas { justify-content: center; margin-top: 30px; }

/* ---------- footer ---------- */
footer.site { border-top: 1px solid var(--divider); padding: 52px 0 36px; }
.footer-grid { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.footer-brand p { margin-top: 12px; font-size: 13.5px; color: var(--faint); max-width: 260px; line-height: 1.6; }
.footer-links { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 13.5px; color: var(--muted); text-decoration: none; margin-bottom: 10px; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--divider);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 12.5px; color: var(--faint);
}

@media (max-width: 640px) {
  section { padding: 72px 0; }
  .hero { padding: 48px 0 32px; }
}

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: -9999px; top: auto;
  background: var(--surface-dark); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100; font-size: 14px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { left: 0; top: 0; }

/* ============================================================
   Prose — legal pages and blog articles
   ============================================================ */

.page-head {
  padding: 64px 0 12px;
  border-bottom: 1px solid var(--divider);
}
.page-head .wrap { max-width: var(--max-prose); }
.page-head h1 {
  font-size: clamp(1.9rem, 2vw + 1.1rem, 2.7rem);
  font-weight: 700;
  margin-top: 12px;
  line-height: 1.15;
}
.page-head .lede { margin-top: 18px; font-size: 17px; color: var(--muted); line-height: 1.6; padding-bottom: 34px; }
.page-head .post-meta { margin-top: 20px; margin-bottom: 0; padding-bottom: 30px; }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--faint); flex-wrap: wrap; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); text-decoration: underline; }

.prose { max-width: var(--max-prose); margin: 0 auto; padding: 48px 24px 96px; }
.prose h2 {
  font-size: 1.45rem; font-weight: 700; line-height: 1.3;
  margin: 48px 0 16px; scroll-margin-top: 90px;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 32px 0 12px; scroll-margin-top: 90px; }
.prose p { margin: 0 0 18px; font-size: 16px; line-height: 1.75; color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.prose ul, .prose ol { margin: 0 0 20px; padding-left: 22px; color: var(--muted); }
.prose li { margin-bottom: 10px; line-height: 1.7; }
.prose li::marker { color: var(--faint); }
.prose hr { border: 0; border-top: 1px solid var(--divider); margin: 40px 0; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: var(--surface-2); border: 1px solid var(--border);
  padding: 2px 6px; border-radius: 5px; color: var(--ink);
}

.prose table {
  width: 100%; border-collapse: collapse; margin: 0 0 24px;
  font-size: 14.5px;
}
.table-scroll { overflow-x: auto; margin: 0 0 24px; -webkit-overflow-scrolling: touch; }
.table-scroll table { margin-bottom: 0; }
.prose th, .prose td {
  text-align: left; padding: 12px 14px;
  border-bottom: 1px solid var(--divider);
  vertical-align: top;
}
.prose th { font-weight: 700; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; }
.prose td { color: var(--muted); }

.callout {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  padding: 20px 24px;
  margin: 0 0 28px;
}
.callout p { margin: 0; font-size: 14.5px; }
.callout p + p { margin-top: 12px; }
.callout strong { color: var(--ink); }
.callout.warn { border-left-color: var(--overdue); }

/* placeholder markers the owner must fill in before publishing */
.todo {
  background: var(--warm);
  color: var(--warm-ink);
  padding: 1px 7px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 0.86em;
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* in-article CTA back to the product */
.article-cta {
  background: var(--surface-dark);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 32px 34px;
  margin: 44px 0;
}
.article-cta h3 { color: #fff; font-size: 1.15rem; margin-bottom: 10px; }
.article-cta p { color: rgba(255,255,255,0.72); font-size: 14.5px; margin-bottom: 20px; }
.article-cta .btn-primary { color: #fff; }

.prose .toc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 22px 26px; margin-bottom: 40px;
}
.prose .toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: 0.09em; color: var(--faint); margin: 0 0 12px; font-family: var(--font-body); }
.prose .toc ol { margin: 0; padding-left: 20px; }
.prose .toc li { margin-bottom: 7px; font-size: 14px; }
.prose .toc a { color: var(--muted); text-decoration: none; font-weight: 500; }
.prose .toc a:hover { color: var(--accent); text-decoration: underline; }

/* legal page meta line */
.legal-updated {
  font-size: 13px; color: var(--faint);
  padding: 14px 18px; background: var(--surface-2);
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  margin-bottom: 36px;
}

/* blog index list */
.blog-list { display: grid; gap: 18px; max-width: var(--max-prose); margin: 0 auto; }
.blog-list .post-card { padding: 28px 30px; }

/* related posts */
.related { border-top: 1px solid var(--divider); padding-top: 34px; margin-top: 8px; }
.related h2 { font-size: 1.05rem !important; margin: 0 0 20px !important; }
.related-list { display: grid; gap: 12px; }
.related-list a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 16px 20px; border: 1px solid var(--border); border-radius: var(--radius-md);
  background: var(--surface); text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 14.5px; line-height: 1.4;
  transition: border-color 0.2s ease;
}
.related-list a:hover { border-color: var(--accent); }
.related-list svg { width: 16px; height: 16px; color: var(--faint); flex-shrink: 0; }
