/*
 * cornerhq.app, the company's website.
 * Corner's brand (docs/SPEC.md, section 8): Ink, Corner Red, Paper and White
 * are the only colours, and every softer or deeper shade here is a mix of
 * them (with each other, or with black for shade). Inter for all text. The
 * logo is the official file from /brand/, placed as it is. Cards, panels and
 * bubbles keep the sharp top-left corner, like the C.
 */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/inter-latin-wght-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;
}

:root {
  color-scheme: dark;

  --ink: #0e1116;
  --red: #e0182d;
  --paper: #f7f6f3;
  --white: #ffffff;

  /* The stage: Ink taken a little deeper, so the app's own Ink stands out. */
  --bg: color-mix(in srgb, var(--ink) 72%, black);
  --ink-1: color-mix(in srgb, var(--paper) 3.5%, var(--ink));
  --ink-2: color-mix(in srgb, var(--paper) 7%, var(--ink));
  --soft: color-mix(in srgb, var(--paper) 80%, var(--bg));
  --muted: color-mix(in srgb, var(--paper) 66%, var(--bg));
  --dim: color-mix(in srgb, var(--paper) 50%, var(--bg));
  --hair: color-mix(in srgb, var(--paper) 9%, transparent);
  --on-paper: color-mix(in srgb, var(--ink) 76%, var(--paper));
  --red-deep: color-mix(in srgb, var(--red) 80%, black);
  --shade: 4 5 7; /* Ink taken to near black: shadows */
  --red-rgb: 224 24 45;
  --paper-rgb: 247 246 243;
  --ink-rgb: 14 17 22;

  --font:
    "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-display: clamp(3.5rem, 0.4rem + 10.2vw, 9.4rem);
  --f-h2: clamp(2.375rem, 1.1rem + 3.1vw, 4.25rem);
  --f-statement: clamp(1.5rem, 0.9rem + 2vw, 2.75rem);
  --f-lead: clamp(1.125rem, 0.98rem + 0.6vw, 1.4375rem);
  --f-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);

  --nav-h: 64px;
  --margin: clamp(1rem, 4.4vw, 4rem);
  /* Every section's top and bottom padding: one beat down the page. */
  --section-y: 72px;
  --panel-r: clamp(28px, 5vw, 72px);
  /* The app's own text size in every flat mockup (chats, inbox, sheets). */
  --ui: 15px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
}

@media (min-width: 720px) {
  :root {
    --section-y: 88px;
  }
}

@media (min-width: 1100px) {
  :root {
    --section-y: 128px;
  }
}

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

[hidden] {
  display: none !important;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--paper);
  font-family: var(--font);
  font-size: var(--f-body);
  line-height: 1.5;
  font-kerning: normal;
  font-feature-settings: "cv11", "ss03";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

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

p,
h1,
h2,
h3,
figure,
ol,
ul {
  margin: 0;
}

ol,
ul {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

::selection {
  background: var(--red);
  color: var(--white);
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.nowrap {
  white-space: nowrap;
}

.wrap {
  width: min(100% - 2 * var(--margin), 1280px);
  margin-inline: auto;
}

/* ------------------------------------------------------------------ */
/* Buttons: fully round, as in the app                                 */
/* ------------------------------------------------------------------ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.6rem;
  border-radius: 999px;
  font: 600 1rem/1 var(--font);
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform var(--t-press) var(--ease-out),
    background-color 200ms ease,
    box-shadow 300ms ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn--red {
  background: var(--red);
  color: var(--white);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.22),
    inset 0 0 0 1px rgb(255 255 255 / 0.06),
    0 10px 30px -10px rgb(var(--red-rgb) / 0.75),
    0 2px 6px -2px rgb(var(--shade) / 0.6);
}

.btn--white {
  background: var(--white);
  color: var(--ink);
  box-shadow:
    0 12px 30px -12px rgb(var(--shade) / 0.55),
    0 2px 6px -2px rgb(var(--shade) / 0.35);
}

.btn--sm {
  min-height: 44px;
  padding: 0 1.15rem;
  font-size: 0.9375rem;
}

.btn--lg {
  min-height: 56px;
  padding: 0 2.1rem;
  font-size: 1.0625rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn--red:hover {
    background: color-mix(in srgb, var(--red) 88%, black);
    box-shadow:
      inset 0 1px 0 rgb(255 255 255 / 0.2),
      inset 0 0 0 1px rgb(255 255 255 / 0.06),
      0 14px 40px -10px rgb(var(--red-rgb) / 0.95),
      0 2px 6px -2px rgb(var(--shade) / 0.6);
  }
  .btn--white:hover {
    background: var(--paper);
  }
}

/* ------------------------------------------------------------------ */
/* Navigation: clear over the hero, frosted Ink once you scroll         */
/* ------------------------------------------------------------------ */

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgb(10 12 15 / 0.96);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 0 var(--hair);
  transition:
    background-color 300ms ease,
    box-shadow 300ms ease;
}

.nav.is-top {
  background: rgb(10 12 15 / 0);
  box-shadow: 0 1px 0 transparent;
}

.nav__in {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav__logo {
  display: flex;
  align-items: center;
  min-height: 44px;
  border-radius: 4px;
}

.nav__logo img {
  width: auto;
  height: 20px;
}

.nav__soon {
  margin-left: auto;
  font-size: 0.9375rem;
  color: var(--muted);
  transition: opacity 300ms ease;
}

/* The bar's button has no glow of its own. While the hero's own Email us is
   on screen, it steps back to an outline and the coming-soon line waits, so
   the first screen has one red button and says "coming soon" once. */
.nav .nav__btn,
.nav .nav__btn:hover {
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.2),
    inset 0 0 0 1px rgb(255 255 255 / 0.06);
}

.nav.is-hero .nav__btn {
  background: transparent;
  color: var(--paper);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.28);
}

.nav.is-hero .nav__soon {
  opacity: 0;
  visibility: hidden;
  transition: none;
}

@media (hover: hover) and (pointer: fine) {
  .nav.is-hero .nav__btn:hover {
    background: rgb(var(--paper-rgb) / 0.08);
    box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.5);
  }
}

@media (max-width: 640px) {
  .nav__soon {
    display: none;
  }
  .nav .btn {
    margin-left: auto;
  }
  .nav__logo img {
    height: 17px;
  }
}

/* ------------------------------------------------------------------ */
/* Type                                                                */
/* ------------------------------------------------------------------ */

.h2 {
  font-size: var(--f-h2);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.body-lg {
  margin-top: 1.25rem;
  max-width: 34ch;
  font-size: var(--f-lead);
  line-height: 1.45;
  letter-spacing: -0.012em;
  color: var(--soft);
  text-wrap: pretty;
}

/* Small labels with a red mark cut like the C. */
.tag {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--soft);
}

.tag::before {
  content: "";
  flex: none;
  width: 0.625rem;
  height: 0.625rem;
  margin-top: 0.42em;
  border-radius: 1px 4px 4px 4px;
  background: var(--red);
}

/* ------------------------------------------------------------------ */
/* The phone: an iPhone drawn in CSS. Inside the screen, 1em is 16pt    */
/* of a 393pt-wide iPhone, so the whole app scales with the phone.      */
/* ------------------------------------------------------------------ */

.device {
  --dw: 340px;
  position: relative;
  width: var(--dw);
  aspect-ratio: 393 / 852;
  container-type: inline-size;
  flex: none;
}

.device__body {
  position: absolute;
  inset: 0;
  padding: 1.15cqw;
  border-radius: 15.6cqw;
  background: linear-gradient(
    140deg,
    color-mix(in srgb, var(--paper) 34%, var(--ink)) 0%,
    color-mix(in srgb, var(--paper) 9%, var(--ink)) 16%,
    color-mix(in srgb, var(--paper) 20%, var(--ink)) 38%,
    color-mix(in srgb, var(--paper) 6%, var(--ink)) 60%,
    color-mix(in srgb, var(--paper) 16%, var(--ink)) 84%,
    color-mix(in srgb, var(--paper) 30%, var(--ink)) 100%
  );
  box-shadow:
    inset 0 0 0 0.28cqw rgb(var(--paper-rgb) / 0.26),
    inset 0 0.5cqw 0.8cqw rgb(var(--paper-rgb) / 0.18),
    0 0 0 0.3cqw rgb(var(--shade)),
    0 2cqw 4cqw -1cqw rgb(var(--shade) / 0.7),
    0 10cqw 22cqw -4cqw rgb(var(--shade) / 0.9);
}

.device__key {
  position: absolute;
  width: 1.05cqw;
  border-radius: 0.6cqw;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--paper) 10%, var(--ink)),
    color-mix(in srgb, var(--paper) 38%, var(--ink)) 45%,
    color-mix(in srgb, var(--paper) 12%, var(--ink))
  );
}

.device__key--action {
  left: -0.8cqw;
  top: 17.5%;
  height: 6.4%;
}

.device__key--up {
  left: -0.8cqw;
  top: 27%;
  height: 10%;
}

.device__key--down {
  left: -0.8cqw;
  top: 39%;
  height: 10%;
}

.device__key--power {
  right: -0.8cqw;
  top: 30.5%;
  height: 15.5%;
}

.device__bezel {
  height: 100%;
  padding: 2.4cqw;
  border-radius: 14.45cqw;
  background: color-mix(in srgb, var(--ink) 35%, black);
  box-shadow: inset 0 0 0 0.35cqw rgb(var(--paper-rgb) / 0.05);
}

.device__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  isolation: isolate;
  border-radius: 12.1cqw;
  background: var(--ink);
  color: var(--paper);
  font-size: 3.79cqw;
  line-height: 1.3;
  letter-spacing: -0.005em;
  user-select: none;
}

/* The glass: a soft diagonal reflection over everything on the screen. */
.device__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(
    116deg,
    rgb(255 255 255 / 0.11) 0%,
    rgb(255 255 255 / 0.04) 24%,
    rgb(255 255 255 / 0) 40%
  );
}

.device__island {
  position: absolute;
  z-index: 35;
  top: 0.7em;
  left: 50%;
  width: 7.7em;
  height: 2.3em;
  translate: -50% 0;
  border-radius: 2em;
  background: color-mix(in srgb, var(--ink) 15%, black);
}

.device__island::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.85em;
  width: 0.7em;
  height: 0.7em;
  translate: 0 -50%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 35% 35%,
    color-mix(in srgb, var(--paper) 22%, var(--ink)),
    color-mix(in srgb, var(--ink) 40%, black) 60%
  );
}

.device__home {
  position: absolute;
  z-index: 36;
  bottom: 0.5em;
  left: 50%;
  width: 8.4em;
  height: 0.32em;
  translate: -50% 0;
  border-radius: 1em;
  background: var(--paper);
}

/* The status bar. */
.sb {
  position: absolute;
  z-index: 34;
  top: 0;
  left: 0;
  right: 0;
  height: 3.6em;
  display: grid;
  grid-template-columns: 1fr 7.7em 1fr;
  align-items: center;
  padding-top: 0.1em;
  color: var(--paper);
}

.sb__time {
  justify-self: center;
  font-size: 1.0625em;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}

.sb__icons {
  grid-column: 3;
  justify-self: center;
  display: flex;
  align-items: center;
  gap: 0.36em;
}

.sb__signal {
  width: 1.12em;
  height: 0.75em;
}

.sb__wifi {
  width: 1em;
  height: 0.75em;
}

.sb__battery {
  width: 1.65em;
  height: 0.78em;
}

/* ------------------------------------------------------------------ */
/* The app: the chat screen as fans see it (mobile/src/screens).        */
/* ------------------------------------------------------------------ */

.app {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      120% 60% at 50% 0%,
      rgb(var(--paper-rgb) / 0.035),
      transparent 70%
    ),
    var(--ink);
}

.chat-head {
  position: absolute;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 3.55em 0.75em 0.6em 0.3em;
  background: var(--ink);
  box-shadow: 0 1px 0 color-mix(in srgb, var(--paper) 10%, var(--ink));
}

.chat-head__back {
  width: 2.2em;
  height: 2.75em;
  display: grid;
  place-items: center;
  color: var(--paper);
}

.chat-head__back svg {
  width: 1.5em;
  height: 1.5em;
}

.chat-head__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.chat-head__title {
  font-size: 1.0625em;
  font-weight: 600;
  line-height: 1.25;
}

.chat-head__sub {
  font-size: 0.8125em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
  white-space: nowrap;
}

.avatar {
  flex: none;
  width: 3em;
  height: 3em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 0.75em;
  font-weight: 600;
  letter-spacing: 0;
}

.avatar--blank {
  visibility: hidden;
}

.avatar--icon {
  border-radius: 0;
  background: none;
}

.chat-body {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 5.45em;
  overflow: hidden;
}

.chat-col {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 0.75em 0.85em;
}

/* Messages and bubbles. Sized in em, so they work at any scale. */
.msg {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
}

.msg + .msg {
  margin-top: 0.25em;
}

.msg.run {
  margin-top: 0.75em;
}

.msg--you {
  justify-content: flex-end;
}

.msg__col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25em;
}

.bubble {
  --bubble-r: clamp(16px, 1.2em, 18px);
  display: block;
  width: fit-content;
  max-width: 86%;
  padding: 0.62em 0.9em 0.55em;
  border-radius: 0.14em var(--bubble-r) var(--bubble-r) var(--bubble-r);
  background: var(--white);
  color: var(--ink);
  font-size: 0.9375em;
  line-height: 1.34;
  letter-spacing: -0.008em;
  text-wrap: pretty;
  overflow-wrap: anywhere;
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.3);
}

.bubble__time {
  display: block;
  margin-top: 0.32em;
  text-align: right;
  font-size: max(11px, 0.7333em);
  line-height: 1;
  letter-spacing: 0;
  color: color-mix(in srgb, var(--ink) 62%, var(--white));
  font-variant-numeric: tabular-nums;
}

/* Inside a whole phone everything keeps the phone's own proportions. */
.device .bubble__time {
  font-size: 0.7333em;
}

.bubble--you {
  background: var(--red);
  color: var(--white);
  transform-origin: 100% 100%;
}

.bubble--you .bubble__time {
  color: var(--white);
}

.bubble--wide {
  width: 88%;
  max-width: 88%;
}

.quote {
  display: block;
  margin-bottom: 0.5em;
  padding: 0.5em 0.75em;
  border-left: 0.2em solid var(--red);
  border-radius: 0.14em 0.8em 0.8em 0.8em;
  background: color-mix(in srgb, var(--ink) 6%, var(--white));
  color: color-mix(in srgb, var(--ink) 74%, var(--white));
  font-size: 0.9333em;
  line-height: 1.35;
}

.day {
  display: flex;
  justify-content: center;
  margin: 1em 0 0.15em;
}

.day span {
  padding: 0.35em 0.95em;
  border-radius: 1em;
  background: color-mix(in srgb, var(--paper) 9%, var(--ink));
  color: var(--paper);
  font-size: 0.75em;
  font-weight: 500;
}

/* Voice note: play, waveform, duration (section 8). */
.voice {
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.1em 0;
}

.voice__play {
  flex: none;
  width: 2.93em;
  height: 2.93em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
}

.voice__play svg {
  width: 1.33em;
  height: 1.33em;
  margin-left: 0.12em;
}

.pause-glyph {
  width: 0.95em;
  height: 1.05em;
  border-inline: 0.32em solid var(--white);
  border-radius: 0.06em;
}

.wave {
  flex: 1;
  min-width: 0;
  height: 2.15em;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wave i {
  width: 0.2em;
  border-radius: 0.2em;
  background: color-mix(in srgb, var(--ink) 25%, var(--white));
}

/* The app's waveform for this note (src/lib/waveform.ts). */
.wave i:nth-child(1) {
  height: 18%;
}
.wave i:nth-child(2) {
  height: 30%;
}
.wave i:nth-child(3) {
  height: 41%;
}
.wave i:nth-child(4) {
  height: 48%;
}
.wave i:nth-child(5) {
  height: 32%;
}
.wave i:nth-child(6) {
  height: 35%;
}
.wave i:nth-child(7) {
  height: 61%;
}
.wave i:nth-child(8) {
  height: 53%;
}
.wave i:nth-child(9) {
  height: 83%;
}
.wave i:nth-child(10) {
  height: 47%;
}
.wave i:nth-child(11) {
  height: 94%;
}
.wave i:nth-child(12) {
  height: 66%;
}
.wave i:nth-child(13) {
  height: 66%;
}
.wave i:nth-child(14) {
  height: 99%;
}
.wave i:nth-child(15) {
  height: 90%;
}
.wave i:nth-child(16) {
  height: 47%;
}
.wave i:nth-child(17) {
  height: 65%;
}
.wave i:nth-child(18) {
  height: 39%;
}
.wave i:nth-child(19) {
  height: 82%;
}
.wave i:nth-child(20) {
  height: 74%;
}
.wave i:nth-child(21) {
  height: 70%;
}
.wave i:nth-child(22) {
  height: 58%;
}
.wave i:nth-child(23) {
  height: 34%;
}
.wave i:nth-child(24) {
  height: 18%;
}

.voice--playing .wave i:nth-child(-n + 10) {
  background: var(--red);
}

.voice__time {
  flex: none;
  min-width: 2.4em;
  text-align: right;
  font-size: 0.8em;
  font-weight: 500;
  color: color-mix(in srgb, var(--ink) 72%, var(--white));
  font-variant-numeric: tabular-nums;
}

/* Under a message: the fan's own reaction, and the message menu. */
.tools {
  display: flex;
  gap: 0.4em;
  margin-top: 0.15em;
}

.react,
.tool-more {
  height: 1.55em;
  min-width: 2.1em;
  padding: 0 0.55em;
  display: inline-grid;
  place-items: center;
  border-radius: 1em;
  background: color-mix(in srgb, var(--paper) 12%, var(--ink));
  color: var(--paper);
}

.react svg,
.tool-more svg {
  width: 0.9em;
  height: 0.9em;
}

.react--on svg {
  color: var(--red);
}

/* Photos and videos: the picture keeps the sharp corner too. */
.photo {
  position: relative;
  width: 15.5em;
  max-width: 86%;
  overflow: hidden;
  border-radius: 0.14em 1.15em 1.15em 1.15em;
  background: var(--ink);
  box-shadow: 0 1px 2px rgb(var(--shade) / 0.3);
}

.photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.photo__play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 3.2em;
  height: 3.2em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.5);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.25);
  color: var(--white);
}

.photo__play svg {
  width: 1.4em;
  height: 1.4em;
  margin-left: 0.15em;
}

.photo__len {
  position: absolute;
  right: 0.6em;
  bottom: 0.6em;
  padding: 0.2em 0.6em;
  border-radius: 1em;
  background: rgb(var(--ink-rgb) / 0.78);
  color: var(--paper);
  font-size: 0.6875em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

/* The reply box: plain text, the send button turns red once there is some. */
.reply {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  gap: 0.5em;
  padding: 0.62em 0.75em 2.05em;
  background: var(--ink);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--paper) 10%, var(--ink));
}

.reply__field {
  flex: 1;
  min-width: 0;
  min-height: 2.75em;
  display: flex;
  align-items: center;
  padding: 0 1em;
  border-radius: 0.14em 1.4em 1.4em 1.4em;
  background: rgb(var(--paper-rgb) / 0.05);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.2);
}

.reply__text {
  font-size: 0.9375em;
  color: color-mix(in srgb, var(--paper) 64%, var(--ink));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.reply__text.is-typing {
  color: var(--paper);
}

.reply__text.is-typing::after {
  content: "";
  display: inline-block;
  width: 0.09em;
  height: 1.15em;
  margin-left: 0.06em;
  vertical-align: -0.2em;
  background: var(--red);
}

.reply__send {
  flex: none;
  width: 2.75em;
  height: 2.75em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--paper-rgb) / 0.15);
  color: color-mix(in srgb, var(--paper) 64%, var(--ink));
  transition:
    background-color 200ms ease,
    color 200ms ease;
}

.reply__send.is-ready {
  background: var(--red);
  color: var(--white);
}

.reply__send svg {
  width: 1.25em;
  height: 1.25em;
}

/* The reply box in the hero, once it is live: a real field. Both it and the
   send button reach at least 46px for a finger, beyond what they draw. */
.reply--live {
  margin: 0;
}

.reply__box {
  position: relative;
  cursor: text;
}

.reply__box::before,
button.reply__send::before {
  content: "";
  position: absolute;
  top: min(-4px, calc((100% - 46px) / 2));
  bottom: min(-4px, calc((100% - 46px) / 2));
  left: 0;
  right: 0;
}

button.reply__send::before {
  left: min(-4px, calc((100% - 46px) / 2));
  right: min(-4px, calc((100% - 46px) / 2));
  border-radius: 50%;
}

.reply__box:focus-within {
  box-shadow:
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.2),
    0 0 0 2px var(--paper);
}

.reply__input {
  --in-s: 0.76;
  position: relative;
  flex: none;
  width: calc(100% / var(--in-s));
  min-width: 0;
  align-self: stretch;
  padding: 0;
  border: 0;
  margin: 0;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 16px;
  transform: scale(var(--in-s));
  transform-origin: 0 50%;
  color: var(--paper);
  caret-color: var(--red);
  user-select: text;
}

.reply__input::placeholder {
  color: color-mix(in srgb, var(--paper) 64%, var(--ink));
  opacity: 1;
}

button.reply__send {
  position: relative;
  padding: 0;
  border: 0;
  font: inherit;
  cursor: pointer;
}

button.reply__send:focus-visible {
  outline-offset: 2px;
  border-radius: 50%;
}

/* Its text is 16px, so phones never zoom into it, drawn at the size of the
   phone's own text. */
@media (max-width: 860px) {
  .reply__input {
    --in-s: 0.7;
  }
}

/* A notification: the sender's picture with the app's icon on it. */
.note {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.7em;
  padding: 0.72em 0.95em 0.72em 0.72em;
  border-radius: 0.25em 1.25em 1.25em 1.25em;
  background: rgb(var(--ink-rgb) / 0.55);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.1);
  text-align: left;
}

.note__pic {
  position: relative;
  flex: none;
  width: 2.45em;
  height: 2.45em;
}

.note__pic .avatar {
  width: 100%;
  height: 100%;
  font-size: 0.8em;
}

.note__app {
  position: absolute;
  right: -0.28em;
  bottom: -0.28em;
  width: 1.1em;
  height: 1.1em;
  filter: drop-shadow(0 0 0.08em var(--ink));
}

.note__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.note__head {
  display: flex;
  align-items: baseline;
  gap: 0.5em;
}

.note__name {
  font-size: 0.9375em;
  font-weight: 600;
}

.note__when {
  margin-left: auto;
  font-size: 0.8125em;
  color: color-mix(in srgb, var(--paper) 74%, var(--ink));
}

.note__body {
  font-size: 0.9375em;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ------------------------------------------------------------------ */
/* 1. Hero                                                             */
/* ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  margin-top: calc(-1 * var(--nav-h));
  padding-top: var(--nav-h);
  overflow-x: clip;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(
      ellipse 55% 45% at 18% 0%,
      rgb(var(--paper-rgb) / 0.07),
      transparent 70%
    ),
    linear-gradient(180deg, transparent 70%, var(--bg));
}

.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 4vw, 4rem);
  min-height: min(calc(100svh - var(--nav-h)), 1000px);
  padding-block: clamp(1.25rem, 3vh, 2.25rem) clamp(1.5rem, 3vh, 2.5rem);
}

.hero__title {
  margin-left: -0.055em;
  font-size: var(--f-display);
  font-weight: 650;
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: var(--white);
}

.line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.1em;
  margin-bottom: -0.1em;
}

.line__in {
  display: block;
}

.hero__lead {
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
  max-width: 20ch;
  font-size: clamp(1.375rem, 1rem + 1.25vw, 2.125rem);
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: var(--soft);
  text-wrap: balance;
}

.soon {
  width: fit-content;
  max-width: 100%;
  margin-top: clamp(2rem, 3.4vw, 3rem);
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 8px 1.5rem 8px 8px;
  border-radius: 4px 20px 20px 20px;
  background: rgb(var(--paper-rgb) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.16);
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--paper);
  text-wrap: balance;
}

.soon__icon {
  flex: none;
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 6px 14px rgb(var(--shade) / 0.8))
    drop-shadow(0 0 0.5px rgb(var(--paper-rgb) / 0.35));
}

@media (max-width: 640px) {
  .soon {
    gap: 0.85rem;
    padding-right: 1.15rem;
  }
  .soon__icon {
    width: 52px;
    height: 52px;
  }
}

.hero__stage {
  position: relative;
  display: grid;
  justify-items: center;
}

/* The light behind the phone. */
.hero__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 46%;
  width: 250%;
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--red-rgb) / 0.5),
    rgb(var(--red-rgb) / 0.2) 32%,
    rgb(var(--red-rgb) / 0.06) 58%,
    transparent 100%
  );
  pointer-events: none;
}

.hero__phone {
  position: relative;
}

.device--hero {
  --dw: var(--hero-dw);
}

/* Its shadow on the floor. */
.hero__phone::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  bottom: -2.5%;
  width: 90%;
  height: 7%;
  translate: -50% 0;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--shade) / 0.9),
    transparent
  );
}

.hero__phone {
  --hero-dw: clamp(
    270px,
    min(28vw, calc((100svh - var(--nav-h) - 130px) * 0.4613)),
    370px
  );
}

/* The notification, laid over the phone's left edge level with the voice
   note it announces. It covers only the frame and the empty space where
   Kai's picture would be, never a message. */
.note--float {
  position: absolute;
  z-index: 3;
  top: var(--note-top, 56.4%);
  right: calc(100% - var(--hero-dw) * 0.155);
  width: 19.5rem;
  font-size: 16px;
  color: var(--paper);
  background: rgb(var(--ink-rgb) / 0.86);
  box-shadow:
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.14),
    inset 0 1px 0 rgb(var(--paper-rgb) / 0.14),
    0 24px 50px -16px rgb(var(--shade) / 0.95),
    0 6px 14px -6px rgb(var(--shade) / 0.8);
}

/* Said once someone is in the reply box. */
.hero__hint {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 0.85rem;
  font-size: 0.9375rem;
  color: var(--muted);
  text-align: center;
  visibility: hidden;
}

.js .hero__stage:focus-within .hero__hint {
  visibility: visible;
}

/* Where there's no room beside the phone, the notification sits above it,
   hanging off its left edge. */
@media (max-width: 1279px) {
  .hero__stage {
    padding-top: 5.25rem;
  }
  .note--float {
    top: auto;
    right: auto;
    bottom: calc(100% + 1rem);
    left: -6%;
    width: min(19.5rem, 86vw);
    font-size: 15px;
  }
}

@media (max-width: 1279px) and (min-width: 861px) {
  .hero__phone {
    --hero-dw: clamp(
      250px,
      min(28vw, calc((100svh - var(--nav-h) - 210px) * 0.4613)),
      370px
    );
  }
}

@media (max-width: 860px) {
  .hero__in {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    padding-block: clamp(1.75rem, 6vw, 3rem) 1rem;
    gap: 2rem;
  }
  .hero__stage::before {
    width: 220%;
  }
  .hero__phone {
    --hero-dw: min(330px, 78vw);
  }
  .hero__title {
    font-size: clamp(3.5rem, 15.4vw, 8.5rem);
  }
}

/* ------------------------------------------------------------------ */
/* 2. What it is, in one sentence                                      */
/* ------------------------------------------------------------------ */

/* It follows the hero's own space, so it starts half a beat down. */
.intro {
  padding-block: calc(var(--section-y) * 0.5) var(--section-y);
}

.statement {
  max-width: 25em;
  font-size: var(--f-statement);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--paper);
  text-wrap: pretty;
}

.statement__more {
  display: block;
  margin-top: 0.4em;
  color: var(--muted);
}

/* ------------------------------------------------------------------ */
/* Panels: Corner Red and Paper, cut like the C                         */
/* ------------------------------------------------------------------ */

.fans,
.everyday,
.privacy,
.close {
  position: relative;
  isolation: isolate;
  overflow: clip;
  border-radius: 0 var(--panel-r) var(--panel-r) var(--panel-r);
}

.fans,
.close {
  background: var(--red);
  color: var(--white);
}

.fans ::selection,
.close ::selection {
  background: var(--ink);
  color: var(--white);
}

.fans :focus-visible,
.close :focus-visible {
  outline-color: var(--white);
}

.everyday,
.privacy {
  background: var(--paper);
  color: var(--ink);
}

.everyday ::selection,
.privacy ::selection {
  background: var(--ink);
  color: var(--paper);
}

.everyday :focus-visible,
.privacy :focus-visible {
  outline-color: var(--ink);
}

/* ------------------------------------------------------------------ */
/* 3. One message, every fan's own chat                                */
/* ------------------------------------------------------------------ */

.fans {
  padding-block: var(--section-y);
}

.fans .body-lg {
  color: var(--white);
}

.fans__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
}

.fans__copy .h2 {
  max-width: 10em;
}

.trio {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: clamp(1.5rem, 2.4vw, 2rem);
}

/* One fan's chat, cropped to Kai's message and that fan's reply: the app's
   own screen, with the sharp corner, and no phone around it. */
.fanc {
  flex: 0 1 18.5rem;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.fanc__screen {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 4px 22px 22px 22px;
  background: var(--ink);
  color: var(--paper);
  font-size: 14.5px;
  line-height: 1.3;
  letter-spacing: -0.005em;
  box-shadow:
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.08),
    0 2px 4px rgb(var(--shade) / 0.25),
    0 30px 50px -24px rgb(var(--shade) / 0.7);
}

.fanc--main .fanc__screen {
  font-size: 15.5px;
}

.fanc .chat-head,
.fanc .reply {
  position: relative;
}

.fanc .chat-head {
  padding-top: 0.75em;
}

.fanc .reply {
  padding-bottom: 0.85em;
}

.fanc__chat {
  padding: 0.35em 0.75em 0.9em;
}

.trio__who {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 3px 14px 14px 14px;
  background: var(--ink);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}

/* Spacing that keeps whole messages under the hero chat's header at the
   start and the end of its film (check/filmfit.mjs measures it). */
.day--today {
  margin: 2.25em 0 0.4em;
}

/* The hero's photo, wider than tall, so the chat starts with it whole. */
.photo--wide {
  width: 13em;
}

.photo--wide img {
  aspect-ratio: 16 / 9;
}

@media (min-width: 1100px) {
  .fans__in {
    grid-template-columns: minmax(0, 4.2fr) minmax(0, 7.8fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
}

/* Phones and tablets: the three chats side by side in a row that swipes,
   the next one peeking in, each at full size. */
@media (max-width: 899px) {
  .trio {
    justify-content: flex-start;
    align-items: flex-start;
    gap: 1rem;
    margin-inline: calc(-1 * var(--margin));
    padding: 0.25rem var(--margin) 0.75rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margin);
  }
  .trio:focus-visible {
    outline-offset: -2px;
    border-radius: 0;
  }
  .fanc {
    flex: none;
    width: min(78vw, 20rem);
    scroll-snap-align: start;
  }
  .fanc__screen,
  .fanc--main .fanc__screen {
    font-size: 15px;
  }
  .fanc .reply {
    display: none;
  }
}

/* ------------------------------------------------------------------ */
/* 4. The lock screen                                                  */
/* ------------------------------------------------------------------ */

.texting {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  overflow: clip;
}

.texting__in {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 6rem);
}

.texting__stage {
  position: relative;
  display: grid;
  justify-items: start;
}

.texting__stage::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: calc(var(--lw) / 2);
  top: 55%;
  width: calc(var(--lw) * 2.6);
  aspect-ratio: 1.3;
  translate: -50% -50%;
  background: radial-gradient(
    closest-side,
    rgb(var(--red-rgb) / 0.14),
    rgb(var(--red-rgb) / 0.05) 50%,
    transparent
  );
}

/* Only the top of the phone, cropped on purpose: the lock screen's time and
   its notifications, then the phone fades into the Ink. */
.texting__stage {
  --lw: clamp(270px, 27vw, 370px);
}

.texting__crop {
  width: var(--lw);
  height: calc(var(--lw) * 1.06 + 64px);
  overflow: hidden;
  padding-inline: 1px;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 72px), transparent);
  mask-image: linear-gradient(#000 calc(100% - 72px), transparent);
}

.texting__crop .device {
  --dw: calc(var(--lw) - 2px);
}

.lock {
  background:
    radial-gradient(
      90% 26% at 50% 44%,
      rgb(var(--red-rgb) / 0.5) 0%,
      rgb(var(--red-rgb) / 0.18) 45%,
      transparent 80%
    ),
    radial-gradient(
      80% 50% at 85% 10%,
      color-mix(in srgb, var(--paper) 10%, var(--ink)),
      transparent 70%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--ink) 70%, black),
      var(--ink) 60%
    );
}

.lock__padlock {
  position: absolute;
  top: 3.6em;
  left: 50%;
  translate: -50% 0;
  color: var(--paper);
}

.lock__padlock svg {
  width: 1.05em;
  height: 1.05em;
}

.lock__time {
  position: absolute;
  top: 0.92em;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 5.6em;
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.035em;
  color: color-mix(in srgb, var(--paper) 94%, var(--ink));
  font-variant-numeric: tabular-nums;
}

.lock__notes {
  position: absolute;
  left: 0.65em;
  right: 0.65em;
  top: 13em;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}

/* A stack of older ones behind the last notification. */
.note--stacked::before,
.note--stacked::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0.9em;
  right: 0.9em;
  bottom: -0.55em;
  height: 1.4em;
  border-radius: 0 0 1.1em 1.1em;
  background: rgb(var(--ink-rgb) / 0.42);
}

.note--stacked::after {
  left: 1.8em;
  right: 1.8em;
  bottom: -1em;
  background: rgb(var(--ink-rgb) / 0.3);
}

@media (max-width: 860px) {
  .texting__in {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }
  .texting__copy {
    order: -1;
  }
  .texting__stage {
    --lw: min(320px, 78vw);
  }
}

/* ------------------------------------------------------------------ */
/* 5. A day of messages                                                */
/* ------------------------------------------------------------------ */

.everyday {
  padding-block: var(--section-y);
}

.everyday .body-lg {
  color: var(--on-paper);
}

.everyday__head .h2 {
  max-width: 11em;
}

.everyday__head .body-lg {
  max-width: 30ch;
}

@media (min-width: 1100px) {
  .everyday__head .h2 {
    max-width: none;
  }
  .everyday__head .body-lg {
    max-width: none;
  }
}

/* The day, left to right: four times on one line, each with its mark on the
   day's rule, and the chats hanging from it, each as long as it is. */
.board-scroll {
  --gap: clamp(1rem, 2vw, 1.75rem);
  margin-top: clamp(2.5rem, 4vw, 3.25rem);
}

.board-scroll:focus-visible {
  outline-offset: 4px;
  border-radius: 1rem;
}

.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 3rem var(--gap);
}

.moment {
  display: flex;
  flex-direction: column;
}

.moment__time {
  position: relative;
  padding-bottom: 1.1rem;
  font-variant-numeric: tabular-nums;
}

.moment__time time {
  display: flex;
  align-items: flex-start;
  font-size: clamp(2.5rem, 1rem + 3.6vw, 3.5rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.04em;
  color: var(--ink);
}

.moment__period {
  margin: 0.06em 0 0 0.12em;
  font-size: 0.3em;
  font-weight: 650;
  letter-spacing: 0;
}

/* The day's rule, running on through the gap to the next moment. */
.moment__time::after {
  content: "";
  position: absolute;
  left: 0;
  right: calc(-1 * var(--gap));
  bottom: 0;
  height: 1px;
  background: rgb(var(--ink-rgb) / 0.14);
  transform-origin: 0 50%;
}

.moment:last-child .moment__time::after {
  right: 0;
}

/* Each moment's mark on it, cut like the C. */
.moment__time::before {
  content: "";
  position: absolute;
  z-index: 1;
  left: 0;
  bottom: -5px;
  width: 11px;
  height: 11px;
  border-radius: 1px 4px 4px 4px;
  background: var(--red);
}

.moment__what {
  margin-top: 0.85rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--on-paper);
}

.tile {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin-top: 1rem;
  padding: 0 0.9rem 1.1rem;
  border-radius: 4px 20px 20px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--ui);
  box-shadow:
    inset 0 1px 0 rgb(var(--paper-rgb) / 0.08),
    0 2px 4px rgb(var(--ink-rgb) / 0.18),
    0 34px 60px -30px rgb(var(--ink-rgb) / 0.75);
}

/* Each chat's own header: who it is, and when. */
.tile__head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-height: 52px;
  margin-inline: -0.9rem;
  padding: 0.5em 0.95em;
  box-shadow: 0 1px 0 rgb(var(--paper-rgb) / 0.1);
}

.tile__head .avatar {
  width: 2.25em;
  height: 2.25em;
  font-size: 0.8em;
}

.tile__titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.tile__name {
  font-size: 0.9375em;
  font-weight: 600;
  line-height: 1.25;
}

.tile__sub,
.tile__when {
  font-size: max(12px, 0.8em);
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
  white-space: nowrap;
}

.tile__when {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}

.tile .bubble {
  max-width: 92%;
}

/* The reply box closes each chat, pinned to its foot. */
.tile .reply {
  position: relative;
  margin: auto -0.9rem -1.1rem;
  padding: 0.6em 0.75em 0.75em;
  border-radius: 0 0 20px 20px;
}

.tile__chat {
  margin-bottom: 1.1rem;
}

.tile .bubble--wide {
  width: 100%;
  max-width: 100%;
}

.tile .photo {
  width: 100%;
  max-width: 100%;
}

.tile .photo img {
  aspect-ratio: 16 / 10;
}

.tile .photo + .bubble {
  margin-top: 0;
}

.tile .msg--kai .avatar {
  font-size: 0.7em;
}

/* On phones the day scrolls sideways, a moment at a time. */
@media (max-width: 719px) {
  .board-scroll {
    margin-inline: calc(-1 * var(--margin));
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--margin);
  }
  .board {
    display: flex;
    width: max-content;
    padding: 0.25rem var(--margin) 2.5rem;
  }
  .board {
    align-items: stretch;
  }
  .moment {
    flex: none;
    width: min(84vw, 21rem);
    scroll-snap-align: start;
  }
  .tile {
    flex: 1;
  }
  .tile .photo img {
    aspect-ratio: 2 / 1;
  }
}

@media (min-width: 720px) {
  .board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .moment:nth-child(2n) .moment__time::after {
    right: 0;
  }
}

@media (min-width: 1180px) {
  .board {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .moment:nth-child(2n):not(:last-child) .moment__time::after {
    right: calc(-1 * var(--gap));
  }
}

/* The poll, as fans see it in the app (poll-card.tsx), and live here. */
.poll__q {
  font-weight: 600;
  line-height: 1.3;
}

.poll__vote {
  margin-top: 1.15em;
  display: grid;
  gap: 0.5em;
}

.poll__opt {
  min-height: 44px;
  padding: 0 1em;
  border: 0;
  border-radius: 0.14em 0.95em 0.95em 0.95em;
  background: transparent;
  box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.22);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition:
    box-shadow 160ms ease,
    background-color 160ms ease,
    transform var(--t-press) var(--ease-out);
}

.poll__opt:active {
  transform: scale(0.98);
}

.poll__opt:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
  .poll__opt:hover {
    box-shadow: inset 0 0 0 1px rgb(var(--ink-rgb) / 0.5);
    background: rgb(var(--ink-rgb) / 0.04);
  }
}

.poll__status {
  margin-top: 1.15em;
  font-size: 0.8em;
  color: color-mix(in srgb, var(--ink) 72%, var(--white));
}

.poll__status:empty {
  display: none;
}

.poll__results {
  margin-top: 1.15em;
  display: grid;
  gap: 0.75em;
}

.poll__results:focus {
  outline: none;
}

.poll__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35em 0.75em;
  font-size: 0.9333em;
}

.poll__label {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  font-weight: 500;
}

.poll__mine {
  display: inline-flex;
  align-items: center;
}

.poll__mine svg {
  width: 1em;
  height: 1em;
  color: var(--red);
}

.poll__pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.poll__bar {
  grid-column: 1 / -1;
  height: 0.5em;
  overflow: hidden;
  border-radius: 1em;
  background: rgb(var(--ink-rgb) / 0.1);
}

.poll__fill {
  display: block;
  height: 100%;
  border-radius: 1em;
  background: rgb(var(--ink-rgb) / 0.35);
  transform-origin: 0 50%;
}

.poll__fill--yes {
  width: 38%;
}

.poll__fill--no {
  width: 62%;
}

.poll__row.is-mine .poll__fill {
  background: var(--red);
}

/* ------------------------------------------------------------------ */
/* 6. Write back: the inbox, the answer, every fan's chat              */
/* ------------------------------------------------------------------ */

.back {
  position: relative;
  isolation: isolate;
  padding-block: var(--section-y);
  overflow: clip;
}

.back::before {
  content: "";
  position: absolute;
  z-index: -1;
  right: -10%;
  bottom: 0;
  width: min(1100px, 120vw);
  aspect-ratio: 1.4;
  background: radial-gradient(
    closest-side,
    rgb(var(--red-rgb) / 0.14),
    rgb(var(--red-rgb) / 0.04) 55%,
    transparent
  );
}

.back__head .h2 {
  max-width: 8em;
}

@media (min-width: 900px) {
  .back__head .h2 {
    max-width: none;
  }
  .back__head .body-lg {
    max-width: 62ch;
  }
}

/* The answer, left to right: Kai's inbox, his answer, every fan's chat.
   Three panels at the app's own size, joined by red links. */
.flow {
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  display: grid;
  grid-template-columns: minmax(0, 31rem);
  grid-template-areas: "tk" "inbox" "l1" "answer" "l2" "tf" "fan";
  row-gap: 0.85rem;
}

.flow__tag--kai {
  grid-area: tk;
}

.flow__tag--fan {
  grid-area: tf;
}

.ibox {
  grid-area: inbox;
}

.composer {
  grid-area: answer;
}

.flow__fan {
  grid-area: fan;
  display: grid;
  align-content: start;
  gap: 1.25rem;
}

.flow__link--1 {
  grid-area: l1;
}

.flow__link--2 {
  grid-area: l2;
}

/* A red link with its arrow: down the page when stacked, across in a row. */
.flow__link {
  position: relative;
  display: grid;
  place-items: center;
  height: 52px;
}

.flow__link::before {
  content: "";
  position: absolute;
  top: -0.85rem;
  bottom: -0.85rem;
  left: 50%;
  width: 2px;
  translate: -50% 0;
  background: var(--red);
}

.flow__link svg {
  position: relative;
  width: 34px;
  height: 34px;
  padding: 8px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  rotate: 90deg;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  box-shadow: 0 0 0 6px var(--bg);
}

/* Kai's inbox (mobile/src/fighter/inbox), cropped to its top four rows. */
.ibox {
  position: relative;
  overflow: hidden;
  border-radius: 4px 20px 20px 20px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--ui);
  line-height: 1.3;
  box-shadow:
    inset 0 1px 0 rgb(var(--paper-rgb) / 0.08),
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.07),
    0 30px 60px -30px rgb(var(--shade));
}

.ibx-head {
  padding: 1.1em 1.15em 0.7em;
}

.ibx-head__title {
  display: block;
  font-size: 1.75em;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ibx-head__sub {
  display: block;
  margin-top: 0.2em;
  font-size: 0.875em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.chips {
  margin-top: 0.85em;
  display: flex;
  gap: 0.45em;
}

.chip {
  padding: 0.45em 0.95em;
  border-radius: 2em;
  background: rgb(var(--paper-rgb) / 0.09);
  font-size: 0.8125em;
  font-weight: 500;
}

.chip--on {
  background: var(--paper);
  color: var(--ink);
}

.ibx-list {
  padding: 0.2em 0 0.5em;
  list-style: none;
}

.ibx {
  display: flex;
  gap: 0.75em;
  padding: 0.7em 1.15em;
}

.ibx + .ibx {
  box-shadow: inset 0 1px 0 rgb(var(--paper-rgb) / 0.07);
}

/* The reply Kai picked: a red bar down its left edge. */
.ibx--picked {
  background: rgb(var(--paper-rgb) / 0.07);
  box-shadow: inset 3px 0 0 var(--red);
}

.ibx--picked + .ibx {
  box-shadow: none;
}

.fan {
  flex: none;
  width: 2.6em;
  height: 2.6em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--paper-rgb) / 0.1);
  font-size: 0.875em;
  font-weight: 600;
}

.ibx__text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ibx__top {
  display: flex;
  align-items: center;
  gap: 0.5em;
}

.ibx__name {
  font-weight: 600;
}

.ibx__time {
  font-size: max(12px, 0.8125em);
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.badge {
  margin-left: auto;
  padding: 0.2em 0.65em;
  border-radius: 1em;
  background: rgb(var(--paper-rgb) / 0.12);
  font-size: max(12px, 0.8em);
  font-weight: 600;
}

.ibx__body {
  margin-top: 0.12em;
  font-size: 0.9375em;
  line-height: 1.33;
}

.ibx__on {
  margin-top: 0.25em;
  font-size: max(12px, 0.8em);
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Kai's tabs, with the red Your chat button in the middle. */
.tabs {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  padding: 0.55em 0.2em 0.85em;
  background: var(--ink);
  box-shadow: 0 -1px 0 color-mix(in srgb, var(--paper) 10%, var(--ink));
}

.tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3em;
  font-size: max(11px, 0.75em);
  font-weight: 500;
  color: color-mix(in srgb, var(--paper) 66%, var(--ink));
  white-space: nowrap;
}

.tab svg {
  width: 1.9em;
  height: 1.9em;
}

.tab--on {
  color: var(--paper);
}

.tab__fab {
  width: 3.9em;
  height: 3.9em;
  margin-top: -1.4em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  box-shadow: 0 0.5em 1.2em -0.3em rgb(var(--red-rgb) / 0.7);
}

.tab__fab svg {
  width: 1.9em;
  height: 1.9em;
}

/* Kai writing his answer. */
.composer {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  padding: 1.15em 1.2em 1.2em;
  border-radius: 4px 20px 20px 20px;
  background: var(--ink-2);
  box-shadow:
    inset 0 1px 0 rgb(var(--paper-rgb) / 0.08),
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.07),
    0 30px 60px -30px rgb(var(--shade));
  font-size: var(--ui);
}

.composer__title {
  font-size: 1.125em;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.composer__from {
  margin-top: -0.4em;
  font-size: 0.8667em;
  color: var(--muted);
}

.composer__quote {
  margin: 0;
  background: rgb(var(--paper-rgb) / 0.07);
  color: color-mix(in srgb, var(--paper) 86%, var(--ink));
  font-size: 0.9375em;
}

.composer__field {
  min-height: 5.6em;
  padding: 0.75em 0.9em;
  border-radius: 3px 16px 16px 16px;
  background: rgb(var(--paper-rgb) / 0.04);
  box-shadow: inset 0 0 0 1px rgb(var(--paper-rgb) / 0.2);
  line-height: 1.4;
}

.composer__caret {
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--red);
  visibility: hidden;
}

.composer__foot {
  display: flex;
  align-items: center;
  gap: 1em;
}

.composer__note {
  flex: 1;
  font-size: 0.8667em;
  line-height: 1.4;
  color: var(--muted);
}

.composer__send {
  position: relative;
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--paper-rgb) / 0.15);
  color: color-mix(in srgb, var(--paper) 64%, var(--ink));
  transition:
    background-color 200ms ease,
    color 200ms ease,
    transform 150ms var(--ease-out);
}

.composer__send svg {
  position: absolute;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition:
    opacity 200ms ease,
    transform 300ms var(--ease-out);
}

.composer__done {
  opacity: 0;
  transform: scale(0.5);
}

.composer__send.is-ready,
.composer__send.is-sent {
  background: var(--red);
  color: var(--white);
}

.composer__send.is-pressed {
  transform: scale(0.9);
}

.composer__send.is-sent .composer__go {
  opacity: 0;
  transform: translateY(-40%) scale(0.6);
}

.composer__send.is-sent .composer__done {
  opacity: 1;
  transform: none;
}

/* The answer, as it lands in a fan's chat. */
.fanchat {
  overflow: hidden;
  border-radius: 4px 20px 20px 20px;
  background: var(--ink);
  box-shadow:
    inset 0 1px 0 rgb(var(--paper-rgb) / 0.08),
    inset 0 0 0 1px rgb(var(--paper-rgb) / 0.07),
    0 30px 60px -30px rgb(var(--shade));
  font-size: var(--ui);
  line-height: 1.3;
}

.fanchat .tile__head {
  margin: 0;
}

.fanchat__body {
  padding: 0.1em 0.9em 1.1em;
}

.fanchat .bubble {
  max-width: 94%;
}

.flow__cap {
  font-size: var(--f-lead);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
  color: var(--paper);
  text-wrap: balance;
}

@media (max-width: 719px) {
  .ibx__on {
    display: none;
  }
  .flow__link {
    height: 44px;
  }
}

/* Tablets: the inbox on the left, the answer and a fan's chat beside it. */
@media (min-width: 720px) and (max-width: 1199px) {
  .flow {
    grid-template-columns: minmax(0, 1fr) 64px minmax(0, 1fr);
    grid-template-areas:
      "tk tk tk"
      "inbox l1 answer"
      "inbox . l2"
      "inbox . tf"
      "inbox . fan";
    grid-template-rows: auto auto auto auto 1fr;
    align-items: start;
  }
  .flow__link--1 {
    align-self: start;
    margin-top: 9.5rem;
    height: 34px;
  }
  .flow__link--1::before {
    inset: 50% -1px auto -1px;
    width: auto;
    height: 2px;
    translate: 0 -50%;
  }
  .flow__link--1 svg {
    rotate: none;
  }
}

/* Wide screens: one row, the three panels on one top line. */
@media (min-width: 1200px) {
  .flow {
    grid-template-columns:
      minmax(0, 1fr) 72px minmax(0, 1fr) 72px
      minmax(0, 1fr);
    grid-template-areas:
      "tk tk tk . tf"
      "inbox l1 answer l2 fan";
    align-items: start;
    row-gap: 1.1rem;
  }
  .flow__link {
    align-self: start;
    margin-top: 9.5rem;
    height: 34px;
  }
  .flow__link::before {
    inset: 50% -1px auto -1px;
    width: auto;
    height: 2px;
    translate: 0 -50%;
  }
  .flow__link svg {
    rotate: none;
  }
}

/* ------------------------------------------------------------------ */
/* 7. Private by design                                                */
/* ------------------------------------------------------------------ */

.privacy {
  padding-block: var(--section-y);
}

.privacy .body-lg {
  color: var(--on-paper);
}

.privacy__in {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "truths" "report";
  gap: 2.5rem;
}

.privacy__head {
  grid-area: head;
}

.truths {
  grid-area: truths;
}

.truth {
  position: relative;
  padding: 1.4rem 0 1.4rem 2.25rem;
  box-shadow: inset 0 1px 0 rgb(var(--ink-rgb) / 0.12);
}

.truth:first-child {
  padding-top: 0.25rem;
  box-shadow: none;
}

.truth:last-child {
  padding-bottom: 0;
}

/* A small red mark with the C's sharp corner. */
.truth::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(1.4rem + 0.42em);
  width: 1rem;
  height: 1rem;
  border-radius: 1px 6px 6px 6px;
  background: var(--red);
}

.truth:first-child::before {
  top: calc(0.25rem + 0.42em);
}

.truth__title {
  font-size: clamp(1.375rem, 0.95rem + 1.2vw, 2rem);
  font-weight: 650;
  line-height: 1.12;
  letter-spacing: -0.03em;
}

.truth p {
  margin-top: 0.5rem;
  max-width: 50ch;
  line-height: 1.5;
  color: var(--on-paper);
}

@media (max-width: 719px) {
  .privacy__in {
    gap: 2rem;
  }
  .truth {
    padding-block: 1.1rem;
  }
  .truth::before {
    top: calc(1.1rem + 0.42em);
  }
}

/* The Report sheet, open over a message in Kai's chat. */
.report {
  grid-area: report;
  justify-self: start;
  width: min(100%, 24rem);
}

.report__screen {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  border-radius: 4px 24px 24px 24px;
  background: var(--ink);
  color: var(--paper);
  font-size: 15px;
  box-shadow:
    0 2px 4px rgb(var(--ink-rgb) / 0.18),
    0 40px 70px -34px rgb(var(--ink-rgb) / 0.8);
}

.report__app {
  padding-bottom: 0.9rem;
}

.report .chat-head {
  position: relative;
  padding-top: 0.75em;
}

.report__behind {
  padding: 0.4em 0.75em;
}

/* The chat dims behind the sheet. */
.report__screen::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgb(var(--shade) / 0.55);
}

.sheet {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  padding: 0.5rem 1.15rem 1.25rem;
  border-radius: 4px 22px 0 0;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 -12px 40px -12px rgb(var(--shade) / 0.9);
}

.sheet__grab {
  width: 2.25rem;
  height: 0.3rem;
  margin: 0 auto 0.85rem;
  border-radius: 999px;
  background: rgb(var(--ink-rgb) / 0.18);
}

.sheet__title {
  font-size: 1.0625rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.sheet__label {
  margin: 0.6rem 0 0.25rem;
  font-size: 0.8125rem;
  color: color-mix(in srgb, var(--ink) 72%, var(--white));
}

.sheet__opts {
  display: flex;
  flex-direction: column;
}

.sheet__opt {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 2.1rem;
  padding-block: 0.25rem;
  box-shadow: 0 1px 0 rgb(var(--ink-rgb) / 0.08);
  font-size: 0.9375rem;
  line-height: 1.3;
}

.sheet__radio {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgb(var(--ink-rgb) / 0.3);
}

.sheet__opt.is-on .sheet__radio {
  box-shadow: inset 0 0 0 0.36rem var(--red);
}

.sheet__btn {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
}

/* What the app says once the report is sent. */
.toast {
  width: fit-content;
  max-width: 100%;
  margin-top: 1rem;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.7rem 1.1rem 0.7rem 0.75rem;
  border-radius: 4px 18px 18px 18px;
  background: var(--ink);
  color: var(--paper);
  font-size: var(--ui);
  font-weight: 500;
  line-height: 1.3;
  box-shadow: 0 18px 36px -18px rgb(var(--ink-rgb) / 0.7);
}

.toast svg {
  flex: none;
  width: 1.6rem;
  height: 1.6rem;
  padding: 0.3rem;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 720px) {
  .privacy__in {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-areas:
      "head truths"
      "report truths";
    grid-template-rows: auto 1fr;
    column-gap: clamp(3rem, 7vw, 7rem);
    row-gap: 2rem;
  }
  .report {
    align-self: end;
  }
  .truths {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }
}

/* ------------------------------------------------------------------ */
/* 8. The close                                                        */
/* ------------------------------------------------------------------ */

.close {
  padding-block: var(--section-y);
}

.close__in {
  --dw-profile: clamp(290px, 23vw, 340px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 3.5rem;
}

/* The page's one h2 size; each sentence on one line where it fits. */
.close__title {
  font-size: min(var(--f-h2), (100vw - 2 * var(--margin)) / 10);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.close__line {
  display: block;
  text-wrap: balance;
}

/* The one big line is the headline; this one is the news under it. */
.close__soon {
  margin-top: clamp(1.5rem, 2.6vw, 2.25rem);
  max-width: 17em;
  font-size: clamp(1.375rem, 0.95rem + 1.2vw, 2.125rem);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.close__text {
  margin-top: 0.75rem;
  max-width: 32ch;
  font-size: var(--f-lead);
  line-height: 1.45;
}

.close .btn {
  margin-top: 2rem;
}

.close__stage {
  justify-self: center;
}

.close__phone {
  position: relative;
}

.device--profile {
  --dw: var(--dw-profile);
  filter: drop-shadow(0 40px 50px rgb(var(--shade) / 0.5));
}

/* Kai's page in the app. */
.profile__top {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4.6em 1.25em 1.1em;
  background:
    radial-gradient(
      90% 70% at 50% 0%,
      rgb(var(--red-rgb) / 0.5),
      transparent 75%
    ),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--red) 18%, var(--ink)),
      var(--ink)
    );
  text-align: center;
}

.profile__back {
  position: absolute;
  top: 3.5em;
  left: 0.6em;
  width: 2.4em;
  height: 2.4em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgb(var(--ink-rgb) / 0.45);
}

.profile__back svg {
  width: 1.4em;
  height: 1.4em;
}

.avatar--xl {
  width: 6em;
  height: 6em;
  font-size: 1.25em;
  box-shadow: 0 0 0 0.2em var(--ink);
}

.profile__name {
  margin-top: 0.55em;
  font-size: 1.5em;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.profile__meta {
  font-size: 0.875em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.profile {
  font-size: 1.08em;
}

.profile__body {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
  padding: 0.3em 1.15em;
}

.profile__bio {
  font-size: 0.9375em;
  line-height: 1.4;
  color: color-mix(in srgb, var(--paper) 88%, var(--ink));
  text-align: center;
}

.profile__label {
  margin-top: 0.9em;
  font-size: 0.8125em;
  font-weight: 600;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.profile__msgs {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
}

.profile__msgs .bubble {
  max-width: 92%;
}

.profile__perk {
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding-block: 0.15em;
  font-size: 0.875em;
  line-height: 1.3;
}

.profile__perk svg {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.profile__buy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75em;
  padding: 0.85em 1.25em 2.3em;
  background: rgb(var(--ink-rgb) / 0.96);
  box-shadow: 0 -1px 0 rgb(var(--paper-rgb) / 0.1);
}

.profile__terms {
  display: flex;
  flex-direction: column;
  font-size: 0.8125em;
  color: color-mix(in srgb, var(--paper) 72%, var(--ink));
}

.profile__plan {
  font-size: 1.3em;
  font-weight: 700;
  color: var(--paper);
}

.profile__btn {
  padding: 0.85em 1.6em;
  border-radius: 999px;
  background: var(--red);
  color: var(--white);
  font-size: 0.9375em;
  font-weight: 600;
}

/* His last message, arriving over the phone's left edge. It covers only the
   frame and the margin inside it, never the page's own words. */
.thanks {
  position: absolute;
  z-index: 3;
  top: 63%;
  right: calc(100% - var(--dw-profile) * 0.075);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 15px;
}

/* The same red KN as everywhere, lifted off the red with a Paper ring. */
.thanks .avatar {
  width: 2.6em;
  height: 2.6em;
  font-size: 0.8em;
  box-shadow:
    0 0 0 2px var(--paper),
    0 8px 18px -6px rgb(var(--shade) / 0.6);
}

.thanks__bubble {
  display: block;
  width: max-content;
  max-width: 13em;
  padding: 0.65em 0.95em 0.55em;
  border-radius: 3px 18px 18px 18px;
  background: var(--white);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
  box-shadow:
    0 24px 50px -18px rgb(var(--shade) / 0.8),
    0 4px 10px -4px rgb(var(--shade) / 0.45);
}

.thanks .bubble__time {
  color: color-mix(in srgb, var(--ink) 62%, var(--white));
}

@media (min-width: 900px) {
  .close__title {
    font-size: var(--f-h2);
  }
  .close__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
  }
  .close__stage {
    justify-self: end;
  }
}

/* Wide screens: the phone stands in the middle of its half of the red. */
@media (min-width: 1280px) {
  .close__in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .close__stage {
    justify-self: center;
  }
}

/* On narrower screens it hangs off the phone's lower left corner, over the
   frame and the strip under the Subscribe bar. */
@media (max-width: 899px) {
  .close__stage {
    display: grid;
    justify-items: center;
  }
  .close__phone {
    --dw-profile: min(300px, 76vw);
    padding-bottom: 3.25rem;
  }
  .thanks {
    top: auto;
    right: auto;
    left: -1rem;
    bottom: 0;
    font-size: 16px;
  }
}

/* ------------------------------------------------------------------ */
/* Footer: the name, as wide as the page                               */
/* ------------------------------------------------------------------ */

.footer {
  padding-block: clamp(3.5rem, 5vw, 4.25rem) 2.5rem;
}

.footer__mark {
  width: 100%;
  height: auto;
}

.footer__row {
  margin-top: clamp(2.5rem, 5vw, 4.5rem);
  display: grid;
  gap: 2.5rem;
}

.footer__label {
  font-size: 1rem;
  color: var(--muted);
}

.footer__email {
  display: inline-block;
  margin-top: max(0px, calc(0.6rem - (44px - 1.1em) / 2));
  padding-block: max(0.2rem, calc((44px - 1.1em) / 2));
  font-size: clamp(1.5rem, 0.9rem + 2.4vw, 2.5rem);
  font-weight: 650;
  letter-spacing: -0.035em;
  line-height: 1.1;
  color: var(--paper);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.16em;
  overflow-wrap: anywhere;
  transition: text-decoration-color 180ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .footer__email:hover {
    text-decoration-color: var(--paper);
  }
}

.footer__legal {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9375rem;
  color: var(--muted);
}

.footer__legal p:first-child {
  color: var(--paper);
  font-weight: 550;
}

@media (min-width: 1000px) {
  .footer__row {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
  }
  .footer__legal {
    text-align: right;
  }
}

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.lost {
  position: relative;
  isolation: isolate;
  overflow: clip;
  min-height: calc(100svh - var(--nav-h));
  display: grid;
  align-content: center;
  padding-block: 4rem 6rem;
}

.lost::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(
    60% 36% at 62% 62%,
    rgb(var(--red-rgb) / 0.3),
    rgb(var(--red-rgb) / 0.09) 50%,
    transparent 100%
  );
}

.lost__chat {
  max-width: 26em;
  font-size: clamp(16px, 0.7rem + 0.7vw, 20px);
}

.lost__chat .msg--you {
  margin-bottom: 0.4em;
}

.lost__title {
  margin-top: 2.5rem;
  font-size: clamp(3rem, 1rem + 6vw, 7rem);
  font-weight: 650;
  line-height: 0.95;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.lost__text {
  margin-top: 1.25rem;
  font-size: var(--f-lead);
  color: var(--soft);
}

.lost .btn {
  margin-top: 2.25rem;
}

.avatar--icon {
  border-radius: 0;
  background: none;
}

/* ------------------------------------------------------------------ */
/* Motion. Everything above is the finished page; what follows only    */
/* adds travel, only on screens, only with main.js running (it adds    */
/* the js class), and only for people who haven't asked for less.     */
/* ------------------------------------------------------------------ */

@media screen and (prefers-reduced-motion: no-preference) {
  /* The headline lifts while the phone rises into its light. */
  .js .hero__title .line__in {
    animation: line-up 1.1s var(--ease-out) both;
  }
  .js .hero__title .line:nth-child(2) .line__in {
    animation-delay: 0.1s;
  }
  .js .hero__lead {
    animation: rise 1s var(--ease-out) 0.28s both;
  }
  .js .hero .soon {
    animation: rise 1s var(--ease-out) 0.4s both;
  }
  .js .hero__phone {
    animation: phone-rise 1.4s var(--ease-out) 0.1s both;
  }
  .js .hero__stage::before {
    animation: glow-in 2.4s var(--ease-soft) 0.2s both;
  }
  /* The notification drops in as the voice note arrives. */
  .js .note--float {
    animation: note-in 0.8s var(--ease-out) 1s both;
  }

  /* Messages arriving in the hero's chat; main.js runs the sequence. */
  .js [data-chat] {
    transition: transform 0.6s var(--ease-out);
  }
  .js [data-chat] [data-arrive] {
    opacity: 0;
    transform: translateY(0.9em) scale(0.97);
    transform-origin: 0 100%;
  }
  .js [data-chat] .msg--you[data-arrive] {
    transform-origin: 100% 100%;
  }
  .js [data-chat] [data-arrive].is-in {
    opacity: 1;
    transform: none;
    transition:
      opacity 0.4s ease,
      transform 0.6s var(--ease-out);
  }
  .js [data-chat] .is-mine {
    transform-origin: 100% 100%;
    animation: bubble-in 0.45s var(--ease-out) both;
  }

  /* Sections: each part arrives once, in reading order. */
  .js [data-reveal] {
    transition:
      opacity 0.7s var(--ease-out),
      transform 0.8s var(--ease-out);
  }
  .js [data-reveal]:not(.is-in) {
    opacity: 0;
    transform: translateY(1.75rem);
  }

  /* The statement: its promise lights up word by word as it scrolls in. */
  @supports (animation-timeline: view()) {
    .js .statement {
      view-timeline-name: --statement;
    }
    .js .statement .w {
      animation: word-lit linear both;
      animation-timeline: --statement;
      animation-range: cover 14% cover 24%;
    }
    .js .statement .w:nth-child(2) {
      animation-range: cover 16.2% cover 26.2%;
    }
    .js .statement .w:nth-child(3) {
      animation-range: cover 18.4% cover 28.4%;
    }
    .js .statement .w:nth-child(4) {
      animation-range: cover 20.6% cover 30.6%;
    }
    .js .statement .w:nth-child(5) {
      animation-range: cover 22.8% cover 32.8%;
    }
    .js .statement .w:nth-child(6) {
      animation-range: cover 25% cover 35%;
    }
    .js .statement .w:nth-child(7) {
      animation-range: cover 27.2% cover 37.2%;
    }
    .js .statement .w:nth-child(8) {
      animation-range: cover 29.4% cover 39.4%;
    }
    .js .statement .w:nth-child(9) {
      animation-range: cover 31.6% cover 41.6%;
    }
    .js .statement .w:nth-child(10) {
      animation-range: cover 33.8% cover 43.8%;
    }
    .js .statement .w:nth-child(11) {
      animation-range: cover 36% cover 46%;
    }
  }

  /* Three chats arrive, the middle one first, each fan's reply last. */
  .js .fanc {
    transition:
      opacity 0.6s ease,
      transform 0.9s var(--ease-out);
  }
  .js .trio:not(.is-in) .fanc {
    opacity: 0;
    transform: translateY(2rem) scale(0.96);
  }
  .js .trio .fanc:first-child {
    transition-delay: 0.14s;
  }
  .js .trio .fanc:last-child {
    transition-delay: 0.26s;
  }
  .js .fanc .msg--you {
    transition:
      opacity 0.35s ease 0.4s,
      transform 0.5s var(--ease-out) 0.4s;
    transform-origin: 100% 100%;
  }
  .js .trio:not(.is-in) .fanc .msg--you {
    opacity: 0;
    transform: translateY(0.8em) scale(0.94);
  }

  /* Notifications drop in, newest last, on top. */
  .js .texting__stage [data-note] {
    transition:
      opacity 0.35s ease,
      transform 0.55s var(--ease-out);
  }
  .js .texting__stage:not(.is-in) [data-note] {
    opacity: 0;
    transform: translateY(-1.5em) scale(0.94);
  }
  .js .texting__stage [data-note]:nth-child(1) {
    transition-delay: 0.45s;
  }
  .js .texting__stage [data-note]:nth-child(2) {
    transition-delay: 0.25s;
  }
  .js .texting__stage [data-note]:nth-child(3) {
    transition-delay: 0.05s;
  }

  /* A day: the line draws left to right, each moment's mark lands on it,
     and its chat follows. */
  .js .board .moment__time::after {
    transition: transform 0.5s var(--ease-soft);
  }
  .js .board:not(.is-in) .moment__time::after {
    transform: scaleX(0);
  }
  .js .board .moment__time::before,
  .js .board .tile {
    transition:
      opacity 0.4s ease,
      transform 0.6s var(--ease-out);
  }
  .js .board:not(.is-in) .moment__time::before {
    opacity: 0;
    transform: scale(0.2);
  }
  .js .board:not(.is-in) .tile {
    opacity: 0;
    transform: translateX(-1.25rem);
  }
  .js .board .moment:nth-child(1) .moment__time::after {
    transition-delay: 0s;
  }
  .js .board .moment:nth-child(1) .moment__time::before {
    transition-delay: 0.04s;
  }
  .js .board .moment:nth-child(1) .tile {
    transition-delay: 0.08s;
  }
  .js .board .moment:nth-child(2) .moment__time::after {
    transition-delay: 0.1s;
  }
  .js .board .moment:nth-child(2) .moment__time::before {
    transition-delay: 0.14s;
  }
  .js .board .moment:nth-child(2) .tile {
    transition-delay: 0.18s;
  }
  .js .board .moment:nth-child(3) .moment__time::after {
    transition-delay: 0.2s;
  }
  .js .board .moment:nth-child(3) .moment__time::before {
    transition-delay: 0.24s;
  }
  .js .board .moment:nth-child(3) .tile {
    transition-delay: 0.28s;
  }
  .js .board .moment:nth-child(4) .moment__time::after {
    transition-delay: 0.3s;
  }
  .js .board .moment:nth-child(4) .moment__time::before {
    transition-delay: 0.34s;
  }
  .js .board .moment:nth-child(4) .tile {
    transition-delay: 0.38s;
  }

  /* A poll's bars grow once a vote is in. */
  .poll.is-voted .poll__fill {
    animation: bar-grow 0.8s var(--ease-out) both;
  }

  /* Replies land in Kai's inbox one by one. */
  .js .ibox [data-row-in] {
    transition:
      opacity 0.45s ease,
      transform 0.6s var(--ease-out);
  }
  .js .ibox:not(.is-in) [data-row-in] {
    opacity: 0;
    transform: translateY(0.8em);
  }
  .js .ibox [data-row-in]:nth-child(2) {
    transition-delay: 0.08s;
  }
  .js .ibox [data-row-in]:nth-child(3) {
    transition-delay: 0.16s;
  }
  .js .ibox [data-row-in]:nth-child(4) {
    transition-delay: 0.24s;
  }

  /* Kai answers: he types, sends, jess.k's reply is marked answered, and the
     answer lands in every fan's chat, in the space kept for it. */
  .js .flow [data-badge] {
    transition:
      opacity 0.3s ease,
      transform 0.6s var(--ease-out);
  }
  .js .flow.is-waiting [data-badge] {
    opacity: 0;
    transform: scale(0.8);
  }
  .js .flow [data-answer] > .msg {
    transition:
      opacity 0.35s ease 0.15s,
      transform 0.6s var(--ease-out) 0.1s;
    transform-origin: 0 100%;
  }
  .js .flow.is-waiting [data-answer] > .msg {
    opacity: 0;
    transform: translateY(1em) scale(0.97);
  }
  .js .flow.is-typing .composer__caret {
    visibility: visible;
    animation: caret 1s steps(1) infinite;
  }

  /* The Report sheet rises over the chat. */
  .js .report__screen .sheet,
  .js .report__screen::after {
    transition:
      transform 0.7s var(--ease-out) 0.1s,
      opacity 0.5s ease;
  }
  .js .report__screen:not(.is-in) .sheet {
    transform: translateY(100%);
  }
  .js .report__screen:not(.is-in)::after {
    opacity: 0;
  }

  /* Kai's last message pops in over the phone. */
  .js .thanks {
    transition:
      opacity 0.35s ease 0.25s,
      transform 0.6s var(--ease-out) 0.25s;
    transform-origin: 0 0;
  }
  .js .thanks:not(.is-in) {
    opacity: 0;
    transform: translateY(1rem) scale(0.9);
  }

  /* The lock screen drifts a little against the scroll. */
  @supports (animation-timeline: view()) {
    .texting__crop .device {
      animation: drift linear both;
      animation-timeline: view();
      animation-range: cover 0% cover 100%;
    }
  }
}

@keyframes line-up {
  from {
    transform: translateY(105%);
  }
  to {
    transform: none;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes phone-rise {
  from {
    opacity: 0;
    transform: translateY(10%) scale(0.95);
  }
  40% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes glow-in {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes note-in {
  from {
    opacity: 0;
    transform: translateY(-1rem) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bubble-in {
  from {
    opacity: 0;
    transform: translateY(0.8em) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes bar-grow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

@keyframes word-lit {
  from {
    color: var(--dim);
  }
  to {
    color: var(--paper);
  }
}

@keyframes caret {
  50% {
    opacity: 0;
  }
}

@keyframes drift {
  from {
    transform: translateY(1.5%);
  }
  to {
    transform: translateY(-1.5%);
  }
}

/* ------------------------------------------------------------------ */
/* Print: the page as it is, everything shown, nothing moving.         */
/* ------------------------------------------------------------------ */

@media print {
  html {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .nav {
    position: static;
  }
  .hero {
    margin-top: 0;
    padding-top: 0;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-chat] {
    transform: none !important;
  }
  .hero__hint {
    display: none;
  }
  section,
  figure,
  .tile,
  .truth {
    break-inside: avoid;
  }
}

/* Sideways rows: touch screens swipe them with no bar; with a mouse, a thin
   bar shows they scroll. */
@media (hover: none) {
  .trio,
  .board-scroll {
    scrollbar-width: none;
  }
  .trio::-webkit-scrollbar,
  .board-scroll::-webkit-scrollbar {
    display: none;
  }
}

@media (hover: hover) and (pointer: fine) {
  .trio,
  .board-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgb(var(--ink-rgb) / 0.55) transparent;
  }
}

/* Windows High Contrast: the fields and poll options keep their edges, and
   the reply box shows its focus. */
@media (forced-colors: active) {
  .reply__field {
    border: 1px solid CanvasText;
  }
  .reply__box:focus-within {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
  .poll__opt {
    border: 1px solid ButtonText;
  }
}
