/* SEGMENTR landing page
   Dark-only by intent: the app is a dark-first tool and the page says so.
   Palette and radii track docs/BRAND_STYLE_GUIDE.md + the app theme. */

/* ── Tokens ─────────────────────────────────────────────────────────── */
:root {
  --ink:        #0B0B0C;
  --ink-2:      #0F0F11;
  --surface:    #141416;
  --surface-2:  #1B1B1E;
  --line:       #26262A;
  --line-2:     #35353B;

  --chalk:      #F2F2F0;
  --ash:        #96969C;
  --ash-dim:    #6E6E75;

  --red:        #B11226;
  --red-lt:     #D13447;
  --red-text:   #FF334E;   /* the brand hue at full chroma; clears 4.5:1 for small copy */
  --red-dark:   #8F0E1D;
  --red-surface:#2A0F14;

  --steel:      #60A5FA;   /* the app's client-mode blue; data visuals only */

  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", "JetBrains Mono",
          "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;

  --shell: 1160px;
  --gut: 24px;

  --fs-label: 12px;   /* mono micro-type: eyebrows, field labels, the copyright */

  --hero-below: clamp(36px, 4.5vw, 64px);   /* under the hero, and again above the section after it */

  --ease: cubic-bezier(.22,.7,.25,1);
}

/* ── Reset ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-gutter: stable; }

/* Column so a page shorter than the window still puts its footer on the bottom edge
   rather than partway up it. The skip link and the toasts are out of flow. */
body {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  margin: 0;
  background: var(--ink);
  color: var(--chalk);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { flex: 1 0 auto; }

h1, h2, h3 { margin: 0; font-weight: 700; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
svg { display: block; }
img { max-width: 100%; height: auto; }

a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--red-lt);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--chalk);
  color: var(--ink);
  border-radius: var(--r-md);
  font: 600 14px/1 var(--sans);
  text-decoration: none;
}
.skip:focus { left: 16px; }

/* ── Layout primitives ──────────────────────────────────────────────── */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin: 0 auto;
  padding-inline: var(--gut);
}

/* Eyebrow: mono, tracked out, preceded by a three-block segment rule
   that echoes the logo. Structural, not decorative. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ash);
}
.eyebrow::before {
  content: "";
  flex: none;
  width: 34px;
  height: 6px;
  border-radius: 2px;
  background:
    linear-gradient(var(--red)   0 0) 0    0 / 14px 100% no-repeat,
    linear-gradient(var(--line-2) 0 0) 18px 0 / 6px  100% no-repeat,
    linear-gradient(var(--line-2) 0 0) 28px 0 / 6px  100% no-repeat;
}

.band { padding-block: clamp(72px, 11vw, 132px); }
.band + .band { border-top: 1px solid var(--line); }

.band__head { margin-bottom: clamp(40px, 5vw, 64px); }
.band__head--center { text-align: center; }
.band__head--center .eyebrow { justify-content: center; }

.band__title {
  margin-top: 20px;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.lead {
  max-width: 46ch;
  margin-top: 24px;
  color: var(--ash);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
}
.lead--wide { max-width: 62ch; }

/* ── Brand ──────────────────────────────────────────────────────────── */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.brand__mark { width: 26px; height: 26px; }
.brand__mark rect { fill: var(--chalk); }
.brand__mark .brand__accent { fill: var(--red); }

.brand__word {
  font: 700 15px/1 var(--mono);
  letter-spacing: .18em;
  text-transform: uppercase;
}
.brand__word--sm { font-size: 13px; }
.brand__r { color: var(--red-lt); }

/* The name inside running copy, in the wordmark's voice but sized to whatever
   text it sits in. The red final letter is the brand guide's marketing variant. */
.brandname {
  font-family: var(--mono);
  font-weight: 700;
  font-size: .93em;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--chalk);
}

/* ── Buttons ────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  background: transparent;
  font: 600 15px/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s var(--ease), border-color .18s var(--ease),
              transform .18s var(--ease), color .18s var(--ease);
}
.btn--primary {
  background: var(--red);
  color: #fff;
}
.btn--primary:hover { background: var(--red-lt); transform: translateY(-1px); }
.btn--ghost {
  border-color: var(--line-2);
  color: var(--chalk);
}
.btn--ghost:hover { border-color: var(--ash); background: var(--surface); }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--lg { padding: 17px 34px; font-size: 16px; }

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(11, 11, 12, .72);
  backdrop-filter: blur(14px);
  transition: border-color .25s var(--ease), background-color .25s var(--ease);
}
.nav.is-stuck {
  border-bottom-color: var(--line);
  background: rgba(11, 11, 12, .92);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav__links a {
  flex: none;
  white-space: nowrap;
  color: var(--ash);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.nav__links a:hover { color: var(--chalk); }

/* A label broken over two lines reads as two links, so drop them instead, from the least
   important end, with some room to spare for a wider system font. */
@media (max-width: 935px) {
  .nav__links a[href$="#questions"] { display: none; }
}
@media (max-width: 835px) {
  .nav__links a[href$="#progress"] { display: none; }
}
@media (max-width: 755px) {
  .nav__links { display: none; }
}

/* ── Account menu ───────────────────────────────────────────────────── */
.nav__end {
  display: flex;
  align-items: center;
  gap: 10px;
}

.acct,
.lang { position: relative; }

.acct__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ash);
  cursor: pointer;
  transition: color .18s var(--ease);
}
/* The icon is drawn at 42px; this takes the tap target to the 44px floor. */
.acct__btn::after {
  content: "";
  position: absolute;
  inset: -1px;
}
.acct__btn svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}
.acct__btn[aria-expanded="true"],
:root:not(.js) .acct:focus-within .acct__btn { color: var(--chalk); }

.acct__menu,
.lang__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 218px;
  padding: 12px 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface-2);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .5);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  /* Held open for a moment after the pointer leaves: the walk from the icon
     down to the first item cuts across a corner that belongs to neither. */
  transition: opacity .14s var(--ease) .25s, transform .14s var(--ease) .25s,
              visibility .14s .25s;
}
/* Covers the gap above the panel, so a straight drop never leaves it. */
.acct__menu::before,
.lang__menu::before {
  content: "";
  position: absolute;
  inset: -11px 0 100% 0;
}
/* The button says whether it is open; a tap is what flips it. The no-script
   fallback is focus, which is the only opener CSS has on its own. */
.acct__btn[aria-expanded="true"] + .acct__menu,
.lang__btn[aria-expanded="true"] + .lang__menu,
:root:not(.js) .acct:focus-within .acct__menu,
:root:not(.js) .lang:focus-within .lang__menu {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Hover is for a mouse only. iOS synthesises one on tap, and that would open the
   panel behind the button's back, out of step with what it reports. */
@media (hover: hover) and (pointer: fine) {
  .acct:hover .acct__btn,
  .lang:hover .lang__btn { color: var(--chalk); }

  .acct:hover .acct__menu,
  .lang:hover .lang__menu {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition-delay: 0s;
  }
}

.acct__label {
  padding: 0 10px 10px;
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ash);
}

/* Which account you are in — the label's slot, but an address reads as itself. */
.acct__who {
  padding: 0 10px 10px;
  overflow: hidden;
  color: var(--ash);
  font-size: 13px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.acct__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding-inline: 10px;
  border-radius: var(--r-md);
  color: var(--chalk);
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color .16s var(--ease);
}
.acct__item svg {
  flex: none;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--ash);
}
.acct__item:hover { background: var(--surface); }
.acct__item:hover svg { color: var(--chalk); }

/* Sign out posts, so it is a button in a form. Only the UA defaults are undone here — the
   rules above still decide how it looks. Not the `font` shorthand: it would outrank them. */
.acct__menu form { display: contents; }
button.acct__item {
  width: 100%;
  padding-block: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 14.5px;
  text-align: left;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
}
/* Gecko pads a button's inner box, which would shift the icon a few pixels off the rows above. */
button.acct__item::-moz-focus-inner { padding: 0; border: 0; }

.acct__strip {
  display: flex;
  justify-content: flex-end;
  margin-top: 2px;
  padding: 6px 10px 0;
  border-top: 1px solid var(--line);
}
.acct__quiet {
  color: var(--ash);
  font-size: 13px;
  text-decoration: none;
  transition: color .16s var(--ease);
}
.acct__quiet:hover { color: var(--red-lt); }

/* ── Language switch ────────────────────────────────────────────────── */
.lang { margin-left: auto; }

.lang__btn {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ash);
  font: 500 13px/1 var(--mono);
  letter-spacing: .08em;
  cursor: pointer;
  transition: color .18s var(--ease);
}
.lang svg {
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* As wide as a flag, so the globe and a flag hold the same room. */
.lang__icon {
  display: grid;
  flex: none;
  place-items: center;
  width: 23px;
  height: 18px;
}
.lang__icon svg { width: 18px; height: 18px; }
.lang__icon img { width: auto; height: 15px; border-radius: 2px; }
.lang__chev { width: 14px; height: 14px; transition: transform .18s var(--ease); }
.lang__btn[aria-expanded="true"] { color: var(--chalk); }
.lang__btn[aria-expanded="true"] .lang__chev { transform: rotate(180deg); }

.lang__menu { right: auto; left: 0; width: max-content; padding: 8px; }

.lang__item {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 14px 0 10px;
  border-radius: var(--r-md);
  color: var(--ash);
  font-size: 14.5px;
  text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.lang__item:hover,
.lang__item[aria-current] { background: var(--surface); color: var(--chalk); }

/* ── Hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding-block: clamp(28px, 4vw, 52px) var(--hero-below);
}
/* Faint red bloom behind the headline — the only ambient effect on the page. */
.hero::before {
  content: "";
  position: absolute;
  inset: -20% 0 auto -10%;
  width: 70%;
  height: 620px;
  background: radial-gradient(50% 50% at 30% 40%, rgba(177, 18, 38, .16), transparent 70%);
  pointer-events: none;
}
.hero .shell { position: relative; }

.hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-height: min(660px, calc(100svh - 68px - clamp(180px, 20vw, 300px)));
}

.hero__title {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.4vw, 3.3rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.hero__sub {
  max-width: 52ch;
  margin-top: 22px;
  color: var(--ash);
  font-size: clamp(1.02rem, 1.3vw, 1.15rem);
}

.hero__text { container-type: inline-size; }

/* Three claims — the part a skimmer actually reads. */
.points {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.points li {
  position: relative;
  padding-left: 26px;
  color: var(--chalk);
  font-size: .96rem;
}
.points li + li { margin-top: 12px; }
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 11px;
  height: 11px;
  border-radius: 3px;
  background: var(--red);
}
/* All three on one row, or one per row — never two and one. */
@container (min-width: 36em) {
  .points {
    display: flex;
    gap: 28px;
  }
  .points li + li { margin-top: 0; }
}

/* Hero device */
.hero__shot {
  display: flex;
  justify-content: center;
  animation: rise .7s var(--ease) .1s backwards;
}
.phone__body--hero {
  width: clamp(232px, 24vw, 292px);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .95);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

.hero__lead {
  max-width: 58ch;
  margin-top: 26px;
  color: var(--ash);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

@keyframes strike {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

/* ── Progress split ─────────────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}
.split__text .band__title { font-size: clamp(1.6rem, 2.9vw, 2.25rem); }
.split--top { align-items: start; }
.split__text .band__title { margin-top: 20px; }

/* Text beside an app screen: the heading keeps its full size, the phone the hero's. */
.split--shot .band__head { margin-bottom: 0; }
.split__shot { display: flex; justify-content: center; }
.phone__body--shot { width: clamp(232px, 24vw, 292px); }

/* Text beside a small screen that opens larger on a tap. Rows follow each other closely. */
.split.split--mini { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.split--mini + .split--mini { margin-top: clamp(24px, 3vw, 40px); }
.split--mini .mini { flex: 0 0 auto; width: clamp(140px, 14vw, 172px); }
.split--flip .split__shot { order: -1; }

/* As far below the hero as the hero's own bottom padding. The scroll margin keeps
   the label clear of the sticky nav when a menu link jumps here. */
.hero + .band { padding-top: var(--hero-below); scroll-margin-top: 48px; }

/* ── Small screens ──────────────────────────────────────────────────── */
.mini { min-width: 0; margin: 0; text-align: center; }
.mini__body {
  display: block;
  width: 100%;
  padding: 8px;
  border: 1px solid var(--line-2);
  border-radius: 22px;
  background: var(--surface);
  font: inherit;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.mini__body:hover { border-color: var(--ash-dim); transform: translateY(-3px); }

.phone__body {
  padding: 9px;
  border: 1px solid var(--line-2);
  border-radius: 26px;
  background: var(--surface);
}
/* Both device screens are images now, so a real screenshot drops in without
   touching anything else. 9:18.5 is a 1080x2220 export. */
.phone__screen,
.mini__screen {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 18.5;
  object-fit: cover;
  background: #121212;
}
.phone__screen { border-radius: 18px; }
.mini__screen  { border-radius: 15px; }

/* Tapping a thumbnail opens it at a readable size; the overlay is built in JS
   from a copy of the thumbnail, so the page itself never moves. */
.zoom {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 11, 12, .88);
  backdrop-filter: blur(6px);
  cursor: default;
  animation: zoomIn .18s var(--ease);
}
.zoom__inner { text-align: center; }
.zoom .mini__body {
  width: min(320px, 78vw, 42vh);
  cursor: default;
  pointer-events: none;
  transform: none;
}
body.is-zoomed { overflow: hidden; }

@keyframes zoomIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── FAQ ────────────────────────────────────────────────────────────── */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--mono);
  font-size: clamp(.95rem, 1.5vw, 1.05rem);
  font-weight: 600;
  letter-spacing: -.005em;
  transition: color .18s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--red-lt); }

/* Marker is a segment block that gains its red half when open. */
.faq summary::before {
  content: "";
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.faq details[open] summary::before {
  border-color: var(--red);
  background: var(--red);
}
.faq__body {
  padding: 0 0 24px 32px;
  max-width: 60ch;
  color: var(--ash);
  font-size: .97rem;
}

/* ── Get it ─────────────────────────────────────────────────────────── */
.band--get { border-top: 1px solid var(--line); }
.get { max-width: 640px; text-align: center; }
.get__mark { width: 54px; height: 54px; margin: 0 auto; }
.get__mark rect { fill: var(--chalk); }
.get__mark .brand__accent { fill: var(--red); }

.get__title {
  margin-top: 30px;
  font-family: var(--mono);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  line-height: 1.05;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.get__text {
  margin: 22px auto 34px;
  max-width: 48ch;
  color: var(--ash);
}

/* ── Account page ───────────────────────────────────────────────────── */
.acctpage { padding-block: clamp(44px, 6vw, 76px) clamp(60px, 8vw, 100px); }
.acctpage .shell { max-width: 580px; }

.acctpage__head { margin-bottom: clamp(28px, 4vw, 40px); }
.acctpage__title {
  margin-top: 18px;
  font-family: var(--mono);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-transform: uppercase;
}

.panel {
  padding: clamp(20px, 3vw, 26px);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.panel + .panel { margin-top: 16px; }
.panel__title {
  font: 700 13px/1.2 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.panel__text {
  margin-top: 10px;
  color: var(--ash);
  font-size: 14.5px;
}
.panel__text:first-child { margin-top: 0; }

/* A page whose whole content is one sentence: the sentence is the page, not a note pinned
   inside it, so it carries no panel and no colour of its own. The heading already says which
   of the two outcomes this is, which leaves nothing for a red edge to add. */
.notice {
  color: var(--chalk);
  font-size: 20px;
  line-height: 1.5;
}
/* With no panel between them, the message sits in the same gap the heading opened above it. */
.notice + .backlink { margin-top: clamp(28px, 4vw, 40px); }

.form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}
.form:first-child { margin-top: 0; }
.field { display: grid; gap: 7px; }
.field__label {
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: .17em;
  text-transform: uppercase;
  color: var(--ash-dim);
}
.input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--ink-2);
  color: var(--chalk);
  font: 400 15px/1.3 var(--sans);
  transition: border-color .18s var(--ease);
}
.input::placeholder { color: var(--ash-dim); }
.input:focus { outline: none; border-color: var(--ash); }

.form__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-top: 4px;
}
.form__link {
  color: var(--ash);
  font-size: 13.5px;
  text-decoration: none;
  transition: color .18s var(--ease);
}
.form__link:hover { color: var(--chalk); }

.backlink {
  margin-top: 20px;
  font-size: 13.5px;
}
.backlink a {
  color: var(--ash);
  text-decoration: none;
  transition: color .18s var(--ease);
}
.backlink a:hover { color: var(--chalk); }

/* Cloudflare's check takes no room, and so no gap in the form, until it asks for a click. With
   scripts off it holds the note saying the form needs them. */
.humancheck { line-height: 0; }   /* the widget is an inline frame; no text line under it */
.humancheck:not(.is-asking) { position: absolute; }
@media (scripting: none) {
  .humancheck { position: static; }
}
.humancheck .formnote { margin-top: 0; }

.formnote {
  margin-top: 16px;
  color: var(--ash-dim);
  font-size: 13px;
  line-height: 1.6;
}

/* States the static markup never carried: what the server answers with. */
.field__error {
  font: 500 var(--fs-label)/1.4 var(--mono);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--red-text);
}
/* No :focus override — the border is the only focus signal this design has, and
   red-on-red would leave a keyboard user unable to see where they are. */
.input--error { border-color: var(--red-text); }

/* Toasts. Clear of the sticky nav, and above it. */
.toasts {
  position: fixed;
  top: 84px;
  right: var(--gut);
  z-index: 60;
  display: grid;
  gap: 10px;
  width: min(360px, calc(100vw - var(--gut) * 2));
  pointer-events: none;
}
.toast {
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--ash-dim);
  border-radius: var(--r-md);
  background: var(--surface-2);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .5);
  font-size: 14.5px;
  line-height: 1.5;
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in .44s var(--ease);
}
.toast--err { border-left-color: var(--red-text); }
.toast.is-going {
  opacity: 0;
  transform: translateX(12px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(4rem); }
  to   { opacity: 1; transform: none; }
}
/* Firefox drops the animation on its own when the OS asks for less motion; Chrome does not,
   so say it. The toast still arrives and still leaves, it just stops travelling. */
@media (prefers-reduced-motion: reduce) {
  .toast { animation: none; }
  .toast.is-going { transform: none; }
}

/* ── Legal documents ────────────────────────────────────────────────── */
.legal .shell { max-width: 640px; }

.legal__date {
  margin-top: 16px;
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ash);
}

.prose {
  color: var(--ash);
  font-size: 15.5px;
}
.prose > * + * { margin-top: 14px; }
.prose h2 {
  color: var(--chalk);
  font: 700 1.05rem/1.3 var(--mono);
  letter-spacing: -.005em;
}
.prose > * + h2 {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.prose h3 {
  color: var(--chalk);
  font: 600 1rem/1.3 var(--mono);
}
.prose > * + h3 { margin-top: 28px; }
.prose strong { color: var(--chalk); font-weight: 600; }
.prose a {
  color: var(--chalk);
  text-decoration: underline;
  text-decoration-color: var(--ash-dim);
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: text-decoration-color .18s var(--ease);
}
.prose a:hover { text-decoration-color: var(--chalk); }
.prose ul {
  display: grid;
  gap: 10px;
  padding-left: 20px;
  list-style: square;
}
.prose li::marker { color: var(--ash-dim); }
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}
.prose th,
.prose td {
  padding: 12px 14px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface);
  color: var(--ash);
  font: 500 var(--fs-label)/1.4 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.prose + .backlink { margin-top: clamp(36px, 5vw, 52px); }

/* ── Footer ─────────────────────────────────────────────────────────── */
.foot {
  padding-block: 44px 56px;
  border-top: 1px solid var(--line);
  background: var(--ink-2);
}
/* Baseline, not centre: the wordmark sets line-height 1 and the links
   inherit 1.6, so centring their boxes leaves the text sitting apart. */
.foot__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 28px;
}
.foot__links {
  display: flex;
  gap: 24px;
  font-size: 13.5px;
}
.foot__links a { color: var(--ash); text-decoration: none; }
.foot__links a:hover { color: var(--chalk); }
.foot__copy {
  margin-left: auto;
  font: 500 var(--fs-label)/1 var(--mono);
  letter-spacing: .12em;
  color: var(--ash-dim);
}

/* ── Scroll reveal ──────────────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ── Responsive ─────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 44px;
    min-height: 0;
  }
  .hero__shot { order: 2; }
  .phone__body--hero,
  .phone__body--shot { width: clamp(232px, 60vw, 288px); }
  .split { grid-template-columns: 1fr; }
}

/* On a phone the small screen goes under its text, at a readable size. */
@media (max-width: 640px) {
  .split.split--mini { grid-template-columns: 1fr; }
  .split--mini .mini { width: clamp(200px, 56vw, 210px); }
  .split--flip .split__shot { order: 0; }
  .split--mini + .split--mini { margin-top: 56px; }
}

@media (max-width: 720px) {
  :root { --gut: 20px; }

  .foot__inner { flex-direction: column; align-items: flex-start; }
  .foot__copy { margin-left: 0; }
}

@media (max-width: 460px) {
  /* The row is tight here, so it takes the button row's 10px spacing. */
  .nav__inner { gap: 10px; }

  .hero__actions { gap: 10px; }
  .hero__actions .btn { width: 100%; }
  .points li { font-size: .92rem; }
}

@media (max-width: 400px) {
  .lang__code,
  .lang__chev { display: none; }

  /* The icon alone is under the 44px floor; the hit area reaches into the gaps beside it. */
  .lang__btn { position: relative; }
  .lang__btn::after {
    content: "";
    position: absolute;
    inset: 0 -10px 0 -11px;
  }
}

@media (max-width: 340px) {
  .brand__word { display: none; }
}

/* ── Reduced motion ─────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
