/* ══════════════════════════════════════════════════
   SERVIZIO MARKETING AI — stb.css  ("Stop the Bleeding")
   New layout + components. Loaded after style.css and
   built only from its tokens (--bg --text --muted --gold
   --gold-grad --div --card-bg …), so both themes work.

   1  tokens              6  facts            11  reveal
   2  story layout        7  what we do       12  narrow / phone
   3  shared type         8  who it's for     13  theme + motion
   4  hero                9  the ladder
   5  problem steps      10  story · why · cta

   HOME-ONLY (scroll story layout): .stb .stb-stage .stb-flow
   .stb-sec (--tall = tighter padding, --compact = sized by content)
   .stb-hero…  and everything under .stb-home.

   LAYOUTS   two columns, stage sticky on the right ....... 901px and wider
             one column, stage = sticky band on top ........ 900px and narrower
             a phone on its side (landscape, 500px tall or less) always gets
             the two columns: a band would leave no room for the art.

   REUSABLE ON ANY PAGE (no dependency on the layout above):
     type      .stb-eyebrow .stb-h2 (.stb-h2--long) .stb-head .stb-lead
               .stb-textlink (--caps / --serif) + .stb-arrow
     problem   ol.stb-steps > li.stb-step (.stb-step--last) > .stb-step-num + .stb-step-text
     facts     .stb-facts > article.stb-fact > .stb-fact-num + .stb-fact-body
     what      .stb-statement, ol.stb-beats > li.stb-beat
     fit       ul.stb-fit > li.stb-fit-item (+ svg.stb-check)
     ladder    .stb-level-tag (--main) > .stb-level-n + .stb-level-what
               .stb-offer-title (--ads) .stb-offer-line ul.stb-features > li.stb-feature
               dl.stb-prices > div.stb-price (.stb-price--both = the highlighted row)
               .stb-level--2 (.stb-level2-title .stb-upgrades .stb-level-note)
               .stb-level--3 / .stb-level--school + .stb-level-line
     story     figure.stb-story > .stb-quote + .stb-story-body + .stb-sign
     close     .stb-why (.stb-why-a / .stb-why-b), .stb-cta
     motion    .stb-reveal fades a block in on scroll, but only when stb.js is
               loaded on the page; without it the block is simply visible.
   ══════════════════════════════════════════════════ */

/* ── 1 · TOKENS ─────────────────────────────────── */
:root {
  --stb-stage-bg: #0A0500;          /* the stage is always near-black, in both themes */
  --stb-pad-l:    52px;             /* same left edge as the nav */
  --stb-pad-r:    clamp(36px, 4.4vw, 88px);
  --stb-band-h:   36vh;             /* phone: height of the stage band */
  --stb-dim:      #39332A;          /* opaque "unlit" tone for hero sentence two */
  --stb-blood:    linear-gradient(160deg, #E0343C 0%, #B3131B 48%, #6E0A10 100%);
  --stb-gold-line:        rgba(212,184,104,0.42);   /* --gold at 42% */
  --stb-gold-line-strong: rgba(212,184,104,0.62);
}
@supports (height: 1svh) {
  :root { --stb-band-h: 36svh; }
}
[data-theme="light"] {
  --stb-dim: #CFC9BC;
  --stb-gold-line:        rgba(140,110,30,0.42);
  --stb-gold-line-strong: rgba(140,110,30,0.62);
}

/* ── 2 · STORY LAYOUT ───────────────────────────── */
.stb {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 56fr) minmax(0, 44fr);
  align-items: start;
}
.stb-flow {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  position: relative;
  z-index: 1;
}
.stb-stage {
  grid-column: 2;
  grid-row: 1;
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 2;
  isolation: isolate;
  color: #F5F3EF;
  background:
    radial-gradient(90% 62% at 50% 44%, rgba(212,184,104,0.075) 0%, rgba(212,184,104,0) 68%),
    var(--stb-stage-bg);
}
/* hairline gold divider between the columns */
.stb-stage::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: linear-gradient(180deg,
    rgba(212,184,104,0) 0%, rgba(212,184,104,0) 9%, rgba(212,184,104,0.42) 26%,
    rgba(212,184,104,0.42) 80%, rgba(212,184,104,0) 100%);
  z-index: 5;
  pointer-events: none;
}
/* static fallback art (only seen until / unless story.js takes over) */
.stb-fallback {
  position: absolute;
  left: 9%; top: 12%;
  width: 82%; height: 76%;
  max-width: none;
}

/* sections */
.stb-sec {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 88vh;
  padding: clamp(92px, 15vh, 168px) var(--stb-pad-r) clamp(92px, 15vh, 168px) var(--stb-pad-l);
  border-top: 1px solid var(--div);
}
/* compact: sized by its content, but never so short that its scene has no room */
.stb-sec--compact { min-height: 72vh; }
/* tall: a long section (the five steps) gets tighter padding so its scene does not drag */
.stb-sec--tall {
  padding-top: clamp(72px, 11vh, 132px);
  padding-bottom: clamp(72px, 11vh, 132px);
}

.stb a:focus-visible,
.stb button:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 4px;
}

/* ── 3 · SHARED TYPE ────────────────────────────── */
.stb-eyebrow {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 20px;
}
.stb-head { margin-bottom: clamp(40px, 6.4vh, 76px); }

.stb-h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(38px, 4.9vw, 96px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--text);
}
.stb-h2--long {
  font-size: clamp(30px, 3.5vw, 68px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.022em;
}

.stb-gold-text,
.stb-step-num,
.stb-fact-num,
.stb-price-fig {
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* text links */
.stb-textlink {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 14px;
  color: var(--gold);
  transition: opacity 0.2s, color 0.3s var(--ease);
}
.stb-textlink:hover { opacity: 0.78; }
.stb-arrow { display: inline-block; font-family: 'Lato', sans-serif; font-style: normal; font-weight: 400; transition: transform 0.3s var(--ease); }
.stb-textlink:hover .stb-arrow { transform: translateX(5px); }
.stb-textlink:hover .stb-arrow--down { transform: translateY(4px); }

.stb-textlink--caps {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}
.stb-textlink--caps:hover { color: var(--gold); opacity: 1; }
.stb-textlink--serif {
  font-family: 'Playfair Display', serif;
  font-size: clamp(16px, 1.5vw, 21px);
}

/* ── 4 · HERO ───────────────────────────────────── */
.stb-hero {
  /* stb.js drives both from scroll; with no JS they stay at 1 = everything lit */
  --hero-p: 1;   /* 0 → 1 : sentence two lights up */
  --hero-t: 1;   /* 0 → 1 : progress through the pinned stretch */
  display: block;
  min-height: 220vh;
  padding: 0;
  border-top: 0;
}
.stb-hero-pin {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 112px var(--stb-pad-r) 84px var(--stb-pad-l);
}
.stb-hero-inner { max-width: 1040px; }

.stb-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: clamp(22px, 3.6vh, 40px);
}
.stb-hero-eyebrow::before {
  content: '';
  flex: 0 0 auto;
  width: clamp(28px, 3.4vw, 56px);
  height: 1px;
  background: var(--gold);
  opacity: 0.7;
}

.stb-h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(42px, min(6.1vw, 9.6vh), 118px);
  font-weight: 900;
  line-height: 0.99;
  letter-spacing: -0.032em;
  color: var(--text);
  margin-bottom: clamp(24px, 4vh, 44px);
}
.stb-h1 span { display: block; }
.stb-h1-b {
  margin-top: 0.16em;
  padding-bottom: 0.12em;            /* keeps descenders inside the clipped gradient */
  background-image:
    linear-gradient(90deg,
      transparent calc(var(--hero-p) * 130% - 30%),
      var(--stb-dim) calc(var(--hero-p) * 130%)),
    var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.stb-hero-sub {
  font-size: clamp(17px, 1.6vw, 27px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  max-width: 27em;
  margin-bottom: clamp(28px, 4.6vh, 48px);
  text-wrap: pretty;
}
.stb-hero-ctas {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px 32px;
}

/* thin scroll meter at the foot of the pinned hero */
.stb-hero-meter {
  position: absolute;
  left: var(--stb-pad-l);
  bottom: 38px;
  width: clamp(120px, 14vw, 220px);
  height: 1px;
  background: var(--div-strong);
  overflow: hidden;
}
.stb-hero-meter span {
  position: absolute;
  inset: 0;
  background: var(--gold);
  transform-origin: 0 50%;
  transform: scaleX(var(--hero-t));
}

/* ── 5 · PROBLEM STEPS ──────────────────────────── */
.stb-steps { border-top: 1px solid var(--div); }
.stb-step {
  display: grid;
  grid-template-columns: clamp(64px, 7.6vw, 140px) minmax(0, 1fr);
  column-gap: clamp(18px, 2.2vw, 40px);
  align-items: start;
  padding: clamp(18px, 3vh, 40px) 0;
  border-bottom: 1px solid var(--div);
}
.stb-step-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(64px, min(8vw, 12.5vh), 156px);
  font-weight: 900;
  line-height: 0.8;
  letter-spacing: -0.04em;
  padding-bottom: 0.06em;
}
.stb-step-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, min(2.6vw, 4.2vh), 50px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: clamp(8px, 1.3vh, 16px);
}
.stb-step-body {
  font-size: clamp(16px, 1.32vw, 22px);
  font-weight: 300;
  line-height: 1.62;
  color: var(--muted);
  max-width: 33em;
  text-wrap: pretty;
}
/* step 5 is the wound: the one place the text column bleeds */
.stb-step--last .stb-step-num { background-image: var(--stb-blood); }

/* ── 6 · FACTS ──────────────────────────────────── */
.stb-facts { display: grid; gap: 3px; }
.stb-fact {
  display: grid;
  grid-template-columns: clamp(150px, 16vw, 300px) minmax(0, 1fr);
  column-gap: clamp(20px, 2.4vw, 44px);
  align-items: center;
  background: var(--card-bg);
  border: 1px solid var(--div);
  border-radius: 8px;
  padding: clamp(26px, 2.9vw, 50px) clamp(22px, 2.6vw, 46px);
  transition: border-color 0.3s, transform 0.4s var(--ease);
}
.stb-fact:hover { border-color: var(--div-strong); }
.stb-fact-num {
  font-family: 'Playfair Display', serif;
  font-size: clamp(52px, 5.4vw, 108px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  white-space: nowrap;
  padding-bottom: 0.06em;
}
.stb-fact-in {                  /* the small "in" of "1 in 4" */
  font-size: 0.42em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0 0.06em;
}
.stb-fact-x {                   /* a times sign with the weight of the numeral */
  font-family: 'Lato', sans-serif;
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0;
  margin-left: 0.05em;
  vertical-align: 0.03em;
}
.stb-fact-text {
  font-size: clamp(15px, 1.16vw, 19px);
  font-weight: 400;
  line-height: 1.62;
  color: var(--muted);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.stb-fact-src { font-weight: 700; color: var(--text); }
.stb-facts-more { margin-top: clamp(28px, 4vh, 44px); }

/* ── 7 · WHAT WE DO ─────────────────────────────── */
.stb-statement {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 3.35vw, 66px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.022em;
  color: var(--text);
  max-width: 20em;
  margin-bottom: clamp(44px, 7.4vh, 84px);
  text-wrap: pretty;
}
.stb-statement em {
  font-style: italic;
  font-weight: 600;
  color: var(--gold);
}
.stb-beats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 40px);
}
.stb-beat {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--div-strong);
}
.stb-beat::before {
  content: '';
  position: absolute;
  top: -1px; left: 0;
  width: 44px; height: 1px;
  background: var(--gold);
}
.stb-beat-num {
  font-family: 'Playfair Display', serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold);
}
.stb-beat-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(17px, 1.6vw, 28px);
  font-weight: 600;
  line-height: 1.24;
  color: var(--text);
}

/* ── 8 · WHO IT'S FOR ───────────────────────────── */
.stb-lead {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(16px, 1.36vw, 23px);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: clamp(20px, 3vh, 30px);
}
.stb-fit { border-top: 1px solid var(--div); }
.stb-fit-item {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  column-gap: clamp(14px, 1.4vw, 24px);
  align-items: start;
  padding: clamp(16px, 2.5vh, 26px) 0;
  border-bottom: 1px solid var(--div);
  font-size: clamp(16px, 1.34vw, 22px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
}
.stb-fit-item strong { font-weight: 400; color: var(--text); }
.stb-check {
  width: 22px; height: 22px;
  margin-top: 0.22em;
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── 9 · THE LADDER ─────────────────────────────── */
/* level tag: a pill with the level + a short label */
.stb-level-tag {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-family: 'Lato', sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 18px;
}
.stb-level-n {
  padding: 6px 14px;
  border: 1px solid var(--stb-gold-line);
  border-radius: 9999px;
  color: var(--gold);
  white-space: nowrap;
}
.stb-level-tag--main { margin-bottom: clamp(20px, 3vh, 30px); }
.stb-level-tag--main .stb-level-n {
  padding: 8px 18px;
  font-size: 12px;
  color: #0D0700;
  background: linear-gradient(165deg, #E5CA82 0%, #D4B868 28%, #B89030 54%, #C8A848 68%, #8A6E2A 100%);
  border-color: rgba(240,222,173,0.3);
  box-shadow: 0 4px 18px rgba(212,184,104,0.3);
}
.stb-level-tag--main .stb-level-what { color: var(--gold); }

/* LEVEL 1 — the main offer: by far the biggest block on the page */
.stb-l1 {
  background:
    radial-gradient(86% 52% at 0% 0%, rgba(212,184,104,0.10) 0%, rgba(212,184,104,0) 72%);
  border-top-color: transparent;
}
.stb-l1::before {                 /* gold rule that opens the Level 1 block */
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--gold) 0%, var(--stb-gold-line) 42%, rgba(212,184,104,0) 100%);
}
.stb-l1:not(.stb-l1--ads) { padding-bottom: clamp(44px, 7vh, 76px); }
.stb-l1--ads {
  background: none;
  padding-top: clamp(44px, 7vh, 76px);
}
.stb-l1--ads::before {
  left: var(--stb-pad-l); right: var(--stb-pad-r);
  background: var(--div-strong);
}

.stb-offer-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(56px, 7.4vw, 152px);
  font-weight: 900;
  line-height: 0.93;
  letter-spacing: -0.038em;
  color: var(--text);
  margin-bottom: clamp(34px, 5.6vh, 64px);
}
.stb-offer-title--ads {
  font-size: clamp(38px, 4.5vw, 92px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.stb-offer-line {
  font-size: clamp(17px, 1.5vw, 25px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  max-width: 28em;
  margin-bottom: clamp(30px, 5vh, 52px);
  text-wrap: pretty;
}

.stb-features {
  border-top: 1px solid var(--div-strong);
  margin-bottom: clamp(30px, 4.8vh, 52px);
}
.stb-feature {
  display: grid;
  grid-template-columns: clamp(40px, 3.8vw, 64px) minmax(0, 1fr);
  align-items: baseline;
  padding: clamp(16px, 2.5vh, 26px) 0;
  border-bottom: 1px solid var(--div);
}
.stb-feature-num {
  font-family: 'Lato', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--gold);
}
.stb-feature-text {
  font-family: 'Playfair Display', serif;
  font-size: clamp(21px, 2.15vw, 42px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.012em;
  color: var(--text);
  text-wrap: balance;
}

/* price rows — the only prices on the site */
.stb-prices { display: grid; gap: 10px; }
.stb-price {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: clamp(18px, 2vw, 36px);
  align-items: center;
  padding: clamp(22px, 2.3vw, 38px) clamp(22px, 2.4vw, 40px);
  background: var(--card-bg);
  border: 1px solid var(--div-strong);
  border-radius: 12px;
}
.stb-price-what {
  font-family: 'Playfair Display', serif;
  font-size: clamp(19px, 1.75vw, 32px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--text);
}
.stb-price-note,
.stb-price-line {
  display: block;
  margin-top: 8px;
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.stb-price-line {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  color: var(--gold);
}
.stb-price-amt {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  text-align: right;
}
.stb-price-main {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(14px, 1.12vw, 18px);
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--muted);
  white-space: nowrap;
}
.stb-price-fig {
  font-family: 'Playfair Display', serif;
  font-size: clamp(46px, 4.9vw, 100px);
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: -0.035em;
  padding-bottom: 0.04em;
}
.stb-price-setup {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 1.6vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
}
/* the highlighted row */
.stb-price--both {
  border-color: var(--stb-gold-line-strong);
  background:
    linear-gradient(135deg, rgba(212,184,104,0.17) 0%, rgba(212,184,104,0.045) 58%, rgba(212,184,104,0.02) 100%),
    var(--card-bg);
  box-shadow: 0 22px 60px -28px rgba(212,184,104,0.5);
}
.stb-price--both .stb-price-what { font-size: clamp(22px, 2.1vw, 40px); }
.stb-price--both .stb-price-fig  { font-size: clamp(52px, 5.7vw, 116px); }
.stb-offer-cta { margin-top: clamp(30px, 5vh, 52px); }

/* LEVEL 2 — an upgrade: one modest block, no prices */
.stb-level--2 { padding-bottom: clamp(28px, 4.4vh, 44px); }
.stb-level2-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(24px, 2.25vw, 42px);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.016em;
  color: var(--text);
  margin-bottom: clamp(16px, 2.4vh, 24px);
}
.stb-upgrades {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  margin-bottom: 16px;
}
.stb-upgrade {
  background: var(--card-bg);
  border: 1px solid var(--div);
  border-radius: 8px;
  padding: clamp(16px, 1.5vw, 24px) clamp(18px, 1.6vw, 26px);
  font-size: clamp(14.5px, 1.1vw, 17.5px);
  font-weight: 300;
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.stb-upgrade strong {           /* "AI voice agent:" runs straight into its sentence */
  font-family: 'Playfair Display', serif;
  font-size: 1.14em;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text);
  margin-right: 0.12em;
}
.stb-level-note {
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: 13.5px;
  color: var(--gold);
  opacity: 0.9;
}

/* LEVEL 3 + THE SCHOOL — one small line each */
.stb-level--3,
.stb-level--school {
  padding: clamp(16px, 2.4vh, 22px) 0;
  border-top: 1px solid var(--div);
}
.stb-level--school { padding-bottom: 0; }
.stb-level--3 .stb-level-tag,
.stb-level--school .stb-level-tag {
  font-size: 10px;
  margin-bottom: 10px;
}
.stb-level--3 .stb-level-n,
.stb-level--school .stb-level-n {
  padding: 4px 11px;
  color: var(--muted);
  border-color: var(--div-strong);
}
.stb-level-line {
  font-size: clamp(13.5px, 1vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--muted);
  max-width: 44em;
}

/* ── 10 · STORY · WHY US · CLOSING CTA ──────────── */
.stb-story { margin: 0; }
.stb-quote {
  margin-bottom: clamp(30px, 5vh, 54px);
  padding-left: clamp(20px, 2.1vw, 38px);
  border-left: 2px solid var(--gold);
  font-family: 'Libre Baskerville', Georgia, serif;
  font-style: italic;
  font-size: clamp(24px, 2.75vw, 54px);
  font-weight: 400;
  line-height: 1.32;
  color: var(--text);
  text-wrap: balance;
}
.stb-story-body {
  font-size: clamp(16px, 1.34vw, 22px);
  font-weight: 300;
  line-height: 1.76;
  color: var(--muted);
  max-width: 35em;
  margin-bottom: clamp(26px, 4vh, 40px);
  text-wrap: pretty;
}
.stb-sign {
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: clamp(15px, 1.2vw, 20px);
  color: var(--gold);
}
.stb-sign::before {
  content: '';
  flex: 0 0 auto;
  width: 44px; height: 1px;
  background: var(--gold);
  opacity: 0.6;
}

.stb-why {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 4.5vw, 90px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: clamp(48px, 8.4vh, 92px);
}
.stb-why span { display: block; }
.stb-why-b {
  margin-top: 0.2em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--gold);
}

.stb-cta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(28px, 3.3vw, 58px);
  border: 1px solid var(--stb-gold-line);
  border-radius: 14px;
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(212,184,104,0.14) 0%, rgba(212,184,104,0) 62%),
    var(--card-bg);
}
.stb-cta-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(30px, 3.3vw, 64px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.024em;
  color: var(--text);
  margin-bottom: 12px;
}
.stb-cta-line {
  font-size: clamp(16px, 1.4vw, 23px);
  font-weight: 300;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: clamp(24px, 3.6vh, 36px);
}

/* ── 11 · REVEAL (only once stb.js has run) ─────── */
.stb-js .stb-reveal {
  opacity: 0;
  transform: translate3d(0, 30px, 0);
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.stb-js .stb-reveal.is-in {
  opacity: 1;
  transform: none;
}
.stb-js .stb-hero [data-rise] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
}
.stb-js.stb-ready .stb-hero [data-rise] {
  opacity: 1;
  transform: none;
  transition: opacity 0.9s var(--ease), transform 1s var(--ease);
}
.stb-js.stb-ready .stb-hero .stb-h1[data-rise]        { transition-delay: 0.07s; }
.stb-js.stb-ready .stb-hero .stb-hero-sub[data-rise]  { transition-delay: 0.14s; }
.stb-js.stb-ready .stb-hero .stb-hero-ctas[data-rise] { transition-delay: 0.21s; }

/* ── 12 · NARROW SCREENS ────────────────────────── */
/* price rows stack when the text column gets tight */
@media (max-width: 1240px) {
  .stb-price { grid-template-columns: minmax(0, 1fr); row-gap: 16px; }
  .stb-price-amt { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; text-align: left; }
}

/* ≤ 900px: one column, the stage becomes a band stuck to the top */
@media (max-width: 900px) {
  :root { --stb-pad-l: 24px; --stb-pad-r: 24px; }
  .stb-home { scroll-padding-top: calc(var(--stb-band-h) + 18px); }

  .stb { display: block; }
  .stb-stage {
    height: var(--stb-band-h);
    z-index: 20;
  }
  .stb-stage::before {            /* no column divider on a phone */
    left: 0; right: 0; top: auto; bottom: 0;
    width: auto; height: 1px;
    background: linear-gradient(90deg, rgba(212,184,104,0) 0%, rgba(212,184,104,0.3) 30%, rgba(212,184,104,0.3) 70%, rgba(212,184,104,0) 100%);
  }
  .stb-fallback { left: 6%; top: 60px; width: 88%; height: calc(100% - 68px); }

  /* soft fade under the band: the text slides away beneath it */
  .stb-flow::before {
    content: '';
    display: block;
    position: -webkit-sticky;
    position: sticky;
    top: var(--stb-band-h);
    height: 34px;
    margin-bottom: -34px;
    z-index: 19;
    background: linear-gradient(180deg, var(--stb-stage-bg) 0%, rgba(10,5,0,0) 100%);
    pointer-events: none;
  }

  /* each section is at least as tall as the text window under the band,
     so every scene of the story gets its own stretch of scrolling (matters on tablets) */
  .stb-sec {
    min-height: 64vh;
    min-height: calc(100svh - var(--stb-band-h));
    padding: clamp(60px, 9vh, 84px) var(--stb-pad-r) clamp(60px, 9vh, 84px) var(--stb-pad-l);
  }
  .stb-head { margin-bottom: 34px; }

  .stb-hero { min-height: 200vh; min-height: 200svh; padding: 0; }
  .stb-hero-pin {
    top: var(--stb-band-h);
    height: 64vh;
    height: calc(100svh - var(--stb-band-h));
    padding: 30px var(--stb-pad-r) 30px var(--stb-pad-l);
  }
  .stb-hero-eyebrow { font-size: 10px; letter-spacing: 0.16em; gap: 12px; margin-bottom: clamp(12px, 2.2vh, 22px); align-items: flex-start; }
  .stb-hero-eyebrow::before { width: 22px; margin-top: 0.8em; }
  .stb-h1 {
    font-size: clamp(30px, min(10.4vw, 5.5vh), 68px);
    margin-bottom: clamp(14px, 2.2vh, 24px);
  }
  .stb-hero-sub { font-size: clamp(15px, min(4.2vw, 2.3vh), 21px); margin-bottom: clamp(16px, 2.8vh, 30px); }
  .stb-hero-ctas { gap: 14px 22px; }
  .stb-hero-meter { bottom: 14px; width: 96px; }

  .stb-h2 { font-size: clamp(34px, 9.8vw, 64px); }
  .stb-h2--long { font-size: clamp(28px, 7.4vw, 50px); }

  .stb-step { grid-template-columns: clamp(50px, 14vw, 92px) minmax(0, 1fr); column-gap: 14px; padding: 28px 0; }
  .stb-step-num { font-size: clamp(58px, 16vw, 104px); }
  .stb-step-title { font-size: clamp(23px, 6.2vw, 36px); }
  .stb-step-body { font-size: 16px; }

  .stb-fact { grid-template-columns: minmax(0, 1fr); row-gap: 14px; padding: 28px 24px; }
  .stb-fact-num { font-size: clamp(56px, 16vw, 96px); }
  .stb-fact-text { font-size: 15.5px; }

  .stb-statement { font-size: clamp(27px, 7.3vw, 48px); margin-bottom: 40px; }
  .stb-beats { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .stb-beat { flex-direction: row; align-items: baseline; gap: 18px; padding: 18px 0; }
  .stb-beat-text { font-size: clamp(19px, 5.2vw, 28px); }

  .stb-fit-item { font-size: 16.5px; }

  .stb-offer-title { font-size: clamp(52px, 15.5vw, 112px); margin-bottom: 30px; }
  .stb-offer-title--ads { font-size: clamp(36px, 10.4vw, 72px); margin-bottom: 16px; }
  .stb-feature { grid-template-columns: 38px minmax(0, 1fr); padding: 16px 0; }
  .stb-feature-text { font-size: clamp(21px, 5.8vw, 34px); }
  .stb-price { padding: 24px 22px; }
  .stb-price-what { font-size: clamp(20px, 5.4vw, 30px); }
  .stb-price-fig { font-size: clamp(50px, 14.4vw, 92px); }
  .stb-price--both .stb-price-fig { font-size: clamp(56px, 16vw, 104px); }
  .stb-price-setup { font-size: clamp(18px, 4.8vw, 26px); }
  .stb-price-main { font-size: 15px; }
  .stb-l1--ads { padding-top: 44px; }

  .stb-level2-title { font-size: clamp(23px, 6vw, 34px); }
  .stb-upgrades { grid-template-columns: minmax(0, 1fr); }

  .stb-quote { font-size: clamp(23px, 6.2vw, 40px); }
  .stb-why { font-size: clamp(34px, 9.6vw, 64px); margin-bottom: 44px; }
  .stb-cta { padding: 28px 24px; }
  .stb-cta-title { font-size: clamp(30px, 8.4vw, 48px); }

  /* The nav rides on top of the (always dark) stage band and stays usable. */
  .stb-home .nav,
  .stb-home .nav.scrolled {
    position: fixed;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom-color: transparent;
  }
  .stb-home .nav::before {         /* soft dark veil so the bar reads over the art */
    content: '';
    position: absolute;
    left: 0; right: 0; top: 0;
    bottom: -34px;
    z-index: -1;
    background: linear-gradient(180deg, rgba(10,5,0,0.88) 0%, rgba(10,5,0,0.6) 46%, rgba(10,5,0,0.22) 78%, rgba(10,5,0,0) 100%);
    pointer-events: none;
  }
  .stb-home .nav-brand-name { color: #F5F3EF; }
  .stb-home .nav-link { color: rgba(245,243,239,0.6); }
  .stb-home .nav-link:hover { color: #F5F3EF; }
  .stb-home .theme-toggle { color: rgba(245,243,239,0.6); }
  .stb-home .hamburger span { background: #F5F3EF; }
}

/* 769–900px: the full nav is still shown; give its links room so the centred wordmark stays centred */
@media (max-width: 900px) and (min-width: 769px) {
  .nav, .nav.scrolled { padding-left: 28px; padding-right: 28px; }
  .nav-left { gap: 20px; }
  .nav-right { gap: 12px; }
}

@media (max-width: 480px) {
  .stb-hero-ctas .btn { padding: 14px 26px; }
  /* the large button must fit inside the closing card on a 360px phone */
  .stb .btn-lg { padding: 16px 28px; }
  .stb-cta .btn { max-width: 100%; }
}
@media (max-width: 350px) {
  .stb .btn { white-space: normal; text-align: center; justify-content: center; }
}
/* short phones: keep the pinned hero inside its window */
@media (max-width: 900px) and (max-height: 700px) {
  .stb-hero-pin { padding-top: 18px; padding-bottom: 18px; }
  .stb-hero-meter { display: none; }
  .stb-hero-ctas .btn { padding: 12px 22px; }
}

/* two columns on a short screen (small laptop windows): the pinned hero stays clear of the nav */
@media (min-width: 901px) and (max-height: 780px) {
  .stb-hero-pin { padding-top: 104px; padding-bottom: 56px; }
  .stb-h1 { font-size: clamp(34px, min(6.1vw, 9vh), 118px); }
  .stb-hero-meter { bottom: 24px; }
  /* and the five steps stay within about a screen and a half */
  .stb-sec--tall { padding-top: 64px; padding-bottom: 64px; }
  .stb-step { padding: 18px 0; }
}
@media (min-width: 901px) and (max-height: 640px) {
  .stb-hero-pin { padding-top: 96px; padding-bottom: 22px; }
  .stb-hero-eyebrow { margin-bottom: 14px; }
  .stb-h1 { font-size: clamp(28px, min(6.1vw, 8.4vh), 118px); margin-bottom: 16px; }
  .stb-hero-sub { font-size: clamp(15px, min(1.6vw, 2.8vh), 27px); margin-bottom: 18px; }
  .stb-hero-ctas .btn { padding: 12px 24px; }
  .stb-hero-meter { display: none; }
}

/* a phone on its side (any width): a slim nav, and a hero that fits a very short screen */
@media (orientation: landscape) and (max-height: 500px) {
  .stb-home { scroll-padding-top: 72px; }
  .stb-home .nav,
  .stb-home .nav.scrolled {
    padding-top: 12px;
    padding-bottom: 12px;
    padding-left: max(24px, env(safe-area-inset-left, 0px));
    padding-right: max(24px, env(safe-area-inset-right, 0px));
  }
  /* sized to the visible screen (the browser bar comes and goes on a phone);
     the column behind the stage is painted too, so no strip can show under it */
  .stb { background: linear-gradient(90deg, rgba(10,5,0,0) 56%, var(--stb-stage-bg) 56%); }
  .stb-stage,
  .stb-hero-pin { height: 100vh; height: 100svh; }
  .stb-hero-pin { padding-top: 72px; padding-bottom: 12px; }
  .stb-hero-eyebrow { font-size: 10px; letter-spacing: 0.16em; gap: 12px; margin-bottom: 10px; }
  .stb-hero-eyebrow::before { width: 22px; }
  .stb-h1 { font-size: clamp(24px, 7.8vh, 44px); margin-bottom: 12px; }
  .stb-hero-sub { font-size: 15px; line-height: 1.45; margin-bottom: 14px; }
  .stb-hero-ctas { gap: 10px 20px; }
  .stb-hero-ctas .btn { padding: 11px 22px; }
  .stb-hero-meter { display: none; }
}

/* a phone on its side, 900px wide or less: a band would leave no room for the art under the nav,
   so the stage goes back to being a column on the right (the phone type sizes stay) */
@media (max-width: 900px) and (orientation: landscape) and (max-height: 500px) {
  :root { --stb-pad-l: max(24px, env(safe-area-inset-left, 0px)); --stb-pad-r: 22px; }

  .stb { display: grid; }
  .stb-stage { z-index: 2; }
  .stb-stage::before {
    left: 0; right: auto; top: 0; bottom: 0;
    width: 1px; height: auto;
    background: linear-gradient(180deg, rgba(212,184,104,0) 0%, rgba(212,184,104,0) 18%, rgba(212,184,104,0.42) 36%, rgba(212,184,104,0.42) 80%, rgba(212,184,104,0) 100%);
  }
  .stb-fallback { left: 8%; top: 64px; width: 84%; height: calc(100% - 80px); }
  .stb-flow::before { display: none; }

  .stb-sec { min-height: 100vh; min-height: 100svh; }
  .stb-hero { min-height: 220vh; min-height: 220svh; }
  .stb-hero-pin { top: 0; padding-left: var(--stb-pad-l); padding-right: var(--stb-pad-r); }

  /* the text column is about as wide as a phone held upright, so use those sizes */
  .stb-h2 { font-size: 36px; }
  .stb-h2--long { font-size: 28px; }
  .stb-step { grid-template-columns: 52px minmax(0, 1fr); }
  .stb-step-num { font-size: 60px; }
  .stb-step-title { font-size: 23px; }
  .stb-fact-num { font-size: 60px; }
  .stb-statement { font-size: 27px; }
  .stb-beat-text { font-size: 19px; }
  .stb-offer-title { font-size: 56px; }
  .stb-offer-title--ads { font-size: 38px; }
  .stb-feature-text { font-size: 21px; }
  .stb-price-what { font-size: 20px; }
  .stb-price-fig { font-size: 52px; }
  .stb-price--both .stb-price-fig { font-size: 58px; }
  .stb-price-setup { font-size: 18px; }
  .stb-level2-title { font-size: 23px; }
  .stb-quote { font-size: 23px; }
  .stb-why { font-size: 34px; }
  .stb-cta-title { font-size: 30px; }

  /* the bar is solid here: it crosses the text column and the stage */
  .stb-home .nav::before {
    bottom: 0;
    background: var(--stb-stage-bg);
    border-bottom: 1px solid rgba(245,243,239,0.08);
  }
}

/* ── 13 · THEME + MOTION ────────────────────────── */
/* Light theme: the right column is still black, so the bar above it gets its own ground. */
@media (min-width: 901px) {
  .stb-home[data-theme="light"] .nav,
  .stb-home[data-theme="light"] .nav.scrolled {
    background: var(--bg);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}
[data-theme="light"] .stb-flow::before {
  height: 22px;
  margin-bottom: -22px;
  background: linear-gradient(180deg, rgba(10,5,0,0.34) 0%, rgba(10,5,0,0) 100%);
}
[data-theme="light"] .stb-l1 {
  background: radial-gradient(86% 52% at 0% 0%, rgba(160,131,56,0.11) 0%, rgba(160,131,56,0) 72%);
}
[data-theme="light"] .stb-l1--ads { background: none; }
[data-theme="light"] .stb-price--both {
  background:
    linear-gradient(135deg, rgba(160,131,56,0.2) 0%, rgba(160,131,56,0.06) 58%, rgba(160,131,56,0.03) 100%),
    var(--card-bg);
  box-shadow: 0 22px 60px -30px rgba(122,94,26,0.55);
}
[data-theme="light"] .stb-cta {
  background:
    radial-gradient(120% 150% at 0% 0%, rgba(160,131,56,0.17) 0%, rgba(160,131,56,0) 62%),
    var(--card-bg);
}

@media (prefers-reduced-motion: reduce) {
  .stb-js .stb-reveal,
  .stb-js .stb-hero [data-rise] {
    opacity: 1;
    transform: none;
  }
}
