/* ==========================================================================
   The Grind - project page
   The palette is the game's own shipping token set: neutral near-black
   surfaces, one house gold, and the two EV signal colours. Nothing else.
   Mobile-first. Every media query is min-width.
   ========================================================================== */

:root {
  --void:   #050505;
  --s1:     #0c0c0c;
  --s2:     #111111;
  --s3:     #151515;
  --s4:     #1a1a1a;
  --gold:   #f5c418;
  --gold-d: #8a6f10;
  --green:  #4db88a;
  --red:    #e05050;
  --felt-g: #254330;
  --text:   #e8ecf4;
  --text-2: #aaaaaa;
  --text-3: #888888;
  --line:   #333333;
  --lamp:   255, 214, 150;
}

body.grind {
  background: var(--void);
  color: var(--text);
}

.grind .skip-link { background: var(--gold); color: #0a0a0a; }

/* --- top bar --------------------------------------------------------------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--void) 84%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.topbar.is-stuck {
  border-bottom-color: #1e1e1e;
  background: color-mix(in srgb, var(--void) 95%, transparent);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  min-height: 60px;
}

/* The brandbook's compact mark, light-ink variant for the noir page. */
.brandmark { display: inline-flex; align-items: center; }
.brandmark img { width: 42px; height: auto; }

/* The section nav does not fit beside the wordmark on a phone, and this is a
   single linear page - so below 640px the scroll IS the navigation. */
.topnav { display: none; }
@media (min-width: 640px) {
  .topnav { display: flex; }
}
.topnav {
  align-items: center;
  gap: clamp(0.75rem, 2.4vw, 1.9rem);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-3);
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.topnav::-webkit-scrollbar { display: none; }
.topnav a {
  padding: 0.5rem 0;
  white-space: nowrap;
  transition: color 0.2s var(--ease);
}
.topnav a:hover { color: var(--gold); }

/* --- hero -------------------------------------------------------------------
   The stage carries the deck of twenty-two, lit by one warm overhead source -
   the same key light the game opens on. Content sits above it at z-index 1;
   the stage never uses a negative index (an animated/composited layer there
   can paint over its siblings).                                              */

/* On a phone the deck sits ABOVE the headline rather than behind it: the top
   padding reserves exactly the deck's height plus air, and the hero is free to
   grow past its min-height to fit. */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: min(100svh, 900px);
  padding-top: calc(min(42svh, 340px) + 5.5rem);
  padding-bottom: var(--gap-xl);
  overflow: hidden;
}

.hero__stage {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

/* the coach, at the table you are about to sit down at */
.hero__plate {
  position: absolute;
  top: 0;
  left: 50%;
  width: 100%;
  height: min(46svh, 380px);
  object-fit: cover;
  object-position: 50% 18%;
  transform: translateX(-50%);
  animation: platedrift 34s ease-in-out infinite alternate;
}
@keyframes platedrift {
  from { transform: translateX(-50%) scale(1.0); }
  to   { transform: translateX(-50%) scale(1.07); }
}

.hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 78% 30% at 50% 2%, rgba(var(--lamp), 0.13), transparent 64%),
    linear-gradient(to bottom, transparent 18%, rgba(5, 5, 5, 0.80) 40%, var(--void) 54%);
}

.hero__inner { position: relative; z-index: 1; width: 100%; }

.hero__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-3);
  margin-bottom: var(--gap-s);
}
.hero__kicker a { transition: color 0.2s var(--ease); }
.hero__kicker a:hover { color: var(--gold); }
.hero__kicker .dot { color: var(--gold-d); }

.hero__title {
  font-size: var(--step-5);
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.005em;
  margin-bottom: 0.35rem;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--step-2);
  letter-spacing: 0.045em;
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--gap-s);
}

.hero__lede {
  color: var(--text-2);
  max-width: 40ch;
  margin-bottom: var(--gap-m);
}

.hero__note {
  margin-top: var(--gap-m);
  font-size: var(--step--1);
  line-height: 1.7;
  color: var(--text-3);
  max-width: 46ch;
}
.hero__note strong { color: var(--text-2); font-weight: 700; }

@media (min-width: 900px) {
  /* room enough to put the plate beside the headline instead of above it */
  .hero { align-items: center; padding-top: var(--gap-xl); }
  .hero__inner { max-width: var(--shell); }
  .hero__lede { max-width: 34ch; }
  .hero__plate {
    top: 0;
    left: auto;
    right: 0;
    width: 58%;
    height: 100%;
    object-position: 50% 26%;
    transform: none;
    animation-name: platedrift-wide;
  }
  @keyframes platedrift-wide {
    from { transform: scale(1.0); }
    to   { transform: scale(1.07); }
  }
  .hero__vignette {
    background:
      radial-gradient(ellipse 46% 58% at 76% 4%, rgba(var(--lamp), 0.14), transparent 62%),
      linear-gradient(to right, var(--void) 14%, rgba(5, 5, 5, 0.80) 44%, transparent 78%),
      linear-gradient(to bottom, transparent 62%, var(--void) 98%);
  }
}

/* --- platform badges ------------------------------------------------------- */

.specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.5rem;
  margin: 0 0 var(--gap-m);
  padding: 0;
  list-style: none;
}
.specs li {
  padding: 0.3rem 0.75rem;
  border: 1px solid #2b2b2b;
  border-radius: 99px;
  background: rgba(12, 12, 12, 0.7);
  font-size: var(--step--1);
  letter-spacing: 0.06em;
  color: var(--text-2);
  white-space: nowrap;
}

/* --- store buttons ------------------------------------------------------------ */

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 52px;
  padding: 0.55rem 1.2rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--s2);
  color: var(--text);
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
a.store:hover { border-color: var(--gold); background: var(--s3); }
.store[aria-disabled='true'] { opacity: 0.72; cursor: default; }

.store__icon {
  width: 24px;
  height: 24px;
  flex: none;
  fill: currentColor;
}
.store__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.store__soon {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-3);
}
.store__text b {
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* --- section rhythm ------------------------------------------------------------ */

.section {
  padding-block: var(--gap-2xl);
  border-top: 1px solid #191919;
}

.sectionhead { margin-bottom: var(--gap-l); }
.sectionhead .eyebrow { color: var(--gold); margin-bottom: var(--gap-s); }
.sectionhead__title {
  font-size: var(--step-3);
  color: var(--text);
  text-wrap: balance;
}
.sectionhead__note {
  margin-top: var(--gap-m);
  max-width: 58ch;
  color: var(--text-2);
}

/* --- thesis ---------------------------------------------------------------------- */

.lead-in { color: var(--gold); margin-bottom: var(--gap-s); }

.statement {
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 1.06;
  max-width: 20ch;
  margin-bottom: var(--gap-xl);
  text-wrap: balance;
}
.statement em {
  font-style: normal;
  color: var(--gold);
}

.claims { display: grid; gap: var(--gap-l); }
@media (min-width: 820px) {
  .claims { grid-template-columns: repeat(3, 1fr); gap: var(--gap-l); }
}
.claim { border-top: 1px solid var(--line); padding-top: var(--gap-m); }
.claim__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--gap-s);
  text-wrap: balance;
}
.claim p { color: var(--text-2); font-size: var(--step-0); }

/* --- the read loop ---------------------------------------------------------------- */

.steps--row { margin-bottom: var(--gap-xl); }
@media (min-width: 860px) {
  .steps--row { grid-template-columns: repeat(4, 1fr); gap: var(--gap-l); }
  .steps--row .step:not(:last-child)::after {
    top: 1.07rem;
    left: 2.5rem;
    right: -1.5rem;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-d), transparent);
  }
}

.steps {
  display: grid;
  gap: var(--gap-m);
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  counter-increment: step;
  position: relative;
  padding-left: 3.1rem;
}
.step::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.1rem;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 1px solid var(--gold-d);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--gold);
}
/* the thread that makes four steps read as one loop */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 1.07rem;
  top: 2.35rem;
  bottom: -1.5rem;
  width: 1px;
  background: linear-gradient(var(--gold-d), transparent);
}
.step__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.3rem;
}
.step p { color: var(--text-2); }

/* --- the read demo -----------------------------------------------------------------
   The read screen in miniature, playable. Pick the habit, confirm, watch the
   card turn over - the same beat the game pays you for.                      */

.readdemo {
  display: grid;
  gap: var(--gap-l);
  padding: var(--gap-m);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(var(--lamp), 0.05), transparent 70%),
    var(--s1);
}
@media (min-width: 780px) {
  .readdemo {
    grid-template-columns: 300px minmax(0, 1fr);
    gap: var(--gap-l);
    align-items: center;
    padding: var(--gap-l);
  }
}

/* Same problem as the carousel: a near-black card needs the game's aura behind
   it or it reads as a floating medallion. */
.readdemo__cardwrap {
  position: relative;
  perspective: 1200px;
  justify-self: center;
  padding: 1.4rem 1.6rem;
}
.readdemo__cardwrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background:
    radial-gradient(ellipse 62% 62% at 50% 46%, rgba(126, 30, 36, 0.60), transparent 72%),
    radial-gradient(ellipse 90% 40% at 50% 4%, rgba(var(--lamp), 0.12), transparent 66%);
}
.readdemo__card {
  position: relative;
  z-index: 1;
  width: clamp(200px, 56vw, 272px);
  aspect-ratio: 200 / 303;
  transform-style: preserve-3d;
  transition: transform 0.85s cubic-bezier(0.5, 0, 0.2, 1);
}
.readdemo__card.is-flipped { transform: rotateY(180deg); }
.readdemo__face {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 8px;
  border: 1px solid #2a2419;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7);
}
.readdemo__face--front { transform: rotateY(180deg); }

.readdemo__seat {
  font-size: var(--step--1);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.readdemo__seat b { color: var(--gold); }
.readdemo__q {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0.2rem 0 0.4rem;
}
.readdemo__hint { color: var(--text-2); margin-bottom: var(--gap-m); }

.readdemo__opts { display: grid; gap: 0.45rem; margin-bottom: var(--gap-m); }
.readdemo__opt {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.9rem;
  text-align: left;
  border: 1px solid #2a2a2a;
  border-radius: 6px;
  background: var(--s2);
  color: var(--text-2);
  font-size: var(--step-0);
  cursor: pointer;
  transition: border-color 0.18s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}
.readdemo__opt:hover { border-color: var(--gold-d); color: var(--text); }
.readdemo__opt.is-picked { border-color: var(--gold); color: var(--gold); background: var(--s3); }
.readdemo__opt.is-right { border-color: var(--green); color: var(--green); }
.readdemo__opt.is-wrong { border-color: var(--red); color: var(--red); }
.readdemo.is-done .readdemo__opt { cursor: default; }

.readdemo__actions { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.btn-gold {
  min-height: 46px;
  padding: 0.6rem 1.4rem;
  border: 0;
  border-radius: 5px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), opacity 0.18s var(--ease);
}
.btn-gold:hover:not(:disabled) { background: #ffd93f; }
.btn-gold:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-plain {
  min-height: 46px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--text-2);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: border-color 0.18s var(--ease), color 0.18s var(--ease);
}
.btn-plain:hover { border-color: var(--gold-d); color: var(--text); }

.readdemo__verdict {
  margin-top: var(--gap-m);
  padding-left: 0.9rem;
  border-left: 2px solid var(--gold-d);
  font-size: var(--step-0);
  color: var(--text-2);
}
.readdemo.is-right .readdemo__verdict { border-left-color: var(--green); }

/* --- lectures ------------------------------------------------------------------------ */

.learn__grid { display: grid; gap: var(--gap-l); }
@media (min-width: 940px) {
  .learn__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: var(--gap-xl); align-items: start; }
}

.lecture {
  max-width: 300px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--s1);
}
.lecture__head {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem var(--gap-m);
  border-bottom: 1px solid var(--line);
}
.lecture__badge {
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  background: var(--gold);
  color: #0a0a0a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.lecture__name {
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-2);
}

/* The lecture is the real screen, captured beat by beat from the shipping
   build (tools: WebsiteShots.cs in the game repo). The beats cross-fade in a
   phone-shaped frame; the game itself is doing the teaching. */
.lecture__frame {
  position: relative;
  aspect-ratio: 480 / 1040;
  max-width: 260px;
  margin-inline: auto;
  background: #06110a;
  overflow: hidden;
}
.lecture__beat {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.45s var(--ease);
}
.lecture__beat.is-on { opacity: 1; }

.lecture__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-m);
  padding: var(--gap-s) var(--gap-m) var(--gap-m);
  border-top: 1px solid var(--line);
}
.lecture__dots { display: flex; gap: 0.4rem; }
.lecture__dot {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  position: relative;
}
.lecture__dot::after {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: #3a3a3a;
  transition: background 0.25s var(--ease);
}
.lecture__dot.is-on::after { background: var(--gold); }
.lecture__next {
  padding: 0.45rem 1rem;
  border: 1px solid var(--gold-d);
  border-radius: 4px;
  background: transparent;
  color: var(--gold);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.18s var(--ease), color 0.18s var(--ease);
}
.lecture__next:hover { background: var(--gold); color: #0a0a0a; }

/* --- the 22 ------------------------------------------------------------------------
   A rail you swipe on a phone, a grid once there is room. The rail is native
   scroll-snap, not a JS carousel: it keeps working with the script disabled. */

/* The live deck of twenty-two.
   The card backs are near-black by design, so on a black page they read as
   floating medallions rather than as cards. The game solves this the same way:
   the read screen pools a warm character aura behind the card. That backdrop is
   painted here in CSS and shows through the transparent canvas. */
.deckstage {
  position: relative;
  height: min(62svh, 520px);
  margin-bottom: var(--gap-l);
  overflow: hidden;
  background:
    radial-gradient(ellipse 52% 62% at 50% 44%, rgba(126, 30, 36, 0.52), transparent 70%),
    radial-gradient(ellipse 82% 46% at 50% 0%, rgba(var(--lamp), 0.13), transparent 62%),
    linear-gradient(180deg, #1b0b0d 0%, #120708 46%, #080405 78%, var(--void) 100%);
}
.deckstage::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, var(--void), transparent 14%, transparent 86%, var(--void)),
    linear-gradient(to bottom, transparent 78%, var(--void));
}
.deck {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.deck__poster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: clamp(132px, 26vw, 190px);
  height: auto;
  transform: translate(-50%, -50%);
  border-radius: 6px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  transition: opacity 0.6s var(--ease);
}
/* once the canvas is live the poster steps aside */
.deck.is-live .deck__poster { opacity: 0; }
.deck canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.cast__note {
  max-width: 58ch;
  margin-top: var(--gap-l);
  padding-left: 1.05rem;
  border-left: 2px solid var(--gold-d);
  color: var(--text-2);
}
.cast__note em { color: var(--gold); font-style: normal; }

/* --- the ladder ----------------------------------------------------------------------
   Fourteen rungs. The bar length encodes the buy-in on a log scale (each rung
   triples, so a linear bar would render the first ten as nothing) and the
   colour is the actual felt the game puts on that table.                      */

.rungs {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid #1e1e1e;
}
.rung {
  display: grid;
  grid-template-columns: 2.9rem 1fr auto;
  grid-template-areas:
    'lvl bar buy'
    'lvl who who';
  align-items: center;
  gap: 0.15rem 0.8rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid #1e1e1e;
}
.rung__lvl {
  grid-area: lvl;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--text-3);
}
.rung__bar {
  grid-area: bar;
  height: 9px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--felt), color-mix(in srgb, var(--felt) 45%, #000));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  transform-origin: left center;
}
.rung__buy {
  grid-area: buy;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--gold);
  text-align: right;
  white-space: nowrap;
}
.rung__who {
  grid-area: who;
  font-size: var(--step--1);
  color: var(--text-3);
}
.rung--boss .rung__lvl,
.rung--boss .rung__who { color: var(--red); }

/* each rung's bar reaches a little further than the one above it */
.rung:nth-child(1)  .rung__bar { width: 20%; }
.rung:nth-child(2)  .rung__bar { width: 25%; }
.rung:nth-child(3)  .rung__bar { width: 31%; }
.rung:nth-child(4)  .rung__bar { width: 36%; }
.rung:nth-child(5)  .rung__bar { width: 42%; }
.rung:nth-child(6)  .rung__bar { width: 47%; }
.rung:nth-child(7)  .rung__bar { width: 53%; }
.rung:nth-child(8)  .rung__bar { width: 58%; }
.rung:nth-child(9)  .rung__bar { width: 64%; }
.rung:nth-child(10) .rung__bar { width: 70%; }
.rung:nth-child(11) .rung__bar { width: 76%; }
.rung:nth-child(12) .rung__bar { width: 83%; }
.rung:nth-child(13) .rung__bar { width: 91%; }
.rung:nth-child(14) .rung__bar { width: 100%; }

@media (min-width: 720px) {
  .rung {
    grid-template-columns: 3.2rem minmax(0, 1fr) 7.5rem 15rem;
    grid-template-areas: 'lvl bar buy who';
    gap: 1.1rem;
    padding: 0.62rem 0;
  }
  .rung__who { text-align: right; }
}

.rungs__key {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: var(--gap-s);
  font-size: var(--step--1);
  color: var(--text-3);
}
.rungs__key img { width: 14px; height: 14px; }

.ladder__foot {
  margin-top: var(--gap-m);
  font-size: var(--step--1);
  color: var(--text-3);
  max-width: 52ch;
}

/* --- the joker tease ------------------------------------------------------------------ */

.tease {
  display: grid;
  gap: var(--gap-m);
  align-items: center;
  margin-top: var(--gap-xl);
  padding: var(--gap-m);
  border: 1px solid #3a2020;
  border-radius: 12px;
  background:
    radial-gradient(ellipse 70% 100% at 12% 50%, rgba(224, 80, 80, 0.07), transparent 70%),
    var(--s1);
}
@media (min-width: 700px) {
  .tease { grid-template-columns: auto minmax(0, 1fr); gap: var(--gap-l); padding: var(--gap-l); }
}
.tease__cards {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}
.tease__cards img {
  width: clamp(66px, 17vw, 96px);
  height: auto;
  border-radius: 6px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.65);
}
.tease__cards img:first-child { transform: rotate(-7deg); }
.tease__cards img:last-child  { transform: rotate(6deg); }
.tease__eyebrow { color: var(--red); margin-bottom: var(--gap-s); }
.tease__text { color: var(--text-2); max-width: 46ch; }
.tease__text strong { color: var(--gold); font-weight: 700; }

/* --- your own tells -------------------------------------------------------------------- */

.mirror { background: linear-gradient(180deg, var(--void), #0a0a0c 50%, var(--void)); }
.mirror .sectionhead { margin-bottom: var(--gap-m); }
.mirror__lede {
  font-size: var(--step-1);
  color: var(--text);
  margin-bottom: var(--gap-m);
  max-width: 46ch;
}

/* --- three-up cards ---------------------------------------------------------------------- */

.cards3 { display: grid; gap: var(--gap-m); }
@media (min-width: 860px) { .cards3 { grid-template-columns: repeat(3, 1fr); gap: var(--gap-l); } }
.card3 {
  padding: var(--gap-m);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--s1);
}
.card3__title {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: var(--gap-s);
  color: var(--gold);
}
.card3 p { color: var(--text-2); }
.card3 b { color: var(--text); font-weight: 700; }

/* --- trainer ---------------------------------------------------------------------- */

.feature { display: grid; gap: var(--gap-l); }
@media (min-width: 900px) {
  .feature {
    grid-template-columns: 330px minmax(0, 1fr);
    gap: var(--gap-xl);
    align-items: start;
  }
  /* the mirror section puts the phone on the other side, so the two
     screenshot blocks on the page do not stack up on one edge */
  .feature--flip { grid-template-columns: minmax(0, 1fr) 330px; }
  .feature--flip .feature__shot { order: 2; }
}
.feature__shot { margin: 0; }
.feature__shot img {
  width: 100%;
  max-width: 330px;
  height: auto;
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.6);
}

.bullets { display: grid; gap: var(--gap-m); margin: 0; padding: 0; list-style: none; }
.bullets li {
  padding-left: 1.05rem;
  border-left: 2px solid var(--gold-d);
  color: var(--text-2);
}
.bullets b {
  display: block;
  color: var(--text);
  font-weight: 700;
  margin-bottom: 0.15rem;
}

/* --- story ------------------------------------------------------------------------- */

.story { position: relative; isolation: isolate; overflow: hidden; }
.story__bg { position: absolute; z-index: 0; inset: 0; }
.story__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  opacity: 0.30;
}
.story__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, var(--void), rgba(5, 5, 5, 0.62) 32%, rgba(5, 5, 5, 0.88) 72%, var(--void));
}
.story__inner { position: relative; z-index: 1; }

.story__cols { display: grid; gap: var(--gap-m); }
.story__cols p { color: var(--text-2); max-width: 54ch; }
@media (min-width: 860px) {
  .story__cols { grid-template-columns: repeat(2, 1fr); gap: var(--gap-l); }
}

.storyfacts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--gap-m);
  margin-top: var(--gap-xl);
  padding-top: var(--gap-m);
  border-top: 1px solid var(--line);
}
@media (min-width: 700px) { .storyfacts { grid-template-columns: repeat(4, 1fr); } }
.storyfacts b {
  display: block;
  font-family: var(--font-display);
  font-size: var(--step-3);
  font-weight: 500;
  line-height: 1;
  color: var(--gold);
}
.storyfacts span {
  display: block;
  margin-top: 0.35rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}

/* --- screens gallery ---------------------------------------------------------------- */

.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 64vw;
  gap: var(--gap-m);
  margin: 0;
  padding: 0.25rem var(--pad) var(--gap-m);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--gold-d) transparent;
}
.gallery::-webkit-scrollbar { height: 6px; }
.gallery::-webkit-scrollbar-track { background: #121212; }
.gallery::-webkit-scrollbar-thumb { background: var(--gold-d); border-radius: 99px; }
.gallery li { scroll-snap-align: center; }
.gallery img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
}
.gallery span {
  display: block;
  margin-top: 0.65rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
@media (min-width: 900px) {
  .gallery {
    grid-auto-flow: row;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    grid-auto-columns: auto;
    max-width: var(--shell);
    margin-inline: auto;
    overflow: visible;
    scroll-snap-type: none;
    gap: var(--gap-l) var(--gap-m);
  }
}

/* --- the deal -------------------------------------------------------------------------- */

.terms { display: grid; gap: 0; margin: 0; border-top: 1px solid #1e1e1e; }
@media (min-width: 780px) {
  .terms { grid-template-columns: repeat(2, 1fr); column-gap: var(--gap-xl); }
}
.term {
  padding: var(--gap-m) 0 var(--gap-m) 2.1rem;
  border-bottom: 1px solid #1e1e1e;
  position: relative;
}
.term::before {
  position: absolute;
  left: 0;
  top: calc(var(--gap-m) + 0.05rem);
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1;
}
.term--yes::before { content: '+'; color: var(--green); }
.term--no::before { content: '-'; color: var(--red); }
.term dt {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.3rem;
}
.term dd { margin: 0; color: var(--text-2); font-size: var(--step-0); }

/* --- close ------------------------------------------------------------------------------ */

.close { text-align: center; }
.close__inner { display: grid; justify-items: center; gap: var(--gap-m); }
.close__title { font-size: var(--step-4); color: var(--gold); }
.close__text { color: var(--text-2); max-width: 40ch; }
.stores--close { justify-content: center; }
.close__legal {
  margin-top: var(--gap-s);
  font-size: var(--step--1);
  color: var(--text-3);
  max-width: 44ch;
}

/* --- legal document ------------------------------------------------------------------------
   A policy nobody can read is not a policy. One narrow column, generous line
   height, real headings, and a summary up top that is honest enough to stand
   on its own.                                                               */

.doc { padding-block: var(--gap-xl) var(--gap-2xl); }
.doc__shell { max-width: 760px; }

.doc__head { margin-bottom: var(--gap-l); }
.doc__kicker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-3);
  margin-bottom: var(--gap-s);
}
.doc__kicker a { transition: color 0.2s var(--ease); }
.doc__kicker a:hover { color: var(--gold); }
.doc__kicker .dot { color: var(--gold-d); }

.doc__title { font-size: var(--step-4); color: var(--gold); margin-bottom: var(--gap-s); }

.doc__dates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.4rem;
  font-size: var(--step--1);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--gap-m);
}

.doc__lede { color: var(--text-2); font-size: var(--step-1); line-height: 1.6; }
.doc a { color: var(--gold); text-decoration: underline; text-underline-offset: 0.18em; }
.doc a:hover { color: var(--text); }

.doc__summary {
  margin-bottom: var(--gap-xl);
  padding: var(--gap-m);
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  background: var(--s1);
}
.doc__summaryTitle {
  font-family: var(--font-display);
  font-size: var(--step-1);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--gap-s);
}
.doc__summary ul { display: grid; gap: 0.7rem; padding: 0; margin: 0; list-style: none; }
.doc__summary li { color: var(--text-2); padding-left: 1.1rem; position: relative; }
.doc__summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold-d);
}
.doc__summary b { color: var(--text); }

.doc__body h2 {
  font-family: var(--font-display);
  font-size: var(--step-2);
  font-weight: 500;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: var(--gap-l) 0 var(--gap-s);
  padding-top: var(--gap-m);
  border-top: 1px solid #1e1e1e;
}
.doc__body h2:first-child { margin-top: 0; }
.doc__body p { color: var(--text-2); margin-bottom: 1em; }
.doc__body strong { color: var(--text); font-weight: 700; }
.doc__body em { color: var(--text); font-style: italic; }
.doc__body ul, .doc__body ol {
  display: grid;
  gap: 0.65rem;
  margin: 0 0 1.2em;
  padding-left: 1.35rem;
  color: var(--text-2);
}
.doc__body ul { list-style: disc; }
.doc__body ol { list-style: decimal; }
.doc__body li { padding-left: 0.2rem; }
.doc__body li::marker { color: var(--gold-d); }
.doc__body li b { color: var(--text); }

.doc__note {
  padding: var(--gap-s) var(--gap-m);
  border-left: 2px solid var(--gold-d);
  background: var(--s1);
  font-size: var(--step--1);
}

.doc__contact a {
  font-family: var(--font-display);
  font-size: var(--step-2);
  text-decoration: none;
  border-bottom: 2px solid var(--gold-d);
  padding-bottom: 0.1em;
  overflow-wrap: anywhere;
}

.doc__back { margin-top: var(--gap-xl); }
.doc__backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--text-2);
}
.doc__backlink:hover { color: var(--gold); }

/* --- footer ------------------------------------------------------------------------------- */

.footer {
  border-top: 1px solid #1e1e1e;
  padding-block: var(--gap-l);
  font-size: var(--step--1);
  color: var(--text-3);
}
.footer__inner { display: flex; flex-direction: column; gap: var(--gap-m); }
.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.07em;
  color: var(--text-2);
}
.footer__brand img { width: 22px; height: auto; }
.footer__nav { display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; letter-spacing: 0.08em; }
.footer__nav a { padding: 0.35rem 0; transition: color 0.2s var(--ease); }
.footer__nav a:hover { color: var(--gold); }

@media (min-width: 780px) {
  .footer__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .footer__legal { order: 3; width: 100%; padding-top: var(--gap-s); }
}
