/* ---------- fonts: self-hosted (the CSP allows font-src 'self' only). Inter for text, Funnel Display for headings,
   the same pair sumopod.com uses; both are SIL Open Font License 1.1, licence in /fonts/OFL.txt. ---------- */
@font-face {
  font-family: 'Inter';
  src: url('/fonts/Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/InterLatinExt-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('/fonts/FunnelDisplay-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Funnel Display';
  src: url('/fonts/FunnelDisplayLatinExt-Variable.woff2') format('woff2');
  font-weight: 300 800;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* The brand mark's orange. It is a mark colour: on the white page it only paints shapes, never text or a button label. */
  --orange: #ff5a1f;
  /* The usable orange: white on it is 5.8:1, it on white is 5.8:1. Buttons, links and accents use this one. */
  --brand: #b83a0a;
  --brand-deep: #a33309; /* the call-to-action card: white on it is 6.9:1 */
  --brand-soft: #fdeee7; /* soft badge surface: --brand on it is 5.1:1 */
  --ink: #15171a;
  --white: #ffffff;
  /* The page is white. These two neutrals are the only surfaces that are not: a tray behind a framed panel, and the
     faint fill inside a card. Nothing paints a full-width band, and nothing draws a horizontal rule. */
  --surface: #f6f6f6;
  --surface-2: #fafafa;
  --line: #e9e9e9; /* an outline around a card, never a divider across the page */
  --body: #3c4045; /* 10.2:1 on white */
  --muted: #5c6168; /* 6.2:1 on white */
  --muted-on-ink: #b4b9c0; /* 9:1 on ink */
  --shadow-card: 0 12px 30px -20px rgba(18, 18, 20, 0.35);
  --shadow-lift: 0 32px 64px -34px rgba(18, 18, 20, 0.4);
  --shadow-island: 0 12px 28px -14px rgba(18, 18, 20, 0.22);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Funnel Display', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  /* One rhythm for every section, one radius scale: pill for anything you press, 16px inside a card, 24px for a card,
     32px for a frame or a band that holds one. */
  --section: clamp(72px, 9vw, 116px);
  --r-inner: 16px;
  --r-card: 24px;
  --r-frame: 32px;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--white);
  color: var(--body);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
img,
video {
  display: block;
  max-width: 100%;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 3px;
  border-radius: 8px;
}
/* The form island draws its own focus ring; two rings on one field is the bug the owner saw. */
.ov-island :focus-visible,
[data-slot='select-content'] :focus-visible {
  outline: none;
}

.skip {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: top 0.2s;
}
.skip:focus {
  top: 12px;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--container));
  margin-inline: auto;
}

/* A menu or footer link lands on a section: without this the floating header would cover its heading. */
#main section[id] {
  scroll-margin-top: 88px;
}

/* A class that sets `display` (.pill) must not beat the `hidden` attribute. */
[hidden] {
  display: none !important;
}

/* ---------- buttons ---------- */
.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 16px;
  text-decoration: none;
  transition: background 0.25s var(--ease), color 0.25s var(--ease), box-shadow 0.35s var(--ease), transform 0.25s var(--ease);
  white-space: nowrap;
}
.pill-brand {
  background: var(--brand);
  color: var(--white);
  box-shadow: 0 12px 24px -16px rgba(163, 51, 9, 0.9);
}
.pill-brand:hover {
  background: var(--brand-deep);
  box-shadow: 0 18px 32px -16px rgba(163, 51, 9, 0.75);
  transform: translateY(-1px);
}
.pill-brand:active {
  transform: scale(0.985);
}
.pill-lg {
  min-height: 54px;
  padding: 0 30px;
  font-size: 17px;
}
.link-brand {
  color: var(--white);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 5px;
}
.link-brand:hover {
  text-decoration-color: var(--white);
}

/* ---------- type ---------- */
.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.display,
.h2,
.h3 {
  font-family: var(--display);
  color: var(--ink);
  text-wrap: balance;
}
/* The headline holds two lines from 360 px up: the size follows the viewport and the break is in the markup. */
.display {
  margin: 0 0 20px;
  font-size: clamp(1.75rem, 7.4vw, 3.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
.h2 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3.4vw, 2.5rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.035em;
}
.h3 {
  margin: 0 0 12px;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.03em;
}
.lede {
  margin: 0 0 28px;
  max-width: 46ch;
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.fine {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.fine a {
  color: var(--brand);
}
.mark {
  color: var(--brand);
}
.nowrap {
  white-space: nowrap;
}

/* ---------- the navigation: a full-width bar at the top, a floating island once the page moves ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  min-height: 76px;
  transition: background 0.28s var(--ease);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: 12px 24px;
  min-height: 56px;
  padding-inline: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: padding 0.28s var(--ease), border-radius 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease),
    width 0.28s var(--ease);
}
.nav.float {
  background: transparent;
}
.nav.float .container {
  width: min(100% - 2 * var(--gutter), 1120px);
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-island), 0 0 0 1px rgba(18, 18, 20, 0.06);
}
.nav-logo img {
  height: 24px;
  width: auto;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: 12px;
  font-size: 15px;
  font-weight: 500;
}
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  transition: color 0.25s var(--ease), background 0.25s var(--ease);
}
/* The section you are looking at, marked as you scroll (main.ts). */
.nav-links a[aria-current='true'] {
  color: var(--ink);
  background: var(--surface);
}
.nav-links a:hover {
  color: var(--ink);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav .pill {
  min-height: 40px;
  padding: 0 18px;
  font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
  padding: clamp(40px, 5vw, 72px) 0 clamp(44px, 5vw, 76px);
  text-align: center;
}
.hero .lede {
  margin-inline: auto;
  max-width: 44ch;
}
.hero .display {
  margin-inline: auto;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 10px 20px;
  margin: 0;
}
.beta-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.beta-badge:hover {
  background: #fbe2d7;
}
.beta-badge b {
  font-variant-numeric: tabular-nums;
}

/* A framed panel: a light tray, the picture inside it. Used by the hero, the feature rows and the film. */
.frame {
  padding: 10px;
  border-radius: var(--r-frame);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}
.frame > * {
  border-radius: calc(var(--r-frame) - 10px);
  overflow: hidden;
}
.stage-frame {
  margin: clamp(32px, 4vw, 52px) auto 0;
}
.stage {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--ink);
}
.stage-canvas,
.stage-fallback {
  position: absolute;
  inset: 0;
}
.stage-fallback {
  background: url('/office-still.webp') center / cover no-repeat;
  opacity: 0;
  transition: opacity 0.4s;
}
.stage.no-webgl .stage-fallback,
.stage.still .stage-fallback {
  opacity: 1;
}
.stage-canvas .ko-tag {
  backdrop-filter: none !important; /* a blur over a live WebGL canvas costs a full-screen pass per frame */
}
.stage-note {
  margin: 16px auto 0;
  max-width: 52ch;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- the apps a team already uses: two rows that drift, the way sumopod's partner row does ---------- */
.logos {
  padding: clamp(48px, 6vw, 80px) 0 clamp(16px, 2vw, 28px);
  overflow: hidden;
}
.logos h2 {
  margin: 0 auto 8px;
  max-width: 22ch;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.2;
  color: var(--ink);
  text-wrap: balance;
}
.logos .fine {
  margin: 0 auto clamp(28px, 3vw, 40px);
  max-width: 50ch;
  text-align: center;
}
.logo-row {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: drift var(--d, 70s) linear infinite;
}
.logo-row + .logo-row {
  margin-top: 14px;
  animation-direction: reverse;
}
.logos:hover .logo-row,
.logos:focus-within .logo-row {
  animation-play-state: paused;
}
@keyframes drift {
  to {
    transform: translateX(-50%);
  }
}
.logo-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 128px;
  padding: 16px 10px;
  border-radius: var(--r-inner);
  background: var(--white);
  box-shadow: 0 0 0 1px var(--line), var(--shadow-card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  white-space: nowrap;
}
.logo-tile svg {
  width: 26px;
  height: 26px;
  fill: var(--brandmark, var(--ink));
}
.logo-tile .wordmark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 17px;
  font-weight: 700;
  color: var(--brandmark, var(--ink));
}

/* ---------- the film: a centred stage, the portrait take on a softened still of itself ---------- */
.film {
  padding: var(--section) 0;
}
.film-head {
  max-width: 44rem;
  margin: 0 auto clamp(28px, 3.5vw, 44px);
  text-align: center;
}
.film-head .lede {
  margin: 0 auto;
}
.film-stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  background: #101114;
}
/* The still, blown up and blurred, so a portrait take fills a wide stage instead of sitting in black bars. */
.film-stage::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: url('/film-poster.webp') center / cover no-repeat;
  filter: blur(40px) saturate(1.15) brightness(0.5);
}
.film-player {
  position: relative;
  height: 86%;
  aspect-ratio: 9 / 16;
  max-width: calc(100% - 32px);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 34px 70px -28px rgba(0, 0, 0, 0.7);
}
.film-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.film-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  border: 0;
  background: rgba(16, 17, 20, 0.2);
  cursor: pointer;
  transition: opacity 0.3s var(--ease);
}
.film-play span {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
  transition: transform 0.35s var(--ease);
}
.film-play span::after {
  content: '';
  margin-left: 5px; /* optical: a triangle centres on its bounding box, not on its mass */
  border-style: solid;
  border-width: 12px 0 12px 19px;
  border-color: transparent transparent transparent var(--ink);
}
.film-play:hover span {
  transform: scale(1.08);
}
.film-player.playing .film-play {
  opacity: 0;
  pointer-events: none;
}
.film-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
  margin: clamp(24px, 3vw, 36px) auto 0;
  max-width: 60rem;
  padding: 0;
  list-style: none;
  text-align: center;
}
.film-points li {
  font-size: 15px;
  color: var(--muted);
}
.film-points b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: var(--ink);
}

/* ---------- the two office sizes: one tray each, the engine's own render of that floor plan inside it ---------- */
.sizes {
  padding: 0 0 var(--section);
}
.sizes .lede {
  max-width: 54ch;
}
.size-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 34px);
  margin: clamp(26px, 3vw, 40px) 0 clamp(22px, 2.4vw, 32px);
  padding: 0;
  list-style: none;
}
.size-card .frame {
  margin-bottom: 18px;
}
.size-card img {
  width: 100%;
  height: auto;
  /* The models are rendered on nothing: the tray behind them is what they stand on. */
  background: var(--surface);
}
.size-card .h3 {
  margin: 0 0 6px;
  font-size: clamp(1.25rem, 1.9vw, 1.5rem);
}
.size-seats {
  margin: 0 0 10px;
  font-size: 15px;
  color: var(--muted);
}
.size-seats b {
  font-weight: 600;
  color: var(--brand);
}
.size-rooms,
.size-for {
  margin: 0 0 10px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
/* Last in each card: the room list above it sets how far down it starts. */
.size-for {
  margin-bottom: 0;
  color: var(--body);
}
.sizes-note {
  max-width: 72ch;
}

/* ---------- the card above the footer ---------- */
.cta {
  padding: 0 0 clamp(48px, 6vw, 84px);
}
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr);
  align-items: center;
  gap: clamp(24px, 4vw, 44px);
  padding: clamp(28px, 4vw, 56px);
  overflow: hidden;
  border-radius: var(--r-frame);
  background: linear-gradient(130deg, #c2400c 0%, var(--brand-deep) 55%, #8f2f09 100%);
  color: var(--white);
  box-shadow: var(--shadow-lift);
}
.cta-card img.cta-logo {
  height: 26px;
  width: auto;
  margin-bottom: 20px;
}
.cta-card .h2 {
  color: var(--white);
  margin-bottom: 12px;
}
.cta-card p {
  margin: 0;
  max-width: 42ch;
  color: #ffe2d6; /* 7.3:1 on the card */
}
.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 26px;
}
.cta-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
  font-weight: 500;
  text-decoration: none;
  transition: opacity 0.25s var(--ease);
}
.cta-links a:hover {
  opacity: 0.82;
}
/* The screenshot sits in its light tray and runs off the card's bottom right corner. */
.cta-shot {
  align-self: end;
  margin: 0 calc(-1 * clamp(28px, 4vw, 56px)) calc(-1 * clamp(28px, 4vw, 56px)) 0;
  padding: 10px 0 0 10px;
  border-top-left-radius: var(--r-frame);
  background: var(--surface);
}
.cta-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-top-left-radius: calc(var(--r-frame) - 10px);
}

/* ---------- pricing ---------- */
.pricing {
  padding: var(--section) 0;
}
.pricing .lede {
  max-width: 58ch;
  margin-bottom: 28px;
}

/* ---------- the waitlist: a light tray with the form on a white card. The one accent block is the card above the footer. */
.waitlist {
  padding: 0 0 var(--section);
}
.wl-band {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(28px, 4vw, 56px);
  border-radius: var(--r-frame);
  background: var(--surface);
}
.wl-band .lede {
  margin-bottom: 0;
}
.wl-card {
  padding: clamp(18px, 2vw, 28px);
  border-radius: var(--r-card);
  background: var(--white);
  color: var(--body);
  box-shadow: var(--shadow-card);
}

/* ---------- questions: a card each, no rules ---------- */
.faq {
  padding: 0 0 var(--section);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
}
.faq-list {
  display: grid;
  gap: 10px;
}
.faq details {
  padding: 4px 20px;
  border-radius: var(--r-inner);
  background: var(--surface-2);
  transition: background 0.25s var(--ease);
}
.faq details[open] {
  background: var(--surface);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  cursor: pointer;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: none;
  font-size: 22px;
  font-weight: 400;
  color: var(--brand);
  transition: transform 0.3s var(--ease);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq details p {
  margin: 0 0 16px;
  max-width: 62ch;
  color: var(--muted);
}
.faq .fine {
  margin-top: 24px;
}

/* ---------- footer ---------- */
/* sumopod's footer surface: one light warm-grey band across the full width, no line above it. */
.foot {
  background: #fafaf9;
  padding: 56px 0;
}
.foot-top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 40px;
}
.foot img {
  height: 24px;
  width: auto;
  margin-bottom: 14px;
}
.foot-about p {
  margin: 0 0 12px;
  max-width: 34ch;
  font-size: 15px;
  color: var(--muted);
}
.foot-about a {
  color: var(--brand);
  font-size: 15px;
}
.foot h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.foot li a {
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.25s var(--ease);
}
.foot li a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  font-size: 14px;
  color: var(--muted);
}
.foot-base p {
  margin: 0;
}
/* The one-line footer the documentation and legal pages carry. */
.foot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 28px;
  font-size: 14px;
  color: var(--muted);
}
.foot-row p {
  margin: 0;
}
.foot-row img {
  margin: 0;
}
.foot-row-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.foot-row-nav a {
  color: var(--muted);
  text-decoration: none;
}
.foot-row-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.foot-row > p:last-child {
  margin-left: auto;
}

/* A section arrives once, gently. `main.ts` marks the page first, so a visitor whose script never ran sees everything. */
.reveals-on .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveals-on .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .feat,
  .split,
  .size-list,
  .wl-band,
  .faq-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .feat-flip .feat-copy {
    order: 0;
  }
  .foot-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .foot-about {
    grid-column: 1 / -1;
  }
  .nav-links {
    display: none;
  }
  .nav {
    min-height: 68px;
  }
  .stage {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wl-band {
    padding: 20px;
  }
  .wl-card {
    padding: 14px;
  }
  .cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .cta-row .pill {
    justify-content: center;
  }
  /* The badge is a label, not a button: it keeps its own width instead of stretching like the call to action. */
  .cta-row .beta-badge {
    align-self: center;
  }
  .frame {
    padding: 7px;
  }
  .frame > * {
    border-radius: calc(var(--r-frame) - 7px);
  }
  .stage {
    aspect-ratio: 3 / 4;
  }
  .logo-tile {
    width: 112px;
    padding: 14px 8px;
  }
  .foot-top {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }
}

/* ---------- reduced motion: no camera, no drift, no reveals, the still of the office instead ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .stage-fallback {
    opacity: 1;
  }
  .reveals-on .reveal {
    opacity: 1;
    transform: none;
  }
  .logo-row {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }
}

/* ---------- docs (/docs/) and the legal pages (/terms/, /privacy/, /refund/): the one shared stylesheet, so they carry the
   same font, colours and white page as the home page ----------
   A plain two-column grid: a sticky table of contents and one reading column. No script: the TOC is anchor links, the pages are
   static HTML, and `scroll-margin-top` keeps a heading clear of the top when you land on its anchor. Nothing here draws a rule
   across the page: headings separate on space and weight, and only a data table keeps its cell lines, which it needs to be read. */
.docs-body {
  background: var(--white);
  color: var(--body);
}
.docs-head {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(140%) blur(10px);
}
.docs-head .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  padding: 16px 0;
}
.docs-head img {
  height: 24px;
  width: auto;
}
.docs-head nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 18px;
  margin-left: auto;
}
.docs-head nav a {
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  padding: 4px 0;
}
.docs-head nav a:hover,
.docs-head nav a[aria-current='page'] {
  color: var(--ink);
}
.docs-head nav a[aria-current='page'] {
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
  padding: clamp(24px, 3vw, 44px) 0 96px;
}
/* The table of contents: sticky on a tall screen, a plain list on a short one. */
.docs-toc {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 104px);
  overflow-y: auto;
  padding: 16px 14px;
  border-radius: var(--r-inner);
  background: var(--surface-2);
  font-size: 15px;
}
.docs-toc h2 {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand);
}
.docs-toc ol {
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.docs-toc li + li {
  margin-top: 2px;
}
.docs-toc a {
  display: block;
  padding: 5px 10px;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.35;
}
.docs-toc a:hover {
  background: var(--white);
  color: var(--ink);
}
.docs-toc .docs-toc-sub {
  margin: 2px 0 2px 10px;
}
.docs-toc .docs-toc-sub a {
  padding-left: 12px;
  font-size: 14px;
}
.docs-toc ol:last-of-type {
  margin-bottom: 0;
}

.docs-main {
  min-width: 0;
  max-width: 76ch;
}
.docs-main h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  font-weight: 300;
  color: var(--ink);
  text-wrap: balance;
}
.docs-main .docs-lede {
  margin: 0 0 8px;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--muted);
}
.docs-main h2 {
  margin: 64px 0 14px;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.035em;
  font-weight: 400;
  color: var(--ink);
  text-wrap: balance;
}
.docs-main h3 {
  margin: 34px 0 10px;
  font-size: 21px;
  line-height: 1.25;
  font-weight: 600;
  color: var(--ink);
}
.docs-main h4 {
  margin: 24px 0 8px;
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
}
/* Landing on an anchor must not tuck the heading under the sticky header. */
.docs-main :is(h2, h3, h4)[id],
.docs-main section[id] {
  scroll-margin-top: 88px;
}
.docs-main p,
.docs-main li {
  color: var(--body);
}
.docs-main p {
  margin: 0 0 16px;
  max-width: 70ch;
}
.docs-main ul,
.docs-main ol {
  margin: 0 0 18px;
  padding-left: 24px;
  max-width: 70ch;
}
.docs-main li {
  margin-bottom: 8px;
}
.docs-main li > ul,
.docs-main li > ol {
  margin: 8px 0 0;
}
.docs-main a {
  color: var(--brand); /* 5.8:1 on white */
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}
.docs-main strong {
  color: var(--ink);
  font-weight: 600;
}
.docs-main code {
  padding: 1px 5px;
  border-radius: 5px;
  background: var(--surface);
  font: 400 0.9em/1.4 var(--mono);
  overflow-wrap: anywhere;
}
.docs-main kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font: 500 0.85em/1.4 var(--mono);
  color: var(--ink);
}
.docs-main pre {
  margin: 0 0 18px;
  padding: 16px 18px;
  border-radius: var(--r-inner);
  background: var(--ink);
  color: var(--white);
  overflow-x: auto;
  font: 400 14px/1.6 var(--mono);
}
.docs-main pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}
/* A table wide enough to overflow scrolls inside its own box instead of widening the page. Its cell lines stay: a
   reference table is unreadable without them. */
.docs-table {
  margin: 0 0 20px;
  overflow-x: auto;
}
.docs-main table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.docs-main th,
.docs-main td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  color: var(--body);
}
.docs-main th {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.docs-main blockquote {
  margin: 0 0 18px;
  padding: 2px 0 2px 16px;
  border-left: 3px solid var(--orange);
  color: var(--muted);
}
/* A labelled aside: one tint per kind, the label carried by the text so it reads without colour. */
.docs-note {
  margin: 0 0 20px;
  padding: 16px 20px;
  border-radius: var(--r-inner);
  background: var(--surface);
}
.docs-note > :last-child {
  margin-bottom: 0;
}
.docs-note-beta {
  background: var(--brand-soft);
}
.docs-note-warn {
  background: #fdf3e3;
}
.docs-note b {
  color: var(--ink);
}
.docs-steps {
  counter-reset: none;
}
.docs-steps li {
  margin-bottom: 12px;
}
.docs-next {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 56px;
}
.docs-next a {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
  text-decoration: none;
  transition: background 0.25s var(--ease);
}
.docs-next a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}

@media (max-width: 900px) {
  .docs-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
  /* The full list would push the page's title off a phone screen, so the box scrolls inside a fixed height. */
  .docs-toc {
    position: static;
    max-height: 40vh;
    overscroll-behavior: contain;
  }
  .docs-main {
    max-width: none;
  }
  .docs-main h2 {
    margin-top: 48px;
  }
}

/* ---------- the guides and legal pages: the same floating header, a marked place in the contents ---------- */
.docs-head {
  display: flex;
  align-items: center;
  min-height: 76px;
  transition: background 0.28s var(--ease);
}
.docs-head .container {
  min-height: 56px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  transition: padding 0.28s var(--ease), border-radius 0.28s var(--ease), background 0.28s var(--ease), box-shadow 0.28s var(--ease),
    width 0.28s var(--ease);
}
.docs-head.float .container {
  width: min(100% - 2 * var(--gutter), 1120px);
  padding-inline: 20px;
  border-radius: 999px;
  background: var(--white);
  box-shadow: var(--shadow-island), 0 0 0 1px rgba(18, 18, 20, 0.06);
}
/* The heading you are reading, marked in the contents as you scroll (docs.ts). */
.docs-toc a[aria-current='true'] {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

/* A screenshot in a guide: the same light tray the landing uses, with a line of plain language under it. */
.docs-figure {
  margin: 0 0 26px;
}
.docs-figure .docs-shot {
  display: grid;
  place-items: center;
  padding: 8px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
/* A tall screenshot would otherwise fill the whole reading column: it keeps its shape and a sane height instead. */
.docs-figure img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: 540px;
  height: auto;
  border-radius: calc(var(--r-card) - 8px);
}
.docs-figure figcaption {
  margin-top: 10px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

@media (max-width: 900px) {
  .docs-head {
    min-height: 68px;
  }
  .cta-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .cta-shot {
    margin: 4px calc(-1 * clamp(20px, 4vw, 56px)) calc(-1 * clamp(28px, 4vw, 56px)) calc(-1 * clamp(20px, 4vw, 56px));
    padding: 10px 10px 0;
    border-top-left-radius: var(--r-frame);
    border-top-right-radius: var(--r-frame);
  }
  .cta-shot img {
    border-top-right-radius: calc(var(--r-frame) - 10px);
  }
  .film-points {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    text-align: left;
  }
}
@media (max-width: 640px) {
  .film-stage {
    aspect-ratio: 4 / 5;
  }
  .film-player {
    height: 92%;
  }
  .cta-card {
    padding: 22px;
  }
}

/* ---------- the sign-up page (/signup/, /id/signup/): the one page whose whole job is a form ----------
   The page behind it is a tray, so the white card is the one thing you look at, the way sumopod's register page works. Beside
   the card, on a wide screen, is the office the form actually builds: the Studio render, three plain benefits and the one line
   about what happens after the free days. Under 900 px the card comes first and the picture follows it. */
.signup-body {
  background: var(--surface);
}
/* Both paint a near-white band of their own, which would cut the tray in two. The header is sticky, so it takes the tray's
   own colour rather than nothing at all: a transparent bar lets the card scroll through the logo. */
.signup-body .docs-head {
  background: var(--surface);
  backdrop-filter: none;
}
.signup-body .foot {
  background: transparent;
}
.signup-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
  gap: clamp(24px, 4vw, 56px);
  padding: clamp(8px, 2vw, 28px) 0 clamp(44px, 6vw, 76px);
}
.signup-card {
  padding: clamp(22px, 2.6vw, 38px);
  border-radius: var(--r-frame);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--shadow-lift);
}
.signup-card h1 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: clamp(1.7rem, 2.8vw, 2.3rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.signup-sub {
  margin: 0 0 clamp(20px, 2.4vw, 28px);
  max-width: 42ch;
  font-size: 16px;
  color: var(--muted);
}

/* ---------- the form itself ---------- */
.signup-form {
  display: grid;
  gap: 18px;
}
.sf-field {
  display: grid;
  gap: 7px;
}
.sf-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.sf-box {
  position: relative;
  display: grid;
}
.sf-box svg {
  position: absolute;
  left: 16px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.sf-box input {
  width: 100%;
  min-height: 54px;
  padding: 0 16px 0 46px;
  /* 3.4:1 on white: the outline is the only thing that says where the field is (WCAG 1.4.11). */
  border: 1px solid #8c8c8c;
  border-radius: var(--r-inner);
  background: var(--white);
  color: var(--ink);
  font: 400 16px/1.4 var(--font);
  letter-spacing: -0.01em;
  /* The header is sticky: without this, focusing a field can park it under the logo. */
  scroll-margin-top: 96px;
}
.sf-box input::placeholder {
  color: #6b7076; /* 5.3:1 on white */
}
.sf-box input:hover {
  border-color: var(--ink);
}
.sf-box input:focus-visible {
  border-color: var(--brand);
  outline: 3px solid var(--brand);
  outline-offset: 2px;
}
.sf-box:focus-within svg {
  stroke: var(--brand);
}
.sf-box input[aria-invalid='true'] {
  border-color: #b42318;
}
/* The message under a field, and the strip under the button: the same ink, so one failure reads as one thing. */
.sf-error {
  min-height: 0;
  font-size: 14px;
  line-height: 1.4;
  color: #b42318; /* 6.2:1 on white */
}
.sf-error:empty {
  display: none;
}
.sf-go {
  width: 100%;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  gap: 10px;
}
.sf-go[disabled] {
  cursor: progress;
  transform: none;
}
.sf-spin {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: var(--white);
  animation: sf-turn 0.7s linear infinite;
}
@keyframes sf-turn {
  to {
    transform: rotate(360deg);
  }
}
/* The strip under the button. It only ever carries a refusal: everything that went right is the button, the fields or the card. */
.sf-note {
  display: flex;
  gap: 10px;
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--r-inner);
  background: #fdf0ee;
  font-size: 15px;
  line-height: 1.45;
  color: #b42318; /* 5.9:1 on that tint */
}
/* Under the button: no card, no payment details, and the two pages a sign-up agrees to. */
.sf-fine {
  display: grid;
  gap: 6px;
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}
.sf-fine a {
  color: var(--brand);
}
.sf-free {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 600;
  color: var(--ink);
}
.sf-free svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- what the card shows once it has been sent ---------- */
.sf-done {
  display: grid;
  justify-items: start;
  gap: 12px;
}
/* `signup.ts` moves focus here so a reader lands on the new heading. It is not reachable by Tab, so it draws no ring. */
.sf-done:focus-visible {
  outline: none;
}
.sf-done-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 999px;
  background: var(--brand-soft);
}
.sf-done-mark svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* The card shows one heading at a time: the form's, or this one. */
.sf-done h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}
.sf-done p {
  margin: 0;
  max-width: 44ch;
  color: var(--body);
}
.sf-done b {
  color: var(--ink);
  overflow-wrap: anywhere;
}
.sf-done .sf-fine {
  margin-top: 4px;
}

/* ---------- beside the card: the office this form builds ---------- */
.signup-aside {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
  padding-top: clamp(0px, 1vw, 14px);
}
.signup-aside .frame {
  background: var(--white);
}
.signup-aside .frame img {
  width: 100%;
  height: auto;
  background: var(--surface-2);
}
.sa-points {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sa-points li {
  display: flex;
  gap: 12px;
}
.sa-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-inner);
  background: var(--brand-soft);
}
.sa-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sa-points b {
  display: block;
  margin-bottom: 2px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.sa-points p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.sa-after {
  margin: 0;
  padding: 14px 16px;
  border-radius: var(--r-inner);
  background: var(--white);
  border: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.5;
  color: var(--body);
}
.sa-after b {
  color: var(--ink);
}

/* ---------- under both columns: the three steps, and what the free days really mean ---------- */
/* Nothing on this site draws a rule across the page: space and weight separate the sections. */
.signup-more {
  grid-column: 1 / -1;
  margin-top: clamp(16px, 3vw, 40px);
}
.signup-more h2 {
  margin: 0 0 clamp(16px, 2vw, 22px);
  font-family: var(--display);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 400;
  color: var(--ink);
}
.signup-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 32px);
  margin: 0 0 clamp(28px, 3.4vw, 44px);
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.signup-steps li {
  counter-increment: step;
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
}
.signup-steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  font-family: var(--display);
  font-size: 15px;
  color: var(--brand);
}
.signup-terms {
  max-width: 76ch;
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
}
.signup-terms a {
  color: var(--brand);
}
.signup-terms + .signup-terms {
  margin-top: 12px;
}

@media (max-width: 900px) {
  .signup-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 5vw, 34px);
  }
  .signup-aside {
    padding-top: 0;
  }
  .signup-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
  .signup-steps li {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    align-items: center;
    gap: 0 12px;
  }
  .signup-steps li::before {
    margin-bottom: 0;
  }
}
/* On a phone the card is the fold: the heading and its line give way so the two fields and the button are all in view. */
@media (max-width: 640px) {
  .signup-card h1 {
    font-size: 1.6rem;
  }
  .signup-sub {
    margin-bottom: 18px;
    font-size: 15px;
  }
  .signup-form {
    gap: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .sf-spin {
    animation-duration: 2.4s;
  }
}
