/* ==========================================================================
   Lumen Harbor — main.css
   Warm luxury editorial design system: sand canvas, ink headlines,
   terracotta CTAs, olive accents, numbered chapters, dark ink footer.
   Mobile-first, WCAG 2.2 AA, prefers-reduced-motion respected.
   ========================================================================== */

/* ---- Fonts (self-hosted variable fonts) ---- */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-normal-400_700.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/fraunces-italic-400_700.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/inter-normal-400_700.woff2") format("woff2");
}

/* ---- Tokens ---- */
:root {
  --ink: #1F2328;
  --sand: #F6F1EA;
  --paper: #FFFBF7;
  --terracotta: #B2532F;   /* darker for AA contrast on paper/sand */
  --terracotta-dark: #9C4B32;
  --terracotta-deep: #8F442E;
  --olive: #7A8B6A;
  --olive-dark: #5C6B4F;
  --gold: #D8B26E;
  --muted: #57544F;   /* AA on paper/sand */
  --muted-ink: #A8A09A;  /* AA on ink/dark sections */
  --terracotta-ink: #DE8F70;  /* AA on ink/dark sections */
  --line: #E3DDD3;
  --white: #FFFFFF;
  --error: #B42318;
  --footer-muted: #A9A294;
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 24px 60px rgba(31, 35, 40, .10);
  --shadow-soft: 0 10px 30px rgba(31, 35, 40, .07);
  --max: 1200px;
  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
  --t-fast: 240ms;
  --t-reveal: 600ms;
  --t-float: 7s;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}
body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background-color: var(--sand);
  background-image:
    radial-gradient(1200px 600px at 85% -5%, rgba(216, 178, 110, .10), transparent 60%),
    radial-gradient(900px 500px at -10% 20%, rgba(122, 139, 106, .08), transparent 55%);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
ul[class], ol[class] { list-style: none; padding: 0; }
a { color: var(--terracotta-dark); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--terracotta-deep); }

::selection { background: var(--terracotta); color: var(--white); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -64px;
  z-index: 300;
  background: var(--ink);
  color: var(--sand);
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: top var(--t-fast) ease;
}
.skip-link:focus { top: 12px; color: var(--sand); }

/* ---- Layout primitives ---- */
.container {
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
  width: 100%;
}
.section { padding-block: clamp(64px, 9vw, 116px); }
.section-tight { padding-block: clamp(44px, 6vw, 72px); }
.section-ink {
  background: var(--ink);
  color: var(--sand);
}
.section-ink h2, .section-ink h3 { color: var(--paper); }
.section-ink a { color: var(--gold); }

/* Paper grain overlay */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .035;
  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.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
h2 { font-size: clamp(2rem, 5.5vw, 3.5rem); margin-bottom: 20px; }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); line-height: 1.25; margin-bottom: 10px; }
p + p { margin-top: 1em; }
.accent {
  font-style: italic;
  font-weight: 500;
  color: var(--terracotta-dark);
}
.eyebrow {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--terracotta);
  border-radius: 2px;
}
.lede {
  font-size: clamp(1.06rem, 2.6vw, 1.22rem);
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}
.small { font-size: 14px; color: var(--muted); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 15px 28px;
  font-family: var(--font-sans);
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform var(--t-fast) ease, background-color var(--t-fast) ease,
    color var(--t-fast) ease, border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--terracotta-deep); color: var(--white); }
.btn-primary:hover { background: var(--terracotta-deep); color: var(--white); box-shadow: 0 12px 28px rgba(169, 84, 57, .28); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--sand); }
.btn-sand { background: var(--sand); color: var(--ink); }
.btn-sand:hover { background: var(--white); color: var(--ink); }
.btn-sm { padding: 10px 20px; font-size: 14px; }
.btn[disabled] { opacity: .6; cursor: wait; transform: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* ---- Announcement bar ---- */
.announce {
  background: var(--ink);
  color: var(--sand);
  font-size: 13.5px;
  letter-spacing: 0.02em;
  position: relative;
}
.announce .container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-block: 10px;
  padding-right: 52px;
  text-align: center;
}
.announce strong { font-weight: 600; color: var(--gold); }
.announce-close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  color: var(--sand);
  font-size: 17px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}
.announce-close:hover { background: rgba(246, 241, 234, .14); }

/* ---- Header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255, 251, 247, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t-fast) ease;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(31, 35, 40, .08); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 74px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-name {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brand-mark { flex: none; }

.nav { display: none; }
.nav-list { display: flex; align-items: center; gap: 4px; }
.nav-link {
  display: inline-block;
  padding: 9px 13px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  border-radius: 10px;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.nav-link:hover { background: rgba(201, 107, 75, .09); color: var(--terracotta-dark); }
.nav-link[aria-current="page"] { color: var(--terracotta-dark); font-weight: 600; }
.header-cta { display: none; }
.header-phone { display: none; }
.header-privacy { display: none; }

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  padding: 9px 13px;
  border-radius: 10px;
  transition: background-color var(--t-fast) ease;
}
.dropdown-toggle:hover, .dropdown-toggle[aria-expanded="true"] { background: rgba(201, 107, 75, .09); color: var(--terracotta-dark); }
.dropdown-toggle .chev { transition: transform var(--t-fast) ease; }
.dropdown-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.dropdown-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 292px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility var(--t-fast);
  z-index: 210;
}
.has-dropdown.open .dropdown-panel,
.has-dropdown:focus-within .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-panel a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  transition: background-color var(--t-fast) ease;
}
.dropdown-panel a:hover { background: var(--sand); }
.dropdown-panel a span { font-size: 15px; font-weight: 600; }
.dropdown-panel a small { font-size: 12.5px; color: var(--muted); font-weight: 400; line-height: 1.45; }

/* Hamburger */
.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 10px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
}
.nav-toggle .bar {
  height: 2px;
  width: 100%;
  background: var(--ink);
  border-radius: 2px;
  transition: transform var(--t-fast) ease, opacity var(--t-fast) ease;
}
.nav-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(31, 35, 40, .44);
  z-index: 240;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) ease, visibility var(--t-fast);
}
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(88vw, 380px);
  background: var(--paper);
  z-index: 250;
  transform: translateX(105%);
  transition: transform 320ms ease;
  overflow-y: auto;
  padding: 22px 24px 40px;
  border-left: 1px solid var(--line);
}
.drawer[aria-hidden="false"], .drawer-backdrop.is-open { opacity: 1; visibility: visible; }
.drawer[aria-hidden="false"] { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.drawer-close {
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 15px;
  padding: 7px 14px;
  cursor: pointer;
  color: var(--ink);
}
.drawer-group-label {
  font-size: 12.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 22px 4px 8px;
}
.drawer a {
  display: block;
  padding: 11px 12px;
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 16.5px;
  font-weight: 500;
}
.drawer a:hover { background: var(--sand); }
.drawer a small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 400; }
.drawer-cta { margin-top: 24px; display: grid; gap: 12px; }
.drawer-phone { font-size: 15px; color: var(--muted); }
.drawer-phone a { display: inline; padding: 0; font-size: 15px; font-weight: 600; }

/* ---- Hero ---- */
.hero { padding-block: clamp(56px, 8vw, 104px) clamp(56px, 8vw, 96px); overflow: hidden; }
.hero-grid { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.hero .lede { margin-top: 20px; }
.hero-cta { margin-top: 32px; }
.micro-trust {
  margin-top: 22px;
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
}
.micro-trust span:not(:last-child)::after { content: "·"; margin-left: 10px; color: var(--terracotta); }

.hero-visual { position: relative; max-width: 520px; margin-inline: auto; width: 100%; }
.hero-stage {
  position: relative;
  border-radius: 50% / 42%;
  background: linear-gradient(160deg, var(--paper), #F2E9DC);
  border: 1px solid var(--line);
  padding: clamp(24px, 5vw, 44px);
  box-shadow: var(--shadow);
}
.hero-stage::after {
  content: "";
  position: absolute;
  inset: -34px;
  border-radius: 50% / 42%;
  background:
    radial-gradient(60% 60% at 70% 20%, rgba(201, 107, 75, .14), transparent 70%),
    radial-gradient(50% 50% at 20% 85%, rgba(122, 139, 106, .16), transparent 70%);
  z-index: -1;
}
.hero-stage img { width: 100%; }

.float-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  padding: 11px 16px 11px 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.3;
  max-width: 218px;
  animation: float var(--t-float) ease-in-out infinite;
}
.float-card small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.float-card .dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.float-1 { top: -16px; right: -6px; animation-delay: -1.5s; }
.float-2 { bottom: -18px; left: -10px; animation-delay: -4s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

/* ---- Trust strip ---- */
.trust-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 251, 247, .55);
}
.trust-strip .container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  padding-block: 16px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}
.trust-strip span::before { content: "✳"; color: var(--terracotta); margin-right: 9px; font-size: 12px; }

/* ---- Chapters ---- */
.chapter-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.chapter-kicker {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.chapter-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 1.35rem;
  color: var(--terracotta);
}
.chapter-label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 4px;
}

/* ---- Cards ---- */
.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(22px, 3.4vw, 32px);
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease, border-color var(--t-fast) ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #D8CFC0;
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--terracotta-dark); }
.card p { color: var(--muted); font-size: 15.5px; margin-top: 8px; }
.card .card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14.5px;
  font-weight: 600;
  text-decoration: none;
}
.card .card-link::after { content: "→"; transition: transform var(--t-fast) ease; }
.card .card-link:hover::after { transform: translateX(3px); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 22px; }

.stage {
  background: var(--sand);
  border-radius: 18px;
  padding: 12px;
  display: block;
}
.stage img { width: 100%; }
.card .stage { width: 92px; margin-bottom: 20px; }
.card .stage-lg { width: 116px; }

/* ---- Problem cards (home) ---- */
.problem-num {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--terracotta);
  margin-bottom: 14px;
  display: block;
}

/* ---- Steps ---- */
.steps { counter-reset: step; display: grid; gap: 22px; }
.step { position: relative; padding-left: 76px; }
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  font-size: 2.35rem;
  line-height: 1;
  color: var(--terracotta);
}
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step + .step::after {
  content: "";
  position: absolute;
  left: 8px;
  top: -22px;
  height: 22px;
  width: 1px;
  background: var(--line);
}

/* ---- Bento ---- */
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
.bento .card { display: flex; flex-direction: column; gap: 8px; }
.bento .card .stage { width: 74px; margin-bottom: 10px; }
.bento-item p { margin-top: 4px; font-size: 14.8px; }
.check-list { display: grid; gap: 10px; margin-top: 14px; }
.check-list li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23FFFBF7' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 8.5l3.2 3.2L13 4.5'/%3E%3C/svg%3E") center / 11px no-repeat,
    var(--olive);
}

/* ---- Commitments / dark band ---- */
.section-ink .lede { color: var(--footer-muted); }
.commit-grid { display: grid; gap: 20px; }
.commit {
  background: rgba(246, 241, 234, .055);
  border: 1px solid rgba(246, 241, 234, .14);
  border-radius: var(--radius-sm);
  padding: 26px;
}
.commit h3 { color: var(--paper); font-size: 1.22rem; }
.commit p { color: var(--footer-muted); font-size: 15px; margin-top: 8px; }
.commit .mark { color: var(--gold); font-size: 1.35rem; font-family: var(--font-serif); font-style: italic; }

/* ---- Pricing ---- */
.price-grid { display: grid; gap: 22px; }
.price-card { display: flex; flex-direction: column; }
.price-card .tier {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--terracotta-dark);
}
.price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0 4px;
  flex-wrap: wrap;
}
.price-amount {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 2.3rem;
  letter-spacing: -0.02em;
}
.price-period { font-size: 14px; color: var(--muted); font-weight: 500; }
.price-note { font-size: 13.5px; color: var(--muted); }
.price-card .check-list { margin: 18px 0 22px; flex: 1; }
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(122, 139, 106, .14);
  color: var(--olive-dark);
}
.adspend-note {
  margin-top: 26px;
  background: rgba(216, 178, 110, .13);
  border: 1px solid rgba(216, 178, 110, .45);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 14.5px;
}
.adspend-note strong { font-weight: 600; }

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  -webkit-overflow-scrolling: touch;
}
table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: 15px;
}
table.data th, table.data td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data thead th {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--sand);
  white-space: nowrap;
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: rgba(246, 241, 234, .6); }
table.data td .price { font-weight: 600; white-space: nowrap; }

/* ---- FAQ ---- */
.faq-list { display: grid; gap: 14px; max-width: 860px; }
details.faq-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color var(--t-fast) ease;
}
details.faq-item[open] { border-color: #D8CFC0; }
details.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 19px 56px 19px 22px;
  font-weight: 600;
  font-size: 16px;
  line-height: 1.45;
  position: relative;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-weight: 400;
  font-size: 17px;
  color: var(--terracotta-dark);
  transition: transform var(--t-fast) ease, background-color var(--t-fast) ease;
}
details.faq-item[open] summary::after { content: "–"; background: var(--sand); }
.faq-body { padding: 0 22px 20px; color: var(--muted); font-size: 15.3px; }
.faq-body p + p { margin-top: .8em; }

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(70% 120% at 85% 10%, rgba(201, 107, 75, .22), transparent 60%),
    radial-gradient(60% 100% at 8% 90%, rgba(216, 178, 110, .12), transparent 65%),
    var(--ink);
  color: var(--sand);
  border-radius: calc(var(--radius) + 8px);
  padding: clamp(38px, 6vw, 68px);
  text-align: center;
  max-width: 980px;
  margin-inline: auto;
}
.cta-band h2 { color: var(--paper); }
.cta-band p { color: var(--footer-muted); max-width: 56ch; margin-inline: auto; }
.cta-band .btn-row { justify-content: center; margin-top: 30px; }
.cta-band .micro-trust { justify-content: center; color: var(--footer-muted); }

/* ---- Page hero (inner pages) ---- */
.page-hero {
  padding-block: clamp(44px, 6vw, 84px) clamp(36px, 5vw, 64px);
  /* Contains the hero stage's decorative ::after bleed so it never
     extends the page horizontally on small screens. */
  overflow: hidden;
}
.breadcrumbs {
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--terracotta-dark); }
.breadcrumbs .sep { color: var(--terracotta); }
.page-hero .lede { margin-top: 18px; }
.page-hero .btn-row { margin-top: 30px; }

/* ---- Legal / prose pages ---- */
.prose { max-width: 780px; }
.prose h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); margin: 2.4em 0 .7em; }
.prose h2:first-child { margin-top: 1.6em; }
.prose h3 { font-size: 1.2rem; margin: 1.9em 0 .5em; }
.prose p, .prose li { color: #4A4E55; font-size: 16px; }
.prose ul, .prose ol { padding-left: 24px; margin: 1em 0; }
.prose li { margin-bottom: 7px; }
.prose li::marker { color: var(--terracotta); }
.prose .legal-note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-left: 3px solid var(--terracotta);
  border-radius: var(--radius-sm);
  padding: 18px 22px;
  font-size: 14.8px;
  margin: 1.6em 0;
}
.doc-meta { font-size: 13.5px; color: var(--muted); margin-bottom: 8px; }
.cookie-table th[scope="col"] { white-space: normal; }

/* ---- Forms ---- */
.form-wrap { display: grid; gap: 34px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14.5px; font-weight: 600; }
.field .hint { font-size: 12.5px; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: 13px;
  background: var(--paper);
  padding: 13px 16px;
  font-size: 16px;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terracotta-dark);
  box-shadow: 0 0 0 3px rgba(169, 84, 57, .16);
}
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--error); }
.error-text {
  display: none;
  font-size: 13.5px;
  color: var(--error);
  font-weight: 500;
}
.field.invalid .error-text { display: block; }
.form-grid { display: grid; gap: 20px; }
.consent {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 13px;
  align-items: start;
  font-size: 14.3px;
  color: var(--muted);
}
.consent input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: var(--terracotta-dark);
}
.form-status {
  margin-top: 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--error);
  min-height: 22px;
}
.form-status.ok { color: var(--olive-dark); }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.contact-aside .card { margin-bottom: 20px; }
.contact-aside h3 { font-size: 1.15rem; }
.def-list { display: grid; gap: 12px; margin-top: 14px; }
.def-list div { font-size: 14.5px; color: var(--muted); }
.def-list strong { display: block; font-size: 12.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink); font-weight: 600; }
.def-list a { font-size: 14.5px; }

/* ---- Footer ---- */
.site-footer {
  background: var(--ink);
  color: var(--sand);
  padding-top: clamp(52px, 7vw, 84px);
  margin-top: 0;
}
.footer-grid {
  display: grid;
  gap: 38px;
  padding-bottom: 44px;
}
.footer-brand .brand { color: var(--sand); margin-bottom: 16px; }
.footer-brand p { color: var(--footer-muted); font-size: 14.5px; max-width: 34ch; }
.footer-nap { margin-top: 22px; display: grid; gap: 5px; font-size: 14.5px; color: var(--sand); font-style: normal; }
.footer-nap strong { color: var(--footer-muted); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; }
.footer-nap a { color: var(--sand); text-decoration: none; border-bottom: 1px solid rgba(246, 241, 234, .3); }
.footer-nap a:hover { color: var(--gold); border-bottom-color: var(--gold); }
.footer-nap .tbd { color: var(--footer-muted); }
.footer-col h2 {
  font-family: var(--font-sans);
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--footer-muted);
  margin-bottom: 16px;
  font-weight: 600;
}
.footer-col ul { display: grid; gap: 10px; }
.footer-col a {
  color: var(--sand);
  text-decoration: none;
  font-size: 14.8px;
  opacity: .88;
  transition: opacity var(--t-fast) ease, color var(--t-fast) ease;
}
.footer-col a:hover { opacity: 1; color: var(--gold); }
.footer-disclaimers {
  border-top: 1px solid rgba(246, 241, 234, .14);
  padding-block: 26px;
  font-size: 12.8px;
  line-height: 1.75;
  color: var(--footer-muted);
  display: grid;
  gap: 12px;
}
.footer-bottom {
  border-top: 1px solid rgba(246, 241, 234, .14);
  padding-block: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--footer-muted);
}
.footer-bottom a { color: var(--sand); text-decoration: underline; text-decoration-color: rgba(246, 241, 234, .35); }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Cookie banner ---- */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 400;
  max-width: 1080px;
  margin-inline: auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 26px 70px rgba(31, 35, 40, .28);
  padding: 22px 24px;
  transform: translateY(130%);
  opacity: 0;
  visibility: hidden;
  transition: transform 420ms ease, opacity 420ms ease, visibility 420ms;
}
.cookie-banner.is-open { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner h2 { font-family: var(--font-sans); font-size: 15.5px; font-weight: 600; margin-bottom: 6px; }
.cookie-banner p { font-size: 13.8px; color: var(--muted); line-height: 1.6; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.cookie-prefs {
  display: none;
  margin-top: 16px;
  border-top: 1px dashed var(--line);
  padding-top: 16px;
}
.cookie-prefs.is-open { display: grid; gap: 14px; }
.pref-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--sand);
}
.pref-row div { max-width: 60%; }
.pref-row strong { font-size: 14px; display: block; }
.pref-row span { font-size: 12.8px; color: var(--muted); }
.switch {
  flex: none;
  width: 50px;
  height: 28px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background: var(--paper);
  position: relative;
  cursor: pointer;
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.switch::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform var(--t-fast) ease, background-color var(--t-fast) ease;
}
.switch[aria-checked="true"] { background: var(--olive); border-color: var(--olive); }
.switch[aria-checked="true"]::after { transform: translateX(21px); background: var(--white); }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity var(--t-reveal) ease, transform var(--t-reveal) ease; }
.reveal.in, .no-js .reveal { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }
.reveal-d3 { transition-delay: 270ms; }

/* ---- Misc ---- */
.callout {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  padding: 22px 26px;
  font-size: 15.3px;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 14px; }
.tag {
  font-size: 12.8px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
}
.spacer-2 { height: 10px; }

/* ==========================================================================
   Breakpoints
   ========================================================================== */
@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 30px 34px; }
  .step + .step::after { display: none; }
  .form-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .commit-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
}

@media (min-width: 1080px) {
  .nav { display: block; }
  .nav-toggle { display: none; }
  .header-cta { display: inline-flex; }
  .header-privacy { display: inline-block; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; padding: 9px 6px; transition: color var(--t-fast) ease; }
  .header-privacy:hover { color: var(--terracotta-dark); }
  .header-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
  .header-phone:hover { color: var(--terracotta-dark); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .price-grid { grid-template-columns: repeat(4, 1fr); }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento .span-2 { grid-column: span 2; }
  .bento .span-3 { grid-column: span 3; }
  .bento .span-4 { grid-column: span 4; }
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal { opacity: 1; transform: none; transition: none; }
  .float-card { animation: none; }
}

/* ---- Print ---- */
@media print {
  .site-header, .site-footer, .cookie-banner, .announce, .nav-toggle, .drawer, .drawer-backdrop { display: none !important; }
  body { background: var(--white); }
}

/* Contrast: accents on dark (ink) sections */
.section-ink .chapter-label{color:var(--muted-ink)}
.section-ink .chapter-num,.section-ink .problem-num{color:var(--terracotta-ink)}
.drawer .btn-primary{color:var(--white)}
