/* ---------- self-hosted webfonts (latin subset only) ---------- */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/bricolage-grotesque-vf.woff2') format('woff2');
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/fonts/manrope-vf.woff2') format('woff2');
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 500;
  font-display: swap;
  src: url('/fonts/fraunces-italic-500-italic.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/plexmono-400-normal.woff2') format('woff2');
}

/* ============================================================
   Wake the Flame — design system
   Night-black + white, with one loud idea: fire. A vivid
   red-orange-gold gradient is used for action and emphasis
   only; everything else stays quiet so the flame reads.
   Bricolage Grotesque (bold, characterful headlines) +
   Manrope (clean body) + Fraunces italic (the human, emphasised word).
   ============================================================ */

:root {
  --night: #0c0a09;
  --night-2: #161210;
  --night-3: #221b17;
  --night-line: rgba(255, 255, 255, 0.12);

  --bg: #ffffff;
  --bg-alt: #f4f4f6;
  --surface: #ffffff;
  --surface-2: #f4f4f6;
  --line: rgba(20, 16, 12, 0.11);
  --line-strong: rgba(20, 16, 12, 0.26);

  --ink: #15110d;
  --ink-soft: #453e37;
  --muted: #6a625a;

  --fire: #ff5a1f;
  --fire-rgb: 255, 90, 31;
  --fire-deep: #cf3a03;     /* text/links on white */
  --amber: #ffa41b;
  --gold: #ffcf4d;
  --on-fire: #1a0b03;       /* text on the gradient */
  --grad: linear-gradient(115deg, #ff3d1a 0%, #ff7a1a 48%, #ffb61f 100%);
  --grad-text: linear-gradient(100deg, #ff6a2b 0%, #ffa41b 55%, #ffd45c 100%);

  --ok-bg: #e6f4ea;
  --ok-ink: #1e6b3a;
  --err-bg: #fde9e4;
  --err-ink: #a02a0c;

  --shadow-soft: 0 1px 2px rgba(20, 12, 6, 0.05), 0 12px 32px -18px rgba(20, 12, 6, 0.22);
  --shadow-lift: 0 2px 4px rgba(20, 12, 6, 0.06), 0 28px 56px -24px rgba(var(--fire-rgb), 0.38);
  --shadow-glow: 0 10px 30px -8px rgba(var(--fire-rgb), 0.55);

  --radius: 22px;
  --radius-sm: 12px;
  --radius-pill: 999px;

  --font-display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.028em;
  margin: 0 0 0.45em;
  color: var(--ink);
  text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 1.9rem + 3.6vw, 4.6rem); font-weight: 780; }
h2 { font-size: clamp(1.9rem, 1.4rem + 2vw, 3rem); margin-top: 1.6em; }
h3 { font-size: 1.28rem; font-weight: 680; letter-spacing: -0.018em; line-height: 1.2; }
p { margin: 0 0 1em; }
em, .serif { font-family: var(--font-serif); font-style: italic; font-weight: 500; letter-spacing: -0.01em; }
a { color: var(--fire-deep); text-decoration-color: rgba(var(--fire-rgb), 0.45); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(var(--fire-rgb), 0.3); }

.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(740px, 100% - 40px); margin-inline: auto; }
.section { padding: 96px 0; }
.center { text-align: center; }
.muted { color: var(--muted); }
.fine { font-size: 0.85rem; color: var(--muted); }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; top: 10px; left: 10px; background: #fff; color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm); z-index: 20; box-shadow: var(--shadow-lift); }
.hp { position: absolute; left: -9999px; }
.eyebrow {
  display: inline-block; font: 700 0.78rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--fire-deep); margin-bottom: 14px;
}
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--gold); }
.grad-text {
  background: var(--grad-text); -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
}

/* ---------- header / footer ---------- */
.site-header {
  background: rgba(12, 10, 9, 0.97);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  position: sticky; top: 0; z-index: 10;
}
.site-header::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad); opacity: 0.85; }
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; min-height: 68px; flex-wrap: wrap; padding-block: 10px; }
.brand {
  font: 780 1.28rem var(--font-display); color: #fff; text-decoration: none;
  display: flex; align-items: center; gap: 10px; letter-spacing: -0.03em;
}
.brand-mark { display: block; width: auto; height: 34px; flex: none; filter: drop-shadow(0 0 12px rgba(var(--fire-rgb), 0.55)); }
.brand-text b { font-weight: 780; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.nav { display: flex; align-items: center; gap: 6px 22px; flex-wrap: wrap; }
.nav a {
  color: rgba(255, 255, 255, 0.78); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 6px 1px; transition: color 0.15s;
}
.nav a:hover, .nav a[aria-current='page'] { color: #fff; }
.nav a[aria-current='page'] { box-shadow: 0 2px 0 var(--amber); }
.nav a.nav-cta {
  background: var(--grad); color: var(--on-fire); padding: 9px 18px; border-radius: var(--radius-pill);
  font-weight: 750; box-shadow: none; transition: transform 0.15s, box-shadow 0.15s;
}
.nav a.nav-cta:hover { color: var(--on-fire); transform: translateY(-1px); box-shadow: var(--shadow-glow); }

.site-footer { background: var(--night); color: rgba(255, 255, 255, 0.72); padding: 72px 0 40px; font-size: 0.95rem; position: relative; overflow: clip; }
.site-footer::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: var(--grad); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 36px; }
.foot-grid a { display: block; color: rgba(255, 255, 255, 0.72); text-decoration: none; padding: 4px 0; }
.foot-grid a:hover, .foot-grid .linkbtn:hover { color: var(--gold); }
.foot-grid .linkbtn { display: block; font: inherit; color: rgba(255, 255, 255, 0.72); background: none; border: 0; padding: 4px 0; text-align: start; cursor: pointer; }
.foot-brand { display: flex; align-items: center; gap: 12px; font: 780 1.3rem var(--font-display); color: #fff; letter-spacing: -0.03em; margin-bottom: 10px; }
.foot-brand img { height: 42px; width: auto; }
.site-footer .muted { color: rgba(255, 255, 255, 0.6); max-width: 34ch; }
.site-footer .fine { color: rgba(255, 255, 255, 0.5); margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--night-line); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  cursor: pointer; text-decoration: none; text-align: center;
  font: 750 1rem var(--font-body); padding: 14px 28px; min-height: 52px;
  background: var(--grad); color: var(--on-fire);
  border: 0; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-glow);
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.btn:hover { transform: translateY(-2px); filter: saturate(1.1) brightness(1.04); box-shadow: 0 16px 38px -8px rgba(var(--fire-rgb), 0.7); }
.btn:active { transform: translateY(0); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); filter: none; }
.btn.ghost:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 1.5px var(--ink); }
.on-dark .btn.ghost, .btn.ghost.on-dark { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.on-dark .btn.ghost:hover, .btn.ghost.on-dark:hover { background: #fff; color: var(--night); box-shadow: inset 0 0 0 1.5px #fff; }
.btn.big { padding: 17px 34px; min-height: 60px; font-size: 1.08rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; transform: none; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.text-link { font-weight: 700; }

/* ---------- hero (home) ---------- */
.hero {
  position: relative; overflow: clip; color: #fff; text-align: center;
  padding: 72px 0 0; min-height: min(880px, calc(100svh - 70px));
  display: flex; flex-direction: column; justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 50% 106%, rgba(255, 196, 60, 0.42), transparent 70%),
    radial-gradient(ellipse 95% 58% at 50% 110%, rgba(255, 74, 20, 0.5), transparent 72%),
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(255, 90, 31, 0.1), transparent 70%),
    var(--night);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0 0; height: 2px; background: var(--grad); z-index: 2; }
.hero .wrap { position: relative; z-index: 2; padding-bottom: 150px; }
.hero h1 { color: #fff; max-width: 15ch; margin-inline: auto; font-size: clamp(2.8rem, 1.6rem + 5.6vw, 6rem); line-height: 0.98; letter-spacing: -0.035em; }
.hero h1 em { display: inline-block; padding: 0 0.06em 0.16em 0; margin-bottom: -0.16em; font-weight: 500; letter-spacing: -0.02em; }
.hero-mark {
  position: relative; display: inline-block; margin-bottom: 26px;
}
.hero-mark::before {
  content: ''; position: absolute; inset: -50% -120% -30%;
  background: radial-gradient(closest-side, rgba(255, 130, 30, 0.55), transparent 72%);
  animation: glow 3.4s ease-in-out infinite;
}
.hero-mark img { position: relative; display: block; height: 104px; width: auto; transform-origin: 50% 100%; animation: flicker 3.1s ease-in-out infinite; }
.hero .lede { color: rgba(255, 255, 255, 0.82); max-width: 40rem; margin: 24px auto 0; font-size: clamp(1.1rem, 1rem + 0.5vw, 1.32rem); }
.hero .lede strong { color: #fff; }
.hero .cta-row { justify-content: center; margin-top: 36px; }
.hero .fine { color: rgba(255, 255, 255, 0.55); }
.pill {
  display: inline-flex; align-items: center; gap: 9px; font: 650 0.86rem var(--font-body);
  color: rgba(255, 255, 255, 0.86); padding: 8px 16px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.07); border: 1px solid var(--night-line); margin-bottom: 26px;
}
.pill::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px 2px rgba(255, 164, 27, 0.8); }

.embers { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.embers i {
  position: absolute; bottom: -20px; left: 50%; width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px 3px rgba(255, 150, 30, 0.75);
  opacity: 0; animation: rise 9s linear infinite;
}
.embers i:nth-child(1)  { left: 6%;  animation-duration: 8s;  animation-delay: 0s;   width: 4px; height: 4px; }
.embers i:nth-child(2)  { left: 13%; animation-duration: 11s; animation-delay: 2.4s; }
.embers i:nth-child(3)  { left: 21%; animation-duration: 9s;  animation-delay: 5s;   width: 3px; height: 3px; }
.embers i:nth-child(4)  { left: 29%; animation-duration: 12s; animation-delay: 1s;   width: 6px; height: 6px; }
.embers i:nth-child(5)  { left: 37%; animation-duration: 8.5s; animation-delay: 3.6s; width: 3px; height: 3px; }
.embers i:nth-child(6)  { left: 44%; animation-duration: 10s; animation-delay: 6.5s; }
.embers i:nth-child(7)  { left: 52%; animation-duration: 13s; animation-delay: 0.6s; width: 6px; height: 6px; }
.embers i:nth-child(8)  { left: 59%; animation-duration: 9.5s; animation-delay: 4.2s; width: 4px; height: 4px; }
.embers i:nth-child(9)  { left: 66%; animation-duration: 11s; animation-delay: 7.4s; width: 3px; height: 3px; }
.embers i:nth-child(10) { left: 73%; animation-duration: 8s;  animation-delay: 2s;   }
.embers i:nth-child(11) { left: 80%; animation-duration: 12s; animation-delay: 5.6s; width: 6px; height: 6px; }
.embers i:nth-child(12) { left: 87%; animation-duration: 9s;  animation-delay: 1.6s; width: 4px; height: 4px; }
.embers i:nth-child(13) { left: 93%; animation-duration: 10.5s; animation-delay: 3.2s; width: 3px; height: 3px; }
.embers i:nth-child(14) { left: 48%; animation-duration: 14s; animation-delay: 8s; width: 5px; height: 5px; }
@keyframes rise {
  0%   { transform: translate3d(0, 0, 0) scale(1); opacity: 0; }
  10%  { opacity: 0.95; }
  60%  { opacity: 0.6; }
  100% { transform: translate3d(28px, -78svh, 0) scale(0.3); opacity: 0; }
}
@keyframes flicker {
  0%, 100% { transform: scale(1) rotate(0deg); }
  25% { transform: scale(1.035, 1.06) rotate(-1.2deg); }
  55% { transform: scale(0.985, 0.97) rotate(1deg); }
  80% { transform: scale(1.02, 1.045) rotate(-0.5deg); }
}
@keyframes glow { 0%, 100% { opacity: 0.75; transform: scale(1); } 50% { opacity: 1; transform: scale(1.12); } }

/* ---------- home sections ---------- */
.kicker { display: inline-block; font: 700 0.8rem var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--fire-deep); margin-bottom: 14px; }
.kicker.small { margin-bottom: 10px; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--ink-soft); }
.lede.big { font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem); }

.sound { text-align: center; }
.sound h2 { margin-top: 0; max-width: 20ch; margin-inline: auto; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 34px auto 40px; max-width: 860px; padding: 0; list-style: none; }
.chips li {
  font: 650 1rem var(--font-body); padding: 11px 20px; border-radius: var(--radius-pill);
  background: var(--bg-alt); color: var(--ink-soft); border: 1px solid var(--line);
}
.sound .turn { font: 700 clamp(1.4rem, 1.1rem + 1.6vw, 2.2rem)/1.2 var(--font-display); letter-spacing: -0.025em; max-width: 26ch; margin: 0 auto 0.6em; }
.sound .lede { max-width: 42rem; margin-inline: auto; }

.truths { background: var(--night); color: #fff; position: relative; overflow: clip; padding: 96px 0; }
.truths::before {
  content: ''; position: absolute; inset: auto -10% -55% -10%; height: 90%;
  background: radial-gradient(ellipse 50% 60% at 50% 100%, rgba(255, 74, 20, 0.28), transparent 70%);
}
.truths .wrap { position: relative; }
.truths h2 { color: #fff; margin-top: 0; max-width: 18ch; }
.truth-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin-top: 44px; }
.truth {
  background: rgba(255, 255, 255, 0.045); border: 1px solid var(--night-line); border-radius: var(--radius);
  padding: 32px 28px 30px; backdrop-filter: blur(4px);
}
.truth .num { font: 780 3.4rem/1 var(--font-display); letter-spacing: -0.04em; display: block; margin-bottom: 18px; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.truth h3 { color: #fff; font-size: 1.5rem; }
.truth p { color: rgba(255, 255, 255, 0.72); margin: 0; }

.now { background: var(--grad); color: var(--on-fire); padding: 96px 0; position: relative; overflow: clip; }
.now::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse 60% 80% at 85% 0%, rgba(255, 255, 255, 0.28), transparent 60%); }
.now .wrap { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.now h2 { color: var(--on-fire); margin-top: 0; }
.now .eyebrow { color: var(--on-fire); opacity: 0.75; }
.now p { color: rgba(26, 11, 3, 0.86); font-size: 1.15rem; }
.now p.fine { color: rgba(26, 11, 3, 0.7); font-size: 0.85rem; }
.step-box {
  background: var(--night); color: #fff; border-radius: 28px; padding: 34px 32px 30px;
  box-shadow: 0 30px 70px -30px rgba(40, 8, 0, 0.7);
}
.step-box label { display: block; font: 700 1.05rem var(--font-body); margin-bottom: 12px; color: #fff; }
.step-box input[type='text'] {
  background: rgba(255, 255, 255, 0.07); color: #fff; border: 1.5px solid rgba(255, 255, 255, 0.22);
  font-size: 1.05rem; padding: 15px 16px;
}
.step-box input[type='text']::placeholder { color: rgba(255, 255, 255, 0.45); }
.step-box input[type='text']:focus { border-color: var(--amber); }
.step-box .btn { width: 100%; margin-top: 16px; }
.timer { display: none; text-align: center; }
.step-box.running .timer, .step-box.done .timer { display: block; }
.step-box.running .step-form, .step-box.done .step-form { display: none; }
.timer .doing { font: 600 1.05rem var(--font-body); color: rgba(255, 255, 255, 0.72); margin: 0 0 4px; overflow-wrap: anywhere; }
.timer .clock { font: 780 clamp(4.4rem, 3rem + 6vw, 6.6rem)/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -0.04em; margin: 4px 0 18px; }
.timer .track { height: 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.timer .track i { display: block; height: 100%; width: calc(var(--p, 0) * 1%); background: var(--grad); border-radius: var(--radius-pill); transition: width 1s linear; }
.timer .msg-line { margin: 20px 0 0; font: 650 1.1rem var(--font-body); color: #fff; }
.timer .done-only { display: none; }
.step-box.done .done-only { display: block; }
.step-box.done .run-only { display: none; }
.step-box.done .clock { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.timer .btn { margin-top: 18px; }
.timer .link-btn { background: none; border: 0; color: rgba(255, 255, 255, 0.6); font: 600 0.9rem var(--font-body); text-decoration: underline; cursor: pointer; margin-top: 16px; padding: 6px; }
.timer .link-btn:hover { color: #fff; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; margin-top: 44px; counter-reset: s; }
.step { padding: 6px 32px 6px 0; position: relative; }
.step + .step { padding-left: 32px; border-left: 1px solid var(--line); }
.step .n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad); color: var(--on-fire); font: 780 1.2rem var(--font-display); margin-bottom: 18px;
  box-shadow: var(--shadow-glow);
}
.step p { color: var(--ink-soft); margin: 0; }
.section-head { max-width: 40rem; }
.section-head h2 { margin-top: 0; }

.band { background: var(--bg-alt); padding: 96px 0; }
.band h2:first-child { margin-top: 0; }
.split { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.split h2 { margin-top: 0; }

/* ---------- cards ---------- */
.cards { display: grid; gap: 22px; margin-block: 28px; }
.cards.three { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.card, .pb-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-soft); position: relative;
}
.card.plain { box-shadow: none; border: none; background: transparent; padding: 22px 0 0; border-radius: 0; border-top: 3px solid var(--fire); }
.card.plain h3 { margin-top: 0; }
.card.featured {
  background: var(--night); color: #fff; border: 0; box-shadow: var(--shadow-lift);
  background-image: radial-gradient(ellipse 90% 40% at 50% 0%, rgba(255, 90, 31, 0.3), transparent 70%);
}
.card.featured h3, .card.featured .price { color: #fff; }
.card.featured .price span, .card.featured .alt { color: rgba(255, 255, 255, 0.65); }
.card.featured .ticks li { color: rgba(255, 255, 255, 0.86); }
.card.featured .btn.ghost { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.4); }
.card.featured .btn.ghost:hover { background: #fff; color: var(--night); }
.card .flag {
  position: absolute; top: -14px; left: 26px; background: var(--grad); color: var(--on-fire);
  font: 750 0.74rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; padding: 6px 14px;
  border-radius: var(--radius-pill); margin: 0; box-shadow: var(--shadow-glow);
}
.price { font: 780 2.8rem/1 var(--font-display); letter-spacing: -0.04em; margin: 0.25em 0 0; }
.price span { font: 600 0.95rem var(--font-body); letter-spacing: 0; color: var(--muted); }
.alt { color: var(--muted); font-size: 0.9rem; margin: 8px 0; }
.ribbon {
  background: #fff4e0; border: 1px solid #ffd89a; border-left: 4px solid var(--amber);
  padding: 14px 18px; border-radius: var(--radius-sm); font-weight: 600; color: #5a3600;
}
.ticks { list-style: none; padding: 0; margin: 18px 0 24px; }
.ticks li { padding-left: 30px; position: relative; margin-bottom: 10px; }
.ticks li::before {
  content: ''; position: absolute; left: 0; top: 0.42em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad);
}
.ticks li::after {
  content: ''; position: absolute; left: 5px; top: 0.62em; width: 4px; height: 8px;
  border: solid var(--on-fire); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.card form { margin-top: 12px; }
.card .btn { width: 100%; }
.pb-card { display: block; color: var(--ink); text-decoration: none; transition: transform 0.2s ease, box-shadow 0.2s ease; overflow: clip; }
.pb-card::before {
  content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--grad);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s ease;
}
.pb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.pb-card:hover::before { transform: scaleX(1); }
.pb-card h3 { margin-top: 4px; }
.pb-card p { color: var(--ink-soft); font-size: 0.97rem; margin: 0; }
.pb-card.locked { background: var(--bg-alt); }
.pb-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; font-size: 0.85rem; gap: 8px; }
.badge { font: 750 0.72rem var(--font-body); letter-spacing: 0.04em; padding: 5px 12px; border-radius: var(--radius-pill); white-space: nowrap; text-transform: uppercase; }
.badge.free { background: #e6f4ea; color: #1e6b3a; }
.badge.starter { background: #fff0d6; color: #8a4a00; }
.badge.club { background: var(--night); color: var(--gold); }
.fmt { font: 700 0.84rem/1.35 var(--font-body); color: var(--fire-deep); }
.cost { font: 780 1.1rem var(--font-display); letter-spacing: -0.02em; white-space: nowrap; color: var(--ink); }
.pb-top { align-items: flex-start; }

/* ---------- forms ---------- */
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin: 22px 0 8px; }
.inline-form input[type='email'] { flex: 1 1 260px; max-width: 400px; }
input[type='email'], input[type='password'], input[type='text'], textarea {
  font: 1rem var(--font-body); padding: 14px 18px; min-height: 52px; width: 100%;
  background: #fff; color: var(--ink); border: 1.5px solid var(--line-strong); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.inline-form input[type='email'] { border-radius: var(--radius-pill); padding-inline: 24px; }
input:focus, textarea:focus { border-color: var(--fire); box-shadow: 0 0 0 4px rgba(var(--fire-rgb), 0.16); outline: none; }
.stack { display: grid; gap: 18px; }
.stack label { display: grid; gap: 7px; font-weight: 700; }
.auth { max-width: 460px; padding: 72px 0; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--amber); border-radius: var(--radius-sm); padding: 16px 20px; margin: 22px 0; }
.callout.ok { background: var(--ok-bg); border-left-color: var(--ok-ink); color: var(--ok-ink); }
.callout.error { background: var(--err-bg); border-left-color: var(--err-ink); color: var(--err-ink); }
.gate { background: var(--bg-alt); border-radius: var(--radius); padding: 40px 32px; margin: 26px 0; text-align: center; border: 1px solid var(--line); }
details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; padding: 4px 22px; margin-bottom: 12px; transition: box-shadow 0.2s; }
details[open] { box-shadow: var(--shadow-soft); }
summary { cursor: pointer; font: 700 1.05rem var(--font-body); padding: 16px 28px 16px 0; list-style: none; position: relative; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; position: absolute; right: 0; top: 50%; transform: translateY(-50%); font: 500 1.7rem/1 var(--font-body); color: var(--fire-deep); transition: transform 0.2s; }
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { margin: 0 0 18px; color: var(--ink-soft); }

/* ---------- final call ---------- */
.finale {
  position: relative; overflow: clip; text-align: center; color: #fff; padding: 110px 0 100px;
  background:
    radial-gradient(ellipse 70% 60% at 50% 110%, rgba(255, 74, 20, 0.6), transparent 72%),
    radial-gradient(ellipse 40% 34% at 50% 108%, rgba(255, 196, 60, 0.5), transparent 70%),
    var(--night);
}
.finale .wrap { position: relative; z-index: 2; }
.finale h2 { color: #fff; margin: 0 auto 0.4em; max-width: 16ch; font-size: clamp(2.3rem, 1.4rem + 4vw, 4.6rem); line-height: 1; }
.finale .lede { color: rgba(255, 255, 255, 0.8); max-width: 36rem; margin-inline: auto; }
.finale .fine { color: rgba(255, 255, 255, 0.55); }
.finale .inline-form input[type='email'] { background: rgba(255, 255, 255, 0.09); color: #fff; border-color: rgba(255, 255, 255, 0.28); }
.finale .inline-form input[type='email']::placeholder { color: rgba(255, 255, 255, 0.5); }
.finale .callout.ok { color: var(--ok-ink); }

/* ---------- prose + prompts ---------- */
.prose { padding-block: 48px 72px; }
.prose h1 { font-size: clamp(2.2rem, 1.6rem + 2.6vw, 3.6rem); }
.prose h2 { margin-top: 1.9em; font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.2rem); }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--fire); font-weight: 700; }
code { font: 0.9em var(--font-mono); background: var(--bg-alt); border: 1px solid var(--line); padding: 1px 6px; border-radius: 6px; }
.prompt {
  position: relative; background: var(--night); color: #f6ece0; border-radius: var(--radius-sm); margin: 22px 0;
  border-left: 4px solid var(--fire);
}
.prompt pre { margin: 0; padding: 22px 20px 20px; white-space: pre-wrap; word-wrap: break-word; font: 0.9rem/1.7 var(--font-mono); }
.copy {
  position: absolute; top: 10px; right: 10px; font: 750 0.72rem var(--font-body); letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--grad); color: var(--on-fire); border: 0; border-radius: var(--radius-pill); padding: 7px 14px; cursor: pointer;
}
.copy.done { background: #fff; }

/* page titles on inner pages */
.section > h1:first-child, .narrow > h1:first-child { position: relative; padding-bottom: 0.32em; margin-bottom: 0.3em; }
.section > h1:first-child::after, .narrow > h1:first-child::after {
  content: ''; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 6px; background: var(--grad);
}
.narrow:not(.prose) { padding-top: 64px; }
.center > h1:first-child::after { left: 50%; transform: translateX(-50%); }
.section.center > h1:first-child::after { left: 50%; transform: translateX(-50%); }

/* ---------- quiz ---------- */
.quiz { display: grid; gap: 22px; margin: 34px 0 72px; }
.q { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 22px 24px 16px; margin: 0; box-shadow: var(--shadow-soft); }
.q legend { font: 700 1.08rem/1.35 var(--font-body); padding: 0 6px; }
.qn {
  display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--grad);
  color: var(--on-fire); border-radius: 50%; font: 780 0.85rem var(--font-body); margin-right: 8px;
}
.opt { display: flex; gap: 12px; align-items: center; padding: 12px 14px; cursor: pointer; border-radius: var(--radius-sm); min-height: 46px; margin-bottom: 4px; border: 1.5px solid transparent; transition: background 0.15s ease, border-color 0.15s; }
.opt:hover { background: var(--bg-alt); }
.opt:has(input:checked) { background: #fff4e8; border-color: var(--fire); }
.opt input { width: 20px; height: 20px; accent-color: var(--fire); flex: none; }
.score {
  font: 780 0.5em var(--font-display); background: var(--grad); color: var(--on-fire);
  padding: 6px 16px; border-radius: var(--radius-pill); vertical-align: middle; white-space: nowrap; letter-spacing: 0;
}
.bar-row { display: grid; grid-template-columns: 1fr 2fr auto; gap: 14px; align-items: center; margin: 14px 0; font-size: 0.95rem; font-weight: 600; }
.meter { height: 12px; background: var(--bg-alt); border-radius: var(--radius-pill); overflow: hidden; }
.meter-fill { display: block; height: 100%; border-radius: var(--radius-pill); background: var(--grad); }
.meter-fill.w0 { width: 0; } .meter-fill.w1 { width: 16.6%; } .meter-fill.w2 { width: 33.3%; } .meter-fill.w3 { width: 50%; }
.meter-fill.w4 { width: 66.6%; } .meter-fill.w5 { width: 83.3%; } .meter-fill.w6 { width: 100%; }
#main > .narrow > .card.plain { border-top-color: var(--fire); }

/* ---------- account + coach ---------- */
.kv { display: grid; grid-template-columns: 9em 1fr; gap: 12px; margin: 0 0 18px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 700; }
.chat { display: grid; gap: 16px; margin: 26px 0; max-height: 60vh; overflow-y: auto; padding-right: 4px; }
.msg { border-radius: var(--radius); padding: 14px 20px; max-width: 92%; }
.msg p:last-child { margin-bottom: 0; }
.msg.user { background: var(--grad); color: var(--on-fire); justify-self: end; border-bottom-right-radius: 6px; font-weight: 600; }
.msg.assistant { background: var(--bg-alt); justify-self: start; border-bottom-left-radius: 6px; }
.msg.pending { opacity: 0.6; }
.chat-form { display: grid; gap: 12px; }
.chat-row { display: flex; align-items: center; gap: 16px; }

/* ---------- admin tables ---------- */
.kv-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.kv-table td { border-bottom: 1px solid var(--line); padding: 8px 8px; vertical-align: top; word-break: break-word; }

/* ---------- store ---------- */
.checklist { list-style: none; padding: 0; }
.checklist li { margin-bottom: 10px; }
.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-weight: 400; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--fire); flex: none; }
.wallpaper-tile { text-align: center; }
.wallpaper-tile .lede { font-family: var(--font-serif); font-style: italic; font-size: 1.1rem; }
.wallpaper-tile .btn { margin-top: 10px; }

/* ---------- scroll reveal (progressive enhancement, see app.js) ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 860px) {
  body { font-size: 16.5px; }
  .section, .band, .truths, .now { padding: 68px 0; }
  .now .wrap { grid-template-columns: 1fr; gap: 36px; }
  .foot-grid { grid-template-columns: 1fr; gap: 12px; }
  .bar-row { grid-template-columns: 1fr auto; }
  .bar-row .meter { grid-column: 1 / -1; grid-row: 2; }
  .kv { grid-template-columns: 1fr; gap: 2px 12px; }
  .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 22px; padding-top: 26px; }
  .step { padding-right: 0; }
}
@media (max-width: 600px) {
  .site-header { position: relative; }
  .site-header .bar { justify-content: center; min-height: 0; gap: 6px 16px; padding-block: 12px 14px; }
  .nav { justify-content: center; gap: 4px 16px; }
  .nav a.nav-cta { padding: 8px 16px; }
  .hero { padding-top: 48px; }
  .hero .wrap { padding-bottom: 110px; }
  .hero-mark img { height: 84px; }
  .btn { width: 100%; }
  .cta-row { flex-direction: column; }
  .inline-form .btn { width: 100%; }
  .finale { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .embers, .hero-mark::before { display: none; }
  .hero-mark img { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .pb-card, .pb-card::before, .nav a, .opt, input, textarea, .timer .track i { transition: none; }
}

@media print {
  .site-header, .site-footer, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 13pt; }
  .store-doc { padding: 0; width: 100%; }
  .prompt { background: #fff; color: #000; border: 1px solid #000; }
  .copy { display: none; }
  a { color: #000; text-decoration: none; }
  h1::after { display: none; }
}
/* consent-kit notice page table. Neutral on purpose: it borrows the page's own text color and font. */
.cc-notice-meta {
  opacity: 0.7;
  font-size: 0.9em;
}

.cc-table-wrap {
  margin: 1.2em 0;
  overflow-x: auto;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 14px;
}

.cc-table {
  inline-size: 100%;
  border-collapse: collapse;
  font-size: 0.93em;
  line-height: 1.45;
}

.cc-table th,
.cc-table td {
  padding: 11px 14px;
  text-align: start;
  vertical-align: top;
  border-block-end: 1px solid color-mix(in srgb, currentColor 14%, transparent);
}

.cc-table thead th {
  font-weight: 650;
  white-space: nowrap;
  background: color-mix(in srgb, currentColor 6%, transparent);
}

.cc-table tbody tr:last-child td {
  border-block-end: 0;
}

.cc-table code {
  font-size: 0.92em;
}

.cc-table td[data-label="Name"] {
  min-inline-size: 11ch;
  overflow-wrap: anywhere;
}

.cc-notice-open {
  font: inherit;
  padding: 0.1em 0.7em;
  color: inherit;
  background: transparent;
  border: 1.5px solid currentColor;
  border-radius: 999px;
  cursor: pointer;
}

@media (max-width: 760px) {
  .cc-table thead {
    position: absolute;
    clip-path: inset(50%);
  }

  .cc-table,
  .cc-table tbody,
  .cc-table tr,
  .cc-table td {
    display: block;
    inline-size: 100%;
  }

  .cc-table tr {
    padding: 8px 0;
    border-block-end: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  }

  .cc-table tr:last-child {
    border-block-end: 0;
  }

  .cc-table td {
    display: grid;
    grid-template-columns: 7.5em 1fr;
    gap: 10px;
    padding: 4px 14px;
    border: 0;
  }

  .cc-table td::before {
    content: attr(data-label);
    font-weight: 650;
    opacity: 0.75;
  }
}

/* cookie consent: the kit's tokens mapped onto the flame palette */
:root {
  --cc-bg: var(--surface);
  --cc-fg: var(--ink);
  --cc-muted: var(--ink-soft);
  --cc-line: var(--line-strong);
  --cc-soft: var(--bg-alt);
  --cc-accent: var(--ink);
  --cc-accent-fg: #ffffff;
  --cc-focus: var(--fire-deep);
  --cc-radius: 20px;
  --cc-btn-radius: 12px;
}
