/* ============================================================================
   Gonze — landing design system
   Tokens are lifted verbatim from the app (frontend/src/styles/theme.css) so
   the marketing site and the product read as one continuous surface.
   ========================================================================= */

/* ── Tokens ──────────────────────────────────────────────────────────────── */
:root {
  /* Brand — deep crimson → bright glow (app --gradient-primary) */
  --brand: #a80329;
  --brand-glow: #e01543;
  --brand-700: #6b0218;
  --brand-600: #8a021f;
  --brand-300: #e06a82;

  --gradient-primary: linear-gradient(135deg, #a80329 0%, #e01543 100%);
  --gradient-hero: linear-gradient(135deg, #c40430 0%, #7a021e 100%);

  /* Surfaces — near-black stack from the app's dark theme */
  --bg: oklch(4% 0.004 20);
  --surface: oklch(9% 0.008 20);
  --sunken: oklch(6% 0.006 20);
  --raised: oklch(12% 0.01 20);

  /* Text */
  --text: oklch(98% 0.005 0);
  --text-dim: oklch(70% 0.015 20);
  --text-faint: oklch(52% 0.015 20);

  /* Lines */
  --border: oklch(22% 0.015 20 / 0.6);
  --border-strong: oklch(30% 0.02 20 / 0.8);

  /* Semantic (app parity) */
  --success: oklch(68% 0.18 145);
  --warning: oklch(78% 0.16 65);
  --info: oklch(70% 0.16 240);
  --gold: oklch(75% 0.16 85);

  /* Elevation — the signature red "backlight" */
  --shadow-glow: 0 20px 60px -20px rgba(168, 3, 41, 0.65);
  --shadow-glow-sm: 0 10px 30px -10px rgba(168, 3, 41, 0.6);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.5), 0 8px 24px -12px rgba(0, 0, 0, 0.7);

  /* Radii — app scale */
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-2xl: 32px;
  --r-pill: 9999px;

  /* Type — Plus Jakarta Sans for Latin, FiraGO carries Georgian.
     System stack first so a blocked Google Fonts fetch degrades, never blanks. */
  --font: "Plus Jakarta Sans", "FiraGO", "BPG Nino Mtavruli", system-ui,
    -apple-system, "Segoe UI", Roboto, sans-serif;

  --maxw: 1160px;
  --nav-h: 68px;
}

/* ── Reset ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }

::selection { background: var(--brand-glow); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand-glow);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ── Layout ──────────────────────────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* Sections clip horizontally so the decorative .glow blobs — which are
   deliberately wider than the viewport — can never widen the page. `clip`
   rather than `hidden` so no scroll container is created. */
section { position: relative; padding: 104px 0; overflow-x: clip; }
@media (max-width: 720px) { section { padding: 72px 0; } }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--r-pill);
}
.skip-link:focus { left: 16px; }

/* ── Typography ──────────────────────────────────────────────────────────── */
h1, h2, h3, h4 {
  line-height: 1.3;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

h1 { font-size: clamp(2.4rem, 6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }

.lede {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-dim);
  line-height: 1.7;
  text-wrap: pretty;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #f08098;
  padding: 7px 15px;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--brand) 12%, transparent);
}

.grad-text {
  background: linear-gradient(135deg, #ff5773 0%, var(--brand-glow) 55%, #a80329 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Descenders sit below the inline box; pad it out (and cancel the padding in
     layout) so background-clip:text has something to paint them onto. */
  padding-block: 0.08em 0.16em;
  margin-block: -0.08em -0.16em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { margin: 18px 0 16px; }
.center { text-align: center; margin-inline: auto; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 26px;
  border-radius: var(--r-pill);
  font-weight: 700;
  font-size: 0.98rem;
  white-space: nowrap;
  transition: transform 0.18s ease, box-shadow 0.25s ease, background 0.2s ease,
    border-color 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
}
.btn-primary:hover { box-shadow: var(--shadow-glow); }

.btn-ghost {
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--surface) 70%, transparent);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--brand-300); background: var(--raised); }

.btn-lg { padding: 17px 34px; font-size: 1.05rem; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 28px; }

.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; }
.brand img { height: 26px; width: auto; }

.nav-links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 0.94rem; }
.nav-links a { color: var(--text-dim); transition: color 0.18s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Tighten before hiding — at ~1000-1120px the row would otherwise wrap. */
@media (max-width: 1120px) {
  .nav .wrap { gap: 18px; }
  .nav-links { gap: 17px; font-size: 0.88rem; }
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { margin-inline-start: auto; }
  .nav-cta .btn-ghost { display: none; }
}

/* The nav is position:fixed, so anything wider than the viewport creates a
   horizontal scrollbar that body{overflow-x:hidden} cannot clip. Shrink the
   three items until they fit a 360px phone. */
@media (max-width: 520px) {
  .nav .wrap { gap: 10px; padding-inline: 16px; }
  .brand { font-size: 1rem; gap: 8px; }
  .brand img { height: 22px; }
  .nav-cta { gap: 8px; }
  .nav-cta .btn { padding: 10px 16px; font-size: 0.9rem; }
  .lang { font-size: 0.75rem; }
  .lang button { padding: 6px 10px; }
}

/* Language switch */
.lang {
  display: inline-flex;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-pill);
  overflow: hidden;
  font-size: 0.8rem;
  font-weight: 700;
}
.lang button { padding: 7px 13px; color: var(--text-faint); transition: all 0.18s ease; }
.lang button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ── Ambient glow ────────────────────────────────────────────────────────── */
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}
.glow-a {
  width: 640px; height: 640px;
  top: -220px; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(224, 21, 67, 0.28), transparent 68%);
}
.glow-b {
  width: 460px; height: 460px;
  bottom: -180px; right: -140px;
  background: radial-gradient(circle, rgba(168, 3, 41, 0.22), transparent 70%);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
  padding-top: calc(var(--nav-h) + 76px);
  padding-bottom: 92px;
  overflow: hidden;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero { text-align: center; }
  .hero .eyebrow { margin-inline: auto; }
  .hero-actions, .hero-trust, .hero .store-badges { justify-content: center; }
}

.hero h1 { margin: 22px 0 20px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin: 34px 0 22px; }
.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  font-size: 0.97rem;
  color: var(--text-dim);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--success); flex-shrink: 0; }

/* ── Phone mock ──────────────────────────────────────────────────────────── */
.phone {
  position: relative;
  width: 300px;
  margin-inline: auto;
  border-radius: 42px;
  padding: 11px;
  background: linear-gradient(160deg, oklch(20% 0.02 20), oklch(9% 0.01 20));
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-glow), 0 40px 80px -30px #000;
}
.phone-screen {
  border-radius: 32px;
  background: var(--bg);
  padding: 20px 16px 16px;
  overflow: hidden;
}
.phone-notch {
  width: 92px; height: 5px;
  background: oklch(28% 0.01 20);
  border-radius: var(--r-pill);
  margin: 0 auto 16px;
}

.mock-greet { font-size: 0.72rem; color: var(--text-faint); }
.mock-name { font-size: 1.1rem; font-weight: 800; margin-bottom: 14px; }

.mock-hero-card {
  background: var(--gradient-hero);
  border-radius: var(--r-lg);
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: var(--shadow-glow-sm);
  margin-bottom: 14px;
}
.ring { position: relative; flex-shrink: 0; }
.ring svg { transform: rotate(-90deg); }
.ring-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.mock-hero-card p { font-size: 0.74rem; color: rgba(255, 255, 255, 0.82); }
.mock-hero-card strong { font-size: 0.9rem; display: block; color: #fff; }

.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.mock-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 8px;
  text-align: center;
}
.mock-stat b { display: block; font-size: 1.05rem; font-weight: 800; }
.mock-stat span { font-size: 0.62rem; color: var(--text-faint); }

.mock-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.01em;
  margin-bottom: 9px;
}

.mock-row {
  display: flex;
  align-items: center;
  gap: 11px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}
.mock-emoji {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1rem;
  background: var(--raised);
  flex-shrink: 0;
}
.mock-row-body { flex: 1; min-width: 0; }
.mock-row-body b {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mock-dots { display: flex; gap: 3px; margin-top: 5px; }
.mock-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--raised); }
.mock-dots i.on { background: var(--brand-glow); box-shadow: 0 0 6px rgba(224, 21, 67, 0.8); }
.mock-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.mock-check.done { background: var(--gradient-primary); border-color: transparent; }
.mock-check.done::after {
  content: "";
  width: 9px; height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

/* ── Store badges ─────────────────────────────────────────────────────────
   The apps are not published yet, so these carry a "soon" chip and are
   inert (aria-disabled, no href). To activate: give the <a> an href and
   drop the .is-soon class — see landing/README.md.
   ---------------------------------------------------------------------- */
.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 16px;
  border-radius: var(--r-md);
  border: 1px solid var(--border-strong);
  background: color-mix(in oklab, var(--surface) 88%, #000);
  position: relative;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.25s ease;
}
.store-badge:not(.is-soon):hover {
  transform: translateY(-2px);
  border-color: var(--brand-300);
  box-shadow: var(--shadow-glow-sm);
}
.store-badge svg { width: 26px; height: 26px; flex-shrink: 0; }

.store-badge-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-badge-txt small {
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0;
}
.store-badge-txt b { font-size: 0.98rem; font-weight: 700; letter-spacing: -0.01em; }

/* Unpublished state: readable, clearly not-yet-tappable, still on-brand. */
.store-badge.is-soon { cursor: default; opacity: 0.72; }
.store-badge.is-soon:hover { border-color: var(--border-strong); }
.store-soon {
  position: absolute;
  top: -9px;
  inset-inline-end: 10px;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--gradient-primary);
  color: #fff;
  white-space: nowrap;
}

/* On the crimson CTA band the badges need light-on-dark contrast instead. */
.cta-band .store-badges { justify-content: center; margin-top: 26px; }
.cta-band .store-badge {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.28);
}
.cta-band .store-badge-txt small { color: rgba(255, 255, 255, 0.72); }
.cta-band .store-badge-txt b { color: #fff; }
.cta-band .store-soon { background: #fff; color: var(--brand); }

@media (max-width: 900px) { .store-badges { justify-content: center; } }

/* ── Extra mock parts (stats + finance screens) ──────────────────────────── */
.mock-sub { font-size: 0.68rem; color: var(--text-faint); margin-bottom: 14px; }

/* Segmented period switcher (Week / Month / Year) */
.mock-seg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  background: var(--sunken);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 3px;
  margin-bottom: 16px;
}
.mock-seg i {
  font-style: normal;
  font-size: 0.66rem;
  font-weight: 600;
  text-align: center;
  padding: 5px 0;
  border-radius: var(--r-pill);
  color: var(--text-faint);
}
.mock-seg i.on { background: var(--gradient-primary); color: #fff; }

/* Weekly bar chart */
.mock-bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  align-items: end;
  height: 92px;
  margin-bottom: 8px;
}
.mock-bars i {
  display: block;
  border-radius: 5px 5px 3px 3px;
  background: var(--gradient-primary);
  opacity: 0.92;
}
.mock-bar-labels {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  font-size: 0.55rem;
  color: var(--text-faint);
  text-align: center;
  margin-bottom: 16px;
}

/* Year heat map */
.mock-heat {
  display: grid;
  grid-template-columns: repeat(17, 1fr);
  gap: 3px;
  margin-bottom: 6px;
}
.mock-heat i { aspect-ratio: 1; border-radius: 2px; background: var(--raised); }
.mock-heat i.l1 { background: rgba(168, 3, 41, 0.45); }
.mock-heat i.l2 { background: rgba(200, 10, 52, 0.72); }
.mock-heat i.l3 { background: var(--brand-glow); box-shadow: 0 0 5px rgba(224, 21, 67, 0.6); }

/* Finance balance card + rows */
.mock-balance {
  background: var(--gradient-hero);
  border-radius: var(--r-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-glow-sm);
}
.mock-balance small { font-size: 0.66rem; color: rgba(255, 255, 255, 0.78); }
.mock-balance b { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; }
.mock-balance-split { display: flex; gap: 14px; margin-top: 12px; }
.mock-balance-split div { flex: 1; }
.mock-balance-split span { font-size: 0.6rem; color: rgba(255, 255, 255, 0.75); display: block; }
.mock-balance-split u { text-decoration: none; font-size: 0.82rem; font-weight: 700; color: #fff; }

.mock-tx-amt { font-size: 0.8rem; font-weight: 700; flex-shrink: 0; }
.mock-tx-amt.in { color: var(--success); }
.mock-tx-amt.out { color: oklch(65% 0.2 25); }

/* Budget progress line */
.mock-budget { margin-bottom: 10px; }
.mock-budget-top {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  margin-bottom: 5px;
}
.mock-budget-top span { color: var(--text-dim); }
.mock-budget-top b { font-weight: 600; }
.mock-budget-bar { height: 6px; border-radius: var(--r-pill); background: var(--raised); overflow: hidden; }
.mock-budget-bar i { display: block; height: 100%; border-radius: var(--r-pill); background: var(--gradient-primary); }

/* ── Marquee / logo strip ────────────────────────────────────────────────── */
.strip {
  border-block: 1px solid var(--border);
  background: var(--sunken);
  padding: 40px 0;
}

/* A 4-up grid rather than a wrapped flex row — the flex version collapsed the
   items into an unreadable run-on line with no breathing room between them. */
.strip-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
  text-align: center;
}
.strip-item { display: flex; flex-direction: column; gap: 6px; position: relative; }

/* Hairline separators between columns, not after the last one. */
.strip-item + .strip-item::before {
  content: "";
  position: absolute;
  inset-block: 4px;
  inset-inline-start: -12px;
  width: 1px;
  background: var(--border);
}

.strip-item b {
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  background: linear-gradient(135deg, #ff5773 0%, var(--brand-glow) 60%, #a80329 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.strip-item span { font-size: 0.93rem; color: var(--text-dim); line-height: 1.4; }

@media (max-width: 780px) {
  .strip-inner { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  /* With two columns the separator only belongs before the right-hand item. */
  .strip-item + .strip-item::before { display: none; }
  .strip-item:nth-child(even)::before { display: block; }
}

/* ── App showcase ────────────────────────────────────────────────────────── */
/* Stretch so all three phones share the tallest height — otherwise the
   captions sit at three different heights and the row looks ragged. */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}
.shot { display: flex; flex-direction: column; }
.shot .phone { display: flex; flex-direction: column; flex: 1; }
.shot .phone-screen { flex: 1; }
.shot-cap { margin-top: auto; padding-top: 20px; }
@media (max-width: 900px) { .shots { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; } }

.shot { text-align: center; }
.shot .phone { width: 100%; max-width: 288px; }
.shot-cap b { display: block; font-size: 1.05rem; font-weight: 700; margin-bottom: 5px; }
.shot-cap span { font-size: 0.92rem; color: var(--text-dim); }

/* The showcase phones are static; only the hero one floats. */
.shot .phone { animation: none; }

/* ── Cards & grids ───────────────────────────────────────────────────────── */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 30px;
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  box-shadow: var(--shadow-glow-sm);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-dim); font-size: 0.96rem; }

.icon-tile {
  width: 50px; height: 50px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  background: color-mix(in oklab, var(--brand) 18%, var(--raised));
  border: 1px solid color-mix(in oklab, var(--brand) 34%, transparent);
  color: var(--brand-300);
}
.icon-tile svg { width: 24px; height: 24px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .grid-2 { grid-template-columns: 1fr; } }

/* Pillar cards get an accent bar */
.pillar::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.pillar:hover::before { opacity: 1; }

.feat-list { list-style: none; padding: 0; margin-top: 18px; display: grid; gap: 9px; }
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.feat-list svg { color: var(--brand-glow); flex-shrink: 0; margin-top: 4px; }

/* ── Bento ───────────────────────────────────────────────────────────────── */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.bento > * { grid-column: span 2; }
.bento .span-3 { grid-column: span 3; }
.bento .span-6 { grid-column: span 6; }
@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr; }
  .bento > *, .bento .span-3, .bento .span-6 { grid-column: 1 / -1; }
}

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: s; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 12px; }
.step-num {
  width: 46px; height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-glow-sm);
  margin-bottom: 18px;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-dim); font-size: 0.95rem; }

/* ── Pricing ─────────────────────────────────────────────────────────────── */
.price-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 840px;
  margin-inline: auto;
}
@media (max-width: 780px) { .price-grid { grid-template-columns: 1fr; } }

.price-card { display: flex; flex-direction: column; }
.price-card.featured {
  border-color: color-mix(in oklab, var(--brand) 60%, transparent);
  box-shadow: var(--shadow-glow);
  background: linear-gradient(180deg, color-mix(in oklab, var(--brand) 10%, var(--surface)), var(--surface));
}
.price-badge {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  padding: 6px 16px;
  border-radius: var(--r-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-glow-sm);
}
.price-amount {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 14px 0 6px;
}
.price-amount b { font-size: 2.9rem; font-weight: 800; letter-spacing: -0.03em; }
.price-amount span { color: var(--text-faint); font-size: 0.95rem; }
.price-card .btn { margin-top: auto; width: 100%; }
.price-card .feat-list { margin-bottom: 26px; }
.feat-list li.off { color: var(--text-faint); }
.feat-list li.off svg { color: var(--text-faint); }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 12px; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq details[open] { border-color: color-mix(in oklab, var(--brand) 45%, var(--border)); }
.faq summary {
  padding: 20px 24px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--brand-300);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .faq-body { padding: 0 24px 22px; color: var(--text-dim); font-size: 0.96rem; }

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-2xl);
  padding: 72px 40px;
  text-align: center;
  background: var(--gradient-hero);
  box-shadow: var(--shadow-glow);
}
.cta-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255, 255, 255, 0.85); margin: 16px auto 30px; max-width: 540px; }
.cta-band .btn-primary { background: #fff; color: var(--brand); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, 0.5); }
@media (max-width: 720px) { .cta-band { padding: 52px 24px; } }

/* ── Blog ────────────────────────────────────────────────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 980px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .post-grid { grid-template-columns: 1fr; } }

.post-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
}
.post-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in oklab, var(--brand) 55%, var(--border));
  box-shadow: var(--shadow-glow-sm);
}
.post-cover {
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  font-size: 3rem;
  background: var(--gradient-hero);
  position: relative;
}
.post-cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.2), transparent 60%);
}
.post-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
  color: var(--text-dim);
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.tag {
  padding: 4px 11px;
  border-radius: var(--r-pill);
  background: color-mix(in oklab, var(--brand) 16%, transparent);
  border: 1px solid color-mix(in oklab, var(--brand) 32%, transparent);
  color: var(--brand-300);
  font-weight: 700;
  font-size: 0.72rem;
}
.post-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.post-card p { color: var(--text-dim); font-size: 0.92rem; flex: 1; }
.post-more {
  margin-top: 18px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--brand-300);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.post-card:hover .post-more { gap: 10px; }
.post-more span { transition: all 0.2s ease; }

/* ── Article ─────────────────────────────────────────────────────────────── */
.article-head {
  padding-top: calc(var(--nav-h) + 64px);
  padding-bottom: 20px;
  position: relative;
  overflow: hidden;
}
.article-head .wrap { position: relative; z-index: 1; max-width: 760px; }
.article-head h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin: 18px 0 18px; }

.breadcrumb {
  font-size: 0.85rem;
  color: var(--text-faint);
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--brand-300); }

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding-inline: 24px;
  font-size: 1.06rem;
  line-height: 1.8;
  color: oklch(88% 0.01 20);
}
.prose > * + * { margin-top: 1.15em; }
.prose h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-top: 2.2em;
  margin-bottom: 0.1em;
  scroll-margin-top: calc(var(--nav-h) + 20px);
}
.prose h3 { font-size: 1.25rem; margin-top: 1.8em; }
.prose ul, .prose ol { padding-inline-start: 1.4em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--brand-glow); }
.prose strong { color: var(--text); font-weight: 700; }
.prose a { color: var(--brand-300); text-decoration: underline; text-underline-offset: 3px; }
.prose a:hover { color: var(--brand-glow); }

.prose blockquote {
  border-inline-start: 3px solid var(--brand);
  padding: 4px 0 4px 22px;
  color: var(--text-dim);
  font-style: italic;
}

.callout {
  background: color-mix(in oklab, var(--brand) 10%, var(--surface));
  border: 1px solid color-mix(in oklab, var(--brand) 32%, transparent);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  font-size: 0.98rem;
}
.callout b { color: var(--text); }

.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.94rem; min-width: 460px; }
.prose th, .prose td { padding: 13px 16px; text-align: start; border-bottom: 1px solid var(--border); }
.prose th { background: var(--sunken); font-weight: 700; color: var(--text); white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }

.article-cta {
  margin-top: 3em;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-xl);
  padding: 32px;
  text-align: center;
}
.article-cta h3 { margin-bottom: 10px; }
.article-cta p { color: var(--text-dim); margin-bottom: 22px; font-size: 0.96rem; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--border);
  background: var(--sunken);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 48px;
}
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

.footer h4 {
  font-size: 0.88rem;
  letter-spacing: 0.01em;
  color: var(--text-dim);
  margin-bottom: 16px;
  font-weight: 700;
}
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer a { color: var(--text-dim); font-size: 0.93rem; transition: color 0.18s ease; }
.footer a:hover { color: var(--brand-300); }
.footer-about p { color: var(--text-faint); font-size: 0.92rem; margin-top: 14px; max-width: 320px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--text-faint);
}

/* ── Animations (ported from the app) ────────────────────────────────────── */
@keyframes pop-in {
  0% { opacity: 0; transform: scale(0.5); }
  60% { opacity: 1; transform: scale(1.15); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes flame-pulse {
  0%, 100% { filter: drop-shadow(0 0 6px oklch(72% 0.28 30 / 0.6)); transform: scale(1); }
  50% { filter: drop-shadow(0 0 14px oklch(72% 0.28 30 / 0.9)); transform: scale(1.12); }
}
@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(168, 3, 41, 0.45); }
  50% { box-shadow: 0 0 0 14px rgba(168, 3, 41, 0); }
}
@keyframes float-y {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.animate-flame { animation: flame-pulse 1.8s ease-in-out infinite; display: inline-block; }
.animate-glow { animation: glow-pulse 2s ease-out infinite; }
.animate-float { animation: float-y 6s ease-in-out infinite; }

/* Scroll reveal — opt-in, and inert when the user prefers reduced motion */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
