/**
 * Rushcart marketing site — one stylesheet, every page.
 *
 * ## The system, in one paragraph
 *
 * Big type, big radii, flat tinted cards, and no line art. A section is an eyebrow, a very large
 * headline, one line of support, then a row of cards. A card is a small grey label, a bold sentence,
 * and an illustration filling whatever space is left. The fills alternate down a page — paper, quiet,
 * cream, brand, night — and that alternation is the rhythm, doing the work borders and icons used to
 * do here.
 *
 * ## Why the icons are gone
 *
 * The previous version hung a 22px stroked pictogram over every heading. At that size a wallet, a
 * receipt and a card are the same grey scribble, so they carried no information and cost the page its
 * calm. What replaced them is either a real illustration (drawn to this palette, in `assets/art/`) or
 * nothing at all. The only SVG left in the markup is the menu button, which is UI, not decoration.
 *
 * ## Palette
 *
 * The UI colours ARE the illustration colours — `hero-courier.svg` and everything under `assets/art/`
 * is drawn from the twelve values below. That is what keeps a red card and the artwork sitting on it
 * looking like one object rather than a stock image dropped into a brand.
 */

/* ============================================================================= 1. reset */

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

* {
  margin: 0;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

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

/**
 * The `hidden` attribute outranks every layout rule in this file.
 *
 * The UA stylesheet sets `[hidden] { display: none }` at a specificity any class beats, so
 * `.btn { display: inline-flex }` quietly un-hides a hidden button and `.field { display: grid }`
 * un-hides a hidden field. Both of those shipped here before this line existed: the partner form
 * showed Continue and Submit at the same time, and revealed a city select it had been told to hide.
 * This is the one place `!important` is the right tool — the attribute is a statement of intent that
 * no styling should be able to argue with.
 */
[hidden] {
  display: none !important;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ============================================================================ 2. tokens */

:root {
  /**
   * Three colours and nothing else: the logo's red, white, and black.
   *
   * The greys below are not a fourth colour — they are the black at low opacity, flattened to hex so
   * they composite predictably over the red. Everything warm that used to be here (cream, blush,
   * coral, tan, brown, amber) is gone, including out of the illustrations, which are drawn from this
   * exact list. A page that only ever shows red, white and black is what makes the red mean
   * something when it appears.
   */
  --red: #e5333f;
  --red-deep: #b4212c;
  /* The dark end of the red, for cards. Deep enough to carry white type, red enough that the brand
     red inside an illustration lifts off it instead of sinking in. */
  --red-dark: #5c0f18;
  --red-wash: rgba(229, 51, 63, 0.07);

  --ink: #111114;
  --ink-soft: #5c5c66;
  --ink-faint: #8e8e98;

  --paper: #ffffff;

  /*
   * There are no grey FILLS on this site — a light grey panel behind light grey text is what made the
   * earlier version read as faded. Surfaces are white, black or red; separation comes from a hairline
   * and from the space around a thing. The hairline is the black at 13%, not a grey of its own.
   */
  --line: rgba(17, 17, 20, 0.13);
  --line-strong: rgba(17, 17, 20, 0.22);

  --night: #111114;
  --night-2: #1c1c20;
  --on-night: #ffffff;
  --on-night-soft: rgba(255, 255, 255, 0.62);
  --on-night-line: rgba(255, 255, 255, 0.14);

  --r-sm: 12px;
  --r: 18px;
  --r-lg: 26px;
  --r-pill: 999px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --gutter: clamp(20px, 5vw, 40px);
  --max: 1160px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

::selection {
  background: var(--red-wash);
}

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 12px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
}

.skip:focus {
  left: 16px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* =========================================================================== 3. layout */

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

.section {
  padding-block: clamp(72px, 9vw, 128px);
}

.section--tight {
  padding-block: clamp(48px, 6vw, 80px);
}

/* Two white sections in a row need a join. One hairline is enough — a grey band is not. */
.section--ruled {
  border-top: 1px solid var(--line);
}

/* The one full-bleed red band on a page: the closing ask, right before the black footer. */
.section--brand {
  background: var(--red);
  color: #fff;
}

.section--brand .lead,
.section--brand .fine {
  color: rgba(255, 255, 255, 0.9);
}

.section--brand .fine a {
  color: #fff;
}

.section--night {
  background: var(--night);
  color: var(--on-night);
}

/**
 * The intro above a row of cards.
 *
 * Centred, and narrow enough that the headline breaks into two or three big lines rather than one
 * long thin one — the break is the point. It is what makes a 4rem headline read as a statement.
 */
.head {
  /*
   * A length, not `ch`. `ch` here resolves against this element's own 16px — not against the 3.3rem
   * headline inside it — so `21ch` capped the column at about 170px and broke a six-word headline
   * over five lines.
   */
  max-width: 640px;
  margin-inline: auto;
  margin-bottom: clamp(40px, 5vw, 68px);
  text-align: center;
}

.head--wide {
  max-width: 860px;
}

.head--left {
  margin-inline: 0;
  text-align: left;
}

.head .lead {
  margin-inline: auto;
  max-width: 46ch;
}

.head--left .lead {
  margin-inline: 0;
}

/* ============================================================================= 4. type */

.display {
  font-size: clamp(2.6rem, 6.2vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.3rem);
  font-weight: 800;
  letter-spacing: -0.034em;
  line-height: 1.03;
}

.h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

/**
 * The label above a headline.
 *
 * Sentence case at nearly body size, in grey — not the tiny letterspaced capitals this file used to
 * have. Capitals shout a category name; this reads as the first half of the sentence the headline
 * finishes, which is what it is.
 */
.eyebrow {
  display: block;
  margin-bottom: 14px;
  color: var(--ink-faint);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.section--night .eyebrow,
.hero--night .eyebrow {
  color: var(--on-night-soft);
}

.lead {
  margin-top: 20px;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.5;
}

.section--night .lead {
  color: var(--on-night-soft);
}

.fine {
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.5;
}

.fine a {
  color: inherit;
}

a {
  color: var(--red-deep);
  text-underline-offset: 3px;
}

/* ========================================================================== 5. buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border: 0;
  border-radius: var(--r-pill);
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.012em;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 0.16s var(--ease),
    background-color 0.16s var(--ease),
    opacity 0.16s var(--ease);
}

.btn:active {
  transform: translateY(1px);
}

.btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn--primary {
  background: var(--red);
  color: #fff;
}

.btn--primary:hover {
  background: var(--red-deep);
}

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

.btn--ink:hover {
  background: #000;
}

.btn--outline {
  background: var(--paper);
  color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn--outline:hover {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}

.btn--onnight {
  background: var(--on-night);
  color: var(--ink);
}

.btn--onnight:hover {
  background: #fff;
}

.btn--sm {
  padding: 11px 20px;
  font-size: 0.94rem;
}

.btn--wide {
  width: 100%;
}

/* =========================================================================== 6. chrome */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  transition: box-shadow 0.2s var(--ease);
}

.site-header.is-stuck {
  box-shadow: 0 1px 0 var(--line);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 76px;
}

/**
 * The wordmark, set rather than drawn.
 *
 * The bolt mark is not cleared for use yet, so the name carries the brand on its own: the same
 * weight, tracking and family as every headline on the site, which is what stops it reading as a
 * placeholder. When the mark is signed off it goes back inside this link and the type rules below
 * come out — nothing else has to move.
 */
.wordmark {
  flex: none;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.042em;
  color: var(--ink);
  text-decoration: none;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav a {
  color: var(--ink-soft);
  font-weight: 550;
  text-decoration: none;
  letter-spacing: -0.012em;
}

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

.nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 650;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  line-height: 0;
}

@media (max-width: 900px) {
  .nav,
  .header-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

.mobile-nav {
  display: none;
  padding: 8px var(--gutter) 24px;
  border-top: 1px solid var(--line);
}

.mobile-nav.is-open {
  display: grid;
  gap: 4px;
}

.mobile-nav a:not(.btn) {
  padding: 14px 4px;
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
}

.mobile-nav .btn {
  margin-top: 12px;
}

/* ---------------------------------------------------------------------------- footer */

.site-footer {
  padding-block: clamp(56px, 7vw, 88px) 36px;
  background: var(--night);
  color: var(--on-night);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 40px;
}

@media (max-width: 860px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-brand .wordmark {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 1.5rem;
  color: var(--on-night);
}

.footer-brand p {
  max-width: 30ch;
  color: var(--on-night-soft);
  font-size: 0.94rem;
}

.footer-col h4 {
  margin-bottom: 14px;
  font-size: 0.94rem;
  font-weight: 650;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 11px;
}

.footer-col a {
  color: var(--on-night-soft);
  font-size: 0.94rem;
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--on-night);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(40px, 5vw, 64px);
  padding-top: 24px;
  border-top: 1px solid var(--on-night-line);
  color: var(--on-night-soft);
  font-size: 0.86rem;
}

.footer-bottom .spacer {
  margin-left: auto;
}

/* ============================================================================= 7. hero */

.hero {
  position: relative;
  overflow: hidden;
  background: var(--paper);
}

.hero--night {
  background: var(--night);
  color: var(--on-night);
}

.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  padding-block: clamp(48px, 6vw, 88px);
}

@media (max-width: 940px) {
  .hero-in {
    grid-template-columns: 1fr;
  }
}

.hero .display {
  max-width: 14ch;
}

.hero .lead {
  max-width: 38ch;
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.hero--night .lead {
  color: var(--on-night-soft);
}

/**
 * The customer hero's illustration.
 *
 * It lives in the grid, not in the section's background — and that is the whole point of this block.
 * As a background it was positioned against the VIEWPORT (`right -16px center`) while every other
 * thing on the page is positioned against the content column, so the page carried a full gutter down
 * its left side and none at all down its right. Here its right edge IS the wrap's right edge, and the
 * two margins are the same number by construction rather than by a value someone has to keep in step.
 *
 * `alt=""` keeps it out of the accessibility tree, which is the one thing the background was buying:
 * it is scenery, and it says nothing the headline has not already said.
 */
.hero-art {
  justify-self: end;
  width: 100%;
  max-width: 640px;
}

.hero-art img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 940px) {
  .hero-art {
    justify-self: start;
    margin-top: 10px;
  }
}

/* ============================================================================ 8. tiles */

/**
 * The card system, and the only decorative device left on the site.
 *
 * `label` names the stage, `title` is the whole claim in one bold sentence, `art` is an illustration
 * that fills whatever height remains. Nothing here has a border: the fill is the edge, which is why
 * the radius has to be this large to read as deliberate.
 */
.tiles {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tiles--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .tiles--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .tiles,
  .tiles--3 {
    grid-template-columns: 1fr;
  }
}

.tile {
  display: flex;
  flex-direction: column;
  min-height: 300px;
  padding: 30px 30px 0;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  overflow: hidden;
  /*
   * A light tile names its own ink for the same reason the signup card does: these sit inside
   * `.section--night` as often as on paper, and a tile that inherits the band's near-white loses its
   * title — the label and body survive because those set a colour, so the card looks merely empty
   * rather than broken, which is exactly how it shipped past a first look.
   */
  color: var(--ink);
}

/* The two fills that are not white. Both drop the hairline — a pale line inside a red or black card
   reads as a rendering fault, not as an edge. */
.tile--brand,
.tile--deep,
.tile--night {
  box-shadow: none;
}

/**
 * The two accent cards.
 *
 * Both are a gradient rather than a flat fill — a large panel of one saturated colour goes dead flat
 * on a big screen, and the fall from light to dark across it is what makes it read as a surface.
 *
 * Which one a card gets is decided by its artwork, not by taste: every illustration on this site has
 * red in it, and red on `--red` disappears. So `--brand` is for cards whose art carries no red (or
 * none at all), and `--deep` is for the rest — against that dark red the artwork's red is the
 * brightest thing on the card.
 */
.tile--brand {
  background: linear-gradient(158deg, #ef4552 0%, #d3242f 60%, #b81f2b 100%);
  color: #fff;
}

.tile--deep {
  background: linear-gradient(158deg, #74151f 0%, #4a0b12 100%);
  color: #fff;
}

.tile--night {
  background: var(--night);
  color: var(--on-night);
}

.tile--flat {
  min-height: 0;
  padding-bottom: 30px;
}

.tile--wide {
  grid-column: 1 / -1;
  min-height: 340px;
}

.tile__label {
  margin-bottom: 8px;
  color: var(--ink-faint);
  font-size: 0.95rem;
  font-weight: 500;
}

.tile--brand .tile__label,
.tile--deep .tile__label,
.tile--night .tile__label {
  color: rgba(255, 255, 255, 0.66);
}

.tile__title {
  max-width: 24ch;
  font-size: clamp(1.15rem, 1.7vw, 1.45rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.22;
}

.tile__body {
  margin-top: 10px;
  max-width: 34ch;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.tile--brand .tile__body,
.tile--deep .tile__body,
.tile--night .tile__body {
  color: rgba(255, 255, 255, 0.74);
}

/**
 * The illustration well.
 *
 * `margin-top: auto` pins it to the bottom of the card however tall the title runs, so a row of cards
 * with one-line and three-line titles still has its artwork on one baseline. The negative side
 * margins let a drawing run to the card's edges the way the fill does.
 */
.tile__art {
  margin: auto -30px 0;
  padding-top: 22px;
}

.tile__art img,
.tile__art svg {
  width: 100%;
  height: auto;
}

.tile--wide {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  align-items: center;
  gap: 24px;
  padding-bottom: 30px;
}

.tile--wide .tile__art {
  margin: 0;
  padding: 0;
}

@media (max-width: 700px) {
  .tile--wide {
    grid-template-columns: 1fr;
    padding-bottom: 0;
  }
  .tile--wide .tile__art {
    margin: 8px -30px 0;
  }
}

/**
 * A row of cards that scrolls sideways rather than wrapping.
 *
 * For ordered steps, where the sequence matters more than seeing all of it at once, and where wrapping
 * step 3 onto a second line breaks the one thing the row is for.
 */
.row-scroll {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(268px, 1fr);
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
}

.row-scroll > * {
  scroll-snap-align: start;
}

@media (min-width: 1100px) {
  .row-scroll {
    grid-auto-columns: minmax(0, 1fr);
    overflow-x: visible;
  }
}

/* --------------------------------------------------------------------------- numbers */

/* An ordered list where the number is the only ornament. */
.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  counter-reset: step;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  counter-increment: step;
  padding: 28px 26px;
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.step::before {
  content: counter(step);
  display: block;
  margin-bottom: 14px;
  color: var(--red);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.step h3 {
  margin-bottom: 8px;
}

.step p {
  color: var(--ink-soft);
  font-size: 0.98rem;
}

/* ============================================================================ 9. media */

/**
 * The full-bleed strip of footage under a partner hero.
 *
 * It ships as a poster and nothing else: `site.js` attaches the video source only once the band is
 * near the viewport, and never under `prefers-reduced-motion`. A reader on a Kigali mobile connection
 * pays ~55-140KB for a still instead of megabytes for footage they scrolled past.
 */
.media-band {
  position: relative;
  height: clamp(220px, 34vw, 460px);
  overflow: hidden;
  background: var(--night-2);
}

.media-band video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The courier clip's subject sits low in frame; a centred crop is all ceiling. */
.media-band--low video {
  object-position: 50% 66%;
}

/* ============================================================================= 10. FAQ */

.faq {
  display: grid;
  gap: 10px;
  max-width: 860px;
  margin-inline: auto;
}

.faq details {
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.section--night .faq details {
  background: var(--night-2);
  box-shadow: none;
}

.faq summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 22px 26px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
  font-weight: 650;
  letter-spacing: -0.018em;
  cursor: pointer;
  list-style: none;
}

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

/* The +/x toggle, drawn with two gradients rather than an icon file. */
.faq summary::after {
  content: '';
  flex: none;
  width: 28px;
  height: 28px;
  margin-left: auto;
  background:
    linear-gradient(currentColor, currentColor) center / 13px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 13px no-repeat;
  opacity: 0.5;
  transition: transform 0.25s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  max-width: 68ch;
  padding: 0 26px 24px;
  color: var(--ink-soft);
}

.section--night .faq p {
  color: var(--on-night-soft);
}

/* ========================================================================== 11. signup */

.signup {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--r-lg);
  background: var(--paper);
  box-shadow:
    0 2px 6px rgba(26, 17, 20, 0.05),
    0 24px 60px rgba(26, 17, 20, 0.13);
  /* The card is light on every hero it sits in, so it names its own ink rather than inheriting the
     band's — on a night hero that inheritance is near-white text on a white card. */
  color: var(--ink);
}

.signup h2 {
  font-size: clamp(1.25rem, 1.8vw, 1.5rem);
  font-weight: 750;
  letter-spacing: -0.026em;
  line-height: 1.2;
}

.signup h2 + p {
  margin-top: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

/* --------------------------------------------------------------------------- fields */

.field {
  display: grid;
  align-content: start;
  gap: 7px;
  margin-top: 16px;
}

.field > label {
  font-size: 0.9rem;
  font-weight: 600;
}

.field input,
.field select {
  width: 100%;
  padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font-size: 1rem;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

.field select {
  appearance: none;
  padding-right: 42px;
  background-image: linear-gradient(45deg, transparent 50%, var(--ink-faint) 50%),
    linear-gradient(135deg, var(--ink-faint) 50%, transparent 50%);
  background-position:
    calc(100% - 20px) calc(50% + 1px),
    calc(100% - 15px) calc(50% + 1px);
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.field input::placeholder {
  color: var(--ink-faint);
}

.field input:hover,
.field select:hover {
  border-color: var(--line-strong);
}

.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--red);
}

.field .hint {
  color: var(--ink-faint);
  font-size: 0.8rem;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

@media (max-width: 480px) {
  .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* --------------------------------------------------------------------------- choices */

/**
 * The big tappable option tiles that open a form.
 *
 * A real `<input type="radio">` inside a `<label>` — so it is a radio group to the keyboard, to a
 * screen reader and to the form, and only its skin is custom. The dot is a border plus an inset
 * shadow rather than an SVG.
 */
.choices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.choices--stack {
  grid-template-columns: 1fr;
}

.choices--stack .choice {
  flex-direction: row;
  align-items: baseline;
  gap: 10px;
  padding-block: 16px;
}

.choices--stack .choice span {
  color: var(--ink-faint);
}

.choice {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 44px 16px 18px;
  border: 1.5px solid var(--line);
  border-radius: var(--r);
  background: var(--paper);
  cursor: pointer;
  transition:
    border-color 0.15s var(--ease),
    background-color 0.15s var(--ease);
}

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

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice b {
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.015em;
}

.choice span {
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.choice::after {
  content: '';
  position: absolute;
  top: 17px;
  right: 16px;
  width: 18px;
  height: 18px;
  border: 2px solid var(--line);
  border-radius: var(--r-pill);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}

.choice:has(input:checked) {
  border-color: var(--red);
  background: var(--red-wash);
}

.choice:has(input:checked)::after {
  border-color: var(--red);
  box-shadow: inset 0 0 0 4px var(--red);
}

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

/* --------------------------------------------------------------------------- check */

.check {
  display: flex;
  gap: 12px;
  margin-top: 20px;
  padding: 16px;
  border-radius: var(--r);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
  cursor: pointer;
}

.check input {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  accent-color: var(--red);
}

.check b {
  display: block;
  font-size: 0.95rem;
  font-weight: 650;
}

.check span {
  color: var(--ink-soft);
  font-size: 0.86rem;
}

/* ---------------------------------------------------------------------- step machinery */

.signup__foot {
  margin-top: 26px;
}

/**
 * The progress bar.
 *
 * One `<span>` per step, filled left to right. It is `aria-hidden`: "step 2 of 3" read out by a bar
 * is worse than the panel heading, which says what the step is actually asking for.
 */
.progress {
  display: flex;
  gap: 6px;
  margin-bottom: 18px;
}

.progress span {
  flex: 1;
  height: 4px;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background-color 0.3s var(--ease);
}

.progress span.is-done {
  background: var(--red);
}

.signup__actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.signup__actions .btn {
  flex: 1;
}

/* The back arrow, drawn as a rotated corner out of two borders — no icon file for one glyph. */
.btn-back {
  position: relative;
  flex: none;
  width: 52px;
  height: 52px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--paper);
  cursor: pointer;
}

.btn-back:hover {
  border-color: var(--ink);
}

.btn-back::before {
  content: '';
  position: absolute;
  inset: 0;
  margin: auto;
  width: 10px;
  height: 10px;
  border-left: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  transform: translateX(2px) rotate(45deg);
}

.form-note {
  margin-top: 14px;
  font-size: 0.9rem;
}

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

.form-note[data-tone='err'] {
  color: var(--red-deep);
  font-weight: 600;
}

/**
 * The success state replaces the fields entirely.
 *
 * `display: grid` outranks the `hidden` attribute's UA `display: none`, so the `[hidden]` rule is
 * what keeps the confirmation off the page until there is something to confirm.
 */
.signup__done {
  display: grid;
  gap: 12px;
  padding: 6px 0;
}

.signup__done[hidden] {
  display: none;
}

.signup__done h2::before {
  content: '';
  display: block;
  width: 40px;
  height: 4px;
  margin-bottom: 18px;
  border-radius: var(--r-pill);
  background: var(--red);
}

.signup__done p {
  color: var(--ink-soft);
  font-size: 0.97rem;
}

/* =========================================================================== 12. motion */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity 0.5s var(--ease),
    transform 0.5s var(--ease);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}
