@font-face {
  font-family: "Soap";
  src: url("assets/fonts/soap-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0d0f14;
  --bg-raised: #141414;
  --surface: #212121;
  --yellow: #f4c70f;
  --yellow-soft: rgba(244, 199, 15, 0.07);
  --yellow-line: rgba(244, 199, 15, 0.5);
  --text: #fff;
  --text-muted: rgba(255, 255, 255, 0.8);
  --text-dim: rgba(255, 255, 255, 0.6);
  --code-string: #14cb6f;
  --code-id: #00aaff;
  --font-sans: "Poppins", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-display: "Soap", "Poppins", sans-serif;
  --container: 1200px;
  --radius: 20px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: inherit; }

.container { width: min(var(--container), 100% - 40px); margin-inline: auto; }
.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* ---------- Shared building blocks ---------- */

.grid-bg {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 24px;
  background: var(--yellow);
  color: #000;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(244, 199, 15, 0.25); }
.button--wide { min-width: 392px; }
.button--full { width: 100%; }

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 24px;
}

.glow-frame {
  border: 2px solid var(--yellow);
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(244, 199, 15, 0.45);
  object-fit: cover;
}

.eyebrow {
  font-family: var(--font-mono);
  color: var(--text-dim);
  text-align: center;
  margin-bottom: 8px;
}
.eyebrow--left { text-align: left; }

.section-title {
  font-size: 52px;
  line-height: 1.15;
  font-weight: 500;
  text-align: center;
}
.section-title i { font-weight: 400; }
.section-title .accent, .accent { color: var(--yellow); }
.section-title--left { text-align: left; }
.section-title--spaced { margin-top: 120px; }

.divider {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin: 24px 0 40px;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 14px;
}
.divider::before {
  content: "";
  order: 1;
  flex: 1;
  border-top: 1px dotted var(--yellow-line);
}
.divider span:last-child { order: 2; }
.divider--tight { margin: 16px 0; }

.section { padding: 120px 0; }
.section--raised { background: var(--bg-raised); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  inset: 20px 20px auto;
  z-index: 50;
  display: flex;
  justify-content: center;
}
.nav {
  width: min(1360px, 100%);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 20px;
  border-radius: 16px;
  background: rgba(33, 33, 33, 0.85);
  backdrop-filter: blur(12px);
}
.nav__brand {
  font-family: var(--font-mono);
  font-size: 24px;
  letter-spacing: -1px;
  text-decoration: none;
}
.nav .button { min-width: 198px; }

/* ---------- Hero ---------- */

.hero { padding: 200px 0 140px; }
.hero__inner {
  display: grid;
  grid-template-columns: 445px 1fr;
  gap: 60px;
  align-items: center;
}
.hero__media { position: relative; padding-bottom: 40px; }
.hero__photo { width: 441px; aspect-ratio: 1; }

.code-card {
  position: absolute;
  left: -48px;
  bottom: 0;
  margin: 0;
  padding: 20px 24px;
  border: 1px solid var(--yellow-line);
  border-radius: 16px;
  background: rgba(13, 15, 20, 0.92);
  box-shadow: 0 0 30px rgba(244, 199, 15, 0.2);
  font-family: var(--font-mono);
  font-size: 16px;
  line-height: 24px;
  color: var(--text);
}
.tok-key { color: var(--yellow); }
.tok-id { color: var(--code-id); }
.tok-str { color: var(--code-string); }

.hero__title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 64px;
  line-height: 1.12;
  margin-bottom: 24px;
}
.hero__title .word { display: inline-block; }
.hero__title mark {
  background: var(--yellow);
  color: var(--bg);
  border-radius: 10px;
  padding: 0 14px;
}
.cursor {
  display: inline-block;
  width: 50px;
  height: 10px;
  margin-left: 2px;
  border-radius: 10px;
  background: var(--text);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.hero__lead {
  font-size: 24px;
  line-height: 1.42;
  letter-spacing: -0.5px;
  color: var(--text-muted);
  margin-bottom: 32px;
}
.hero__lead strong { font-weight: 700; color: var(--text); }

/* ---------- Testimonials ---------- */

.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.testimonial { display: flex; flex-direction: column; gap: 8px; }
.testimonial:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  width: calc(50% - 12px);
  justify-self: center;
}
.video { border-radius: 12px; overflow: hidden; background: #000; }
/* Reserve space until Wistia's player script defines the element */
wistia-player:not(:defined) { display: block; aspect-ratio: 16 / 9; }
.testimonial__body { flex: 1; display: flex; flex-direction: column; gap: 12px; }
.testimonial__body h3 { font-size: 20px; line-height: 28px; font-weight: 400; font-style: italic; }
.testimonial__body p { color: var(--text-muted); }
.testimonial__body .testimonial__author { color: var(--text); font-weight: 500; white-space: pre-wrap; }
.stars { color: var(--yellow); letter-spacing: 2px; }

.section--raised .center { margin-top: 48px; }

/* ---------- Feature cards ---------- */

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }

.feature h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  margin-bottom: 12px;
}
.feature h3 img { flex: none; }
.feature p { color: var(--text-muted); }
.feature__icon { margin-left: auto; }
.bullet { color: var(--yellow); font-family: var(--font-mono); font-size: 16px; }

/* ---------- Weekly schedule ---------- */

.schedule {
  background: #1a1a1a;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  padding: 24px;
}
.schedule__title { font-size: 32px; font-weight: 500; line-height: 1.2; }
.schedule__tag {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--yellow);
  margin: 6px 0 24px;
}
.schedule__tabs, .schedule__nav { display: none; }

.schedule__grid, .schedule__row {
  display: grid;
  grid-template-columns: 90px repeat(4, 1fr) 1fr;
  gap: 8px;
  margin-bottom: 8px;
}
.schedule__head {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  text-align: center;
}
.schedule__head--span { grid-column: 2 / 6; }
.schedule__head--sunday {
  background: var(--yellow-soft);
  border: 1px solid var(--yellow-line);
  color: var(--yellow);
}

.schedule__cell {
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.schedule__cell small {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.schedule__cell p { font-size: 14px; line-height: 20px; font-weight: 500; }
.schedule__cell--sd p { font-size: 16px; line-height: 22px; }
.schedule__cell--week {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--yellow-soft);
  border-color: rgba(244, 199, 15, 0.12);
}
.schedule__cell--week small { color: var(--yellow); margin: 0; }
.schedule__cell--week span { font-family: var(--font-mono); font-size: 24px; }
.schedule__cell--sunday { background: var(--yellow-soft); border-color: var(--yellow-line); }
.schedule__cell--sunday small { color: var(--yellow); }

/* ---------- For you / included ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 546px;
  gap: 40px;
  align-items: center;
  margin: 40px 0;
}
.split__img { width: 100%; aspect-ratio: 546 / 560; }

.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { position: relative; padding-left: 32px; color: var(--text); }
.checklist li::before {
  content: ">.";
  position: absolute;
  left: 0;
  color: var(--yellow);
  font-family: var(--font-mono);
}
.checklist--large li { font-size: 20px; line-height: 28px; }

.included {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  margin-top: 40px;
  background: linear-gradient(135deg, var(--surface) 60%, rgba(244, 199, 15, 0.1));
}
.included__img { width: 100%; aspect-ratio: 546 / 400; object-fit: cover; border-radius: 12px; }

/* ---------- Story ---------- */

.story {
  display: grid;
  grid-template-columns: 445px 1fr;
  gap: 64px;
  align-items: start;
}
.story__aside { position: sticky; top: 120px; display: grid; gap: 16px; }
.story__photos { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.story__photos img { width: 100%; aspect-ratio: 2 / 3; }

.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { text-align: center; }
.stat__value { font-size: 44px; line-height: 1.2; font-weight: 500; margin-bottom: 8px; }
.stat p:last-child { color: var(--text-muted); }

.story__main .section-title { margin-bottom: 24px; }
.story__intro { text-align: center; }
.story__intro p { color: var(--text-muted); }
.story__intro u { color: var(--yellow); text-underline-offset: 3px; }
.green { color: var(--code-string); }
.logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 24px 40px;
  padding: 8px 0;
}

.timeline { list-style: none; padding: 0; margin-bottom: 40px; }
.timeline li { position: relative; padding-left: 36px; }
.timeline li h3 {
  margin-left: -36px;
  display: flex;
  gap: 12px;
  font-size: 24px;
  line-height: 32px;
  font-weight: 500;
  margin-bottom: 8px;
}
.timeline li p { color: var(--text-muted); }
.timeline li:not(:last-child)::after {
  content: "";
  display: block;
  width: 14px;
  height: 30px;
  margin: 16px 0 16px 4px;
  background: url("assets/img/squiggle-a.svg") no-repeat center / contain;
}
.timeline li:nth-child(even):not(:last-child)::after { background-image: url("assets/img/squiggle-b.svg"); }

/* ---------- CTA + footer ---------- */

.cta { padding: 160px 0; border-top: 1px solid rgba(255, 255, 255, 0.04); }
.cta .section-title { margin-bottom: 12px; }
.cta__sub { color: var(--text-muted); margin-bottom: 32px; }

.footer {
  padding: 40px 20px;
  text-align: center;
  background: var(--bg-raised);
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin-top: 12px;
  font-size: 14px;
}
.footer__links a { color: var(--text-dim); text-decoration: none; }
.footer__links a:hover { color: var(--yellow); }

/* ---------- Cookie consent ---------- */

.consent {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 100;
  width: min(420px, 100% - 40px);
  padding: 20px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--yellow-line);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  line-height: 20px;
}
.consent p { color: var(--text-muted); margin-bottom: 16px; }
.consent a { color: var(--yellow); }
.consent__actions { display: flex; justify-content: flex-end; gap: 12px; }
.consent__actions .button { padding: 8px 20px; font-size: 14px; }
.consent__decline {
  padding: 8px 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

/* ---------- Legal pages ---------- */

.legal { padding: 160px 0 100px; }
.legal .container { max-width: 760px; }
.legal h1 { font-size: 40px; line-height: 1.2; font-weight: 500; margin-bottom: 8px; }
.legal h2 { font-size: 22px; font-weight: 500; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--yellow); }
.legal .legal__meta { color: var(--text-dim); font-size: 14px; }

/* ---------- Scroll reveal ---------- */

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .hero__title .word { opacity: 0; transform: translateY(12px); transition: opacity 0.4s ease, transform 0.4s ease; }
.js .hero__title.is-typed .word { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .hero__title .word { opacity: 1; transform: none; transition: none; }
  .cursor { animation: none; }
}

/* ---------- Carousel controls (mobile only) ---------- */

.carousel__controls { display: none; }
.carousel__btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--yellow-line);
  background: transparent;
  color: var(--yellow);
  font-family: var(--font-mono);
  font-size: 16px;
  cursor: pointer;
}
.carousel__btn:hover { background: var(--yellow-soft); }

/* ---------- Tablet ---------- */

@media (max-width: 1199px) {
  .hero__inner, .story { grid-template-columns: 1fr; }
  .hero__media { justify-self: center; }
  .hero__text { text-align: center; }
  .hero__lead { font-size: 20px; }
  .story__aside { position: static; max-width: 560px; margin-inline: auto; width: 100%; }
  .split { grid-template-columns: 1fr; }
  .split__img { max-width: 546px; margin-inline: auto; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Mobile ---------- */

@media (max-width: 809px) {
  .section { padding: 80px 0; }
  .section-title { font-size: 34px; }
  .section-title--spaced { margin-top: 80px; }
  .hero { padding: 130px 0 80px; }
  .hero__title { font-size: 40px; }
  .hero__photo { width: min(441px, 100vw - 80px); }
  .code-card { left: -12px; font-size: 13px; line-height: 20px; padding: 14px 18px; }
  .hero__lead { font-size: 18px; }
  .button--wide { min-width: 0; width: 100%; }
  .nav__brand { font-size: 16px; }
  .nav .button { min-width: 0; padding: 10px 18px; font-size: 14px; }
  .site-header { inset: 12px 12px auto; }

  /* Stack all card grids vertically on phones: centred, full width, normal scrolling */
  .testimonials, .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .testimonial:last-child:nth-child(odd) { grid-column: auto; width: auto; }

  .feature h3 { font-size: 20px; line-height: 28px; }

  /* Schedule becomes one week at a time with tabs */
  .schedule__grid { display: none; }
  .schedule__tabs { display: flex; gap: 6px; margin-bottom: 12px; }
  .schedule__tabs button {
    flex: 1;
    padding: 8px 0;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    font-family: var(--font-mono);
    cursor: pointer;
  }
  .schedule__tabs button[aria-selected="true"] { background: var(--yellow-soft); border-color: var(--yellow-line); color: var(--yellow); }
  .schedule__row { grid-template-columns: 1fr; }
  .schedule__row:not(.is-active) { display: none; }
  .schedule__nav { display: flex; justify-content: center; gap: 12px; margin-top: 12px; }

  .included { grid-template-columns: 1fr; }
  .stat__value { font-size: 34px; }
  .timeline li h3 { font-size: 20px; line-height: 28px; }
  .checklist--large li { font-size: 18px; }
}
