/*
 * THE HOMEPAGE'S OWN LAYOUT — everything that is not a token. Colour,
 * spacing, radius and type all come from tokens.css (generated,
 * ../src/css.ts) and fonts.css (self-hosted @font-face); this file only
 * arranges them into the two-column "Letter" hero, the phone section and the questions (Figma
 * `LzwnbeJQGFQwBO8dGMAEqu`, frame 834:2004) and its phone-width stack.
 *
 * NO CLASS FRAMEWORK: hand-written, one rule per concern, mobile-first with
 * a single breakpoint at `--layout-wide-breakpoint` (800px, the same number
 * the app's own wide regime uses) below which the three columns become one.
 */

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

html {
  color-scheme: light;
}

/* MIN-HEIGHT COLUMN so a short page's footer sits at the bottom of the
   viewport instead of mid-page — `.page` (the `<main>`) is the one flexible
   item (`flex: 1 0 auto` below); `.nav` and `.footer` keep their natural
   height. `100dvh` over the plain `100vh` fallback so a mobile browser's
   chrome (address bar) doesn't leave a gap under the footer. */
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-item-title-size);
  line-height: var(--text-item-title-leading);
  -webkit-font-smoothing: antialiased;
}

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

/* EVERY LINK WEARS THE LINK TONE, the theme's primary (the app's rule, `useLinkTone`; held by
   tests/repo/tests/home-art.test.ts). The brand mark and the skip link are not links in that sense and set their own. */
a {
  color: var(--accent);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.caps {
  font-family: var(--font-mono);
  font-weight: var(--text-caps-weight);
  text-transform: uppercase;
  letter-spacing: var(--text-caps-tracking);
  font-size: var(--text-caps-size);
  line-height: var(--text-caps-leading);
  color: var(--ink-subtle);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--space-4);
  top: -48px;
  background: var(--ink);
  color: var(--ink-inverse);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-sm);
  z-index: 10;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: var(--space-4);
}

/* ── Nav ── */

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--space-8);
  border-bottom: 1px solid var(--canvas-border);
}

.nav__mark {
  font-family: var(--font-mono);
  font-weight: 500;
  letter-spacing: var(--text-caps-tracking);
  font-size: var(--text-caps-size);
  text-decoration: none;
  color: var(--ink);
}

.nav__signin {
  font-size: var(--text-meta-size);
  color: var(--accent);
  text-decoration: none;
}
.nav__signin:hover {
  text-decoration: underline;
}
.nav__signin em {
  color: var(--accent);
  font-style: normal;
}

/* ── Main layout ── */

.page {
  max-width: 1280px;
  margin: 0 auto;
  /* Flex item of `body`'s column — grows to push `.footer` to the bottom of
     a short viewport, shrinks back once content is tall enough on its own. */
  flex: 1 0 auto;
  width: 100%;
  /* MORE BREATHING ROOM UP TOP (the maintainer's note): the nav rule already
     reads as a hard edge, so the columns need real air below it, not just
     `--space-10`'s 40px — composed from two existing steps rather than a
     new literal, matching the Figma frame's own generous top margin
     (`834:2004`, Site Desktop). */
  padding: calc(var(--space-12) + var(--space-10)) var(--space-8) var(--space-12);
}

/* ── Left column: the drive out + intro + form ── */

/* THE HERO: the drive out, inline SVG drawn at build time
   (apps/home/scripts/home-art.ts) — the scene's own 340:204. */
.hero-art {
  width: 100%;
  aspect-ratio: 340 / 204;
}
.hero-art svg {
  width: 100%;
  height: auto;
  display: block;
}
.link-accent {
  color: var(--accent);
  font-weight: var(--text-meta-strong-weight);
  font-size: var(--text-meta-strong-size);
  line-height: var(--text-meta-strong-leading);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: var(--font-sans);
}
.link-accent:hover {
  text-decoration: underline;
}

.trip-form {
  padding-top: var(--space-7);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.field {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.field label {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--text-caps-tracking);
  font-size: var(--text-caps-size);
  line-height: var(--text-caps-leading);
  color: var(--ink-subtle);
}
.field input[type="text"],
.field input[type="date"] {
  font-family: var(--font-sans);
  font-weight: var(--text-input-weight);
  font-size: var(--text-input-size);
  line-height: var(--text-input-leading);
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  height: 48px;
  width: 100%;
  min-width: 0;
}
.field input::placeholder {
  color: var(--ink-faint);
}

/* THE "WHERE?" FIELD'S OWN SUGGESTION LIST — `index.html`'s script hangs
   flush under the input, its own width (the same "hangs over whatever
   follows" rule the app's own ChipField draws its suggestion list with,
   `packages/client/screens/src/components/ChipField.tsx`), over the "When?"
   row rather than pushing it down. `.where-field`'s own `position:
   relative` is what anchors it — plain CSS, no JS repositioning needed
   (unlike `.date-popover`, which is one shared instance moved between two
   fields). WITH NO JS: `#where-listbox` stays `[hidden]` and this rule
   never draws anything. */
.where-field {
  position: relative;
}
/* THE BOX the script builds around the input: the chips and the input in one wrapping
   row (the app's ChipField box — `Field`'s own 48px text box). With no script there is
   no box and `#trip-where` is the bare input above. */
.where-box {
  box-sizing: border-box;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-2) var(--space-4);
  background: var(--canvas);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-sm);
}
.where-box:hover {
  border-color: var(--ink);
}
.where-box__input {
  flex: 1 0 80px;
  min-width: 80px;
}
.where-box__input[hidden] {
  display: none;
}
.field .where-box input[type="text"] {
  display: block;
  box-sizing: border-box;
  height: 30px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  outline: none;
}
/* A CHIP: a located place is a soft square filled in the tile tone; one nobody could
   locate stays an outline, dashed (ChipField.tsx's chip). */
.where-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--soft);
  border-radius: calc((var(--text-list-title-leading) + 2 * var(--space-1)) * var(--soft-radius));
  border-radius: round(
    nearest,
    calc((var(--text-list-title-leading) + 2 * var(--space-1)) * var(--soft-radius)),
    0.1px
  );
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: var(--text-input-weight);
  font-size: var(--text-input-size);
  line-height: var(--text-input-leading);
}
.where-chip--unmatched {
  border: 1px dashed var(--ink-subtle);
  background: var(--canvas);
}
.where-chip__remove {
  position: relative;
  display: inline-flex;
  flex: none;
  width: 10px;
  height: 10px;
  padding: 0;
  border: none;
  background: none;
  color: var(--ink-subtle);
  cursor: pointer;
}
.where-chip__remove:hover {
  color: var(--ink);
}
/* The ✕'s tap area reaches 8px past the glyph, as the app's hitSlop does. */
.where-chip__remove::after {
  content: "";
  position: absolute;
  inset: -8px;
}
.where-listbox {
  position: absolute;
  z-index: 20;
  top: 100%;
  left: 0;
  right: 0;
  /* Flush under the field, the field's own width — no outer box, one closing hairline. */
  margin: 0;
  padding: 0;
  list-style: none;
  background: var(--canvas);
  border-bottom: 1px solid var(--canvas-border);
  overflow: hidden;
}
/* The app's own suggestion row (packages/client/screens/src/components/ChipField.tsx):
   a soft tile with the place kind's glyph, the name over its detail, hairlines between. */
.where-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-4);
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  cursor: pointer;
}
/* The hairline between rows is a drawn bar (the app's `InkRule`), not a border: it takes no height of its own. */
.where-option:not(:first-child)::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--rule-hairline);
  background: var(--canvas-border);
}
.where-option__tile {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--space-8);
  height: var(--space-8);
  /* A soft square: 18% of its side, rounded to a tenth as `softRadius` does. */
  border-radius: calc(var(--space-8) * var(--soft-radius));
  border-radius: round(nearest, calc(var(--space-8) * var(--soft-radius)), 0.1px);
  background: var(--soft);
  color: var(--ink);
}
.where-option__tile svg {
  width: var(--space-4);
  height: var(--space-4);
}
.where-option__text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.where-option__name {
  font-size: var(--text-row-title-size);
  line-height: var(--text-row-title-leading);
  letter-spacing: var(--text-row-title-tracking);
  font-weight: var(--text-row-title-weight);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.where-option__detail {
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-leading);
  color: var(--ink-subtle);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* The highlighted row — and the hovered one — take the tile tone; the row's tile turns paper. Never a grey block. */
.where-option[aria-selected="true"],
.where-option:hover {
  background: var(--soft);
}
.where-option[aria-selected="true"] .where-option__tile,
.where-option:hover .where-option__tile {
  background: var(--canvas);
}

.when-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.date-mode {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 600;
  font-size: var(--text-tally-size);
}
.date-mode__sep {
  color: var(--ink-faint);
}
.date-mode label {
  color: var(--ink-faint);
  text-transform: none;
  letter-spacing: 0;
  font-family: var(--font-sans);
  cursor: pointer;
}
.date-mode input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.date-mode input:checked + span {
  color: var(--ink);
  text-decoration: underline;
}
.date-mode label:has(input:checked) {
  color: var(--ink);
}

.dates-row {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.dates-row .field {
  /* A grid track's automatic min width is its content's min-content size,
     not 0 — a native <input type="date"> reports a fairly wide min-content
     (its spinner/segments resist shrinking), so without this the two
     tracks refuse to split evenly and the row overflows the form column.
     min-width: 0 lets the track (and the input inside it, which is
     width: 100% already) actually shrink to the 1fr share. */
  min-width: 0;
}

/* THE JS-ENHANCED DATE FIELD — `index.html`'s calendar script hides the
   real `<input type="date">` (kept in the DOM, still what submits `start`/
   `end`) and puts one of these buttons in its place: same box a text field
   draws (`.field input` above), just a `<button>` so it opens the popover
   below instead of the OS's own date picker. NO JS: this class is never
   applied, and the native input renders exactly as it always has — the
   progressive-enhancement rule this component exists to prove. */
.date-field {
  appearance: none;
  width: 100%;
  min-width: 0;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  font-family: var(--font-sans);
  font-size: var(--text-picker-size);
  line-height: var(--text-picker-leading);
  color: var(--ink-faint);
  text-align: left;
  background: var(--canvas);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  cursor: pointer;
}
.date-field[data-has-value="true"] {
  color: var(--ink);
}
/* Applied by the calendar script only once it has a `.date-field` button to
   show in its place — a native `<input type="date">` with no JS keeps its
   default rendering untouched. */
.date-native-hidden {
  display: none;
}
.date-field__icon {
  flex: 0 0 auto;
  color: var(--ink);
}

/* THE CALENDAR POPOVER — one shared instance, repositioned under whichever
   field opened it (`index.html`'s script). Same look as the app's own
   `MonthCalendar` (`packages/client/screens/src/components/
   MonthCalendar.tsx`): a ‹ MONTH YEAR › header (`.caps`, ink), a
   Monday-first weekday row (`.caps`, subtle), the selected day a solid ink
   block with inverse text, a day outside the viewed month or before the
   range's own floor faint and unpickable, and a day between a chosen start
   and end washed with `canvas-fill` — the "range feel" the maintainer
   asked for. SQUARE CORNERS, HAIRLINES, no shadow: a 1px border is the
   product's own way of lifting a panel off the page, same as every sheet
   in the app. GEOMETRY IS LITERAL, NOT TOKENS for the grid itself — same
   call `MonthCalendar.tsx` makes for its own row/header heights; the panel
   WIDTH reuses `--layout-panel-width` (272px) rather than inventing one. */
.date-popover {
  position: absolute;
  z-index: 20;
  width: var(--layout-panel-width);
  max-width: calc(100vw - (2 * var(--space-4)));
  background: var(--canvas);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-sm);
  padding: var(--space-3);
}
.date-popover__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}
.date-popover__nav {
  appearance: none;
  border: none;
  background: none;
  padding: var(--space-1) var(--space-2);
  margin: calc(var(--space-1) * -1) calc(var(--space-2) * -1);
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1;
  color: var(--ink-subtle);
  cursor: pointer;
}
.date-popover__nav:hover {
  color: var(--ink);
}
.date-popover__label {
  color: var(--ink);
}
.date-popover__weekdays,
.date-popover__week {
  display: flex;
}
.date-popover__weekdays {
  margin-bottom: var(--space-1);
}
.date-popover__weekday {
  flex: 1;
  text-align: center;
}
.date-popover__day {
  flex: 1;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: var(--text-picker-size);
  color: var(--ink);
  background: none;
  border: none;
  border-right: 1px solid var(--canvas-border);
  cursor: pointer;
}
.date-popover__week .date-popover__day:last-child {
  border-right: none;
}
.date-popover__day[data-outside="true"],
.date-popover__day[data-disabled="true"] {
  color: var(--ink-faint);
  cursor: default;
}
.date-popover__day[data-disabled="true"] {
  pointer-events: none;
}
.date-popover__day[data-in-range="true"] {
  background: var(--canvas-fill);
}
.date-popover__day[data-selected="true"] {
  background: var(--ink);
  color: var(--ink-inverse);
}
.date-popover__day:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* NO JS NEEDED: "Not sure yet" hides the date fields with a plain :has()
   selector — checking the #dates-unsure radio (`index.html`'s own
   date-mode fieldset) hides this form's own .dates-row. Submitting with it
   hidden still posts start=/end= (blank, untouched) alongside dates=unsure;
   the app's prefill parse (new-trip.engine.ts's parsePrefillParams) already
   drops start/end whenever dates=unsure, so a blank value here changes
   nothing either way. */
.trip-form:has(#dates-unsure:checked) .dates-row {
  display: none;
}

.primary-button {
  appearance: none;
  box-sizing: border-box;
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  /* The app's confirm tone since 917f3231: accent fill, paper label (Start planning is a Save). */
  background: var(--accent);
  color: var(--canvas);
  font-family: var(--font-sans);
  font-weight: var(--text-button-weight);
  font-size: var(--text-button-size);
  line-height: var(--text-button-leading);
  letter-spacing: var(--text-button-tracking);
  text-transform: uppercase;
  height: 46px;
  padding: 0 var(--space-3);
  cursor: pointer;
}

.form-footer {
  text-align: center;
}
.legal .placeholder {
  color: var(--ink-faint);
  font-style: italic;
  border: 1px dashed var(--canvas-border);
  padding: 0 4px;
  border-radius: 2px;
}

.faq {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}
.faq h2.caps {
  margin: 0 0 var(--space-1);
}
.faq dl {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5) var(--space-12);
}
@media (min-width: 800px) {
  .faq dl {
    grid-template-columns: 1fr 1fr;
  }
}
.faq dl > div {
  border-left: 2px solid var(--accent);
  padding-left: var(--space-3);
}
.faq dt {
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 10px;
  color: var(--ink-muted);
  margin: 0 0 var(--space-1);
}
.faq dd {
  margin: 0;
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-leading);
  color: var(--ink-subtle);
}

/* ── Footer ── */

.footer {
  border-top: 1px solid var(--canvas-border);
  background: var(--canvas-fill);
  padding: var(--space-6) var(--space-8);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
  justify-content: space-between;
  font-size: var(--text-meta-size);
  color: var(--ink-subtle);
}
.footer__links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer__links a {
  text-decoration: none;
  color: var(--accent);
}
.footer__links a:hover {
  text-decoration: underline;
}

/* ── Phone width: a 16px gutter ── */
@media (max-width: 799px) {
  .nav,
  .footer {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
  .page {
    padding: var(--space-8) var(--space-4) var(--space-12);
  }
}

/* ── The guided tour: the fold, one section per page of the app, the platforms, the trust line ── */

.fold {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}
@media (min-width: 800px) {
  .fold {
    grid-template-columns: minmax(0, 1.05fr) minmax(300px, 400px);
    gap: calc(var(--space-12) + var(--space-8));
  }
}
.fold__intro {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.fold__intro .hero-art {
  max-width: 420px;
}
.fold__title {
  margin: 0;
  font-size: var(--text-headline-size);
  line-height: var(--text-headline-leading);
  letter-spacing: var(--text-headline-tracking);
  font-weight: 700;
  text-wrap: balance;
}
.fold__lede {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 46ch;
}
.reassure {
  margin: calc(var(--space-2) * -1) 0 0;
  text-align: center;
  font-size: var(--text-meta-size);
  line-height: var(--text-meta-leading);
  color: var(--ink-subtle);
}

.tour-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: center;
  padding-block: var(--space-10);
  border-top: 1px solid var(--canvas-border);
}
@media (min-width: 800px) {
  .tour-row {
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--space-12) + var(--space-8));
  }
  .tour-row:nth-of-type(even) .tour-row__shot {
    order: -1;
  }
}
.fold {
  margin-bottom: var(--space-12);
}
.tour-row__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.tour-row__title,
.section-title {
  margin: 0;
  font-size: var(--text-head-title-size);
  line-height: var(--text-head-title-leading);
  letter-spacing: var(--text-head-title-tracking);
  font-weight: 700;
  text-wrap: balance;
}
.tour-row__body {
  margin: 0;
  color: var(--ink-secondary);
  max-width: 44ch;
}
.tour-row__shot {
  display: flex;
  justify-content: center;
}
.tour-row__shot .device {
  width: 240px;
}

/* DEVICE FRAMES — plain CSS around the real captures, no logos. */
.device {
  margin: 0;
  background: var(--ink);
  border: 5px solid var(--ink);
  border-radius: 34px;
  overflow: hidden;
  position: relative;
}
.device img {
  width: 100%;
  height: auto;
}
.device--iphone::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 28%;
  height: 7px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--ink);
}
.device--android {
  border-radius: 24px;
}
.device--android::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 50%;
  width: 7px;
  height: 7px;
  transform: translateX(-50%);
  border-radius: var(--radius-full);
  background: var(--ink);
}
.browser {
  margin: 0;
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--canvas);
}
.browser__bar {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 8px 12px;
  background: var(--canvas-wash);
  border-bottom: 1px solid var(--canvas-border);
}
.browser__bar i {
  width: 9px;
  height: 9px;
  border-radius: var(--radius-full);
  background: var(--canvas-border);
}
.browser img {
  width: 100%;
  height: auto;
}

.everywhere {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
  margin-top: var(--space-12);
  padding: var(--space-10) var(--space-6);
  background: var(--canvas-fill);
  border: 1px solid var(--canvas-border);
  border-radius: var(--radius-lg);
}
@media (min-width: 800px) {
  .everywhere {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    padding: var(--space-12);
    gap: var(--space-12);
  }
}
.everywhere__copy {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: flex-start;
}
.everywhere__copy p {
  margin: 0;
  color: var(--ink-secondary);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}
/* TEXT BUTTONS, not store artwork: the official badges are added before launch. Until a store address is set they are
   not links at all (no href) and say so. */
.badge {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 150px;
  height: 50px;
  padding: 0 var(--space-4);
  border: 1.5px solid var(--accent);
  border-radius: var(--radius-control);
  color: var(--accent);
  text-decoration: none;
  line-height: 1.2;
}
.badge b {
  font-weight: 600;
}
.badge small {
  font-size: var(--text-meta-size);
  color: var(--ink-subtle);
}
a.badge[href]:hover {
  background: var(--accent);
  color: var(--white);
}
a.badge[href]:hover small {
  color: var(--white);
}
.devices {
  display: grid;
  grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: var(--space-3);
  align-items: end;
}
.devices figure {
  margin: 0;
  display: grid;
  gap: var(--space-2);
}
.devices .device {
  border-width: 3px;
  border-radius: 14px;
}
.devices .device--android {
  border-radius: 12px;
}
.devices .caps {
  text-align: center;
}
@media (max-width: 799px) {
  .devices {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.7fr) minmax(0, 0.7fr);
  }
}

.trust {
  margin-top: var(--space-12);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  align-items: center;
  text-align: center;
}
.trust__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2) var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--ink);
}
.trust p {
  margin: 0;
  color: var(--ink-secondary);
}

.closer {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--canvas-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: center;
  text-align: center;
}
.closer .hero-art {
  max-width: 260px;
}
.closer .primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  min-width: 240px;
}

.faq-section {
  border-top: 1px solid var(--canvas-border);
  margin-top: var(--space-12);
  padding-top: var(--space-12);
}

/* On a phone the picture and headline stay modest so the form's button sits in the first screen. */
@media (max-width: 799px) {
  .fold {
    gap: var(--space-5);
  }
  .fold__intro .hero-art {
    max-width: 250px;
  }
  .fold__title {
    font-size: 30px;
    line-height: 34px;
  }
  .trip-form {
    padding-top: 0;
  }
}
