/* Postmark — see design/postmark.html for the system this implements.

   Three colour rules hold the whole thing together:
   - --teal is a printing ink, not a text colour (3.2:1 on newsprint). It draws
     the route, the pins and the picture tints, and never carries a word.
   - --teal-ink carries text and buttons (5.6:1 on newsprint, 5.9:1 on white).
   - --marigold and --blush mean "working on it" and "nothing here yet". Their
     washes are the only backgrounds they get; text on them is --ink. */

:root {
  --ground: #fbf7f0;
  --card: #ffffff;
  --ink: #26262b;
  --heading: #123c4a;

  --teal: #0e9aa0;
  --teal-ink: #0b6f73;
  --teal-wash: #e7f4f4;

  --marigold: #f2b233;
  --marigold-wash: #fbecca;

  --blush: #e98a7c;
  --blush-wash: #fbe6e2;
  --danger: #a34433;

  --rule: #e7e0d3;
  /* A field's edge is what says "type here", so unlike --rule it has to be
     seen: 3.3:1 on newsprint and 3.5:1 on a card, over WCAG's 3:1 for the
     boundary of a control. --rule stays for lines that only divide. */
  --field-rule: #8f877b;
  --muted: #6e675e;

  --radius: 4px;
  --display: Literata, Georgia, "Times New Roman", serif;
  --body: Figtree, system-ui, -apple-system, "Segoe UI", sans-serif;
  --data: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 15px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal-ink); }

main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 72px;
}

/* Header — a hairline, not a band. The colour starts further down the page. */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--rule);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font: 400 19px/1 var(--display);
  color: var(--teal-ink);
  text-decoration: none;
}
/* The 2x2 cut of the mark, which is the one drawn to hold at this size. */
.brand img { display: block; width: 28px; height: 28px; }
.site-header nav { display: flex; align-items: center; gap: 20px; }
.site-header nav a { text-decoration: none; color: var(--muted); font-size: 14px; }
.site-header nav a:hover { color: var(--ink); }
.site-header button.link { font-weight: 400; font-size: 14px; color: var(--muted); padding: 0; }
.site-header button.link:hover { color: var(--ink); }
.inline { display: inline; }

/* Typography */
h1 {
  margin: 0 0 8px;
  font: 400 32px/1.2 var(--display);
  color: var(--heading);
  letter-spacing: -.005em;
}
h2 {
  margin: 40px 0 16px;
  font: 400 11px/1 var(--data);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.subtitle { color: var(--muted); margin: 0 0 28px; font-size: 14px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow {
  margin: 0 0 8px;
  font: 400 11px/1 var(--data);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow a { text-decoration: none; }

/* Buttons — solid teal ink for the one action that matters on a screen,
   outline for the rest, text-only for retreat. */
button, .button {
  font: 600 13.5px/1.4 var(--body);
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--teal-ink);
  padding: 9px 18px;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button:hover, .button:hover { border-color: var(--teal-ink); }
.button.primary, button.primary {
  background: var(--teal-ink);
  border-color: var(--teal-ink);
  color: #fff;
}
.button.primary:hover, button.primary:hover { background: #095457; border-color: #095457; }
button.link {
  border: none;
  background: none;
  color: var(--teal-ink);
  font-weight: 400;
  padding: 9px 2px;
}
button.danger, .button.danger { color: var(--danger); }
button.danger:hover { border-color: var(--danger); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Cards & forms — filled surfaces are rare, so they mean something. */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 22px 24px;
  margin-bottom: 20px;
}
.card h2 { margin-top: 0; }
.card-title {
  margin: 0 0 6px;
  font: 500 18px/1.3 var(--display);
  color: var(--heading);
}
form p { margin: 0 0 16px; }
label { display: block; font-weight: 600; font-size: 12.5px; margin-bottom: 5px; }
input[type=text], input[type=date], input[type=email],
input[type=password], select, textarea {
  font: inherit;
  font-size: 14px;
  width: 100%;
  max-width: 420px;
  padding: 9px 12px;
  border: 1px solid var(--field-rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
}
/* The edge turns teal, and the 2px :focus-visible ring above stays on: a
   1px colour change on its own is too slight to find the cursor by. */
input:focus, select:focus, textarea:focus { border-color: var(--teal); }
ul.errorlist { color: var(--danger); font-size: 13px; padding-left: 18px; margin: 4px 0; }
.helptext { display: block; color: var(--muted); font-size: 12.5px; margin-top: 5px; }
form ul { list-style: none; padding: 0; }
form ul label { font-weight: 400; }

/* The stop form: where, optionally when, and go, on one line — a route is
   typed in one stop after another. On a phone the place takes the whole
   line and the date and button wrap beneath it. */
.stop-form-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.stop-form-place { flex: 1 1 240px; min-width: 0; }
.stop-form-place input { max-width: none; }
.stop-form-date input { width: auto; }
/* As tall as the inputs it sits beside. */
.stop-form-row button { min-height: 41px; }
.stop-form .helptext { margin-top: 8px; }

/* Messages */
.messages { list-style: none; padding: 0; margin: 0 0 24px; }
.message {
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--teal-wash);
  font-size: 14px;
  margin-bottom: 8px;
}
.message.success { background: var(--teal-wash); color: var(--teal-ink); }
.message.error { background: var(--blush-wash); color: var(--danger); }
.undo-swap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 20px; }
.undo-swap button.link { padding: 0; font-weight: 600; text-decoration: underline; }

/* Lists — hairlines instead of boxes. */
.stack { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--rule); }
.row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 2px;
  border-bottom: 1px solid var(--rule);
}
.row-main { min-width: 0; }
.row-title { font: 400 17px/1.3 var(--display); color: var(--heading); }
.row-title a { text-decoration: none; }
.row-title a:hover { text-decoration: underline; }

/* Trip cards — the trips overview. Each card is a trip: when it starts, its
   name, and its stops in travel order, with the kids along at the foot. The
   whole card is the link, through the title's stretched hit area. */
.trip-cards {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;
}
h2 + .trip-cards { margin-top: 0; }
.trip-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: 5px;
  padding: 18px 20px 12px;
  transition: border-color .15s;
}
.trip-card:hover { border-color: var(--teal-ink); border-top-color: var(--teal); }
.trip-card .eyebrow { font-variant-numeric: tabular-nums; }
.trip-card-title {
  margin: 0 0 8px;
  font: 400 20px/1.3 var(--display);
  letter-spacing: 0;
  text-transform: none;
  color: var(--heading);
}
.trip-card-title a { color: inherit; text-decoration: none; }
.trip-card-title a::after { content: ""; position: absolute; inset: 0; }
.trip-card-title a:focus-visible { outline: none; }
.trip-card:has(.trip-card-title a:focus-visible) { outline: 2px solid var(--teal); outline-offset: 2px; }
.trip-card-route { margin: 0 0 14px; font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.trip-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--rule);
}
.trip-card-foot .small { min-width: 0; overflow-wrap: anywhere; }
/* Above the stretched link, so deleting doesn't open the trip. */
.trip-card-foot form { position: relative; z-index: 1; }
.trip-card-foot button.link { padding: 4px 2px; font-size: 13px; }

/* The route — every stop is a pin on one line, in the order they'll travel. */
.route {
  list-style: none;
  margin: 0;
  padding: 0 0 0 30px;
  position: relative;
}
.stop {
  --pin: var(--teal);
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 14px;
  padding: 16px 2px 18px;
  border-bottom: 1px solid var(--rule);
}
.stop:last-child { border-bottom: 0; }
/* Each stop draws its own length of the line, so the route changes colour
   exactly where the trip stops being finished. */
.stop::after {
  content: "";
  position: absolute;
  left: -25px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pin);
}
.stop:first-child::after { top: 24px; }
.stop:last-child::after { bottom: calc(100% - 24px); }
.stop::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 18px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ground);
  box-shadow: inset 0 0 0 3px var(--pin);
  z-index: 1;
}
.stop.is-done { --pin: var(--teal); }
.stop.is-done::before {
  background: var(--teal);
  box-shadow: inset 0 0 0 2px var(--ground), 0 0 0 2px var(--teal);
}
.stop.is-work { --pin: var(--marigold); }
.stop.is-idle { --pin: var(--blush); }
.stop.is-bad { --pin: var(--danger); }

.stop-main { flex: 1; min-width: 0; }
.stop-name { font: 400 18px/1.3 var(--display); color: var(--heading); }
.stop-name a { text-decoration: none; color: inherit; }
.stop-name a:hover { text-decoration: underline; }
.stop-end {
  flex: none;
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 14px;
}
.stop-date {
  font: 400 12px/1 var(--data);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  min-width: 44px;
  text-align: right;
}
/* Fixed width so the states line up down the route however long their words. */
.stop-state { display: flex; justify-content: flex-end; min-width: 96px; }
.stop-name .drag-handle { font-size: 13px; vertical-align: 2px; }
.stop-tools { display: flex; align-items: baseline; gap: 12px; font-size: 12.5px; }
.stop-tools a, .stop-tools button.link { color: var(--muted); font-size: 12.5px; font-weight: 400; padding: 0; text-decoration: none; }
.stop-tools a:hover { color: var(--teal-ink); text-decoration: underline; }
.stop-tools button.danger:hover { color: var(--danger); }
/* The arrows are small glyphs, so pad them out to something a thumb can hit. */
.stop-move { display: inline-flex; gap: 2px; }
.stop-tools .stop-move button.link { padding: 2px 6px; font-size: 14px; }
.stop-tools .stop-move button.link:hover { color: var(--teal-ink); }
.stop-tools .stop-move button:disabled { opacity: .3; cursor: default; }
.route-error { color: var(--danger); margin: 8px 0 16px; }

/* Badges — washes only, so --ink sits on them at 6:1 or better. */
.badge {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--marigold-wash);
  color: var(--ink);
}
.badge.ok { background: var(--teal-wash); color: var(--teal-ink); }
.badge.bad { background: var(--blush-wash); color: var(--danger); }
.badge.neutral { background: var(--blush-wash); color: var(--ink); }
.badge.quiet { background: none; box-shadow: inset 0 0 0 1px var(--rule); color: var(--muted); }

/* Progress indicators */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  border: 2px solid var(--teal-wash);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }

.loading-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: var(--radius);
  background: var(--marigold-wash);
  color: var(--ink);
  font-size: 14px;
}
.loading-banner .spinner { border-color: rgba(242, 178, 51, .45); border-top-color: #b07d12; }
.loading-banner[hidden] { display: none; }
/* The banner outlives the spinner when the page stops watching a slow job. */
.spinner[hidden] { display: none; }

/* Shown beside "Download PDF" while the sheets are being drawn. */
.pdf-progress { display: inline-flex; align-items: center; gap: 8px; }
.pdf-progress[hidden] { display: none; }
button:disabled, button:disabled:hover { opacity: .6; cursor: progress; }
button.primary:disabled:hover { background: var(--teal-ink); border-color: var(--teal-ink); }

/* Drag & drop reordering */
.draggable { cursor: grab; }
.draggable.dragging { opacity: 0.45; }
.drag-handle { color: var(--muted); cursor: grab; user-select: none; padding-right: 6px; }

/* Bingo grid */
.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 20px 0 28px;
}
.cell {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 5px;
  padding: 9px 9px 11px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 210px;
}
.cell.empty { background: none; border-style: dashed; }
.cell-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-wash);
  border-radius: 3px;
  overflow: hidden;
}
.cell.empty .cell-image { background: var(--blush-wash); }
/* A cell waiting on its replacement is working, not empty: it keeps the card
   and the solid rule a filled cell has, and wears marigold rather than the
   empty cell's blush (see the colour rules at the top). */
.cell.pending {
  background: var(--card);
  border-style: solid;
  border-color: var(--marigold);
}
.cell.pending .cell-image {
  background: var(--marigold-wash);
  animation: pulse 1.6s ease-in-out infinite;
}
.cell.pending .spinner { border-color: rgba(242, 178, 51, .45); border-top-color: #b07d12; }
@keyframes pulse { 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) { .cell.pending .cell-image { animation: none; } }
.cell-image img { width: 100%; height: 100%; object-fit: contain; }
.cell-image .placeholder { font-size: 11.5px; color: var(--muted); text-align: center; padding: 8px; }
.cell-foot { display: flex; align-items: baseline; gap: 7px; margin-top: auto; }
/* The number is the same on screen and on paper, so "I got number seven"
   works from the back seat. */
.cell-number { font: 400 10px/1.4 var(--data); color: var(--muted); flex: none; }
.cell-label { font-size: 12.5px; font-weight: 500; line-height: 1.35; min-width: 0; flex: 1; }
/* Sixteen bordered buttons would out-shout sixteen pictures, so the per-cell
   action is text only until you hover it. */
.cell-actions { display: flex; gap: 6px; }
.cell-actions button {
  padding: 2px 0;
  font-size: 11.5px;
  font-weight: 400;
  border: none;
  background: none;
  color: var(--muted);
}
.cell-actions button:hover { color: var(--teal-ink); text-decoration: underline; }
.cell input[type=text] { font-size: 12.5px; padding: 5px 8px; }

/* Click-to-edit labels. Without JS both the label and its form are shown; the
   `js` class collapses the form away until the label is clicked. */
.label-text {
  display: block;
  padding: 3px 5px;
  margin: -3px -5px;
  border-radius: 3px;
  cursor: text;
}
.label-text:hover, .label-text:focus-visible { background: var(--teal-wash); }
.empty-label { color: var(--muted); font-weight: 400; font-style: italic; }
.js .label-edit { display: none; }
.js .cell-label.editing .label-text { display: none; }
.js .cell-label.editing .label-edit { display: block; }
/* The same for the stop's name and date at the top of its sheet. */
.js .sheet-name.editing h1, .js .sheet-date.editing .label-text { display: none; }
.js .sheet-name.editing .label-edit { display: block; margin: 0 0 8px; }
.js .sheet-date.editing .label-edit { display: inline-block; }
.sheet-name h1 .label-text { display: inline-block; max-width: 100%; }
.sheet-name input[type=text] { font: 400 32px/1.2 var(--display); color: var(--heading); padding: 0 6px; }
.sheet-date .label-text { display: inline; margin: 0; padding: 2px 4px; }
.sheet-date input[type=date] { font-size: 14px; padding: 3px 6px; width: auto; }

/* Between a trip's sheets: the route as a row of stops, or — on a phone, or
   when the route is too long for one row — a step to either neighbour. */
.stop-nav { margin: -12px 0 28px; font-size: 13.5px; }
.stop-nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 0;
}
.stop-nav-list li { display: flex; align-items: baseline; }
.stop-nav-list li + li::before { content: "→"; color: var(--rule); margin: 0 10px; }
.stop-nav-list a { color: var(--muted); text-decoration: none; }
.stop-nav-list a:hover { color: var(--teal-ink); text-decoration: underline; }
.stop-nav-list [aria-current] { color: var(--heading); font-weight: 600; }
.stop-nav-step {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: baseline;
  gap: 12px;
}
.stop-nav-step a { text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
.stop-nav-step a:hover { text-decoration: underline; }
.stop-nav-next { text-align: right; }
.stop-nav-count { font: 400 12px/1 var(--data); color: var(--muted); font-variant-numeric: tabular-nums; }
.stop-nav.has-list .stop-nav-step { display: none; }

@media (max-width: 720px) {
  main { padding: 28px 18px 56px; }
  h1 { font-size: 28px; }

  /* A phone is held further from a smaller screen than its pixels suggest:
     every size steps up here, and nothing a sentence is set in drops below
     14px. Inputs go to 16px, under which iOS zooms the page on focus. */
  body { font-size: 17px; }
  .site-header { padding: 16px 18px; }
  .brand { font-size: 21px; }
  .site-header nav a, .site-header button.link { font-size: 16px; }
  h2, .eyebrow { font-size: 12.5px; }
  .subtitle { font-size: 16px; }
  .small { font-size: 15px; }
  button, .button { font-size: 15.5px; padding: 11px 20px; }
  label { font-size: 14.5px; }
  input[type=text], input[type=date], input[type=email],
  input[type=password], select, textarea { font-size: 16px; }
  .stop-form-row button { min-height: 45px; }
  ul.errorlist, .helptext { font-size: 14.5px; }
  .message, .loading-banner { font-size: 16px; }
  .row-title { font-size: 19px; }
  .stop-name { font-size: 20px; }
  .stop-date, .stop-nav-count { font-size: 14px; }
  .stop-tools, .stop-tools a, .stop-tools button.link { font-size: 14.5px; }
  .stop-tools .stop-move button.link { font-size: 17px; padding: 4px 10px; }
  .badge { font-size: 13px; }
  .cell-number { font-size: 12px; }
  .cell-label, .cell input[type=text] { font-size: 14.5px; }
  .cell-image .placeholder, .cell-actions button { font-size: 13px; }
  .sheet-name input[type=text] { font-size: 28px; }
  .sheet-date input[type=date] { font-size: 16px; }
  .stop-nav { font-size: 15.5px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .row { flex-direction: column; align-items: flex-start; }
  .stop { flex-wrap: wrap; }
  .stop-main { flex: 1 1 100%; }
  /* Date, state, move arrows and tools outgrow a phone's width, so they
     wrap rather than push Remove off the screen. */
  .stop-end { width: auto; margin-top: 8px; flex-wrap: wrap; justify-content: flex-start; row-gap: 6px; }
  .stop-state { min-width: 0; }
  .stop-nav.has-list .stop-nav-list { display: none; }
  .stop-nav.has-list .stop-nav-step { display: grid; }
}

/* Phones and tablets zoom the page in when a field smaller than 16px gets
   focus, then leave it zoomed. Typing at 16px keeps the view still. */
@media (pointer: coarse) {
  input[type=text], input[type=date], input[type=email],
  input[type=password], input[type=number], input[type=search],
  input[type=url], input[type=tel], select, textarea,
  .cell input[type=text], .sheet-date input[type=date] { font-size: 16px; }
  .stop-form-row button { min-height: 44px; }
}

/* Landing — the front door for visitors (specs/domain.md "The landing page").
   Wider than the app's pages: a hero beside the flashing pairs, then the four
   reasons, how it works, and the box again at the foot. */
main.landing { max-width: 1080px; padding-top: 56px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.landing-hero h1 { font-size: 44px; line-height: 1.12; margin-bottom: 18px; }
.landing-lead { font-size: 17px; margin: 0 0 28px; max-width: 34em; }

.landing-cta { margin: 0; }
.landing-cta-row { display: flex; flex-wrap: wrap; gap: 10px; }
.landing-cta input[type=email] { flex: 1 1 220px; max-width: none; min-height: 44px; }
.landing-cta button { min-height: 44px; }
.landing-cta .helptext { margin-top: 8px; }

/* The flashing pairs: a city stamped on the left, one bingo cell on the right,
   the cards stacked in one grid area so they cross-fade in place. */
.flash {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: 5px;
  padding: 22px 24px 16px;
}
.flash-deck { list-style: none; margin: 0; padding: 0; display: grid; }
.flash-card {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s .45s;
}
.flash-card.is-current {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .45s ease, transform .45s ease, visibility 0s;
}
.flash-place {
  font: 400 36px/1.1 var(--display);
  color: var(--heading);
  overflow-wrap: anywhere;
}
.flash-cell {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 9px 9px 11px;
  border: 1px solid var(--rule);
  border-radius: 5px;
  background: var(--card);
}
.flash-image {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-wash);
  border-radius: 3px;
}
.flash-image img { width: 78%; height: auto; }
.flash-foot { display: flex; align-items: baseline; gap: 7px; }
.flash-thing { font-size: 13px; font-weight: 500; line-height: 1.35; }
.flash-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  min-height: 24px;
}
.flash-dots { display: flex; gap: 6px; }
.flash-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--rule); transition: background .3s; }
.flash-dot.is-current { background: var(--teal); }
.flash-toggle { font-size: 12.5px; color: var(--muted); padding: 2px; }
.flash-toggle[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .flash-card, .flash-card.is-current { transition: none; transform: none; }
}

.landing-photo { margin: 64px 0 0; }
.landing-photo img {
  display: block;
  width: 100%;
  aspect-ratio: 21 / 9;
  object-fit: cover;
  border-radius: 5px;
}

.landing-values h2, .landing-how h2 { margin-top: 72px; }
.values, .how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.how-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.value, .how-steps li { border-top: 1px solid var(--rule); padding-top: 18px; }
.value h3, .how-steps h3 {
  margin: 0 0 8px;
  font: 500 19px/1.3 var(--display);
  color: var(--heading);
}
.value p, .how-steps p { margin: 0; color: var(--ink); font-size: 14.5px; }
.value-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  fill: none;
  stroke: var(--teal);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.how-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--teal-wash);
  font: 400 13px/1 var(--data);
  color: var(--teal-ink);
}

.landing-final { margin: 72px auto 0; max-width: 640px; padding: 30px 32px; }
.landing-final .card-title { font-size: 26px; letter-spacing: 0; text-transform: none; }
.landing-final > p { margin: 0 0 20px; }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .values { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  main.landing { padding-top: 32px; }
  .landing-hero h1 { font-size: 34px; }
  .landing-lead { font-size: 18px; }
  .flash { padding: 18px 16px 12px; }
  .flash-place { font-size: 30px; }
  .flash-thing { font-size: 14.5px; }
  .flash-toggle { font-size: 14.5px; }
  .values, .how-steps { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .value p, .how-steps p { font-size: 17px; }
  .landing-values h2, .landing-how h2 { margin-top: 56px; }
  .landing-final { margin-top: 56px; padding: 24px 18px; }
  .landing-photo { margin-top: 48px; }
  .landing-photo img { aspect-ratio: 4 / 3; }
}
