/* Lantri website
   Brand: amber #F2A93B, pale core #FFE3A3, navy #1B2440, off-white #F3EFE6.
   Headings use Bricolage Grotesque (self-hosted, SIL OFL), the wordmark's typeface. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-grotesque.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #1B2440;
  --navy-900: #10162b;
  --navy-800: #161e38;
  --navy-700: #26325a;
  --amber: #F2A93B;
  --amber-600: #e0901a;
  --amber-ink: #8a5200;
  --core: #FFE3A3;
  --sky: #A9B8F0;
  --paper: #F7F3EA;
  --paper-2: #EFE8D9;
  --white: #ffffff;
  --ink: #1B2440;
  --muted: #535b78;
  --muted-dark: #b6bdd6;
  --line: #e2dacb;
  --line-dark: rgba(255, 255, 255, 0.09);

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgba(27, 36, 64, 0.04), 0 24px 48px -28px rgba(27, 36, 64, 0.28);
  --shadow-lift: 0 1px 0 rgba(27, 36, 64, 0.04), 0 32px 60px -28px rgba(27, 36, 64, 0.38);
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Base ---------- */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 6.2vw, 4.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; }
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; letter-spacing: -0.015em; line-height: 1.2; }

p { margin: 0 0 1em; text-wrap: pretty; }

.lead { font-size: clamp(1.15rem, 1.8vw, 1.35rem); line-height: 1.55; color: var(--muted); }
.dark .lead, .hero .lead { color: var(--muted-dark); }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 1.5rem; }
.narrow { max-width: 780px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; max-width: 40rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 100;
  background: var(--amber); color: var(--navy); padding: 0.6rem 1rem; border-radius: 10px;
  font-weight: 700; text-decoration: none; transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

/* ---------- Eyebrow ---------- */

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font: 700 0.8rem/1 var(--font-body);
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--amber-ink);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: ""; width: 0.6rem; height: 0.6rem; border-radius: 2px; background: currentColor;
  box-shadow: 0.85rem 0 0 -0.05rem currentColor; margin-right: 0.85rem; opacity: 0.9;
}
.dark .eyebrow, .hero .eyebrow { color: var(--amber); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  min-height: 48px; padding: 0.85rem 1.5rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 650 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), background-color 0.2s, border-color 0.2s, color 0.2s;
}
.btn .i { width: 20px; height: 20px; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--amber); color: var(--navy); box-shadow: 0 10px 30px -12px rgba(242, 169, 59, 0.7); }
.btn-primary:hover { background: #f6b551; box-shadow: 0 16px 40px -12px rgba(242, 169, 59, 0.85); }

.btn-ghost { color: var(--paper); border-color: rgba(255, 255, 255, 0.28); }
.btn-ghost:hover { border-color: var(--paper); background: rgba(255, 255, 255, 0.06); }

.btn-outline { color: var(--navy); border-color: rgba(27, 36, 64, 0.25); }
.btn-outline:hover { border-color: var(--navy); background: rgba(27, 36, 64, 0.04); }

.btn-lg { min-height: 56px; padding: 1rem 1.8rem; font-size: 1.08rem; }
.btn-sm { min-height: 40px; padding: 0.6rem 1.1rem; font-size: 0.95rem; }

.btn-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.center .btn-row { justify-content: center; }

.text-link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 650; color: var(--amber-ink); text-decoration: none;
}
.dark .text-link { color: var(--amber); }
.text-link .i { width: 18px; height: 18px; transition: transform 0.25s var(--ease-out); }
.text-link:hover .i { transform: translateX(4px); }

/* ---------- Icons ---------- */

.i {
  width: 24px; height: 24px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

.icon-tile {
  width: 52px; height: 52px; border-radius: 15px;
  display: grid; place-items: center;
  background: var(--navy); color: var(--amber);
  margin-bottom: 1.25rem;
  transition: transform 0.35s var(--ease-out);
}
.dark .icon-tile { background: rgba(242, 169, 59, 0.12); color: var(--amber); }
.card:hover .icon-tile { transform: rotate(-6deg) scale(1.06); }

/* ---------- Navigation ---------- */

.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
}
.site-header.scrolled {
  background: rgba(16, 22, 43, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line-dark);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand img { width: 118px; height: auto; }

.nav-menu { display: flex; align-items: center; gap: 0.35rem; }
.nav-menu a:not(.btn) {
  color: var(--muted-dark); text-decoration: none; font-weight: 550; font-size: 0.98rem;
  padding: 0.55rem 0.85rem; border-radius: 10px; transition: color 0.2s, background-color 0.2s;
}
.nav-menu a:not(.btn):hover { color: var(--paper); background: rgba(255, 255, 255, 0.06); }
.nav-menu a[aria-current="page"] { color: var(--paper); }
.nav-menu .btn { margin-left: 0.6rem; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; border-radius: 12px;
  background: rgba(255, 255, 255, 0.07); cursor: pointer; position: relative;
}
.nav-toggle span {
  position: absolute; left: 12px; right: 12px; height: 2px; border-radius: 2px; background: var(--paper);
  transition: transform 0.3s var(--ease-out), top 0.3s var(--ease-out);
}
.nav-toggle span:first-child { top: 17px; }
.nav-toggle span:last-child { top: 25px; }
.nav-open .nav-toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav-open .nav-toggle span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 820px) {
  .js .nav-toggle { display: block; }
  .js .nav-menu {
    position: absolute; top: 76px; left: 1rem; right: 1rem;
    flex-direction: column; align-items: stretch; gap: 0.25rem;
    padding: 0.75rem; border-radius: 18px;
    background: var(--navy-800); border: 1px solid var(--line-dark);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity 0.25s, transform 0.25s var(--ease-out);
  }
  .js .nav-open .nav-menu { opacity: 1; transform: none; pointer-events: auto; }
  .js .nav-menu a:not(.btn) { padding: 0.85rem 1rem; }
  .js .nav-menu .btn { margin: 0.4rem 0 0; }
  .nav-open .site-header { background: rgba(16, 22, 43, 0.95); }
  html:not(.js) .nav-inner { height: auto; flex-wrap: wrap; padding: 1rem 0; gap: 0.5rem; }
  html:not(.js) .nav-menu { flex-wrap: wrap; }
}

/* ---------- Sections ---------- */

.section { padding: clamp(4.5rem, 10vw, 8rem) 0; position: relative; }
.section-tight { padding: clamp(3.5rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--paper-2); }

.dark {
  background: var(--navy); color: var(--paper);
}
.dark p { color: var(--muted-dark); }
.dark h2, .dark h3 { color: var(--paper); }

.section-head { margin-bottom: clamp(2.5rem, 5vw, 4rem); max-width: 46rem; }
.section-head.center { margin-left: auto; margin-right: auto; }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(ellipse 55% 60% at 75% 35%, rgba(242, 169, 59, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 10% 100%, rgba(169, 184, 240, 0.08), transparent 70%),
    var(--navy);
  color: var(--paper);
  padding: clamp(8rem, 14vw, 10rem) 0 clamp(4rem, 8vw, 6.5rem);
}
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.07) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 30%, transparent 80%);
}
.hero h1 { color: var(--paper); }
.hero h1 em { font-style: normal; color: var(--amber); }

.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.hero-copy .lead { margin: 1.5rem 0 2.25rem; max-width: 34rem; }
.hero-note { margin-top: 1.4rem; font-size: 0.92rem; color: var(--muted-dark); display: flex; align-items: center; gap: 0.5rem; }
.hero-note .i { width: 18px; height: 18px; color: var(--amber); }

.hero-page { text-align: center; padding-bottom: clamp(4rem, 8vw, 6rem); }
.hero-page .lead { margin: 1.25rem auto 0; max-width: 40rem; }
.hero-page .btn-row { justify-content: center; margin-top: 2.25rem; }

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-left: auto; margin-right: auto; }
  .hero-copy .btn-row, .hero-note { justify-content: center; }
  .hero-note .i { display: none; }
  .hero-art { max-width: 620px; margin: 0 auto; }
}

/* Embers rising behind the hero */
.embers { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.embers span {
  position: absolute; bottom: -24px; left: var(--x);
  width: var(--s, 6px); height: var(--s, 6px); border-radius: 2px;
  background: var(--c, var(--amber)); opacity: 0;
  animation: rise var(--t, 12s) linear infinite; animation-delay: var(--d, 0s);
}
@keyframes rise {
  0% { transform: translate3d(0, 0, 0) rotate(0); opacity: 0; }
  10% { opacity: 0.7; }
  70% { opacity: 0.35; }
  100% { transform: translate3d(var(--drift, 30px), -900px, 0) rotate(90deg); opacity: 0; }
}

/* ---------- Hero illustration ---------- */

.hero-art svg { width: 100%; height: auto; overflow: visible; }
.hero-art text, .illo text { font-family: var(--font-display); }

.wire-base { fill: none; stroke: rgba(255, 255, 255, 0.1); stroke-width: 2; }
.wire-flow {
  fill: none; stroke: var(--amber); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 2 14; animation: flow 1.2s linear infinite; opacity: 0.85;
}
@keyframes flow { to { stroke-dashoffset: -16; } }

.screen-glow { animation: glow 5s ease-in-out infinite; }
@keyframes glow { 50% { opacity: 0.55; } }

.slide { opacity: 0; animation: slide-cycle 12s infinite; }
.slide.s1 { animation-delay: 0s; }
.slide.s2 { animation-delay: -8s; }
.slide.s3 { animation-delay: -4s; }
.offset-a .slide.s1 { animation-delay: -1.5s; }
.offset-a .slide.s2 { animation-delay: -9.5s; }
.offset-a .slide.s3 { animation-delay: -5.5s; }
.offset-b .slide.s1 { animation-delay: -3s; }
.offset-b .slide.s2 { animation-delay: -11s; }
.offset-b .slide.s3 { animation-delay: -7s; }
@keyframes slide-cycle {
  0% { opacity: 1; }
  30% { opacity: 1; }
  33.33% { opacity: 0; }
  97% { opacity: 0; }
  100% { opacity: 1; }
}

.hub-pulse { transform-origin: center; transform-box: fill-box; animation: hub-pulse 2.4s ease-out infinite; }
@keyframes hub-pulse {
  0% { transform: scale(0.6); opacity: 0.6; }
  100% { transform: scale(1.6); opacity: 0; }
}
.status-led { animation: led 2s ease-in-out infinite; }
@keyframes led { 50% { opacity: 0.35; } }

.float { animation: float 7s ease-in-out infinite; }
.float-2 { animation: float 8s ease-in-out -2s infinite; }
.float-3 { animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 50% { translate: 0 -6px; } }

/* ---------- Cards ---------- */

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.card p { color: var(--muted); margin-bottom: 0; }
.card h3 { margin-bottom: 0.45rem; }

.dark .card { background: rgba(255, 255, 255, 0.035); border-color: var(--line-dark); box-shadow: none; }
.dark .card:hover { background: rgba(255, 255, 255, 0.06); }
.dark .card p { color: var(--muted-dark); }

.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

/* Problem cards with illustrations */
.problem-card { padding: 0; overflow: hidden; }
.problem-card .illo { background: var(--paper-2); border-bottom: 1px solid var(--line); aspect-ratio: 16 / 10; display: grid; place-items: center; }
.problem-card .illo svg { width: 82%; height: auto; }
.problem-card .body { padding: 1.6rem 1.75rem 1.9rem; }

.punchline {
  margin: clamp(3rem, 6vw, 4.5rem) auto 0; max-width: 44rem; text-align: center;
  font-family: var(--font-display); font-weight: 650; font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  line-height: 1.3; letter-spacing: -0.015em; color: var(--ink);
}
.punchline span { color: var(--amber-ink); }

/* ---------- Split layout ---------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
}

/* ---------- Sunday schedule (animated timeline) ---------- */

.schedule {
  background: var(--navy-900); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.25rem, 3vw, 2rem); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6);
}
.schedule-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.4rem; gap: 1rem; }
.schedule-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--paper); }
.schedule-live { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; color: var(--muted-dark); }
.schedule-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #5fd38d; box-shadow: 0 0 0 4px rgba(95, 211, 141, 0.18); animation: led 2s infinite; }

.schedule-grid { display: grid; grid-template-columns: 76px 1fr; column-gap: 0.9rem; }
.schedule-labels { display: grid; grid-template-rows: repeat(3, 52px) 24px; }
.schedule-labels span { align-self: center; font-size: 0.85rem; font-weight: 600; color: var(--muted-dark); }
.schedule-tracks { position: relative; display: grid; grid-template-rows: repeat(3, 52px) 24px; }
.schedule-axis { position: relative; font-size: 0.72rem; color: rgba(182, 189, 214, 0.7); }
.schedule-axis span { position: absolute; top: 6px; transform: translateX(-50%); white-space: nowrap; }
.schedule-axis span:first-child { transform: none; }
.schedule-axis span:last-child { transform: translateX(-100%); }
.track { position: relative; align-self: center; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.04); }
.blk {
  position: absolute; top: 4px; bottom: 4px; left: calc(var(--l) + 1px); width: calc(var(--w) - 2px);
  border-radius: 7px; padding: 0 0.55rem;
  display: flex; align-items: center; overflow: hidden; white-space: nowrap;
  font-size: 0.78rem; font-weight: 650; color: var(--navy);
  transform-origin: left center;
}
.blk-amber { background: var(--amber); }
.blk-core { background: var(--core); }
.blk-sky { background: var(--sky); }
.blk-paper { background: #e8e1d3; }
.js .schedule .blk { transform: scaleX(0); transition: transform 0.8s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .schedule.in .blk { transform: scaleX(1); }

.playhead {
  position: absolute; top: 2px; bottom: 22px; left: 0; width: 2px; background: var(--paper);
  box-shadow: 0 0 14px rgba(255, 227, 163, 0.8); border-radius: 2px;
  animation: sweep 16s linear infinite;
}
.playhead::before {
  content: "Now"; position: absolute; top: -18px; left: 50%; transform: translateX(-50%);
  font-size: 0.68rem; font-weight: 700; color: var(--navy); background: var(--paper);
  padding: 1px 6px; border-radius: 6px;
}
@keyframes sweep { from { left: 0%; } to { left: 100%; } }

.schedule-legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: 1.4rem; font-size: 0.82rem; color: var(--muted-dark); }
.schedule-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.schedule-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

@media (max-width: 560px) {
  .schedule-grid { grid-template-columns: 58px 1fr; column-gap: 0.6rem; }
  .schedule-labels span { font-size: 0.75rem; }
  .blk { font-size: 0; padding: 0; }
}

/* ---------- Check list ---------- */

.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 0.9rem; }
.checks li { display: flex; gap: 0.85rem; align-items: flex-start; }
.checks li::before {
  content: ""; flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 7px;
  background: rgba(242, 169, 59, 0.16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F2A93B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.checks strong { color: inherit; }
.dark .checks li { color: var(--muted-dark); }
.dark .checks strong { color: var(--paper); }

/* ---------- Steps preview (home) ---------- */

.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; position: relative; }
.steps-row::before {
  content: ""; position: absolute; top: 34px; left: 12%; right: 12%; height: 2px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 6px, transparent 6px 14px); opacity: 0.6;
}
.step-mini { text-align: center; position: relative; }
.step-num {
  width: 68px; height: 68px; margin: 0 auto 1.4rem; border-radius: 20px;
  display: grid; place-items: center; position: relative;
  background: var(--navy); color: var(--core);
  font: 800 1.6rem/1 var(--font-display);
  box-shadow: 0 0 0 8px var(--paper-2), 0 18px 30px -14px rgba(27, 36, 64, 0.6);
}
.step-mini p { color: var(--muted); max-width: 20rem; margin: 0 auto; }
@media (max-width: 820px) {
  .steps-row { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps-row::before { display: none; }
}

/* ---------- Cost comparison ---------- */

.compare { display: grid; gap: 1.6rem; }
.compare-row { display: grid; gap: 0.6rem; }
.compare-label { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.compare-label span { color: var(--muted-dark); font-size: 0.98rem; }
.compare-label strong { font: 800 clamp(1.5rem, 3vw, 2rem)/1 var(--font-display); color: var(--paper); letter-spacing: -0.02em; }
.bar-track { height: 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.bar { height: 100%; width: var(--w); border-radius: 999px; transform-origin: left; }
.bar-sub { background: linear-gradient(90deg, #6b7397, #8d95b8); }
.bar-lantri { background: var(--amber); min-width: 18px; }
.js .compare .bar { transform: scaleX(0); transition: transform 1.4s var(--ease-out) 0.2s; }
.js .compare.in .bar { transform: scaleX(1); }
.compare-note { font-size: 0.88rem; margin-top: 0.4rem; }

.big-number {
  font: 800 clamp(3.2rem, 8vw, 5.5rem)/1 var(--font-display); letter-spacing: -0.04em;
  color: var(--amber); margin: 0.2rem 0 0.6rem;
}

/* ---------- Story ---------- */

.story {
  display: grid; grid-template-columns: auto 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: clamp(2rem, 5vw, 3.5rem); box-shadow: var(--shadow);
}
.story-badge {
  width: clamp(120px, 18vw, 180px); aspect-ratio: 1; border-radius: 32px;
  background: var(--navy); display: grid; place-items: center;
  box-shadow: 0 30px 50px -25px rgba(27, 36, 64, 0.7);
}
.story-badge img { width: 55%; }
.story p { color: var(--muted); }
.story .eyebrow { color: var(--amber-ink); }
.story p:last-child { margin-bottom: 0; }
@media (max-width: 700px) { .story { grid-template-columns: 1fr; text-align: center; } .story-badge { margin: 0 auto; } }

/* ---------- Final CTA ---------- */

.cta {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  background: radial-gradient(ellipse 50% 60% at 50% 30%, rgba(242, 169, 59, 0.22), transparent 70%), var(--navy-900);
  color: var(--paper);
}
.cta h2 { color: var(--paper); max-width: 18ch; margin-left: auto; margin-right: auto; }
.cta .lead { color: var(--muted-dark); margin: 0 auto 2.25rem; max-width: 36rem; }
.cta .btn-row { justify-content: center; }
.cta-flame { width: 96px; margin: 0 auto 2rem; filter: drop-shadow(0 0 30px rgba(242, 169, 59, 0.55)); }
.cta-flame rect { animation: flicker 2.8s ease-in-out infinite; }
.cta-flame rect:nth-child(3n) { animation-delay: -0.7s; }
.cta-flame rect:nth-child(3n+1) { animation-delay: -1.6s; }
.cta-flame rect:nth-child(4n) { animation-duration: 2.1s; }
.cta-flame rect:nth-child(5n) { animation-duration: 3.4s; }
@keyframes flicker { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
.verse {
  margin: 3.5rem auto 0; max-width: 34rem; font-size: 0.95rem; color: var(--muted-dark); font-style: italic;
}
.verse cite { display: block; margin-top: 0.4rem; font-style: normal; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--amber); }

/* ---------- How it works: detailed steps ---------- */

.step-block { padding: clamp(2.5rem, 5vw, 4rem) 0; }
.step-block + .step-block { border-top: 1px solid var(--line); }
.step-tag {
  display: inline-flex; align-items: center; gap: 0.6rem; margin-bottom: 1rem;
  font: 700 0.85rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber-ink);
}
.step-tag b {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: var(--navy); color: var(--core); font: 800 1rem/1 var(--font-display); letter-spacing: 0;
}
.step-block p { color: var(--muted); }
.step-block .lead { color: var(--muted); }

.illo-frame {
  background: var(--navy); border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem);
  box-shadow: 0 40px 70px -40px rgba(27, 36, 64, 0.7); position: relative; overflow: hidden;
  isolation: isolate;
}
.illo-frame::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 70% 60% at 70% 20%, rgba(242, 169, 59, 0.16), transparent 70%);
}
.illo-frame svg { width: 100%; height: auto; }

/* Illustration animations tied to reveal */
.js .reveal .pop { opacity: 0; transform: translateY(10px) scale(0.96); transform-box: fill-box; transform-origin: center; transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.in .pop { opacity: 1; transform: none; }
.js .reveal .slide-in { transform: translateX(46px); transition: transform 1s var(--ease-out) 0.3s; }
.js .reveal.in .slide-in { transform: none; }
.js .reveal .fill-bar { transform: scaleX(0); transform-origin: left; transform-box: fill-box; transition: transform 2.2s var(--ease-out) 0.4s; }
.js .reveal.in .fill-bar { transform: scaleX(1); }
.js .reveal .drop { opacity: 0; transform: translateY(-40px); transition: opacity 0.5s, transform 0.8s cubic-bezier(0.3, 1.4, 0.5, 1); transition-delay: 0.8s; }
.js .reveal.in .drop { opacity: 1; transform: none; }
.js .reveal .grow { transform: scaleY(0); transform-origin: bottom; transform-box: fill-box; transition: transform 0.9s var(--ease-out); transition-delay: var(--delay, 0s); }
.js .reveal.in .grow { transform: scaleY(1); }

/* "What happens when" cards */
.qa-card { display: flex; gap: 1.1rem; align-items: flex-start; }
.qa-card .icon-tile { margin: 0; flex: none; }
.qa-card h3 { font-size: 1.12rem; }

/* ---------- Features: schedule layers ---------- */

.layers { position: relative; display: grid; gap: 0.85rem; perspective: 1200px; }
.layer {
  display: flex; align-items: center; gap: 1rem;
  padding: 1.1rem 1.25rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
  transition: transform 0.7s var(--ease-out), opacity 0.7s; transition-delay: var(--delay, 0s);
}
.layer .swatch { width: 14px; align-self: stretch; border-radius: 6px; flex: none; }
.layer h3 { font-size: 1.08rem; margin: 0 0 0.15rem; }
.layer p { margin: 0; font-size: 0.95rem; }
.layer-top { background: rgba(242, 169, 59, 0.1); border-color: rgba(242, 169, 59, 0.35); }
.layer .tag {
  margin-left: auto; flex: none; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--navy); background: var(--amber); padding: 0.3rem 0.55rem; border-radius: 6px;
}
.js .layers .layer { opacity: 0; transform: translateY(30px) rotateX(18deg); }
.js .layers.in .layer { opacity: 1; transform: none; }

/* ---------- Pricing ---------- */

.price-card {
  position: relative; max-width: 560px; margin: 0 auto;
  background: var(--white); border-radius: var(--radius-lg); padding: clamp(2rem, 5vw, 3rem);
  box-shadow: 0 50px 90px -40px rgba(27, 36, 64, 0.55); border: 1px solid var(--line); text-align: left;
}
.price-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; z-index: 0;
  background: linear-gradient(140deg, var(--amber), transparent 40%, transparent 60%, var(--core));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.price-card > * { position: relative; }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price-top h2 { font-size: 1.6rem; margin: 0; }
.pill {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  background: rgba(242, 169, 59, 0.16); color: var(--amber-ink); padding: 0.4rem 0.75rem; border-radius: 999px;
}
.price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.4rem 0 0.4rem; }
.price strong { font: 800 clamp(4rem, 10vw, 5.5rem)/1 var(--font-display); letter-spacing: -0.05em; }
.price span { color: var(--muted); font-size: 1.05rem; }
.price-card .checks li { color: var(--muted); }
.price-card .checks strong { color: var(--ink); }
.price-card .btn { width: 100%; margin-top: 2rem; }
.price-fine { font-size: 0.9rem; color: var(--muted); text-align: center; margin: 1rem 0 0; }

/* Calculator */
.calc {
  background: var(--navy-900); border: 1px solid var(--line-dark); border-radius: var(--radius-lg);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}
.calc-controls { display: grid; gap: 1.75rem; margin-bottom: 2rem; }
.calc label { display: flex; justify-content: space-between; align-items: baseline; font-weight: 600; color: var(--paper); margin-bottom: 0.75rem; }
.calc .calc-label { font-weight: 600; color: var(--paper); margin: 0 0 0.75rem; }
.calc .bar { transition: width 0.35s var(--ease-out), transform 1.4s var(--ease-out) 0.2s; }
.calc label output { font: 800 1.6rem/1 var(--font-display); color: var(--amber); }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.06); gap: 4px; }
.seg button {
  min-height: 40px; padding: 0 1.1rem; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--muted-dark); font: 600 0.95rem/1 var(--font-body); transition: background-color 0.2s, color 0.2s;
}
.seg button[aria-pressed="true"] { background: var(--amber); color: var(--navy); }
.seg button:hover:not([aria-pressed="true"]) { color: var(--paper); }

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--amber) 0 var(--pct, 25%), rgba(255, 255, 255, 0.1) var(--pct, 25%));
}
input[type="range"]::-moz-range-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--amber); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%;
  background: var(--paper); border: 4px solid var(--amber); box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
input[type="range"]::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; background: var(--paper); border: 4px solid var(--amber);
}
.savings {
  margin-top: 2rem; padding: 1.5rem; border-radius: 18px; text-align: center;
  background: rgba(242, 169, 59, 0.1); border: 1px solid rgba(242, 169, 59, 0.3);
}
.savings p { margin: 0; color: var(--core); }
.savings strong { display: block; font: 800 clamp(2.4rem, 6vw, 3.4rem)/1.1 var(--font-display); color: var(--amber); letter-spacing: -0.03em; }

/* FAQ */
.faq { display: grid; gap: 0.85rem; }
.faq details {
  background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.4rem;
  transition: box-shadow 0.3s, border-color 0.3s;
}
.faq details[open] { box-shadow: var(--shadow); border-color: transparent; }
.faq summary {
  list-style: none; cursor: pointer; padding: 1.25rem 0; min-height: 44px;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  font: 650 1.1rem/1.3 var(--font-display); letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px;
  background: var(--paper-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231B2440' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform 0.3s var(--ease-out), background-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--core); }
.faq details > div { padding: 0 0 1.4rem; color: var(--muted); animation: faq-in 0.35s var(--ease-out); }
.faq details > div p:last-child { margin-bottom: 0; }
@keyframes faq-in { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Download ---------- */

.download-card {
  max-width: 640px; margin: 2.75rem auto 0; padding: 1.75rem; border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-dark);
  display: flex; gap: 1.5rem; align-items: center; text-align: left;
}
.download-card img { width: 88px; border-radius: 20px; flex: none; box-shadow: 0 20px 40px -18px rgba(0, 0, 0, 0.7); }
.download-card h2 { font-size: 1.5rem; margin: 0 0 0.25rem; }
.download-card p { margin: 0 0 1rem; color: var(--muted-dark); font-size: 0.95rem; }
@media (max-width: 560px) { .download-card { flex-direction: column; text-align: center; } }

.need-card { text-align: center; }
.need-card .illo { height: 120px; display: grid; place-items: center; margin-bottom: 1.25rem; }
.need-card .illo svg { height: 100%; width: auto; }
.need-card .price-tag { display: inline-block; margin-top: 0.85rem; font-weight: 700; font-size: 0.9rem; color: var(--amber-ink); background: rgba(242, 169, 59, 0.14); padding: 0.3rem 0.7rem; border-radius: 999px; }

.timeline-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 1.25rem; }
.timeline-steps li {
  counter-increment: s; position: relative; padding: 0 0 0 4rem; min-height: 48px;
}
.timeline-steps li::before {
  content: counter(s); position: absolute; left: 0; top: -0.2rem;
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--amber); color: var(--navy); font: 800 1.15rem/1 var(--font-display);
}
.timeline-steps li:not(:last-child)::after {
  content: ""; position: absolute; left: 21px; top: 48px; bottom: -1.1rem; width: 2px;
  background: repeating-linear-gradient(var(--line-dark) 0 6px, transparent 6px 12px);
}
.timeline-steps h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
.timeline-steps p { margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: var(--navy-900); color: var(--muted-dark); padding: 4.5rem 0 2.5rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.footer-brand img { width: 130px; margin-bottom: 1.1rem; }
.footer-brand p { max-width: 22rem; }
.site-footer h4 { font: 700 0.8rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--paper); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { text-decoration: none; transition: color 0.2s; }
.site-footer a:hover { color: var(--amber); }
.footer-bottom {
  margin-top: 3.5rem; padding-top: 1.75rem; border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: 0.88rem;
}
.footer-bottom span { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer-bottom .i { width: 16px; height: 16px; color: var(--amber); }
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ---------- Scroll reveal ---------- */

.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: var(--delay, 0s);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .embers { display: none; }
  .slide { animation: none !important; opacity: 0; }
  .slide.s1 { opacity: 1; }
  .playhead { left: 38%; }
}
