:root {
  --gold: #D4AF37;
  --gold-dim: rgba(212, 175, 55, 0.35);
  --gold-faint: rgba(212, 175, 55, 0.12);
  --gold-tint: rgba(212, 175, 55, 0.05);
  --black: #0A0A0A;
  --panel: #121212;
  --gray: #333333;
  --gray-text: #9A9A9A;
  --white: #ECECEC;
  --font: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
  --topbar: 52px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* clip rather than hidden: hidden makes body a scroll container and breaks sticky */
body { overflow-x: clip; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}

/* Film grain over the flat black, same treatment as the quiz site */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.container {
  max-width: 620px;
  margin: 0 auto;
  padding: 36px 20px 48px;
  position: relative;
  z-index: 1;
}

.container.has-topbar { padding-top: calc(var(--topbar) + 28px); }

/* Top bar: brand mark, phase label, progress */
.topbar {
  align-items: center;
  background: var(--black);
  border-bottom: 1px solid var(--gray);
  display: flex;
  height: var(--topbar);
  justify-content: space-between;
  left: 0;
  padding: 0 20px;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
}

.topbar[hidden] { display: none; }

.topbar__mark { height: 26px; width: auto; }

.topbar__phase {
  color: var(--gold);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.progress {
  background: var(--gold-faint);
  bottom: -1px;
  height: 4px;
  left: 0;
  position: absolute;
  width: 100%;
}

.progress__fill {
  background: var(--gold);
  height: 100%;
  transition: width 320ms ease;
  width: 0;
}

/* Screen scaffolding */
.screen { display: flex; flex-direction: column; gap: 20px; }

.screen.is-entering { animation: rise 220ms ease-out both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.nav { min-height: 20px; }

.back {
  background: none;
  border: 0;
  color: var(--gray-text);
  cursor: pointer;
  font-family: var(--font);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 14px 0;
  text-transform: uppercase;
}

.back:hover { color: var(--gold); }

.eyebrow {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

h1 {
  color: var(--gold);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  outline: none;
}

/* Reveal moments: results, outcome. Two or three words set big. */
h1.h1--reveal {
  font-size: 48px;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

h2 {
  color: var(--gold);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

p { color: var(--white); }

.sub { color: var(--gray-text); }

.small { font-size: 13px; line-height: 1.55; }

/* Numbered instructions. The number sits on the body baseline. */
.steps {
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 12px;
  list-style: none;
}

.steps li {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 16px 1fr;
}

.steps li::before {
  color: var(--gold);
  content: counter(step);
  counter-increment: step;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.83;
}

/* Landing hero */
.hero { display: flex; flex-direction: column; gap: 20px; }

.lockup { align-self: flex-start; display: block; height: 56px; width: auto; }

.who {
  align-items: center;
  border-top: 1px solid var(--gray);
  display: flex;
  gap: 16px;
  padding-top: 20px;
}

.who__photo {
  border: 1px solid var(--gold-dim);
  flex: none;
  height: 110px;
  object-fit: cover;
  object-position: 50% 18%;
  width: 88px;
}

.who__line {
  color: var(--gray-text);
  font-size: 14px;
  line-height: 1.5;
}

/* Video players */
.player {
  background: var(--panel);
  border: 1px solid var(--gray);
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
}

.player--vertical {
  aspect-ratio: 9 / 16;
  margin-inline: auto;
  width: min(100%, 39vh);
}

.player--pending {
  align-items: center;
  background: var(--gold-tint);
  border-color: var(--gold-dim);
  color: var(--gray-text);
  display: flex;
  font-size: 13px;
  justify-content: center;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

/* Mistake clips */
.mistakes { border-top: 1px solid var(--gray); padding-top: 14px; }

.mistakes > summary {
  color: var(--gold);
  cursor: pointer;
  font-size: 13px;
  letter-spacing: 0.1em;
  list-style: none;
  padding: 10px 0;
  text-transform: uppercase;
}

.mistakes > summary::-webkit-details-marker { display: none; }

.mistakes > summary::after { content: ' +'; }

.mistakes[open] > summary::after { content: ' \2212'; }

.mistakes__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 14px;
}

/* Buttons */
.btn {
  background: var(--gold);
  border: 1px solid var(--gold);
  color: var(--black);
  cursor: pointer;
  display: block;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.02em;
  padding: 16px 18px;
  text-align: center;
  text-decoration: none;
  transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
  width: 100%;
}

.btn:hover { background: #E0BF62; }

.btn--outline {
  background: none;
  border-color: var(--gold-dim);
  color: var(--white);
}

.btn--outline:hover { background: var(--gold-faint); border-color: var(--gold); }

/* Tap acknowledged: fills gold for a beat before the next screen */
.btn--outline.is-pressed {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.btn--placeholder {
  background: var(--panel);
  border-color: var(--gray);
  color: var(--gray-text);
  cursor: not-allowed;
}

.answers { display: flex; flex-direction: column; gap: 12px; }

/* Answers ride the bottom of the viewport while the video and steps scroll,
   then settle into place at the end of the page so the footer stays reachable. */
.answers--sticky {
  background: var(--black);
  border-top: 1px solid var(--gray);
  bottom: 0;
  margin: 0 -20px;
  padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  position: sticky;
}

.answers--row { flex-direction: row; gap: 10px; }

.answers--row .btn { flex: 1; font-size: 15px; padding: 16px 6px; }

.swap {
  background: none;
  border: 0;
  color: var(--gold);
  cursor: pointer;
  font-family: var(--font);
  font-size: 14px;
  padding: 12px 0;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Gate form */
.field { display: flex; flex-direction: column; gap: 8px; }

label {
  color: var(--gray-text);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hint { color: var(--gray-text); font-size: 13px; margin-top: -4px; }

input[type="text"], input[type="email"] {
  background: var(--panel);
  border: 1px solid var(--gray);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  padding: 14px;
  width: 100%;
}

input:focus { border-color: var(--gold); outline: none; }

.choice { display: flex; gap: 12px; }

.choice .btn { flex: 1; }

.choice .btn[aria-pressed="true"] {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--black);
}

.error { color: #C0614A; font-size: 13px; }

.honeypot { left: -9999px; position: absolute; top: auto; }

/* Findings and CTA */
.findings { display: flex; flex-direction: column; gap: 22px; list-style: none; }

.findings li {
  border-left: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
}

.finding__what { font-weight: 500; }

/* Same gold rule as a finding, for a line that has to land. */
.callout {
  border-left: 2px solid var(--gold);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-left: 14px;
}

.callout h2 { font-size: 17px; }

.finding__why { color: var(--gray-text); font-size: 15px; line-height: 1.55; }

.cta {
  background: var(--gold-tint);
  border: 1px solid var(--gold-dim);
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px 20px;
}

.cta__price {
  color: var(--gold);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1;
}

.cta__note { color: var(--gray-text); font-size: 14px; line-height: 1.5; }

.cta__photo {
  border: 1px solid var(--gray);
  display: block;
  height: auto;
  width: 100%;
}

.cta__guarantee { color: var(--white); font-size: 15px; line-height: 1.5; }

.rule { background: var(--gray); border: 0; height: 1px; }

.footer { color: var(--gray-text); font-size: 12px; line-height: 1.5; }

@media (min-width: 560px) {
  h1 { font-size: 36px; }
  h1.h1--reveal { font-size: 60px; }
  .container { padding: 48px 24px 56px; }
  .container.has-topbar { padding-top: calc(var(--topbar) + 40px); }
  .topbar { padding: 0 24px; }

  /* Photo moves to the right of the headline block */
  .hero {
    column-gap: 28px;
    display: grid;
    grid-template-areas:
      "lockup photo"
      "headline photo"
      "sub photo"
      "line photo";
    grid-template-columns: 1fr 200px;
    grid-template-rows: auto auto auto 1fr;
    row-gap: 20px;
  }
  .hero .lockup { grid-area: lockup; }
  .hero h1 { grid-area: headline; }
  .hero .sub { grid-area: sub; }
  .hero .who { display: contents; }
  .hero .who__photo {
    align-self: start;
    grid-area: photo;
    height: 300px;
    object-position: 50% 30%;
    width: 200px;
  }
  .hero .who__line { align-self: end; grid-area: line; }
}

/* Short phones: the reveal headline was pushing the CTA below the fold. */
@media (max-height: 700px) {
  h1.h1--reveal { font-size: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  .screen.is-entering { animation: none; }
  .progress__fill, .btn { transition: none; }
}
