/* ==========================================================================
   StampReady design system
   Sans-serif throughout, large and tightly tracked (Stripe / Linear / Wise).
   Sentence-case labels — no uppercase mono. Borders carry structure.
   Class names are a contract with the JS in /js — do not rename them.
   ========================================================================== */

:root {
  /* surfaces */
  --bg: #ffffff;
  --bg-sub: #f6f8f8;
  --bg-sunk: #eef1f1;
  --surface: #ffffff;
  --paper: #ffffff;
  --paper-2: #f6f8f8;

  /* ink — deep navy */
  --ink: #0a2540;
  --ink-2: #4b5d73;
  --ink-3: #8794a6;
  --slate: #5c6f87;          /* the second tone of a two-tone heading */

  --line: #e6e9ec;
  --line-2: #d6dbe0;
  --line-3: #bfc6ce;

  /* accent — cobalt */
  --accent: #3650e3;
  --accent-2: #2a3fc4;
  --accent-3: #4a63f0;
  --accent-soft: #eef1fe;
  --accent-line: #c9d2fb;

  /* status */
  --ok: #0a6b4d;      --ok-soft: #e9f5f0;   --ok-line: #b9ddcd;
  --warn: #9a6306;    --warn-soft: #fdf4e6; --warn-line: #f0dcb6;
  --danger: #b0271a;  --danger-soft: #fdeeec; --danger-line: #f5cfca;
  --info: #1f4e86;    --info-soft: #eef3fa; --info-line: #cddeef;
  --neutral: #6a7482; --neutral-soft: #f1f3f4; --neutral-line: #dde2e5;

  /* legacy aliases still referenced in markup */
  --navy: #0a2540;
  --navy-2: #18253a;
  /* --stamp is read by JS: days.js (planned-trip bars, labelled "red") and
     report.js (high-risk colour). It must stay red, not follow the accent. */
  --stamp: #c8372b;
  --stamp-soft: #fdeeec;
  --sky: #eef3fa;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;
  --r-pill: 999px;
  --radius: 10px;
  --radius-sm: 6px;

  --shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 10px 24px -14px rgba(11, 18, 32, .22);
  --shadow-lift: 0 2px 4px rgba(11, 18, 32, .05), 0 18px 40px -20px rgba(11, 18, 32, .30);
  --shadow-pop: 0 4px 10px rgba(11, 18, 32, .07), 0 24px 56px -24px rgba(11, 18, 32, .36);

  --sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --serif: var(--sans);              /* serif retired — alias kept for old markup */

  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* --------------------------------------------------------------- base --- */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 var(--sans);
  letter-spacing: -.009em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; font-weight: 500; }
a:hover { color: var(--accent-2); text-decoration: underline; text-underline-offset: 2px; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 2px; border-radius: 4px; }

/* Type scale: large, tight, all sans. */
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-family: var(--sans); font-weight: 600; }
h1 { font-size: clamp(2.6rem, 5vw, 4rem); letter-spacing: -.042em; line-height: 1.03; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.6rem); letter-spacing: -.035em; line-height: 1.1; }
h3 { font-size: 1.1875rem; letter-spacing: -.021em; line-height: 1.35; }
h4 { font-size: 1rem; letter-spacing: -.015em; }

.wrap { width: min(1180px, 100% - 44px); margin-inline: auto; }
.wide { width: min(1320px, 100% - 44px); }
.muted { color: var(--ink-2); }
.mono { font-family: var(--mono); font-size: .9em; }
.lead { font-size: 1.1875rem; line-height: 1.58; color: var(--ink-2); letter-spacing: -.014em; }
.block { padding: 92px 0; border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { margin-top: 10px; }
.section-head p { margin-top: 16px; font-size: 1.0625rem; color: var(--ink-2); line-height: 1.6; }

/* Eyebrow: sentence case, accent, no tracking games. */
.eyebrow {
  display: inline-block; font-size: .9375rem; font-weight: 600;
  letter-spacing: -.01em; color: var(--accent); text-transform: none;
}
.label, .step-label {
  display: block; font-size: .9375rem; font-weight: 500;
  letter-spacing: -.008em; color: var(--ink-2); text-transform: none; font-family: var(--sans);
}
.step-label { color: var(--ink-3); font-size: .875rem; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.8) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 72px; }
.header-start { display: flex; align-items: center; gap: 10px; }
.logo {
  display: inline-flex; align-items: center; gap: 9px; margin-right: auto;
  color: var(--ink); font-size: 1.1875rem; font-weight: 600; letter-spacing: -.032em;
}
.logo:hover { text-decoration: none; color: var(--ink); }
.header-start + * { margin-left: auto; }
.header-start .logo { margin-right: 0; }
.logo-mark { width: 27px; height: 27px; }
.back-btn {
  display: grid; place-items: center; width: 34px; height: 34px; flex: none;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink-2); cursor: pointer; transition: background .15s var(--ease);
}
.back-btn:hover { background: var(--bg-sub); color: var(--ink); }
.back-btn svg { width: 18px; height: 18px; }

.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a {
  color: var(--ink-2); font-size: .9688rem; font-weight: 500; letter-spacing: -.012em;
  padding: 8px 13px; border-radius: var(--r-sm);
  transition: color .15s var(--ease), background .15s var(--ease);
}
.nav a:hover { color: var(--ink); background: var(--bg-sub); text-decoration: none; }
.nav a.btn { margin-left: 10px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: #fff; }
@media (max-width: 960px) { .nav a:not(.btn) { display: none; } }
.tagline { white-space: nowrap; margin-left: auto; color: var(--ink-3); font-size: .9375rem; }
.tagline-short { display: none; }
@media (max-width: 760px) { .tagline-long { display: none; } .tagline-short { display: inline; } }

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--r); cursor: pointer;
  font-family: var(--sans); font-size: 1rem; font-weight: 500; line-height: 1;
  letter-spacing: -.016em; padding: 14px 22px; white-space: nowrap;
  transition: background .15s var(--ease), border-color .15s var(--ease), transform .12s var(--ease);
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn-stamp { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-stamp:hover { background: #18253a; border-color: #18253a; color: #fff; }
.btn-ghost { background: var(--bg); color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-sub); border-color: var(--line-3); color: var(--ink); }
.btn-sm { padding: 9px 15px; font-size: .9375rem; border-radius: var(--r-sm); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn[disabled]:active { transform: none; }
.btn .price-tag { background: rgba(255,255,255,.18); border-radius: var(--r-sm); padding: 4px 8px; font-size: .875rem; }

/* --------------------------------------------------------------- hero --- */
.hero { padding: 84px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 64px; align-items: center; }
.hero h1 { margin-top: 20px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { margin-top: 22px; font-size: 1.1875rem; line-height: 1.58; color: var(--ink-2); max-width: 44ch; letter-spacing: -.014em; }
.hero-aside { margin-top: 18px; font-size: .9375rem; color: var(--ink-3); }
.hero-art { position: relative; }

/* Airbnb-style segmented pill search */
.searchbar {
  margin-top: 32px; display: flex; align-items: stretch;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-pill);
  box-shadow: var(--shadow-lift); padding: 6px;
}
.searchbar .field {
  flex: 1; min-width: 0; padding: 10px 22px; border-radius: var(--r-pill);
  cursor: pointer; transition: background .15s var(--ease);
}
.searchbar .field:hover { background: var(--bg-sub); }
.searchbar .field + .field { box-shadow: -1px 0 0 var(--line); }
.searchbar .field:hover + .field, .searchbar .field:hover { box-shadow: none; }
.searchbar label {
  display: block; margin-bottom: 1px; font-size: .8125rem; font-weight: 600;
  color: var(--ink); letter-spacing: -.008em; text-transform: none; font-family: var(--sans);
}
.searchbar .btn { border-radius: var(--r-pill); padding-inline: 26px; align-self: center; }
/* inside the pill the dropdown is bare — the pill is the control */
.searchbar .sr-combo-btn {
  border: 0; padding: 0; background: none; box-shadow: none !important;
  font-size: .9688rem; color: var(--ink-2);
}
.searchbar .sr-combo-btn:hover { border: 0; }
.searchbar .sr-combo-caret { display: none; }
.search-note { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.search-note span { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--ink-2); }
.search-note svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.searchbar-hint { font-size: .9375rem; color: var(--ink-3); }
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .searchbar { flex-direction: column; border-radius: var(--r-lg); padding: 8px; }
  .searchbar .field { border-radius: var(--r); }
  .searchbar .field + .field { box-shadow: none; border-top: 1px solid var(--line); border-radius: 0; }
  .searchbar .btn { width: 100%; margin-top: 8px; border-radius: var(--r); }
}

.mrz { font: .8125rem/1.9 var(--mono); letter-spacing: .1em; color: var(--ink-3); word-break: break-all; padding: 16px 0; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- data --- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 28px 34px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 2.5rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.stat span { display: block; margin-top: 12px; font-size: .9375rem; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 860px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 24px 20px; }
  .stat:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

.reasons { border-top: 1px solid var(--line); }
.reason {
  display: grid; grid-template-columns: 136px 1.35fr 1fr; gap: 36px; align-items: start;
  padding: 30px 0; border-bottom: 1px solid var(--line); transition: background .15s var(--ease);
}
.reason:hover { background: var(--bg-sub); }
.reason .pct, .reason .num { font: 500 .875rem/1.6 var(--mono); color: var(--ink-3); letter-spacing: 0; }
.reason p { margin-top: 9px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.we-check { position: relative; padding-left: 27px; font-size: .9375rem; line-height: 1.55; color: var(--accent); font-weight: 500; }
.we-check > svg { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; }
@media (max-width: 900px) { .reason { grid-template-columns: 1fr; gap: 10px; } }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); counter-reset: stepnum; }
.step { padding: 32px 32px 34px; border-left: 1px solid var(--line); counter-increment: stepnum; }
.step:first-child { border-left: 0; padding-left: 0; }
.step::before {
  content: counter(stepnum); display: grid; place-items: center;
  width: 28px; height: 28px; margin-bottom: 18px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-size: .875rem; font-weight: 600;
}
.step p { margin-top: 10px; color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .step { border-left: 0; border-top: 1px solid var(--line); padding: 28px 0; }
  .step:first-child { border-top: 0; }
}

.sample, .vote-card { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 980px) { .sample, .vote-card { grid-template-columns: 1fr; gap: 40px; } }
.ticks { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 14px; }
.ticks li { position: relative; padding-left: 30px; font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.ticks li > svg { position: absolute; left: 0; top: 3px; width: 18px; height: 18px; color: var(--accent); }
.ticks li b { color: var(--ink); font-weight: 600; }

.paper-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }

/* ---------------------------------------------------------- form bits --- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 760px) { .form-grid { grid-template-columns: 1fr; } }

.f { min-width: 0; }
.f > label, .f > .label {
  display: block; margin-bottom: 8px; font-size: .9375rem; font-weight: 500;
  color: var(--ink); letter-spacing: -.01em; text-transform: none; font-family: var(--sans);
}
.f input[type=text], .f input[type=email], .f input[type=number], .f input[type=date],
.f input:not([type]), .f textarea, .f select, .money input, .money select {
  width: 100%; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; font: 400 1rem/1.4 var(--sans); letter-spacing: -.01em;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.f input:hover, .f textarea:hover { border-color: var(--line-3); }
.f input:focus, .f textarea:focus, .f select:focus {
  outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 3px var(--accent-soft);
}
.f input::placeholder, .f textarea::placeholder { color: var(--ink-3); }
.f textarea { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: .875rem; }
.hint { margin-top: 8px; font-size: .875rem; line-height: 1.5; color: var(--ink-3); }
.f.invalid input, .f.invalid select, input.invalid, select.invalid { border-color: var(--danger); }
.money { display: grid; grid-template-columns: 1fr 130px; gap: 10px; }

/* Segmented choice — Airbnb-ish selectable cards */
.seg { display: flex; flex-wrap: wrap; gap: 9px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.seg label {
  display: inline-flex; align-items: center; cursor: pointer;
  padding: 11px 17px; border: 1px solid var(--line-2); border-radius: var(--r-sm);
  background: var(--bg); color: var(--ink-2);
  font-size: .9688rem; font-weight: 500; line-height: 1.3; letter-spacing: -.012em;
  transition: border-color .14s var(--ease), color .14s var(--ease), background .14s var(--ease);
}
.seg label:hover { border-color: var(--ink-3); color: var(--ink); }
.seg input:checked + label {
  border-color: var(--ink); color: var(--ink); background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.seg input:focus-visible + label { outline: 2px solid var(--accent-3); outline-offset: 2px; }

.question { padding: 24px 0; border-top: 1px solid var(--line); }
.question:first-child { border-top: 0; }
.question .q { font-size: 1rem; font-weight: 500; margin-bottom: 13px; letter-spacing: -.014em; }
.question .q small { display: block; margin-top: 5px; font-weight: 400; font-size: .875rem; color: var(--ink-3); line-height: 1.5; }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: .875rem; line-height: 1.55; color: var(--ink-2); }
.consent input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.form-error, .form-msg { margin-top: 14px; font-size: .9375rem; color: var(--danger); }
.form-error:empty, .form-msg:empty { margin: 0; }
.form-done { font-size: 1rem; color: var(--accent); }
.privacy-line { display: flex; gap: 9px; align-items: center; margin-top: 20px; font-size: .875rem; color: var(--ink-3); }
.privacy-line svg { width: 16px; height: 16px; flex: none; }

/* ----------------------------------------------- searchable dropdown --- */
.sr-combo { position: relative; display: block; }
.sr-combo-native { position: absolute; opacity: 0; pointer-events: none; width: 0; height: 0; }
.sr-combo-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; justify-content: space-between;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 12px 11px 13px; cursor: pointer; text-align: left;
  font: 400 1rem/1.4 var(--sans); color: var(--ink); letter-spacing: -.01em;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.sr-combo-btn:hover { border-color: var(--line-3); }
.sr-combo.is-open .sr-combo-btn, .sr-combo-btn:focus-visible {
  outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 3px var(--accent-soft);
}
.sr-combo-value { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.sr-combo-value.is-placeholder { color: var(--ink-3); }
.sr-combo-caret { width: 18px; height: 18px; flex: none; color: var(--ink-3); transition: transform .18s var(--ease); }
.sr-combo.is-open .sr-combo-caret { transform: rotate(180deg); }
.sr-combo-pop {
  position: fixed; z-index: 120; overflow: auto; overscroll-behavior: contain;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-pop); padding: 6px;
}
.sr-combo-search {
  display: flex; align-items: center; gap: 9px; padding: 9px 11px; margin-bottom: 5px;
  border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg-sub);
}
.sr-combo-search svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); }
.sr-combo-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font: 400 .9688rem/1.4 var(--sans); color: var(--ink); }
.sr-combo-list { list-style: none; margin: 0; padding: 0; outline: none; }
.sr-combo-opt {
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 9px 11px; border-radius: var(--r-sm); font-size: .9688rem; color: var(--ink); letter-spacing: -.01em;
}
.sr-combo-opt.is-active { background: var(--bg-sunk); }
.sr-combo-opt.is-selected { color: var(--accent); font-weight: 600; }
.sr-combo-opt.is-selected.is-active { background: var(--accent-soft); }
.sr-combo-opt.is-placeholder { color: var(--ink-3); }
.sr-combo-group { padding: 13px 11px 6px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); letter-spacing: -.005em; }
.sr-combo-empty { margin: 0; padding: 16px 11px; font-size: .9375rem; color: var(--ink-3); }
.sr-flag { width: 22px; height: 16px; flex: none; border-radius: 2px; object-fit: cover; border: 1px solid var(--line); }
.sr-flag-code { display: inline-grid; place-items: center; width: 22px; height: 16px; flex: none; border-radius: 2px; background: var(--bg-sunk); color: var(--ink-2); font: 600 .5625rem/1 var(--sans); }

/* ------------------------------------------------------------- wizard --- */
.wizard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 34px 32px; margin: 24px 0; }
.progress { display: flex; gap: 6px; margin-bottom: 28px; }
.progress span { flex: 1; height: 3px; border-radius: var(--r-pill); background: var(--line); transition: background .3s var(--ease); }
.progress span.on { background: var(--accent); }
.panel > .step-label { display: block; margin-bottom: 10px; }
.panel > h2 { font-size: 1.75rem; }
.panel > .muted { margin-top: 12px; line-height: 1.6; font-size: 1.0625rem; }
.panel > .form-grid { margin-top: 26px; }
.wizard-nav { display: flex; gap: 12px; justify-content: space-between; margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }
.wizard-nav .btn-primary { margin-left: auto; }
.restore {
  display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between;
  padding: 14px 17px; margin-bottom: 18px;
  background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: var(--r-sm);
  font-size: .9375rem; color: var(--accent-2);
}
.keep-copy summary { cursor: pointer; font-size: 1rem; font-weight: 500; }
.keep-copy[open] summary { margin-bottom: 18px; }
.keep-copy .f { margin-bottom: 16px; }
.keep-copy > p { margin-top: 14px; font-size: .875rem; color: var(--ink-3); line-height: 1.55; }

.stops { display: grid; gap: 11px; }
.stop {
  display: grid; grid-template-columns: 26px 1.3fr 1fr 158px 158px 34px; gap: 12px; align-items: end;
  padding: 16px; background: var(--bg-sub); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.stop .num { font-size: .875rem; color: var(--ink-3); padding-bottom: 12px; }
.stop .f > label { font-size: .8125rem; color: var(--ink-3); margin-bottom: 6px; }
.stop input, .stop .sr-combo-btn { padding: 9px 11px; font-size: .9375rem; }
.rm {
  width: 32px; height: 38px; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r-sm);
  color: var(--ink-3); cursor: pointer; font-size: 1.15rem; line-height: 1;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
}
.rm:hover { color: var(--danger); border-color: var(--danger-line); background: var(--danger-soft); }
.add-stop {
  margin-top: 12px; background: var(--bg); border: 1px dashed var(--line-3); border-radius: var(--r-sm);
  padding: 11px 17px; font: 500 .9688rem var(--sans); color: var(--ink-2); cursor: pointer;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.add-stop:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
@media (max-width: 900px) {
  .stop { grid-template-columns: 1fr 1fr; position: relative; padding-top: 34px; }
  .stop .num { position: absolute; top: 13px; left: 16px; padding: 0; }
  .stop .rm { position: absolute; top: 9px; right: 11px; }
  .stop .f:nth-of-type(1), .stop .f:nth-of-type(2) { grid-column: 1 / -1; }
}
.visa-inline {
  margin-top: 10px; padding: 11px 14px; border-radius: var(--r-sm); font-size: .9375rem; line-height: 1.5;
  background: var(--info-soft); border: 1px solid var(--info-line); color: var(--info);
}
.visa-inline.no-visa { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }

/* report.js fills .visa-note with a heading and several paragraphs: it is a block,
   not the inline pill above. A visa-free passport changes what the page is about. */
.visa-note {
  margin-top: 26px; padding: 26px 28px; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--ok-line); border-left: 3px solid var(--ok);
}
.visa-note.warn { border-color: var(--warn-line); border-left-color: var(--warn); }
.visa-note > * + * { margin-top: 14px; }
.visa-note h2 { margin-top: 12px; font-size: clamp(1.35rem, 2.3vw, 1.75rem); max-width: 32ch; }
.visa-note p { color: var(--ink-2); font-size: 1.0625rem; line-height: 1.65; }
.visa-note b { color: var(--ink); }

/* ------------------------------------------------------------- report --- */
.report-top { margin-bottom: 24px; }
.report-head {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between;
  padding: 30px 32px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
}
.report-head h1 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }
.trip-line { font-size: .9375rem; color: var(--ink-3); margin-bottom: 12px; }
.report-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.gauge { display: flex; align-items: center; gap: 20px; }
.score { font-size: 3rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; }
.score small { font-size: 1rem; font-weight: 400; color: var(--ink-3); letter-spacing: -.01em; }
.meter { height: 6px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--accent); transition: width .5s var(--ease); }
.meter.low i, .meter i.low { background: var(--danger); }
.meter.medium i, .meter i.medium { background: var(--warn); }
.meter.high i, .meter i.high, .meter.good i { background: var(--accent); }

/* Risk levels used by the JS: "low" = low risk (good), "moderate" = attention,
   "high" = high risk (bad). days.js adds "ok" / "over" to the verdict box. */
.verdict {
  margin-top: 22px; padding: 22px 24px; border-radius: var(--r);
  font-size: .9375rem; letter-spacing: -.012em;
  background: var(--neutral-soft); border: 1px solid var(--neutral-line); color: var(--neutral);
}
.verdict > * + * { margin-top: 12px; }
.verdict h3 { color: inherit; font-size: 1.25rem; letter-spacing: -.024em; }
.verdict p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.verdict b { color: var(--ink); }
.verdict.ok, .verdict.good, .verdict.low { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.verdict.warn, .verdict.medium, .verdict.moderate { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.verdict.critical, .verdict.high, .verdict.over { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }

.rubber {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; white-space: nowrap;
  border: 1px solid currentColor; border-radius: var(--r-pill);
  font-size: .875rem; font-weight: 600; letter-spacing: -.012em; color: var(--neutral); background: #fff;
}
.rubber.ok, .rubber.good, .rubber.low { color: var(--ok); }
.rubber.warn, .rubber.medium, .rubber.moderate { color: var(--warn); }
.rubber.high, .rubber.critical { color: var(--danger); }

/* Linear-style status rows: precise ring markers, not haloed dots */
.areas { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.areas.compact { margin-top: 18px; }
.area { display: flex; gap: 14px; align-items: flex-start; padding: 17px 19px; border-top: 1px solid var(--line); background: var(--bg); transition: background .15s var(--ease); }
.area:first-child { border-top: 0; }
.area:hover { background: var(--bg-sub); }
.area b { display: block; font-size: 1rem; font-weight: 600; letter-spacing: -.016em; }
.area span:not(.dot) { display: block; margin-top: 3px; font-size: .9375rem; color: var(--ink-2); }
.dot {
  width: 15px; height: 15px; border-radius: 50%; flex: none; margin-top: 4px;
  border: 2px solid var(--neutral); background: transparent; position: relative;
}
.dot::after { content: ''; position: absolute; inset: 2px; border-radius: 50%; background: transparent; }
.area.ready .dot, .area.ok .dot, .ok > .dot { border-color: var(--ok); }
.area.ready .dot::after, .area.ok .dot::after, .ok > .dot::after { background: var(--ok); }
.area.attention .dot, .area.warn .dot, .warn > .dot { border-color: var(--warn); }
.area.attention .dot::after, .area.warn .dot::after, .warn > .dot::after {
  background: var(--warn); inset: 3px; border-radius: 1px;
}
.area.blocking .dot, .area.critical .dot, .critical > .dot { border-color: var(--danger); background: var(--danger); }
.area.blocking .dot::after, .area.critical .dot::after, .critical > .dot::after {
  background: #fff; inset: 4px 2.5px; border-radius: 1px;
}

.issues { display: grid; gap: 14px; }
.issue { padding: 20px 22px; background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--neutral); border-radius: var(--r-sm); }
.issue h3 { margin-top: 10px; font-size: 1.0625rem; }
.issue.critical, .issue.high { border-left-color: var(--danger); }
.issue.warn, .issue.medium, .issue.attention { border-left-color: var(--warn); }
.issue.ok, .issue.low { border-left-color: var(--accent); }
.fix, .fix-line {
  margin-top: 14px; padding: 14px 16px; background: var(--bg-sub);
  border: 1px solid var(--line); border-radius: var(--r-sm);
  font-size: .9375rem; line-height: 1.6; color: var(--ink-2);
}
.fix b, .fix-line b { display: block; margin-bottom: 5px; font-size: .875rem; font-weight: 600; color: var(--ink); }

/* status chips */
.chip, .tag, .req-tag, .src-badge {
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; letter-spacing: -.008em; white-space: nowrap;
  background: var(--neutral-soft); border: 1px solid var(--neutral-line); color: var(--neutral);
}
.chip.ok, .tag.ok, .chip.good, .chip.done { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.chip.warn, .tag.warn, .chip.medium, .chip.attention { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.chip.critical, .tag.critical, .chip.high, .chip.missing { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.chip.low, .chip.info, .chip.unknown { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }

/* Notion-style checklist */
.checklist { display: grid; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.checklist > * { padding: 17px 19px; border-top: 1px solid var(--line); background: var(--bg); }
.checklist > *:first-child { border-top: 0; }
.checklist li { list-style: none; }
.checklist b { font-size: 1rem; font-weight: 600; letter-spacing: -.016em; }
.checklist p, .checklist span { font-size: .9375rem; color: var(--ink-2); line-height: 1.55; }
.good-list { display: grid; gap: 11px; margin: 0; padding: 0; list-style: none; }
/* The mask below is the tick, so the <svg> report.js also writes is redundant. */
.good-list li > svg { display: none; }
.good-list li { position: relative; padding-left: 28px; font-size: 1rem; color: var(--ink-2); }
.good-list li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 17px; height: 17px;
  border-radius: 4px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M4 10.5l3.6 3.5L16 6' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/13px no-repeat, linear-gradient(#000, #000);
  -webkit-mask-composite: xor; mask-composite: exclude;
}

.count-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
/* .counts is a row of status chips (report.js); .count-grid is the card grid (days.js). */
.counts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 15px; }
.count-card { padding: 19px 21px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); }
.count-card span { display: block; font-size: .9375rem; color: var(--ink-3); }
.count-card b { display: block; margin-top: 8px; font-size: 2.375rem; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.count-card small { display: block; margin-top: 6px; font-size: .875rem; color: var(--ink-3); }
.count-card.low { border-color: var(--danger-line); background: var(--danger-soft); }
.count-card.low b { color: var(--danger); }
.count-card.ok { border-color: var(--ok-line); background: var(--ok-soft); }
.count-card.ok b { color: var(--ok); }

.strip-wrap { margin-top: 22px; overflow-x: auto; padding-bottom: 6px; }
/* days.js draws the strip as <svg class="day-strip"> with its own fills. */
svg.day-strip { display: block; width: 100%; min-width: 560px; height: 40px; border-radius: 3px; }
.strip-legend {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
  gap: 9px 20px; margin-top: 12px; font-size: .875rem; color: var(--ink-2);
}
/* Legend swatches are the <i> elements days.js writes, matching the SVG fills. */
.key { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.key i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-left: 12px; }
.key i:first-child { margin-left: 0; }
.k-past { background: var(--navy); }
.k-plan { background: var(--stamp); }
.k-free { background: var(--line); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 28px; overflow-x: auto; }
.tabs button {
  background: none; border: 0; border-bottom: 2px solid transparent; cursor: pointer;
  padding: 13px 15px; margin-bottom: -1px; white-space: nowrap;
  font: 500 1rem var(--sans); letter-spacing: -.014em; color: var(--ink-3);
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected=true], .tabs button.is-active { color: var(--ink); border-bottom-color: var(--accent); }
.tab-panel { animation: fade .22s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.funds-box, .notice, .scope-note, .empty-state {
  padding: 17px 19px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background: var(--bg-sub); font-size: 1rem; line-height: 1.6; color: var(--ink-2);
}
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice.critical { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.empty-state { text-align: center; padding: 44px 24px; color: var(--ink-3); }
.amount { font-weight: 600; letter-spacing: -.02em; }
.line-item { display: flex; justify-content: space-between; gap: 18px; padding: 11px 0; border-top: 1px solid var(--line); font-size: 1rem; }
.line-item:first-child { border-top: 0; }
.itin { display: grid; gap: 12px; }
.letter { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 26px; font-size: 1rem; line-height: 1.7; }
.letter-fields { display: grid; gap: 16px; margin-bottom: 20px; }
.doc-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }

/* Running text with a badge or a link in it: a paragraph, not a flex row —
   flex would make every text node its own item and break the sentence up. */
.source-line, .req-src { display: block; margin-top: 12px; font-size: .875rem; line-height: 1.6; color: var(--ink-3); }
.source-line .src-badge, .req-src .src-badge { margin-right: 8px; }
.sources-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.sources-table th { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line-2); font-size: .9375rem; font-weight: 600; color: var(--ink-2); }
.sources-table td { padding: 15px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.sources-table tr:hover td { background: var(--bg-sub); }
.table-scroll { overflow-x: auto; }
@media (max-width: 760px) {
  .sources-table, .sources-table tbody, .sources-table tr, .sources-table td { display: block; width: 100%; }
  .sources-table thead { display: none; }
  .sources-table tr { border: 1px solid var(--line); border-radius: var(--r-sm); margin-bottom: 14px; padding: 7px; }
  .sources-table td { border: 0; padding: 8px 10px; }
  .sources-table td::before { content: attr(data-label); display: block; margin-bottom: 3px; font-size: .8125rem; font-weight: 600; color: var(--ink-3); }
}

.req-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px 32px; background: var(--bg); }
.req-result { display: flex; flex-wrap: wrap; gap: 15px; align-items: center; }
/* The destination modules write .req-facts as one paragraph of the figures that
   matter — fee, validity, the one address to apply on. It is a callout, not a grid. */
.req-facts {
  margin-top: 18px; padding: 17px 19px; font-size: 1rem; line-height: 1.65; color: var(--ink-2);
  background: var(--bg-sub); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.req-facts b { color: var(--ink); font-weight: 600; }
.req-facts .btn { margin-top: 14px; }
.req-scope, .scope-note { margin-top: 20px; }
.req-visa .req-tag, .req-tag.req-visa { background: var(--danger-soft); border-color: var(--danger-line); color: var(--danger); }
.req-evisa .req-tag, .req-tag.req-evisa, .req-authorisation .req-tag, .req-tag.req-authorisation { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.req-none .req-tag, .req-tag.req-none { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.req-on-arrival .req-tag, .req-tag.req-on-arrival { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.req-unknown .req-tag, .req-tag.req-unknown { background: var(--neutral-soft); border-color: var(--neutral-line); color: var(--neutral); }

.pricing { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.plan, .pack-card, .checkout-card, .paywall { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 30px; }
.plan.featured { border-color: var(--ink); }
.pack-card { margin-top: 26px; }
.pack-card h2 { margin: 12px 0 14px; font-size: 1.5rem; }
.poll { margin-top: 20px; }
.poll-q { font-size: 1rem; font-weight: 500; margin-bottom: 14px; }
.poll-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.poll-email { margin-bottom: 16px; display: grid; gap: 12px; }
.poll-note { margin-top: 12px; font-size: .875rem; color: var(--ink-3); }
.waitlist, .unlock, .locked, .release, .soon { font-size: 1rem; color: var(--ink-2); }
.locked { opacity: .6; }
.would-pay { display: flex; gap: 10px; flex-wrap: wrap; }

.faq { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: 22px 0; font-size: 1.0625rem; font-weight: 500; letter-spacing: -.018em;
  display: flex; justify-content: space-between; gap: 20px; align-items: center; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--ink-3); font-size: 1.3rem; font-weight: 400; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > p, .faq details > div { padding: 0 0 24px; color: var(--ink-2); font-size: 1rem; line-height: 1.65; max-width: 74ch; }

.site-footer { margin-top: 0; border-top: 1px solid var(--line); padding: 40px 0 64px; background: var(--bg-sub); }
.site-footer p { font-size: .9375rem; line-height: 1.7; color: var(--ink-3); max-width: 92ch; }
.site-footer b { color: var(--ink-2); font-weight: 600; }
.site-footer a { color: var(--ink-2); font-weight: 400; }
.site-footer a:hover { color: var(--accent); }
/* Small print, for a footer or a closing note — never for a page of body text. */
.legal { font-size: .9375rem; color: var(--ink-3); line-height: 1.7; }

.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 200;
  background: var(--ink); color: #fff; padding: 13px 19px; border-radius: var(--r-sm);
  font-size: .9375rem; box-shadow: var(--shadow-pop); animation: rise .25s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }
.loader { width: 28px; height: 28px; margin: 48px auto 16px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.todo { background: var(--warn-soft); color: var(--warn); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: .875rem; }
.test-banner { background: var(--warn-soft); border-bottom: 1px solid var(--warn-line); color: var(--warn); text-align: center; padding: 8px; font-size: .875rem; }
.bar { height: 4px; border-radius: var(--r-pill); background: var(--line); overflow: hidden; }
.strip-wrap::-webkit-scrollbar, .tabs::-webkit-scrollbar, .sr-combo-pop::-webkit-scrollbar { height: 7px; width: 7px; }
.strip-wrap::-webkit-scrollbar-thumb, .tabs::-webkit-scrollbar-thumb, .sr-combo-pop::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: var(--r-pill); }

/* ======================================================== home page ======
   The query is the hero: a sentence at display size where each country is
   the real searchable control. Rules and bands, not cards.
   ========================================================================= */
.q-kicker { font-size: .9375rem; color: var(--ink-3); margin-bottom: 26px; }
.q-hero { padding: 76px 0 60px; }
.q-sentence {
  font-size: clamp(2rem, 4.3vw, 3.4rem); line-height: 1.3; letter-spacing: -.038em;
  font-weight: 500; max-width: 21ch; color: var(--ink);
}
.q-form { display: contents; }
.q-form .field { display: inline; }
.q-form .field label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.q-form button[type=submit] { display: none; }
.q-sentence .sr-combo { display: inline-block; vertical-align: baseline; }
.q-sentence .sr-combo-btn {
  display: inline-flex; width: auto; gap: .34em; padding: 0 .06em;
  border: 0; border-bottom: 3px solid var(--accent-line); border-radius: 0;
  background: none; box-shadow: none !important; font: inherit; color: var(--accent);
  transition: border-color .15s var(--ease), color .15s var(--ease);
}
.q-sentence .sr-combo-btn:hover { border-bottom-color: var(--accent); }
.q-sentence .sr-combo.is-open .sr-combo-btn { border-bottom-color: var(--accent); box-shadow: none !important; }
.q-sentence .sr-combo-caret { display: none; }
.q-sentence .sr-flag { width: .9em; height: .64em; border-radius: 2px; border: 0; }
.q-act { margin-top: 42px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.q-act .btn { padding: 16px 30px; font-size: 1.0625rem; }
.q-act .searchbar-hint { max-width: 36ch; }

/* inverted reference band */
.band { background: var(--ink); color: #e9edf2; padding: 68px 0; }
.band h2 { color: #fff; }
.band .intro { margin-top: 14px; color: #95a2b3; max-width: 58ch; font-size: 1.0625rem; line-height: 1.6; }
.band-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 42px; border-top: 1px solid #28344a; }
.band-cell { padding: 24px 26px 28px; border-left: 1px solid #28344a; }
.band-cell:first-child { border-left: 0; padding-left: 0; }
.band-cell h3 { color: #fff; }
.band-cell p { margin-top: 9px; color: #93a0b2; font-size: .9375rem; line-height: 1.55; }
.band-cell .n { display: block; margin-bottom: 13px; font-size: .875rem; color: #5b6880; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .band-grid { grid-template-columns: 1fr 1fr; }
  .band-cell { border-left: 0; padding-left: 0; border-top: 1px solid #28344a; }
}

/* ruled reference rows — replaces card grids across the home page */
.rule-head { font-size: .9375rem; font-weight: 500; color: var(--ink-3); padding-bottom: 14px; border-bottom: 1px solid var(--ink); }
.idx-row {
  display: grid; grid-template-columns: 5fr 6fr auto; gap: 44px; align-items: baseline;
  padding: 28px 0; border-bottom: 1px solid var(--line-2);
}
.idx-row h2 { font-size: 1.6rem; letter-spacing: -.03em; }
.idx-row .sub { margin-top: 6px; font-size: .9375rem; color: var(--ink-3); }
.idx-row p { color: var(--ink-2); font-size: 1rem; line-height: 1.6; }
.idx-row .go { white-space: nowrap; font-size: .9375rem; }
.idx-row.art { grid-template-columns: 148px 5fr 5fr; gap: 36px; }
.idx-row .art-ref { font: 500 .875rem/1.6 var(--mono); color: var(--ink-3); }
@media (max-width: 900px) {
  .idx-row, .idx-row.art { grid-template-columns: 1fr; gap: 10px; }
}

/* ==========================================================================
   Pages — the homepage language carried onto the rest of the site.
   Two-tone headings, hairline rules, flat fills, modest radii, borders not
   shadows. Only new class names are introduced here: nothing in this block
   renames a class the scripts in /js write.
   ========================================================================== */

/* --------------------------------------------------------------- shell --- */
.page { padding: 52px 0 96px; }
.page-narrow { width: min(880px, 100% - 44px); }
.page-head { padding-bottom: 32px; margin-bottom: 40px; border-bottom: 1px solid var(--line); }
.page-head .eyebrow { margin-bottom: 16px; }
.page-head h1 { max-width: 16em; font-size: clamp(2rem, 3.9vw, 3rem); }
/* A heading goes two-tone only when it carries a <span> lead clause. */
.page-head h1:has(span) { color: var(--slate); }
.page-head h1 span { color: var(--ink); }
.page-head .lead { margin-top: 20px; max-width: 62ch; }
.page-head .lead b { color: var(--ink); font-weight: 600; }
.page-head .note-line { margin-top: 18px; }
.note-line { max-width: 74ch; font-size: .9375rem; line-height: 1.6; color: var(--ink-3); }

/* A section of a page: a short two-tone heading, then the content. */
.sec { margin-top: 60px; }
.sec > * + * { margin-top: 16px; }
.sec > h2 { font-size: clamp(1.4rem, 2.3vw, 1.85rem); max-width: 24em; }
.sec > h2:has(span) { color: var(--slate); }
.sec > h2 span { color: var(--ink); }

/* A bordered block that stands on its own. */
.sheet { padding: 28px 30px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.sheet > * + * { margin-top: 16px; }
.sheet > h2 { font-size: 1.3125rem; }
.sheet > h2 + p { margin-top: 8px; }
.sheet > h2:not(:first-child) { margin-top: 34px; padding-top: 28px; border-top: 1px solid var(--line); }

/* --------------------------------------------------------------- prose --- */
/* p carries no margin anywhere on the site, so running text sets its own rhythm. */
.prose > * + * { margin-top: 18px; }
.prose p, .prose li { font-size: 1.0625rem; line-height: 1.68; color: var(--ink-2); }
.prose h2 { margin-top: 52px; font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.prose h2:has(span) { color: var(--slate); }
.prose h2 span { color: var(--ink); }
.prose h2 + * { margin-top: 14px; }
.prose h3 { margin-top: 34px; }
.prose ul, .prose ol { margin: 0; padding-left: 21px; display: grid; gap: 11px; }
.prose .ticks { padding-left: 0; }
.prose b, .prose strong { color: var(--ink); font-weight: 600; }
.prose .muted { font-size: 1rem; line-height: 1.65; color: var(--ink-3); }
.prose .table-scroll { margin-top: 22px; }

/* -------------------------------------------------------------- wizard --- */
.field-group { margin-top: 26px; }
.field-group > .label { margin-bottom: 10px; font-size: .9375rem; font-weight: 600; color: var(--ink); }
.panel > .question:first-of-type { margin-top: 22px; }
.wizard-note { margin-bottom: 18px; }
/* days.js writes one column fewer than the wizard's route rows (no city). */
.stop.stay { grid-template-columns: 26px 1.5fr 168px 168px 34px; }
@media (max-width: 900px) { .stop.stay { grid-template-columns: 1fr 1fr; } }

/* -------------------------------------------------------------- report --- */
.report-head > div { flex: 1 1 320px; min-width: 0; }
.report-head .rubber { margin-bottom: 15px; }
.report-head h1 { max-width: 20ch; font-size: clamp(1.65rem, 2.9vw, 2.25rem); }
.trip-line { margin-top: 12px; }
/* report.js draws the readiness dial as <svg class="gauge">; .gauge above is a row. */
svg.gauge { display: block; width: 188px; height: 116px; flex: none; }

/* A heading inside a results panel: the same two-tone clause as the home page. */
.sec-h { margin-top: 44px; font-size: clamp(1.25rem, 2vw, 1.55rem); }
.sec-h:has(span) { color: var(--slate); }
.sec-h span { color: var(--ink); }
.sec-h + * { margin-top: 14px; }

/* The figures: label and amount on a hairline-ruled row. */
.funds-box { margin-top: 16px; padding: 2px 20px; }
.funds-box > div {
  display: flex; flex-wrap: wrap; gap: 4px 24px; align-items: baseline; justify-content: space-between;
  padding: 15px 0; border-top: 1px solid var(--line);
}
.funds-box > div:first-child { border-top: 0; }
.funds-box > div > span { max-width: 46ch; font-size: .9375rem; color: var(--ink-2); }
.funds-box > div > b {
  font-size: 1.5rem; font-weight: 600; letter-spacing: -.032em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.issues { margin-top: 16px; }
.issue .why { margin-top: 10px; font-size: 1rem; line-height: 1.62; color: var(--ink-2); }
.scope-note { margin-top: 22px; background: var(--bg); font-size: .9375rem; line-height: 1.6; color: var(--ink-3); }
.areas { margin-top: 24px; }

.checklist h3 { font-size: 1rem; font-weight: 600; letter-spacing: -.016em; }
.checklist label { display: flex; gap: 12px; align-items: flex-start; margin-top: 13px; cursor: pointer; }
.checklist input[type=checkbox] { flex: none; width: 17px; height: 17px; margin: 2px 0 0; accent-color: var(--accent); }
.checklist label:hover span { color: var(--ink); }

.report-actions { align-items: center; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); }

/* The free-movement page: there is no application, so there is no score. */
.no-visa { padding: 34px 36px; background: var(--bg); border: 1px solid var(--ok-line); border-left: 3px solid var(--ok); border-radius: var(--r-lg); }
.no-visa > * + * { margin-top: 16px; }
.no-visa h1 { max-width: 16ch; font-size: clamp(1.8rem, 3.3vw, 2.5rem); }
.no-visa ul { display: grid; gap: 11px; margin: 0; padding-left: 21px; }
.no-visa li { font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); }

.empty-state { padding: 72px 28px; }
.empty-state > * + * { margin-top: 16px; }
.empty-state h1 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); }
.empty-state p { max-width: 54ch; margin-inline: auto; }
.empty-state .btn { margin-top: 24px; }

/* -------------------------------------------------------- requirements --- */
.req-result { display: block; margin-top: 32px; }
.req-card > * + * { margin-top: 14px; }
.req-card h2 { margin-top: 14px; max-width: 22ch; font-size: clamp(1.4rem, 2.5vw, 1.95rem); }
.req-card h3 { margin-top: 30px; font-size: 1.0625rem; }
.req-card p { font-size: 1.0625rem; line-height: 1.68; color: var(--ink-2); }
.req-card p b, .req-card li b { color: var(--ink); font-weight: 600; }
.req-card .ticks { margin-top: 16px; }
.req-src { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--line); }
.req-scope { margin-top: 18px; }
.ticks.plain li { padding-left: 29px; font-size: 1rem; line-height: 1.6; }

/* ------------------------------------------------------- days and polls --- */
.release { display: grid; margin: 24px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.release li { padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 1rem; color: var(--ink-2); }
.release b { color: var(--ink); font-weight: 600; }
.count-grid { margin-top: 26px; }
.meter { margin-top: 18px; }

.vote-card {
  grid-template-columns: 1.3fr .7fr; gap: 48px; align-items: center;
  margin-top: 64px; padding-top: 34px; border-top: 1px solid var(--ink);
}
.vote-card h2 { margin-top: 12px; font-size: clamp(1.35rem, 2.2vw, 1.8rem); }
.vote-card h2:has(span) { color: var(--slate); }
.vote-card h2 span { color: var(--ink); }
.vote-card .muted { margin-top: 14px; font-size: 1rem; line-height: 1.65; }
@media (max-width: 980px) { .vote-card { grid-template-columns: 1fr; gap: 24px; } }

.pack-card > * + * { margin-top: 14px; }
.pack-card h2 { max-width: 26ch; }
.pack-card h2:has(span) { color: var(--slate); }
.pack-card h2 span { color: var(--ink); }
.poll { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line); }
.poll-buttons { margin-top: 14px; }

.site-footer p + p { margin-top: 14px; }

/* --------------------------------------------------- odds and ends ------ */
.sec p { font-size: 1.0625rem; line-height: 1.66; color: var(--ink-2); }
.sec .note-line { font-size: .9375rem; line-height: 1.6; color: var(--ink-3); }
.sec > .table-scroll { margin-top: 22px; }
.f-narrow { width: 180px; }
.keep-copy-box { margin-top: 30px; }
.vote-card .eyebrow { display: block; }
.vote-card .btn { white-space: nowrap; }

/* A plain list of rules — used where a tick would read as approval ("what this visa does not allow"). */
.rule-list { display: grid; gap: 10px; margin: 0; padding-left: 21px; }
.rule-list li { font-size: 1rem; line-height: 1.55; color: var(--ink-2); }
.sec-h + .rule-list, .sec-h + .good-list { margin-top: 14px; }
/* The destination is the first choice on the form, so it carries more weight than a pill row. */
.seg-dest { gap: 10px; }
.seg-dest label { padding: 13px 19px; font-size: 1rem; }

/* ===================================================== colour and plans ===
   Flat tints drawn from the palette already here: the navy ink, the cobalt
   accent and the status colours. No gradients, no glows, no blurred washes —
   a band is a flat fill with a hairline under it, nothing more.
   ========================================================================= */

/* Banded sections, so the page is not one unbroken sheet of white. */
.s-sub { background: var(--bg-sub); }
.s-tint { background: var(--accent-soft); border-bottom-color: var(--accent-line); }
.s-tint + .s-sec, .s-sub + .s-sec { border-top: 0; }

/* Every inner page opens with a short accent rule: one flat mark of colour. */
.page-head .eyebrow::before {
  content: ''; display: block; width: 44px; height: 3px; margin-bottom: 16px;
  background: var(--accent); border-radius: 2px;
}

/* ------------------------------------------------------------- numbers --- */
.rules-lead, .rules-note {
  max-width: 72ch; margin-inline: auto; text-align: center;
  font-size: .9375rem; line-height: 1.6; color: var(--ink-3);
}
.rules-lead { margin-top: 16px; }
.rules-note { margin-top: 30px; }
.rules-sub {
  margin-top: 56px; text-align: center; font-size: 1.0625rem; font-weight: 500;
  letter-spacing: -.018em; color: var(--ink-2);
}
.rules-row-fee { margin-top: 20px; }
/* The accent tick on the top rule, moved along and recoloured for the second row. */
.rules-row-fee::before { left: 56%; width: 20%; background: var(--ok); }

/* ------------------------------------------------------------- pricing --- */
.pricing { margin-top: 46px; align-items: stretch; }
.plan { display: flex; flex-direction: column; }
.plan > h3 { margin-top: 15px; font-size: 1.3125rem; letter-spacing: -.026em; }
.plan-tag {
  display: inline-flex; align-self: flex-start; align-items: center;
  padding: 4px 11px; border-radius: var(--r-pill);
  font-size: .8125rem; font-weight: 600; letter-spacing: -.008em;
  background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok);
}
.plan-tag-pro { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent-2); }
.plan-price {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px;
  margin: 16px 0 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line);
}
.plan-price b { font-size: 2.5rem; font-weight: 600; letter-spacing: -.045em; line-height: 1; color: var(--ink); }
.plan-price span { font-size: .9375rem; color: var(--ink-3); }
.plan .good-list { margin-bottom: 26px; }
.plan-note { margin: 0 0 18px; font-size: .9375rem; line-height: 1.55; color: var(--ink-3); }
.plan .btn { align-self: flex-start; margin-top: auto; }
.plan .poll { margin-top: auto; }

/* The free plan is the one that exists, so it carries the ink border. */
.plan-free { background: var(--bg); border-color: var(--ink); }
.plan-pro { background: var(--bg); border-color: var(--accent-line); }
.plan-pro .plan-price b { color: var(--accent); }

/* Two products, one family: the same card, the same order of parts. Free is ink-bordered because
   it exists today; the Builder carries the cobalt accent and its "coming soon" status. */
.products { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; }
.product { padding: 30px 30px 28px; }
.product-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.product-name { display: flex; flex-direction: column; font-size: 1.375rem; font-weight: 600; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); }
.product-name small { margin-bottom: 4px; font-size: .8125rem; font-weight: 500; letter-spacing: -.005em; color: var(--ink-3); }
.product .plan-tag { flex: none; }
.product-desc { margin-top: 12px; font-size: .9688rem; line-height: 1.6; color: var(--ink-2); }
.product .plan-price { margin: 20px 0 0; padding-bottom: 0; border-bottom: 0; }
.product-note { margin: 8px 0 0; font-size: .875rem; color: var(--ink-3); }
.product-list {
  list-style: none; margin: 22px 0 26px; padding: 0; border-top: 1px solid var(--line);
}
.product-list li {
  display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line);
  font-size: .9375rem; line-height: 1.45; color: var(--ink);
}
.product-list li::before { content: ''; flex: none; width: 6px; height: 6px; margin-top: .55em; border-radius: 50%; background: var(--line-3); }
.product-builder .product-list li::before { background: var(--accent); }
.product-list-2 { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.product .btn { align-self: flex-start; margin-top: auto; }
.product .btn[hidden] { display: none; }
.product .poll { margin-top: auto; }
.product-free { border-color: var(--ink); }
.product-builder { border-color: var(--accent-line); }
.product-builder .plan-price b { color: var(--accent); }

@media (max-width: 860px) {
  .products { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .product { padding: 24px 20px 22px; }
  .product-list-2 { grid-template-columns: 1fr; }
  .product .btn { align-self: stretch; justify-content: center; }
}

.plans-lead {
  max-width: 64ch; margin: 18px auto 0; text-align: center;
  font-size: 1.0625rem; line-height: 1.6; color: var(--ink-2);
}

@media (max-width: 860px) {
  .plan-price b { font-size: 2.1rem; }
}

/* ---------------------------------------------------------- date picker ---
   js/datepicker.js. The field matches the other inputs; the calendar is the
   one thing here that floats, so it is the one thing with a shadow. */
.dp-field {
  width: 100%; display: flex; align-items: center; gap: 10px;
  background: var(--bg); color: var(--ink); text-align: left; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  padding: 11px 13px; font: 400 1rem/1.4 var(--sans); letter-spacing: -.01em;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.dp-field svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.dp-field span { min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.dp-field.is-empty { color: var(--ink-3); }
.dp-field:hover { border-color: var(--line-3); }
.dp-field[aria-expanded="true"], .dp-field:focus-visible {
  outline: none; border-color: var(--accent-3); box-shadow: 0 0 0 3px var(--accent-soft);
}
.dp-field[aria-expanded="true"] svg { color: var(--accent); }
.f.invalid .dp-field { border-color: var(--danger); }
.stop .dp-field { padding: 9px 11px; font-size: .9375rem; }

.dp-pop {
  position: fixed; z-index: 130; width: 324px; padding: 14px;
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r);
  box-shadow: var(--shadow-pop); font-family: var(--sans); color: var(--ink);
}
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 10px; }
.dp-nav {
  width: 34px; height: 34px; display: grid; place-items: center; flex: none; cursor: pointer;
  background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.dp-nav svg { width: 16px; height: 16px; }
.dp-nav:hover:not(:disabled) { background: var(--bg-sub); color: var(--ink); }
.dp-nav:disabled { opacity: .35; cursor: default; }
.dp-title {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; cursor: pointer;
  background: none; border: 0; border-radius: var(--r-sm);
  font: 600 1rem var(--sans); letter-spacing: -.018em; color: var(--ink);
}
.dp-title svg { width: 14px; height: 14px; color: var(--ink-3); }
.dp-title:hover { background: var(--bg-sub); }

.dp-week, .dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.dp-week { margin-bottom: 4px; }
.dp-week span { padding: 4px 0; text-align: center; font-size: .75rem; font-weight: 600; color: var(--ink-3); }
.dp-grid { row-gap: 2px; }
.dp-day {
  height: 38px; border: 0; background: none; cursor: pointer; border-radius: var(--r-sm);
  font: 500 .9375rem var(--sans); color: var(--ink); font-variant-numeric: tabular-nums;
}
.dp-day:hover:not(:disabled) { background: var(--bg-sunk); }
.dp-day.is-out { color: var(--ink-3); }
.dp-day.is-today { box-shadow: inset 0 0 0 1px var(--accent-line); color: var(--accent-2); font-weight: 600; }
.dp-day.is-range { background: var(--accent-soft); border-radius: 0; color: var(--ink); }
.dp-day.is-selected, .dp-day.is-start, .dp-day.is-end { background: var(--accent); color: #fff; box-shadow: none; font-weight: 600; }
.dp-day.is-start { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.dp-day.is-end { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
.dp-day.is-start.is-end { border-radius: var(--r-sm); }
.dp-day:disabled { color: var(--line-3); cursor: not-allowed; text-decoration: line-through; text-decoration-color: var(--line-2); }
.dp-day:focus-visible, .dp-cell:focus-visible { outline: 2px solid var(--accent-3); outline-offset: 1px; position: relative; z-index: 1; }

.dp-cells { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.dp-cell {
  height: 48px; cursor: pointer; background: var(--bg); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--r-sm); font: 500 .9375rem var(--sans);
}
.dp-cell:hover:not(:disabled) { background: var(--bg-sub); border-color: var(--line-3); }
.dp-cell.is-current { border-color: var(--accent-line); color: var(--accent-2); }
.dp-cell.is-selected { background: var(--accent); border-color: var(--accent); color: #fff; }
.dp-cell:disabled { color: var(--line-3); cursor: not-allowed; }

.dp-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
}
.dp-hint { font-size: .8125rem; color: var(--ink-3); }
.dp-acts { display: flex; gap: 6px; }
.dp-link {
  padding: 6px 11px; cursor: pointer; background: var(--bg); color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: var(--r-sm); font: 500 .8125rem var(--sans);
}
.dp-link:hover:not(:disabled) { background: var(--bg-sub); color: var(--ink); }
.dp-link:disabled { opacity: .4; cursor: default; }

/* On a phone the calendar is a sheet along the bottom, with bigger days to tap. */
.dp-scrim { position: fixed; inset: 0; z-index: 129; background: rgba(10, 37, 64, .32); }
.dp-pop.dp-sheet {
  left: 0; right: 0; bottom: 0; top: auto; width: auto;
  border-radius: var(--r-lg) var(--r-lg) 0 0; border-bottom: 0;
  padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
}
.dp-sheet-title { display: block; margin-bottom: 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.016em; }
.dp-sheet .dp-day { height: 44px; font-size: 1rem; }
.dp-sheet .dp-cell { height: 52px; }

/* -------------------------------------------------------------- results --- */
.result-card {
  margin-top: 24px; padding: 26px 28px; background: var(--bg);
  border: 1px solid var(--line); border-left: 3px solid var(--neutral); border-radius: var(--r-lg);
}
.result-card.tone-ok { border-left-color: var(--ok); }
.result-card.tone-info { border-left-color: var(--accent); }
.result-card.tone-warn { border-left-color: var(--warn); }
.result-card.tone-danger { border-left-color: var(--danger); }
.result-kicker { display: block; font-size: .875rem; font-weight: 600; color: var(--ink-3); }
.result-card .chip { margin-top: 10px; }
.result-card h2 { margin-top: 12px; font-size: clamp(1.4rem, 2.5vw, 1.85rem); max-width: 26ch; }
.result-card > p { margin-top: 10px; font-size: 1.0625rem; line-height: 1.65; color: var(--ink-2); max-width: 66ch; }
.result-steps-h { margin-top: 26px; font-size: 1.0625rem; }
.result-steps { counter-reset: rs; list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.result-steps li {
  counter-increment: rs; position: relative; padding-left: 36px;
  font-size: 1rem; line-height: 1.55; color: var(--ink-2);
}
.result-steps li::before {
  content: counter(rs); position: absolute; left: 0; top: 0; width: 24px; height: 24px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent-2); font-size: .8125rem; font-weight: 600;
}
.result-apply { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 22px; }
.result-apply .note-line { max-width: 52ch; }
.fix-group-h { margin-top: 30px; font-size: 1.0625rem; }
.fix-group-h:first-child { margin-top: 0; }
.fix-group-h + .issues { margin-top: 12px; }
.fix-none { margin-top: 10px; font-size: 1rem; color: var(--ok); }
.issue .lbl { display: block; margin-bottom: 3px; font-size: .8125rem; font-weight: 600; color: var(--ink); }

@media print { .dp-pop, .dp-scrim { display: none !important; } }

@media print {
  .no-print, .site-header, .site-footer, .tabs, .report-actions, .doc-tools, .add-stop, .rm { display: none !important; }
  .band { background: #fff !important; color: #000 !important; }
  body { background: #fff; font-size: 11pt; }
  .wrap { width: 100%; }
  .paper-card, .areas, .issue, .checklist, .req-card, .wizard, .report-head { box-shadow: none; break-inside: avoid; }
  a { color: var(--ink); text-decoration: none; }
  .print-all .tab-panel, .tab-panel.printing { display: block !important; }
}

/* ---------------------------------------------------------- page colour ---
   Flat fills from the palette only. The pages people work in (check, results,
   90/180, requirements) sit on a light grey ground so the white cards read as
   surfaces; every inner page opens on a cobalt band; results take the colour
   of their outcome. */
body.app-page { background: var(--bg-sub); }
body.app-page .site-header { background: rgba(246, 248, 248, .86); }
body.app-page .site-footer { background: var(--bg); }
body.app-page .funds-box, body.app-page .empty-state { background: var(--bg); }

.page > .page-head:first-child {
  margin-top: -52px; padding-top: 48px;
  background: var(--accent-soft);
  box-shadow: 0 0 0 100vmax var(--accent-soft);
  clip-path: inset(0 -100vmax);
}

.result-card.tone-ok { background: var(--ok-soft); border-color: var(--ok-line); border-left-color: var(--ok); }
.result-card.tone-info, .result-card.tone-danger { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.result-card.tone-warn { background: var(--warn-soft); border-color: var(--warn-line); border-left-color: var(--warn); }
.result-card .result-steps li::before { background: var(--bg); box-shadow: inset 0 0 0 1px var(--accent-line); }
.result-card .chip { background: var(--bg); }
@media print { body.app-page { background: #fff; } .page > .page-head:first-child { box-shadow: none; background: none; } }
