/* Blind Tiger Glassware Design System v1 — intake PWA.
   Seven colour tokens, two families, nothing else. */
:root {
  --btg-black:      #000000;
  --btg-midnight:   #0F0A04;
  --btg-charcoal:   #1C1713;
  --btg-cream:      #F5F0E8;
  --btg-warm-grey:  #A89E8C;
  --btg-tan:        #B8956A;
  --btg-crimson:    #8B1A1A;

  --btg-serif: "Libre Baskerville", Georgia, serif;
  --btg-sans:  "Libre Franklin", -apple-system, sans-serif;
  --btg-track-heading: .075em;
  --btg-track-eyebrow: .12em;
  --btg-track-card:    .05em;
  --btg-track-button:  .06em;

  --btg-ease-snap:  cubic-bezier(0.22, 1, 0.36, 1);
  --btg-ease-out:   cubic-bezier(0.4, 0, 1, 1);
  --btg-dur-fast:   140ms;
  --btg-dur-base:   260ms;
  --btg-dur-reveal: 420ms;
}

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

/* Without this the UA paints its own light-mode chrome — scrollbar, resize grip,
   selection highlight — in colours outside the seven tokens. */
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }

::selection { background: var(--btg-tan); color: var(--btg-black); }

/* Autofill otherwise repaints the field with the UA's !important light-blue. */
input:-webkit-autofill, input:-webkit-autofill:focus, textarea:-webkit-autofill {
  -webkit-text-fill-color: var(--btg-cream);
  -webkit-box-shadow: 0 0 0 1000px var(--btg-black) inset;
  caret-color: var(--btg-cream);
}

body {
  margin: 0;
  background: var(--btg-black);
  color: var(--btg-cream);
  font: 400 15px/1.5 var(--btg-sans);
  letter-spacing: 0;
  overflow-x: hidden;
  padding-bottom: 168px;                /* fallback; app.js measures the real bar height */
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: var(--btg-serif);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--btg-track-heading);
  margin: 0;
}
/* Ceiling is the spec size; the clamp floor keeps 375px free of horizontal scroll. */
/* Uppercase has no descenders to open up the setting, so multi-line headings get
   a touch more leading than the spec's single-line figures imply. */
h1 { font-size: clamp(31px, 8.5vw, 48px); line-height: 1.16; }
h2 { font-size: clamp(25px, 7vw, 38px);   line-height: 1.18; }
h3 { font-size: clamp(20px, 5.5vw, 31px); line-height: 1.2; }
h4 { font-size: clamp(20px, 5vw, 25px);   line-height: 1.25; }
h5 { font-size: 20px; line-height: 1.3; }
h1, h2 { text-wrap: balance; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* Eyebrow. Spec sets 12px, but the STYLED gate forbids any text under 15px;
   the gate wins and the uppercase + .12em tracking still carries the device. */
.eyebrow {
  font: 500 15px/1.3 var(--btg-sans);
  text-transform: uppercase;
  letter-spacing: var(--btg-track-eyebrow);
  color: var(--btg-tan);
  margin: 0 0 12px;
}

.muted { color: var(--btg-warm-grey); }

a, .link {
  color: var(--btg-cream);
  text-decoration: none;
  border-bottom: 1px solid var(--btg-tan);
}
a:hover, .link:hover { color: var(--btg-tan); }

:focus-visible {
  outline: 2px solid var(--btg-tan);
  outline-offset: 3px;
}

/* ---------- header ---------- */
.bar {                                   /* flush: no divider */
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap;
  padding: 14px 20px calc(14px + env(safe-area-inset-top));
  background: var(--btg-black);
}
.bar-mark {
  font: 400 15px/1.2 var(--btg-serif);
  text-transform: uppercase;
  letter-spacing: var(--btg-track-card);
  color: var(--btg-cream);
}
.bar-mark span { color: var(--btg-tan); }
.bar-left { display: flex; align-items: center; gap: 12px; }

.drawer-toggle, .drawer-close {
  display: grid; place-items: center;
  width: 38px; height: 38px; flex: none;
  background: transparent; color: var(--btg-cream);
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 10px; padding: 0; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.drawer-toggle:hover, .drawer-close:hover { color: var(--btg-tan); box-shadow: inset 0 0 0 1px var(--btg-tan); }
.drawer-toggle:active, .drawer-close:active { transform: translateY(1px) scale(.99); }
.drawer-toggle svg, .drawer-close svg { width: 20px; height: 20px; display: block; }
.drawer-toggle[hidden] { display: none; }

/* ---------- left drawer ----------
   Same progress model as the bottom tracker, but with room for each step's name
   and what it covers. Midnight is the system's scrim token; charcoal its drawer
   surface. Only transform and opacity animate. */
.scrim {
  position: fixed; inset: 0; z-index: 20;
  background: var(--btg-midnight);
  opacity: 0;
  transition: opacity var(--btg-dur-base) var(--btg-ease-out);
}
.scrim[hidden] { display: none; }
.scrim.is-open { opacity: .82; transition-timing-function: var(--btg-ease-snap); }

.drawer {
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 21;
  width: min(86vw, 360px);
  background: var(--btg-charcoal);
  padding: calc(18px + env(safe-area-inset-top)) 0 24px;
  overflow-y: auto; overscroll-behavior: contain;
  transform: translateX(-100%);
  transition: transform var(--btg-dur-base) var(--btg-ease-out);
}
.drawer[hidden] { display: none; }
.drawer.is-open { transform: none; transition-timing-function: var(--btg-ease-snap); }
.drawer:focus { outline: none; }

.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 0 20px;
}
.drawer-head .eyebrow { margin: 0; }
.drawer-count { margin: 14px 20px 18px; color: var(--btg-warm-grey); }

.drawer-list { list-style: none; margin: 0; padding: 0 12px; }

.drawer-item {
  display: flex; align-items: flex-start; gap: 14px;
  width: 100%; text-align: left;
  /* A button does not inherit font or colour from body: without these the row
     computed to white (an eighth colour) and the blurb to the UA's 13.33px,
     under the 15px floor. */
  font: 400 15px/1.5 var(--btg-sans);
  color: var(--btg-cream);
  background: transparent; border: 0; border-radius: 12px;
  padding: 14px 12px; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.drawer-item:hover { transform: translateX(2px); }
.drawer-item:active { transform: translateX(1px) scale(.995); }
.drawer-item[aria-current="step"] { background: var(--btg-black); }

/* Reuse the tracker's status dot, minus its own hover motion — the row already
   moves, and two transforms fighting reads as a wobble. */
.drawer-item .node { margin-top: 1px; cursor: inherit; }
.drawer-item .node:hover, .drawer-item .node:active { transform: none; }
.drawer-text { min-width: 0; }
.drawer-title {
  display: block;
  font-size: 20px; font-weight: 500; line-height: 1.3;
  color: var(--btg-cream);
  margin: 0 0 4px;
}
.drawer-blurb { display: block; font-size: 15px; color: var(--btg-warm-grey); line-height: 1.45; margin: 0; }
.drawer-item[data-state="todo"] .drawer-title { color: var(--btg-warm-grey); }
.drawer-item[aria-current="step"] .drawer-title { color: var(--btg-tan); }
.bar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

.role { display: flex; gap: 6px; }
.role-btn {
  font: 500 15px/1 var(--btg-sans);
  text-transform: uppercase;
  letter-spacing: var(--btg-track-button);
  background: transparent;
  color: var(--btg-warm-grey);
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);   /* charcoal was invisible on black */
  border-radius: 999px; padding: 8px 14px; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.role-btn:hover { transform: translateY(-1px); }
.role-btn.is-on {
  color: var(--btg-tan);
  box-shadow: inset 0 0 0 1px var(--btg-tan);
}

.sync {
  display: flex; align-items: center; gap: 7px;
  font: 500 15px/1 var(--btg-sans);
  text-transform: uppercase;
  letter-spacing: var(--btg-track-button);
  color: var(--btg-warm-grey);
}
.sync i {                                /* state carried by the dot; crimson is fill only */
  width: 9px; height: 9px; border-radius: 999px;
  background: var(--btg-warm-grey);
  flex: none;
}
.sync[data-state="live"]  i { background: var(--btg-tan); }
.sync[data-state="live"]  span { color: var(--btg-cream); }
.sync[data-state="error"] i { background: var(--btg-crimson); }

/* ---------- step tracker ----------
   Ten steps will not fit across 375px with labels under each node, so the strip
   scrolls and only the current step is named. Every node is a real button: the
   fastest way back to an earlier answer. */
.progress { padding: 0 0 4px; }
.progress .eyebrow { margin: 3px 20px 0; text-align: center; }
/* .node[data-state="partial"] keeps the charcoal well but gains a tan edge */
.node[data-state="partial"] { background: var(--btg-charcoal); }

.steps {
  display: flex; align-items: center;
  list-style: none; margin: 0;
  padding: 2px 20px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.steps::-webkit-scrollbar { display: none; }
.steps li { display: flex; align-items: center; flex: none; }

.node {
  width: 30px; height: 30px; flex: none;
  display: grid; place-items: center;
  border-radius: 999px;
  /* Black on the charcoal bar, not charcoal on charcoal — an unstarted step has
     to be visible as a step, otherwise the strip looks like it ends at "current". */
  background: var(--btg-black);
  color: var(--btg-warm-grey);
  font: 500 15px/1 var(--btg-sans);
  letter-spacing: 0;
  border: 0; padding: 0; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.node:hover { transform: translateY(-1px); }
.node:active { transform: translateY(1px) scale(.99); }

/* started but not finished — charcoal body, tan edge */
.node[data-state="partial"] { box-shadow: inset 0 0 0 1px var(--btg-tan); color: var(--btg-tan); }
/* every question answered */
.node[data-state="done"] { background: var(--btg-tan); color: var(--btg-black); }
/* where you are now */
.node[data-state="current"] {
  background: transparent; color: var(--btg-tan);
  box-shadow: inset 0 0 0 2px var(--btg-tan);
}
.node svg { width: 15px; height: 15px; display: block; }

.link-seg {
  width: 22px; height: 2px; flex: none;
  background: var(--btg-black);
}
.link-seg[data-on="1"] { background: var(--btg-tan); }

/* ---------- layout ---------- */
main { padding: 8px 20px 32px; max-width: 720px; margin: 0 auto; }
main:focus { outline: none; }

.screen { animation: rise var(--btg-dur-reveal) var(--btg-ease-snap) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Long-form paragraphs get looser leading — light text on black haloes slightly
   and 1.5 sets tighter than it measures. */
.step-intro {
  color: var(--btg-warm-grey);
  line-height: 1.6;
  margin: 20px 0 48px;
  max-width: 56ch;
}

/* ---------- questions ----------
   The question, its hint, the field and the options were all 15px/400, so the
   single most important line on the screen was separated from its own hint by
   colour alone. The question now takes the scale's 20px step; the gap between
   question blocks is larger than any gap inside one, so blocks group visually. */
.q { margin: 0 0 48px; max-width: 62ch; }

.q-label {
  display: block;
  font-size: 20px; font-weight: 500; line-height: 1.4;
  color: var(--btg-cream);
  margin: 0 0 10px;
  text-wrap: pretty;                     /* avoids a one-word last line */
}
.q-help {
  color: var(--btg-warm-grey);
  line-height: 1.55;
  margin: 0 0 18px;
  max-width: 58ch;
}
.q .q-label + .field, .q .q-help + .field { margin-top: 18px; }

/* The system specifies underline-only for single-line inputs. Two of them sit in
   the same step as textareas (contact-page), and a bare underline beside a filled
   box reads as a broken field, so all inputs share one treatment. */
input[type="text"], textarea {
  width: 100%; display: block;
  font: 400 15px/1.5 var(--btg-sans);
  color: var(--btg-cream);
  background: var(--btg-charcoal);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 10px;
  padding: 13px 16px;
  -webkit-appearance: none;
}
input[type="text"]:focus { box-shadow: inset 0 0 0 1px var(--btg-tan); }
/* The system calls for a charcoal ring here. On a pure-black page that ring is
   1.18:1 — it fails the very intent behind the rule ("an underline-only
   multi-line box gives no visible target area"). Warm-grey delivers the intent
   at 6.7:1 and is already the system's input-rule token. */
textarea {
  min-height: 120px;
  resize: vertical;
}
textarea:focus { box-shadow: inset 0 0 0 1px var(--btg-tan); }
::placeholder { color: var(--btg-warm-grey); opacity: 1; }

.opts { display: flex; flex-wrap: wrap; gap: 10px; max-width: 62ch; }
/* A charcoal ring on a black page is 1.18:1 — invisible, so these read as loose
   text rather than as things you can tap. The control now has a real surface
   (charcoal fill), a real boundary (warm-grey ring, 6.7:1) and a full-strength
   label (cream, 15.7:1). Warm-grey was reserved for secondary text; an option a
   customer must choose from is not secondary. */
.opt {
  font: 400 15px/1.35 var(--btg-sans);
  text-align: left;
  color: var(--btg-cream);
  background: var(--btg-charcoal);
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 10px;
  padding: 13px 18px;
  cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.opt:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--btg-tan); }
.opt:active { transform: translateY(1px) scale(.99); }
/* Chosen: tan label inside a doubled tan ring — distinct from cream-on-charcoal
   at a glance without filling seven chips with saturated colour. */
.opt[aria-pressed="true"], .opt[aria-checked="true"] {
  color: var(--btg-tan);
  box-shadow: inset 0 0 0 2px var(--btg-tan);
}

/* ---------- attachments ---------- */
.attach { margin-top: 18px; max-width: 62ch; }
.attach-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.btn-attach {
  font: 500 15px/1 var(--btg-sans);
  color: var(--btg-cream);
  background: var(--btg-charcoal);
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 10px; padding: 12px 18px; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.btn-attach:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--btg-tan); }
.btn-attach:active { transform: translateY(1px) scale(.99); }
.attach-limit { color: var(--btg-warm-grey); }
.attach-note { color: var(--btg-warm-grey); margin: 10px 0 0; line-height: 1.5; }
.attach-error { color: var(--btg-cream); margin: 10px 0 0; padding-left: 14px; border-left: 3px solid var(--btg-crimson); }

.attach-progress { margin-top: 14px; }
.attach-bar { height: 2px; background: var(--btg-charcoal); }
.attach-bar i { display: block; height: 100%; width: 0%; background: var(--btg-tan); transition: width var(--btg-dur-fast) linear; }
.attach-status { color: var(--btg-warm-grey); margin: 8px 0 0; }

/* Escape hatch for anything past the 50 MB ceiling — a video, a folder of RAWs. */
.attach-link { margin-top: 12px; }
.link-toggle {
  font: 400 15px/1.4 var(--btg-sans);
  color: var(--btg-cream);
  background: transparent; border: 0; padding: 0; cursor: pointer;
  border-bottom: 1px solid var(--btg-tan);
}
.link-toggle:hover { color: var(--btg-tan); }
.link-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.link-row[hidden] { display: none; }
.link-input {
  flex: 1 1 220px; min-width: 0;
  font: 400 15px/1.5 var(--btg-sans);
  color: var(--btg-cream);
  background: var(--btg-charcoal);
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 10px; padding: 13px 16px;
  -webkit-appearance: none;
}
.link-input:focus { box-shadow: inset 0 0 0 1px var(--btg-tan); }
.attach-thumb.is-link {
  display: grid; place-items: center;
  color: var(--btg-tan); font-size: 20px;
}

.attach-list { list-style: none; margin: 14px 0 0; padding: 0; }
.attach-item {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; margin-bottom: 8px;
  background: var(--btg-charcoal); border-radius: 10px;
}
.attach-thumb {
  width: 46px; height: 46px; flex: none; border-radius: 8px;
  background: var(--btg-black) center/cover no-repeat;
  box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
}
.attach-meta { min-width: 0; flex: 1 1 auto; }
.attach-name { display: block; color: var(--btg-cream); overflow-wrap: anywhere; }
.attach-sub { display: block; color: var(--btg-warm-grey); }
.attach-remove {
  flex: none;
  font: 400 15px/1 var(--btg-sans);
  color: var(--btg-warm-grey); background: transparent;
  border: 0; box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
  border-radius: 999px; padding: 9px 14px; cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.attach-remove:hover { color: var(--btg-cream); box-shadow: inset 0 0 0 1px var(--btg-tan); }

/* consultant-only annotation */
.note { margin-top: 16px; }
.note .eyebrow { margin-bottom: 8px; }
.note textarea { min-height: 76px; }

/* Attribution is metadata. Uppercase + 500 + tracking made it louder than the
   hint text beside it; 15px is the floor, so it recedes through case and weight
   instead of size. */
.by {
  margin-top: 12px;
  font: 400 15px/1.4 var(--btg-sans);
  letter-spacing: 0;
  color: var(--btg-warm-grey);
}

/* ---------- buttons ---------- */
.btn-primary, .btn-secondary {
  font: 600 15px/1 var(--btg-sans);
  text-transform: uppercase;
  letter-spacing: var(--btg-track-button);
  border: 0; border-radius: 999px;
  padding: 14px 32px;
  cursor: pointer;
  transition: transform var(--btg-dur-fast) var(--btg-ease-snap);
}
.btn-primary { background: var(--btg-cream); color: var(--btg-midnight); }
.btn-primary:hover {
  background: var(--btg-black); color: var(--btg-cream);
  box-shadow: inset 0 0 0 1px var(--btg-cream);
}
.btn-primary:active, .btn-secondary:active { transform: translateY(1px) scale(.99); }
.btn-secondary {
  background: transparent; color: var(--btg-cream);
  box-shadow: inset 0 0 0 1px var(--btg-warm-grey);
}
.btn-secondary:hover { color: var(--btg-tan); box-shadow: inset 0 0 0 1px var(--btg-tan); }
.btn-primary[hidden], .btn-secondary[hidden] { display: none; }

.nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  padding: 4px 0 calc(8px + env(safe-area-inset-bottom));
  background: var(--btg-charcoal);
}
.nav-row {
  display: flex; gap: 12px; justify-content: space-between;
  padding: 2px 20px 0;
}
/* Slimmer nav buttons — 13px keeps the tap target at ~41px while shaving the bar. */
.nav .btn-primary, .nav .btn-secondary {
  flex: 1 1 0; padding: 13px 16px;
}

/* ---------- landing ---------- */
.welcome-body { color: var(--btg-warm-grey); line-height: 1.6; margin: 22px 0 32px; max-width: 54ch; }

/* The end goal, stated before the first question. */
.outcome {
  background: var(--btg-charcoal);
  border-radius: 14px;
  padding: 20px;
  margin: 0 0 28px;
  max-width: 54ch;
}
.outcome .eyebrow { margin-bottom: 10px; }
.outcome p:last-child { margin: 0; color: var(--btg-cream); line-height: 1.6; }

.meta {
  display: flex; flex-wrap: wrap; gap: 2px 0;
  list-style: none; margin: 0 0 36px; padding: 0;
  color: var(--btg-warm-grey);
}
.meta li { display: flex; align-items: center; }
/* The separator belongs to the item that follows it, so a wrap never strands a
   dot on its own line. */
.meta li + li::before { content: "\00B7"; padding: 0 12px; }

.topics-label { margin-bottom: 14px; }
.topics {
  list-style: none; margin: 0 0 32px; padding: 0;
  max-width: 54ch;
}
.topics li {
  display: flex; align-items: baseline; gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--btg-charcoal);
  color: var(--btg-cream);
}
.topics li:last-child { border-bottom: 0; }
.topic-n {
  color: var(--btg-tan);
  font-variant-numeric: tabular-nums;
  min-width: 1.6em; flex: none;
}

/* ---------- action plan ---------- */
.stamp {                                 /* the one sanctioned crimson fill, once */
  display: inline-block;
  background: var(--btg-crimson); color: var(--btg-cream);
  font: 400 15px/1 var(--btg-serif);
  text-transform: uppercase; letter-spacing: var(--btg-track-eyebrow);
  padding: 12px 20px; border-radius: 10px;
  margin-bottom: 24px;
}
.issue { margin: 0 0 36px; padding-bottom: 32px; border-bottom: 1px solid var(--btg-charcoal); }
.issue:last-child { border-bottom: 0; }
.issue-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.badge {
  font: 600 15px/1 var(--btg-sans);
  text-transform: uppercase; letter-spacing: var(--btg-track-button);
  border-radius: 999px; padding: 7px 14px;
  background: transparent;
}
.badge.high   { background: var(--btg-crimson); color: var(--btg-cream); }
.badge.medium { color: var(--btg-tan);       box-shadow: inset 0 0 0 1px var(--btg-tan); }
.badge.low    { color: var(--btg-warm-grey); box-shadow: inset 0 0 0 1px var(--btg-warm-grey); }

/* On the plan the ANSWER is what gets read, so it leads and the question recedes
   to a label above it. Each pair is one block, separated from the next. */
.qa { margin: 0 0 24px; max-width: 66ch; }
/* The question is the label; the answer and its attribution sit together inside
   one rule, so a pair reads as a unit and the gap falls between pairs. */
.qa dt {
  color: var(--btg-warm-grey);
  line-height: 1.5;
  margin: 24px 0 7px;
}
.qa dt:first-child { margin-top: 0; }
.qa dd {
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--btg-charcoal);
  color: var(--btg-cream);
  line-height: 1.55;
  white-space: pre-wrap;
}
.qa dd.by { padding-top: 5px; }

.notes { margin: 20px 0 0; padding-left: 16px; border-left: 1px solid var(--btg-charcoal); max-width: 66ch; }
.notes li { color: var(--btg-warm-grey); line-height: 1.55; margin-bottom: 10px; }
.notes li:last-child { margin-bottom: 0; }

.aside {
  font-style: italic; color: var(--btg-warm-grey);
  line-height: 1.6;
  border-left: 3px solid var(--btg-tan);
  padding-left: 16px; margin: 0 0 28px;
  max-width: 56ch;
}

.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 32px 0; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

@media (min-width: 700px) {
  /* Still pinned — the tracker is only useful if it is always in view — but the
     strip is centred and the buttons stop stretching edge to edge. */
  .nav { padding-bottom: 18px; }
  .nav-row, .steps { max-width: 720px; margin: 0 auto; }
  /* Actions sit right on pointer devices. On a phone the buttons stay full-width
     and thumb-reachable; a right-hugging pill is a desktop convention and a bad
     touch target. Keyed off pointer capability rather than sniffing for iOS —
     the same reasoning applies to any touch phone. */
  .nav-row { justify-content: flex-end; }
  .steps { justify-content: center; overflow-x: visible; }
  .nav .btn-primary, .nav .btn-secondary { flex: 0 0 auto; }
  .link-seg { width: 34px; }
}
