/* ==========================================================================
   AreaTakeover.com : Design System
   Ink + Blaze. Built for clarity, trust, and conversion.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* Brand */
  --ink:        #0A1220;
  --ink-2:      #131C2E;
  --ink-3:      #1E293B;
  --blaze:      #FF5117;
  --blaze-dark: #D93B08;
  --blaze-soft: #FFF1EA;
  --money:      #0E9F6E;
  --money-soft: #E7F7F1;
  --gold:       #F5A524;

  /* Neutrals */
  --white: #FFFFFF;
  --paper: #FBFAF8;
  --sand:  #F4F2EE;
  --line:  #E4E1DB;
  --line-2:#D2CEC6;
  --mute:  #5E6875;
  --mute-2:#828C9A;

  /* Type */
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Space */
  --gut: clamp(20px, 5vw, 32px);
  --sec: clamp(56px, 9vw, 112px);
  --max: 1180px;
  --narrow: 760px;

  /* Depth */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(10,18,32,.06), 0 2px 6px rgba(10,18,32,.04);
  --sh-2: 0 4px 12px rgba(10,18,32,.07), 0 12px 32px rgba(10,18,32,.07);
  --sh-3: 0 10px 24px rgba(10,18,32,.10), 0 30px 64px rgba(10,18,32,.12);
}

/* --- Reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5 { margin: 0 0 .5em; line-height: 1.12; letter-spacing: -.022em; font-weight: 800; }
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--blaze); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--blaze); color: #fff; }

/* --- Type scale ----------------------------------------------------------- */
.h-xl { font-size: clamp(2.5rem, 6.2vw, 4.25rem); letter-spacing: -.034em; font-weight: 850; }
.h-lg { font-size: clamp(2rem, 4.4vw, 3rem);      letter-spacing: -.03em; }
.h-md { font-size: clamp(1.5rem, 2.9vw, 2.1rem);  letter-spacing: -.024em; }
.h-sm { font-size: clamp(1.18rem, 1.9vw, 1.4rem); letter-spacing: -.016em; }
.lede { font-size: clamp(1.09rem, 1.7vw, 1.3rem); line-height: 1.6; color: var(--mute); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .745rem; font-weight: 750; letter-spacing: .13em; text-transform: uppercase;
  color: var(--blaze); margin: 0 0 16px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--blaze); border-radius: 2px; }
.eyebrow.on-dark { color: #FF9166; }
.eyebrow.on-dark::before { background: #FF9166; }
.tnum { font-variant-numeric: tabular-nums; }

/* --- Layout --------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gut); }
.wrap-narrow { width: 100%; max-width: var(--narrow); margin-inline: auto; padding-inline: var(--gut); }
.section { padding-block: var(--sec); }
.section-tight { padding-block: clamp(40px, 6vw, 68px); }
.section.alt { background: var(--paper); }
.section.sand { background: var(--sand); }
.section.dark { background: var(--ink); color: #E8EDF5; }
.section.dark .lede { color: #9AA8BD; }
.section.dark h1, .section.dark h2, .section.dark h3 { color: #fff; }

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }
.g-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; grid-template-columns: 1fr 1fr; }
.split.lean { grid-template-columns: 1.08fr .92fr; }
@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split.lean { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}
/* Grid and flex children default to min-width:auto, which lets wide content
   (tables, long strings) push the track open instead of scrolling inside it. */
.grid > *, .split > * { min-width: 0; }
.table-scroll { max-width: 100%; }

.center { text-align: center; }
.section-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head.center { margin-inline: auto; }
.stack-sm > * + * { margin-top: 10px; }

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 15px 26px; border-radius: var(--r-sm); border: 1.5px solid transparent;
  font-weight: 700; font-size: .98rem; letter-spacing: -.005em; text-decoration: none;
  cursor: pointer; transition: transform .14s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--blaze); color: #fff; box-shadow: 0 2px 0 var(--blaze-dark), var(--sh-1); }
.btn-primary:hover { background: #FF6330; box-shadow: 0 2px 0 var(--blaze-dark), var(--sh-2); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); box-shadow: var(--sh-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); background: var(--white); }
.btn-ghost.on-dark { color: #fff; border-color: rgba(255,255,255,.3); }
.btn-ghost.on-dark:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-sm { padding: 10px 17px; font-size: .88rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 13px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; pointer-events: none; }

/* --- Header --------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255,255,255,.93); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.hdr { display: flex; align-items: center; gap: 22px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; font-size: 1.16rem; letter-spacing: -.035em; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 30px; height: 30px; flex-shrink: 0; }
.brand em { font-style: normal; color: var(--blaze); }
.nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav > a, .nav-drop { flex-shrink: 0; }
.nav a {
  padding: 9px 11px; border-radius: var(--r-sm); text-decoration: none;
  font-size: .935rem; font-weight: 600; color: var(--ink-3); transition: background .15s, color .15s;
  white-space: nowrap;
}
.nav a:hover { background: var(--sand); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--blaze); }
.hdr-cta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.hdr-tel { font-weight: 700; font-size: .93rem; text-decoration: none; color: var(--ink); padding: 9px 12px; white-space: nowrap; }
.hdr-tel:hover { color: var(--blaze); }

/* Dropdown ------------------------------------------------------------------
   Desktop: CSS alone decides visibility, so hover can never fall out of sync with
   script state. The menu box starts flush with the bottom of its trigger and
   carries the visual gap as transparent padding, so there is no dead zone for
   the pointer to cross. Closing waits briefly so a sloppy diagonal survives.
   Touch and the mobile drawer use [data-open], set by a click.
   -------------------------------------------------------------------------- */
.nav-drop { position: relative; }
.nav-drop > button {
  display: inline-flex; align-items: center; gap: 5px; background: none; border: 0; cursor: pointer;
  padding: 9px 11px; border-radius: var(--r-sm); font-size: .935rem; font-weight: 600; color: var(--ink-3);
  white-space: nowrap;
}
.nav-drop > button:hover { background: var(--sand); color: var(--ink); }
.nav-drop > button svg { transition: transform .2s; }
.nav-menu-panel { display: flex; flex-direction: column; gap: 1px; }
.nav-menu a { display: block; padding: 11px 13px; border-radius: var(--r-sm); }
.nav-menu a strong { display: block; font-size: .945rem; font-weight: 700; color: var(--ink); }
.nav-menu a span { display: block; font-size: .825rem; color: var(--mute); font-weight: 500; line-height: 1.4; margin-top: 1px; }

@media (min-width: 1200px) {
  .nav-menu {
    position: absolute; top: 100%; left: -6px; z-index: 5;
    padding-top: 10px; min-width: 272px;
    visibility: hidden; opacity: 0;
    transition: opacity .15s ease .12s, visibility 0s linear .27s;
  }
  .nav-menu-panel {
    background: #fff; border: 1px solid var(--line); border-radius: var(--r);
    box-shadow: var(--sh-3); padding: 8px;
    transform: translateY(4px); transition: transform .15s ease .12s;
  }
  .nav-drop[data-open="true"] > .nav-menu,
  .nav-drop:has(:focus-visible) > .nav-menu {
    visibility: visible; opacity: 1; transition-delay: 0s;
  }
  .nav-drop[data-open="true"] .nav-menu-panel,
  .nav-drop:has(:focus-visible) .nav-menu-panel { transform: none; transition-delay: 0s; }
  .nav-drop[data-open="true"] > button svg,
  .nav-drop:has(:focus-visible) > button svg { transform: rotate(180deg); }
}
@media (min-width: 1200px) and (hover: hover) {
  .nav-drop:hover > .nav-menu { visibility: visible; opacity: 1; transition-delay: 0s; }
  .nav-drop:hover .nav-menu-panel { transform: none; transition-delay: 0s; }
  .nav-drop:hover > button svg { transform: rotate(180deg); }
  .nav-drop:hover > button { background: var(--sand); color: var(--ink); }
}

/* Mobile nav */
.nav-toggle { display: none; background: none; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); padding: 9px 11px; cursor: pointer; margin-left: auto; }
.nav-toggle span { display: block; width: 19px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle span + span { margin-top: 4px; }
@media (max-width: 1199px) {
  .nav-toggle { display: block; }
  .hdr-cta .btn, .hdr-tel { display: none; }
  .nav {
    position: fixed; inset: 72px 0 auto; margin: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px var(--gut) 24px;
    gap: 2px; max-height: calc(100dvh - 72px); overflow-y: auto; box-shadow: var(--sh-2);
  }
  .nav[hidden] { display: none; }
  .nav a, .nav-drop > button { padding: 13px 12px; font-size: 1.02rem; width: 100%; text-align: left; white-space: normal; }
  .nav-menu { display: none; border-left: 2px solid var(--line); margin: 2px 0 6px 12px; padding-left: 8px; }
  .nav-drop[data-open="true"] > .nav-menu { display: block; }
  .nav-drop[data-open="true"] > button svg { transform: rotate(180deg); }
  .nav .btn { margin-top: 10px; justify-content: center; }
  .nav .hdr-tel-m { display: block; padding: 13px 12px; font-weight: 700; }
}
/* The nav carries its own CTA + phone for the mobile drawer only. */
@media (min-width: 1200px) { .hdr-tel-m, .nav > .btn { display: none; } }

/* --- Hero ----------------------------------------------------------------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--ink); color: #fff;
  padding-block: clamp(56px, 8vw, 92px);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(900px 520px at 78% 8%, rgba(255,81,23,.20), transparent 62%),
    radial-gradient(700px 480px at 6% 92%, rgba(14,159,110,.15), transparent 60%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; opacity: .35; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 85% 70% at 50% 45%, #000 20%, transparent 78%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; max-width: 15ch; }
.hero .lede { color: #AEBBCE; max-width: 52ch; }
.hero-sub { max-width: 640px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: clamp(32px, 5vw, 60px); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hl { color: var(--blaze); }
/* Painted as a background layer so it always sits behind the glyphs. */
.hl-underline {
  white-space: nowrap;
  background-image: linear-gradient(var(--blaze), var(--blaze));
  background-repeat: no-repeat;
  background-size: 100% .2em;
  background-position: 0 92%;
}

/* --- Trust bar ------------------------------------------------------------ */
.trustbar { border-block: 1px solid var(--line); background: var(--paper); }
.trustbar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: clamp(20px, 4vw, 48px); padding-block: 22px; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: .9rem; font-weight: 650; color: var(--ink-3); }
.trust-item svg { color: var(--money); flex-shrink: 0; }

/* --- Cards ---------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: clamp(22px, 3vw, 30px); transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card-link { text-decoration: none; display: flex; flex-direction: column; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.card h3 { font-size: 1.16rem; margin-bottom: 8px; }
.card p { color: var(--mute); font-size: .955rem; margin-bottom: 0; }
.card .card-more { margin-top: auto; padding-top: 16px; font-weight: 700; font-size: .9rem; color: var(--blaze); display: inline-flex; align-items: center; gap: 6px; }
.card-link:hover .card-more svg { transform: translateX(3px); }
.card-more svg { transition: transform .18s; }
.card.dark { background: var(--ink-2); border-color: rgba(255,255,255,.1); color: #E8EDF5; }
.card.dark h3 { color: #fff; }
.card.dark p { color: #9AA8BD; }
.card-icon {
  width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center;
  background: var(--blaze-soft); color: var(--blaze); margin-bottom: 18px; flex-shrink: 0;
}
.card-icon.money { background: var(--money-soft); color: var(--money); }
.card-icon.ink { background: var(--sand); color: var(--ink); }
.card-num {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 800; font-size: .95rem; margin-bottom: 18px;
}

/* --- Stats ---------------------------------------------------------------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.stat { background: #fff; padding: clamp(20px, 3vw, 28px); }
.stat .n { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 850; letter-spacing: -.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .n.blaze { color: var(--blaze); }
.stat .n.money { color: var(--money); }
.stat .l { font-size: .855rem; color: var(--mute); margin-top: 8px; font-weight: 600; line-height: 1.4; }
.section.dark .stat-row { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.12); }
.section.dark .stat { background: var(--ink-2); }
.section.dark .stat .n { color: #fff; }
.section.dark .stat .l { color: #94A3B8; }
@media (max-width: 760px) { .stat-row { grid-template-columns: repeat(2, 1fr); } }

/* --- Media slots (photo / video placeholders) ----------------------------- */
.media {
  position: relative; border-radius: var(--r); overflow: hidden; background: var(--sand);
  border: 1px solid var(--line);
}
.media img { width: 100%; height: 100%; object-fit: cover; }
.media.ratio-16x9 { aspect-ratio: 16/9; }
.media.ratio-4x3  { aspect-ratio: 4/3; }
.media.ratio-1x1  { aspect-ratio: 1/1; }
.media.ratio-3x4  { aspect-ratio: 3/4; }

/* Placeholder that reads as intentional design, not a broken image */
.ph {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 10px; text-align: center;
  padding: 24px; color: var(--mute);
  background:
    repeating-linear-gradient(135deg, rgba(10,18,32,.028) 0 12px, transparent 12px 24px),
    var(--sand);
}
.ph svg { margin-inline: auto; color: var(--line-2); }
.ph b { display: block; font-size: .92rem; font-weight: 700; color: var(--ink-3); letter-spacing: -.01em; }
.ph span { display: block; font-size: .8rem; line-height: 1.45; max-width: 30ch; margin-inline: auto; }
.ph.on-dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), var(--ink-2); color: #7A8798; }
.ph.on-dark b { color: #C9D4E3; }
.ph.on-dark svg { color: #38455A; }

/* --- VSL / video ---------------------------------------------------------- */
.vsl { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #060B14; box-shadow: var(--sh-3); aspect-ratio: 16/9; border: 1px solid rgba(255,255,255,.1); }
.vsl iframe, .vsl video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.vsl-poster { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; text-align: center; padding: 28px; cursor: pointer; border: 0; width: 100%; background: transparent; color: #fff; }
.vsl-play {
  width: 74px; height: 74px; border-radius: 50%; background: var(--blaze); color: #fff;
  display: grid; place-items: center; margin-inline: auto; box-shadow: 0 8px 28px rgba(255,81,23,.45);
  transition: transform .2s ease;
}
.vsl-poster:hover .vsl-play { transform: scale(1.07); }
.vsl-poster b { font-size: 1.04rem; font-weight: 700; display: block; }
.vsl-poster span { font-size: .87rem; color: #94A3B8; display: block; }
.vsl-cap { margin-top: 14px; font-size: .865rem; color: var(--mute); text-align: center; }
.section.dark .vsl-cap { color: #8494AA; }

/* --- Forms ---------------------------------------------------------------- */
.field { margin-bottom: 17px; }
.field > label, .lbl {
  display: block; font-size: .855rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-3);
  letter-spacing: -.005em;
}
.lbl .opt { font-weight: 500; color: var(--mute-2); text-transform: none; letter-spacing: 0; }
.input, .select, .textarea {
  width: 100%; padding: 13px 15px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm);
  background: #fff; font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--blaze); box-shadow: 0 0 0 3px rgba(255,81,23,.14);
}
.input::placeholder, .textarea::placeholder { color: var(--mute-2); }
.textarea { min-height: 112px; resize: vertical; }
.select {
  appearance: none; padding-right: 42px; cursor: pointer;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235E6875' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat; background-position: right 15px center;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.help { font-size: .8rem; color: var(--mute); margin-top: 6px; line-height: 1.45; }
.err { font-size: .82rem; color: var(--blaze-dark); margin-top: 6px; font-weight: 600; display: none; }
.field.invalid .err { display: block; }
.field.invalid .input, .field.invalid .select, .field.invalid .textarea { border-color: var(--blaze-dark); }
.input-money { position: relative; }
.input-money::before { content: "$"; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-weight: 600; pointer-events: none; }
.input-money .input { padding-left: 27px; }
.input-pct { position: relative; }
.input-pct::after { content: "%"; position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--mute); font-weight: 600; pointer-events: none; }
.input-pct .input { padding-right: 32px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--mute); line-height: 1.5; }
.check input { width: 17px; height: 17px; margin: 2px 0 0; flex-shrink: 0; accent-color: var(--blaze); }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 38px); box-shadow: var(--sh-2); }
.form-note { font-size: .81rem; color: var(--mute); text-align: center; margin: 14px 0 0; line-height: 1.5; }
fieldset { border: 0; padding: 0; margin: 0 0 4px; }
legend { padding: 0; font-size: .855rem; font-weight: 700; color: var(--ink-3); margin-bottom: 7px; }

/* Chip radio group */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip span {
  display: block; padding: 9px 15px; border: 1.5px solid var(--line-2); border-radius: 100px;
  font-size: .885rem; font-weight: 650; cursor: pointer; transition: all .15s; background: #fff; color: var(--ink-3);
}
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--blaze); outline-offset: 2px; }
.chip span:hover { border-color: var(--ink); }

/* Range slider */
.range { width: 100%; appearance: none; height: 5px; border-radius: 4px; background: var(--line); outline: none; margin: 12px 0 4px; }
.range::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--blaze); cursor: pointer; border: 3px solid #fff; box-shadow: var(--sh-1); }
.range::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--blaze); cursor: pointer; border: 3px solid #fff; box-shadow: var(--sh-1); }
.range-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.range-val { font-weight: 800; font-size: 1.02rem; font-variant-numeric: tabular-nums; color: var(--ink); }
.range-scale { display: flex; justify-content: space-between; font-size: .74rem; color: var(--mute-2); font-variant-numeric: tabular-nums; }

/* --- Tables --------------------------------------------------------------- */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; min-width: 540px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; color: var(--mute); background: var(--paper); white-space: nowrap; }
table.data td.num, table.data th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper); }
table.data tr.is-total td { font-weight: 800; background: var(--paper); border-top: 2px solid var(--ink); }

/* --- Result panel (calculators) ------------------------------------------- */
.result-panel { background: var(--ink); color: #fff; border-radius: var(--r-lg); padding: clamp(24px, 3.4vw, 34px); position: sticky; top: 92px; }
.result-panel h3 { color: #fff; font-size: 1.06rem; }
@media (max-width: 900px) { .result-panel { position: static; } }
.result-hero { text-align: center; padding: 20px 0 22px; border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: 20px; }
.result-hero .n { font-size: clamp(2.4rem, 6vw, 3.4rem); font-weight: 850; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.result-hero .l { font-size: .85rem; color: #94A3B8; margin-top: 9px; font-weight: 600; }
.line { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; font-size: .94rem; border-bottom: 1px solid rgba(255,255,255,.07); }
.line:last-of-type { border-bottom: 0; }
.line dt, .line .k { color: #9AA8BD; }
.line dd, .line .v { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; }
.line.big { font-size: 1.1rem; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.16); border-bottom: 0; margin-top: 6px; }
.line.big .v { font-size: 1.28rem; font-weight: 850; }
.line .sub { display: block; font-size: .76rem; color: #6F7E93; font-weight: 500; margin-top: 2px; }
.pos { color: #34D399; } .neg { color: #FB7185; }

/* --- Badges / pills ------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 100px;
  font-size: .755rem; font-weight: 750; letter-spacing: .02em; background: var(--sand); color: var(--ink-3);
}
.badge.blaze { background: var(--blaze-soft); color: var(--blaze-dark); }
.badge.money { background: var(--money-soft); color: #067A53; }
.badge.on-dark { background: rgba(255,255,255,.1); color: #C9D4E3; }
.badge.gold { background: #FEF6E6; color: #8A5B00; }

/* --- Steps ---------------------------------------------------------------- */
.steps { counter-reset: s; display: grid; gap: 2px; }
.step { display: grid; grid-template-columns: 62px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--line); align-items: start; }
.step:last-child { border-bottom: 1px solid var(--line); }
.step-n { font-size: 2.1rem; font-weight: 850; color: var(--line-2); letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.step h3 { font-size: 1.24rem; margin-bottom: 7px; }
.step p { color: var(--mute); margin-bottom: 0; }
@media (max-width: 560px) { .step { grid-template-columns: 1fr; gap: 8px; } }

/* --- Checklist ------------------------------------------------------------ */
.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 13px; }
.checklist li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: .97rem; }
.checklist svg { color: var(--money); margin-top: 3px; flex-shrink: 0; }
.checklist.blaze svg { color: var(--blaze); }
.checklist strong { display: block; }
.checklist span { color: var(--mute); font-size: .91rem; }
.section.dark .checklist span { color: #94A3B8; }

/* --- Quote / testimonial -------------------------------------------------- */
.quote { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--blaze); border-radius: var(--r); padding: clamp(22px, 3vw, 30px); }
.quote blockquote { margin: 0 0 18px; font-size: 1.04rem; line-height: 1.6; }
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.quote-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--sand); flex-shrink: 0; display: grid; place-items: center; font-weight: 800; color: var(--mute); font-size: .92rem; overflow: hidden; }
.quote-avatar img { width: 100%; height: 100%; object-fit: cover; }
.quote cite { font-style: normal; font-weight: 700; font-size: .93rem; display: block; }
.quote .role { font-size: .83rem; color: var(--mute); }
.stars { display: flex; gap: 2px; color: var(--gold); margin-bottom: 12px; }

/* --- FAQ / accordion ------------------------------------------------------ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 21px 44px 21px 0; font-weight: 700; font-size: 1.04rem; position: relative;
  list-style: none; letter-spacing: -.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 11px; height: 11px;
  border-right: 2.5px solid var(--mute); border-bottom: 2.5px solid var(--mute);
  transform: translateY(-70%) rotate(45deg); transition: transform .22s;
}
.faq details[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.faq summary:hover { color: var(--blaze); }
.faq .faq-body { padding: 0 8px 22px 0; color: var(--mute); }
.faq .faq-body > :last-child { margin-bottom: 0; }

/* --- Prose (SEO content) -------------------------------------------------- */
.prose { font-size: 1.06rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); margin-top: 2em; margin-bottom: .55em; scroll-margin-top: 92px; }
.prose h3 { font-size: clamp(1.18rem, 2vw, 1.35rem); margin-top: 1.7em; margin-bottom: .45em; scroll-margin-top: 92px; }
.prose p, .prose ul, .prose ol { margin-bottom: 1.15em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--blaze); font-weight: 700; }
.prose a { color: var(--blaze-dark); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; font-weight: 600; }
.prose a:hover { color: var(--blaze); }
.prose strong { font-weight: 700; }
.prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 3px solid var(--blaze); background: var(--paper); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-size: 1.02rem; }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: .85rem; color: var(--mute); margin-top: 10px; text-align: center; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }
.callout {
  border: 1px solid var(--line); border-radius: var(--r); padding: 20px 24px; background: var(--paper); margin: 1.7em 0;
}
.callout.blaze { background: var(--blaze-soft); border-color: #FFD9C7; }
.callout.money { background: var(--money-soft); border-color: #BFE9DA; }
.callout h4 { font-size: 1rem; margin: 0 0 8px; }
.callout > :last-child { margin-bottom: 0; }

/* Table of contents */
.toc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 26px; }
.toc h2 { font-size: .78rem !important; text-transform: uppercase; letter-spacing: .1em; color: var(--mute); margin: 0 0 12px !important; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin-bottom: 7px; font-size: .95rem; }
.toc a { color: var(--ink-3); text-decoration: none; font-weight: 600; }
.toc a:hover { color: var(--blaze); text-decoration: underline; }

/* --- CTA band ------------------------------------------------------------- */
.cta-band { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(700px 400px at 85% 15%, rgba(255,81,23,.22), transparent 62%);
}
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band .lede { color: #AEBBCE; }

/* --- Footer --------------------------------------------------------------- */
.site-footer { background: var(--ink); color: #94A3B8; padding-block: clamp(46px, 6vw, 68px) 30px; font-size: .92rem; }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: clamp(26px, 4vw, 44px); }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .foot-grid { grid-template-columns: 1fr; } }
.site-footer h4 { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 15px; font-weight: 750; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; transition: color .15s; }
.site-footer a:hover { color: var(--blaze); }
.site-footer .brand { color: #fff; margin-bottom: 14px; }
.foot-bar { border-top: 1px solid rgba(255,255,255,.1); margin-top: clamp(34px, 4vw, 48px); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; font-size: .84rem; }
.foot-bar nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* --- Breadcrumbs ---------------------------------------------------------- */
.crumbs { font-size: .84rem; color: var(--mute); padding-block: 18px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.crumbs li::after { content: "/"; margin-left: 8px; color: var(--line-2); }
.crumbs li:last-child::after { display: none; }
.crumbs a { text-decoration: none; font-weight: 600; }
.crumbs a:hover { color: var(--blaze); }

/* --- Utility -------------------------------------------------------------- */
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; } .mt-4 { margin-top: 42px; }
.hide { display: none !important; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--blaze); color: #fff;
  padding: 11px 18px; border-radius: var(--r-sm); font-weight: 700; text-decoration: none; transition: top .18s;
}
.skip:focus { top: 12px; }
.spin { display: inline-block; width: 15px; height: 15px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: sp .7s linear infinite; }
.spin.dark { border-color: rgba(10,18,32,.2); border-top-color: var(--ink); }
@keyframes sp { to { transform: rotate(360deg); } }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .site-header, .site-footer, .cta-band, .nav, .btn, .vsl, .no-print { display: none !important; }
  body { font-size: 12pt; }
  .result-panel { background: #fff !important; color: #000 !important; border: 1px solid #000; position: static; }
  .result-panel h3, .line dt, .line dd, .result-hero .n, .result-hero .l { color: #000 !important; }
  .section { padding-block: 16px; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
