/*
 * TiniTelli's coming-soon site: the waiting list's first page, its sheet, the pages after it, and
 * the notice (the new waiting-list page, card 263, the founder's yes of 22 Nov 2026).
 *
 * Candy Pop, under @tv/ui's own token names. Light always, never dark (R47). Every colour on the
 * site is a token in the one :root block below; the rules after it only read tokens.
 *
 * The first page is a short story told in bands of colour, each with a soft wave along its top edge:
 *   hero (blush) > the friends (lemon) > Dan's letter (candy floss) > Founding Families (bubblegum)
 *   > trust (mint) > the end (the friends on Harbour Row) > the foot (plum).
 *
 * Parts: 1 fonts · 2 tokens · 3 base · 4 shared pieces (bar, buttons, field, chips, waves, swipe row)
 *        5 the first page's sections · 6 the form sheet · 7 the sticky bar · 8 the pages after
 *        the form, and the notice
 */

/* 1. Fonts, served from this site (the page loads nothing from other websites). */
@font-face {
  font-family: 'Fredoka';
  src: url('/fonts/fredoka-latin.woff2') format('woff2');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('/fonts/nunito-latin.woff2') format('woff2');
  font-weight: 200 1000;
  font-display: swap;
}

/* 2. Tokens. */
:root {
  /* The founder's palette (@tv/ui tokens.css). */
  --color-bubblegum: #d81e73;
  --color-plum: #2a1b3d;
  --color-muted: #6b5a7e;
  --color-body: #4a3a5e;
  --color-lemon: #ffc93d;
  --color-mint: #4ddba0;
  --color-sky: #74c7ff;
  --color-lilac: #b9a2ff;
  --color-candy-floss: #ffe3f0;
  --color-blush: #fff5f9;
  --color-white: #ffffff;

  /* The bands: each a soft wash of one brand colour, so the plum words keep their contrast. */
  --band-hero: var(--color-blush);
  --band-sky: color-mix(in srgb, var(--color-sky) 34%, var(--color-white));
  --band-lemon: color-mix(in srgb, var(--color-lemon) 42%, var(--color-white));
  --band-floss: var(--color-candy-floss);
  --band-pink: var(--color-bubblegum);
  --band-mint: color-mix(in srgb, var(--color-mint) 32%, var(--color-white));
  --band-plum: var(--color-plum);
  --band-lilac: color-mix(in srgb, var(--color-lilac) 30%, var(--color-white));

  /* Colour roles. */
  --surface: var(--color-blush);
  --surface-raised: var(--color-white);
  --surface-soft: var(--color-candy-floss);
  --ink: var(--color-plum);
  --ink-body: var(--color-body);
  --ink-muted: var(--color-muted);
  --ink-on-pink: var(--color-white);
  --ink-on-plum: var(--color-blush);
  --ink-on-plum-soft: color-mix(in srgb, var(--color-blush) 78%, var(--color-plum));
  --link: var(--color-bubblegum);
  --action: var(--color-bubblegum);
  --action-deep: color-mix(in srgb, var(--color-bubblegum) 86%, var(--color-plum));
  --action-edge: color-mix(in srgb, var(--color-bubblegum) 72%, var(--color-plum));
  --ink-on-action: var(--color-white);
  --edge-soft: color-mix(in srgb, var(--color-candy-floss) 62%, var(--color-bubblegum));
  --star: var(--color-lemon);
  --star-edge: color-mix(in srgb, var(--color-lemon) 70%, var(--color-plum));
  --yes: var(--color-mint);
  --line: var(--color-muted);
  --line-soft: color-mix(in srgb, var(--color-muted) 22%, var(--color-white));
  --focus: var(--color-plum);
  --wash: color-mix(in srgb, var(--color-white) 88%, transparent);
  --scrim: color-mix(in srgb, var(--color-plum) 48%, transparent);
  --shadow-ink: color-mix(in srgb, var(--color-plum) 14%, transparent);
  --shadow-pink: color-mix(in srgb, var(--color-bubblegum) 18%, transparent);
  --glow-lemon: color-mix(in srgb, var(--color-lemon) 65%, transparent);
  --on-pink-panel: color-mix(in srgb, var(--color-plum) 16%, transparent);

  /* Type. */
  --family-heading: 'Fredoka', ui-rounded, 'Arial Rounded MT Bold', system-ui, sans-serif;
  --family-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --weight-title: 700;
  --weight-button: 600;
  --weight-label: 800;
  --weight-strong: 700;
  --size-hero: clamp(2.5rem, 10.5vw, 4.25rem);
  --size-section: clamp(1.875rem, 7.4vw, 3rem);
  --size-subheading: 1.375rem;
  --size-lede: 1.1875rem;
  --size-body: 1.0625rem;
  --size-letter: 1.125rem;
  --size-small: 0.875rem;
  --size-button-big: 1.25rem;
  --leading-title: 1.04;
  --leading-body: 1.5;

  /* Shape, shadow, motion. */
  --radius-pill: 9999px;
  --radius-card: 24px;
  --radius-card-lg: 32px;
  --radius-field: 16px;
  --radius-small: 10px;
  --shadow-card: 0 2px 0 var(--shadow-ink), 0 14px 30px -12px var(--shadow-ink);
  /* The hero film's toy frame: a white mat, a pale bubblegum ring and a chunky edge under it. */
  --frame-mat: 0.625rem;
  --frame-ring-width: 3px;
  --frame-ring: color-mix(in srgb, var(--color-bubblegum) 35%, var(--color-white));
  --frame-edge: color-mix(in srgb, var(--color-bubblegum) 55%, var(--color-candy-floss));
  --frame-deco: 2rem;
  --press-edge: 6px;
  --press-travel: 4px;
  --motion-quick: 150ms;
  --motion-gentle: 300ms;
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Sizes. */
  --size-target: 2.75rem;
  --size-field-height: 3.5rem;
  --size-button-big-height: 4rem;
  --size-bar: 3.75rem;
  --size-sticky: 4rem;
  --size-page: 75rem; /* the 1,200 px grid */
  --size-measure: 34rem;
  --size-letter-measure: 36rem;
  --size-reading: 44rem;
  --gutter: 1rem;
  --wave-height: 1.75rem;
  --space-1: 0.5rem;
  --space-2: 0.75rem;
  --space-3: 1.25rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4.5rem;

  /* MARKETING's bubbly wave, used as a mask: each band paints it in its own colour along its top edge.
     On a phone it keeps its own shape (as tall as the wave, about as wide as the screen); on the web it
     spans the width. */
  --wave: url('/img/wave-bubbly.svg');
  --wave-size: auto 100%;

  color-scheme: only light;
}
@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --wave-height: 3rem;
    --wave-size: 100% 100%;
  }
}

/* 3. Base. */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--size-bar) + var(--space-2));
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--ink-body);
  font: 400 var(--size-body) / var(--leading-body) var(--family-body);
  overflow-x: clip;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-family: var(--family-heading);
  font-weight: var(--weight-title);
  line-height: var(--leading-title);
  text-wrap: balance;
}
p {
  margin: 0;
  text-wrap: pretty;
}
a {
  color: var(--link);
  font-weight: var(--weight-strong);
  text-underline-offset: 0.18em;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
.only-for-readers {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* 4. Shared pieces. */
.wrap {
  width: min(100% - 2 * var(--gutter), var(--size-page));
  margin-inline: auto;
}

/* The top bar: the logo, and one small Join pill. Sticky. */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--color-blush) 92%, transparent);
  backdrop-filter: blur(10px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--motion-gentle) var(--ease-soft);
}
.bar[data-stuck] {
  border-block-end-color: var(--line-soft);
}
.bar .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--size-bar);
}
.logo-link {
  display: inline-flex;
  padding-block: var(--space-1);
  border-radius: var(--radius-field);
}
.logo {
  display: block;
  height: 2rem;
  width: auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--size-target);
  padding: 0 var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background: var(--action);
  color: var(--ink-on-action);
  font: var(--weight-button) 1rem / 1 var(--family-heading);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 3px 0 var(--action-edge);
}
.pill:active {
  translate: 0 2px;
  box-shadow: 0 1px 0 var(--action-edge);
}

/* The main button: the founder's press (option D), drawn from tokens. */
.go {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  width: 100%;
  min-height: var(--size-button-big-height);
  margin-block-end: var(--press-edge);
  padding: var(--space-1) var(--space-3);
  border: 0;
  border-radius: var(--radius-pill);
  background-image: linear-gradient(var(--action) 42%, var(--action-deep));
  color: var(--ink-on-action);
  font: var(--weight-button) var(--size-button-big) / 1.1 var(--family-heading);
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    inset 0 1.5px 0 color-mix(in srgb, var(--color-white) 42%, transparent),
    0 var(--press-edge) 0 var(--action-edge),
    0 16px 22px -8px color-mix(in srgb, var(--color-bubblegum) 45%, transparent);
  transition:
    translate 420ms var(--ease-bounce),
    box-shadow 420ms var(--ease-bounce);
  -webkit-tap-highlight-color: transparent;
}
.go:active {
  translate: 0 var(--press-travel);
  box-shadow:
    inset 0 1.5px 0 color-mix(in srgb, var(--color-white) 30%, transparent),
    0 calc(var(--press-edge) - var(--press-travel)) 0 var(--action-edge),
    0 4px 8px -4px color-mix(in srgb, var(--color-bubblegum) 45%, transparent);
  transition-duration: 70ms;
}
.go.quiet {
  background-image: linear-gradient(var(--surface-raised), var(--color-blush));
  color: var(--ink);
  box-shadow: 0 var(--press-edge) 0 var(--edge-soft);
  border: 2px solid var(--edge-soft);
}
.go.quiet:active {
  box-shadow: 0 calc(var(--press-edge) - var(--press-travel)) 0 var(--edge-soft);
}

/* The email field. */
.field {
  display: grid;
  gap: 0.375rem;
}
.field label {
  color: var(--ink);
  font-weight: var(--weight-label);
  font-size: 0.9375rem;
}
.field input {
  width: 100%;
  min-height: var(--size-field-height);
  padding: 0 var(--space-3);
  border: 2px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface-raised);
  color: var(--ink);
  font: 600 1.125rem / 1 var(--family-body);
}
.field input:focus-visible {
  outline-offset: 1px;
  border-color: var(--ink);
}
.field input:user-invalid {
  border-color: var(--action);
}

/* Chips: radio buttons underneath, round pills on top. */
fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
  margin-block-end: var(--space-1);
  color: var(--ink);
  font-weight: var(--weight-label);
  font-size: 0.9375rem;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}
.chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
  padding: 0 1rem;
  border: 2px solid var(--line-soft);
  border-radius: var(--radius-pill);
  background: var(--surface-raised);
  color: var(--ink);
  font-weight: var(--weight-strong);
  font-size: 0.9375rem;
  cursor: pointer;
  transition:
    background-color var(--motion-quick),
    border-color var(--motion-quick);
}
.chip input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.chip:has(:checked) {
  border-color: var(--action);
  background: var(--surface-soft);
  color: var(--action-deep);
}
.chip:has(:checked)::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  margin-inline-end: 0.5rem;
  border-radius: 50%;
  background: var(--action);
}
.chip:has(:focus-visible) {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

/* The tick box. */
.tick {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  min-height: var(--size-target);
  color: var(--ink);
  font-weight: var(--weight-strong);
  cursor: pointer;
}
.tick input {
  width: 1.625rem;
  height: 1.625rem;
  margin: 0;
  accent-color: var(--action);
  flex: none;
}

/* The honeypot: no person sees or reaches it. */
.trap {
  display: none;
}

/* Small print and the law's lines. */
.small {
  color: var(--ink-muted);
  font-size: var(--size-small);
}
.hint {
  margin-block-start: var(--space-1);
  color: var(--ink-muted);
  font-size: var(--size-small);
}
.promise {
  color: var(--ink-body);
  font-size: 0.9375rem;
}
.order {
  color: var(--ink-muted);
  font-size: var(--size-small);
}
.optional {
  color: var(--ink-muted);
  font-weight: 600;
}

/* The yellow pill. */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.6rem;
  border-radius: var(--radius-pill);
  background: var(--star);
  color: var(--ink);
  font-weight: var(--weight-label);
  font-size: 0.875rem;
  line-height: 1.25;
  box-shadow: 0 3px 0 var(--star-edge);
}
.badge svg {
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
  fill: var(--ink);
}

/* Bands, with a soft wave along the top. */
.band {
  position: relative;
  padding-block: var(--space-5) var(--space-6);
  background-color: var(--band, var(--surface));
}
.band::before {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: calc(100% - 1px);
  height: var(--wave-height);
  background-color: inherit;
  mask: var(--wave) center / var(--wave-size) repeat-x;
  pointer-events: none;
}
.band-lemon {
  --band: var(--band-lemon);
}
.band-floss {
  --band: var(--band-floss);
}
.band-pink {
  --band: var(--band-pink);
}
.band-mint {
  --band: var(--band-mint);
}
.section-head {
  display: grid;
  gap: var(--space-2);
  max-width: var(--size-measure);
  margin-block-end: var(--space-4);
}
.section-head h2 {
  font-size: var(--size-section);
}
.section-head p {
  font-size: var(--size-lede);
}

/* A swipe row: it snaps card by card, scrolls by touch, keyboard and the buttons beside it, and never
   carries the page with it. Smooth only for those who have not asked for less motion. */
.row {
  position: relative;
  display: flex;
  gap: var(--space-2);
  margin-inline: calc(-1 * var(--gutter));
  padding: var(--space-1) var(--gutter) var(--space-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  touch-action: manipulation;
}
.row::-webkit-scrollbar {
  display: none;
}
.row > * {
  flex: 0 0 var(--row-card, 72%);
  scroll-snap-align: start;
}
@media (prefers-reduced-motion: no-preference) {
  .row {
    scroll-behavior: smooth;
  }
}
@media (min-width: 48rem) {
  .row {
    gap: var(--space-3);
    margin-inline: 0;
    padding-inline: 0;
    scroll-padding-inline: 0;
  }
  .row > * {
    flex-basis: var(--row-card-wide, 17rem);
  }
}

/* 5. The first page. */

/* The friend's ribbon. */
.ribbon {
  background: var(--star);
  color: var(--ink);
  font-weight: var(--weight-label);
  font-size: 0.9375rem;
}
.ribbon .wrap {
  display: flex;
  gap: 0.6rem;
  align-items: center;
  padding-block: 0.6rem;
}
.ribbon svg {
  flex: none;
  width: 1.375rem;
  height: 1.375rem;
  fill: var(--action);
}

/* The hero. */
.hero {
  padding-block: var(--space-3) var(--space-5);
  background: var(--band-hero);
}
.hero-grid {
  display: grid;
  gap: var(--space-3);
}
.film {
  position: relative;
  margin: 0;
}
/* The frame: a white mat, a pale ring, and a solid edge under it, like a toy screen. */
.film-frame {
  padding: var(--frame-mat);
  border: var(--frame-ring-width) solid var(--frame-ring);
  border-radius: var(--radius-card-lg);
  background: var(--surface-raised);
  box-shadow:
    0 6px 0 var(--frame-edge),
    var(--shadow-card);
}
.film-screen {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: calc(var(--radius-card-lg) - var(--frame-mat));
  background: var(--band-sky);
}
/* Two small shapes peek over the frame's corners: a lemon sparkle, and a mint dot. They are drawn,
   say nothing and sit inside the content column, clear of the pause button at the foot. */
.film::before,
.film::after {
  content: '';
  position: absolute;
  z-index: 1;
  width: var(--frame-deco);
  height: var(--frame-deco);
  pointer-events: none;
}
.film::before {
  inset-block-start: calc(-0.55 * var(--frame-deco));
  inset-inline-start: var(--space-2);
  background: var(--star);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
}
.film::after {
  inset-block-end: calc(-0.4 * var(--frame-deco));
  inset-inline-end: var(--space-2);
  width: calc(0.8 * var(--frame-deco));
  height: calc(0.8 * var(--frame-deco));
  border: 3px solid var(--surface-raised);
  border-radius: 50%;
  background: var(--yes);
  box-sizing: border-box;
}
.film img,
.film video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The pause and play button: a round target at the film's foot, drawn in CSS (no words, no icon file). */
.film-toggle {
  position: absolute;
  inset-block-end: var(--space-2);
  inset-inline-end: var(--space-2);
  width: var(--size-target);
  height: var(--size-target);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-raised);
  cursor: pointer;
}
.film-toggle::before {
  content: '';
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
}
.film-toggle[data-state='playing']::before {
  width: 0.75rem;
  height: 0.875rem;
  border-inline: 0.25rem solid var(--ink);
}
.film-toggle[data-state='paused']::before {
  width: 0;
  height: 0;
  margin-inline-start: 0.1rem;
  border-block: 0.5rem solid transparent;
  border-inline-start: 0.8rem solid var(--ink);
}
.hero-words {
  display: grid;
  gap: var(--space-2);
  align-content: start;
}
.hero h1 {
  font-size: var(--size-hero);
  letter-spacing: -0.01em;
}
.hero .lede {
  font-size: var(--size-lede);
  color: var(--ink-body);
  max-width: 32rem;
}
.hero .badge {
  justify-self: start;
}
.opener {
  display: grid;
  gap: var(--space-2);
  margin-block-start: var(--space-1);
  max-width: 28rem;
}
.opener .small {
  text-align: center;
}
.friend-line {
  padding: 0.6rem 0.8rem;
  border-radius: var(--radius-small);
  background: var(--surface-soft);
  color: var(--ink);
  font-size: var(--size-small);
  font-weight: var(--weight-strong);
}

.nowrap {
  white-space: nowrap;
}
/* A band can hang its wave down over the next part (the trust band over the end's picture). */
.wave-down {
  z-index: 1;
}
.wave-down::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  top: calc(100% - 1px);
  height: var(--wave-height);
  background-color: inherit;
  mask: var(--wave) center / var(--wave-size) repeat-x;
  transform: scaleY(-1);
  pointer-events: none;
}
@media (min-width: 48rem) {
  .hero {
    padding-block: var(--space-4) var(--space-6);
  }
  .hero-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    align-items: center;
    gap: var(--space-5);
  }
  .hero-words {
    order: -1;
    gap: var(--space-3);
  }
  .film {
    --frame-mat: 0.875rem;
  }
}

/* The friends, on a carousel. */
.gang .row {
  --row-card: 64%;
}
.carousel-controls {
  display: flex;
  gap: var(--space-1);
  justify-content: flex-end;
  margin-block: calc(-1 * var(--space-2)) var(--space-1);
}
.step-button {
  display: grid;
  place-items: center;
  width: var(--size-target);
  height: var(--size-target);
  padding: 0;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink);
  cursor: pointer;
  touch-action: manipulation;
  box-shadow: 0 3px 0 var(--ink);
}
.step-button svg {
  width: 1.125rem;
  height: 1.125rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.step-button[data-direction='previous'] svg {
  scale: -1 1;
}
.step-button:active:not(:disabled) {
  translate: 0 2px;
  box-shadow: 0 1px 0 var(--ink);
}
.step-button:disabled {
  border-color: var(--line-soft);
  color: var(--line-soft);
  box-shadow: none;
  cursor: default;
}
.markers {
  display: flex;
  justify-content: center;
  gap: 0;
}
.markers button {
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}
.markers button::before {
  content: '';
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0.28;
  transition: opacity var(--motion-quick);
}
.markers button[aria-current='true']::before {
  opacity: 1;
  background: var(--action);
  scale: 1.25;
}
.pal {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.pal .pic {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 4%;
  aspect-ratio: 4 / 5;
  padding: var(--space-3) var(--space-2) 9%;
  background:
    radial-gradient(42% 6% at 50% 91%, var(--shadow-ink), transparent), var(--pal, var(--band-sky));
}
.pal .pic > img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
}
.pal .pic.blobs {
  align-items: center;
}
.pal .pic.blobs > img {
  width: 47%;
  height: auto;
}
.pal .pic.blobs > img:last-child {
  translate: 0 -18%;
}
.pal .words {
  display: grid;
  gap: 0.5rem;
  align-content: start;
  padding: var(--space-3);
}
.pal h3 {
  font-size: 1.5rem;
}
.pal .says {
  margin-block-start: 0.25rem;
  padding: 0.6rem 0.8rem;
  border-radius: 14px 14px 14px 4px;
  background: var(--pal-soft, var(--surface-soft));
  color: var(--ink);
  font-weight: var(--weight-strong);
  font-size: 0.9375rem;
}
.pal-sky {
  --pal: var(--band-sky);
  --pal-soft: var(--band-sky);
}
.pal-mint {
  --pal: var(--band-mint);
  --pal-soft: var(--band-mint);
}
.pal-floss {
  --pal: var(--band-floss);
  --pal-soft: var(--band-floss);
}
.pal-lilac {
  --pal: var(--band-lilac);
  --pal-soft: var(--band-lilac);
}
.gang-more {
  max-width: var(--size-measure);
  margin-block-start: var(--space-3);
  font-size: var(--size-lede);
  color: var(--ink);
}

/* The letter. */
.letter .wrap {
  display: grid;
  justify-items: center;
}
.paper {
  position: relative;
  width: min(100%, 44rem);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--radius-card) var(--radius-card) var(--radius-card) 6px;
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.paper h2 {
  font-size: var(--size-section);
  margin-block-end: var(--space-3);
}
.paper .text {
  display: grid;
  gap: 1em;
  max-width: var(--size-letter-measure);
  color: var(--ink);
  font-size: var(--size-letter);
  line-height: 1.6;
}
.sign {
  margin-block-start: var(--space-3);
}
.sign img {
  width: auto;
  height: 3.75rem;
  rotate: -4deg;
}
.paper .paw {
  position: absolute;
  right: var(--space-3);
  top: calc(-1 * var(--space-3));
  width: 3.25rem;
  height: 3.25rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: var(--star);
  fill: var(--ink);
  rotate: 14deg;
  box-shadow: 0 3px 0 var(--star-edge);
}
@media (min-width: 48rem) {
  .paper {
    padding: var(--space-5);
  }
}

/* Founding Families. */
.founding {
  color: var(--ink-on-pink);
}
.founding h2,
.founding h3 {
  color: var(--ink-on-pink);
}
.founding .section-head p {
  color: var(--ink-on-pink);
}
.founding-grid {
  display: grid;
  gap: var(--space-4);
}
.founding .section-head {
  margin-block-end: 0;
}
.badge-art {
  width: 9.5rem;
  height: auto;
  rotate: -6deg;
  filter: drop-shadow(0 6px 0 var(--shadow-ink));
}
.founding .order-line {
  max-width: var(--size-measure);
  padding: 0.8rem 1rem;
  border-radius: var(--radius-field);
  background: var(--on-pink-panel);
  color: var(--ink-on-pink);
  font-weight: var(--weight-strong);
  font-size: 0.9375rem;
}
.founding .order-line p + p {
  margin-block-start: 0.5rem;
}
.race-card {
  position: relative;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--radius-card-lg);
  background: var(--surface-raised);
  color: var(--ink-body);
  box-shadow: var(--shadow-card);
}
.race-card h3 {
  color: var(--ink);
  font-size: 1.625rem;
  margin-block-end: var(--space-1);
}
.path {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-1);
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}
.path::before {
  content: '';
  position: absolute;
  top: 1.75rem;
  left: 16%;
  right: 16%;
  border-top: 4px dotted var(--edge-soft);
}
.stop {
  position: relative;
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0.375rem;
  text-align: center;
}
.lantern {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 3px solid var(--edge-soft);
}
.lantern svg {
  width: 1.5rem;
  height: 1.5rem;
  fill: var(--edge-soft);
}
.stop .lantern {
  background: var(--star);
  border-color: var(--star-edge);
  box-shadow: 0 0 0 6px var(--glow-lemon);
}
.stop .lantern svg {
  fill: var(--ink);
}
.stop b {
  color: var(--ink);
  font: var(--weight-button) 1rem / 1.1 var(--family-heading);
}
.stop .reward {
  color: var(--ink);
  font-weight: var(--weight-strong);
  font-size: 0.8125rem;
  line-height: 1.3;
}
@media (min-width: 48rem) {
  .founding-grid {
    grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
    align-items: center;
    gap: var(--space-5);
  }
  .race-card {
    padding: var(--space-5) var(--space-4) var(--space-4);
  }
}

/* Trust. */
.trust-grid {
  display: grid;
  gap: var(--space-4);
}
.promises {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.promises li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-field);
  background: var(--surface-raised);
  color: var(--ink);
  font: var(--weight-button) 1.125rem / 1.25 var(--family-heading);
  box-shadow: var(--shadow-card);
}
.promises img.icon {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
}
.faq {
  display: grid;
  gap: var(--space-1);
}
.faq h3 {
  font-size: var(--size-subheading);
  margin-block-end: var(--space-1);
}
.faq details {
  border-radius: var(--radius-field);
  background: var(--surface-raised);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 3.5rem;
  padding: 0.5rem 1rem;
  color: var(--ink);
  font-weight: var(--weight-label);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  flex: none;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 3px solid var(--action);
  border-bottom: 3px solid var(--action);
  rotate: 45deg;
  translate: 0 -0.15rem;
  transition: rotate var(--motion-gentle) var(--ease-soft);
}
.faq details[open] summary::after {
  rotate: 225deg;
  translate: 0 0.15rem;
}
.faq details > div {
  display: grid;
  gap: 0.5rem;
  padding: 0 1rem 1rem;
}
@media (min-width: 48rem) {
  .trust-grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: var(--space-5);
    align-items: start;
  }
}

/* The end: save your place, over the friends on Harbour Row. */
.end {
  position: relative;
  padding-block: var(--space-6);
  background: var(--band-sky);
  overflow: hidden;
}
.end > picture img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 30%;
}
.end .card {
  position: relative;
  display: grid;
  gap: var(--space-2);
  max-width: 30rem;
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--radius-card-lg);
  background: var(--wash);
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-card);
}
.end h2 {
  font-size: var(--size-section);
}
.end .end-line {
  color: var(--ink);
  font-weight: var(--weight-strong);
}
@media (max-width: 47.99rem) {
  .end {
    padding-block: 56vw var(--space-4);
  }
  .end > picture img {
    height: 70vw;
    object-position: 50% 40%;
  }
  .end::after {
    content: '';
    position: absolute;
    inset-inline: 0;
    top: calc(70vw - 4rem);
    height: 4rem;
    background: linear-gradient(transparent, var(--band-sky));
  }
  .end .card {
    z-index: 1;
    background: var(--surface-raised);
  }
}
@media (min-width: 48rem) {
  .end {
    min-height: 40rem;
    display: grid;
    align-items: center;
  }
}

/* The foot: the company line first, as the law asks, then the rest. */
.foot {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-5) max(var(--gutter), (100% - var(--size-page)) / 2);
  background: var(--band-plum);
  color: var(--ink-on-plum-soft);
  font-size: var(--size-small);
}
.foot p {
  max-width: 44rem;
}
.foot a {
  color: var(--ink-on-plum);
}
.foot .links {
  display: flex;
  flex-wrap: wrap;
  gap: 0 var(--space-3);
  max-width: none;
}
.foot .links a {
  display: inline-flex;
  align-items: center;
  min-height: var(--size-target);
}
.foot .links span {
  display: inline-flex;
  align-items: center;
  gap: 0.25em;
  min-height: var(--size-target);
}

/* 6. The form sheet: a native modal dialog; a bottom sheet on phones, centred on the web. */
.sheet {
  width: 100%;
  max-width: 100%;
  max-height: 92dvh;
  margin: auto 0 0;
  padding: 0;
  border: 0;
  border-radius: var(--radius-card-lg) var(--radius-card-lg) 0 0;
  background: var(--surface);
  color: var(--ink-body);
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 -10px 40px var(--shadow-ink);
  opacity: 0;
  translate: 0 0;
  transition-property: opacity, translate, display, overlay;
  transition-duration: var(--motion-gentle);
  transition-timing-function: var(--ease-soft);
  transition-behavior: allow-discrete;
}
.sheet[open] {
  opacity: 1;
}
@starting-style {
  .sheet[open] {
    opacity: 0;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .sheet {
    translate: 0 2rem;
  }
  .sheet[open] {
    translate: 0 0;
  }
  @starting-style {
    .sheet[open] {
      translate: 0 2rem;
    }
  }
}
.sheet::backdrop {
  background-color: transparent;
  overflow: hidden;
  overscroll-behavior: contain;
  transition-property: background-color, display, overlay;
  transition-duration: var(--motion-gentle);
  transition-behavior: allow-discrete;
}
.sheet[open]::backdrop {
  background-color: var(--scrim);
}
@starting-style {
  .sheet[open]::backdrop {
    background-color: transparent;
  }
}
.sheet-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-3) var(--space-2);
  background: var(--surface);
}
.sheet-head::before {
  content: '';
  position: absolute;
  top: 0.5rem;
  left: 50%;
  width: 2.5rem;
  height: 0.3rem;
  border-radius: var(--radius-pill);
  background: var(--line-soft);
  translate: -50% 0;
}
.sheet-head h2 {
  font-size: 1.625rem;
}
.close {
  flex: none;
  display: grid;
  place-items: center;
  width: var(--size-target);
  height: var(--size-target);
  border: 2px solid var(--line-soft);
  border-radius: 50%;
  background: var(--surface-raised);
  color: var(--ink);
  cursor: pointer;
}
.close svg {
  width: 1rem;
  height: 1rem;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
}
.sheet form,
.sheet .step {
  display: grid;
  gap: var(--space-3);
}
.sheet form {
  padding: 0 var(--space-3) calc(var(--space-4) + env(safe-area-inset-bottom));
}
.step-2-head {
  display: grid;
  gap: 0.375rem;
  padding: var(--space-2);
  border-radius: var(--radius-field);
  background: var(--band-mint);
  color: var(--ink);
}
.step-2-head b {
  font: var(--weight-button) 1.125rem / 1.2 var(--family-heading);
}
.two-buttons {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2);
}
.race-order {
  display: grid;
  gap: var(--space-1);
  color: var(--ink-muted);
  font-size: var(--size-small);
}
.race-order strong {
  color: var(--ink);
  font-weight: var(--weight-strong);
}
@media (min-width: 48rem) {
  .sheet {
    width: min(100% - 4rem, 34rem);
    margin: auto;
    border-radius: var(--radius-card-lg);
  }
  .sheet-head::before {
    display: none;
  }
}

/* 7. The sticky bar, phones only: once the hero's button has gone, until the end's form is in view. */
.sticky {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem var(--gutter) calc(0.5rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--color-white) 94%, transparent);
  backdrop-filter: blur(10px);
  box-shadow: 0 -6px 20px var(--shadow-ink);
  translate: 0 110%;
  transition: translate var(--motion-gentle) var(--ease-soft);
}
.sticky[data-show] {
  translate: 0 0;
}
.sticky .go {
  flex: 1;
  min-height: 3rem;
  margin: 0 0 4px;
  font-size: 1.0625rem;
  --press-edge: 4px;
}
.sticky .small {
  flex: none;
  width: 4.5rem;
  line-height: 1.2;
  font-weight: var(--weight-label);
  color: var(--ink);
}
@media (min-width: 48rem) {
  .sticky {
    display: none;
  }
}
/* Room under the foot for the sticky bar. */
@media (max-width: 47.99rem) {
  body:has(.sticky) .foot {
    padding-block-end: calc(var(--space-5) + var(--size-sticky));
  }
}

/* 8. The pages after the form, the small pages and the notice. */
.after {
  padding-block: var(--space-4) var(--space-6);
  background: var(--band-hero);
}
.after .wrap {
  display: grid;
  gap: var(--space-3);
  max-width: 40rem;
}
.after h1 {
  font-size: var(--size-hero);
}
.after .then {
  display: block;
  margin-block-start: 0.5rem;
  color: var(--ink);
  font-family: var(--family-body);
  font-size: var(--size-lede);
  font-weight: var(--weight-strong);
  line-height: 1.4;
}
.message {
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}
.message p {
  max-width: var(--size-measure);
  font-size: var(--size-lede);
  color: var(--ink);
}
.message .join {
  width: 100%;
}
.peek {
  display: flex;
  gap: var(--space-2);
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-field);
  background: var(--surface-raised);
  color: var(--ink);
  box-shadow: var(--shadow-card);
}
.peek img {
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
}
.member {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.member .badge-art {
  width: 6.5rem;
}
.member .message {
  gap: var(--space-1);
}
.member .message h1 {
  font-size: clamp(1.75rem, 7vw, 2.5rem);
}
.panel {
  display: grid;
  gap: var(--space-2);
  padding: var(--space-4) var(--space-3) var(--space-3);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.panel h2,
.panel h1 {
  font-size: 1.75rem;
}
.panel input[readonly] {
  width: 100%;
  height: var(--size-field-height);
  padding-inline: 1rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-field);
  background: var(--surface-raised);
  color: var(--ink);
  font: 400 1.125rem / 1.2 var(--family-body);
}
.status {
  min-height: 1.5em;
  color: var(--ink);
  font-weight: var(--weight-label);
  text-align: center;
}
.share-card {
  position: relative;
  margin: 0;
  container-type: inline-size;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
}
.share-card img {
  width: 100%;
  height: auto;
}
/* The pill's box from MARKETING's parts record: 530, 416, 400 x 116 on a 1080 card; Fredoka 700 at 64 px; plum. */
.card-count {
  position: absolute;
  left: 49.074%;
  top: 38.519%;
  width: 37.037%;
  height: 10.741%;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: pre;
  color: var(--ink);
  font: var(--weight-title) 5.926cqi / 1 var(--family-heading);
}
.slots {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slots li {
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--surface-soft);
  border: 2px solid var(--edge-soft);
}
.slots li.lit {
  background: var(--star);
  border-color: var(--star-edge);
  box-shadow: 0 0 0 3px var(--glow-lemon);
}
.count {
  color: var(--ink);
  font-weight: var(--weight-strong);
}
.count strong {
  color: var(--action);
  font: var(--weight-title) 1.5rem / 1 var(--family-heading);
}
.rewards {
  display: grid;
  gap: var(--space-2);
  margin: 0;
  padding: 0;
  list-style: none;
}
.rewards > li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-2);
  align-items: start;
  padding: var(--space-2);
  border-radius: var(--radius-field);
  background: var(--color-blush);
}
.rewards > li.got {
  background: var(--band-lemon);
}
.rewards .lantern {
  width: 2.75rem;
  height: 2.75rem;
}
.rewards .lantern svg {
  width: 1.25rem;
  height: 1.25rem;
}
.rewards li.got .lantern {
  background: var(--star);
  border-color: var(--star-edge);
}
.rewards li.got .lantern svg {
  fill: var(--ink);
}
.rewards strong {
  color: var(--ink);
  font-family: var(--family-heading);
  font-weight: var(--weight-button);
}

/* The notice, and any page of plain words. */
.prose {
  display: grid;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-card);
  background: var(--surface-raised);
  box-shadow: var(--shadow-card);
}
.notice .wrap {
  max-width: var(--size-reading);
}
.prose h1 {
  font-size: clamp(2rem, 8vw, 2.75rem);
  line-height: 1.1;
}
.prose h2 {
  margin-block-start: var(--space-2);
  font-size: 1.5rem;
  font-weight: var(--weight-button);
  line-height: 1.2;
}
.prose ul {
  margin: 0;
  padding-inline-start: var(--space-3);
  display: grid;
  gap: var(--space-1);
}
.prose strong {
  color: var(--ink);
  font-weight: var(--weight-label);
}
.prose a {
  overflow-wrap: anywhere;
}
.short-version {
  background: var(--surface-soft);
  border-radius: var(--radius-card-lg);
  padding: var(--space-3);
  color: var(--ink);
  font-size: var(--size-lede);
}
@media (min-width: 48rem) {
  .prose {
    padding: var(--space-5);
  }
}

/* Where the sheet is not set up (no script, a script that failed, or no showModal) the page is not marked
   data-sheet: the join form stands as the last part of the page and posts straight to /join, its consent
   line beside its button, as the page always did. What only a script can use is put away. */
.join-anchor {
  max-width: 28rem;
}
html[data-sheet] .join-anchor {
  display: none;
}
html:not([data-sheet]) .sheet {
  display: block;
  position: static;
  width: min(100% - 2 * var(--gutter), 34rem);
  max-height: none;
  margin: var(--space-5) auto;
  border-radius: var(--radius-card-lg);
  opacity: 1;
  translate: none;
  box-shadow: var(--shadow-card);
}
html:not([data-sheet]) .sheet .close,
html:not([data-sheet]) [data-open-sheet],
html:not([data-sheet]) .opener,
html:not([data-sheet]) .sticky {
  display: none !important;
}
