/* ==========================================================================
   Luminarie Digital — homepage styles
   Layout modelled on cluma.design; palette is Luminarie's own ("dusk to dawn").
   ========================================================================== */

:root {
  /* Colour */
  --ink-900: #0b1630;
  --ink-800: #14213d;
  --ink-700: #1f2f52;
  --amber-500: #f5b841;
  --amber-600: #dd981a;
  --amber-100: #fbefd3;
  --dawn: #e9a97c;
  --paper: #f7f6f3;
  --white: #ffffff;
  --sky-100: #e6edf6;
  --sand-100: #efe9df;
  --text: #1b2231;
  --muted: #5a6373;
  --line: rgba(20, 33, 61, 0.12);
  --line-strong: rgba(20, 33, 61, 0.22);
  --on-dark-muted: rgba(255, 255, 255, 0.78);

  /* Type */
  --font-display: "Josefin Sans", "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --font-body: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Shape and space */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --pill: 999px;
  --container: 1200px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 128px);
  --nav-h: 72px;

  --shadow-card: 0 1px 2px rgba(11, 22, 48, 0.06), 0 12px 32px rgba(11, 22, 48, 0.08);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.12; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--amber-500);
  color: var(--ink-900);
  border-radius: var(--pill);
  font-weight: 500;
}
.skip-link:focus { top: 12px; }

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

/* ---------- Type scale ---------- */
.display {
  font-family: var(--font-display);
  text-wrap: balance;
  font-size: clamp(2.5rem, 6.4vw, 4.9rem);
  letter-spacing: -0.01em;
  line-height: 1.08;
}
.h2 {
  font-family: var(--font-display);
  text-wrap: balance;
  font-size: clamp(2rem, 4.4vw, 3.35rem);
  letter-spacing: -0.01em;
  line-height: 1.1;
  color: var(--ink-800);
}
.h3 {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  color: var(--ink-800);
  line-height: 1.2;
}
.accent {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 1.1em;
  letter-spacing: 0;
}
.lede {
  font-size: clamp(1.1rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 62ch;
}
.eyebrow {
  display: block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-800);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: clamp(28px, 4vw, 44px);
}

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section); }
.section--tight { padding-block: clamp(56px, 7vw, 96px); }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head .lede { margin-top: 20px; }
.section-head--center .lede { margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 24px;
  border-radius: var(--pill);
  font-weight: 500;
  font-size: 1rem;
  line-height: 1;
  white-space: nowrap;
  transition: background-color 180ms var(--ease), color 180ms var(--ease), transform 180ms var(--ease), border-color 180ms var(--ease);
  touch-action: manipulation;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--amber-500); color: var(--ink-900); }
.btn-primary:hover { background: var(--amber-600); }
.btn-ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.45); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: rgba(255, 255, 255, 0.8); }
.btn-outline { color: var(--ink-800); border: 1px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--ink-800); }
.btn-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: var(--ink-800);
  min-height: 44px;
}
.btn-link svg { width: 16px; height: 16px; transition: transform 180ms var(--ease); }
.btn-link:hover svg { transform: translate(2px, -2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px 22px; align-items: center; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--ink-900);
  color: var(--white);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.03em;
  line-height: 1;
  min-height: 44px;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--pill);
  font-size: 0.95rem;
  color: var(--on-dark-muted);
  transition: color 160ms var(--ease), background-color 160ms var(--ease);
}
.nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.08); }

.header-actions { display: flex; align-items: center; gap: 18px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border-radius: var(--pill);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-menu { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

@media (max-width: 1150px) {
  .nav a { padding: 0 10px; font-size: 0.9rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; order: 3; margin-left: -6px; }
  .header-actions { order: 2; margin-left: auto; }
  .header-actions .btn { display: none; }
  .nav {
    position: absolute;
    left: 0; right: 0; top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 8px var(--gutter) 20px;
    background: var(--ink-900);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
  }
  .nav[hidden] { display: none; }
  .nav a { min-height: 48px; font-size: 1.05rem; }
  .nav .nav-cta { margin-top: 10px; background: var(--amber-500); color: var(--ink-900); justify-content: center; font-weight: 500; }
  .nav .nav-cta:hover { background: var(--amber-600); color: var(--ink-900); }
}
@media (min-width: 961px) {
  .nav .nav-cta { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  color: var(--white);
  background: linear-gradient(180deg, #0b1630 0%, #182a55 38%, #5f4670 70%, #d8987a 100%);
  overflow: hidden;
  padding-top: clamp(64px, 9vw, 120px);
}
.hero::after {
  /* dawn glow */
  content: "";
  position: absolute;
  left: 50%; bottom: -40%;
  width: 140vw; height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245, 184, 65, 0.55) 0%, rgba(245, 184, 65, 0) 60%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-copy { max-width: 880px; margin-inline: auto; text-align: center; }
.hero-eyebrow {
  display: inline-block;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--amber-500);
  margin-bottom: 26px;
}
.hero .lede {
  color: var(--on-dark-muted);
  margin: 28px auto 0;
  max-width: 66ch;
}
.hero .btn-row { justify-content: center; margin-top: 36px; }

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 28px;
  margin-top: 44px;
  font-size: 0.95rem;
  color: var(--on-dark-muted);
}
.proof-strip li { display: flex; align-items: flex-start; gap: 10px; text-align: left; }
@media (max-width: 700px) { .proof-strip { grid-template-columns: 1fr; max-width: 420px; margin-inline: auto; } }
.proof-strip svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: var(--amber-500); }

/* Hero visuals: conversation + tracker */
.hero-visual {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: end;
  max-width: 1000px;
  margin: clamp(56px, 8vw, 88px) auto 0;
}
.mock {
  background: var(--white);
  color: var(--text);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  box-shadow: 0 -8px 40px rgba(11, 22, 48, 0.25);
  overflow: hidden;
}
.mock-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted);
}
.mock-bar strong { color: var(--ink-800); font-weight: 500; }
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--pill);
  font-size: 0.78rem;
  font-weight: 500;
  background: var(--sky-100);
  color: var(--ink-800);
}
.tag--amber { background: var(--amber-100); color: #7a5200; }
.tag--live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #1f9d55; }

.thread { padding: 20px 22px 26px; display: grid; gap: 12px; }
.msg { display: grid; gap: 4px; max-width: 78%; }
.msg p {
  padding: 11px 15px;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}
.msg time { font-size: 0.75rem; color: var(--muted); padding-inline: 6px; }
.msg--in { justify-self: start; }
.msg--in p { background: var(--sand-100); border-bottom-left-radius: 6px; }
.msg--out { justify-self: end; text-align: right; }
.msg--out p { background: var(--ink-800); color: var(--white); text-align: left; border-bottom-right-radius: 6px; }
.handover {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px dashed var(--amber-600);
  border-radius: var(--pill);
  background: var(--amber-100);
  color: #7a5200;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 4px;
}
.handover svg { width: 15px; height: 15px; }

.tracker { padding: 20px 22px 26px; }
.tracker-source { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.tracker-source strong { display: block; color: var(--ink-800); font-weight: 500; font-size: 1rem; }
.funnel { display: grid; gap: 8px; }
.funnel li { display: grid; grid-template-columns: 92px 1fr 40px; align-items: center; gap: 12px; font-size: 0.85rem; }
.funnel .bar { height: 10px; border-radius: var(--pill); background: var(--sky-100); overflow: hidden; }
.funnel .bar i { display: block; height: 100%; background: var(--ink-800); border-radius: var(--pill); }
.funnel .bar i.is-won { background: var(--amber-500); }
.funnel .n { font-variant-numeric: tabular-nums; text-align: right; font-weight: 500; color: var(--ink-800); }
.tracker-total {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.tracker-total span { font-size: 0.82rem; color: var(--muted); }
.tracker-total strong {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.9rem;
  color: var(--ink-800);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 760px) {
  .hero-visual { grid-template-columns: 1fr; }
  .mock--tracker { display: none; }
}

/* ---------- Problem cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  padding: clamp(26px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-card);
}
.card--sky { background: var(--sky-100); box-shadow: none; }
.card--sand { background: var(--sand-100); box-shadow: none; }
.card--amber { background: var(--amber-100); box-shadow: none; }
.card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: var(--white);
  color: var(--ink-800);
  margin-bottom: 22px;
}
.card .icon svg { width: 22px; height: 22px; }
.card .h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 1rem; }

@media (max-width: 900px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .card-grid { grid-template-columns: 1fr; } }

/* ---------- The system ---------- */
.system { background: var(--white); }
.flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 0 0 clamp(44px, 6vw, 72px);
  counter-reset: flow;
}
.flow li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-800);
}
.flow li span {
  padding: 10px 16px;
  border-radius: var(--pill);
  border: 1px solid var(--line-strong);
  background: var(--paper);
}
.flow li:first-child span, .flow li:last-child span { background: var(--ink-800); color: var(--white); border-color: var(--ink-800); }
.flow li svg { width: 16px; height: 16px; color: var(--muted); }
.flow li:last-child svg { display: none; }

.columns { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; }
.columns > li { padding-top: 22px; border-top: 2px solid var(--ink-800); }
.columns .h3 { margin-bottom: 10px; }
.columns p { color: var(--muted); font-size: 1rem; }
@media (max-width: 960px) { .columns { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) {
  .columns { grid-template-columns: 1fr; }
  .flow { flex-direction: column; align-items: flex-start; }
  .flow li svg { transform: rotate(90deg); }
}

/* ---------- How it works: steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.step { position: relative; padding: 28px 26px 30px; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow-card); }
.step-num {
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 0.9;
  color: var(--ink-800);
  letter-spacing: -0.03em;
  margin-bottom: 26px;
}
.step .h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 1rem; }
.step-week { display: inline-block; margin-bottom: 14px; font-size: 0.8rem; font-weight: 500; color: var(--muted); }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.callout {
  margin-top: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--ink-800);
  color: var(--white);
}
.callout .h3 { color: var(--white); margin-bottom: 8px; }
.callout p { color: var(--on-dark-muted); max-width: 60ch; }
@media (max-width: 720px) { .callout { grid-template-columns: 1fr; } }

/* ---------- Proof ---------- */
.proof { background: var(--white); }
.proof-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 32px; align-items: stretch; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.metric { padding: 24px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); }
.metric strong { display: block; font-family: var(--font-display); font-size: 1.15rem; color: var(--ink-800); margin-bottom: 6px; }
.metric span { font-size: 0.92rem; color: var(--muted); }

.case {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--sky-100);
}
.case .tag { align-self: flex-start; margin-bottom: 22px; }
.case-sub { color: var(--muted); margin-top: 6px; }
.case-figures {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 26px 0 22px;
  padding-block: 22px;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}
.case-figures .fig { display: grid; gap: 6px; }
.case-figures .fig b { font-family: var(--font-serif); font-weight: 400; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--ink-800); font-variant-numeric: tabular-nums; }
.case-figures .fig span { font-size: 0.9rem; color: var(--muted); line-height: 1.4; }
.case-list { display: grid; gap: 10px; flex: 1; }
.case-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.98rem; color: var(--ink-700); }
.case-list svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 3px; color: #1f7a3f; }
.case .btn-link { margin-top: 26px; align-self: flex-start; }
@media (max-width: 860px) { .proof-layout { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .metrics { grid-template-columns: 1fr; } .case-figures { grid-template-columns: 1fr; } }

/* ---------- Why it works (icon row) ---------- */
.features { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 28px; text-align: center; }
.feature .icon {
  width: 60px; height: 60px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink-800);
}
.feature .icon svg { width: 26px; height: 26px; }
.feature .h3 { margin-bottom: 10px; }
.feature p { color: var(--muted); font-size: 1rem; max-width: 30ch; margin-inline: auto; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .features { grid-template-columns: 1fr; } .feature p { max-width: none; } }

/* ---------- Who we work with ---------- */
.fit { background: var(--white); }
.fit-single { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 32px 64px; align-items: start; }
.fit-single .section-head { margin-bottom: 0; }
.fit-list { display: grid; gap: 4px; padding: clamp(22px, 3vw, 34px); border-radius: var(--radius-lg); background: var(--sand-100); }
.fit-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-top: 1px solid var(--line); font-size: 1.02rem; }
.fit-list li:first-child { border-top: 0; padding-top: 0; }
.fit-list li:last-child { padding-bottom: 0; }
.fit-list svg { flex: 0 0 20px; width: 20px; height: 20px; margin-top: 3px; color: #1f7a3f; }
@media (max-width: 800px) { .fit-single { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-list { max-width: 820px; margin-inline: auto; border-top: 1px solid var(--line-strong); }
.faq-list details { border-bottom: 1px solid var(--line-strong); }
.faq-list summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 20px 4px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--ink-800);
  min-height: 48px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex: 0 0 20px; width: 20px; height: 20px; transition: transform 220ms var(--ease); }
.faq-list details[open] summary svg { transform: rotate(180deg); }
.faq-list .answer { padding: 0 4px 24px; color: var(--muted); max-width: 70ch; }

/* ---------- Final CTA ---------- */
.final-cta {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(160deg, #0b1630 0%, #1c2d57 45%, #6a4a6e 80%, #c98c72 100%);
  text-align: center;
}
.final-cta::after {
  content: "";
  position: absolute;
  right: -20%; bottom: -60%;
  width: 70vw; height: 120%;
  background: radial-gradient(ellipse at center, rgba(245, 184, 65, 0.5) 0%, rgba(245, 184, 65, 0) 60%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta .h2 { color: var(--white); max-width: 18ch; margin-inline: auto; }
.final-cta .lede { color: var(--on-dark-muted); margin: 22px auto 0; }
.final-cta .btn-row { justify-content: center; margin-top: 34px; }
.final-cta .call-detail { margin-top: 22px; font-size: 0.92rem; color: var(--on-dark-muted); }
.final-cta .call-detail a { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: var(--on-dark-muted); padding-block: clamp(48px, 6vw, 80px) 32px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px 32px; }
.footer-grid .brand { color: var(--white); margin-bottom: 16px; }
.footer-about { max-width: 34ch; }
.footer-col h4 { font-family: var(--font-body); font-weight: 500; font-size: 0.95rem; color: var(--white); margin-bottom: 14px; }
.footer-col li { padding: 4px 0; }
.footer-col a { display: inline-block; min-height: 32px; line-height: 32px; transition: color 160ms var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.85rem;
}
.footer-bottom ul { display: flex; gap: 20px; flex-wrap: wrap; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Mobile sticky CTA ---------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 90;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 22, 48, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.sticky-cta .btn { width: 100%; justify-content: center; }
@media (max-width: 960px) {
  .sticky-cta { display: block; }
  body { padding-bottom: 76px; }
}

/* ---------- Hero entrance (one orchestrated moment) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > *, .hero-visual > * {
    opacity: 0;
    transform: translateY(14px);
    animation: rise 700ms var(--ease) forwards;
  }
  .hero-copy > :nth-child(1) { animation-delay: 60ms; }
  .hero-copy > :nth-child(2) { animation-delay: 140ms; }
  .hero-copy > :nth-child(3) { animation-delay: 240ms; }
  .hero-copy > :nth-child(4) { animation-delay: 320ms; }
  .hero-copy > :nth-child(5) { animation-delay: 400ms; }
  .hero-visual > :nth-child(1) { animation-delay: 520ms; }
  .hero-visual > :nth-child(2) { animation-delay: 640ms; }
  @keyframes rise { to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .btn-link svg, .faq-list summary svg { transition: none; }
}

.nowrap { white-space: nowrap; }

/* ==========================================================================
   Book page
   ========================================================================== */
.page-hero {
  background: linear-gradient(180deg, #0b1630 0%, #182a55 100%);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.page-hero .h2 { color: var(--white); }
.page-hero .lede { color: var(--on-dark-muted); margin-top: 18px; }
.page-hero .display { font-size: clamp(2.3rem, 5vw, 3.8rem); }

.book { padding-block: 0 var(--section); }
.book-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 32px 48px;
  align-items: start;
  margin-top: clamp(-40px, -4vw, -64px);
}
.book-aside { padding-top: clamp(56px, 7vw, 88px); }
.book-aside h2 { margin-bottom: 18px; }
.aside-list { display: grid; gap: 14px; }
.aside-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 1rem; }
.aside-list li strong { display: block; color: var(--ink-800); font-weight: 500; }
.aside-list svg { flex: 0 0 22px; width: 22px; height: 22px; color: var(--ink-800); margin-top: 2px; }
.aside-note { margin-top: 28px; padding: 18px 20px; border-radius: var(--radius); background: var(--amber-100); color: #5d3f00; font-size: 0.95rem; }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 3.5vw, 40px);
}
.panel-head { margin-bottom: 26px; }
.panel-head .h3 { margin-bottom: 6px; }
.panel-head p { color: var(--muted); font-size: 0.98rem; }
.progress { display: flex; gap: 8px; margin-bottom: 22px; }
.progress span { flex: 1; height: 4px; border-radius: var(--pill); background: var(--line); }
.progress span.is-done { background: var(--amber-500); }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: grid; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.92rem; font-weight: 500; color: var(--ink-800); }
.field label .req { color: #b4560f; margin-left: 2px; }
.field .hint { font-size: 0.85rem; color: var(--muted); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--paper);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  min-height: 48px;
  width: 100%;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease);
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%235a6373' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--ink-800);
  box-shadow: 0 0 0 3px rgba(245, 184, 65, 0.45);
}
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #b3261e; }
.field .error { display: none; font-size: 0.85rem; color: #b3261e; }
.field.has-error .error { display: block; }
.form-summary {
  display: none;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #fdecea;
  color: #8a1c15;
  font-size: 0.95rem;
}
.form-summary.is-visible { display: block; }
.form-summary a { text-decoration: underline; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 8px; }
.form-actions .btn[disabled] { opacity: 0.6; cursor: progress; }
.form-actions .privacy { font-size: 0.85rem; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.calendar-wrap { display: grid; gap: 18px; }
.calendar-note { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--amber-100); color: #5d3f00; font-size: 0.9rem; }
.calendar-wrap iframe { width: 100%; min-height: 720px; border: 0; border-radius: var(--radius-sm); background: var(--paper); }
.result-head { display: flex; gap: 12px; align-items: flex-start; }
.result-head svg { flex: 0 0 26px; width: 26px; height: 26px; color: #1f7a3f; margin-top: 2px; }
.result-head .h3 { margin-bottom: 4px; }
.result-head p { color: var(--muted); }


body.page-book .sticky-cta { display: none; }
@media (max-width: 960px) { body.page-book { padding-bottom: 0; } }
@media (max-width: 900px) {
  .book-layout { grid-template-columns: 1fr; margin-top: 0; }
  .book-aside { padding-top: clamp(40px, 6vw, 64px); order: 2; }
  .panel { margin-top: -40px; }
}
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Legal pages and 404
   ========================================================================== */
.page-hero--compact { padding-block: clamp(40px, 6vw, 72px) clamp(44px, 6vw, 80px); }
.page-hero--compact .display { font-size: clamp(2rem, 4.5vw, 3.4rem); }
.legal { background: var(--white); }
.legal-body { max-width: 70ch; }
.legal-body .legal-meta { font-size: 0.9rem; color: var(--muted); margin-bottom: 28px; }
.legal-body h2 { font-family: var(--font-display); font-size: 1.4rem; color: var(--ink-800); margin: 40px 0 12px; line-height: 1.2; }
.legal-body p { margin-bottom: 16px; color: var(--text); }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 16px; display: grid; gap: 6px; }
.legal-body a { color: var(--ink-800); text-decoration: underline; text-underline-offset: 3px; }
.legal-body a:hover { color: var(--amber-600); }
body.page-legal .sticky-cta { display: none; }
@media (max-width: 960px) { body.page-legal { padding-bottom: 0; } }

.notfound {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: linear-gradient(180deg, #0b1630 0%, #182a55 60%, #5f4670 100%);
  padding-block: clamp(80px, 12vw, 160px);
  text-align: center;
}
.notfound::after {
  content: "";
  position: absolute;
  left: 50%; bottom: -50%;
  width: 120vw; height: 90%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(245, 184, 65, 0.4) 0%, rgba(245, 184, 65, 0) 60%);
  pointer-events: none;
}
.notfound .container { position: relative; z-index: 1; max-width: 820px; }
.notfound .display { font-size: clamp(2.4rem, 6vw, 4.4rem); }
.notfound .lede { color: var(--on-dark-muted); margin: 22px auto 0; }
.notfound .btn-row { justify-content: center; margin-top: 34px; }
.notfound-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 36px; font-size: 0.95rem; }
.notfound-links a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--on-dark-muted); text-decoration: underline; text-underline-offset: 4px; }
.notfound-links a:hover { color: var(--white); }
