/* ============================================================
   THE VISCERAL FAT FIX — Landing page
   Palette & type matched to reference: near-black base,
   hot orange accents, condensed bold uppercase display type.
   ============================================================ */

:root {
  --black: #0b0908;
  --black-soft: #141110;
  --panel: #1b1614;
  --panel-edge: #2a221e;
  --orange: #ff7a1a;
  --orange-hot: #ff5e00;
  --orange-soft: #ffa14d;
  --white: #ffffff;
  --muted: #b9b1aa;
  --muted-dark: #7d746d;
  --error: #ff6b5e;
  --success: #6fcf97;
  --gray-tape: #3a3835;
  --display: "Oswald", "Arial Narrow", sans-serif;
  --body: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 14px;
  --container: 1140px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { max-width: 100%; display: block; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.container.narrow { max-width: 780px; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- Type ---------- */

.eyebrow {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 18px;
}

.section-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2rem, 4.5vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: 0.015em;
}

.section-title.centered { text-align: center; }

.accent { color: var(--orange); }

.title-rule {
  width: 64px;
  height: 4px;
  background: linear-gradient(90deg, var(--orange-hot), var(--orange-soft));
  border-radius: 2px;
  margin: 26px 0 30px;
}

.prose p { color: var(--muted); font-size: 1.06rem; margin-bottom: 1.25em; max-width: 62ch; }
.prose p:last-child { margin-bottom: 0; }
.prose em { color: var(--white); font-style: italic; }

.desktop-br { display: none; }
@media (min-width: 760px) { .desktop-br { display: block; } }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  padding: 16px 32px;
  min-height: 52px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  color: #1a0d02;
  box-shadow: 0 6px 26px rgba(255, 106, 0, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(255, 106, 0, 0.5); }

.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
}

.btn-secondary:hover { border-color: var(--orange); color: var(--orange-soft); }

.btn:focus-visible {
  outline: 3px solid var(--orange-soft);
  outline-offset: 3px;
}

.btn-sm { padding: 11px 22px; min-height: 44px; font-size: 0.88rem; }
.btn-lg { padding: 19px 44px; font-size: 1.12rem; }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.centered-row { justify-content: center; }

/* ---------- Header ---------- */

/* Fixed so it overlays the hero video, then gains a solid ground on scroll. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease,
              backdrop-filter 0.35s ease, padding 0.35s ease;
}

/* Soft top scrim so the logo stays legible over bright video frames */
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(6, 5, 4, 0.7), transparent);
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.site-header.scrolled {
  background: rgba(11, 9, 8, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.site-header.scrolled::before { opacity: 0; }

.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-top: 18px;
  padding-bottom: 18px;
  transition: padding 0.35s ease;
}

.site-header.scrolled .header-inner {
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--white);
  text-decoration: none;
  white-space: nowrap;
}

.logo span { color: var(--orange); }

.header-nav { display: none; gap: 24px; }

/* Four items now — needs more room than the old 860px before it crowds the CTA */
@media (min-width: 940px) { .header-nav { display: flex; } }

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: color 0.15s ease;
}

.nav-link:hover, .nav-link:focus-visible { color: var(--orange-soft); }

a:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; border-radius: 3px; }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 120px 0 110px;
  overflow: hidden;
  /* Fallback ground: if the video is slow or fails, this still reads as designed */
  background:
    radial-gradient(ellipse 900px 520px at 50% 42%, rgba(255, 94, 0, 0.14), transparent 62%),
    var(--black);
}

/* ---- Video layer ---- */

.hero-media {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Slight upward bias keeps heads in frame on short/wide viewports */
  object-position: 50% 42%;
}

/* The fade-in is a .js enhancement; without scripting the poster/video shows at once */
.js .hero-video {
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 1.1s ease, transform 1.6s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}

.js .hero-video.ready { opacity: 1; transform: scale(1); }

/* Layered scrim. The centre ellipse is sized to the dark corridor that sits
   between the two figures in the footage (roughly 40%–63% of frame width),
   so the copy lands in the gap and the glow stays bright at the edges. */
.hero-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    /* 1 — centre pocket for the copy */
    radial-gradient(ellipse 34% 64% at 50% 50%,
      rgba(6, 5, 4, 0.94) 0%,
      rgba(6, 5, 4, 0.88) 44%,
      rgba(6, 5, 4, 0.58) 72%,
      rgba(6, 5, 4, 0.14) 92%,
      transparent 100%),
    /* 2 — top shade so the header reads over bright frames */
    linear-gradient(to bottom,
      rgba(6, 5, 4, 0.78) 0%,
      rgba(6, 5, 4, 0.2) 20%,
      transparent 36%),
    /* 3 — base fade, dissolves into the next section with no seam */
    linear-gradient(to top,
      var(--black) 0%,
      rgba(11, 9, 8, 0.9) 9%,
      rgba(11, 9, 8, 0.35) 24%,
      transparent 46%),
    /* 4 — global knock-down so the footage sits behind the type */
    linear-gradient(rgba(6, 5, 4, 0.18), rgba(6, 5, 4, 0.18));
}

/* Warm tint ties the footage to the brand palette */
.hero-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 60%, rgba(255, 94, 0, 0.1), transparent 70%);
  mix-blend-mode: screen;
}

/* Phones crop to roughly the middle quarter of the frame — which is the dark
   corridor itself. Ease off the centre pocket and let the figures' glow read
   as warm ambient light at the edges instead. */
@media (max-width: 760px) {
  .hero-scrim {
    background:
      radial-gradient(ellipse 80% 46% at 50% 50%,
        rgba(6, 5, 4, 0.82) 0%,
        rgba(6, 5, 4, 0.58) 55%,
        rgba(6, 5, 4, 0.16) 85%,
        transparent 100%),
      linear-gradient(to bottom, rgba(6, 5, 4, 0.8) 0%, rgba(6, 5, 4, 0.25) 22%, transparent 40%),
      linear-gradient(to top, var(--black) 0%, rgba(11, 9, 8, 0.92) 11%, transparent 44%);
  }
}

/* ---- Centred hero copy ---- */

.hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.hero-copy {
  max-width: 740px;
  text-align: center;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}

.hero-copy .eyebrow { text-align: center; }

.hero-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.9rem, 9vw, 5.6rem);
  line-height: 0.96;
  letter-spacing: 0.012em;
  margin-bottom: 0;
}

.hero-rule {
  width: 72px;
  height: 3px;
  margin: 30px auto 28px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--orange), transparent);
}

.hero-subhead {
  font-size: clamp(1.08rem, 2.1vw, 1.32rem);
  font-weight: 600;
  color: var(--white);
  max-width: 30em;
  margin: 0 auto 16px;
}

.hero-support {
  color: #cfc7c0;
  font-size: 1.02rem;
  max-width: 34em;
  margin: 0 auto 38px;
}

/* Frosted secondary button so it holds up over moving footage */
.btn-glass {
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.45);
}

/* ---- Scroll cue ---- */

.hero-scroll {
  position: absolute;
  left: 50%;
  bottom: 34px;
  transform: translateX(-50%);
  z-index: 2;
  display: block;
  width: 28px;
  height: 54px;
  border-radius: 14px;
}

.hero-scroll-line {
  position: absolute;
  left: 50%;
  top: 0;
  width: 1px;
  height: 100%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.22);
  overflow: hidden;
}

.hero-scroll-line::after {
  content: "";
  position: absolute;
  left: 0;
  width: 100%;
  height: 42%;
  background: linear-gradient(to bottom, transparent, var(--orange));
  animation: scrollcue 2.4s cubic-bezier(0.7, 0, 0.3, 1) infinite;
}

@keyframes scrollcue {
  0%   { top: -45%; opacity: 0; }
  25%  { opacity: 1; }
  75%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* ---- Staggered hero entrance ---- */

/* Hidden starting state is scoped to .js — without scripting the copy is simply visible */
.js .reveal {
  opacity: 0;
  transform: translateY(20px);
}

.js .hero.loaded .reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.85s ease var(--d, 0ms), transform 0.85s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0ms);
}

/* The scroll cue is centred with translateX — keep it when revealing */
.js .hero-scroll.reveal { transform: translate(-50%, 20px); }
.js .hero.loaded .hero-scroll.reveal { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .hero-scroll.reveal,
  .js .hero.loaded .hero-scroll.reveal { transform: translateX(-50%); }
  .js .hero-video { opacity: 1; transform: none; transition: none; }
  .hero-scroll-line::after { animation: none; opacity: 0.5; top: 30%; }
}

/* ---------- Product shot: front + back cover pair ---------- */

.book-pair {
  position: relative;
  width: min(440px, 100%);
  margin: 0 auto;
  aspect-ratio: 1 / 1;
}

.book-img {
  position: absolute;
  height: auto;
  filter: drop-shadow(22px 28px 38px rgba(0, 0, 0, 0.62));
}

.book-img-back {
  width: 62%;
  top: 1%;
  right: 0;
  transform: rotate(4deg);
}

.book-img-front {
  width: 73%;
  bottom: 0;
  left: 0;
}

@media (max-width: 620px) {
  .book-pair { width: min(360px, 100%); }
}


/* ---------- Diagonal ribbons ---------- */

.ribbon-band {
  position: relative;
  height: 150px;
  overflow: hidden;
  background: var(--black);
}

.ribbon {
  position: absolute;
  left: -5%;
  width: 110%;
  padding: 12px 0;
  overflow: hidden;
  white-space: nowrap;
}

.ribbon-orange {
  top: 34px;
  transform: rotate(-2.4deg);
  background: linear-gradient(90deg, var(--orange-hot), var(--orange));
  z-index: 2;
  box-shadow: 0 10px 30px rgba(255, 94, 0, 0.3);
}

.ribbon-gray {
  top: 64px;
  transform: rotate(2.2deg);
  background: var(--gray-tape);
  z-index: 1;
}

.ribbon-track { display: inline-block; animation: slide 38s linear infinite; }

.ribbon-gray .ribbon-track { animation-direction: reverse; animation-duration: 46s; }

.ribbon-track span {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.ribbon-orange .ribbon-track span { color: #1a0d02; }
.ribbon-gray .ribbon-track span { color: rgba(255, 255, 255, 0.75); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Sections (shared) ---------- */

.section { padding: 96px 0; }

/* Keep anchored sections clear of the fixed header */
.section[id] { scroll-margin-top: 76px; }

@media (max-width: 700px) { .section { padding: 68px 0; } }

.section-head { margin-bottom: 56px; text-align: center; }
.section-head .eyebrow { text-align: center; }

/* ---------- Problem ---------- */

.section-problem {
  background:
    radial-gradient(ellipse 800px 400px at 15% 20%, rgba(255, 122, 26, 0.06), transparent 60%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- UGC video fan ---------- */

.section-ugc {
  background:
    radial-gradient(ellipse 900px 460px at 50% 0%, rgba(255, 94, 0, 0.08), transparent 62%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.section-ugc .section-lede { max-width: 60ch; margin-left: auto; margin-right: auto; }
.section-ugc .section-lede em { color: var(--white); font-style: italic; }

/* --fan-unit converts the arc's design units into pixels; shrink it and the
   whole fan shrinks proportionally. */
.fan {
  --fan-unit: 15px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 33rem;
  margin-top: 8px;
}

.fan-card {
  position: absolute;
  width: 212px;
  aspect-ratio: 9 / 16;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  cursor: pointer;
  z-index: var(--z);
  transform:
    translate(calc(var(--tx) * var(--fan-unit)), calc(var(--ty) * var(--fan-unit)))
    rotate(var(--rot))
    scale(var(--sc));
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
}

.fan-card:hover,
.fan-card:focus-visible {
  border-color: rgba(255, 122, 26, 0.55);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 122, 26, 0.25);
}

.fan-card:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 4px; }

.fan-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Play / mute indicator */
.fan-state {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: rgba(6, 5, 4, 0.6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
}

.fan-state svg { width: 16px; height: 16px; grid-area: 1 / 1; }

/* which glyph shows: idle = play, playing muted = muted, playing loud = sound */
.ico-muted, .ico-sound { display: none; }
.fan-card.is-playing .ico-play { display: none; }
.fan-card.is-playing .ico-muted { display: block; }
.fan-card.is-playing.is-loud .ico-muted { display: none; }
.fan-card.is-playing.is-loud .ico-sound { display: block; }


/* ---- Scroll-mode navigation (mobile / reduced-motion) ---- */

.fan-nav { display: none; }

.fan-arrow {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.fan-arrow svg { width: 20px; height: 20px; }
.fan-arrow:hover { color: var(--orange); border-color: rgba(255, 122, 26, 0.6); background: rgba(255, 122, 26, 0.1); }
.fan-arrow:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; }
.fan-arrow[disabled] { opacity: 0.3; cursor: default; }

.fan-dots { display: flex; align-items: center; gap: 9px; }

.fan-dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.fan-dot.is-active { background: var(--orange); transform: scale(1.35); }
.fan-dot:focus-visible { outline: 2px solid var(--orange-soft); outline-offset: 4px; }

.fan-hint {
  margin-top: 26px;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.ugc-note {
  margin-top: 14px;
  text-align: center;
  color: var(--muted-dark);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* Narrower desktops: tighten the arc before it can reach the container edge */
@media (max-width: 1180px) { .fan { --fan-unit: 12px; height: 29rem; } }

/* Below the fan's comfortable width, and for reduced-motion users, drop the
   arc entirely for a swipeable row — far easier to actually watch. */
@media (max-width: 999px), (prefers-reduced-motion: reduce) {
  .fan {
    position: static;
    height: auto;
    display: flex;
    justify-content: flex-start;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 6px 4px 20px;
    scrollbar-width: thin;
  }

  .fan-card {
    position: static;
    flex: 0 0 min(238px, 64vw);
    transform: none;
    scroll-snap-align: center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .fan-hint { display: none; }

  /* goTo() calls scrollTo() with no explicit behavior, so it inherits this. */
  .fan { scroll-behavior: smooth; }

  .fan-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 10px;
  }
}

/* Jump rather than glide for anyone who asked for less motion. Separate block
   so it only overrides the behaviour, not the whole row layout above. */
@media (prefers-reduced-motion: reduce) {
  .fan { scroll-behavior: auto; }
}

/* ---------- Testimonials ---------- */

.section-testimonials { background: var(--black); overflow: hidden; }

.section-lede {
  text-align: center;
  color: var(--muted);
  margin-top: 16px;
  font-size: 1.02rem;
}

.testimonial-columns {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 22px;
  padding: 0 24px;
  max-height: 640px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 15%, #000 85%, transparent);
}

.t-col { flex: 0 1 380px; max-width: 380px; }

/* display:contents lets both sets share the track's single flex rhythm,
   so the -50% loop lands exactly on a card boundary */
.t-set { display: contents; }

.t-track {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding-bottom: 22px;   /* must equal the gap for a seamless loop */
  animation: t-scroll var(--dur, 56s) linear infinite;
}

@keyframes t-scroll {
  to { transform: translateY(-50%); }
}

.testimonial-columns.paused .t-track,
.testimonial-columns:hover .t-track,
.testimonial-columns:focus-within .t-track { animation-play-state: paused; }

.t-card {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-radius: 18px;
  padding: 30px 28px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.t-quote {
  margin: 0;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.68;
}

.t-quote::before {
  content: "\201C";
  display: block;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.6rem;
  line-height: 0.55;
  color: var(--orange);
  margin-bottom: 16px;
}

.t-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.t-author img {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 161, 77, 0.35);
}

.t-meta { display: flex; flex-direction: column; }
.t-name { font-weight: 600; color: var(--white); font-size: 0.95rem; }
.t-role { color: var(--muted-dark); font-size: 0.86rem; }

/* WCAG 2.2.2 — moving content that auto-starts needs a stop control */
.t-toggle {
  display: block;
  margin: 30px auto 0;
  padding: 9px 20px;
  min-height: 40px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.t-toggle:hover { color: var(--orange-soft); border-color: rgba(255, 122, 26, 0.5); }
.t-toggle:focus-visible { outline: 3px solid var(--orange-soft); outline-offset: 3px; }

/* Below the 2-column breakpoint, and for reduced-motion users, the marquee
   becomes a plain stacked list — easier to read and nothing moves. */
@media (max-width: 860px) {
  .testimonial-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 480px;
    margin: 0 auto;
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .t-col { flex: none; max-width: none; }
  .t-track { animation: none; padding-bottom: 0; gap: 18px; }
  .t-dup { display: none; }
  .t-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .testimonial-columns {
    max-height: none;
    overflow: visible;
    -webkit-mask-image: none;
    mask-image: none;
  }
  .t-track { animation: none; padding-bottom: 0; }
  .t-dup { display: none; }
  .t-toggle { display: none; }
}

/* ---------- System / habit cards ---------- */

.section-system { background: var(--black); }

.habit-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 620px) { .habit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .habit-grid { grid-template-columns: repeat(4, 1fr); } }

.habit-card {
  position: relative;
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-radius: var(--radius);
  padding: 30px 26px 28px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.habit-card:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, 0.45); }

.habit-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.14em;
  color: var(--orange);
  display: block;
  margin-bottom: 20px;
}

.habit-num::after {
  content: "";
  display: block;
  width: 30px;
  height: 3px;
  margin-top: 8px;
  background: linear-gradient(90deg, var(--orange-hot), transparent);
  border-radius: 2px;
}

.habit-icon { display: block; width: 40px; height: 40px; color: var(--orange-soft); margin-bottom: 18px; }
.habit-icon svg { width: 100%; height: 100%; }

.habit-name {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.25rem;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.habit-desc { color: var(--muted); font-size: 0.95rem; }

.system-note {
  text-align: center;
  color: var(--muted);
  margin-top: 44px;
  font-size: 1.02rem;
}

.system-note em { color: var(--white); }

/* ---------- What's inside ---------- */

.section-inside {
  background:
    radial-gradient(ellipse 900px 500px at 88% 80%, rgba(255, 94, 0, 0.08), transparent 60%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 900px) { .split { grid-template-columns: 1.1fr 0.9fr; } }

.split-visual { display: flex; justify-content: center; }

.check-list {
  list-style: none;
  margin-bottom: 38px;
}

.check-list li {
  position: relative;
  padding: 14px 0 14px 40px;
  color: var(--muted);
  font-size: 1.03rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.check-list li:last-child { border-bottom: none; }

.check-list li strong { color: var(--white); }

.check-list li::before {
  content: "+";
  position: absolute;
  left: 0;
  top: 10px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.3rem;
  color: var(--orange);
}

/* ---------- Who it's for ---------- */

.section-who { background: var(--black); }

.who-list {
  list-style: none;
  max-width: 620px;
  margin: 48px auto 0;
}

.who-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 0;
  font-size: 1.06rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.who-list li:last-child { border-bottom: none; }

.who-mark { color: var(--orange); flex-shrink: 0; margin-top: 2px; }

.who-note {
  text-align: center;
  color: var(--muted-dark);
  margin-top: 36px;
  font-size: 0.98rem;
}

/* ---------- Newsletter ---------- */

.section-newsletter { background: var(--black); padding-top: 40px; }

.newsletter-panel {
  position: relative;
  background:
    radial-gradient(ellipse 600px 300px at 50% -10%, rgba(255, 122, 26, 0.13), transparent 65%),
    linear-gradient(175deg, var(--panel), #14100e);
  border: 1px solid rgba(255, 122, 26, 0.3);
  border-radius: 20px;
  padding: 64px 28px;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}

@media (min-width: 700px) { .newsletter-panel { padding: 72px 72px; } }

.newsletter-lede {
  color: var(--muted);
  max-width: 46em;
  margin: 22px auto 36px;
  font-size: 1.04rem;
}

.newsletter-lede strong { color: var(--white); }

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 520px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .newsletter-form { flex-direction: row; }
  .newsletter-form input { flex: 1; }
}

.newsletter-form input {
  font-family: var(--body);
  font-size: 1rem;
  padding: 15px 20px;
  min-height: 52px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.45);
  color: var(--white);
}

.newsletter-form input::placeholder { color: var(--muted-dark); }

.newsletter-form input:focus-visible {
  outline: 3px solid var(--orange-soft);
  outline-offset: 2px;
  border-color: var(--orange);
}

.newsletter-micro {
  margin-top: 18px;
  font-size: 0.88rem;
  color: var(--muted-dark);
}

/* ---------- Form submission states (shared: newsletter + contact) ---------- */

/* Off-screen rather than display:none — some bots skip fields hidden that way */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  font-weight: 600;
}

.form-status[data-state="success"] { color: var(--success); }
.form-status[data-state="error"] { color: var(--error); }

.btn.is-loading { opacity: 0.7; cursor: progress; pointer-events: none; }

.btn.is-loading .btn-label { visibility: hidden; }

.btn.is-loading {
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(0, 0, 0, 0.25);
  border-top-color: #1a0d02;
  animation: btn-spin 0.7s linear infinite;
}

@keyframes btn-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::after { animation: none; }
}

/* ---------- Reassurance ---------- */

.section-reassure {
  background:
    radial-gradient(ellipse 700px 400px at 10% 90%, rgba(255, 94, 0, 0.06), transparent 60%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.reassure-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) { .reassure-grid { grid-template-columns: 1fr 1fr; } }

.reassure-card {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 26px 28px;
}

.reassure-card h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.reassure-card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Final CTA ---------- */

.section-final {
  position: relative;
  padding: 130px 0;
  background:
    radial-gradient(ellipse 900px 500px at 50% 110%, rgba(255, 94, 0, 0.2), transparent 65%),
    var(--black);
  overflow: hidden;
  text-align: center;
}

.final-glow {
  position: absolute;
  left: 50%;
  bottom: -180px;
  width: 640px;
  height: 340px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(255, 122, 26, 0.22), transparent 65%);
  pointer-events: none;
}

.final-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem);
  line-height: 1.02;
  margin-bottom: 26px;
}

.final-lede {
  color: var(--muted);
  font-size: 1.08rem;
  max-width: 42em;
  margin: 0 auto 42px;
}

.final-lede em { color: var(--white); }

/* ---------- Footer ---------- */

.site-footer {
  background: #080606;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  padding: 56px 0 40px;
}

.footer-brand {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.06em;
  font-size: 1rem;
  margin-bottom: 22px;
}

.footer-brand span { color: var(--orange); }

.disclaimer {
  color: var(--muted-dark);
  font-size: 0.86rem;
  line-height: 1.7;
  max-width: 72ch;
  margin-bottom: 30px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 24px;
  color: var(--muted-dark);
  font-size: 0.88rem;
}

.footer-links { display: flex; gap: 10px; align-items: center; }

.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover, .footer-links a:focus-visible { color: var(--orange-soft); }

/* ---------- Sub-pages (privacy / terms / contact) ---------- */

/* No video hero on these pages, so the header is solid from the start */
.site-header--solid {
  position: sticky;
  background: rgba(11, 9, 8, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255, 255, 255, 0.07);
}

.site-header--solid::before { opacity: 0; }

.page-head {
  padding: 72px 0 56px;
  background:
    radial-gradient(ellipse 800px 380px at 50% -10%, rgba(255, 94, 0, 0.12), transparent 65%),
    var(--black-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.page-head .eyebrow { text-align: center; }

.page-title {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  line-height: 1.05;
}

.page-updated {
  margin-top: 18px;
  color: var(--muted-dark);
  font-size: 0.9rem;
}

.legal { padding: 64px 0 96px; }

.legal h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.3rem;
  color: var(--white);
  margin: 48px 0 6px;
}

.legal h2:first-child { margin-top: 0; }

.legal h2 + .rule-sm { margin-bottom: 20px; }

.rule-sm {
  width: 44px;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange-hot), transparent);
  margin: 10px 0 20px;
}

.legal h3 {
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--white);
  margin: 26px 0 8px;
}

.legal p,
.legal li {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.75;
}

.legal p { margin-bottom: 1.1em; }

.legal ul { margin: 0 0 1.3em 0; padding-left: 0; list-style: none; }

.legal ul li {
  position: relative;
  padding: 6px 0 6px 26px;
}

.legal ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 17px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}

.legal strong { color: var(--white); }

.legal a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }
.legal a:hover { color: var(--orange); }

/* Callout used for the medical-advice notice */
.legal-callout {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 24px 26px;
  margin: 0 0 2em;
}

.legal-callout p:last-child { margin-bottom: 0; }

/* ---------- Contact page ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: start;
}

@media (min-width: 880px) {
  .contact-grid { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.contact-form { display: flex; flex-direction: column; gap: 18px; }

.field { display: flex; flex-direction: column; gap: 7px; }

.field label {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 1rem;
  color: var(--white);
  background: rgba(0, 0, 0, 0.45);
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 14px 16px;
  min-height: 52px;
  width: 100%;
}

.field textarea { min-height: 150px; resize: vertical; line-height: 1.6; }

.field input::placeholder,
.field textarea::placeholder { color: var(--muted-dark); }

.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: 3px solid var(--orange-soft);
  outline-offset: 2px;
  border-color: var(--orange);
}

.field-hint { color: var(--muted-dark); font-size: 0.86rem; }

.contact-aside {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 32px 30px;
}

.contact-aside h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.1rem;
  margin-bottom: 14px;
}

.contact-aside h2:not(:first-child) { margin-top: 30px; }

.contact-aside p { color: var(--muted); font-size: 0.97rem; margin-bottom: 1em; }
.contact-aside p:last-child { margin-bottom: 0; }
.contact-aside a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Thank-you pages ---------- */

.ty-head {
  padding: 84px 0 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 760px 400px at 50% -5%, rgba(255, 94, 0, 0.16), transparent 65%),
    var(--black-soft);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.ty-head .eyebrow { text-align: center; }

.ty-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  margin-bottom: 26px;
  border-radius: 50%;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
  border: 1.5px solid rgba(255, 122, 26, 0.45);
  box-shadow: 0 0 36px rgba(255, 122, 26, 0.22);
}

.ty-badge svg { width: 30px; height: 30px; }

.ty-lede {
  margin: 24px auto 0;
  max-width: 46em;
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
}

.ty-lede strong { color: var(--white); }

.ty-subnote {
  margin: 16px auto 0;
  max-width: 44em;
  color: var(--muted-dark);
  font-size: 0.95rem;
}

/* ---- Numbered steps ---- */

.section-ty-steps { background: var(--black); }

.ty-intro { color: var(--muted); font-size: 1.03rem; margin-bottom: 34px; max-width: 60ch; }

.steps { list-style: none; counter-reset: none; }

.step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.step:last-child { border-bottom: none; }

.step-num {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.35);
}

.step h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.08rem;
  margin-bottom: 6px;
}

.step p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.step p strong { color: var(--white); }
.step p em { color: var(--orange-soft); font-style: normal; }

.ty-fallback {
  margin-top: 30px;
  color: var(--muted-dark);
  font-size: 0.96rem;
}

.ty-fallback a,
.ty-intro a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---- Two-up detail cards ---- */

.section-ty-detail {
  background:
    radial-gradient(ellipse 800px 420px at 85% 100%, rgba(255, 94, 0, 0.07), transparent 62%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 820px) { .ty-grid { grid-template-columns: 1fr 1fr; } }

.ty-card {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-radius: 16px;
  padding: 32px 30px;
}

.ty-card h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.ty-card .check-list { margin-bottom: 0; }
.ty-card .check-list li { font-size: 0.98rem; }

.ty-tip {
  margin-top: 26px;
  padding: 24px 28px;
  border-radius: 12px;
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--orange);
  background: rgba(27, 22, 20, 0.6);
}

.ty-tip p { color: var(--muted); font-size: 1rem; line-height: 1.7; }
.ty-tip strong { color: var(--white); }

/* ---- Offer block ---- */

.section-ty-offer { background: var(--black); }

.ty-offer {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px;
  align-items: center;
}

@media (min-width: 880px) {
  .ty-offer { grid-template-columns: 1.15fr 0.85fr; gap: 64px; }
}

.ty-offer-copy p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin-bottom: 1.1em;
  max-width: 56ch;
}

.ty-offer-copy p em { color: var(--white); font-style: italic; }
.ty-offer-copy .cta-row { margin-top: 30px; }

.ty-offer-visual { display: flex; justify-content: center; }

.ty-offer-visual img {
  width: min(300px, 74%);
  height: auto;
  filter: drop-shadow(20px 26px 36px rgba(0, 0, 0, 0.6));
}

/* ---- Simple centred block ---- */

.ty-simple { max-width: 660px; margin: 0 auto; text-align: center; }
.ty-simple .eyebrow { text-align: center; }

.ty-simple p {
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.75;
  margin: 20px 0 32px;
}

/* ---- FAQ ---- */

.faq { display: flex; flex-direction: column; gap: 18px; }

.faq-item {
  background: linear-gradient(170deg, var(--panel), #151110);
  border: 1px solid var(--panel-edge);
  border-left: 3px solid var(--orange);
  border-radius: 10px;
  padding: 24px 26px;
}

.faq-item h3 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.03rem;
  margin-bottom: 8px;
}

.faq-item p { color: var(--muted); font-size: 0.99rem; line-height: 1.7; }
.faq-item p em { color: var(--white); font-style: italic; }
.faq-item a { color: var(--orange-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Resources page ---------- */

.section-resources { background: var(--black); }

.res-grid {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 660px)  { .res-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .res-grid { grid-template-columns: repeat(3, 1fr); } }

/* Soft card: flatter and lighter than the panel cards elsewhere, so the
   icon and the download control carry the visual weight. */
.res-card {
  display: flex;
  flex-direction: column;
  padding: 30px 28px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.022);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.res-card:hover {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(255, 122, 26, 0.35);
  transform: translateY(-3px);
}

.res-card--feature {
  background: rgba(255, 122, 26, 0.05);
  border-color: rgba(255, 122, 26, 0.28);
}

.res-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--orange);
  background: rgba(255, 122, 26, 0.1);
  border: 1px solid rgba(255, 122, 26, 0.24);
}

.res-icon svg { width: 25px; height: 25px; }

/* column-reverse puts the chapter label above the title without
   disturbing the heading order in the DOM */
.res-head {
  display: flex;
  flex-direction: column-reverse;
  align-items: flex-start;
  gap: 9px;
  margin-bottom: 12px;
}

.res-chapter {
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--orange);
}

.res-title {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-size: 1.24rem;
  line-height: 1.18;
}

.res-desc {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.68;
  margin-bottom: 26px;
  flex: 1;              /* keeps every download control on one baseline */
}

.res-foot {
  display: flex;
  align-items: center;
  gap: 16px;
}

.res-meta {
  color: var(--muted-dark);
  font-size: 0.8rem;
  line-height: 1.35;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

/* ---- Expanding download button ----
   Collapsed to a circle, widens to a pill revealing the label. Driven by
   hover on the whole card (a 52px circle is a small target) and by keyboard
   focus. Devices without hover get the full pill permanently — see below. */

.dl-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 999px;
  overflow: hidden;
  text-decoration: none;
  color: #1a0d02;
  background: linear-gradient(135deg, var(--orange), var(--orange-hot));
  box-shadow: 0 6px 20px rgba(255, 106, 0, 0.28);
  transition: width 0.34s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.3s ease;
}

.dl-glyph {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.dl-glyph svg { width: 21px; height: 21px; }

.dl-label {
  opacity: 0;
  white-space: nowrap;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transition: opacity 0.22s ease;
}

.dl-btn:focus-visible {
  outline: 3px solid var(--orange-soft);
  outline-offset: 3px;
}

@media (hover: hover) {
  .res-card:hover .dl-btn,
  .dl-btn:hover,
  .dl-btn:focus-visible {
    width: 186px;
    box-shadow: 0 10px 28px rgba(255, 106, 0, 0.46);
  }

  .res-card:hover .dl-glyph,
  .dl-btn:hover .dl-glyph,
  .dl-btn:focus-visible .dl-glyph { opacity: 0; transform: scale(0.78); }

  .res-card:hover .dl-label,
  .dl-btn:hover .dl-label,
  .dl-btn:focus-visible .dl-label { opacity: 1; transition-delay: 0.08s; }

  /* The pill needs the room, and "PDF · 1 page" isn't what you need to know
     at the moment you're reaching for the button. */
  .res-card:hover .res-meta,
  .res-card:focus-within .res-meta { opacity: 0; }
}

/* No hover to reveal the label on touch, and a bare arrow in a circle is a
   guessing game — so give touch devices a full-width pill that says what it
   does. Same for anyone who has asked for reduced motion. */
@media (hover: none), (prefers-reduced-motion: reduce) {
  .res-foot { flex-direction: column; align-items: stretch; gap: 12px; }

  .dl-btn {
    width: 100%;
    gap: 10px;
    transition: none;
  }

  .dl-glyph {
    position: static;
    width: auto;
    height: auto;
    opacity: 1;
    transform: none;
  }

  .dl-label { opacity: 1; }
  .res-meta { text-align: center; }
}

/* ---- Bundle strip ---- */

.res-bundle {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  margin-top: 34px;
  padding: 28px 32px;
  border-radius: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(27, 22, 20, 0.45);
}

.res-bundle h2 {
  font-family: var(--display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 1.15rem;
  margin-bottom: 6px;
}

.res-bundle p { color: var(--muted); font-size: 0.97rem; }

.section-res-notes {
  background:
    radial-gradient(ellipse 700px 380px at 12% 0%, rgba(255, 94, 0, 0.06), transparent 62%),
    var(--black-soft);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.section-res-notes .faq { margin-top: 8px; }

/* ---------- Scroll animation ---------- */

/* Scoped to .js so a script failure can never leave the page blank */
.js .fade-up {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.js .fade-up.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .js .fade-up { opacity: 1; transform: none; transition: none; }
}
