/* ==========================================================================
   Drive Optimise — Design System
   --------------------------------------------------------------------------
   Editorial premium aesthetic. Fraunces (variable serif, optical sizing) for
   display, Manrope for UI body, JetBrains Mono for technical accents.
   Ink (midnight blue) + ember/flame (burnt orange gradient) + cream paper.
   ========================================================================== */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-feature-settings: "ss01", "cv11";
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg, picture, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input, textarea, select { font: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; margin: 0; list-style: none; }

/* ---------- Tokens ---------- */
:root {
  /* Type */
  --font-display: "Fraunces", "Times New Roman", serif;
  --font-body: "Manrope", "Helvetica Neue", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", monospace;

  /* Colors — core */
  --ink:        #0B0E1A;   /* midnight blue, primary dark */
  --ink-2:      #131726;   /* lifted dark surface */
  --ink-3:      #1C2138;   /* card on dark */
  --ink-line:   #232845;   /* dark hairlines */

  --ember:      #1F4FAA;   /* deep royal blue — primary brand (text on light bg) */
  --flame:      #5B9DF5;   /* bright sky blue — secondary brand (accents on dark bg) */
  --rust:       #163C7D;   /* deeper navy — strong emphasis */
  --amber:      #5BD4A0;   /* mint highlight, hover state */
  --teal:       #44B4C8;   /* cyan from logo gradient — middle stop */

  --paper:      #FAF7F1;   /* warm cream — light bg, deliberate warm/cool contrast */
  --cream:      #F1EAD9;   /* darker cream — alt section */
  --bone:       #E8E1CF;   /* hairline on cream */

  --moss:       #1F8847;   /* success green (AA on white) */
  --moss-light: #37D58C;   /* mint — matches logo green */

  --mist:       #6E7287;   /* muted grey for body on dark */
  --slate:      #4A5061;   /* muted grey for body on light */

  /* Gradients — derived from the logo (vertical blue→teal→green) */
  --grad-ember: linear-gradient(135deg, #5B9DF5 0%, #44B4C8 45%, #37D58C 100%);
  --grad-ember-deep: linear-gradient(135deg, #1F4FAA 0%, #2E78D8 50%, #44B4C8 100%);
  --grad-ink:   linear-gradient(180deg, var(--ink) 0%, #050710 100%);
  --grad-paper: linear-gradient(180deg, var(--paper) 0%, var(--cream) 100%);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Spacing scale */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px;
  --s-9: 96px; --s-10: 128px;

  /* Effects */
  --shadow-card: 0 1px 2px rgba(11,14,26,.04), 0 8px 24px -8px rgba(11,14,26,.08), 0 24px 60px -20px rgba(11,14,26,.12);
  --shadow-soft: 0 1px 3px rgba(11,14,26,.06), 0 12px 30px -12px rgba(11,14,26,.10);
  --shadow-glow: 0 24px 80px -16px rgba(91,157,245,.45), 0 8px 32px -8px rgba(31,79,170,.40);

  --container: 1200px;
  --container-narrow: 880px;

  --ease-out: cubic-bezier(.2,.7,.2,1);
  --ease-spring: cubic-bezier(.5,1.4,.5,1);
}

/* ---------- Type scale ---------- */
.h-display {
  font-family: var(--font-display);
  font-weight: 350;
  font-variation-settings: "opsz" 144, "SOFT" 30;
  font-size: clamp(2.6rem, 7.5vw, 6.4rem);
  line-height: 0.96;
  letter-spacing: -0.025em;
  margin: 0;
}
.h-display em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  color: var(--flame);
}
.h-1 {
  font-family: var(--font-display);
  font-weight: 380;
  font-variation-settings: "opsz" 100;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.h-1 em { font-style: italic; font-variation-settings: "opsz" 100, "SOFT" 100; color: var(--ember); }
.h-2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-variation-settings: "opsz" 60;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
}
.h-3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.15rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 0;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ember);
}
.eyebrow.on-dark { color: var(--flame); }
.lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  line-height: 1.5;
  color: var(--slate);
  max-width: 56ch;
}
.lede.on-dark { color: #C9CBD6; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }
.container-narrow { max-width: var(--container-narrow); margin-inline: auto; padding-inline: clamp(20px, 4vw, 40px); }

section { padding-block: clamp(72px, 9vw, 128px); position: relative; }
.section-tight { padding-block: clamp(48px, 6vw, 80px); }

.dark { background: var(--ink); color: #E5E6EE; }
.dark .lede { color: #B7BACB; }

.cream { background: var(--cream); }
.paper { background: var(--paper); }

.split { display: grid; gap: clamp(32px, 5vw, 80px); grid-template-columns: 1fr; align-items: center; }
@media (min-width: 920px) { .split { grid-template-columns: 1.1fr 1fr; } .split.right-heavy { grid-template-columns: 1fr 1.1fr; } }

.stack > * + * { margin-top: var(--s-5); }
.stack-tight > * + * { margin-top: var(--s-3); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.005em;
  transition: transform .25s var(--ease-spring), box-shadow .3s var(--ease-out), background .3s ease, color .3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-ember-deep);
  color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
  box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, 0 8px 24px -8px rgba(31,79,170,.6);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255,255,255,.3) inset, 0 14px 36px -8px rgba(46,120,216,.7); }
.btn-secondary {
  background: var(--ink);
  color: var(--paper);
  border: 1px solid var(--ink);
}
.btn-secondary:hover { background: #1B2036; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(11,14,26,.16);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn-ghost.on-dark { color: #E5E6EE; border-color: rgba(255,255,255,.18); }
.btn-ghost.on-dark:hover { background: rgba(255,255,255,.08); }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px 11px 16px;
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-md);
  border: 1px solid var(--ink-line);
  transition: transform .25s var(--ease-spring), background .25s ease;
}
.btn-store:hover { transform: translateY(-2px); background: #181D34; }
.btn-store .store-icon { width: 26px; height: 26px; flex: none; }
.btn-store .store-meta { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.btn-store .store-meta small { font-size: 0.65rem; font-weight: 500; opacity: .75; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-store .store-meta strong { font-family: var(--font-display); font-weight: 450; font-size: 1.18rem; letter-spacing: -0.02em; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,247,241,.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(11,14,26,.06);
}
.site-header.on-dark {
  background: rgba(11,14,26,.72);
  border-bottom-color: rgba(255,255,255,.06);
  color: #E5E6EE;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.15rem; font-weight: 450; letter-spacing: -0.015em; }
.nav-brand .mark { width: 28px; height: 28px; border-radius: 7px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 6px -2px rgba(0,0,0,.4); }
.nav-links { display: none; gap: 28px; align-items: center; }
.nav-links a { font-size: 0.93rem; font-weight: 500; opacity: .82; transition: opacity .2s; }
.nav-links a:hover { opacity: 1; }
.nav-cta { display: none; align-items: center; gap: 12px; }
.nav-toggle { display: inline-flex; padding: 10px; border-radius: var(--r-sm); }
.nav-toggle svg { width: 22px; height: 22px; }

@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .nav-toggle { display: none; }
}

/* Mobile nav drawer */
.nav-drawer { display: none; padding: 16px 0 24px; border-top: 1px solid rgba(11,14,26,.06); }
.nav-drawer.open { display: block; }
.site-header.on-dark .nav-drawer { border-top-color: rgba(255,255,255,.06); }
.nav-drawer ul { display: flex; flex-direction: column; gap: 8px; }
.nav-drawer a { display: block; padding: 12px 4px; font-weight: 500; font-size: 1.05rem; }
.nav-drawer .btn { margin-top: 12px; width: 100%; justify-content: center; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
  padding-block: clamp(80px, 10vw, 160px) clamp(48px, 6vw, 96px);
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 20% 10%, rgba(91,157,245,.14), transparent 50%),
    radial-gradient(circle at 90% 80%, rgba(55,213,140,.14), transparent 55%),
    radial-gradient(circle at 50% 50%, rgba(68,180,200,.10), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(48px, 6vw, 96px);
  align-items: center;
}
@media (min-width: 980px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; }
}
.hero-copy { max-width: 640px; }
.hero-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #C5C8D6;
  padding: 7px 14px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--r-pill);
  background: rgba(255,255,255,.03);
}
.hero-meta .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--flame); box-shadow: 0 0 10px var(--flame); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.85); } }

.hero-headline { margin-top: 24px; color: white; }
.hero-headline em { color: var(--flame); }
.hero-sub { margin-top: 24px; font-size: clamp(1.05rem, 1.45vw, 1.2rem); color: #B6B9CB; max-width: 52ch; line-height: 1.55; }
.hero-cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-trust {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  color: #9DA1B5;
}
.hero-trust .check { width: 16px; height: 16px; color: var(--moss-light); }

/* Hero phone mockup */
.hero-mockup {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  perspective: 1200px;
}
.hero-mockup .glow {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(91,157,245,.55), transparent 60%),
    radial-gradient(ellipse at 70% 70%, rgba(55,213,140,.40), transparent 60%);
  filter: blur(44px);
  z-index: 0;
  pointer-events: none;
}
.phone {
  position: relative;
  width: 290px;
  aspect-ratio: 9/19.5;
  border-radius: 46px;
  background: linear-gradient(155deg, #2A2E45, #0E1224);
  box-shadow:
    0 1px 0 rgba(255,255,255,.18) inset,
    0 0 0 2px #1A1E33 inset,
    0 30px 80px -20px rgba(0,0,0,.6),
    var(--shadow-glow);
  padding: 9px;
  transform: rotate(-4deg);
  transition: transform .8s var(--ease-out);
  z-index: 1;
}
.phone:hover { transform: rotate(-1deg) translateY(-4px); }
.phone-screen {
  position: relative;
  width: 100%; height: 100%;
  border-radius: 38px;
  overflow: hidden;
  background: var(--ink-2);
}
.phone-notch {
  position: absolute;
  top: 12px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px;
  background: #06081A;
  border-radius: var(--r-pill);
  z-index: 4;
}
@media (min-width: 980px) { .phone { width: 320px; } }

/* ---------- Stylized in-app screens ---------- */
.app-screen { width: 100%; height: 100%; display: flex; flex-direction: column; color: #ECEEF6; font-family: var(--font-body); }

.app-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-family: var(--font-mono);
}
.app-header {
  padding: 38px 22px 14px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.app-title { font-family: var(--font-display); font-weight: 400; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1.1; }
.app-title small { display: block; font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: #6E7287; margin-bottom: 4px; }

.app-map {
  position: relative;
  flex: 1;
  background: #1A1F36;
  background-image:
    radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(135deg, #1B2138 0%, #0E1224 100%);
  background-size: 18px 18px, 100% 100%;
  overflow: hidden;
}
.app-map::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(91,157,245,.10), transparent 60%),
    radial-gradient(ellipse at 80% 70%, rgba(55,213,140,.10), transparent 65%);
}
.app-route { position: absolute; inset: 0; }
.app-route svg { width: 100%; height: 100%; }
.app-route .road { fill: none; stroke: var(--flame); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 0; opacity: .9; }
.app-route .road-shadow { fill: none; stroke: rgba(91,157,245,.30); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; filter: blur(6px); }

.app-stop {
  position: absolute;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--ink);
  border: 2px solid var(--flame);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--flame);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  transform: translate(-50%, -50%);
  z-index: 2;
}
.app-stop.start { background: var(--flame); color: var(--ink); border-color: var(--flame); }
.app-stop.end { background: var(--moss); color: white; border-color: var(--moss); }

.app-card {
  position: absolute;
  bottom: 18px; left: 14px; right: 14px;
  padding: 14px 16px;
  background: rgba(11,14,26,.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  z-index: 3;
}
.app-card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.app-card-head .badge { font-family: var(--font-mono); font-size: 0.6rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--moss-light); padding: 4px 8px; background: rgba(15,92,45,.18); border-radius: var(--r-pill); border: 1px solid rgba(15,92,45,.3); }
.app-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.app-stat { display: flex; flex-direction: column; gap: 2px; }
.app-stat strong { font-family: var(--font-display); font-weight: 450; font-size: 1.15rem; line-height: 1; color: white; }
.app-stat small { font-size: 0.6rem; color: #888BA0; letter-spacing: 0.04em; text-transform: uppercase; font-family: var(--font-mono); }

/* ---------- Marquee ---------- */
.marquee {
  position: relative; z-index: 2;
  margin-top: clamp(48px, 6vw, 80px);
  border-top: 1px solid rgba(255,255,255,.07);
  border-bottom: 1px solid rgba(255,255,255,.07);
  background: rgba(0,0,0,.18);
  overflow: hidden;
  padding-block: 18px;
}
.marquee-track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: scroll 38s linear infinite;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #888BA0;
}
.marquee-track span { display: inline-flex; align-items: center; gap: 56px; }
.marquee-track span::after { content: "✦"; color: var(--flame); margin-left: 56px; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Steps "How it works" ---------- */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
}
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { position: relative; padding: 32px 28px; background: white; border-radius: var(--r-lg); border: 1px solid var(--bone); transition: transform .4s var(--ease-out), box-shadow .4s; }
.cream .step { background: var(--paper); }
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.step-num {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 100;
  font-size: 4.2rem;
  line-height: 1;
  color: var(--ember);
  display: block;
  margin-bottom: 18px;
  letter-spacing: -0.04em;
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 0.96rem; margin: 0; }

/* ---------- Bento feature grid ---------- */
.bento {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .bento {
    grid-template-columns: repeat(6, 1fr);
    grid-auto-rows: minmax(180px, auto);
  }
}
.bento-card {
  position: relative;
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--ink-2);
  border: 1px solid var(--ink-line);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  overflow: hidden;
  transition: transform .4s var(--ease-out), border-color .4s;
}
.bento-card:hover { transform: translateY(-3px); border-color: rgba(91,157,245,.35); }
.bento-card .icon-wrap {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(91,157,245,.12);
  border: 1px solid rgba(91,157,245,.28);
  display: grid; place-items: center;
  color: var(--flame);
}
.bento-card h3 { color: white; font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; letter-spacing: -0.015em; line-height: 1.2; margin: 0; }
.bento-card p { color: #A0A4B8; font-size: 0.93rem; margin: 0; line-height: 1.5; }

@media (min-width: 760px) {
  .bento-card.span-3 { grid-column: span 3; }
  .bento-card.span-2 { grid-column: span 2; }
  .bento-card.span-4 { grid-column: span 4; }
  .bento-card.span-6 { grid-column: span 6; }
  .bento-card.tall { grid-row: span 2; }
}

/* Visual deco inside cards */
.bento-card .deco-route { position: absolute; right: -20px; bottom: -20px; opacity: .3; width: 200px; height: 200px; }
.bento-card .deco-grid { position: absolute; inset: 0; background-image: radial-gradient(rgba(91,157,245,.08) 1px, transparent 1px); background-size: 14px 14px; mask-image: linear-gradient(180deg, transparent 0%, black 50%, transparent 100%); pointer-events: none; }
.bento-card.featured { background: linear-gradient(135deg, rgba(31,79,170,.22), rgba(55,213,140,.08)); border-color: rgba(91,157,245,.3); }

/* ---------- Pricing cards ---------- */
.pricing {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: clamp(48px, 5vw, 64px);
}
@media (min-width: 760px) { .pricing { grid-template-columns: 1fr 1fr; } }
.price-card {
  position: relative;
  padding: 36px;
  background: white;
  border: 1px solid var(--bone);
  border-radius: var(--r-xl);
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease-out);
}
.cream .price-card { background: var(--paper); }
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
  overflow: hidden;
}
.price-card.featured::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(91,157,245,.32), transparent 55%),
    radial-gradient(circle at 0% 100%, rgba(55,213,140,.18), transparent 60%);
  pointer-events: none;
}
.price-card .price-eyebrow { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ember); margin-bottom: 12px; }
.price-card.featured .price-eyebrow { color: var(--flame); }
.price-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.015em; margin: 0 0 8px; }
.price-card.featured h3 { color: white; }
.price-card .price { display: flex; align-items: baseline; gap: 8px; margin: 24px 0 6px; }
.price-card .price strong { font-family: var(--font-display); font-weight: 350; font-variation-settings: "opsz" 144; font-size: 3.6rem; line-height: 1; letter-spacing: -0.04em; }
.price-card .price span { font-size: 0.95rem; color: var(--slate); }
.price-card.featured .price span { color: #B6B9CB; }
.price-card .price-note { font-size: 0.85rem; color: var(--slate); margin-bottom: 24px; }
.price-card.featured .price-note { color: #B6B9CB; }
.price-card ul { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; flex: 1; }
.price-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; }
.price-card li svg { flex: none; width: 18px; height: 18px; color: var(--moss); margin-top: 2px; }
.price-card.featured li svg { color: var(--amber); }
.price-card .savings-badge {
  position: absolute; top: 24px; right: 24px;
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: var(--r-pill);
  background: var(--grad-ember-deep); color: white;
  text-shadow: 0 1px 1px rgba(0,0,0,.18);
}

/* ---------- Quote / Testimonial ---------- */
.quote {
  padding: clamp(48px, 6vw, 80px);
  background: var(--cream);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.quote::before {
  content: "“";
  position: absolute;
  top: -28px; left: 32px;
  font-family: var(--font-display);
  font-size: 14rem;
  line-height: 1;
  color: var(--ember);
  opacity: .14;
  font-weight: 300;
  pointer-events: none;
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 380;
  font-style: italic;
  font-variation-settings: "opsz" 100, "SOFT" 80;
  font-size: clamp(1.4rem, 2.6vw, 2.1rem);
  line-height: 1.3;
  letter-spacing: -0.015em;
  max-width: 60ch;
  position: relative;
  z-index: 1;
}
.quote cite {
  display: block;
  margin-top: 28px;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
}

/* ---------- FAQ ---------- */
.faq { display: flex; flex-direction: column; gap: 12px; max-width: 760px; margin: clamp(40px, 5vw, 64px) auto 0; }
.faq-item { background: white; border: 1px solid var(--bone); border-radius: var(--r-md); overflow: hidden; }
.cream .faq-item { background: var(--paper); }
.faq-q {
  width: 100%;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px;
  font-size: 1rem; font-weight: 600; text-align: left;
  transition: background .2s;
}
.faq-q:hover { background: rgba(11,14,26,.02); }
.faq-q .plus { width: 22px; height: 22px; flex: none; color: var(--ember); transition: transform .3s var(--ease-out); }
.faq-item.open .plus { transform: rotate(45deg); }
.faq-a { display: none; padding: 0 24px 24px; color: var(--slate); font-size: 0.96rem; line-height: 1.6; }
.faq-item.open .faq-a { display: block; }

/* ---------- Logos / trust strip ---------- */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 48px;
  align-items: center;
  justify-content: center;
  padding-block: 32px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  opacity: .85;
}
.trust-strip span { display: inline-flex; align-items: center; gap: 8px; }
.trust-strip span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ember); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: #C5C8D6;
  padding-top: clamp(64px, 7vw, 96px);
  padding-bottom: 40px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--flame), transparent);
  opacity: .35;
}
.footer-grid {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: 1fr;
  margin-bottom: 64px;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }
.footer-brand { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; letter-spacing: -0.02em; color: white; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer-brand img { border-radius: 8px; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 4px 10px -2px rgba(0,0,0,.4); }
.footer-tag { font-size: 0.95rem; color: #A0A4B8; max-width: 32ch; line-height: 1.5; }
.footer-col h4 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: #888BA0; margin: 0 0 16px; }
.footer-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: #C5C8D6; font-size: 0.93rem; transition: color .2s; }
.footer-col a:hover { color: var(--flame); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.06);
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #6E7287;
  font-family: var(--font-mono);
  letter-spacing: 0.05em;
}

/* ---------- Article / Legal pages ---------- */
.article {
  padding-block: clamp(80px, 9vw, 128px);
  max-width: 740px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}
.article header { margin-bottom: clamp(40px, 5vw, 64px); }
.article header .meta { margin-bottom: 20px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ember); }
.article h1 { font-family: var(--font-display); font-weight: 380; font-variation-settings: "opsz" 144; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0; }
.article h1 em { font-style: italic; color: var(--ember); }
.article .article-lede { margin-top: 24px; font-size: 1.18rem; color: var(--slate); line-height: 1.55; max-width: 60ch; }

.prose { font-size: 1.04rem; line-height: 1.7; color: #2A2D3C; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; letter-spacing: -0.015em; margin-top: 2.2em; margin-bottom: 0.5em; color: var(--ink); }
.prose h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.15rem; margin-top: 1.8em; margin-bottom: 0.3em; color: var(--ink); }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li { margin-bottom: 0.5em; }
.prose li::marker { color: var(--ember); }
.prose a { color: var(--ember); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--rust); }
.prose code { font-family: var(--font-mono); font-size: 0.9em; background: var(--cream); padding: 2px 6px; border-radius: 4px; }
.prose blockquote { border-left: 3px solid var(--ember); padding: 4px 0 4px 20px; margin-left: 0; font-style: italic; color: var(--slate); }
.prose hr { border: 0; border-top: 1px solid var(--bone); margin: 2.5em 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.prose table th, .prose table td { padding: 12px 14px; border-bottom: 1px solid var(--bone); text-align: left; }
.prose table th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.prose .placeholder { display: inline-block; padding: 1px 8px; font-family: var(--font-mono); font-size: 0.85em; background: rgba(91,157,245,.14); color: var(--rust); border-radius: 4px; border: 1px dashed rgba(91,157,245,.45); }

/* Table of contents in legal pages */
.toc {
  padding: 24px 28px;
  background: var(--cream);
  border-radius: var(--r-md);
  border: 1px solid var(--bone);
  margin-block: 32px;
}
.toc h2 { font-family: var(--font-mono); font-size: 0.72rem !important; font-weight: 600 !important; letter-spacing: 0.16em; text-transform: uppercase; color: var(--slate); margin: 0 0 14px !important; }
.toc ol { padding-left: 1.4em; font-size: 0.94rem; }
.toc li { margin-bottom: 4px; }
.toc a { color: var(--ink); text-decoration: none; border-bottom: 1px dashed var(--bone); }
.toc a:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- Blog listing ---------- */
.posts {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-top: clamp(48px, 5vw, 64px);
}
@media (min-width: 760px) { .posts { grid-template-columns: 1fr 1fr; } }
.post-card {
  display: flex; flex-direction: column;
  padding: 32px;
  background: white;
  border: 1px solid var(--bone);
  border-radius: var(--r-lg);
  transition: transform .4s var(--ease-out), box-shadow .4s;
}
.cream .post-card { background: var(--paper); }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-soft); }
.post-card .post-meta { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ember); margin-bottom: 14px; }
.post-card h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 12px; color: var(--ink); }
.post-card p { color: var(--slate); font-size: 0.95rem; margin: 0 0 24px; flex: 1; }
.post-card .post-link { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ember); display: inline-flex; align-items: center; gap: 8px; }
.post-card .post-link::after { content: "→"; transition: transform .25s var(--ease-spring); }
.post-card:hover .post-link::after { transform: translateX(4px); }

/* ---------- Changelog ---------- */
.changelog-entry {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--bone);
}
@media (min-width: 760px) { .changelog-entry { grid-template-columns: 200px 1fr; gap: 48px; } }
.changelog-entry .ver { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ember); letter-spacing: 0.05em; }
.changelog-entry .date { display: block; color: var(--slate); margin-top: 4px; font-size: 0.8rem; letter-spacing: 0.04em; }
.changelog-entry h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; letter-spacing: -0.015em; margin: 0 0 12px; }
.changelog-entry ul { list-style: none; padding: 0; }
.changelog-entry li { padding-left: 22px; position: relative; margin-bottom: 8px; color: var(--slate); }
.changelog-entry li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--ember); }
.changelog-entry .tag {
  display: inline-block;
  padding: 2px 8px;
  margin-right: 8px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  border: 1px solid var(--bone);
  color: var(--slate);
}
.changelog-entry .tag.new { background: rgba(15,92,45,.10); color: var(--moss); border-color: rgba(15,92,45,.25); }
.changelog-entry .tag.fix { background: rgba(68,180,200,.12); color: var(--rust); border-color: rgba(68,180,200,.30); }
.changelog-entry .tag.imp { background: rgba(11,14,26,.06); color: var(--ink); border-color: var(--bone); }

/* ---------- Detail / feature deep dive ---------- */
.detail-row {
  padding-block: clamp(56px, 7vw, 96px);
  border-bottom: 1px solid var(--bone);
}
.detail-row:last-of-type { border-bottom: 0; }
.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
}
@media (min-width: 920px) { .detail-grid { grid-template-columns: 1fr 1fr; } .detail-row.flip .detail-grid > :first-child { order: 2; } }
.detail-visual {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
  background: var(--ink);
  padding: 36px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-visual::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 16px 16px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

/* small phone variant for feature pages */
.phone-sm { width: 230px; aspect-ratio: 9/19.5; transform: rotate(-3deg); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ---------- Misc utilities ---------- */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--bone), transparent);
  margin: clamp(48px, 6vw, 80px) 0;
}
.divider.on-dark { background: linear-gradient(90deg, transparent, rgba(255,255,255,.12), transparent); }

.tag-pill {
  display: inline-block;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: rgba(91,157,245,.12);
  color: var(--rust);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(91,157,245,.30);
}

.section-head { max-width: 660px; }
.section-head .lede { margin-top: 20px; }

/* Print-friendly legal pages */
@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: white; color: black; }
  .article { padding: 20px; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
