/* Privacy Sweep
   Tokens first, then layout top to bottom, then motion and breakpoints. */

/* Bricolage Grotesque, variable in weight and optical size. Latin subset, SIL Open Font License. */
@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("/assets/fonts/bricolage-grotesque-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light dark;

  --font-display: "Bricolage Grotesque", "Segoe UI Variable Display", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-text: "Segoe UI Variable Text", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;

  --paper: #f1f3e9;
  --surface: #fffffb;
  --surface-sunk: #f6f8f0;
  --surface-tint: #e8f0e1;
  --hover: #e9eee1;

  --ink: #10261f;
  --muted: #55675d;
  --faint: #7d8c82;

  --line: #dde2d5;
  --line-strong: #c4cdbd;

  --evergreen: #0a3128;
  --lime: #dff478;
  --lime-hover: #d4ee5e;
  --lime-ink: #1b2f14;
  --lime-edge: #b4cf47;
  --next: #dff478;

  --primary: #0a3128;
  --primary-hover: #15493a;
  --primary-ink: #f6f9ec;

  --track: #dfe4d7;
  --fill: #0a3128;

  --moss: #2a6446;
  --moss-tint: #e0edd9;
  --sent: #1b2f14;
  --sent-tint: #dff478;
  --amber: #7d500c;
  --amber-tint: #f6ebcd;
  --listed: #8f3418;
  --listed-tint: #f8e3d9;
  --danger: #a23a1f;
  --danger-hover: #89301a;

  --focus: #1f6a47;

  --shadow-xs: 0 1px 2px rgb(16 38 31 / .07);
  --shadow-card: 0 1px 1px rgb(16 38 31 / .03), 0 3px 6px rgb(16 38 31 / .03), 0 14px 28px -10px rgb(16 38 31 / .09), 0 36px 56px -28px rgb(16 38 31 / .12);
  --shadow-pop: 0 2px 4px rgb(16 38 31 / .05), 0 14px 28px -8px rgb(16 38 31 / .16);
  --shadow-dialog: 0 4px 8px rgb(6 23 18 / .08), 0 32px 64px -16px rgb(6 23 18 / .38);

  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 48px;
  --header: 64px;

  font-family: var(--font-text);
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #061712;
    --surface: #0c241d;
    --surface-sunk: #0a1f19;
    --surface-tint: #143429;
    --hover: #112c23;

    --ink: #edf3e4;
    --muted: #a5b6a9;
    --faint: #788b7f;

    --line: #1a382e;
    --line-strong: #2a5143;

    --primary: #edf3e4;
    --primary-hover: #ffffff;
    --primary-ink: #0a3128;

    --track: #17342b;
    --fill: #dff478;
    --lime-edge: #7f9238;
    --next: #2f3f1a;

    --moss: #93d3a3;
    --moss-tint: #153b2c;
    --sent: #dff478;
    --sent-tint: #2a3d16;
    --amber: #ecc67c;
    --amber-tint: #3a2e13;
    --listed: #f0a48d;
    --listed-tint: #44221a;
    --danger: #c9492b;
    --danger-hover: #dc5636;

    --focus: #dff478;

    --shadow-xs: 0 1px 2px rgb(0 0 0 / .3);
    --shadow-card: 0 1px 1px rgb(0 0 0 / .2), 0 14px 28px -10px rgb(0 0 0 / .4), 0 36px 56px -28px rgb(0 0 0 / .5);
    --shadow-pop: 0 2px 4px rgb(0 0 0 / .25), 0 14px 28px -8px rgb(0 0 0 / .5);
    --shadow-dialog: 0 4px 8px rgb(0 0 0 / .3), 0 32px 64px -16px rgb(0 0 0 / .7);
  }
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; min-height: 100dvh; font-size: 1rem; line-height: 1.55; }
p, h1, h2, h3 { margin: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: default; }
button:focus-visible, a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
[tabindex="-1"]:focus { outline: none; }
::selection { background: var(--lime); color: var(--lime-ink); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.icon { flex: none; display: block; width: 18px; height: 18px; }
.frame { width: min(1160px, calc(100% - 2 * var(--gutter))); margin-inline: auto; }

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(16px);
  backdrop-filter: saturate(1.5) blur(16px);
}
.header-inner {
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font: 700 1.25rem/1 var(--font-display);
  letter-spacing: -.015em;
  white-space: nowrap;
}
.brand img { display: block; border-radius: 10px; box-shadow: 0 1px 2px rgb(6 23 18 / .25), 0 0 0 1px rgb(223 244 120 / .12); }
.local-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 13px 6px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}
.status-dot { position: relative; flex: none; width: 8px; height: 8px; border-radius: 50%; background: #4c9a63; }
.status-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: inherit; opacity: 0; }
.local-status.saved .status-dot::after { animation: ping .9s var(--ease); }
.storage-unavailable { color: var(--amber); border-color: var(--amber-tint); background: var(--amber-tint); }
.storage-unavailable .status-dot { background: currentColor; }

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  align-items: center;
  min-height: 320px;
  margin-top: 24px;
  border-radius: 28px;
  background: #0a3128;
  color: #f6f9ec;
  box-shadow: inset 0 0 0 1px rgb(223 244 120 / .08), 0 1px 2px rgb(6 23 18 / .2), 0 28px 48px -30px rgb(6 23 18 / .6);
}
/* Halftone field in the lower left corner, echoing the print texture of the shield. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at center, rgb(223 244 120 / .2) 1px, transparent 1.5px);
  background-size: 9px 9px;
  -webkit-mask-image: radial-gradient(110% 95% at 0% 100%, #000 0, transparent 58%);
  mask-image: radial-gradient(110% 95% at 0% 100%, #000 0, transparent 58%);
}
.hero-visual {
  position: absolute;
  z-index: -1;
  right: 3%;
  top: 50%;
  width: min(45%, 540px);
  aspect-ratio: 3 / 2;
  transform: translateY(-50%);
  user-select: none;
  pointer-events: none;
}
.hero-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse 62% 66% at center, #000 56%, transparent 80%);
  mask-image: radial-gradient(ellipse 62% 66% at center, #000 56%, transparent 80%);
  animation: art-in 1.1s var(--ease) backwards;
}
/* A radar pass over the shield. Runs once on load and once for each recorded step. */
.hero-sweep {
  position: absolute;
  left: 50%;
  top: 49.5%;
  width: 66%;
  aspect-ratio: 1;
  margin: -33% 0 0 -33%;
  border-radius: 50%;
  opacity: 0;
  background: conic-gradient(from 0deg, rgb(223 244 120 / 0) 0deg, rgb(223 244 120 / 0) 210deg, rgb(223 244 120 / .07) 290deg, rgb(223 244 120 / .2) 340deg, rgb(223 244 120 / .5) 359.5deg, rgb(223 244 120 / 0) 360deg);
  -webkit-mask-image: radial-gradient(circle closest-side, transparent 7%, #000 8%, #000 95%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, transparent 7%, #000 8%, #000 95%, transparent 100%);
  mix-blend-mode: screen;
}
.hero-sweep.run { animation: sweep 2.6s cubic-bezier(.45, .1, .25, 1) both; }
.hero-content { position: relative; max-width: 660px; padding: 48px 52px; }
.hero h1 {
  font: 700 clamp(2.625rem, 1.1rem + 4.8vw, 4.5rem)/1 var(--font-display);
  letter-spacing: -.028em;
  animation: rise .8s var(--ease) backwards;
}
.hero h1 span { color: var(--lime); }
.hero-description {
  max-width: 32ch;
  margin-top: 20px;
  color: #cfdfcd;
  font-size: 1.0625rem;
  line-height: 1.55;
  text-wrap: balance;
  animation: rise .8s .1s var(--ease) backwards;
}

/* Progress */

.progress { margin: 30px 0 26px; animation: rise .7s .16s var(--ease) backwards; }
.progress-heading, .route-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.progress-heading { margin-bottom: 12px; }
.progress-heading h2, .route-heading h2 { font: 650 .9375rem/1.4 var(--font-text); letter-spacing: -.005em; }
.progress-count { color: var(--muted); font-size: .8125rem; font-variant-numeric: tabular-nums; }
.progress-count strong { display: inline-block; color: var(--ink); font-size: .9375rem; font-weight: 700; }
.progress-count strong.bump { animation: bump .5s var(--ease); }
.progress-track { display: flex; gap: 6px; }
.segment { position: relative; flex: 1; height: 8px; overflow: hidden; border-radius: 99px; background: var(--track); }
.segment.filled::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--fill);
  transform-origin: left center;
}
.segment.fresh::after { animation: fill .6s var(--ease) both; }
.segment.next { background: var(--next); box-shadow: inset 0 0 0 1px var(--lime-edge); }

/* Workspace */

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: start;
  gap: 28px;
  animation: rise .7s .22s var(--ease) backwards;
}

/* Step card */

.step {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.noscript { padding: 32px 36px; }
.step-heading { padding: 32px 36px 0; }
.step-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 14px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--moss);
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
}
.step-count { color: var(--muted); font-size: .8125rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step-heading h2 {
  /* Leaves the top of the card clear of the sticky header when a step scrolls into view. */
  scroll-margin: calc(var(--header) + 92px) 0 160px;
  font: 700 clamp(1.875rem, 1.2rem + 2.1vw, 2.625rem)/1.08 var(--font-display);
  letter-spacing: -.022em;
  overflow-wrap: anywhere;
}
.step-description { max-width: 58ch; margin-top: 12px; color: var(--muted); line-height: 1.6; text-wrap: pretty; }
.step-body { padding: 26px 36px 32px; }
.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 36px;
  border-top: 1px solid var(--line);
  background: var(--surface-sunk);
}
.step-footer > :last-child { margin-left: auto; }

/* The main link out to a site */

.launch {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 13px 16px 13px 13px;
  border-radius: 18px;
  background: var(--lime);
  color: var(--lime-ink);
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 0 0 1px rgb(27 47 20 / .1), 0 1px 2px rgb(27 47 20 / .12), 0 10px 22px -12px rgb(110 140 20 / .7);
  transition: background-color .18s ease, box-shadow .18s ease, transform .18s var(--ease);
}
.launch:active { transform: scale(.985); }
.launch-mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--evergreen);
  color: var(--lime);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .1);
}
.launch-mark .icon { width: 22px; height: 22px; }
.launch-text strong { display: block; font: 700 1.0625rem/1.25 var(--font-display); letter-spacing: -.015em; }
.launch-host {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: rgb(27 47 20 / .72);
  font-size: .8125rem;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.launch-go {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgb(27 47 20 / .28);
  border-radius: 50%;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.launch-go .icon { transition: transform .25s var(--ease); }

/* Buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font: 650 .9375rem/1.3 var(--font-text);
  text-align: center;
  text-decoration: none;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s var(--ease);
}
.button:active { transform: scale(.975); }
.button .icon { transition: transform .25s var(--ease); }
.button-lime {
  background: var(--lime);
  color: var(--lime-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 0 0 1px rgb(27 47 20 / .1), 0 1px 2px rgb(27 47 20 / .12);
}
.button-dark {
  background: var(--primary);
  color: var(--primary-ink);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .12), 0 1px 2px rgb(6 23 18 / .3);
}
.button-outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs); }
.button-danger { background: var(--danger); color: #fff8f3; box-shadow: inset 0 1px 0 rgb(255 255 255 / .16), 0 1px 2px rgb(60 15 5 / .3); }
.button-plain { margin-inline: -10px; padding-inline: 10px; background: transparent; color: var(--muted); font-weight: 600; }
.text-button {
  margin-right: -10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: inherit;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color .16s ease, color .16s ease;
}
.action-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* Setup step */

.platform-group {
  position: relative;
  display: inline-grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-sunk);
}
.platform-group::before {
  content: "";
  position: absolute;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-xs), 0 0 0 1px var(--line-strong);
  transition: transform .34s var(--ease);
}
.platform-group[data-active="1"]::before { transform: translateX(100%); }
.platform-group[data-active="2"]::before { transform: translateX(200%); }
.platform-option {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 18px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: .875rem;
  font-weight: 600;
  transition: color .16s ease;
}
.platform-option[aria-pressed="true"] { color: var(--ink); }
.platform-detail { animation: fade .3s ease both; }
.instructions { margin: 16px 0; color: var(--muted); font-size: .9375rem; line-height: 1.6; }
.fine-print { margin-top: 14px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.fine-print a { color: var(--moss); font-weight: 600; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.setup-guidance {
  margin-top: 24px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface-sunk);
}
.setup-guidance h3 { font-size: .9375rem; font-weight: 650; }
.setup-guidance p { max-width: 66ch; margin-top: 4px; color: var(--muted); font-size: .875rem; line-height: 1.6; text-wrap: pretty; }

/* Site step */

.history {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 500;
}
.history li { display: inline-flex; align-items: center; gap: 8px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 11px 3px 8px;
  border-radius: 999px;
  background: var(--tone-tint, var(--surface-tint));
  color: var(--tone, var(--muted));
  font-size: .8125rem;
  font-weight: 650;
  line-height: 1.5;
  white-space: nowrap;
}
.pill .icon { width: 14px; height: 14px; }
.tone-clear { --tone: var(--moss); --tone-tint: var(--moss-tint); }
.tone-sent { --tone: var(--sent); --tone-tint: var(--sent-tint); }
.tone-later { --tone: var(--amber); --tone-tint: var(--amber-tint); }
.tone-listed { --tone: var(--listed); --tone-tint: var(--listed-tint); }
.tone-skipped { --tone: var(--muted); --tone-tint: var(--surface-tint); }

.choices { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.choices legend { margin-bottom: 12px; padding: 0; font-size: 1rem; font-weight: 650; letter-spacing: -.005em; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 13px;
  padding: 14px 16px 14px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: var(--surface);
  text-align: left;
  box-shadow: var(--shadow-xs);
  transition: background-color .16s ease, border-color .16s ease, box-shadow .2s ease, transform .2s var(--ease);
}
.choice:active { transform: scale(.985); }
.choice-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--surface-tint);
  color: var(--moss);
  transition: background-color .16s ease, color .16s ease;
}
.choice-mark .icon { width: 20px; height: 20px; }
.choice-text strong { display: block; font-size: .9375rem; font-weight: 650; line-height: 1.35; }
.choice-hint { display: block; margin-top: 1px; color: var(--muted); font-size: .8125rem; line-height: 1.4; }

.removal-panel { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface-sunk); }
.removal-panel h3 { font: 700 1.25rem/1.25 var(--font-display); letter-spacing: -.02em; }
.removal-panel p { max-width: 60ch; margin: 6px 0 18px; color: var(--muted); font-size: .9375rem; line-height: 1.6; text-wrap: pretty; }
.result-actions { margin-top: 20px; }

/* Wait step */

.date-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-sunk);
}
.date-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  padding: 16px 20px 16px 16px;
}
.reminder { padding: 16px; border-top: 1px solid var(--line); }
.reminder-time {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-bottom: 14px;
  font-size: .875rem;
  font-weight: 600;
}
.reminder-time input {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-variant-numeric: tabular-nums;
  box-shadow: var(--shadow-xs);
  transition: border-color .16s ease;
}
.reminder-time input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.reminder-note { max-width: 60ch; margin-top: 10px; color: var(--muted); font-size: .8125rem; line-height: 1.55; }
.cal {
  flex: none;
  display: grid;
  grid-template-rows: auto 1fr;
  width: 60px;
  height: 64px;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: center;
}
.cal-month { padding: 3px 0; background: var(--evergreen); color: var(--lime); font-size: .75rem; font-weight: 700; line-height: 1.35; }
.cal-day { display: grid; place-items: center; font: 700 1.625rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.panel-label { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.date-panel time { display: block; margin-top: 1px; font: 700 1.25rem/1.3 var(--font-display); letter-spacing: -.02em; }
.date-status {
  margin-left: auto;
  padding: 5px 13px;
  border-radius: 999px;
  background: var(--moss-tint);
  color: var(--moss);
  font-size: .8125rem;
  font-weight: 650;
  white-space: nowrap;
}

/* Recheck results */

.summary-list { margin: 0; padding: 14px 20px 18px; list-style: none; }
.summary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 48px;
  padding: 8px 12px 8px 16px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
  font-size: .9375rem;
  font-weight: 600;
  transition: background-color .16s ease;
}
.summary-row > .icon { width: 16px; height: 16px; color: var(--faint); transition: transform .25s var(--ease), color .16s ease; }
.summary-footer { justify-content: flex-end; }

/* Route */

.route {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 12px 12px;
  background: var(--surface-sunk);
}
.route-heading { margin: 0 12px 14px; }
.route-phase { color: var(--muted); font-size: .8125rem; font-weight: 600; }
.route-nav { position: relative; }
.route-pill {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  pointer-events: none;
}
.route-pill.ready { transition: transform .42s var(--ease), height .42s var(--ease); }
.route-list { margin: 0; padding: 0; list-style: none; }
.route-list li { position: relative; }
/* Short ticks join the stops into a route. */
.route-list li + li::before {
  content: "";
  position: absolute;
  top: -4px;
  left: 24.5px;
  width: 1px;
  height: 8px;
  background: var(--line-strong);
}
.route-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 44px;
  padding: 6px 14px 6px 12px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  text-align: left;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .16s ease;
}
.route-row:disabled { color: var(--faint); }
.route-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.route-status { color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.route-node {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--surface);
  color: var(--muted);
  font-size: .6875rem;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.route-node .icon { width: 14px; height: 14px; }
.route-row:disabled .route-node { background: transparent; color: var(--faint); }
.route-row.active .route-node { border-color: var(--primary); background: var(--primary); color: var(--primary-ink); }
.route-row .route-node[class*="tone-"] { border-color: transparent; background: var(--tone-tint); color: var(--tone); }
.route-node.fresh { animation: pop .55s var(--ease); }

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 44px;
  padding: 16px 0 calc(28px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .8125rem;
  line-height: 1.5;
}
.privacy-note { display: flex; align-items: center; gap: 9px; }
.privacy-note .icon { width: 16px; height: 16px; color: var(--faint); }

/* Dialog */

dialog {
  width: min(440px, calc(100% - 32px));
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow-dialog);
}
dialog[open] { animation: dialog-in .32s var(--ease); }
dialog::backdrop {
  background: rgb(6 23 18 / .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  animation: fade .24s ease-out;
}
dialog h2 { font: 700 1.5rem/1.2 var(--font-display); letter-spacing: -.025em; }
dialog p { margin: 8px 0 24px; color: var(--muted); font-size: .9375rem; line-height: 1.55; }
.dialog-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; }

/* Hover, kept away from touch screens where it sticks */

@media (hover: hover) {
  .launch:hover {
    background: var(--lime-hover);
    transform: translateY(-1px);
    box-shadow: inset 0 1px 0 rgb(255 255 255 / .55), inset 0 0 0 1px rgb(27 47 20 / .14), 0 2px 4px rgb(27 47 20 / .12), 0 16px 28px -12px rgb(110 140 20 / .8);
  }
  .launch:hover .launch-go { border-color: transparent; background: var(--evergreen); color: var(--lime); }
  .launch:hover .launch-go .icon { transform: translate(1.5px, -1.5px); }
  .button-lime:hover { background: var(--lime-hover); }
  .button-dark:hover { background: var(--primary-hover); }
  .button-outline:hover { border-color: var(--faint); background: var(--surface-sunk); }
  .button-danger:hover { background: var(--danger-hover); }
  .button-plain:hover, .text-button:hover { background: var(--hover); color: var(--ink); }
  .button:hover .icon-arrow { transform: translateX(3px); }
  .button:hover .icon-back { transform: translateX(-3px); }
  .button:hover .icon-external { transform: translate(1.5px, -1.5px); }
  .platform-option:hover { color: var(--ink); }
  .choice:hover { border-color: var(--faint); transform: translateY(-1px); box-shadow: var(--shadow-pop); }
  .choice:hover .choice-mark { background: var(--primary); color: var(--primary-ink); }
  .route-row:hover:not(:disabled, .active) { background: var(--hover); }
  .summary-row:hover { background: var(--hover); }
  .summary-row:hover > .icon { color: var(--ink); transform: translateX(3px); }
  .fine-print a:hover { color: var(--ink); }
}

/* Step changes: the card resizes in script, its contents slide in the direction of travel. */

.step[data-dir="forward"] > .step-heading,
.step[data-dir="forward"] > .step-body,
.step[data-dir="forward"] > .summary-list { animation: slide-forward .46s var(--ease) both; }
.step[data-dir="back"] > .step-heading,
.step[data-dir="back"] > .step-body,
.step[data-dir="back"] > .summary-list { animation: slide-back .46s var(--ease) both; }
.step[data-dir="forward"] > .step-body,
.step[data-dir="back"] > .step-body,
.step[data-dir="forward"] > .summary-list,
.step[data-dir="back"] > .summary-list { animation-delay: .05s; }
.step[data-dir="swap"] > .step-body { animation: rise .36s var(--ease) both; }
.step[data-dir="forward"] > .step-footer,
.step[data-dir="back"] > .step-footer,
.step[data-dir="swap"] > .step-footer { animation: fade .4s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
}
@keyframes fade {
  from { opacity: 0; }
}
@keyframes slide-forward {
  from { opacity: 0; transform: translateX(18px); }
}
@keyframes slide-back {
  from { opacity: 0; transform: translateX(-18px); }
}
@keyframes art-in {
  from { opacity: 0; transform: scale(.94); }
}
@keyframes sweep {
  0% { opacity: 0; transform: rotate(-80deg); }
  14% { opacity: 1; }
  74% { opacity: 1; }
  100% { opacity: 0; transform: rotate(290deg); }
}
@keyframes fill {
  from { transform: scaleX(0); }
}
@keyframes bump {
  40% { transform: translateY(-3px); }
}
@keyframes pop {
  0% { transform: scale(.5); }
  55% { transform: scale(1.14); }
}
@keyframes ping {
  from { opacity: .7; transform: scale(1); }
  to { opacity: 0; transform: scale(3.4); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

/* Keep the route in view on screens tall enough to show all of it. */

@media (min-width: 761px) and (min-height: 820px) {
  .route { position: sticky; top: calc(var(--header) + 24px); }
}

@media (max-width: 1000px) {
  :root { --gutter: 24px; }
  .workspace { grid-template-columns: minmax(0, 1fr) 292px; gap: 20px; }
  .route-row { gap: 10px; padding-inline: 10px 12px; }
  .route-list li + li::before { left: 22.5px; }
  .hero { min-height: 280px; }
  .hero-content { padding: 40px 36px; }
  .hero-visual { right: 0; width: 48%; }
  .step-heading { padding: 28px 28px 0; }
  .step-body { padding: 22px 28px 28px; }
  .step-footer { padding-inline: 28px; }
  .summary-list { padding-inline: 12px; }
  .choice-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; --header: 56px; }
  .brand { gap: 9px; font-size: 1.0625rem; }
  .brand img { width: 30px; height: 30px; border-radius: 8px; }
  .local-status { padding: 5px 11px 5px 9px; font-size: .75rem; }
  .hero { min-height: 224px; margin-top: 16px; border-radius: 22px; }
  .hero-content { padding: 30px 22px; }
  .hero h1 { font-size: clamp(2.375rem, 10.4vw, 3.25rem); }
  .hero-description { max-width: 22ch; margin-top: 14px; font-size: .9375rem; }
  .hero-visual { top: 69%; right: -21%; width: 64%; opacity: .62; }
  .progress { margin: 22px 0 20px; }
  .progress-track { gap: 4px; }
  .workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .step, .route { border-radius: 20px; }
  .step-heading { padding: 24px 20px 0; }
  .step-heading h2 { scroll-margin-top: calc(var(--header) + 80px); }
  .step-body { padding: 20px 20px 24px; }
  .step-footer { padding: 10px 20px; }
  .summary-list { padding: 10px 8px 14px; }
  .summary-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding-block: 10px; }
  .summary-row .pill { grid-row: 2; justify-self: start; }
  .summary-row > .icon { grid-row: 1 / span 2; grid-column: 2; }
  .launch { gap: 12px; padding: 11px 13px 11px 11px; border-radius: 16px; }
  .launch-mark { width: 42px; height: 42px; border-radius: 12px; }
  .launch-go { width: 32px; height: 32px; }
  .platform-group { display: grid; }
  .platform-option { padding-inline: 8px; }
  .removal-panel { padding: 18px; }
  .removal-panel .button, .result-actions .button, .reminder .button { flex: 1 1 auto; }
  .date-main { padding: 14px; gap: 12px 14px; }
  .reminder { padding: 14px; }
  .date-panel time { font-size: 1.0625rem; }
  .date-status { margin-left: 0; }
  .route { padding: 18px 8px 8px; }
  .site-footer { margin-top: 28px; }
  .dialog-actions .button { flex: 1 1 auto; }
}

@media (max-width: 400px) {
  .local-status { padding-inline: 9px; }
  .hero h1 { font-size: 2.375rem; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 4px; }
  .text-button { margin-left: -10px; }
}

/* Reduced motion: nothing travels, spins or scales. Fades and colour changes stay,
   and the radar pass becomes a still glow. */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-property: color, background-color, border-color, box-shadow, opacity !important;
  }
  .hero h1,
  .hero-description,
  .hero-art,
  .progress,
  .workspace,
  .step[data-dir] > *,
  .segment.fresh::after,
  .route-node.fresh,
  dialog[open] { animation-name: fade !important; }
  .progress-count strong.bump { animation: none; }
  .local-status.saved .status-dot::after { animation-name: halo; }
  .hero-sweep { background: radial-gradient(circle closest-side, rgb(223 244 120 / .08) 30%, rgb(223 244 120 / .3) 78%, transparent 96%); }
  .hero-sweep.run { animation: glow 1.8s ease both; }
}

@keyframes glow {
  0%, 100% { opacity: 0; }
  35% { opacity: 1; }
}
@keyframes halo {
  from { opacity: .6; transform: scale(2.4); }
  to { opacity: 0; transform: scale(2.4); }
}
