/* ============================================================
   Fonts
   ============================================================ */
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Italic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Playfair Display";
  src: url("fonts/PlayfairDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Light.ttf") format("truetype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-RomanItalic.ttf") format("truetype");
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Roman.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-RomanItalic.ttf") format("truetype");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Mediu.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-MediumItalic.ttf") format("truetype");
  font-weight: 500;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Neue Haas Display";
  src: url("fonts/NeueHaasDisplay-Black.ttf") format("truetype");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SF Mono";
  src: url("fonts/SF-Mono.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Roc Grotesk Wide";
  src: url("fonts/rocGroteskMediumWide.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Roc Grotesk Wide";
  src: url("fonts/rocGroteskBoldWide.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ============================================================
   Base
   ============================================================ */
:root {
  --black: #000000;
  --white: #ffffff;
  --offwhite: #fffdfb;
  --red: #ff0000;
  --maxw: 1440px;
  --pad: 24px;
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Neue Haas Display", "Helvetica Neue", Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* The overscroll / rubber-band area paints the root (canvas) background,
     so tint it with the page's red-to-purple gradient instead of black.
     A matching solid color is the reliable fallback the bounce always shows. */
  /* Overscroll color is driven by script.js: a red/purple gradient at the
     very top of the page and solid black everywhere else, so the top bounce
     keeps the gradient while the bottom bounce is black. */
  background-color: var(--black);
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-size: 100% 100%;
  background-position: top center;
}

body {
  margin: 0;
  background-color: var(--black);
  color: var(--white);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
  width: 100%;
}

.serif {
  font-family: var(--serif);
  font-weight: 400;
}
.italic {
  font-style: italic;
}
.red {
  color: var(--red);
}
.muted {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Top navigation
   ============================================================ */
.nav {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 100;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px 0 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 0.5px solid rgba(255, 255, 255, 0.6);
  border-radius: 4px;
  box-shadow: 0 37px 82px rgba(0, 0, 0, 0.1);
  transform-origin: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.45s ease;
}
.nav.is-hidden {
  transform: translateY(-160%);
  opacity: 0;
  pointer-events: none;
}

/* ============================================================
   Page progress header (replaces nav after the hero)
   ============================================================ */
.progress-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 101;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 64px;
  padding: 16px 24px;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.4s ease;
}
.progress-nav.is-visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.progress-nav__links {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.progress-nav__links a {
  display: inline-flex;
  align-items: center;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1;
  color: rgba(0, 0, 0, 0.4);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.progress-nav__links a:hover {
  color: rgba(0, 0, 0, 0.7);
}
.progress-nav__links a.active {
  color: #000;
}
.nav__cta,
.progress-nav__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 20px;
  border-radius: 4px;
  background: #000;
  color: #fff;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 14px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s ease, background 0.2s ease;
}
.nav__cta:hover,
.progress-nav__cta:hover {
  background: #1a1a1a;
  transform: translateY(-1px);
}
.nav__cta {
  margin-left: auto;
}

.nav__brand {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 22px;
  letter-spacing: normal;
  color: #000;
  text-decoration: none;
}

.nav__links {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 40px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__links a {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: normal;
  color: rgba(0, 0, 0, 0.6);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}
.nav__links a:first-child,
.nav__links a:hover {
  color: #000;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
  padding-top: 0;
  padding-bottom: 140px;
}

.hero__cards {
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: flex-start;
  height: 1055px;
  margin-top: -31px;
}

.hero__headline {
  display: grid;
  font-family: var(--sans);
  font-weight: 400;
  color: #000;
  text-align: center;
  max-width: 900px;
  margin: 90px auto 0;
  font-size: clamp(20px, 3.5vw, 50px);
  line-height: 1.05;
  letter-spacing: normal;
}
/* Invisible full headline reserves final layout so typing never shifts the page. */
.hero__headline-sizer,
.hero__headline-live {
  grid-area: 1 / 1;
}
.hero__headline-sizer {
  visibility: hidden;
  pointer-events: none;
  user-select: none;
}
.hero__headline-prefix {
  animation: headlineFadeIn 1.1s ease-out both;
}
.hero__headline-cursor {
  display: inline-block;
  width: 0.055em;
  height: 0.82em;
  margin-left: 0.04em;
  vertical-align: baseline;
  background: var(--red);
  animation: headlineCursorBlink 1s step-end infinite;
}
@keyframes headlineFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes headlineCursorBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* ============================================================
   Audio gradient cards
   ============================================================ */
.audio-card {
  position: relative;
  width: 150px;
  min-width: 150px;
  height: var(--h, 540px);
  margin-top: var(--t, 0);
  border-radius: 8px;
  overflow: hidden;
  color: #fff;
  flex: 0 0 auto;
  font-family: var(--sans);
  will-change: height, transform;
  animation: cardWave 4.5s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -0.43s);
}

/* The band expands/contracts vertically and bobs up and down, staggered by
   position, so the row reads as a travelling wave. Inner text is absolutely
   positioned and the card animates `height` (not scaleY), so text never
   stretches. */
@keyframes cardWave {
  0%,
  100% {
    height: var(--h, 540px);
    transform: translateY(0);
  }
  50% {
    height: calc(var(--h, 540px) + 64px);
    transform: translateY(-32px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .audio-card {
    animation: none;
  }
  .hero__headline-prefix {
    animation: none;
  }
  .hero__headline-cursor {
    animation: none;
    opacity: 1;
  }
}
.audio-card > span {
  position: absolute;
}
.ac-skip {
  right: 8px;
  top: 22px;
  font-size: 6px;
  font-weight: 300;
  letter-spacing: 0.3px;
  color: rgba(255, 255, 255, 0.6);
}
.ac-track {
  left: 3px;
  top: 40px;
  width: 144px;
  height: 1.5px;
  background: rgba(255, 255, 255, 0.15);
}
.ac-track::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 94%;
  background: #fff;
}
.ac-options {
  left: 50%;
  transform: translateX(-50%);
  top: 47px;
  padding: 3px 6px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 5px;
  font-weight: 300;
  color: #fff;
  white-space: nowrap;
}
.ac-count {
  right: 6px;
  top: 52px;
  font-size: 6px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.6);
}
.ac-word {
  left: 6px;
  top: 150px;
}
.ac-word b {
  display: block;
  font-weight: 500;
  font-size: 15px;
  line-height: 1;
}
.ac-word span {
  display: block;
  font-weight: 300;
  font-size: 6px;
  color: rgba(255, 255, 255, 0.6);
}
.ac-back {
  left: 4px;
  top: 226px;
  font-size: 6.5px;
  font-weight: 500;
}
.ac-next {
  right: 4px;
  top: 226px;
  font-size: 6.5px;
  font-weight: 500;
}
.ac-pause {
  left: 50%;
  transform: translateX(-50%);
  top: 226px;
  width: 7px;
  height: 9px;
  background:
    linear-gradient(#fff, #fff) left / 2.5px 100% no-repeat,
    linear-gradient(#fff, #fff) right / 2.5px 100% no-repeat;
}
.ac-commit {
  left: 3px;
  top: 261px;
  width: 9px;
  height: 9px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Ccircle cx='4.5' cy='4.5' r='2' fill='none' stroke='white' stroke-width='0.8'/%3E%3Cline x1='0' y1='4.5' x2='2.5' y2='4.5' stroke='white' stroke-width='0.8'/%3E%3Cline x1='6.5' y1='4.5' x2='9' y2='4.5' stroke='white' stroke-width='0.8'/%3E%3C/svg%3E");
}
.ac-wave {
  right: 4px;
  top: 262px;
  width: 9px;
  height: 9px;
  background-repeat: no-repeat;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cg fill='white'%3E%3Crect x='0' y='3' width='1' height='3'/%3E%3Crect x='2' y='1.5' width='1' height='6'/%3E%3Crect x='4' y='0' width='1' height='9'/%3E%3Crect x='6' y='2' width='1' height='5'/%3E%3Crect x='8' y='3.5' width='1' height='2'/%3E%3C/g%3E%3C/svg%3E");
}
.ac-scrub {
  left: 3px;
  top: 275px;
  width: 144px;
  height: 6px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.06);
  overflow: hidden;
}
.ac-scrub::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 11%;
  background: #000;
}

.grad-silver {
  background: linear-gradient(
    180deg,
    #0a0a0a 0%,
    #1c2226 9%,
    #2f3941 19%,
    #415160 28%,
    #536870 38%,
    #788793 54%,
    #9ca6ad 69%,
    #c1c5c8 84%,
    #e5e4e2 100%
  );
}
.grad-red {
  background: linear-gradient(
    180deg,
    #aa0003 0%,
    #ad171e 5%,
    #af2d39 10%,
    #b24454 20%,
    #b55a70 30%,
    #ba87a6 60%,
    #bfb4dc 80%,
    #fafbfd 100%
  );
}
.grad-gold {
  background: linear-gradient(
    180deg,
    #550003 0%,
    #61150a 5%,
    #6e2b10 10%,
    #87561e 40%,
    #9f802b 60%,
    #b8ab38 80%,
    #ccc166 90%,
    #e0d794 100%
  );
}
.grad-peach {
  background: linear-gradient(
    180deg,
    #4e2c23 0%,
    #733e31 10%,
    #984f3f 20%,
    #bd614d 31%,
    #e2725b 41%,
    #f1a68a 70%,
    #ffdab9 100%
  );
}

/* ============================================================
   Generic dark/light section helpers
   ============================================================ */
.section {
  position: relative;
  padding: 120px 0;
}
.section--black {
  background: var(--black);
  color: #fff;
}
.section--white {
  background: var(--offwhite);
  color: #000;
}

.h-display {
  font-family: var(--sans);
  font-weight: 400;
  letter-spacing: normal;
  line-height: 1.02;
  margin: 0;
}
.h-xxl {
  font-size: clamp(28px, 4.5vw, 50px);
}
.h-xl {
  font-size: clamp(20px, 3vw, 30px);
}

.lead {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.4);
}
.section--white .lead {
  color: rgba(0, 0, 0, 0.4);
}
.lead b {
  color: #fff;
  font-weight: 500;
}
.section--white .lead b {
  color: #000;
}

/* ============================================================
   Interests section
   ============================================================ */
.interests__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
  margin-top: 80px;
}
.interests__phone {
  border-radius: 32px;
  box-shadow: 0 63px 63px rgba(0, 0, 0, 0.09), 0 16px 35px rgba(0, 0, 0, 0.1);
  max-width: 268px;
  justify-self: center;
}
.interests__copy {
  min-width: 0;
}
.interests__copy .h-xl {
  margin-bottom: 32px;
}

.prompts-block {
  margin-top: 96px;
}
.eyebrow {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  margin: 0 0 8px;
}

/* The carousel viewport starts at the left edge of the right column and bleeds
   off the right edge of the screen, so the trailing card is clipped. */
.prompts-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  margin-right: calc(-1 * (var(--pad) + max(0px, (100vw - var(--maxw)) / 2)));
}
.prompts-viewport::-webkit-scrollbar {
  display: none;
}

/* Card metrics taken from Figma: 308x160, 8px gap, 20px radius, text inset
   16px from the left and 36px from the top. */
.prompts {
  display: flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  padding-right: var(--pad);
}
.prompt-card {
  position: relative;
  flex: 0 0 308px;
  width: 308px;
  min-height: 160px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.2);
  box-shadow: inset 0 4px 10px rgba(227, 246, 251, 0.25);
  padding: 36px 12px 24px 16px;
  font-size: 16px;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.3);
  scroll-snap-align: start;
}
.prompt-card b {
  color: #fff;
  font-weight: 400;
}
.carousel-controls {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 36px;
  margin-right: calc(-1 * (var(--pad) + max(0px, (100vw - var(--maxw)) / 2)));
  padding-right: var(--pad);
}
.carousel-controls button {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 8px;
  background: transparent;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.carousel-controls button[disabled] {
  opacity: 0.35;
  cursor: default;
}
.carousel-controls button:last-child {
  background: var(--red);
}
.carousel-controls img {
  width: 24px;
  height: 24px;
}

/* ============================================================
   Infinite section
   ============================================================ */
.infinite__headline {
  margin: 0 0 64px;
}
.infinite-copy {
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(36px, 5.5vw, 80px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0;
}
.infinite-copy b {
  color: #fff;
  font-weight: 300;
}
.infinite-copy i {
  font-style: italic;
}

.phones-pair {
  display: flex;
  gap: 40px;
  justify-content: center;
  margin: 100px 0 60px;
}
.phones-pair img {
  width: 313px;
  border-radius: 32px;
}
.surface-note {
  font-weight: 500;
  font-size: 32px;
  line-height: 1.3;
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
  color: rgba(255, 255, 255, 0.4);
}
.surface-note b {
  color: #fff;
  font-weight: 500;
}

/* comparison table */
.compare {
  margin-top: 80px;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}
.compare__head,
.compare__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.compare__head h3 {
  font-weight: 500;
  font-size: 40px;
  margin: 0;
}
.compare__label {
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 8px;
}
.compare__value {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 60px;
  margin: 0;
  line-height: 1;
}
.compare__value img {
  width: 100px;
  height: 100px;
}
.compare__foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  padding: 16px 0;
}
.compare__foot span {
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
}

.centered-headline {
  text-align: center;
  margin: 120px auto 0;
}

/* ============================================================
   Generate artifacts section
   ============================================================ */
.generate {
  position: relative;
  overflow: hidden;
}
.generate__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.generate__copy {
  max-width: 420px;
}
.generate__copy .h-xl {
  margin-bottom: 40px;
}
.artifact-list {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.15);
}
.artifact-list li {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.4);
  padding: 16px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
}
.generate__media {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  border-radius: 24px;
  background: radial-gradient(
    120% 80% at 50% 0%,
    #aa0003 0%,
    #b24454 30%,
    #ba87a6 55%,
    #bfb4dc 75%,
    #fafbfd 100%
  );
  padding: 64px 0;
}
.generate__media img {
  width: 280px;
  border-radius: 20px;
  box-shadow: 0 75px 75px rgba(0, 0, 0, 0.18);
}

/* ============================================================
   Hands free section
   ============================================================ */
.handsfree__strip {
  display: flex;
  gap: 2px;
  margin: 48px 0;
  border-radius: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.handsfree__strip::-webkit-scrollbar {
  display: none;
}
.handsfree__strip img {
  height: 307px;
  width: auto;
  flex: 0 0 auto;
  object-fit: cover;
  scroll-snap-align: start;
}
.handsfree__copy {
  max-width: 340px;
  font-weight: 500;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.4);
}
.handsfree__copy b {
  color: #fff;
  font-weight: 500;
}
.handsfree__tabs {
  display: flex;
  gap: 33px;
  margin-top: 40px;
  font-weight: 500;
  font-size: 20px;
}
.handsfree__tabs span:not(:first-child) {
  color: rgba(255, 255, 255, 0.4);
}

/* ============================================================
   Brain / spaced repetition section
   ============================================================ */
.brain {
  position: relative;
  text-align: center;
  overflow: hidden;
  padding: 88px 0 0;
}
.brain__and {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(36px, 8vw, 100px);
  letter-spacing: normal;
  margin: 0;
  line-height: 1;
}
.brain__forget {
  font-family: var(--sans);
  font-size: clamp(16px, 2.5vw, 28px);
  letter-spacing: normal;
  margin: 28px 0 0;
}
.brain__note {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  margin: 36px 0 0;
  position: relative;
}
/* Clip the bottom quarter of the brain; black ends at the visible image edge. */
.brain__img-wrap {
  width: 90%;
  max-width: 1051px;
  margin: 24px auto 0;
  aspect-ratio: 2544 / 1428;
  overflow: hidden;
  line-height: 0;
}
.brain__img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0;
}

/* ============================================================
   FSRS section
   ============================================================ */
#fsrs {
  padding-top: 24px;
}
.fsrs__phones {
  display: flex;
  gap: 40px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 120px;
  padding: 130px 24px;
  background: radial-gradient(
    290% 100% at 50% 0%,
    #aa0003 0%,
    #ad171e 10%,
    #af2d39 20%,
    #b24454 30%,
    #b55a70 40%,
    #ba87a6 60%,
    #bfb4dc 80%,
    #fafbfd 100%
  );
}
.fsrs__phones img {
  width: 249px;
  border-radius: 20px;
  box-shadow: 0 75px 75px rgba(0, 0, 0, 0.09), 0 19px 41px rgba(0, 0, 0, 0.1);
}
.fsrs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.fsrs__grid .h-xl {
  margin: 0;
}
.fsrs__grid .h-xl .dim {
  color: rgba(0, 0, 0, 0.4);
}
.fsrs__body {
  font-weight: 500;
  font-size: 20px;
  color: rgba(0, 0, 0, 0.4);
  max-width: 320px;
}
.fsrs__body p {
  margin: 0 0 1em;
}

/* ============================================================
   Big wordmark
   ============================================================ */
.wordmark {
  background: #f9f9f9;
  overflow: hidden;
  padding: 80px 0 0;
}
.wordmark h2 {
  font-family: var(--serif);
  font-weight: 400;
  color: #000;
  font-size: clamp(80px, 24vw, 320px);
  letter-spacing: -0.08em;
  margin: 0;
  text-align: center;
  line-height: 0.9;
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background: #f9f9f9;
  color: #000;
  padding: 80px 0 60px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.footer__appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  padding: 8px 16px;
  text-decoration: none;
  color: #000;
  font-weight: 500;
  font-size: 14px;
}
.footer__legal h4,
.footer__col h4 {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 16px;
  margin: 0 0 24px;
}
.footer__legal a {
  display: block;
  font-weight: 400;
  font-size: 16px;
  text-decoration: none;
  margin-bottom: 12px;
  color: rgba(0, 0, 0, 0.85);
}
.footer__legal a:hover {
  color: #000;
}
.footer__social {
  display: flex;
  gap: 16px;
  margin-top: 24px;
}
.footer__social a {
  width: 24px;
  height: 24px;
  display: block;
  opacity: 0.3;
}
.footer__social img {
  width: 100%;
  height: 100%;
  filter: brightness(0);
}
.footer__made {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer__made p {
  margin: 0;
}
.footer__made .small {
  font-weight: 500;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.6);
}
.footer__made .small .dim {
  color: inherit;
}
.footer__brand {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: 0.04em;
  color: rgba(0, 0, 0, 0.85);
  margin: 0;
}
.footer__copy {
  font-weight: 400;
  font-size: 16px;
  margin: 0;
  color: rgba(0, 0, 0, 0.6);
}
.footer__usa {
  text-align: center;
  margin-top: 48px;
  color: rgba(0, 0, 0, 0.8);
  font-size: 16px;
  line-height: 1.4;
}

/* ============================================================
   Legal pages
   ============================================================ */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 140px var(--pad) 120px;
}
.legal h1 {
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(24px, 4vw, 40px);
  letter-spacing: normal;
  margin: 0 0 8px;
}
.legal h2 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 24px;
  margin: 48px 0 12px;
}
.legal h3 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 18px;
  margin: 24px 0 8px;
}
.legal p,
.legal li {
  font-weight: 400;
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.legal a {
  color: #fff;
}
.legal .updated {
  font-style: italic;
  color: rgba(255, 255, 255, 0.5);
}
.legal ul {
  padding-left: 1.25rem;
}
.legal li {
  margin-bottom: 0.5rem;
}
.legal__back {
  font-family: var(--mono);
  font-size: 13px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
}
.legal__back:hover {
  color: #fff;
}
.legal__lead {
  font-size: 20px !important;
  line-height: 1.6 !important;
  color: rgba(255, 255, 255, 0.85) !important;
  margin: 24px 0 8px;
}
.legal__entry {
  margin-top: 56px;
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.legal__entry:first-of-type {
  margin-top: 40px;
  padding-top: 0;
  border-top: 0;
}
.legal__entry h2 {
  margin: 0 0 10px;
  font-size: 28px;
}
.legal__meta {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.45);
  margin: 0 0 18px;
}
.legal__contact {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 32px;
  margin-top: 48px;
}
.legal__contact dt {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 16px;
  color: #fff;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.legal__contact dd {
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}
.legal__contact dd a {
  color: #fff;
}
@media (max-width: 600px) {
  .legal__contact {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .legal__contact dd {
    border-top: 0;
    padding-top: 0;
  }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .nav__links {
    gap: 20px;
  }
  .interests__grid,
  .generate__grid,
  .fsrs__grid {
    grid-template-columns: 1fr;
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .phones-pair {
    flex-wrap: wrap;
    gap: 48px;
    margin: 80px 0 72px;
  }
  .centered-headline {
    margin-bottom: 48px;
  }
}

/* The page-progress header can't fit every section label on narrow screens,
   so let the labels scroll horizontally while the Download button stays put. */
@media (max-width: 1100px) {
  .progress-nav {
    gap: 16px;
    padding: 14px 18px;
  }
  .progress-nav__links {
    justify-content: flex-start;
    gap: 28px;
    padding-left: 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: 24px;
  }
  .progress-nav__links::-webkit-scrollbar {
    display: none;
  }
  .progress-nav__links a {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .nav {
    padding-right: 10px;
  }
  .nav__links {
    display: none;
  }
  .nav__cta,
  .progress-nav__cta {
    height: 36px;
    padding: 0 16px;
    font-size: 13px;
  }
  .compare__head h3 {
    font-size: 24px;
  }
  .compare__value {
    font-size: 40px;
  }
  .progress-nav {
    gap: 12px;
    padding: 12px 14px;
  }
  .progress-nav__links {
    gap: 24px;
  }
  .progress-nav__links a {
    font-size: 14px;
  }
  /* Brain: end black at ~75% image height (bottom quarter cropped). */
  .brain {
    padding: 72px 0 0;
  }
  .brain__img-wrap {
    width: 100%;
    margin: 40px auto 0;
  }
  /* Keep FSRS screenshots inside the red gradient on narrow screens. */
  .fsrs__phones {
    padding: 120px 24px 80px;
    gap: 56px;
    margin-bottom: 72px;
    overflow: hidden;
  }
  .fsrs__phones img {
    width: min(78%, 240px);
  }
  /* "Every language and dialect" — keep phones clear of headline and note. */
  .centered-headline {
    margin-top: 96px;
    margin-bottom: 64px;
  }
  .phones-pair {
    gap: 48px;
    margin: 0 0 88px;
    padding-bottom: 16px;
  }
  .phones-pair img {
    width: min(80%, 300px);
  }
  .surface-note {
    padding-top: 8px;
  }
  .handsfree__strip img {
    height: 260px;
  }
  .handsfree__tabs {
    flex-wrap: nowrap;
    gap: 28px;
    margin-left: calc(-1 * var(--pad));
    margin-right: calc(-1 * var(--pad));
    padding-left: var(--pad);
    padding-right: var(--pad);
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .handsfree__tabs::-webkit-scrollbar {
    display: none;
  }
  .handsfree__tabs span {
    flex-shrink: 0;
    white-space: nowrap;
  }
  /* The hero wave is ~1545px wide and gets cropped on phones. Scale the whole
     row down (viewport-relative) so every card fits, and shrink the reserved
     height to match so there's no empty gap before the headline. */
  .hero__cards {
    --s: calc((100vw - 28px) / 1545px);
    transform: scale(var(--s));
    transform-origin: top center;
    height: calc(1120px * var(--s));
    margin-top: 30px;
  }
}

/* ============================================================
   Intro modal
   ============================================================ */
.intro-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.intro-modal[hidden] {
  display: none;
}
body.intro-modal-open {
  overflow: hidden;
}
.intro-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.intro-modal__panel {
  position: relative;
  width: min(100%, 1216px);
  max-height: min(92vh, 900px);
  overflow: auto;
  padding: 48px 40px 56px;
  border-radius: 8px;
  background: linear-gradient(to bottom, #f8faff 0%, #fbf8f6 100%);
  box-shadow:
    0 33px 74px rgba(0, 0, 0, 0.1),
    0 134px 134px rgba(0, 0, 0, 0.09),
    0 301px 181px rgba(0, 0, 0, 0.05);
}
.intro-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 1;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: #000;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}
.intro-modal__close:hover {
  background: rgba(0, 0, 0, 0.06);
}
.intro-modal__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 40px;
  padding-right: 48px;
}
.intro-modal__brand {
  margin: 0;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: normal;
  color: #000;
}
.intro-modal__qr {
  flex-shrink: 0;
  display: block;
  width: 115px;
  height: 115px;
  border-radius: 8px;
  overflow: hidden;
}
.intro-modal__qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.intro-modal__phones {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(24px, 5vw, 48px);
}
.intro-modal__phone {
  width: min(268px, 42vw);
  height: auto;
  border-radius: 10px;
  box-shadow:
    0 50px 111px rgba(0, 0, 0, 0.1),
    0 202px 202px rgba(0, 0, 0, 0.09),
    0 454px 250px rgba(0, 0, 0, 0.05);
}

@media (max-width: 768px) {
  .intro-modal__panel {
    padding: 40px 20px 32px;
  }
  .intro-modal__header {
    margin-bottom: 28px;
    padding-right: 36px;
  }
  .intro-modal__qr {
    width: 88px;
    height: 88px;
  }
  .intro-modal__phones {
    flex-direction: column;
    align-items: center;
  }
  .intro-modal__phone {
    width: min(240px, 72vw);
  }
}
