/*
 * Clarity on the web, in the App Store creative's "Pearl Dark" look
 * (marketing/app-store/creative): the app's lit room (near-black, a mint
 * light from above, blue from the side), glass pearls that carry the real
 * content, and colour only where it means something. Each skill owns its hue
 * pair (constants/theme.ts); mint = better / in range, amber = notice this.
 * A score is never red.
 */
:root {
  --room: #0a0a0c;
  --ink: #f5f6f8;
  --soft: #c9cad1;
  --muted: #8e8e97;
  --grey: #6f717c;
  --faint: #3a3b42;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --solid: #141417;
  --raised: #1c1c21;
  --good: #7fe3c1;
  --focus: #f4be7a;
  --punch: #ff8a5b;
  --slow: #9be7ff;
  --acc-a: #8be8cb;
  --acc-b: #7c9bff;
  --radius-panel: 34px;
  --radius-tile: 26px;
  --gutter: 20px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --font: ui-rounded, 'M PLUS Rounded 1c', 'Nunito', system-ui, -apple-system, sans-serif;
  color-scheme: dark;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  background: var(--room);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 500;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
}

img,
svg {
  display: block;
}

h1,
h2,
h3 {
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin: 0;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.icon {
  width: 1.15em;
  height: 1.15em;
  flex: none;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: #fff;
  color: var(--room);
  font-weight: 800;
  text-decoration: none;
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--good);
  outline-offset: 3px;
  border-radius: 8px;
}

mark.todo {
  background: transparent;
  color: var(--focus);
  border-bottom: 2px dashed var(--focus);
  font-weight: 800;
}

/* ---------- the room: one light, the same on every page ---------- */

.room {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(1200px 680px at 50% -10%, #183c34 0%, rgba(24, 60, 52, 0) 72%),
    radial-gradient(1000px 760px at 108% 18%, rgba(26, 34, 80, 0.9) 0%, rgba(26, 34, 80, 0) 70%),
    radial-gradient(900px 760px at -8% 88%, #141522 0%, rgba(20, 21, 34, 0) 70%),
    var(--room);
}

/* Film grain keeps the dark gradients from banding. */
.room::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-size: 256px;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='256' height='256'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1.1 -0.3'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- nav: a floating glass bar ---------- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 12px var(--gutter) 0;
  pointer-events: none;
}

.nav-inner {
  pointer-events: auto;
  max-width: var(--max);
  height: 58px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 9px 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.nav.scrolled .nav-inner,
.doc-page .nav-inner {
  background: rgba(18, 18, 22, 0.62);
  border-color: var(--line);
  box-shadow: 0 12px 40px -16px rgba(0, 0, 0, 0.7);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand img {
  border-radius: 9px;
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s, background-color 0.2s;
}

.nav-links a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
}

.nav-cta {
  margin-left: 8px;
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  background: #fff;
  color: var(--room);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}

.nav-cta:hover {
  transform: scale(1.04);
}

@media (max-width: 780px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    margin-left: auto;
  }
}

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

.button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  height: 64px;
  padding: 0 28px 0 22px;
  border-radius: 999px;
  background: #fff;
  color: var(--room);
  text-decoration: none;
  box-shadow: 0 18px 40px -18px rgba(139, 232, 203, 0.55);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 24px 48px -18px rgba(139, 232, 203, 0.7);
}

.button .icon {
  width: 28px;
  height: 28px;
}

.button span {
  display: flex;
  flex-direction: column;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-align: left;
}

.button small {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  opacity: 0.7;
}

.button-quiet {
  background: rgba(255, 255, 255, 0.06);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
  cursor: default;
}

.button-quiet:hover {
  transform: none;
  box-shadow: none;
}

.acc {
  background: linear-gradient(115deg, var(--acc-a) 10%, var(--acc-b) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 12px 2px rgba(127, 227, 193, 0.6);
}

/* ---------- hero ---------- */

.hero {
  padding: 148px 0 40px;
  text-align: center;
  overflow: hidden;
}

.hero h1 {
  margin-top: 24px;
  font-size: clamp(48px, 8.2vw, 104px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.hero h1 .acc {
  filter: drop-shadow(0 0 0.12em rgba(127, 227, 193, 0.35));
  padding-bottom: 0.08em;
}

.lede {
  max-width: 600px;
  margin: 24px auto 0;
  color: var(--soft);
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.5;
}

.cta-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* The pearl stage: the App Store header's story, live. Positions are the
   header's own (x / 3840, y / 1646), so it reads the same. */
.stage {
  position: relative;
  width: min(100%, 1320px);
  margin: 12px auto 0;
  aspect-ratio: 3840 / 1646;
  container-type: inline-size;
  --k: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.stage > * {
  position: absolute;
}

.stage-glow {
  inset: 0;
  background: radial-gradient(30cqw 22cqw at 50% 48.6%, rgba(127, 227, 193, 0.14), rgba(127, 227, 193, 0) 70%);
}

.pearl {
  left: var(--x);
  top: var(--y);
  width: calc(var(--d) * var(--k));
  height: calc(var(--d) * var(--k));
  font-size: calc(var(--d) * var(--k));
  transform: translate(-50%, -50%);
}

.pearl-in {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  animation: bob 7s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.pearl-in::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0) 62%, rgba(255, 255, 255, 0.17) 100%),
    radial-gradient(circle at 36% 28%, #3a3d46 0%, #1e2027 52%, #121318 100%);
  box-shadow:
    0 0.04em 0.1em rgba(0, 0, 0, 0.55),
    inset 0 0 0 0.008em rgba(255, 255, 255, 0.3),
    inset 0.025em 0.035em 0.05em rgba(255, 255, 255, 0.1),
    inset -0.03em -0.05em 0.09em rgba(0, 0, 0, 0.45);
}

.pearl-in::after {
  content: '';
  position: absolute;
  left: 0.15em;
  top: 0.185em;
  width: 0.3em;
  height: 0.15em;
  border-radius: 50%;
  background: #fff;
  opacity: 0.42;
  filter: blur(0.016em);
  transform: rotate(-32deg);
}

.pearl-in > * {
  position: relative;
}

.bokeh {
  filter: blur(calc(var(--b) * 1cqw));
  opacity: var(--o);
}

.bokeh .pearl-in {
  animation-duration: 11s;
}

@keyframes bob {
  0%,
  100% {
    transform: translateY(-2.5%);
  }
  50% {
    transform: translateY(2.5%);
  }
}

.twinkle {
  left: var(--x);
  top: var(--y);
  width: calc(var(--r) * 2 * var(--k));
  height: calc(var(--r) * 2 * var(--k));
  transform: translate(-50%, -50%);
  fill: #fff;
  filter: drop-shadow(0 0 calc(var(--r) * 0.4 * var(--k)) rgba(190, 255, 236, 0.9));
  animation: twinkle 3.6s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: translate(-50%, -50%) scale(0.7) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) rotate(12deg);
  }
}

.word {
  position: relative;
  line-height: 1;
  letter-spacing: -0.03em;
  white-space: nowrap;
  font-weight: 800;
  color: var(--focus);
}

.word i,
.mark i,
.was i {
  position: absolute;
  left: -5%;
  width: 110%;
  height: 0.085em;
  border-radius: 1em;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.42s var(--ease);
}

.word i {
  top: 0.5em;
}

.word.under i {
  top: 1.02em;
}

.on .word i,
.word.on i {
  transform: scaleX(1);
}

.p-like {
  --x: 18.2%;
  --y: 34%;
  --d: 7.81cqw;
}
.p-think {
  --x: 13.5%;
  --y: 67.4%;
  --d: 7.03cqw;
}
.p-fill {
  --x: 81.8%;
  --y: 34%;
  --d: 7.81cqw;
}
.p-hedge {
  --x: 86.5%;
  --y: 67.4%;
  --d: 7.03cqw;
}
.p-um {
  --x: 34.6%;
  --y: 50.4%;
  --d: 10.16cqw;
}
.p-score {
  --x: 65.4%;
  --y: 50.4%;
  --d: 10.16cqw;
}

.p-like .word,
.p-um .word {
  font-size: 0.23em;
}

.p-think .word {
  font-size: 0.2em;
}

.p-um .word {
  font-size: 0.25em;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.03em;
}

.stat .lbl {
  font-size: max(9px, 0.12em);
  font-weight: 700;
  color: var(--muted);
  letter-spacing: -0.01em;
}

.stat .num {
  position: relative;
  font-size: 0.3em;
  line-height: 1;
  width: 1em;
  height: 1em;
}

.stat .num b {
  position: absolute;
  inset: 0;
  text-align: center;
  font-weight: 800;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--spring);
}

.stat .was-n {
  color: var(--focus);
}

.stat .now-n {
  color: var(--good);
  opacity: 0;
  transform: translateY(30%) scale(0.8);
}

.on .stat .was-n {
  opacity: 0;
  transform: translateY(-30%) scale(0.8);
}

.on .stat .now-n {
  opacity: 1;
  transform: none;
}

.score {
  width: 1em;
  height: 1em;
  position: relative;
}

.score-now {
  position: absolute;
  left: 50%;
  top: 50%;
  font-size: 0.32em;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  transform: translate(-50%, -50%);
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: color 0.4s, transform 0.5s var(--ease);
}

.score-was {
  position: absolute;
  left: 50%;
  top: 26%;
  font-size: max(10px, 0.15em);
  font-weight: 800;
  line-height: 1;
  color: var(--grey);
  opacity: 0;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s;
}

.score-was i {
  top: 0.5em;
}

.p-score.on .score-now {
  color: var(--good);
  transform: translate(-50%, -38%);
}

.p-score.on .score-was {
  opacity: 1;
}

.p-score.on .score-was i {
  transform: scaleX(1);
  transition-delay: 0.2s;
}

.plate {
  left: 65.4%;
  top: 63.6%;
  padding: 0.28em 0.72em 0.32em;
  border-radius: 0.9em;
  background: #fff;
  color: var(--room);
  font-size: max(12px, 1.25cqw);
  font-weight: 800;
  letter-spacing: -0.02em;
  white-space: nowrap;
  box-shadow: 0 0.25em 0.6em rgba(0, 0, 0, 0.45);
  transform: translate(-50%, -50%) scale(0.5);
  opacity: 0;
  transition: opacity 0.25s, transform 0.5s var(--spring);
}

.plate.on {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.wisp {
  left: 50%;
  top: 48.6%;
  width: 33.3cqw;
  aspect-ratio: 1;
  /* The rig's centre sits at (50%, 52.9%) of the art. */
  transform: translate(-50%, -52.9%);
}

.wisp-pop,
.wisp-float {
  position: absolute;
  inset: 0;
}

.wisp-float {
  animation: float 6s ease-in-out infinite;
}

.wisp img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.3s;
  user-select: none;
  -webkit-user-drag: none;
}

.wisp .wisp-h {
  opacity: 0;
}

.wisp.on .wisp-h {
  opacity: 1;
}

.wisp.on .wisp-n {
  opacity: 0;
}

.wisp-pop.pop {
  animation: pop 0.7s var(--ease);
}

.cheer {
  position: absolute;
  left: 21.3%;
  top: 21.3%;
  width: 57.3%;
  height: auto !important;
  inset: auto;
  opacity: 0;
  transform-origin: 50% 100%;
  pointer-events: none;
}

.cheer.go {
  animation: cheer 1.5s ease-out;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(-1.6%) rotate(-1deg);
  }
  50% {
    transform: translateY(1.6%) rotate(1deg);
  }
}

@keyframes pop {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.08, 0.94);
  }
  60% {
    transform: scale(0.97, 1.04);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes cheer {
  0% {
    opacity: 0;
    transform: scale(0.6) translateY(8%);
  }
  25% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
  100% {
    opacity: 0;
    transform: scale(1.15) translateY(-10%);
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 120px;
  }

  .hero {
    padding-bottom: 0;
  }

  .stage {
    aspect-ratio: 1 / 1;
    --k: 2.5;
    margin-top: 20px;
  }

  .stage-glow {
    background: radial-gradient(52cqw 44cqw at 50% 50%, rgba(127, 227, 193, 0.16), rgba(127, 227, 193, 0) 70%);
  }

  .p-like,
  .p-think,
  .p-fill,
  .p-hedge,
  .p-um,
  .p-score {
    --k: 1;
  }

  .p-um {
    --x: 20%;
    --y: 17%;
    --d: 25cqw;
  }
  .p-score {
    --x: 80%;
    --y: 17%;
    --d: 25cqw;
  }
  .p-like {
    --x: 11%;
    --y: 57%;
    --d: 18cqw;
  }
  .p-fill {
    --x: 89%;
    --y: 57%;
    --d: 18cqw;
  }
  .p-think {
    --x: 24%;
    --y: 84%;
    --d: 19cqw;
  }
  .p-hedge {
    --x: 76%;
    --y: 84%;
    --d: 19cqw;
  }

  .plate {
    left: 80%;
    top: 33%;
    font-size: 3.6cqw;
  }

  .wisp {
    top: 54%;
    width: 64cqw;
  }
}

/* ---------- sections ---------- */

.section {
  padding: 120px 0;
}

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}

.section-head h2 {
  margin-top: 18px;
  font-size: clamp(36px, 5.4vw, 64px);
  letter-spacing: -0.04em;
}

.section-head p {
  margin: 18px auto 0;
  max-width: 560px;
  color: var(--soft);
  font-size: clamp(17px, 1.8vw, 19px);
}

@media (max-width: 720px) {
  .section {
    padding: 80px 0;
  }

  .section-head {
    margin-bottom: 36px;
  }
}

.card {
  position: relative;
  border-radius: var(--radius-panel);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 40px 80px -40px rgba(0, 0, 0, 0.7);
}

/* Scroll reveal (only when the script runs, so nothing hides without it). */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.8s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- how a rep works ---------- */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step {
  padding: 26px 26px 30px;
  display: flex;
  flex-direction: column;
}

.step-art {
  height: 168px;
  margin-bottom: 26px;
  border-radius: var(--radius-tile);
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
}

.step-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  color: var(--room);
  background: linear-gradient(135deg, var(--acc-a), var(--acc-b));
  margin-bottom: 14px;
}

.step h3 {
  font-size: 24px;
}

.step p {
  margin-top: 8px;
  color: var(--muted);
}

.ask {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  font-size: 15px;
  font-weight: 700;
}

.ask .icon {
  color: var(--good);
}

.voiceprint {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 56px;
}

.voiceprint i {
  width: 5px;
  height: var(--h);
  border-radius: 3px;
  background: var(--good);
  animation: wave 1.1s ease-in-out infinite alternate;
  animation-delay: calc(var(--i) * -97ms);
  transform-origin: center;
}

.voiceprint i:nth-child(n + 20) {
  background: #44464f;
  animation: none;
}

@keyframes wave {
  from {
    transform: scaleY(0.35);
  }
  to {
    transform: scaleY(1);
  }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 22px;
  align-items: end;
}

.stats div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stats b {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.stats span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--muted);
}

.stats span::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot, transparent);
}

.ring-wrap {
  position: relative;
  width: 132px;
  height: 132px;
}

.tick-ring {
  width: 100%;
  height: 100%;
}

.tick-ring line {
  stroke: #2a2b31;
  stroke-width: 4;
  stroke-linecap: round;
}

.tick-ring line.lit {
  stroke: var(--good);
  transition: stroke 0.3s;
  transition-delay: calc(0.3s + var(--i) * 16ms);
}

.js .reveal:not(.in) .tick-ring line.lit {
  stroke: #2a2b31;
}

.ring-num {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.ring-num b {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--good);
}

.ring-num s {
  font-size: 15px;
  color: var(--grey);
  font-weight: 800;
  margin-bottom: 4px;
  text-decoration-thickness: 2px;
}

@media (max-width: 900px) {
  .steps {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- the senior rewrite ---------- */

.debrief {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.transcript {
  padding: 30px 32px 28px;
  display: flex;
  flex-direction: column;
}

.transcript-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.try {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.try small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.try strong {
  font-size: 18px;
  font-weight: 800;
}

.seg {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.seg button {
  position: relative;
  z-index: 1;
  border: 0;
  background: none;
  padding: 9px 20px;
  border-radius: 999px;
  font: inherit;
  font-size: 16px;
  font-weight: 800;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.25s;
}

.seg button[aria-pressed='true'] {
  color: var(--room);
}

.seg::before {
  content: '';
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: #f1f1f4;
  transition: transform 0.45s var(--spring);
}

.seg[data-side='senior']::before {
  transform: translateX(100%);
}

.say-box {
  display: grid;
  margin: 30px 0 28px;
  flex: 1;
}

.say {
  grid-area: 1 / 1;
  font-size: clamp(22px, 2.5vw, 29px);
  line-height: 1.42;
  font-weight: 700;
  letter-spacing: -0.02em;
  transition: opacity 0.45s var(--ease), transform 0.55s var(--ease), filter 0.45s var(--ease);
}

.say-senior {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(6px);
  pointer-events: none;
}

.debrief[data-side='senior'] .say-senior {
  opacity: 1;
  transform: none;
  filter: none;
  pointer-events: auto;
}

.debrief[data-side='senior'] .say-yours {
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(6px);
  pointer-events: none;
}

.mark {
  position: relative;
  color: var(--focus);
  white-space: nowrap;
}

.mark i {
  top: 0.56em;
  height: 0.08em;
}

.mark.hedge i {
  top: 1.12em;
  left: 0;
  width: 100%;
}

.marked .mark i {
  transform: scaleX(1);
  transition-delay: var(--delay, 0s);
}

.fix {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.fix-glyph {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--focus);
  background: rgba(244, 190, 122, 0.14);
}

.fix small {
  display: block;
  color: var(--focus);
  font-size: 13px;
  font-weight: 700;
}

.fix strong {
  font-size: 17px;
  font-weight: 800;
}

.result {
  padding: 30px 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.big-score {
  display: flex;
  align-items: center;
  gap: 16px;
}

.big-score b {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.big-score strong {
  display: block;
  font-size: 22px;
  font-weight: 800;
}

.big-score span {
  color: var(--muted);
  font-size: 15px;
}

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

.delta {
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}

.delta small {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.delta div {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.delta s {
  color: var(--grey);
  text-decoration-thickness: 2px;
}

.delta .icon {
  width: 14px;
  height: 14px;
  color: var(--muted);
}

.delta em {
  font-style: normal;
  color: var(--good);
}

.bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}

.bubble img {
  width: 104px;
  height: 104px;
  flex: none;
  margin: -24px -26px -24px -22px;
}

.bubble p {
  position: relative;
  padding: 14px 16px;
  border-radius: 20px;
  background: var(--raised);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
}

.bubble p::before {
  content: '';
  position: absolute;
  left: -6px;
  top: 50%;
  width: 14px;
  height: 14px;
  background: var(--raised);
  border-radius: 3px;
  transform: translateY(-50%) rotate(45deg);
}

@media (max-width: 900px) {
  .debrief {
    grid-template-columns: 1fr;
    max-width: 620px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .transcript,
  .result {
    padding: 22px 20px;
  }

  .transcript-top {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ---------- features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.tile {
  grid-column: span 4;
  padding: 30px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background:
    radial-gradient(520px 260px at 0% 0%, color-mix(in srgb, var(--h1) 13%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
}

.tile-wide {
  grid-column: span 12;
}

.tile-7 {
  grid-column: span 7;
}

.tile-5 {
  grid-column: span 5;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft);
  font-size: 15px;
  font-weight: 800;
}

.kicker .icon {
  width: 30px;
  height: 30px;
  padding: 6px;
  border-radius: 10px;
  color: #0a0a0c;
  background: linear-gradient(135deg, var(--h1), var(--h2));
}

.tile h3 {
  margin-top: 16px;
  font-size: clamp(26px, 2.6vw, 32px);
}

.tile p {
  margin-top: 10px;
  color: var(--muted);
  max-width: 460px;
}

.tile-art {
  margin-top: auto;
}

/* Live calls: the pressure ladder */
.calls-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
}

.calls-head p {
  margin: 0;
  justify-self: end;
}

.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  align-items: end;
}

.rung {
  position: relative;
  border-radius: 22px;
  padding: 14px 12px 14px;
  background:
    radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--p2) 34%, transparent), transparent 70%),
    #111115;
  border: 1px solid var(--line);
  margin-bottom: calc((var(--level) - 1) * 18px);
  transition: transform 0.5s var(--spring);
}

.rung:hover {
  transform: translateY(-6px);
}

.rung img {
  width: 100%;
  height: auto;
  aspect-ratio: 402 / 255;
}

.rung strong {
  display: block;
  margin-top: 10px;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.25;
}

.rung span {
  display: block;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

.rung .pressure {
  display: flex;
  gap: 3px;
  margin-top: 10px;
}

.pressure i {
  flex: 1;
  height: 5px;
  border-radius: 3px;
  background: #2a2b31;
}

.pressure i:nth-child(-n + 1) {
  background: linear-gradient(90deg, #ff6f91, #ffb36b);
}

.rung[style*='--level: 2'] .pressure i:nth-child(-n + 2),
.rung[style*='--level: 3'] .pressure i:nth-child(-n + 3),
.rung[style*='--level: 4'] .pressure i:nth-child(-n + 4),
.rung[style*='--level: 5'] .pressure i:nth-child(-n + 5) {
  background: linear-gradient(90deg, #ff6f91, #ffb36b);
}

.ladder-legend {
  display: flex;
  justify-content: space-between;
  margin-top: 28px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

/* Meeting prep */
.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
}

.chip.picked {
  background: #fff;
  color: var(--room);
  border-color: #fff;
}

.questions {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.question {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--line);
}

.question b {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 13px;
  color: #0a0a0c;
  background: linear-gradient(135deg, #ff8a5b, #ffd27a);
}

.question strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.question span {
  font-size: 14px;
  color: var(--muted);
}

/* Teleprompter */
.prompter {
  flex: 1;
  min-height: 240px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  position: relative;
  border-radius: 24px;
  padding: 22px 22px 26px;
  background: #050506;
  border: 1px solid var(--line);
  overflow: hidden;
}

.prompter::before,
.prompter::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 40px;
  z-index: 1;
  pointer-events: none;
}

.prompter::after {
  bottom: 0;
  background: linear-gradient(0deg, #050506, rgba(5, 5, 6, 0));
}

.cue-mark {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
  background: rgba(91, 224, 255, 0.14);
  color: #5be0ff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.script {
  margin-top: 14px;
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.5;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.w {
  position: relative;
  color: rgba(245, 246, 248, 0.94);
  transition: color 0.25s;
}

.w.said {
  color: rgba(245, 246, 248, 0.34);
}

.w.punch {
  color: var(--punch);
  font-weight: 800;
}

.w.slow {
  color: var(--slow);
}

.w.slow::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.06em;
  border-bottom: 2px dotted currentColor;
}

.w.said.punch,
.w.said.slow {
  opacity: 0.55;
}

.w.next::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 3px;
  border-radius: 2px;
  background: var(--good);
}

.w.punch.next::before {
  background: var(--punch);
}

.pause {
  display: inline-flex;
  gap: 3px;
  margin: 0 0.25em;
  vertical-align: -0.08em;
}

.pause i {
  width: 3px;
  height: 0.62em;
  border-radius: 2px;
  background: rgba(245, 246, 248, 0.4);
  transition: background-color 0.2s;
}

.pause.active i {
  background: var(--good);
}

/* Calm */
.breathe {
  position: relative;
  height: 230px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.breathe img {
  position: relative;
  width: 270px;
  height: 270px;
  animation: breathe 9s ease-in-out infinite;
}

.breathe-ring {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  border: 2px solid rgba(111, 227, 196, 0.35);
  animation: breathe-ring 9s ease-in-out infinite;
}

/* Cyclic sighing, the app's timings (app/calm.tsx): in 2 s, top-up 1 s, out 6 s. */
@keyframes breathe {
  0% {
    transform: scale(0.86);
  }
  22.2% {
    transform: scale(1.04);
  }
  33.3% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(0.86);
  }
}

@keyframes breathe-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  22.2% {
    transform: scale(1.12);
    opacity: 0.8;
  }
  33.3% {
    transform: scale(1.22);
    opacity: 1;
  }
  100% {
    transform: scale(0.8);
    opacity: 0.3;
  }
}

.beats {
  position: relative;
  height: 24px;
  text-align: center;
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
}

.beats span {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.beats span:nth-child(1) {
  animation: beat-in 9s infinite;
}

.beats span:nth-child(2) {
  animation: beat-top 9s infinite;
}

.beats span:nth-child(3) {
  animation: beat-out 9s infinite;
}

@keyframes beat-in {
  0%,
  20% {
    opacity: 1;
  }
  22.2%,
  100% {
    opacity: 0;
  }
}

@keyframes beat-top {
  0%,
  22.2% {
    opacity: 0;
  }
  24%,
  31% {
    opacity: 1;
  }
  33.3%,
  100% {
    opacity: 0;
  }
}

@keyframes beat-out {
  0%,
  33.3% {
    opacity: 0;
  }
  36%,
  96% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

/* Progress */
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}

.calendar .dow {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--grey);
}

.day {
  aspect-ratio: 1;
  border-radius: 9px;
  background: #1f2026;
  position: relative;
}

.day::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(135deg, #5b8cff, #9be7ff);
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--spring);
  transition-delay: calc(var(--i) * 28ms);
}

.day[data-l]::after {
  transform: scale(1);
}

.day[data-l='1']::after {
  opacity: 0.35;
}
.day[data-l='2']::after {
  opacity: 0.65;
}
.day[data-l='3']::after {
  opacity: 1;
}

.js .reveal:not(.in) .day::after {
  opacity: 0;
  transform: scale(0.4);
}

.day.today {
  box-shadow: 0 0 0 2px var(--room), 0 0 0 4px #9be7ff;
}

.streak {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 700;
}

.legend {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.legend i {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(135deg, #5b8cff, #9be7ff);
}

/* Buddies */
.buddies {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.buddy {
  position: relative;
  padding: 10px 8px 12px;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.buddy .art {
  display: block;
  position: relative;
  width: 120px;
  height: 120px;
  margin: -14px auto -10px;
  margin: 0 auto;
}

.buddy img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transition: opacity 0.25s, transform 0.5s var(--spring);
}

.buddy .happy {
  opacity: 0;
}

.buddy:hover .happy,
.buddy.cheer .happy {
  opacity: 1;
}

.buddy:hover .idle,
.buddy.cheer .idle {
  opacity: 0;
}

.buddy:hover img,
.buddy.cheer img {
  transform: translateY(-6%) scale(1.06);
}

/* Wisp's art carries a wide halo, so it draws larger to match the others. */
.buddy .art.wide {
  width: 156px;
  height: 156px;
  margin: -32px auto -28px;
}

.buddy strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
}

@media (max-width: 1000px) {
  .tile,
  .tile-7,
  .tile-5 {
    grid-column: span 6;
  }

  .tile-wide {
    grid-column: span 12;
  }

  .calls-head {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .calls-head p {
    margin-top: 10px;
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .tile,
  .tile-7,
  .tile-5,
  .tile-wide {
    grid-column: auto;
    padding: 24px 20px;
  }

  .ladder {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 -20px;
    padding: 8px 20px 4px;
    scrollbar-width: none;
    align-items: flex-end;
  }

  .ladder::-webkit-scrollbar {
    display: none;
  }

  .rung {
    flex: 0 0 58%;
    scroll-snap-align: center;
    margin-bottom: calc((var(--level) - 1) * 8px);
  }

  .say {
    font-size: 22px;
  }

  .ladder-legend {
    display: none;
  }
}

/* ---------- research ---------- */

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

.finding {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.finding p {
  font-size: clamp(19px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.finding cite {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.finding cite::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex: none;
  background: linear-gradient(135deg, var(--h1), var(--h2));
}

.finding .used {
  display: inline-flex;
  align-self: flex-start;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.06);
}

@media (max-width: 720px) {
  .research {
    grid-template-columns: 1fr;
  }

  .finding {
    padding: 24px 22px;
  }
}

/* ---------- privacy ---------- */

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

.promise > div {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.promise .orbit {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--good);
  background: radial-gradient(circle at 36% 28%, #3a3d46 0%, #1e2027 52%, #121318 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18), 0 10px 24px rgba(0, 0, 0, 0.45);
}

.promise .orbit .icon {
  width: 26px;
  height: 26px;
}

.promise strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.promise span {
  color: var(--muted);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  color: var(--good);
  font-weight: 800;
  text-decoration: none;
}

.text-link:hover .icon {
  transform: translateX(3px);
}

.text-link .icon {
  transition: transform 0.2s var(--ease);
}

.center {
  text-align: center;
}

@media (max-width: 820px) {
  .promise {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

/* ---------- pricing ---------- */

.plans {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 760px;
  margin: 0 auto;
}

.plan {
  padding: 30px 28px 28px;
}

.plan.best {
  border-color: rgba(127, 227, 193, 0.5);
  background:
    radial-gradient(420px 220px at 50% 0%, rgba(127, 227, 193, 0.14), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.03));
}

.plan-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(115deg, var(--acc-a), var(--acc-b));
  color: var(--room);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.plan .name {
  color: var(--soft);
  font-weight: 800;
  font-size: 18px;
}

.plan .price {
  margin-top: 10px;
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan .price span {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.plan p {
  margin-top: 12px;
  color: var(--muted);
}

.includes {
  list-style: none;
  padding: 0;
  margin: 36px auto 0;
  max-width: 760px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
}

.includes li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.includes .icon {
  color: var(--good);
}

.fine-print {
  max-width: 640px;
  margin: 28px auto 0;
  text-align: center;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
}

@media (max-width: 600px) {
  .plans {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

/* ---------- questions ---------- */

.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 48px;
  align-items: start;
}

.faq-grid .section-head {
  text-align: left;
  margin: 0;
  position: sticky;
  top: 110px;
}

.faq-grid .section-head p {
  margin-left: 0;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq details:first-child {
  border-top: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

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

.faq summary .icon {
  width: 22px;
  height: 22px;
  color: var(--muted);
  transition: transform 0.35s var(--spring), color 0.2s;
}

.faq details[open] summary .icon {
  transform: rotate(45deg);
  color: var(--good);
}

.faq details p {
  padding: 0 40px 22px 0;
  color: var(--soft);
}

.faq details p a {
  color: var(--good);
}

@media (max-width: 860px) {
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .faq-grid .section-head {
    position: static;
    text-align: center;
  }

  .faq-grid .section-head p {
    margin-left: auto;
  }
}

/* ---------- closing ---------- */

.closing {
  text-align: center;
  padding: 80px 0 140px;
}

.closing .finale {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 0 auto -20px;
}

.closing .finale::before {
  content: '';
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle, rgba(127, 227, 193, 0.18), rgba(127, 227, 193, 0) 62%);
}

.closing .finale img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  animation: float 6s ease-in-out infinite;
}

.closing h2 {
  font-size: clamp(40px, 6.4vw, 80px);
  letter-spacing: -0.045em;
}

.closing p {
  margin-top: 14px;
  color: var(--soft);
  font-size: 21px;
}

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

.footer {
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  background: rgba(0, 0, 0, 0.25);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-brand p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 8px 26px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--soft);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--ink);
}

.fine {
  margin-top: 36px;
  color: var(--grey);
  font-size: 13px;
  line-height: 1.6;
}

/* ---------- legal and support pages ---------- */

.doc {
  max-width: 800px;
  padding-top: 140px;
  padding-bottom: 100px;
}

.doc h1 {
  font-size: clamp(42px, 6vw, 64px);
  letter-spacing: -0.045em;
}

.updated {
  margin-top: 14px;
  color: var(--muted);
  font-weight: 700;
}

.updated a {
  color: var(--good);
}

.doc h2 {
  margin: 56px 0 16px;
  font-size: 26px;
  letter-spacing: -0.025em;
  scroll-margin-top: 100px;
}

.doc p,
.doc li {
  color: var(--soft);
}

.doc p + p {
  margin-top: 14px;
}

.doc a {
  color: var(--good);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.doc strong {
  color: var(--ink);
  font-weight: 800;
}

.doc ul {
  padding-left: 22px;
  margin: 14px 0;
}

.doc li {
  margin: 8px 0;
}

.doc li::marker {
  color: var(--grey);
}

.summary {
  margin-top: 40px;
  padding: 28px 30px;
  border-color: rgba(127, 227, 193, 0.3);
  background:
    radial-gradient(520px 220px at 0% 0%, rgba(127, 227, 193, 0.1), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.022));
}

.doc .summary h2 {
  margin: 0 0 8px;
  font-size: 20px;
}

.doc .summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.doc .summary li {
  position: relative;
  padding-left: 30px;
  margin: 12px 0 0;
  color: var(--ink);
}

.doc .summary li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.32em;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(127, 227, 193, 0.16)
    url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FE3C1' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

.toc {
  margin-top: 28px;
}

.toc ol {
  list-style: none;
  counter-reset: toc;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.toc li {
  margin: 0;
  counter-increment: toc;
}

.toc a {
  display: inline-flex;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--soft);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.toc a::before {
  content: counter(toc);
  color: var(--grey);
}

.toc a:hover {
  color: var(--ink);
  border-color: var(--line-strong);
}

.table-wrap {
  margin: 18px 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  overflow-x: auto;
  background: rgba(255, 255, 255, 0.025);
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.doc tr:last-child td {
  border-bottom: 0;
}

.doc th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.03);
}

.doc td {
  color: var(--soft);
}

.doc td:first-child {
  color: var(--ink);
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .doc {
    padding-top: 116px;
  }

  /* Each row reads as a block on a phone. */
  .doc table,
  .doc tbody,
  .doc tr,
  .doc td {
    display: block;
  }

  .doc thead {
    display: none;
  }

  .doc tr {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
  }

  .doc tr:last-child {
    border-bottom: 0;
  }

  .doc td {
    padding: 0;
    border: 0;
  }

  .doc td:first-child {
    white-space: normal;
    font-size: 17px;
    margin-bottom: 6px;
  }

  .doc td:nth-child(3) {
    margin-top: 8px;
    color: var(--muted);
  }

  .doc td:nth-child(3)::before {
    content: 'Why: ';
    color: var(--soft);
    font-weight: 800;
  }
}

.doc .faq {
  margin-top: 40px;
}

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0s !important;
    scroll-behavior: auto !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
