/* Caracall landing page on the brand system (docs/brand/BRAND.md, "Kyoto dusk", v0.2).
   Six tokens only. Orange is the one accent: a point, a shape, a button; never text on Paper,
   and text on Orange is always Ink. One family, Noto Sans Hebrew; IBM Plex Mono caps only for
   Latin and numeric meta. Radius 6/10/16/24/full, spacing on a 4px base. RTL with logical
   properties only. Motion is transform/opacity and stops under reduced motion. */

:root {
  /* Palette */
  --ink: #0a1633;
  --deep: #1e306e;
  --orange: #e66c27;
  --peach: #ebae7e;
  --slate: #8294a8;
  --paper: #faf3e8;
  --white: #ffffff;

  /* Type */
  --font: 'Noto Sans Hebrew', 'Arial Hebrew', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Consolas, monospace;
  --text-meta: 0.6875rem;   /* 11 */
  --text-tag: 0.8125rem;    /* 13 */
  --text-button: 0.9375rem; /* 15 */
  --text-body: 1rem;        /* 16 / 26 */
  --text-lede: 1.125rem;    /* 18 / 28 */
  --text-h3: 1.25rem;       /* 20 / 28 */
  --text-h2: 1.5rem;        /* 24 / 30 */
  --text-h1: 2.25rem;       /* 36 / 44 */

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 999px;

  /* Spacing, 4px base */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-6: 24px;
  --s-8: 32px;
  --s-12: 48px;
  --s-16: 64px;
  --s-24: 96px;

  --gutter: var(--s-4);
  --section: var(--s-16);

  --shadow: 0 1px 2px rgba(10, 22, 51, 0.08), 0 8px 24px -12px rgba(10, 22, 51, 0.3);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur: 400ms;

  color-scheme: light;
}

@media (min-width: 48rem) {
  :root {
    --gutter: var(--s-8);
    --section: var(--s-24);
    --text-h2: 2rem;   /* 32 / 40 */
    --text-h1: 3.5rem; /* 56 / 64 */
    --text-lede: 1.25rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--s-24);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--text-body);
  font-weight: 400;
  line-height: 1.625;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3 {
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: var(--text-h1);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  font-weight: 600;
  line-height: 1.25;
  max-width: 24ch;
}

h3 {
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
}

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

/* Links are Deep text; the Orange underline is the accent, not the text. */
a {
  color: var(--deep);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  transition: color var(--dur-fast) ease, text-decoration-thickness var(--dur-fast) ease;
}

a:hover {
  color: var(--ink);
  text-decoration-thickness: 3px;
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

code,
.mono {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-meta);
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.skip-link {
  position: absolute;
  inset-inline-start: var(--s-4);
  top: calc(-1 * var(--s-16));
  z-index: 100;
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-md);
}

.skip-link:focus {
  top: var(--s-4);
}

/* Guard: nothing inside the page may widen it. The header sits outside <main>. */
main {
  overflow-x: hidden;
  overflow-x: clip;
}

/* ---------- Dark surfaces ---------- */

.surface-ink,
.surface-deep {
  color: var(--paper);
}

.surface-ink {
  background: var(--ink);
}

.surface-deep {
  background: var(--deep);
}

.surface-ink h2,
.surface-deep h2 {
  color: var(--paper);
}

.surface-ink a,
.surface-deep a {
  color: var(--paper);
}

.surface-ink a:hover,
.surface-deep a:hover {
  color: var(--white);
}

.surface-ink :focus-visible,
.surface-deep :focus-visible {
  outline-color: var(--orange);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(250, 243, 232, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--slate);
}

.header-row {
  display: flex;
  align-items: center;
  gap: var(--s-6);
  min-height: var(--s-16);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.375rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
}

.brand:hover {
  color: var(--ink);
}

.site-nav {
  margin-inline-start: auto;
}

.site-nav ul {
  display: flex;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  color: var(--deep);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--text-button);
  padding-block: var(--s-2);
  background: linear-gradient(var(--orange), var(--orange)) no-repeat right bottom / 0 2px;
  transition: background-size var(--dur) var(--ease-out), color var(--dur-fast) ease;
}

.site-nav a:hover {
  color: var(--ink);
  background-size: 100% 2px;
}

@media (max-width: 52rem) {
  .site-nav {
    display: none;
  }

  .header-row > .button {
    margin-inline-start: auto;
  }
}

@media (max-width: 21rem) {
  .header-row > .button {
    display: none;
  }
}

/* ---------- Buttons: Orange with Ink text is the primary; Deep is the secondary ---------- */

.button {
  --btn-bg: var(--orange);
  --btn-fg: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: var(--s-12);
  padding: var(--s-3) var(--s-6);
  border: 0;
  border-radius: var(--r-full);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: 600 var(--text-button) / 1.3 var(--font);
  text-decoration: none;
  cursor: pointer;
  box-shadow: inset 0 0 0 0 var(--ink);
  transition:
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) ease;
}

.button:hover {
  color: var(--btn-fg);
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 2px var(--ink);
}

.button:active {
  transform: translateY(0);
}

.button:focus-visible {
  outline-offset: 3px;
}

.button[disabled] {
  cursor: progress;
  opacity: 0.75;
  transform: none;
}

.button-small {
  min-height: 40px;
  padding: var(--s-2) var(--s-4);
}

.button-deep {
  --btn-bg: var(--deep);
  --btn-fg: var(--paper);
}

.button-deep:hover {
  box-shadow: inset 0 0 0 2px var(--orange);
}

.surface-ink .button:hover,
.surface-deep .button:hover {
  box-shadow: inset 0 0 0 2px var(--paper);
}

.surface-ink .waitlist-form .button:hover {
  box-shadow: inset 0 0 0 2px var(--ink);
}

.text-button {
  background: none;
  border: 0;
  padding: var(--s-1) 0;
  color: var(--deep);
  font: 600 var(--text-button) / 1.4 var(--font);
  text-decoration: underline;
  text-decoration-color: var(--orange);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.25em;
  cursor: pointer;
}

.text-button:hover {
  color: var(--ink);
}

.surface-ink .text-button {
  color: var(--paper);
}

.cta {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
}

.cta-note {
  font-size: var(--text-tag);
  line-height: 1.5;
  color: var(--deep);
}

.surface-ink .cta-note {
  color: var(--peach);
}

.surface-ink .waitlist-form .cta-note {
  color: var(--deep);
}

/* ---------- Sections: each opens with a folder tab ---------- */

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

.tab-label {
  display: inline-block;
  position: relative;
  margin-block-end: var(--s-4);
  padding: var(--s-1) var(--s-4);
  background: var(--peach);
  border-radius: var(--r-md) var(--r-md) 0 0;
  color: var(--ink);
  font-size: var(--text-tag);
  font-weight: 500;
  line-height: 1.6;
}

.tab-label::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: -2px;
  height: 2px;
  background: var(--orange);
}

.surface-ink .tab-label {
  background: var(--deep);
  color: var(--paper);
}

.surface-deep .tab-label {
  background: var(--ink);
  color: var(--paper);
}

.section-lede {
  margin-block-start: var(--s-4);
  max-width: 58ch;
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--deep);
}

.surface-ink .section-lede {
  color: var(--peach);
}

/* ---------- Hero ---------- */

.hero {
  overflow-x: hidden;
  overflow-x: clip;
  padding-block: var(--s-12) var(--section);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: var(--s-12);
  align-items: center;
}

.hero h1 {
  margin-block-end: var(--s-6);
}

.lede {
  max-width: 40rem;
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--deep);
  margin-block-end: var(--s-8);
}

.hero-meta {
  margin-block-start: var(--s-8);
  padding-block-start: var(--s-4);
  border-top: 1px solid var(--slate);
  font-size: var(--text-tag);
  color: var(--deep);
}

/* Platforms on one line, call tools on the next, each after a neutral Deep glyph (our own drawing,
   not a brand logo); each Latin name stays whole. The glyph sits on the first line of the text. */
.hero-meta-line {
  display: flex;
  align-items: flex-start;
  gap: var(--s-2);
}

.hero-meta-line + .hero-meta-line {
  margin-block-start: var(--s-1);
}

.meta-glyph {
  flex: none;
  width: 16px;
  height: 16px;
  margin-block-start: calc((1.625em - 16px) / 2);
}

.hero-meta bdi {
  white-space: nowrap;
}

/* ---------- Call apps strip ----------
   Names only: Apple, Microsoft and Google allow their logos only under a licence or approval, and
   WhatsApp's may not change colour (site/BRAND-SOURCES.md). Static, wrapped and centred by default and
   under reduced motion; it moves only when motion is welcome. In RTL the row runs from the right, so
   the track moves right (+50%) and the hidden copy follows in from the left. */

.apps-strip {
  padding-block: var(--s-8);
  border-block: 1px solid var(--slate);
  overflow: hidden;
}

.apps-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-2) var(--s-6);
  margin-block-end: var(--s-6);
}

.apps-caption {
  max-width: 62ch;
  font-size: var(--text-button);
  line-height: 1.6;
  color: var(--deep);
}

.apps-pause {
  display: none;
  align-items: center;
  gap: var(--s-2);
  font-size: var(--text-tag);
  font-weight: 500;
  color: var(--deep);
  cursor: pointer;
}

.marquee {
  overflow: hidden;
}

.marquee-track {
  display: flex;
}

.marquee-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3) var(--s-8);
  width: 100%;
  margin: 0;
  padding: 0 var(--gutter);
  list-style: none;
}

.marquee-list[aria-hidden='true'] {
  display: none;
}

/* Each name after an Orange point: the accent as a shape, the name in Deep. */
.marquee-list li {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--deep);
  font-size: var(--text-h3);
  font-weight: 600;
  line-height: 1.4;
  white-space: nowrap;
}

.marquee-list li::before {
  content: '';
  flex: none;
  width: var(--s-2);
  height: var(--s-2);
  border-radius: 50%;
  background: var(--orange);
}

@media (prefers-reduced-motion: no-preference) {
  .apps-pause {
    display: inline-flex;
  }

  .marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, var(--ink) 12%, var(--ink) 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, var(--ink) 12%, var(--ink) 88%, transparent);
  }

  .marquee-track {
    width: max-content;
    animation: marquee 36s linear infinite;
  }

  /* The copy's distance from the list equals the gap between names, so +50% is one seamless step. */
  /* Each half is at least as wide as the screen, so the strip never shows a gap; space-around keeps the
     names evenly spaced across the seam. */
  .marquee-list,
  .marquee-list[aria-hidden='true'] {
    display: flex;
    flex: none;
    flex-wrap: nowrap;
    justify-content: space-around;
    width: auto;
    min-width: 100vw;
    padding: 0;
    padding-inline-end: var(--s-8);
  }

  .marquee:hover .marquee-track,
  .apps-strip:focus-within .marquee-track {
    animation-play-state: paused;
  }

  /* Its own rule, so a browser without :has() still pauses on hover and focus. */
  .apps-strip:has([data-marquee-pause]:checked) .marquee-track {
    animation-play-state: paused;
  }
}

@keyframes marquee {
  to {
    transform: translateX(50%);
  }
}

/* The folder stack: CSS only, decorative. Slate and Deep folders behind, the client's Peach
   folder in front with an Orange tab, and a Paper summary sheet going in. */
.hero-art {
  position: relative;
  min-height: 25rem;
  isolation: isolate;
}

.folder {
  position: absolute;
  inset-inline: 0;
  border-radius: var(--r-sm) var(--r-lg) var(--r-lg) var(--r-lg);
  box-shadow: var(--shadow);
}

.folder-tab {
  position: absolute;
  bottom: 100%;
  inset-inline-start: 0;
  padding: var(--s-1) var(--s-4);
  background: inherit;
  border-radius: var(--r-md) var(--r-md) 0 0;
  font-size: var(--text-tag);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
}

.folder-3 {
  top: var(--s-6);
  height: 15rem;
  background: var(--slate);
  color: var(--ink);
  transform: translateX(-1.5rem) rotate(2deg);
}

.folder-3 .folder-tab {
  inset-inline-start: 55%;
}

.folder-2 {
  top: var(--s-16);
  height: 15rem;
  background: var(--deep);
  color: var(--paper);
  transform: translateX(-0.75rem) rotate(1deg);
}

.folder-2 .folder-tab {
  inset-inline-start: 28%;
}

.folder-front {
  top: 7rem;
  min-height: 17rem;
  padding: var(--s-6);
  background: var(--peach);
  color: var(--ink);
  z-index: 1;
}

.folder-front .folder-tab {
  z-index: 2;
  background: var(--orange);
  color: var(--ink);
}

.sheet {
  position: relative;
  margin-block-start: calc(-1 * var(--s-16));
  margin-inline: var(--s-2);
  padding: var(--s-6);
  background: var(--paper);
  border-radius: var(--r-md);
  box-shadow: var(--shadow);
  transform: rotate(-1deg);
}

.sheet::before {
  content: '';
  position: absolute;
  inset-block-start: 0;
  inset-inline-end: var(--s-6);
  width: var(--s-12);
  height: var(--s-2);
  background: var(--orange);
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.sheet-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: var(--s-2);
  font-size: var(--text-tag);
  font-weight: 500;
  color: var(--deep);
}

.sheet-title {
  font-weight: 600;
  font-size: var(--text-h3);
  margin-block: var(--s-1) var(--s-3);
}

.sheet-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: var(--text-button);
  display: grid;
  gap: var(--s-2);
}

.sheet-lines li {
  padding-inline-start: var(--s-4);
  position: relative;
}

.sheet-lines li::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.65em;
  width: var(--s-2);
  height: var(--s-2);
  border-radius: 50%;
  background: var(--orange);
}

@media (max-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-art {
    min-height: 22rem;
    max-width: 30rem;
    width: 100%;
    margin-inline: auto;
  }
}

@media (max-width: 40rem) {
  .folder-3 {
    transform: translateX(-0.75rem) rotate(2deg);
  }

  .folder-2 {
    transform: translateX(-0.25rem) rotate(0.8deg);
  }
}

@media (max-width: 26rem) {
  .folder-3,
  .folder-2 {
    transform: none;
  }

  .hero-art {
    min-height: 23rem;
  }

  .folder-tab {
    padding-inline: var(--s-2);
  }

  .sheet {
    margin-block-start: calc(-1 * var(--s-6));
    margin-inline: 0;
  }
}

/* ---------- Demo (on Ink: Paper notes) ---------- */

.example-flag {
  display: inline-block;
  margin-block: var(--s-6) var(--s-8);
  padding: var(--s-1) var(--s-3);
  border: 1px dashed var(--peach);
  border-radius: var(--r-sm);
  color: var(--peach);
  font-size: var(--text-tag);
  font-weight: 500;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: var(--s-4);
  align-items: start;
}

.demo-pane {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-lg);
  padding: var(--s-6);
}

.demo-pane h3 {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-block-end: var(--s-4);
  padding-block-end: var(--s-3);
  border-bottom: 1px solid var(--slate);
}

.pane-num {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font: 500 var(--text-tag) / 1 var(--font-mono);
}

.transcript {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-3);
  font-size: var(--text-button);
  line-height: 1.6;
}

.transcript li {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: var(--s-3);
}

.t-time {
  grid-row: span 2;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: var(--text-meta);
  letter-spacing: 0.08em;
  color: var(--deep);
  padding-block-start: var(--s-1);
  direction: ltr;
}

.t-who {
  font-weight: 600;
  font-size: var(--text-tag);
  color: var(--deep);
}

.summary {
  margin: 0;
  display: grid;
  gap: var(--s-4);
  font-size: var(--text-button);
}

.summary dt {
  font-weight: 500;
  font-size: var(--text-tag);
  color: var(--deep);
}

.summary dd {
  margin: var(--s-1) 0 0;
}

.pane-filed {
  background: var(--peach);
}

.pane-filed h3 {
  border-bottom-color: var(--ink);
}

.filed-path {
  background: var(--paper);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  overflow-wrap: anywhere;
  text-align: left;
}

.filed-path code {
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.filed-rule {
  margin-block: var(--s-4) var(--s-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  flex-wrap: wrap;
}

.rule-chip {
  background: var(--deep);
  color: var(--paper);
  border-radius: var(--r-full);
  padding: 0 var(--s-3);
  font-size: var(--text-tag);
  font-weight: 500;
}

.filed-note {
  font-size: var(--text-button);
}

.demo-replay {
  margin-block-start: var(--s-6);
}

@media (max-width: 60rem) {
  .demo-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Scripted play: only when the script armed it and motion is welcome. */
@media (prefers-reduced-motion: no-preference) {
  .is-armed .transcript li,
  .is-armed .pane-summary,
  .is-armed .pane-filed {
    opacity: 0;
    transform: translateY(8px);
  }

  .is-playing .transcript li,
  .is-playing .pane-summary,
  .is-playing .pane-filed {
    animation: rise 480ms var(--ease-out) forwards;
  }

  .is-playing .transcript li:nth-child(2) { animation-delay: 450ms; }
  .is-playing .transcript li:nth-child(3) { animation-delay: 900ms; }
  .is-playing .transcript li:nth-child(4) { animation-delay: 1350ms; }
  .is-playing .transcript li:nth-child(5) { animation-delay: 1800ms; }
  .is-playing .pane-summary { animation-delay: 2500ms; }
  .is-playing .pane-filed { animation-delay: 3200ms; }

  .hero .sheet {
    animation: file-in 800ms var(--ease-out) 200ms both;
  }
}

@keyframes rise {
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes file-in {
  from {
    opacity: 0;
    transform: translateY(-2rem) rotate(-3deg);
  }
  to {
    opacity: 1;
    transform: rotate(-1deg);
  }
}

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  margin: var(--s-12) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.step {
  padding-block-start: var(--s-8);
  padding-inline-end: var(--s-8);
}

.step + .step {
  padding-inline-start: var(--s-8);
  border-inline-start: 1px solid var(--slate);
}

/* The number sits in an Orange point, in Ink, in the mono meta face. */
.step-num {
  display: inline-grid;
  place-items: center;
  width: var(--s-12);
  height: var(--s-12);
  border-radius: 50%;
  background: var(--orange);
  color: var(--ink);
  font: 500 var(--text-tag) / 1 var(--font-mono);
  letter-spacing: 0.08em;
  margin-block-end: var(--s-4);
}

.step h3 {
  margin-block-end: var(--s-2);
}

.step p {
  color: var(--deep);
}

@media (max-width: 48rem) {
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .step,
  .step + .step {
    padding-inline: 0;
    padding-block: var(--s-8);
    border-inline-start: 0;
    border-bottom: 1px solid var(--slate);
  }
}

/* ---------- Waitlist form ---------- */

.join-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: var(--s-12);
  align-items: start;
}

.join-intro p {
  margin-block-start: var(--s-6);
  color: var(--paper);
}

.join-intro .join-small {
  font-size: var(--text-tag);
  color: var(--peach);
}

.waitlist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--s-8);
  position: relative;
}

.surface-ink .waitlist-form a {
  color: var(--deep);
}

.surface-ink .waitlist-form :focus-visible {
  outline-color: var(--ink);
}

.field {
  display: grid;
  gap: var(--s-2);
  align-content: start;
  min-width: 0;
}

.field-wide {
  grid-column: 1 / -1;
}

fieldset.field {
  border: 0;
  margin: 0;
  padding: 0;
}

label,
legend {
  font-weight: 600;
  font-size: var(--text-button);
}

legend {
  padding: 0;
  margin-block-end: var(--s-2);
}

.req,
.opt {
  font-weight: 400;
  color: var(--deep);
}

input[type='email'],
input[type='text'],
select {
  width: 100%;
  min-height: var(--s-12);
  padding: var(--s-2) var(--s-3);
  border: 1.5px solid var(--slate);
  border-radius: var(--r-md);
  background: var(--white);
  color: var(--ink);
  font: 400 var(--text-body) / 1.5 var(--font);
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}

input[type='email'] {
  text-align: left;
}

input[type='email']:hover,
input[type='text']:hover,
select:hover {
  border-color: var(--deep);
}

input[type='email']:focus-visible,
input[type='text']:focus-visible,
select:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--orange);
}

[aria-invalid='true'] {
  border-color: var(--ink) !important;
  border-width: 2px !important;
}

.choices {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.choice {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  padding: var(--s-2) var(--s-4);
  border: 1.5px solid var(--slate);
  border-radius: var(--r-full);
  background: var(--white);
  font-weight: 500;
  font-size: var(--text-button);
  cursor: pointer;
  transition:
    border-color var(--dur-fast) ease,
    background-color var(--dur-fast) ease,
    color var(--dur-fast) ease;
}

.choice:hover {
  border-color: var(--deep);
}

/* Selected state is Deep, as in the brand's buttons. */
.choice:has(input:checked) {
  border-color: var(--deep);
  background: var(--deep);
  color: var(--paper);
}

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

.choice input:focus-visible {
  outline: none;
}

input[type='checkbox'],
input[type='radio'] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--orange);
  flex: none;
}

.consents {
  display: grid;
  gap: var(--s-3);
  padding-block-start: var(--s-4);
  border-top: 1px solid var(--slate);
}

.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-1) var(--s-3);
  align-items: start;
}

.consent input {
  margin-block-start: var(--s-1);
}

.consent label {
  font-weight: 400;
  font-size: var(--text-button);
  line-height: 1.6;
  cursor: pointer;
}

.consent .field-error {
  grid-column: 2;
}

/* Errors are Ink text marked by an Orange point: the palette has no red. */
.field-error {
  position: relative;
  padding-inline-start: var(--s-4);
  color: var(--ink);
  font-size: var(--text-tag);
  font-weight: 600;
}

.field-error::before {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: var(--s-2);
  height: var(--s-2);
  border-radius: 50%;
  background: var(--orange);
}

.field-error:empty {
  display: none;
}

.form-actions {
  display: grid;
  justify-items: start;
  gap: var(--s-2);
}

.form-status {
  font-weight: 600;
  border-radius: var(--r-md);
}

.form-status:empty {
  display: none;
}

.form-status.is-error {
  padding: var(--s-3) var(--s-4);
  background: var(--peach);
  color: var(--ink);
}

.form-status.is-ok {
  padding: var(--s-4) var(--s-6);
  background: var(--deep);
  color: var(--paper);
  font-size: var(--text-lede);
  border-inline-start: var(--s-1) solid var(--orange);
}

.waitlist-form.is-done > :not(.form-status) {
  display: none;
}

/* The honeypot: clipped to nothing in place, out of the tab order, hidden from assistive tech. */
.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 56rem) {
  .join-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 34rem) {
  .waitlist-form {
    grid-template-columns: minmax(0, 1fr);
    padding: var(--s-6) var(--s-4);
    border-radius: var(--r-lg);
  }
}

/* ---------- Who ---------- */

.who-list {
  list-style: none;
  margin: var(--s-12) 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
}

.who-item {
  position: relative;
  padding-block: var(--s-8);
  padding-inline-end: var(--s-12);
  border-bottom: 1px solid var(--slate);
}

.who-item:nth-child(even) {
  padding-inline: var(--s-12) 0;
  border-inline-start: 1px solid var(--slate);
}

.who-item h3 {
  font-size: var(--text-h2);
  margin-block-end: var(--s-2);
}

.who-item::before {
  content: '';
  position: absolute;
  top: -2px;
  inset-inline-start: 0;
  width: var(--s-12);
  height: 4px;
  background: var(--orange);
  transform-origin: right center;
  transform: scaleX(0.35);
  transition: transform var(--dur) var(--ease-out);
}

.who-item:nth-child(even)::before {
  inset-inline-start: var(--s-12);
}

.who-item:hover::before {
  transform: scaleX(1);
}

.who-item p {
  color: var(--deep);
  max-width: 34rem;
}

@media (max-width: 44rem) {
  .who-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .who-item,
  .who-item:nth-child(even) {
    padding-inline: 0;
    border-inline-start: 0;
  }

  .who-item:nth-child(even)::before {
    inset-inline-start: 0;
  }
}

/* ---------- Privacy facts: a Peach note for what is true now, a dashed one for plans ---------- */

.privacy-facts {
  border-block: 1px solid var(--slate);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-6);
  margin-block-start: var(--s-8);
}

.facts {
  background: var(--peach);
  border-radius: var(--r-lg);
  padding: var(--s-8);
}

.facts-planned {
  background: transparent;
  border: 1.5px dashed var(--deep);
}

.facts h3 {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-block-end: var(--s-6);
}

.facts ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--s-4);
}

.facts li {
  color: var(--ink);
}

.facts strong {
  color: var(--ink);
  font-weight: 600;
}

.status-chip {
  font: 500 var(--text-tag) / 1.6 var(--font);
  padding: 0 var(--s-3);
  border-radius: var(--r-full);
}

.status-now {
  background: var(--deep);
  color: var(--paper);
}

.status-planned {
  background: transparent;
  color: var(--ink);
  border: 1.5px dashed var(--ink);
}

@media (max-width: 48rem) {
  .facts-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts {
    padding: var(--s-6);
  }
}

/* ---------- Consent explainer ---------- */

.consent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--s-12);
  align-items: center;
}

.consent-grid > div > p,
.plain-list {
  margin-block-start: var(--s-6);
  max-width: 60ch;
}

.plain-list {
  padding-inline-start: var(--s-6);
  display: grid;
  gap: var(--s-3);
}

.plain-list li::marker {
  color: var(--orange);
}

.plain-list strong {
  font-weight: 600;
}

.disclaimer {
  font-size: var(--text-tag);
  color: var(--deep);
  border-inline-start: 3px solid var(--slate);
  padding-inline-start: var(--s-3);
}

.notice-card {
  margin: 0;
  background: var(--white);
  border-radius: var(--r-lg);
  padding: var(--s-8);
  box-shadow: var(--shadow);
  border-top: var(--s-2) solid var(--orange);
}

.notice-card figcaption {
  font-size: var(--text-tag);
  font-weight: 500;
  color: var(--deep);
}

.notice-card blockquote {
  margin: var(--s-3) 0 var(--s-4);
  font-size: var(--text-h3);
  line-height: 1.6;
  font-weight: 400;
}

.copy-status {
  font-size: var(--text-tag);
  font-weight: 600;
  color: var(--ink);
}

@media (max-width: 56rem) {
  .consent-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Price (on Deep) ---------- */

.price {
  padding-block: var(--s-16);
}

.price-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-8);
  align-items: end;
}

.price-row > p {
  font-size: var(--text-lede);
  line-height: 1.6;
  color: var(--paper);
}

@media (max-width: 48rem) {
  .price-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- FAQ ---------- */

.faq-wrap {
  max-width: 52rem;
}

.faq-list {
  margin-block-start: var(--s-8);
  border-top: 2px solid var(--ink);
}

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

.faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
  padding-block: var(--s-6);
  font-weight: 600;
  font-size: var(--text-h3);
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
  transition: color var(--dur-fast) ease;
}

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

.faq summary::after {
  content: '+';
  flex: none;
  display: grid;
  place-items: center;
  width: var(--s-8);
  height: var(--s-8);
  border-radius: 50%;
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font: 400 1.25rem/1 var(--font);
  transition:
    transform var(--dur) var(--ease-out),
    background-color var(--dur-fast) ease,
    border-color var(--dur-fast) ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--orange);
  border-color: var(--orange);
}

.faq summary:hover {
  color: var(--deep);
}

.faq details p {
  padding-block-end: var(--s-6);
  max-width: 62ch;
  color: var(--deep);
}

/* ---------- Final CTA (on Ink) ---------- */

.final-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--s-12);
  align-items: center;
}

.final h2 {
  font-size: var(--text-h1);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.final-copy p {
  margin-block-start: var(--s-4);
  font-size: var(--text-lede);
  color: var(--peach);
}

.final-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--r-xl);
  margin-block-end: var(--s-8);
}

.quick-form {
  grid-template-columns: minmax(0, 1fr);
}

@media (max-width: 56rem) {
  .final-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: var(--s-8);
  border-top: 1px solid var(--deep);
  font-size: var(--text-tag);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s-4) var(--s-8);
}

.footer-row p {
  flex: 1 1 18rem;
}

.footer-row .footer-legal {
  flex: 1 1 100%;
  color: var(--slate);
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--paper);
}

.site-footer a:hover {
  color: var(--white);
}

.site-footer :focus-visible {
  outline-color: var(--orange);
}

.brand-small {
  color: var(--paper);
  font-size: 1.125rem;
  text-decoration: none;
}

.brand-small:hover {
  color: var(--white);
}

.brand-small img {
  width: 24px;
  height: 24px;
  border-radius: var(--r-sm);
}

/* ---------- Document pages: privacy notice, thanks, 404 ---------- */

.doc {
  padding-block: var(--s-12) var(--section);
}

.doc-body {
  max-width: 46rem;
}

.doc h1 {
  margin-block-end: var(--s-4);
}

.doc h2 {
  margin-block: var(--s-12) var(--s-3);
  max-width: none;
}

.doc p,
.doc ul {
  margin-block: 0 var(--s-4);
}

.doc ul {
  padding-inline-start: var(--s-6);
}

.doc li + li {
  margin-block-start: var(--s-2);
}

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

.doc strong {
  font-weight: 600;
}

.doc-meta {
  color: var(--deep);
  font-size: var(--text-tag);
  padding-block-end: var(--s-6);
  border-bottom: 2px solid var(--ink);
  margin-block-end: var(--s-8) !important;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin-block: 0 var(--s-6);
  font-size: var(--text-button);
}

.doc th,
.doc td {
  text-align: start;
  vertical-align: top;
  padding: var(--s-2) var(--s-3);
  border-bottom: 1px solid var(--slate);
}

.doc th {
  background: var(--peach);
  font-weight: 600;
}

.table-scroll {
  overflow-x: auto;
}

.page-notice {
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.notice {
  width: min(100% - 2 * var(--gutter), 36rem);
  padding-block: var(--s-12);
  display: grid;
  gap: var(--s-6);
  justify-items: start;
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  /* The call apps strip stands still: one wrapped row, no copy (it moves only under no-preference). */
  .marquee-track {
    animation: none;
    transform: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
