@font-face {
  font-family: "Inter";
  src: url("/assets/inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --launch: #4D45D9;
  --launch-deep: #3A33B8;
  --coach: #4F46E5;
  --tint: #A5B4FC;
  --stage: #0B0A12;
  --ground: #121118;
  --raised: #1C1A27;
  --lifter: #2A2833;
  --ink: #0B0A12;
  --white: #fff;
  --on-indigo: #E4E2FF;
  --on-dark: #B9B6CC;
  /* One centred column, at most 1240px wide; the colour fields still run edge to edge. */
  --gutter: max(clamp(20px, 5vw, 72px), calc((100vw - 1240px) / 2));
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}

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

html {
  background: var(--launch);
  scroll-behavior: smooth;
  scrollbar-color: var(--coach) var(--stage);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: var(--white);
  /* Safari tints its top and bottom bars from the page background, so the page
     itself is indigo and the dark middle belongs to <main>. */
  background: var(--launch);
  -webkit-font-smoothing: antialiased;
  caret-color: var(--tint);
  overflow-x: hidden;
}

::selection { background: var(--tint); color: var(--ink); }

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

a { color: inherit; text-underline-offset: .2em; }

.sr, .trap {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

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

h1, h2 {
  font-weight: 800;
  font-variation-settings: "opsz" 32;
  letter-spacing: -.035em;
  line-height: 1.02;
  text-wrap: balance;
}
.t { color: var(--tint); }

.u path { fill: currentColor; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .25s var(--ease), background-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-light { background: var(--white); color: var(--launch-deep); }
.btn-light:hover { background: var(--on-indigo); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: #231F3D; }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- opening ---------- */
.open {
  background: var(--launch);
  padding: 0 var(--gutter) clamp(40px, 7vw, 96px);
  min-height: min(100svh, 940px);
  display: flex; flex-direction: column;
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: 1.1875rem; letter-spacing: -.02em; text-decoration: none;
}
.brand .u { width: 22px; height: 30px; }

.open-grid {
  flex: 1;
  display: grid; gap: clamp(28px, 5vw, 80px);
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  align-items: center;
  padding-top: clamp(16px, 3vw, 40px);
}
h1 { font-size: clamp(3.4rem, 9.4vw, 7.75rem); line-height: .96; }
h1 .w { display: inline-block; }
h1 .w:first-child { display: block; }
.lede {
  margin-top: clamp(16px, 2vw, 28px);
  font-size: clamp(1.25rem, 2.1vw, 1.625rem);
  font-weight: 500; line-height: 1.25; letter-spacing: -.02em;
  color: var(--on-indigo); max-width: 27ch; text-wrap: balance;
}

/* ---------- the conversation slab ---------- */
.slab {
  position: relative;
  background: var(--ground);
  border-radius: 40px;
  height: clamp(480px, 68svh, 640px);
  display: flex; flex-direction: column;
  box-shadow: 0 40px 80px -20px rgba(20, 14, 90, .7), 0 12px 24px -8px rgba(20, 14, 90, .45);
  overflow: hidden;
}
.slab::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(170deg, rgba(79, 70, 229, 0) 45%, rgba(79, 70, 229, .26) 100%);
}
.slab-bar { display: flex; justify-content: center; padding: 16px 16px 4px; position: relative; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  height: 44px; padding: 0 18px 0 8px; border-radius: 22px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12);
  font-weight: 600;
}
.avatar {
  width: 30px; height: 30px; border-radius: 50%; background: var(--coach);
  display: grid; place-items: center; flex: none;
}
.avatar svg { width: 18px; height: 18px; }
.avatar path { fill: var(--white); }

.thread {
  position: relative; flex: 1; min-height: 0;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  padding: 12px 16px 14px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
          mask-image: linear-gradient(to bottom, transparent 0, #000 40px);
}
.row { display: flex; flex: none; }
.row.lifter { justify-content: flex-end; }
.row.in { animation: pop .5s var(--ease) both; transform-origin: 0 100%; }
.row.lifter.in { transform-origin: 100% 100%; }
@keyframes pop {
  from { opacity: 0; transform: translateY(10px) scale(.92); filter: blur(4px); }
}

.bub {
  max-width: 86%; padding: 10px 15px; line-height: 1.3;
  border-radius: 22px 22px 22px 6px; background: var(--coach); color: var(--white);
}
.row.lifter .bub, .bub.lifter { background: var(--lifter); border-radius: 22px 22px 6px 22px; }

.dots { display: inline-flex; gap: 6px; padding: 15px 16px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--white); animation: dot 1.1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font: inherit; font-size: .9375rem; font-weight: 500; color: var(--tint);
  background: rgba(165, 180, 252, .17); border: 0; border-radius: 18px;
  min-height: 40px; padding: 0 14px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: background-color .2s, transform .25s var(--ease);
}
.chip:hover { background: rgba(165, 180, 252, .28); }
.chip:active { transform: scale(.96); }

.card {
  width: 100%; border-radius: 20px; background: var(--raised);
  border: 1px solid rgba(255, 255, 255, .07); padding: 16px;
}
.card .hd { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 8px; }
.card .hd b { font-weight: 600; }
.card .hd span, .card .ex span, .card .r { color: var(--on-dark); font-variant-numeric: tabular-nums; }
.card .first { font-size: 1.25rem; font-weight: 600; }
.card .hero { display: flex; align-items: center; justify-content: space-between; margin-top: 4px; }
.card .n { font-size: 2.75rem; font-weight: 700; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.card .r { margin-left: 8px; white-space: nowrap; }
.card .hero > div { display: flex; align-items: baseline; flex-wrap: wrap; }
.rpe {
  font-size: .8125rem; font-weight: 600; color: var(--tint);
  background: rgba(165, 180, 252, .16); border-radius: 12px; padding: 5px 10px; white-space: nowrap;
}
.card .ex { display: flex; justify-content: space-between; padding-top: 11px; margin-top: 11px; border-top: 1px solid rgba(255, 255, 255, .1); }
.card .ex b { font-weight: 600; }

.composer {
  position: relative; margin: 0 16px 16px; height: 60px; border-radius: 24px;
  display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 20px;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .12);
  transition: border-color .2s;
}
.composer:focus-within { border-color: var(--tint); }
.composer input {
  flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0;
  font: inherit; font-size: 1.0625rem; color: var(--white);
}
.composer input::placeholder, .invite input::placeholder { color: var(--on-dark); opacity: 1; }
.check {
  width: 44px; height: 44px; border-radius: 50%; border: 0; flex: none; cursor: pointer;
  background: var(--coach); color: var(--white); display: grid; place-items: center;
  transition: transform .25s var(--ease), background-color .2s;
}
.check:hover { background: #6259F0; }
.check:active { transform: scale(.92); }
.check svg { width: 20px; height: 20px; }
.composer[hidden] { display: none; }

main { background: var(--stage); }

/* ---------- film ---------- */
.film { padding: clamp(72px, 11vw, 160px) var(--gutter) 0; }
.film h2 { font-size: clamp(2.4rem, 6.2vw, 5rem); max-width: 14ch; }
.screen {
  position: relative; margin-top: clamp(28px, 4vw, 56px);
  border-radius: clamp(18px, 2.4vw, 36px); overflow: hidden;
  background: var(--stage); aspect-ratio: 16 / 9;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .08), 0 50px 100px -30px rgba(79, 70, 229, .45);
}
.screen video { display: block; width: 100%; height: 100%; object-fit: cover; cursor: pointer; }
.sound {
  position: absolute; left: clamp(10px, 1.6vw, 22px); bottom: clamp(10px, 1.6vw, 22px);
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 16px 0 12px; border-radius: 22px; border: 0;
  font: inherit; font-size: .9375rem; font-weight: 600; color: var(--white); cursor: pointer;
  background: rgba(28, 26, 39, .92);
  transition: background-color .2s, transform .25s var(--ease);
}
.sound:hover { background: var(--coach); }
.sound:active { transform: scale(.96); }
.sound svg { width: 22px; height: 22px; }
.sound .waves { display: none; }
.sound[aria-pressed="true"] .waves { display: inline; }
.sound[aria-pressed="true"] .cross { display: none; }

/* ---------- three statements, one conversation ---------- */
.points {
  padding: clamp(72px, 10vw, 150px) var(--gutter) clamp(80px, 11vw, 160px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.says { list-style: none; display: grid; gap: clamp(36px, 4.6vw, 64px); }
.says h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.says h2 .t { display: block; }
.says p {
  margin-top: 12px;
  font-size: clamp(1.125rem, 1.5vw, 1.3125rem); font-weight: 500; line-height: 1.3; letter-spacing: -.02em;
  color: var(--on-dark); max-width: 30ch; text-wrap: pretty;
}

.scene {
  position: relative; overflow: hidden;
  background: var(--ground); border-radius: clamp(32px, 4vw, 52px);
  padding: clamp(20px, 2.6vw, 36px);
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .07), 0 50px 100px -30px rgba(79, 70, 229, .5);
}
.scene::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(170deg, rgba(79, 70, 229, 0) 40%, rgba(79, 70, 229, .3) 100%);
}
.scene > * { position: relative; }
.pill.big {
  align-self: center; height: auto; padding: 10px 26px 10px 10px; gap: 14px; border-radius: 999px;
  font-size: clamp(1.5rem, 2.6vw, 2.125rem); font-weight: 700; letter-spacing: -.03em;
  margin-bottom: clamp(16px, 2.4vw, 32px);
}
.pill.big .avatar { width: clamp(44px, 4.4vw, 56px); height: clamp(44px, 4.4vw, 56px); }
.pill.big .avatar svg { width: 58%; height: 58%; }
.bub.xl {
  font-size: clamp(1.1875rem, 1.9vw, 1.5rem); font-weight: 500; letter-spacing: -.02em;
  padding: .6em .9em; border-radius: 1.4em 1.4em 1.4em .4em; max-width: 17ch; align-self: flex-start;
}
.bub.xl.lifter { align-self: flex-end; border-radius: 1.4em 1.4em .4em 1.4em; max-width: none; }
.load {
  display: grid; justify-items: start; gap: 4px; margin-top: 6px;
  background: var(--raised); border: 1px solid rgba(255, 255, 255, .07);
  border-radius: clamp(22px, 2.4vw, 30px); padding: clamp(18px, 2.2vw, 28px);
}
.load .lift { font-size: clamp(1.125rem, 1.6vw, 1.375rem); font-weight: 600; }
.load .n {
  font-size: clamp(3.75rem, 7.6vw, 6rem); font-weight: 800; letter-spacing: -.04em; line-height: 1;
  font-variation-settings: "opsz" 32; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.load .r { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 500; color: var(--on-dark); }
.load .was { margin-top: 12px; padding-top: 12px; width: 100%; border-top: 1px solid rgba(255, 255, 255, .1); color: var(--on-dark); font-variant-numeric: tabular-nums; }

/* ---------- close ---------- */
.close {
  background: var(--launch);
  padding: clamp(72px, 10vw, 140px) var(--gutter) 32px;
  display: grid; justify-items: center; text-align: center;
  scroll-margin-top: 0;
}
.u.huge { width: clamp(84px, 11vw, 140px); height: auto; aspect-ratio: 60 / 80; }
.close h2 { font-size: clamp(2.8rem, 7.6vw, 6rem); margin-top: clamp(20px, 3vw, 36px); overflow-wrap: anywhere; }
.close .lede { max-width: 30ch; }
.invite {
  margin-top: clamp(28px, 3.4vw, 44px); width: min(100%, 520px);
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  background: var(--white); border-radius: 32px; padding: 8px;
  box-shadow: 0 30px 60px -24px rgba(20, 14, 90, .8);
}
.invite input[type="email"] {
  min-width: 0; height: 48px; padding: 0 16px; border: 0; outline: 0; background: none;
  font: inherit; color: var(--ink); caret-color: var(--launch);
}
.invite input::placeholder { color: #6B6880; }
.invite:focus-within { outline: 3px solid var(--ink); outline-offset: 3px; }
.invite .status {
  grid-column: 1 / -1; color: var(--ink); font-weight: 600; padding: 6px 16px 10px; text-align: left;
}
.invite .status:empty { display: none; }
.invite.done { grid-template-columns: 1fr; }
.invite.done input, .invite.done button { display: none; }
.invite.done .status { padding: 14px 16px; text-align: center; }
.fine { margin-top: clamp(56px, 8vw, 104px); font-size: .9375rem; color: var(--on-indigo); }

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .open-grid { grid-template-columns: 1fr; align-items: start; }
  .lede { max-width: 26ch; }
  .slab { border-radius: 32px; height: clamp(440px, 62svh, 560px); }
  .points { grid-template-columns: 1fr; }
  .scene { max-width: 520px; }
  h1 .w:first-child { display: inline-block; }
}
@media (max-width: 420px) {
  .card .n { font-size: 2.25rem; }
  .card .r { margin-left: 6px; font-size: 1rem; }
  .invite { grid-template-columns: 1fr; border-radius: 28px; }
  .invite input[type="email"] { text-align: center; }
  .invite .status { text-align: center; }
}

/* ---------- arrival ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js h1 .w { animation: rise .9s var(--ease) both; }
  .js h1 .w:nth-child(2) { animation-delay: .08s; }
  .js h1 .w:nth-child(3) { animation-delay: .16s; }
  .js .slab { animation: settle 1s .15s var(--ease) both; }
  @keyframes rise { from { opacity: 0; transform: translateY(.35em); filter: blur(6px); } }
  @keyframes settle { from { opacity: 0; transform: translateY(40px) scale(.96); } }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
