@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-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; }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 700; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/serif-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; }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(/fonts/serif-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/serif-italic-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; }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(/fonts/serif-italic-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }


/* TravelShield — premium light ("Ivory & Navy"). Every colour pair is checked in tests/palette.mjs (WCAG 2.2: body
   text ≥ 7:1, labels ≥ 4.5:1, borders and meter parts ≥ 3:1). Levels are never colour alone: word + shape + position.
   Research behind it (Oct 2026): dark text on light reads faster and more accurately (also at night); stress needs one
   big instruction, few choices, big targets; gold only large or decorative on light. */
:root {
  --bg: #faf8f4;
  --surface: #ffffff;
  --fill: #f2efe8;
  --fill-2: #e9e5dc;
  --hair: #e4dfd4;
  --edge: #858a93;
  --text: #14171f;
  --text-2: #4a505c;
  --text-3: #5d6370;
  --navy: #13284b;
  --navy-2: #1d3864;
  --navy-tint: #e9eef6;
  --gold: #b08a3e;
  --gold-text: #8a6a26;
  --gold-tint: #f6efe1;
  --safe: #0b7a8a;
  --alert: #ffd43b;
  --alert-edge: #5c4a00;
  --unsafe: #e8590c;
  --dangerous: #a3122a;
  --sos: #b42318;
  --shadow: 0 1px 2px rgba(20, 23, 31, 0.04), 0 8px 24px rgba(20, 23, 31, 0.06);
  --shadow-up: 0 2px 4px rgba(20, 23, 31, 0.05), 0 14px 34px rgba(20, 23, 31, 0.09);
  --radius: 16px;
  --radius-l: 22px;
  --serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --top: env(safe-area-inset-top, 0px);
  --bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  color: var(--text);
  background: linear-gradient(180deg, #fdfcfa 0, var(--bg) 520px);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
}
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(12px + var(--top)) 20px 12px;
  background: rgba(250, 248, 244, 0.86);
  -webkit-backdrop-filter: saturate(160%) blur(12px); backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid rgba(228, 223, 212, 0.7);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; letter-spacing: -0.01em; font-weight: 650; font-size: 18px; color: var(--navy); }
.brand svg { width: 28px; height: 28px; }
.brand b { font-weight: 650; }
.brand span { color: var(--gold-text); font-weight: 600; }
.top-link { font-size: 15px; font-weight: 550; color: var(--navy); text-decoration: none; padding: 10px 16px; min-height: 44px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow); }
.top-link:hover { border-color: var(--edge); }

main { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px calc(40px + var(--bottom)); }
.view { animation: in 0.45s var(--ease) both; }
@keyframes in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-text);
  padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(176, 138, 62, 0.35); background: var(--gold-tint);
}
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(176, 138, 62, 0.5); animation: pulse 2.4s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(176, 138, 62, 0.45); } 70% { box-shadow: 0 0 0 9px rgba(176, 138, 62, 0); } 100% { box-shadow: 0 0 0 0 rgba(176, 138, 62, 0); } }
h1, h2, h3 { margin: 0; font-weight: 400; }
.display { font-family: var(--serif); font-size: clamp(50px, 12vw, 96px); line-height: 1; letter-spacing: -0.02em; color: var(--navy); }
.display em, .q em { font-style: italic; color: var(--gold); }
.lead { font-size: clamp(18px, 2.2vw, 21px); line-height: 1.55; color: var(--text-2); max-width: 34em; margin: 0; }
.q { font-family: var(--serif); font-size: clamp(38px, 9vw, 54px); line-height: 1.05; letter-spacing: -0.015em; color: var(--navy); }
.h2 { font-family: var(--serif); font-size: clamp(32px, 5.5vw, 42px); line-height: 1.1; letter-spacing: -0.01em; color: var(--navy); }
.label { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }

/* ---------- levels: colour + word + shape + position, never colour alone ---------- */
.lvl { display: inline-flex; align-items: center; gap: 10px; border-radius: 999px; font-weight: 650; letter-spacing: -0.005em; white-space: nowrap; }
.lvl svg { flex: none; }
.lvl.big { padding: 9px 18px 9px 12px; font-size: 22px; }
.lvl.big svg { width: 28px; height: 28px; }
.lvl.is-safe { background: var(--safe); color: #fff; }
.lvl.is-alert { background: var(--alert); color: var(--text); box-shadow: inset 0 0 0 1.5px var(--alert-edge); }
.lvl.is-unsafe { background: var(--unsafe); color: var(--text); }
.lvl.is-dangerous { background: var(--dangerous); color: #fff; }
.shape { display: inline-block; flex: none; }
.shape.is-safe { color: var(--safe); }
.shape.is-alert { color: #d4a800; }
.shape.is-unsafe { color: var(--unsafe); }
.shape.is-dangerous { color: var(--dangerous); }
.lvl-word { font-family: var(--serif); font-size: clamp(40px, 9vw, 56px); line-height: 1; color: var(--navy); }
.meter-row { display: flex; align-items: center; gap: 14px; }
.meter { display: flex; gap: 5px; width: 100%; }
.meter i { flex: 1; height: 10px; border-radius: 6px; background: var(--hair); transform-origin: left; }
.meter.big i { height: 12px; }
.meter.on-safe i:nth-child(-n+1) { background: var(--safe); }
.meter.on-alert i:nth-child(-n+2) { background: var(--alert); box-shadow: inset 0 0 0 1px var(--alert-edge); }
.meter.on-unsafe i:nth-child(-n+3) { background: var(--unsafe); }
.meter.on-dangerous i:nth-child(-n+4) { background: var(--dangerous); }
.meter.animate i { animation: grow 0.8s var(--ease) both; }
.meter.animate i:nth-child(2) { animation-delay: 0.1s; }
.meter.animate i:nth-child(3) { animation-delay: 0.2s; }
.meter.animate i:nth-child(4) { animation-delay: 0.3s; }
@keyframes grow { from { transform: scaleX(0); opacity: 0.3; } to { transform: none; opacity: 1; } }
.of4 { font-size: 13px; font-weight: 600; color: var(--text-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 550; padding: 5px 12px 5px 8px; min-height: 32px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); color: var(--text); white-space: nowrap; }
.pill .shape svg { width: 18px; height: 18px; display: block; }
.pill .when { color: var(--text-3); font-weight: 500; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- home ---------- */
.hero { display: grid; justify-items: center; text-align: center; gap: 22px; padding: clamp(34px, 8vh, 84px) 0 26px; }
.choices { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); width: 100%; max-width: 760px; margin: 16px auto 0; }
@media (min-width: 720px) { .choices { grid-template-columns: 1fr 1fr; } }
.choice {
  position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px;
  text-align: left; padding: 22px; min-height: 96px; border-radius: var(--radius-l); border: 1px solid var(--hair); background: var(--surface);
  text-decoration: none; color: var(--text); box-shadow: var(--shadow);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s;
}
.choice:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--edge); }
.choice.primary { background: var(--navy); border-color: var(--navy); color: #fff; }
.choice.primary:hover { background: var(--navy-2); }
.choice .icon { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--fill); color: var(--navy); }
.choice.primary .icon { background: rgba(255, 255, 255, 0.12); color: #e7cf98; }
.choice .icon svg { width: 25px; height: 25px; }
.choice b { display: block; font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.choice small { display: block; color: var(--text-2); font-size: 15px; margin-top: 2px; }
.choice.primary small { color: rgba(255, 255, 255, 0.82); }
.choice .go { display: grid; color: var(--text-3); transition: transform 0.35s var(--ease); }
.choice.primary .go { color: #fff; }
.choice .go svg, .trip-row > svg { width: 22px; height: 22px; }
.choice:hover .go { transform: translateX(4px); }
.assure { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; margin-top: 6px; color: var(--text-2); font-size: 15px; font-weight: 500; }
.assure span { display: inline-flex; align-items: center; gap: 8px; }
.assure svg { width: 18px; height: 18px; color: var(--gold); }

.section { margin: clamp(56px, 10vh, 104px) auto 0; max-width: 980px; }
.section-head { text-align: center; display: grid; gap: 12px; justify-items: center; margin-bottom: 28px; }
.levels { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.level-card { padding: 20px; border-radius: var(--radius-l); border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.level-card p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.promises { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.promise { padding: 24px; border-radius: var(--radius-l); background: var(--surface); border: 1px solid var(--hair); box-shadow: var(--shadow); }
.promise svg { width: 28px; height: 28px; color: var(--gold); }
.promise h3 { font-size: 19px; font-weight: 650; margin: 14px 0 6px; letter-spacing: -0.01em; color: var(--navy); }
.promise p { margin: 0; color: var(--text-2); font-size: 16px; }
.trips { max-width: 760px; margin: 32px auto 0; display: grid; gap: 10px; width: 100%; }
.trip-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; text-align: left; }
.trip-row:hover { border-color: var(--edge); }
.trip-row > span:nth-child(2) { flex: 1; min-width: 0; }
.trip-row b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trip-row small { color: var(--text-3); font-size: 14px; }
.trip-row .shape svg { width: 22px; height: 22px; display: block; }
.trip-row.preparing { max-width: 760px; margin: 22px auto 0; width: 100%; border-color: rgba(19, 40, 75, 0.35); background: var(--navy-tint); }
.spin { width: 22px; height: 22px; border-radius: 50%; border: 2.5px solid var(--navy); border-top-color: transparent; animation: spin 0.9s linear infinite; flex: none; }

/* ---------- question flow ---------- */
.flow { max-width: 620px; margin: 0 auto; min-height: calc(100dvh - 80px); display: flex; flex-direction: column; }
.flow-top { display: flex; align-items: center; gap: 14px; padding: 10px 0 18px; }
.back { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow); display: grid; place-items: center; flex: none; color: var(--navy); }
.back:hover { border-color: var(--edge); }
.back svg { width: 20px; height: 20px; }
.progress { flex: 1; height: 5px; border-radius: 5px; background: var(--hair); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--navy); border-radius: 5px; transition: width 0.5s var(--ease); }
.count { font-size: 14px; font-weight: 600; color: var(--text-3); font-variant-numeric: tabular-nums; min-width: 46px; text-align: right; }
.step { flex: 1; display: flex; flex-direction: column; gap: 22px; padding-top: clamp(6px, 3vh, 34px); animation: stepin 0.35s var(--ease) both; }
.step.back-anim { animation-name: stepback; }
@keyframes stepin { from { opacity: 0; transform: translateX(22px); } to { opacity: 1; transform: none; } }
@keyframes stepback { from { opacity: 0; transform: translateX(-22px); } to { opacity: 1; transform: none; } }
.step .hint { margin: -8px 0 0; color: var(--text-2); font-size: 18px; }
.bodyguard { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); font-size: 16px; }
.bodyguard svg { width: 22px; height: 22px; color: var(--gold); flex: none; margin-top: 1px; }

.field { position: relative; }
.input {
  width: 100%; font-size: 19px; min-height: 60px; padding: 17px 20px 17px 54px; border-radius: var(--radius);
  border: 1.5px solid var(--edge); background: var(--surface); outline: none; color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.input.plain { padding-left: 20px; }
.input::placeholder { color: var(--text-3); }
.input:focus { border-color: var(--navy); box-shadow: 0 0 0 4px rgba(19, 40, 75, 0.14); }
.field > svg { position: absolute; left: 19px; top: 50%; transform: translateY(-50%); width: 22px; height: 22px; color: var(--text-3); pointer-events: none; }
textarea.input { min-height: 104px; resize: vertical; font-size: 17px; line-height: 1.5; }
.suggest { margin-top: 10px; border-radius: var(--radius); border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow-up); overflow: hidden; }
.suggest button { width: 100%; display: flex; align-items: center; gap: 14px; padding: 14px 18px; min-height: 64px; text-align: left; background: none; border: 0; border-top: 1px solid var(--hair); }
.suggest button:first-child { border-top: 0; }
.suggest button:hover, .suggest button.active { background: var(--navy-tint); }
.suggest svg { width: 20px; height: 20px; color: var(--navy); flex: none; }
.suggest b { font-weight: 600; }
.suggest small { display: block; color: var(--text-3); font-size: 14.5px; }
.picked { display: flex; align-items: center; gap: 14px; padding: 16px 18px; min-height: 64px; border-radius: var(--radius); border: 1.5px solid var(--navy); background: var(--navy-tint); }
.picked svg { width: 22px; height: 22px; color: var(--navy); flex: none; }
.picked span { flex: 1; min-width: 0; }
.picked b { display: block; font-weight: 650; }
.picked small { color: var(--text-2); }
.link { background: none; border: 0; padding: 10px 2px; min-height: 44px; color: var(--navy); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

.options { display: grid; gap: 10px; }
.option {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left; min-height: 68px;
  padding: 14px 18px; border-radius: var(--radius); border: 1.5px solid var(--hair); background: var(--surface); box-shadow: var(--shadow);
  transition: border-color 0.2s, background 0.2s, transform 0.25s var(--ease);
}
.option:hover { border-color: var(--edge); }
.option:active { transform: scale(0.99); }
.option[aria-pressed='true'] { border-color: var(--navy); background: var(--navy-tint); }
.option .oi { width: 42px; height: 42px; border-radius: 12px; background: var(--fill); color: var(--navy); display: grid; place-items: center; flex: none; }
.option[aria-pressed='true'] .oi { background: var(--navy); color: #fff; }
.option .oi svg { width: 22px; height: 22px; }
.option b { font-weight: 650; font-size: 18px; display: block; }
.option small { color: var(--text-2); font-size: 15px; }
.option .tick { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--edge); display: grid; place-items: center; flex: none; color: #fff; }
.option[aria-pressed='true'] .tick { background: var(--navy); border-color: var(--navy); }
.option .tick svg { width: 15px; height: 15px; opacity: 0; }
.option[aria-pressed='true'] .tick svg { opacity: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  min-height: 48px; padding: 11px 18px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface);
  font-size: 16px; font-weight: 550; color: var(--text); transition: border-color 0.2s, background 0.2s, color 0.2s;
}
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed='true'] { background: var(--navy); border-color: var(--navy); color: #fff; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--fill); border: 1px solid var(--hair); }
.seg button { border: 0; background: none; min-height: 42px; padding: 8px 18px; border-radius: 999px; font-weight: 600; font-size: 16px; color: var(--text-2); transition: background 0.2s, color 0.2s; }
.seg button[aria-pressed='true'] { background: var(--navy); color: #fff; }
.row-q { display: grid; gap: 12px; }
.row-q > span { font-weight: 650; font-size: 18px; }

.stepper { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; border: 1.5px solid var(--edge); background: var(--surface); }
.stepper button { width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--fill); color: var(--navy); display: grid; place-items: center; }
.stepper button svg { width: 20px; height: 20px; }
.stepper button:hover { background: var(--fill-2); }
.stepper output { min-width: 96px; text-align: center; font-size: 19px; font-weight: 650; font-variant-numeric: tabular-nums; }
.date-input { font-size: 18px; min-height: 52px; padding: 12px 16px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--surface); color-scheme: light; }
.until { color: var(--text-2); font-size: 16px; font-weight: 500; }

.dock {
  position: sticky; bottom: 0; z-index: 10; margin-top: auto;
  padding: 22px 0 calc(18px + var(--bottom));
  background: linear-gradient(to top, var(--bg) 64%, rgba(250, 248, 244, 0));
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 15px 26px; border-radius: 14px; border: 1.5px solid var(--edge); background: var(--surface); color: var(--navy);
  font-weight: 650; font-size: 17px; letter-spacing: -0.005em; text-decoration: none; box-shadow: var(--shadow);
  transition: transform 0.25s var(--ease), background 0.2s, border-color 0.2s, box-shadow 0.25s;
}
.btn:hover { border-color: var(--navy); }
.btn:active { transform: scale(0.985); }
/* .gold is the main action (kept name): solid navy, white text, 14.7:1 */
.btn.gold { background: var(--navy); color: #fff; border-color: var(--navy); box-shadow: 0 8px 22px -10px rgba(19, 40, 75, 0.55); }
.btn.gold:hover { background: var(--navy-2); }
.btn.wide { width: 100%; }
.btn[disabled] { pointer-events: none; box-shadow: none; }
.btn.gold[disabled] { background: var(--fill-2); color: var(--text-3); border-color: var(--fill-2); }
.btn svg { width: 20px; height: 20px; }
.suggesting .dock { display: none; }

/* ---------- working ---------- */
.working { max-width: 520px; margin: 0 auto; min-height: calc(100dvh - 90px); display: grid; align-content: center; justify-items: center; gap: 26px; text-align: center; padding-bottom: 40px; }
.shield-anim { position: relative; width: 132px; height: 132px; }
.shield-anim svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.shield-anim .ring { animation: spin 2.8s linear infinite; transform-origin: 50% 50%; }
.shield-anim .ring2 { animation: spin 5.5s linear infinite reverse; transform-origin: 50% 50%; }
@keyframes spin { to { transform: rotate(360deg); } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; width: 100%; text-align: left; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px; border-radius: 14px; color: var(--text-3); font-size: 17px; transition: color 0.3s, background 0.3s; }
.steps li.now { color: var(--text); background: var(--surface); box-shadow: var(--shadow); font-weight: 600; }
.steps li.done { color: var(--text-2); }
.steps .st { width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--hair); display: grid; place-items: center; flex: none; color: #fff; }
.steps li.now .st { border-color: var(--navy); border-top-color: transparent; animation: spin 0.9s linear infinite; }
.steps li.done .st { border-color: var(--safe); background: var(--safe); }
.steps .st svg { width: 13px; height: 13px; opacity: 0; }
.steps li.done .st svg { opacity: 1; }
.steps em { font-style: normal; margin-left: auto; font-size: 14px; color: var(--gold-text); }

/* ---------- briefing ---------- */
.brief { max-width: 820px; margin: 0 auto; display: grid; gap: 16px; padding-top: 10px; }
.brief-head { display: grid; gap: 10px; padding: 6px 0 6px; }
.brief-head .h2 { font-size: clamp(44px, 9vw, 64px); }
.meta { display: flex; flex-wrap: wrap; gap: 8px; }
.meta .pill { padding-left: 12px; }
.card { border-radius: var(--radius-l); border: 1px solid var(--hair); background: var(--surface); box-shadow: var(--shadow); padding: 24px; }
.card > .label { display: block; margin-bottom: 14px; }
.card h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; color: var(--navy); }
.overall { display: grid; gap: 14px; padding: 26px; }
.overall .headline { font-size: 24px; font-weight: 700; line-height: 1.3; letter-spacing: -0.015em; }
.overall p { margin: 0; color: var(--text-2); font-size: 18px; }
.prepared { font-size: 14px; color: var(--text-3); }
.says { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
.says li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: baseline; font-size: 18px; font-weight: 500; }
.says li::before { counter-increment: s; content: counter(s); font-family: var(--serif); font-size: 32px; color: var(--gold); line-height: 1; }
.map-card { padding: 0; overflow: hidden; }
.map-wrap { position: relative; height: clamp(300px, 52vh, 460px); background: #eceae4; }
.map-wrap > .map { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-tools { position: absolute; z-index: 2; top: 12px; left: 12px; right: 12px; display: flex; justify-content: space-between; gap: 10px; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .seg { background: rgba(255, 255, 255, 0.94); box-shadow: var(--shadow-up); }
.map-legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 14px 20px; border-top: 1px solid var(--hair); font-size: 14px; color: var(--text-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 7px; }
.map-legend .shape svg { width: 18px; height: 18px; display: block; }
.mk { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; border: 2.5px solid #fff; box-shadow: 0 4px 12px rgba(20, 23, 31, 0.28); }
.mk svg { width: 16px; height: 16px; }
.mk.stay { background: var(--navy); color: #fff; width: 38px; height: 38px; }
.mk.you { background: var(--navy); width: 22px; height: 22px; box-shadow: 0 0 0 8px rgba(19, 40, 75, 0.18), 0 4px 12px rgba(20, 23, 31, 0.3); }
.mk.hospital { background: #fff; color: var(--sos); border-color: var(--sos); }
.mk.police { background: #2f5bd0; color: #fff; }
.mk.pharmacy { background: #1f7a4d; color: #fff; }
.maplibregl-popup-content { border-radius: 12px !important; font: 600 14px var(--sans) !important; color: var(--text) !important; padding: 10px 14px !important; box-shadow: var(--shadow-up) !important; }

.list { display: grid; gap: 2px; }
.item { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 16px 0; border-top: 1px solid var(--hair); align-items: start; }
.item:first-child { border-top: 0; padding-top: 2px; }
.item b { font-weight: 650; font-size: 18px; }
.item .lv2 { display: flex; gap: 6px; flex-wrap: wrap; }
.item p { grid-column: 1 / -1; margin: 0; color: var(--text-2); font-size: 16.5px; }
@media (min-width: 640px) { .item { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; } .item .lv2 { justify-content: flex-end; } }
.grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.bul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bul li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; color: var(--text); font-size: 17px; }
.bul li::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); margin-top: 10px; }
.plan { display: grid; gap: 6px; padding: 16px 0; border-top: 1px solid var(--hair); }
.plan:first-child { border-top: 0; padding-top: 2px; }
.plan-top { display: flex; align-items: center; gap: 10px; justify-content: space-between; }
.plan p { margin: 0; color: var(--text-2); font-size: 16.5px; }
.plan small { color: var(--text-3); font-size: 14.5px; }
.places { display: grid; gap: 8px; }
.place { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 14px; min-height: 68px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--hair); text-decoration: none; }
.place:hover { border-color: var(--edge); }
.place .mk { width: 38px; height: 38px; box-shadow: none; }
.place b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 650; line-height: 1.3; }
.place small { color: var(--text-3); font-size: 14.5px; }
.place .go { font-size: 15px; color: var(--navy); font-weight: 650; white-space: nowrap; text-decoration: underline; text-underline-offset: 3px; }
.sos { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.sos a { display: grid; gap: 2px; padding: 14px 18px; min-height: 76px; border-radius: var(--radius); background: #fdf1f0; border: 1.5px solid rgba(180, 35, 24, 0.35); text-decoration: none; }
.sos a:hover { border-color: var(--sos); }
.sos a b { font-size: 30px; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; color: var(--sos); line-height: 1.15; }
.sos a small { color: var(--text-2); font-weight: 600; font-size: 14px; }
.checks { display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-height: 56px; border-radius: 14px; background: var(--surface); border: 1px solid var(--hair); cursor: pointer; font-size: 17px; }
.check input { appearance: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--edge); display: grid; place-items: center; margin: 0; flex: none; background: #fff; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { content: ''; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.check input:checked + span { color: var(--text-3); text-decoration: line-through; }
.note { display: flex; gap: 12px; padding: 16px 18px; border-radius: var(--radius); border: 1px solid rgba(176, 138, 62, 0.45); background: var(--gold-tint); color: var(--text); font-size: 16px; }
.note svg { width: 22px; height: 22px; color: var(--gold-text); flex: none; margin-top: 1px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; padding: 18px 0 6px; }
.fine { text-align: center; font-size: 14px; color: var(--text-3); max-width: 560px; margin: 24px auto 0; }

/* ---------- now ---------- */
.now-start { max-width: 560px; margin: 0 auto; display: grid; gap: 20px; padding-top: clamp(10px, 4vh, 40px); }
.now-res { max-width: 680px; margin: 0 auto; display: grid; gap: 16px; padding-top: 6px; }
.now-main { display: grid; gap: 14px; padding: 24px; }
.now-main .where { font-size: 15px; color: var(--text-3); display: flex; gap: 8px; align-items: flex-start; }
.now-main .where svg { width: 17px; height: 17px; flex: none; margin-top: 2px; color: var(--navy); }
.now-main .instruction { font-size: 24px; font-weight: 700; line-height: 1.35; letter-spacing: -0.015em; margin: 0; }

.error-card { max-width: 520px; margin: 12vh auto 0; text-align: center; display: grid; gap: 16px; justify-items: center; }
.error-card svg { width: 42px; height: 42px; color: var(--gold-text); }

footer { text-align: center; padding: 50px 20px calc(30px + var(--bottom)); color: var(--text-3); font-size: 14px; }
footer a { color: var(--text-2); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + var(--bottom)); z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  padding: 14px 22px; border-radius: 999px; background: var(--navy); color: #fff; font-weight: 600; font-size: 16px;
  box-shadow: 0 16px 40px -10px rgba(19, 40, 75, 0.5); transition: opacity 0.3s var(--ease), transform 0.4s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
body[data-page='plan'] footer, body[data-page='now'] footer { display: none; }

@media (max-width: 520px) {
  main { padding-left: 16px; padding-right: 16px; }
  .top { padding-left: 16px; padding-right: 16px; }
  .card { padding: 20px; }
  .overall { padding: 22px; }
}
/* Increase Contrast on the phone: darker secondary text and borders. */
@media (prefers-contrast: more) {
  :root { --text-2: #2f343d; --text-3: #3f4450; --hair: #b9b3a6; --edge: #5d6370; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
