/* Takkar website, spatial design (PRD UX-01). Brand rules: Brand sheet artboard.
   Rendering rules that keep scrolling smooth on every browser:
   - backdrop-filter is never combined with a 3D transform (Chrome stops repainting).
   - At most 3 blurred surfaces are on screen at once (UX-04).
   - Background glows live inside the section they light, so they move with it. */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(fonts/bricolage-grotesque-latin-opsz-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(fonts/hind-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(fonts/hind-latin-500-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(fonts/hind-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Devanagari subset also carries the rupee sign (U+20B9). */
@font-face {
  font-family: 'Hind';
  font-style: normal;
  font-display: swap;
  font-weight: 400 800;
  src: url(fonts/hind-devanagari-600-normal.woff2) format('woff2');
  unicode-range: U+0900-097F, U+1CD0-1CF9, U+200C-200D, U+20A8, U+20B9, U+20F0, U+25CC, U+A830-A839, U+A8E0-A8FF;
}

:root {
  --ink: #0D1130;
  --space: #070A1F;
  --cobalt: #2A3BE8;
  --cobalt-light: #4B5DFF;
  --cobalt-text: #A9B4FF;
  --saffron: #FF6A00;
  --saffron-text: #FF8A3D;
  --saffron-soft: #FFB27D;
  --white: #FFFFFF;
  --text-soft: #C9CEF0;
  --text-quiet: #AEB4DE;
  --text-label: #C3C8EC;
  --text-bright: #E3E7FF;
  --panel: rgba(18, 22, 60, 0.55);
  --panel-strong: rgba(18, 22, 60, 0.72);
  --panel-solid: #141938;
  --line: rgba(255, 255, 255, 0.14);
  --display: 'Bricolage Grotesque', 'Hind', system-ui, sans-serif;
  --body: 'Hind', system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 32px);
  --section-space: clamp(72px, 10vw, 120px);
  --header-h: 96px;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--space);
  color: var(--white);
  font-family: var(--body);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; margin: 0; text-wrap: balance; }
p { margin: 0; }

:focus-visible {
  outline: 3px solid var(--saffron-soft);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 10;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */

/* clip (not hidden) keeps the page itself as the only scroller. Both axes, so
   glows that hang past the last section cannot add empty scroll at the bottom. */
.page { position: relative; overflow: clip; }

.wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

section[id] { scroll-margin-top: 24px; }

/* Glows: radial gradients, no filter: blur, placed inside their own section. */
.glows { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.glow { position: absolute; border-radius: 50%; }
.glow--cobalt { background: radial-gradient(circle closest-side, rgba(42, 59, 232, 0.6), rgba(42, 59, 232, 0.2) 55%, rgba(42, 59, 232, 0) 100%); }
.glow--saffron { background: radial-gradient(circle closest-side, rgba(255, 106, 0, 0.4), rgba(255, 106, 0, 0.13) 55%, rgba(255, 106, 0, 0) 100%); }
.lit { position: relative; isolation: isolate; }
.page { isolation: isolate; }
.hero-glow-a { left: -30vw; top: -45vw; width: max(1100px, 80vw); aspect-ratio: 1; }
.hero-glow-b { right: -35vw; top: 4vw; width: max(1000px, 70vw); aspect-ratio: 1; }
.features-glow { left: 20%; top: 10%; width: max(900px, 70vw); aspect-ratio: 1; opacity: 0.6; }
.plus-glow { right: -25vw; top: 0; width: max(900px, 60vw); aspect-ratio: 1; opacity: 0.8; }
.join-glow { left: -10vw; top: -10%; width: max(900px, 60vw); aspect-ratio: 1; opacity: 0.5; }
.footer-glow { right: -20vw; bottom: -60vw; width: max(900px, 70vw); aspect-ratio: 1; opacity: 0.3; }

/* ---------- Surfaces ---------- */

.glass {
  background: var(--panel);
  border: 1px solid var(--line);
  -webkit-backdrop-filter: blur(24px) saturate(160%);
  backdrop-filter: blur(24px) saturate(160%);
}
.panel {
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

/* Fallbacks: no blur support, or less transparency requested (UX-05). */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { background: var(--panel-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .panel { background: var(--panel-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .join__card { background: #1F2B9E; }
  .plan--plus { background: #221C4A; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  padding: 0.85em 1.6em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn--cobalt { background: var(--cobalt); color: var(--white); box-shadow: 0 12px 40px rgba(42, 59, 232, 0.5); }
.btn--cobalt:hover { background: #3546F0; }
.btn--saffron { background: var(--saffron); color: var(--ink); box-shadow: 0 12px 40px rgba(255, 106, 0, 0.4); }
.btn--white { background: var(--white); color: var(--ink); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.22); color: var(--white); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); }
.btn--small { font-size: 16px; min-height: 44px; padding: 0.6em 1.3em; }
.btn--block { display: flex; width: 100%; }

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

.site-header { padding-top: 20px; }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 8px 10px 8px 20px;
  border-radius: 999px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); flex: none; }
.brand__mark { width: 38px; height: 30px; }
.brand__word { font-family: var(--display); font-weight: 800; font-size: 27px; letter-spacing: -0.03em; line-height: 1; }
.nav__links { display: flex; gap: clamp(16px, 2.2vw, 28px); font-weight: 500; font-size: 17px; color: #D7DBF5; }
.nav__links a { text-decoration: none; padding: 8px 0; white-space: nowrap; }
.nav__links a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 6px; }
.nav .btn { flex: none; }

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

.hero-section { padding-bottom: var(--section-space); }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
  /* Fits the first screen on laptops: header + hero = one viewport. */
  min-height: min(760px, calc(100svh - var(--header-h)));
  padding-top: clamp(24px, 4vh, 48px);
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-weight: 600;
  font-size: 15px;
  color: var(--text-bright);
}
.pill--saffron { background: transparent; border-color: var(--saffron-text); color: var(--saffron-soft); }
.hero__title {
  margin-top: clamp(14px, 2.4vh, 22px);
  /* Scales with width and height, so short laptop screens still fit. */
  font-size: clamp(60px, min(9.5vw, 15svh), 132px);
  line-height: 0.86;
  letter-spacing: -0.05em;
}
.hero__title span { display: block; }
.hero__lead {
  margin-top: clamp(16px, 3vh, 28px);
  max-width: 30ch;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.45;
  color: var(--text-soft);
}
.hero__actions { margin-top: clamp(20px, 3.4vh, 34px); display: flex; flex-wrap: wrap; gap: 12px; }
/* Narrower sides so both buttons fit on one row in the 500px hero column. */
.hero__actions .btn { padding-inline: 1.3em; }
.hero__note { margin-top: 18px; font-size: 16px; color: var(--text-quiet); }

/* ---------- The stage ----------
   Every size inside is a multiple of --u, one design pixel of a 560 x 640
   artboard. The scene scales as one piece, so nothing drifts or overlaps
   at any screen size. Width is also capped by viewport height. */
.stage {
  position: relative;
  width: min(560px, 44vw, calc((100svh - var(--header-h) - 40px) * 0.875));
  aspect-ratio: 560 / 640;
  container-type: inline-size;
}
.stage__inner {
  --u: calc(100cqw / 560);
  position: absolute;
  inset: 0;
}
.stage__floor {
  position: absolute;
  left: calc(-20 * var(--u));
  right: calc(-20 * var(--u));
  bottom: 0;
  height: calc(220 * var(--u));
  transform: perspective(calc(900 * var(--u))) rotateX(68deg);
  transform-origin: bottom;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.10) 1px, transparent 1px);
  background-size: calc(44 * var(--u)) calc(44 * var(--u));
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent);
  mask-image: linear-gradient(to top, #000 30%, transparent);
  opacity: 0.6;
}

/* Phone: tilted with its own perspective, no backdrop-filter (see top note). */
.phone {
  position: absolute;
  left: calc(150 * var(--u));
  top: calc(16 * var(--u));
  width: calc(260 * var(--u));
  height: calc(560 * var(--u));
  display: flex;
  flex-direction: column;
  padding: calc(22 * var(--u)) calc(16 * var(--u));
  border-radius: calc(40 * var(--u));
  background: linear-gradient(160deg, #1A1F55, #0E1234 70%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 calc(50 * var(--u)) calc(100 * var(--u)) rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transform: perspective(calc(1400 * var(--u))) rotateY(-14deg) rotateX(4deg);
  font-size: calc(14 * var(--u));
}
.phone__top { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: calc(13 * var(--u)); color: var(--text-label); }
.phone__timer { background: var(--white); color: var(--ink); font-family: var(--display); font-weight: 800; font-size: calc(14 * var(--u)); padding: calc(2 * var(--u)) calc(10 * var(--u)); border-radius: 999px; }
.phone__scores { margin-top: calc(14 * var(--u)); display: flex; justify-content: space-between; align-items: flex-end; }
.phone__label { font-size: calc(12 * var(--u)); color: var(--text-label); }
.phone__score { font-family: var(--display); font-weight: 800; font-size: calc(34 * var(--u)); line-height: 1; }
.phone__score--you { color: var(--cobalt-text); }
.phone__score--rival { color: var(--saffron-text); }
.phone__right { text-align: right; }
.collision { position: relative; height: calc(12 * var(--u)); margin-top: calc(12 * var(--u)); border-radius: 999px; background: var(--saffron); }
.collision__you { position: absolute; left: 0; top: 0; bottom: 0; width: 59%; background: var(--cobalt-light); border-radius: 999px 0 0 999px; }
.collision__dot { position: absolute; left: 59%; top: 50%; width: calc(22 * var(--u)); height: calc(22 * var(--u)); transform: translate(-50%, -50%); border-radius: 50%; background: var(--white); border: calc(4 * var(--u)) solid var(--ink); }
.phone__question { margin-top: calc(22 * var(--u)); font-family: var(--display); font-weight: 800; font-size: calc(18 * var(--u)); line-height: 1.25; }
.phone__options { margin: calc(16 * var(--u)) 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: calc(8 * var(--u)); }
.option {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--u));
  padding: calc(9 * var(--u)) calc(12 * var(--u));
  border-radius: calc(16 * var(--u));
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-size: calc(16 * var(--u));
}
.option__key {
  flex: none;
  width: calc(26 * var(--u));
  height: calc(26 * var(--u));
  border-radius: 50%;
  border: calc(2 * var(--u)) solid var(--cobalt-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(13 * var(--u));
}
.option--picked { background: var(--cobalt); border-color: var(--cobalt-light); }
.option--picked .option__key { background: var(--white); color: var(--cobalt); border-color: var(--white); }
.phone__skip {
  margin-top: auto;
  padding: calc(10 * var(--u));
  border-radius: 999px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  text-align: center;
  font-weight: 600;
  font-size: calc(13 * var(--u));
  color: var(--text-label);
}

/* Floating cards sit in the margins beside the phone, never over its content. */
.float-card {
  position: absolute;
  width: calc(150 * var(--u));
  padding: calc(14 * var(--u)) calc(16 * var(--u));
  border-radius: calc(20 * var(--u));
  background: rgba(22, 27, 70, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 calc(24 * var(--u)) calc(50 * var(--u)) rgba(0, 0, 0, 0.45);
}
.float-card__label { font-size: calc(13 * var(--u)); line-height: 1.3; color: var(--text-label); }
.float-card__value { margin-top: calc(4 * var(--u)); font-family: var(--display); font-weight: 800; font-size: calc(22 * var(--u)); line-height: 1.1; }
.float-card--streak { left: 0; top: calc(92 * var(--u)); }
.float-card--streak .float-card__value { font-size: calc(30 * var(--u)); }
.float-card--challenge { right: 0; top: calc(286 * var(--u)); width: calc(140 * var(--u)); border-color: rgba(255, 138, 61, 0.5); }
.float-card--league { left: 0; top: calc(420 * var(--u)); }
.float-card--league .float-card__value { font-size: calc(19 * var(--u)); }
.badge-yc {
  flex: none;
  width: calc(36 * var(--u));
  height: calc(36 * var(--u));
  margin-bottom: calc(8 * var(--u));
  border-radius: calc(11 * var(--u));
  background: var(--cobalt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: calc(14 * var(--u));
}

@media (prefers-reduced-motion: no-preference) {
  .float-card { animation: drift 7s ease-in-out infinite alternate; }
  .float-card--challenge { animation-duration: 8s; animation-delay: -3s; }
  .float-card--league { animation-duration: 9s; animation-delay: -5s; }
}
@keyframes drift { from { translate: 0 0; } to { translate: 0 calc(-10 * var(--u)); } }

/* ---------- Sections ---------- */

.section { padding-bottom: var(--section-space); }
.section__title { font-size: clamp(38px, 5vw, 60px); line-height: 1; letter-spacing: -0.035em; max-width: 18ch; }
.section__lead { margin-top: 16px; max-width: 56ch; font-size: clamp(18px, 1.6vw, 21px); color: var(--text-soft); }

/* How it works: depth from tilt and shadow, no blur on tilted cards. */
.steps {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: start;
}
.step { padding: clamp(24px, 2.6vw, 32px); border-radius: 30px; box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35); }
.step--left { transform: perspective(1600px) rotateY(8deg); }
.step--mid { transform: translateY(-24px); box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); border-color: rgba(255, 255, 255, 0.2); }
.step--right { transform: perspective(1600px) rotateY(-8deg); }
.step__num { font-family: var(--display); font-weight: 800; font-size: clamp(48px, 5vw, 64px); line-height: 1; color: var(--cobalt-text); }
.step h3 { margin: 12px 0 8px; font-size: clamp(24px, 2.2vw, 28px); }
.step p { font-size: clamp(17px, 1.5vw, 19px); color: var(--text-soft); }

/* Features */
.features { border-radius: 36px; padding: clamp(24px, 4vw, 48px); box-shadow: 0 40px 90px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1); }
.features .section__title { margin-bottom: clamp(24px, 3vw, 36px); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.feature { padding: 26px; border-radius: 24px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); }
.feature h3 { margin: 18px 0 8px; font-size: clamp(22px, 2vw, 26px); }
.feature p { font-size: 18px; color: var(--text-soft); }
.dots { display: flex; gap: 8px; height: 30px; align-items: center; }
.dot { width: 26px; height: 26px; border-radius: 50%; background: var(--cobalt-light); }
.dot--rest { background: transparent; border: 2px dashed var(--cobalt-text); }
.dot--empty { background: transparent; border: 2px solid rgba(255, 255, 255, 0.25); }
.faces { display: flex; height: 30px; align-items: center; }
.face { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--panel-solid); }
.face + .face { margin-left: -8px; }
.face--cobalt { background: var(--cobalt-light); }
.face--saffron { background: var(--saffron); }
.face--white { background: var(--white); }
.working { font-size: 15px; line-height: 1.5; color: var(--text-bright); min-height: 30px; }
.working mark { background: var(--cobalt); color: var(--white); padding: 0 8px; border-radius: 6px; }

/* Educators */
.educators { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: clamp(32px, 5vw, 64px); align-items: center; }
.educators .section__title { margin-top: 18px; }
.educators .btn { margin-top: 28px; }
.league { border-radius: 30px; padding: 26px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.45); transform: perspective(1400px) rotateY(-12deg) rotateX(4deg); }
.league__head { display: flex; align-items: center; gap: 12px; }
.league__head .badge-yc { --u: 1px; width: 46px; height: 46px; margin: 0; border-radius: 14px; font-size: 15px; }
.league__name { font-family: var(--display); font-weight: 800; font-size: 22px; }
.league__sub { font-size: 15px; color: var(--text-label); }
.league__rows { margin: 20px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.league__row { display: flex; align-items: center; gap: 14px; }
.league__rank { width: 26px; font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--saffron-text); }
.league__bar { height: 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); }
.league__bar--1 { flex: 1; }
.league__bar--2 { flex: 0.8; }
.league__bar--3 { flex: 0.65; }
.league__score { width: 48px; height: 14px; border-radius: 999px; background: var(--cobalt-light); }

/* Plus */
.plans { margin-top: clamp(32px, 4vw, 48px); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: center; }
.plan { border-radius: 30px; padding: clamp(26px, 3vw, 36px); }
.plan--free { background: rgba(18, 22, 60, 0.5); border: 1px solid var(--line); }
.plan--plus { background: rgba(30, 26, 70, 0.66); border: 1px solid rgba(255, 138, 61, 0.45); box-shadow: 0 40px 90px rgba(255, 106, 0, 0.18), 0 30px 60px rgba(0, 0, 0, 0.4); transform: translateY(-14px); }
.plan__name { font-family: var(--display); font-weight: 800; font-size: 26px; }
.plan__price { margin-top: 6px; display: flex; align-items: baseline; gap: 8px; }
.plan__amount { font-family: var(--display); font-weight: 800; font-size: clamp(44px, 4.5vw, 54px); line-height: 1; }
.plan__per { font-size: 19px; color: var(--text-label); }
.plan ul { margin: 22px 0 0; padding: 0 0 0 22px; font-size: 19px; line-height: 1.9; color: var(--text-bright); }
.plan .btn { margin-top: 26px; }
.plan__note { margin-top: 14px; font-size: 15px; color: var(--text-label); }

/* FAQ */
.faq { max-width: 900px; }
.faq__list { margin-top: 30px; border-radius: 30px; padding: 6px clamp(20px, 3vw, 30px); }
.faq details { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.faq details:last-child { border-bottom: 0; }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 44px;
  padding: 20px 0;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(19px, 1.8vw, 23px);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  flex: none;
  width: 12px;
  height: 12px;
  margin-right: 4px;
  border-right: 3px solid var(--cobalt-text);
  border-bottom: 3px solid var(--cobalt-text);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(3px) rotate(-135deg); }
.faq details p { padding-bottom: 22px; font-size: clamp(17px, 1.6vw, 19px); color: var(--text-soft); }

/* Join */
.join__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 500px);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
  border-radius: 36px;
  padding: clamp(28px, 5vw, 56px);
  background: rgba(42, 59, 232, 0.35);
  border: 1px solid rgba(169, 180, 255, 0.4);
  box-shadow: 0 40px 100px rgba(42, 59, 232, 0.3);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
}
.join__title { font-size: clamp(42px, 6vw, 68px); line-height: 0.95; letter-spacing: -0.04em; }
.join__label { display: block; font-weight: 600; font-size: 17px; margin-bottom: 8px; }
.join__row { display: flex; flex-wrap: wrap; gap: 10px; }
.join__input {
  flex: 1 1 220px;
  min-width: 0;
  height: 56px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  font-family: var(--body);
  font-size: 18px;
  color: var(--ink);
}
.join__input::placeholder { color: #5A6082; }
.join__row .btn { min-height: 56px; }
.join__check { margin-top: 12px; display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 17px; cursor: pointer; }
.join__check input { flex: none; width: 24px; height: 24px; margin: 0; accent-color: var(--saffron); }
.join__fine { margin-top: 6px; font-size: 15px; color: var(--text-bright); }
.join__fine a { color: var(--white); }
.join__status { margin-top: 10px; min-height: 1.5em; font-weight: 600; font-size: 17px; }
.join__status--ok { color: #9FF0D5; }
.join__status--error { color: var(--saffron-soft); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 24px 40px; justify-content: space-between; padding-top: 8px; padding-bottom: 56px; color: var(--text-quiet); }
.site-footer__about { max-width: 460px; }
.site-footer__about p { margin-top: 12px; font-size: 15px; }
.site-footer__brand { display: flex; align-items: center; gap: 10px; color: var(--white); }
.site-footer__brand .brand__word { font-size: 26px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 24px; align-self: flex-start; font-size: 16px; color: var(--white); }
.site-footer nav a { text-decoration: none; padding: 8px 0; }
.site-footer nav a:hover { text-decoration: underline; text-underline-offset: 5px; }

/* Watermark: the wordmark across the full width, fading into the page edge. */
.watermark {
  display: block;
  position: relative;
  z-index: 0;
  /* Tucks up behind the footer text; the footer stays on top and clickable. */
  margin: -0.34em 0 0;
  padding: 0 var(--gutter);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(96px, 27vw, 360px);
  line-height: 0.78;
  letter-spacing: -0.06em;
  text-align: center;
  white-space: nowrap;
  user-select: none;
  background: linear-gradient(180deg, rgba(169, 180, 255, 0.22) 0%, rgba(169, 180, 255, 0.06) 70%, rgba(169, 180, 255, 0) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* Crop the bottom of the letters so the word sits on the page edge. */
  height: 0.62em;
  overflow: hidden;
}

/* ---------- Document pages (Terms, Privacy, Refunds, Contact) ---------- */

.doc { max-width: 820px; padding-top: 56px; padding-bottom: 90px; }
.doc__card { border-radius: 30px; padding: clamp(24px, 5vw, 44px); }
.doc h1 { font-size: clamp(38px, 6vw, 58px); line-height: 1; letter-spacing: -0.035em; }
.doc h2 { margin-top: 36px; font-size: 26px; letter-spacing: -0.01em; }
.doc p, .doc li { font-size: 18px; color: var(--text-bright); }
.doc p { margin-top: 12px; }
.doc ul { margin: 12px 0 0; padding-left: 22px; }
.doc li + li { margin-top: 6px; }
.doc a { color: var(--white); }
.doc__meta { font-size: 15px; color: var(--text-quiet); }
.doc .table-scroll { margin-top: 14px; overflow-x: auto; }
.doc table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 17px; }
.doc th, .doc td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text-bright); }
.doc th { font-family: var(--display); font-weight: 800; color: var(--white); }
.notice { margin-top: 22px; padding: 14px 18px; border-radius: 16px; border: 1px solid var(--saffron-text); background: rgba(255, 106, 0, 0.10); color: var(--saffron-soft); font-size: 16px; }
.back-link { display: inline-block; margin-bottom: 20px; padding: 8px 0; font-weight: 600; text-decoration: none; color: var(--text-label); }
.back-link:hover { color: var(--white); }

/* ---------- Breakpoints ---------- */

/* Tablet and small laptop: nav links hide, hero stacks, grids go to two or one column. */
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero__lead { max-width: 40ch; }
  .stage { width: min(520px, 100%); justify-self: center; margin-top: 8px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .step--left, .step--right, .step--mid { transform: none; }
  .feature-grid { grid-template-columns: minmax(0, 1fr); }
  .educators { grid-template-columns: minmax(0, 1fr); }
  .educators__stage { max-width: 460px; }
  .join__card { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
  .plans { grid-template-columns: minmax(0, 1fr); }
  .plan--plus { transform: none; }
  .league { transform: none; }
}

/* Phones: bigger phone in the middle, two cards in a row beneath it, streak card hidden. */
@media (max-width: 560px) {
  body { font-size: 17px; }
  .site-header { padding-top: 12px; }
  .nav { min-height: 56px; padding: 6px 6px 6px 14px; }
  .brand__mark { width: 32px; height: 26px; }
  .brand__word { font-size: 23px; }
  .hero__title { font-size: clamp(56px, 18vw, 88px); }
  .hero__actions .btn { flex: 1 1 100%; }
  .pill { font-size: 14px; }
  .stage { aspect-ratio: 560 / 940; }
  .stage__floor { display: none; }
  .phone { left: calc(50 * var(--u)); top: 0; width: calc(460 * var(--u)); height: calc(740 * var(--u)); padding: calc(28 * var(--u)) calc(22 * var(--u)); border-radius: calc(52 * var(--u)); transform: perspective(calc(1600 * var(--u))) rotateY(-6deg) rotateX(2deg); }
  .phone__top, .phone__label, .phone__skip { font-size: calc(20 * var(--u)); }
  .phone__timer { font-size: calc(18 * var(--u)); }
  .phone__score { font-size: calc(44 * var(--u)); }
  .phone__question { font-size: calc(28 * var(--u)); }
  .option { font-size: calc(25 * var(--u)); padding: calc(14 * var(--u)) calc(16 * var(--u)); }
  .option__key { width: calc(34 * var(--u)); height: calc(34 * var(--u)); font-size: calc(17 * var(--u)); }
  .float-card--streak { display: none; }
  .float-card { top: auto; bottom: 0; width: calc(268 * var(--u)); padding: calc(18 * var(--u)) calc(20 * var(--u)); border-radius: calc(26 * var(--u)); }
  .float-card__label { font-size: calc(19 * var(--u)); }
  .float-card__value { font-size: calc(27 * var(--u)); }
  .float-card--league { left: 0; }
  .float-card--league .float-card__value { font-size: calc(27 * var(--u)); }
  .float-card--challenge { right: 0; width: calc(268 * var(--u)); }
  .stage .badge-yc { display: none; }
  .faq summary { padding: 16px 0; }
  .join__row .btn { flex: 1 1 100%; }
  .site-footer { padding-bottom: 32px; }
}

/* Beta download page */
.doc ol { margin: 12px 0 0; padding-left: 24px; }
.doc ol li + li { margin-top: 8px; }
.doc .pill { margin-bottom: 18px; }
.download { margin-top: 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.download .doc__meta { margin-top: 0; }
.fingerprint { font-family: ui-monospace, Consolas, monospace; font-size: 14px !important; overflow-wrap: anywhere; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
