/* ============================================================
   Pecunis — luminous editorial landing
   Type: Fraunces (display) + Hanken Grotesk (sans)
   ============================================================ */

:root {
  --paper: #f3ede0;
  --paper-2: #faf6ec;
  --paper-3: #fffdf8;
  --ink: #15241e;
  --ink-2: #2b3a33;
  --muted: #5b6a61;
  --teal: #0a7a68;
  --teal-deep: #08443c;
  --amber: #d9772f;
  --amber-2: #e8843c;
  --gold: #bd9540;
  --line: rgba(21, 36, 30, 0.13);
  --line-strong: rgba(21, 36, 30, 0.24);
  --shadow-soft: 0 18px 50px -28px rgba(54, 38, 16, 0.45);
  --shadow-warm: 0 40px 90px -40px rgba(54, 38, 16, 0.5);
  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --shell: min(1200px, calc(100vw - 40px));
  --r: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background: var(--paper);
  overflow-x: clip;
}

a { color: inherit; text-decoration: none; }

/* ---------- bilingual toggle: hide only the INACTIVE language ----------
   The active node keeps its natural UA display (block/inline/list-item),
   so no display:initial/revert guesswork — works on every engine. */
body[data-lang="en"] [data-lang="it"],
body[data-lang="it"] [data-lang="en"] { display: none; }

.shell { width: var(--shell); margin-inline: auto; }

.display { font-family: var(--display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -0.02em; }
.display em { font-style: italic; font-weight: 500; }

.ink-teal { color: var(--teal); }
.ink-amber { color: var(--amber); }
.ink-gold { color: var(--gold); }

/* ============================================================
   ATMOSPHERE — paper light + grain
   ============================================================ */
.atmosphere { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bloom {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55;
  will-change: transform;
}
.bloom-teal {
  width: 52vw; height: 52vw; top: -16vw; left: -12vw;
  background: radial-gradient(circle, rgba(10, 122, 104, 0.42), transparent 62%);
  animation: drift1 22s ease-in-out infinite alternate;
}
.bloom-amber {
  width: 46vw; height: 46vw; top: -8vw; right: -14vw;
  background: radial-gradient(circle, rgba(232, 132, 60, 0.4), transparent 62%);
  animation: drift2 26s ease-in-out infinite alternate;
}
.bloom-gold {
  width: 60vw; height: 60vw; top: 52%; left: 30%;
  background: radial-gradient(circle, rgba(189, 149, 64, 0.26), transparent 64%);
  animation: drift1 30s ease-in-out infinite alternate;
}
.grain {
  position: absolute; inset: -50%; opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes drift1 { from { transform: translate(0,0) scale(1); } to { transform: translate(4vw, 3vw) scale(1.08); } }
@keyframes drift2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-3vw, 4vw) scale(1.1); } }

main, .topbar, .footer { position: relative; z-index: 1; }

/* ============================================================
   TOPBAR
   ============================================================ */
.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0;
}
.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 700; }
/* real app icon, presented as an iOS-style tile */
.app-icon {
  display: block; object-fit: cover; border-radius: 22%;
  box-shadow: 0 10px 24px -10px rgba(54, 38, 16, 0.55), inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}
.brand-icon { width: 42px; height: 42px; border-radius: 11px; }
.hero-icon { width: 78px; height: 78px; margin-bottom: 24px; }
.finale-icon { width: 72px; height: 72px; margin: 0 auto 20px; }
.brand-word { font-family: var(--display); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }

.nav { display: flex; gap: 26px; }
.nav-link { color: var(--muted); font-weight: 500; font-size: 0.96rem; position: relative; transition: color 0.2s; }
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 100%; height: 1.5px;
  background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform 0.28s ease;
}
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

.topbar-actions { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,0.5); }
.lang-switch button {
  border: 0; background: transparent; color: var(--muted); cursor: pointer;
  font: inherit; font-size: 0.82rem; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  transition: all 0.2s;
}
.lang-switch button.active { background: var(--ink); color: var(--paper-2); }

/* ============================================================
   BUTTONS / BADGES
   ============================================================ */
.button {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font: inherit; font-weight: 600; border-radius: 999px; padding: 13px 22px;
  border: 1px solid transparent; transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.2s;
}
.button.ghost { background: rgba(255,255,255,0.55); border-color: var(--line-strong); color: var(--ink); }
.button.ghost:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.button .arrow { transition: transform 0.25s; }
.button.ghost:hover .arrow { transform: translateY(3px); }

.app-pill {
  background: var(--ink); color: var(--paper-2); padding: 10px 17px; font-size: 0.9rem;
}
.app-pill:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -14px rgba(21,36,30,0.6); }
.apple-glyph { width: 15px; height: 18px; display: block; }

.appstore-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: #fff; border-radius: 15px; padding: 11px 22px 11px 18px;
  box-shadow: var(--shadow-soft); transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.appstore-badge .apple-glyph { width: 26px; height: 31px; }
.appstore-badge:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 26px 46px -20px rgba(21,36,30,0.75); }
.badge-text { display: flex; flex-direction: column; line-height: 1.05; }
.badge-text small { font-size: 0.66rem; letter-spacing: 0.02em; opacity: 0.85; font-weight: 500; }
.badge-text strong { font-size: 1.28rem; font-weight: 600; letter-spacing: -0.01em; }

/* ============================================================
   KICKERS / SECTION HEADS
   ============================================================ */
.kicker {
  display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px;
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-deep);
}
.kicker-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px rgba(232,132,60,0.18); }
.centerk { justify-content: center; }

.section { padding: 88px 0; }
.section-head { max-width: 30ch; margin-bottom: 48px; }
.section-head.center { max-width: 760px; margin-inline: auto; text-align: center; }
.section-title { margin: 0; font-size: clamp(2.1rem, 4.6vw, 3.7rem); line-height: 1.02; }
.body-lg { font-size: 1.12rem; color: var(--ink-2); line-height: 1.62; max-width: 54ch; }
.center-lg { margin-inline: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: 40px; align-items: center;
  padding: 36px 0 70px; min-height: 78vh;
}
.kicker-dot { flex: none; }
.hero h1.display {
  margin: 0; font-size: clamp(2.7rem, 6.1vw, 5.3rem); line-height: 0.99; letter-spacing: -0.028em;
  max-width: 15ch;
}
.lede { margin: 26px 0 0; font-size: 1.2rem; line-height: 1.55; color: var(--ink-2); max-width: 50ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; margin-top: 34px; }
.trust-line { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 30px 0 0; }
.trust-line li { position: relative; padding-left: 22px; color: var(--muted); font-weight: 500; font-size: 0.95rem; }
.trust-line li::before {
  content: "✓"; position: absolute; left: 0; top: -1px; color: var(--teal); font-weight: 800;
}

/* ---------- floating phone ---------- */
.hero-stage { position: relative; display: grid; place-items: center; min-height: 540px; }
.phone {
  position: relative; width: 300px; height: 612px; border-radius: 50px; padding: 11px;
  background: linear-gradient(155deg, #20302a, #0d1813);
  box-shadow: var(--shadow-warm), inset 0 0 0 2px rgba(255,255,255,0.06), 0 0 0 1px rgba(0,0,0,0.4);
  will-change: transform;
}
.phone-island {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 28px; background: #05100c; border-radius: 999px; z-index: 4;
}
.phone-screen {
  position: relative; height: 100%; border-radius: 40px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 80% 0%, rgba(232,132,60,0.16), transparent 50%),
    radial-gradient(120% 80% at 0% 100%, rgba(10,122,104,0.18), transparent 52%),
    linear-gradient(180deg, #fbf7ee 0%, #f3ecdd 100%);
  padding: 52px 22px 22px; color: var(--ink);
}
.scr-status { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; font-weight: 700; opacity: 0.8; }
.scr-dots { display: inline-flex; gap: 4px; }
.scr-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--ink); opacity: 0.55; }
.scr-head { margin-top: 18px; text-align: center; }
.scr-eyebrow { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-deep); }
.scr-net { display: block; font-family: var(--display); font-weight: 600; font-size: 1.85rem; margin-top: 4px; letter-spacing: -0.02em; }
.scr-netlabel { font-size: 0.72rem; color: var(--muted); }

.gauge-wrap { position: relative; width: 200px; height: 200px; margin: 14px auto 6px; }
.gauge { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-track { fill: none; stroke: rgba(21,36,30,0.1); stroke-width: 16; }
.gauge-value {
  fill: none; stroke: url(#gaugeGrad); stroke-width: 16; stroke-linecap: round;
  filter: drop-shadow(0 4px 10px rgba(10,122,104,0.35));
}
.gauge-center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; gap: 2px; }
.gauge-num { font-family: var(--display); font-weight: 600; font-size: 3.6rem; line-height: 1; letter-spacing: -0.03em; }
.gauge-cap { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); }

.scr-bars { margin-top: 14px; display: grid; gap: 11px; }
.scr-bar { display: grid; gap: 5px; }
.scr-bar-l { font-size: 0.72rem; color: var(--ink-2); font-weight: 600; }
.scr-bar i {
  display: block; height: 7px; border-radius: 999px; width: var(--w);
  background: linear-gradient(90deg, var(--teal), var(--amber-2));
  transition: width 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
}
html.js .scr-bar i { width: 0; }
html.js .scr-bar.is-in i { width: var(--w); }

/* ---------- floating chips ---------- */
.chip-float {
  position: absolute; background: var(--paper-3); border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow-soft);
  display: grid; gap: 2px; backdrop-filter: blur(8px); will-change: transform; z-index: 5;
}
.chip-k { font-size: 0.68rem; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; }
.chip-v { font-family: var(--display); font-weight: 600; font-size: 1.3rem; letter-spacing: -0.02em; }
.chip-v.up { color: var(--teal); }
.chip-fire { top: 12%; right: -4%; }
.chip-cash { bottom: 12%; left: -8%; }

/* ============================================================
   TICKER
   ============================================================ */
.ticker {
  border-block: 1px solid var(--line); overflow: hidden; padding: 16px 0; margin: 6px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-row { display: inline-flex; gap: 28px; white-space: nowrap; animation: marquee 34s linear infinite; }
.ticker-row span { font-family: var(--display); font-style: italic; font-size: 1.4rem; color: var(--ink-2); font-weight: 500; }
.ticker-row .sep { color: var(--amber); font-style: normal; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============================================================
   THREE QUESTIONS
   ============================================================ */
.qgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.qcard {
  position: relative; padding: 34px 28px 30px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,253,248,0.9), rgba(250,246,236,0.78));
  border: 1px solid var(--line); box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.qcard::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--r); padding: 1px;
  background: linear-gradient(160deg, rgba(10,122,104,0.4), transparent 40%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity 0.3s;
}
.qcard:hover { transform: translateY(-6px); box-shadow: var(--shadow-warm); }
.qcard:hover::before { opacity: 1; }
.qnum { display: block; font-size: 3.4rem; font-weight: 600; color: var(--teal); opacity: 0.9; line-height: 1; margin-bottom: 14px; }
.qcard h3 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.45rem; letter-spacing: -0.01em; }
.qcard p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ============================================================
   SPLIT (score showcase / what-if)
   ============================================================ */
.split { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
.split.reverse .split-copy { order: 2; }
.split-copy .section-title { font-size: clamp(2rem, 4vw, 3.2rem); }
.split-copy .body-lg { margin-top: 22px; }

.check-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 13px; }
.check-list li { position: relative; padding-left: 30px; font-weight: 500; color: var(--ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/11px no-repeat;
}

/* score card */
.score-card {
  border-radius: 30px; padding: 34px; border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--paper-3), #f1ead9);
  box-shadow: var(--shadow-warm); position: relative; overflow: hidden;
}
.score-card::after {
  content: ""; position: absolute; top: -40%; right: -30%; width: 60%; height: 80%; border-radius: 50%;
  background: radial-gradient(circle, rgba(232,132,60,0.16), transparent 65%);
}
.score-card-top { display: flex; justify-content: space-between; align-items: center; }
.score-badge { font-size: 0.7rem; font-weight: 700; color: var(--teal); background: rgba(10,122,104,0.12); padding: 5px 11px; border-radius: 999px; }
.score-big { display: flex; align-items: baseline; gap: 8px; margin: 16px 0 26px; }
.score-big .display { font-size: clamp(4.4rem, 13vw, 6.6rem); line-height: 0.9; font-weight: 600; letter-spacing: -0.04em; }
.score-of { font-family: var(--display); font-size: 1.5rem; color: var(--muted); }
.ind-list { display: grid; gap: 15px; }
.ind { display: grid; grid-template-columns: 130px 1fr; align-items: center; gap: 14px; }
.ind > span { font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.ind-track { height: 9px; border-radius: 999px; background: rgba(21,36,30,0.09); overflow: hidden; }
.ind-track i { display: block; height: 100%; width: var(--w); border-radius: 999px; background: linear-gradient(90deg, var(--teal), var(--gold)); transition: width 1.2s cubic-bezier(0.2,0.8,0.2,1); }
html.js .ind-track i { width: 0; }
html.js .ind.is-in .ind-track i { width: var(--w); }

/* ============================================================
   FIRE SPECTRUM
   ============================================================ */
.fire { padding-block: 96px; }
.spectrum { max-width: 920px; margin: 56px auto 0; }
.spectrum-bar { position: relative; height: 22px; border-radius: 999px; overflow: visible; box-shadow: inset 0 1px 4px rgba(0,0,0,0.12); }
.spectrum-fill {
  position: absolute; inset: 0; border-radius: 999px;
  background: linear-gradient(90deg, #0a7a68 0%, #3fae84 34%, #e8843c 70%, #bd9540 100%);
  background-size: 200% 100%; animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%,100% { background-position: 0% 0; } 50% { background-position: 100% 0; } }
.spectrum-marker { position: absolute; top: 50%; left: var(--pos); width: 0; transition: left 1.4s cubic-bezier(0.2,0.8,0.2,1); }
html.js .spectrum-marker { left: 0; }
html.js .spectrum.is-in .spectrum-marker { left: var(--pos); }
.spectrum-marker::before {
  content: ""; position: absolute; left: 0; top: 0; transform: translate(-50%,-50%);
  width: 30px; height: 30px; border-radius: 50%; background: var(--paper-3);
  border: 4px solid var(--ink); box-shadow: 0 6px 16px -4px rgba(0,0,0,0.4);
}
.marker-label {
  position: absolute; left: 0; top: -44px; transform: translateX(-50%); white-space: nowrap;
  background: var(--ink); color: var(--paper-2); font-size: 0.82rem; font-weight: 600;
  padding: 5px 12px; border-radius: 999px;
}
.marker-label::after { content: ""; position: absolute; left: 50%; bottom: -5px; transform: translateX(-50%) rotate(45deg); width: 9px; height: 9px; background: var(--ink); }
.spectrum-stops { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 26px; }
.spectrum-stops span { display: grid; gap: 2px; text-align: center; }
.spectrum-stops b { font-family: var(--display); font-size: 1.25rem; font-weight: 600; }
.spectrum-stops small { font-size: 0.8rem; color: var(--muted); }

/* ============================================================
   WHAT-IF
   ============================================================ */
.whatif-hint { margin-top: 24px; color: var(--amber); font-weight: 600; font-size: 0.95rem; }
.whatif-card {
  border-radius: 30px; padding: 34px; border: 1px solid var(--line);
  background: linear-gradient(165deg, var(--paper-3), #f1ead9); box-shadow: var(--shadow-warm);
}
.whatif-score { display: flex; align-items: center; justify-content: center; gap: 24px; margin-bottom: 28px; }
.whatif-base, .whatif-next { display: grid; justify-items: center; gap: 2px; position: relative; }
.wlabel { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.whatif-score .display { font-size: 4.2rem; line-height: 1; font-weight: 600; letter-spacing: -0.03em; }
.whatif-next .display { color: var(--teal); transition: color 0.3s; }
.whatif-arrow { font-family: var(--display); font-size: 2rem; color: var(--muted); }
.whatif-delta { position: absolute; top: -6px; right: -42px; font-weight: 700; font-size: 0.95rem; opacity: 0; transform: translateY(6px); transition: all 0.3s; }
.whatif-delta.show { opacity: 1; transform: none; }
.whatif-delta.pos { color: var(--teal); }
.whatif-delta.neg { color: #c0492f; }
.whatif-chips { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wchip {
  font: inherit; font-weight: 600; font-size: 0.92rem; cursor: pointer; text-align: left;
  padding: 14px 16px; border-radius: 15px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.6); color: var(--ink-2); transition: all 0.22s ease;
}
.wchip:hover { transform: translateY(-2px); border-color: var(--teal); color: var(--ink); box-shadow: var(--shadow-soft); }
.wchip.active { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }

/* ============================================================
   TRUST GRID
   ============================================================ */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card {
  padding: 32px 28px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255,253,248,0.7); box-shadow: var(--shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.trust-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-warm); }
.trust-ic { font-size: 1.7rem; display: inline-block; margin-bottom: 12px; }
.trust-card h3 { margin: 0 0 9px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.trust-card p { margin: 0; color: var(--muted); line-height: 1.6; }

/* ============================================================
   FINALE
   ============================================================ */
.finale { padding: 40px 0 110px; }
.finale-inner {
  position: relative; text-align: center; padding: 80px 32px; border-radius: 40px; overflow: hidden;
  background: linear-gradient(160deg, #0c4f46 0%, #0a3a34 60%, #0e2a26 100%);
  color: var(--paper-2); box-shadow: var(--shadow-warm);
}
.finale-inner::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 60% at 18% 12%, rgba(232,132,60,0.32), transparent 60%),
    radial-gradient(50% 50% at 88% 90%, rgba(63,174,132,0.3), transparent 60%);
}
.finale-inner > * { position: relative; }
.finale-inner .kicker { color: #e9c79a; }
.finale-inner .kicker-dot { background: var(--amber-2); }
.finale-title { margin: 6px 0 14px; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; color: #fff; }
.finale-inner .body-lg { color: rgba(255,255,255,0.85); }
.finale-actions { margin-top: 32px; display: flex; justify-content: center; }
.finale .appstore-badge { background: #fff; color: var(--ink); }

/* ============================================================
   WAITLIST
   ============================================================ */
.waitlist { padding: 30px 0 10px; }
.waitlist-inner {
  max-width: 640px; margin: 0 auto; text-align: center;
  background: var(--paper-3); border: 1px solid var(--line);
  border-radius: var(--r); padding: 48px 32px; box-shadow: var(--shadow-soft);
}
.waitlist-title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem); line-height: 1.1; margin: 6px 0 12px; color: var(--ink);
}
.waitlist-lede { color: var(--muted); font-size: 1rem; line-height: 1.55; margin: 0 auto 26px; max-width: 480px; }
.waitlist-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.waitlist-input {
  flex: 1 1 240px; min-width: 0; font-family: var(--sans); font-size: 1rem;
  padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line-strong);
  background: var(--paper-2); color: var(--ink); transition: border-color 0.2s, box-shadow 0.2s;
}
.waitlist-input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,122,104,0.16); }
.waitlist-submit { background: var(--teal); color: #fff; border-color: var(--teal); padding: 13px 22px; white-space: nowrap; }
.waitlist-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.waitlist-submit[disabled] { opacity: 0.6; pointer-events: none; }
.waitlist-status { min-height: 1.2em; margin: 14px 0 0; font-size: 0.92rem; font-weight: 600; }
.waitlist-status.ok { color: var(--teal); }
.waitlist-status.err { color: var(--amber); }

/* ============================================================
   FIRE CALCULATOR
   ============================================================ */
.calc { padding: 48px 0 90px; }
.calc-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.calc-title { font-size: clamp(2.2rem, 5.5vw, 4rem); line-height: 1.02; margin: 8px 0 14px; }
.calc-grid { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 28px; align-items: start; max-width: 980px; margin: 0 auto; }
@media (max-width: 760px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-form {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: var(--shadow-soft); display: flex; flex-direction: column; gap: 14px;
}
.calc-field { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 600; color: var(--ink-2); }
.calc-field input {
  font-family: var(--sans); font-size: 1.05rem; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--paper-2); color: var(--ink);
}
.calc-field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(10,122,104,0.16); }
.calc-advanced summary { cursor: pointer; font-size: 0.85rem; font-weight: 600; color: var(--muted); padding: 2px 0; }
.calc-advanced[open] { display: flex; flex-direction: column; gap: 12px; }
.calc-whatif { display: flex; flex-direction: column; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--ink-2); padding-top: 4px; }
.calc-whatif input[type="range"] { width: 100%; accent-color: var(--teal); }
.calc-whatif output { color: var(--teal); font-weight: 700; }
.calc-submit { background: var(--teal); color: #fff; border-color: var(--teal); padding: 13px; justify-content: center; margin-top: 4px; }
.calc-submit:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }

.calc-result {
  background: var(--paper-3); border: 1px solid var(--line); border-radius: var(--r);
  padding: 30px 28px; box-shadow: var(--shadow-warm); min-height: 200px;
}
.fire-hint { color: var(--muted); text-align: center; margin: 40px 0; }
.fire-badge-row { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.fire-badge-pre { font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.fire-badge { font-weight: 700; padding: 4px 12px; border-radius: 999px; background: var(--teal); color: #fff; font-size: 0.95rem; }
.fire-badge.lvl-0 { background: #8a9a90; }
.fire-badge.lvl-1 { background: #4f9e7e; }
.fire-badge.lvl-2 { background: var(--teal); }
.fire-badge.lvl-3 { background: var(--teal-deep); }
.fire-badge.lvl-4 { background: var(--gold); }
.fire-badge.lvl-5 { background: var(--amber); }
.fire-headline { font-family: var(--sans); font-size: 1.25rem; line-height: 1.4; color: var(--ink); margin: 6px 0 20px; }
.fire-bignum { font-family: var(--display); font-weight: 700; color: var(--teal); font-size: 1.7rem; }

.fire-spectrum { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; margin: 14px 0; }
.fire-seg { height: 46px; border-radius: 8px; background: rgba(21,36,30,0.07); display: flex; align-items: flex-end; padding: 5px; position: relative; transition: background 0.3s; }
.fire-seg.past { background: rgba(10,122,104,0.18); }
.fire-seg.active { background: var(--teal); box-shadow: var(--shadow-soft); }
.fire-seg-label { font-size: 0.62rem; font-weight: 700; color: var(--muted); line-height: 1.05; }
.fire-seg.active .fire-seg-label { color: #fff; }
.fire-seg.past .fire-seg-label { color: var(--teal-deep); }

.fire-coast { font-size: 0.92rem; color: var(--ink-2); margin: 16px 0; padding: 12px 14px; background: var(--paper-2); border-radius: 12px; }
.fire-miles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 22px; }
.fire-mile { background: var(--paper-2); border-radius: 12px; padding: 12px; text-align: center; }
.fire-mile span { display: block; font-size: 0.75rem; color: var(--muted); font-weight: 600; }
.fire-mile b { display: block; font-size: 0.95rem; color: var(--ink); margin-top: 4px; }
.fire-share-row { display: flex; gap: 10px; flex-wrap: wrap; }
.fire-share { background: var(--ink); color: var(--paper-2); border-color: var(--ink); }
.fire-share:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.fire-share-status { min-height: 1.1em; margin: 10px 0 0; font-size: 0.85rem; font-weight: 600; color: var(--teal); }
.calc-fine { text-align: center; color: var(--muted); font-size: 0.8rem; max-width: 620px; margin: 30px auto 0; line-height: 1.5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 50px 0 60px; border-top: 1px solid var(--line); margin-top: 10px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-nav { display: flex; gap: 26px; }
.footer-nav a { color: var(--muted); font-weight: 500; transition: color 0.2s; }
.footer-nav a:hover { color: var(--ink); }
.footer-fine { margin: 22px 0 0; color: var(--muted); font-size: 0.9rem; }

/* ============================================================
   LEGACY PAGES (privacy / support) — preserved
   ============================================================ */
.eyebrow { margin: 0 0 12px; color: var(--teal-deep); text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.78rem; font-weight: 700; }
.legal-page, .support-page { padding: 40px 0 80px; display: grid; gap: 18px; }
.legal-page h1, .support-page h1 { margin: 6px 0 14px; font-family: var(--display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.02; max-width: 18ch; letter-spacing: -0.02em; }
.legal-card, .support-card {
  padding: 26px 28px; border-radius: var(--r); border: 1px solid var(--line);
  background: rgba(255,253,248,0.72); box-shadow: var(--shadow-soft);
}
.legal-card h2, .support-card h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 600; font-size: 1.3rem; }
.legal-card p, .support-card p { margin: 0 0 8px; color: var(--muted); line-height: 1.7; }
.legal-card a, .support-card a { color: var(--teal); font-weight: 600; }
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.support-card.highlight { background: linear-gradient(160deg, rgba(10,122,104,0.12), var(--paper-3)); border-color: rgba(10,122,104,0.3); }
.mini-list { margin: 0; padding-left: 1.1rem; color: var(--muted); line-height: 1.7; }

/* ============================================================
   MOTION — load + reveal
   ============================================================ */
html.js [data-load] { opacity: 0; transform: translateY(20px); animation: loadIn 0.95s cubic-bezier(0.2, 0.8, 0.2, 1) forwards; animation-delay: calc(var(--d, 0) * 0.11s + 0.12s); }
@keyframes loadIn { to { opacity: 1; transform: none; } }

html.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 0.85s ease, transform 0.85s cubic-bezier(0.2, 0.8, 0.2, 1); transition-delay: calc(var(--i, 0) * 0.08s); }
html.js [data-reveal].is-in { opacity: 1; transform: none; }

.phone.tilt { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 24px; padding-bottom: 40px; min-height: auto; }
  .hero-stage { min-height: 560px; margin-top: 10px; }
  .split, .split.reverse .split-copy { grid-template-columns: 1fr; order: 0; }
  .split.reverse .split-media { order: 2; }
  .qgrid, .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  .nav { display: none; }
  .section { padding: 64px 0; }
  .topbar { flex-wrap: wrap; }
  .spectrum-stops { grid-template-columns: 1fr 1fr; gap: 16px; }
  .whatif-chips { grid-template-columns: 1fr; }
  .footer-grid { flex-direction: column; align-items: flex-start; }
  .finale-inner { padding: 54px 22px; }
  .chip-fire { right: 0; top: 4%; }
  .chip-cash { left: 0; bottom: 4%; }
}
@media (max-width: 420px) {
  .phone { width: 270px; height: 552px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  [data-load], [data-reveal] { opacity: 1 !important; transform: none !important; }
  .scr-bar i, .ind-track i { width: var(--w) !important; }
  .bloom { animation: none !important; }
}
