/* TravelShield "Signal + Map first" (Michal's pick A+B, 15 Oct 2026). Loaded after styles.css and landing.css: it
   re-sets the tokens and restyles the parts. Ideas: the level takes over a band in its own colour, in big condensed
   capitals; the map comes first on result screens; ink-black actions; one signal yellow for what matters.
   Contrast (WCAG 2.2): ink #15171c on #f4f2ec 16:1, on signal yellow #ffc629 12:1, on orange #e8590c 5:1;
   white on teal #0b7a8a 5.3:1, on crimson #a3122a 7.6:1. Levels stay word + shape + position, never colour alone. */
@font-face { font-family: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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: 'Archivo'; font-style: normal; font-weight: 400 900; font-stretch: 62% 125%; font-display: swap; src: url(/fonts/archivo-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; }

:root {
  --bg: #f4f2ec;
  --surface: #ffffff;
  --fill: #ebe8df;
  --fill-2: #e0ddd3;
  --hair: #dedad0;
  --edge: #7f838b;
  --text: #15171c;
  --text-2: #444952;
  --text-3: #575c66;
  --navy: #15171c;          /* the primary ink (kept name: used everywhere) */
  --navy-2: #2b2e36;
  --navy-tint: #ecebe5;
  --gold: #ffc629;          /* signal yellow: highlights, marks, never small text on light */
  --gold-text: #6e5200;
  --gold-tint: #fff4cc;
  --signal: #ffc629;
  --safe: #0b7a8a;
  --alert: #ffc629;
  --alert-edge: #15171c;
  --unsafe: #e8590c;
  --dangerous: #a3122a;
  --ink: #15171c;
  --display: 'Archivo', 'Arial Narrow', 'Helvetica Neue', Arial, sans-serif;
  --sans: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --serif: var(--display);  /* the old serif headings (landing sections, numbers) now speak Archivo */
  --shadow: 0 1px 2px rgba(21, 23, 28, 0.05), 0 8px 22px rgba(21, 23, 28, 0.07);
  --radius: 16px;
  --radius-l: 20px;
}
body { background: var(--bg); font-family: var(--sans); font-feature-settings: normal; }
.top { background: rgba(244, 242, 236, 0.9); }
.brand b { font-weight: 800; font-stretch: 85%; text-transform: uppercase; letter-spacing: 0.01em; font-size: 19px; }
.brand span { color: var(--gold-text); }
:focus-visible { outline-color: var(--ink); }

/* ---------- type: condensed heavy capitals for the big words ---------- */
.display, .q, .h2, .lvl-word, .ex-city, .display.small {
  font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase;
  letter-spacing: -0.005em; color: var(--ink); line-height: 0.92; text-wrap: balance;
}
.display { font-size: clamp(54px, 10vw, 104px); }
.q { font-size: clamp(40px, 10vw, 60px); }
.h2 { font-size: clamp(34px, 6vw, 52px); }
.display em, .q em, .h2 em { font-style: normal; color: var(--ink); background: linear-gradient(transparent 12%, var(--signal) 12%, var(--signal) 92%, transparent 92%); padding: 0 0.08em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.label { font-weight: 800; letter-spacing: 0.1em; color: var(--text-3); }
.lead { color: var(--text-2); }
.eyebrow { color: var(--ink); background: var(--gold-tint); border-color: rgba(21, 23, 28, 0.15); font-weight: 800; }
.eyebrow i { background: var(--ink); }

/* ---------- actions ---------- */
.btn { border: 2px solid var(--ink); color: var(--ink); font-weight: 800; box-shadow: none; }
.btn:hover { background: var(--fill); border-color: var(--ink); }
.btn.gold { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 10px 22px -12px rgba(21, 23, 28, 0.6); }
.btn.gold:hover { background: var(--navy-2); }
.btn.gold[disabled] { background: var(--fill-2); border-color: var(--fill-2); color: var(--text-3); }
.dock .btn.gold { text-transform: uppercase; font-stretch: 85%; letter-spacing: 0.02em; font-size: 18px; }
.top-link { border: 1.5px solid var(--hair); font-weight: 700; color: var(--ink); }
.link { color: var(--ink); }

/* ---------- questions ---------- */
.progress { background: var(--fill-2); }
.progress i { background: var(--ink); }
.option { border: 2px solid transparent; box-shadow: var(--shadow); }
.option[aria-pressed='true'] { border-color: var(--ink); background: var(--surface); }
.option .oi { background: var(--fill); color: var(--ink); }
.option[aria-pressed='true'] .oi { background: var(--ink); color: var(--signal); }
.option b { font-weight: 800; }
.chip { border: 2px solid var(--hair); font-weight: 700; }
.chip[aria-pressed='true'] { background: var(--ink); border-color: var(--ink); color: var(--signal); }
.seg { background: var(--fill); }
.seg button { font-weight: 700; }
.seg button[aria-pressed='true'] { background: var(--ink); color: var(--signal); box-shadow: none; }
.stepper button { background: var(--fill); color: var(--ink); }
.bodyguard svg { color: var(--ink); }
.scan-chip { border: 1.5px solid var(--hair); }
.depth rect.on { fill: var(--ink); }

/* ---------- the level band: colour-blocked, the level in big letters ---------- */
.band { border: 0; border-radius: var(--radius-l); padding: 22px 22px 24px; display: grid; gap: 12px; box-shadow: 0 18px 40px -26px rgba(21, 23, 28, 0.55); }
.band.is-safe { background: var(--safe); color: #fff; }
.band.is-alert { background: var(--alert); color: var(--ink); }
.band.is-unsafe { background: var(--unsafe); color: var(--ink); }
.band.is-dangerous { background: var(--dangerous); color: #fff; }
.band .where, .band .prepared, .band .headline, .band p, .band .of4 { color: inherit; }
.band .where svg { color: inherit; }
.band .where { opacity: 0.85; font-weight: 600; font-size: 15px; }
.band .lvl.big { background: none !important; box-shadow: none !important; padding: 0; color: inherit; font-family: var(--display); font-weight: 900; font-stretch: 70%; text-transform: uppercase; font-size: clamp(54px, 15vw, 84px); line-height: 0.86; gap: 14px; white-space: normal; }
.band .lvl.big svg { width: 0.62em; height: 0.62em; }
.band .meter i { background: rgba(21, 23, 28, 0.18); box-shadow: none !important; }
.band.is-safe .meter i, .band.is-dangerous .meter i { background: rgba(255, 255, 255, 0.28); }
.band .meter.on-safe i:nth-child(-n+1), .band .meter.on-alert i:nth-child(-n+2), .band .meter.on-unsafe i:nth-child(-n+3) { background: var(--ink); }
.band .meter.on-safe i:nth-child(-n+1), .band .meter.on-dangerous i:nth-child(-n+4) { background: #fff; }
.band .of4 { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; opacity: 0.85; }
.band .instruction, .band .headline { font-size: clamp(20px, 4.6vw, 24px); font-weight: 800; line-height: 1.25; margin: 0; }
.band p { font-size: 17px; margin: 0; }
.band .prepared { font-size: 13px; opacity: 0.8; }

/* ---------- map first ---------- */
.map-hero { padding: 0; overflow: hidden; border: 0; position: relative; }
.map-hero .map-wrap { height: clamp(300px, 52vh, 560px); }
.map-hero + .band { margin-top: -46px; position: relative; z-index: 2; border-radius: 24px 24px var(--radius-l) var(--radius-l); }
.map-hero .map-tools { top: 12px; }
.map-hero .map-legend { position: absolute; left: 10px; right: 52px; bottom: 30px; border: 0; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.92); font-size: 13px; gap: 6px 12px; }
@media (max-width: 979px) {
  /* Phone and tablet: the map runs edge to edge under the header; the back button floats on it. */
  .now-res.has-map { position: relative; }
  .now-res.has-map > .flow-top { position: absolute; top: 12px; left: 0; z-index: 5; margin: 0; }
  .now-res.has-map > .map-hero { margin-top: 0; }
  .now-res > .map-hero, .brief > .map-hero { margin-left: -20px; margin-right: -20px; border-radius: 0; }
}
@media (max-width: 520px) {
  .now-res > .map-hero, .brief > .map-hero { margin-left: -16px; margin-right: -16px; }
}
@media (min-width: 980px) {
  /* Desktop: the map stays beside the briefing while you read. */
  .now-res.has-map, .brief.has-map { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 16px 22px; max-width: 1180px; align-items: start; }
  .now-res.has-map > *, .brief.has-map > * { grid-column: 2; }
  .now-res.has-map > .map-hero, .brief.has-map > .map-hero { grid-column: 1; grid-row: 1 / span 30; position: sticky; top: 84px; }
  .has-map > .map-hero .map-wrap { height: calc(100vh - 110px); }
  .has-map > .map-hero + .band { margin-top: 0; }
  .has-map > .flow-top, .has-map > .brief-head { grid-column: 2; }
}

/* ---------- way to safety ---------- */
.go-card { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius); background: var(--ink); color: #fff; text-decoration: none; }
.go-card small { display: block; color: var(--signal); font-weight: 800; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.go-card b { font-size: 18px; font-weight: 800; }
.go-card .arrow { margin-left: auto; color: var(--signal); font-weight: 900; font-size: 24px; }

/* ---------- risks: white rows with a likelihood tag ---------- */
.risk, .risk.is-high, .risk.is-medium, .risk.is-low { border: 1px solid var(--hair); background: var(--surface); }
.risk-ic { background: var(--fill); color: var(--ink); }
.chance i { display: none; }
.chance em { margin: 0; font-family: var(--display); font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 13px; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 7px; }
.is-high .chance em { background: var(--ink); color: var(--signal); }
.is-medium .chance em { background: var(--gold-tint); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--signal); }
.is-low .chance em { background: var(--fill); color: var(--ink); }
.risk-top b { font-weight: 800; }

/* ---------- cards, lists, places ---------- */
.card { border: 1px solid var(--hair); box-shadow: none; }
.says li::before, .bul li::before { color: var(--ink); }
.mk.you { background: var(--ink); }
.place .go { color: var(--ink); font-weight: 800; }
.ride-app.gold { background: var(--ink); }
.sos a { border-width: 2px; }
.pill { font-weight: 700; }
.owner-pill { background: var(--gold-tint); color: var(--ink); border-color: var(--signal); }
.scan-opt[aria-checked='true'] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.scan-opt[aria-checked='true'] .tick { background: var(--ink); border-color: var(--ink); color: var(--signal); }
.scan-text b { color: var(--ink); font-weight: 800; }
.credit-table .sp span.on { border-color: var(--ink); background: var(--gold-tint); color: var(--ink); }
.pack.best { border-color: var(--ink); }
.pack .tag { background: var(--ink); color: var(--signal); }
.pack-credits, .big-num { font-family: var(--display); font-weight: 900; font-stretch: 75%; color: var(--ink); }
.toast { background: var(--ink); }
.working .h2 { font-size: clamp(30px, 7vw, 44px); }
.steps li.now { box-shadow: inset 0 0 0 2px var(--ink); }
.steps li.done .st { background: var(--ink); color: var(--signal); }

/* ---------- launch page sections ---------- */
.landing h3 { font-weight: 800; letter-spacing: -0.005em; }
.landing .frame b { background: linear-gradient(transparent 55%, var(--signal) 55%); }
.night { background: var(--ink); }
.night .h2 em { color: var(--ink); }
.now-demo .band .instruction { font-size: clamp(18px, 2vw, 21px); }

/* ---------- language picker: the phone's own list over a small "EN" button ---------- */
.lang-pick { position: relative; min-width: 44px; justify-content: center; font-weight: 800; font-size: 14px; letter-spacing: 0.04em; padding: 0 12px; }
.lang-pick select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.lang-pick:focus-within { outline: 3px solid var(--ink); outline-offset: 2px; }

/* ---------- right-to-left languages (Arabic, Persian, Urdu) ---------- */
[dir='rtl'] .back svg, [dir='rtl'] .btn svg[class*='arrow'], [dir='rtl'] .go-card .arrow { transform: scaleX(-1); }
[dir='rtl'] .bul, [dir='rtl'] .says, [dir='rtl'] .legal ul { padding-right: 20px; padding-left: 0; }
[dir='rtl'] .map-hero .map-legend { left: 52px; right: 10px; }

/* ---------- hero: warnings arriving on the phone ---------- */
.alert-phone .phone-screen { background: #ecebe5; }
@media (min-width: 980px) and (pointer: fine) { .alert-phone { transform: rotateY(-9deg) rotateX(3deg); } }
.alert-phone .zone circle { fill: rgba(232, 89, 12, 0.2); stroke: #e8590c; stroke-width: 2.5; }
.alert-phone .z-pick circle { fill: rgba(255, 198, 41, 0.3); stroke: #c99400; }
.alert-phone .zone, .alert-phone .dark-street, .alert-phone .aroute { opacity: 0; transition: opacity 0.5s; }
.alert-phone .zone { transform-box: fill-box; transform-origin: center; transform: scale(0.3); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1); }
.alert-phone .zone .pulse { fill: none; transform-box: fill-box; transform-origin: center; }
.alert-phone.on1 .z-riot, .alert-phone.on2 .z-pick { opacity: 1; transform: scale(1); }
.alert-phone.on1 .z-riot .pulse, .alert-phone.on2 .z-pick .pulse { animation: zpulse 1.8s ease-out infinite; }
@keyframes zpulse { from { transform: scale(1); opacity: 0.9; } to { transform: scale(1.7); opacity: 0; } }
.alert-phone.on3 .dark-street { opacity: 0.85; }
.alert-phone.on3 .aroute { opacity: 1; animation: march 1.1s linear infinite; }
.alert-phone .ap-you { transition: transform 1.6s cubic-bezier(0.5, 0, 0.3, 1); }
.alert-phone.on4 .ap-you { transform: translate(172px, -176px); }
.alerts { position: absolute; top: 40px; left: 9px; right: 9px; z-index: 5; display: grid; }
.al { grid-area: 1 / 1; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 1px 10px; align-items: start; padding: 11px 13px 12px 11px; border-radius: 20px;
  background: rgba(255, 255, 255, 0.97); box-shadow: 0 14px 30px -12px rgba(21, 23, 28, 0.45); opacity: 0; transform: translateY(-18px) scale(0.97);
  transition: opacity 0.35s, transform 0.45s cubic-bezier(0.3, 1.4, 0.5, 1); }
.alert-phone[data-state='1'] .a1, .alert-phone[data-state='2'] .a2, .alert-phone[data-state='3'] .a3 { opacity: 1; transform: none; }
.al-ic { grid-row: 1 / span 3; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
.al-ic svg { width: 20px; height: 20px; }
.al.is-unsafe .al-ic { background: var(--unsafe); } .al.is-alert .al-ic { background: var(--alert); } .al.is-safe .al-ic { background: var(--safe); }
.al-app { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; color: var(--text-3); }
.al b { font-family: var(--display); font-weight: 900; font-stretch: 78%; text-transform: uppercase; font-size: 15.5px; line-height: 1.1; color: var(--ink); }
.al p { margin: 0; font-size: 12.5px; line-height: 1.35; color: var(--text); }
.alert-phone .hcard .lvl.is-scan { background: var(--ink); color: #fff; }
.alert-phone.still .zone, .alert-phone.still .pulse { animation: none; }

/* ---------- advisory vs TravelShield ---------- */
.versus { display: grid; gap: 22px; padding-top: clamp(60px, 9vh, 100px); }
.vs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; align-items: stretch; }
.vs-card { border-radius: var(--radius-l); padding: 24px; display: grid; gap: 14px; align-content: start; }
.vs-them { background: var(--fill); border: 1px dashed var(--edge); }
.vs-us { background: var(--ink); color: #fff; box-shadow: 0 24px 50px -26px rgba(21, 23, 28, 0.7); }
.vs-k { font-size: 13px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.vs-them .vs-k { color: var(--text-3); } .vs-us .vs-k { color: var(--signal); } .vs-us .vs-k svg { width: 18px; height: 18px; }
.vs-quote { font-size: clamp(19px, 2.2vw, 23px); line-height: 1.4; margin: 0; color: var(--text-2); font-style: italic; }
.vs-card small { font-size: 14px; opacity: 0.8; }
.vs-us ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vs-us li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 16px; line-height: 1.4; }
.vs-us li svg { width: 22px; height: 22px; padding: 4px; border-radius: 8px; box-sizing: content-box; }
.vs-us li.is-unsafe svg { background: var(--unsafe); } .vs-us li.is-alert svg { background: var(--alert); }
.vs-us li b { display: block; font-family: var(--display); font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 17px; color: var(--signal); }

/* ---------- what I warn you about ---------- */
.warn { display: grid; gap: 22px; padding-top: clamp(60px, 9vh, 100px); }
.warn-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.warn-card { background: var(--surface); border: 1px solid var(--hair); border-radius: var(--radius); padding: 18px; display: grid; gap: 8px; align-content: start; }
.warn-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--ink); color: var(--signal); display: grid; place-items: center; }
.warn-ic svg { width: 24px; height: 24px; }
.warn-card h3 { font-family: var(--display); font-weight: 900; font-stretch: 80%; text-transform: uppercase; font-size: 19px; line-height: 1.05; }
.warn-card p { margin: 0; font-size: 15.5px; color: var(--text-2); }
.warn-note { margin: 0; font-size: 14px; }

/* ---------- the moving strip of warnings ---------- */
.ticker { margin: clamp(40px, 6vh, 70px) calc(50% - 50vw) 0 !important; max-width: none !important; width: 100vw; overflow: hidden; background: var(--ink); color: #fff; padding: 14px 0; }
.ticker-track { display: flex; gap: 34px; width: max-content; animation: tick 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.tk { display: inline-flex; align-items: center; gap: 10px; font-size: 15.5px; white-space: nowrap; }
.tk svg { width: 22px; height: 22px; padding: 3px; border-radius: 7px; box-sizing: content-box; }
.tk.is-unsafe svg { background: var(--unsafe); } .tk.is-alert svg { background: var(--alert); }
.tk b { font-family: var(--display); font-weight: 900; font-stretch: 80%; text-transform: uppercase; color: var(--signal); }
@keyframes tick { to { transform: translateX(-50%); } }
[dir='rtl'] .ticker-track { animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; flex-wrap: wrap; width: auto; padding: 0 16px; } .ticker-track > [aria-hidden='true'] { display: none; } }

/* ---------- happening now; don't go ---------- */
.now-tag { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #fff; background: var(--dangerous);
  padding: 3px 8px 3px 20px; border-radius: 7px; position: relative; }
.now-tag::before { content: ''; position: absolute; left: 8px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.dont .bul li::before { content: '✕'; color: var(--dangerous); font-weight: 900; background: none; width: auto; height: auto; margin-top: 0; border-radius: 0; }

/* ---------- SOS ---------- */
.sos-view { max-width: 640px; margin: 0 auto; }
.sos-page { display: grid; gap: 14px; padding-top: 8px; }
.sos-head { gap: 6px; }
.sos-tag { display: inline-block; width: fit-content; font-family: var(--display); font-weight: 900; font-stretch: 75%; letter-spacing: 0.06em; background: #fff; color: var(--dangerous); border-radius: 8px; padding: 2px 10px; font-size: 16px; }
.sos-title { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(40px, 11vw, 64px); line-height: 0.9; margin: 0; }
.sos-title em { font-style: normal; color: #fff; background: none; text-decoration: underline; text-decoration-color: var(--signal); text-decoration-thickness: 6px; text-underline-offset: 6px; }
.sos-country { display: flex; align-items: center; gap: 10px; font-weight: 700; flex-wrap: wrap; }
.sos-country svg { width: 20px; height: 20px; }
.sos-country select { flex: 1; min-width: 180px; min-height: 48px; font-size: 17px; font-weight: 700; border: 2px solid var(--ink); border-radius: 12px; padding: 0 12px; background: var(--surface); color: var(--ink); }
.sos-call { margin-top: 14px; display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; background: var(--dangerous); color: #fff; text-decoration: none; box-shadow: 0 16px 34px -18px rgba(163, 18, 42, 0.8); }
.sos-call svg { width: 34px; height: 34px; }
.sos-call small { display: block; font-weight: 700; font-size: 14px; opacity: 0.9; }
.sos-call b { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 52px; line-height: 1; }
.sos-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; margin-top: 10px; }
.sos-more a { display: grid; gap: 0; padding: 10px 14px; border: 2px solid var(--dangerous); border-radius: 14px; text-decoration: none; color: var(--dangerous); }
.sos-more small { font-weight: 700; font-size: 12.5px; color: var(--text-2); }
.sos-more b { font-size: 26px; font-weight: 900; }
.sos-share { display: grid; gap: 12px; }
.sos-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sos-actions .btn { flex: 1 1 160px; }
.sos-fab { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(18px + var(--bottom)); z-index: 30; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center;
  background: var(--dangerous); color: #fff; text-decoration: none; box-shadow: 0 12px 26px -8px rgba(163, 18, 42, 0.7), 0 0 0 4px #fff; }
.sos-fab span { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 17px; letter-spacing: 0.04em; }
[dir='rtl'] .sos-fab { right: auto; left: calc(16px + env(safe-area-inset-left, 0px)); }

/* ---------- bottom tabs (signed in, phones) ---------- */
.tabbar { display: none; }
@media (max-width: 979px) {
  body.has-tabs .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; display: grid; grid-template-columns: repeat(4, 1fr);
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + var(--bottom)) max(8px, env(safe-area-inset-right, 0px));
    background: rgba(255, 255, 255, 0.96); border-top: 1px solid var(--hair); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
  body.has-tabs main { padding-bottom: calc(96px + var(--bottom)); }
  body.has-tabs .sos-fab { display: none; }
  .tabbar a { display: grid; justify-items: center; gap: 2px; min-height: 52px; align-content: center; text-decoration: none; color: var(--text-3); font-size: 12px; font-weight: 700; border-radius: 12px; }
  .tabbar a svg { width: 24px; height: 24px; }
  .tabbar a.on { color: var(--ink); }
  .tabbar a.on svg { color: var(--ink); }
  .tabbar .tab-sos b { font-family: var(--display); font-weight: 900; font-stretch: 80%; font-size: 16px; color: #fff; background: var(--dangerous); border-radius: 9px; padding: 2px 9px; }
}

/* ---------- the app home ---------- */
.dash { max-width: 760px; margin: 0 auto; display: grid; gap: 16px; padding-top: 10px; }
.dash-head { display: grid; gap: 6px; }
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.tile { display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--radius-l); text-decoration: none; min-height: 150px; }
.tile svg { width: 30px; height: 30px; }
.tile b { font-family: var(--display); font-weight: 900; font-stretch: 78%; text-transform: uppercase; font-size: 24px; line-height: 1; }
.tile small { font-size: 15px; line-height: 1.4; }
.tile-now { background: var(--signal); color: var(--ink); }
.tile-plan { background: var(--ink); color: #fff; } .tile-plan svg { color: var(--signal); }
.tile-sos { background: var(--dangerous); color: #fff; }
.install { display: grid; gap: 12px; }
.about-link { justify-self: center; font-weight: 700; }
.offline-bar { position: fixed; top: calc(var(--top) + 64px); left: 50%; transform: translateX(-50%); z-index: 35; max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 12px;
  background: var(--ink); color: #fff; font-size: 14px; font-weight: 600; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.5); }

/* Nothing may widen the page on a phone (decorative glows, full-width bands): a wider layout makes phones zoom out. */
html, body { overflow-x: clip; }

/* SOS fits any phone: the country list never sizes itself to the longest country name. */
.sos-page { grid-template-columns: minmax(0, 1fr); }
.sos-country select { width: 100%; min-width: 0; max-width: 100%; flex: 1 1 200px; }
.sos-fab[hidden], .tabbar[hidden] { display: none !important; }
/* Narrow phones: the header keeps one line. */
.top-link { white-space: nowrap; }
@media (max-width: 400px) {
  .brand b { font-size: 16px; }
  .brand svg { width: 24px; height: 24px; }
  .top-right { gap: 6px; }
  .lang-pick { padding: 0 9px; min-width: 40px; }
  .top-link:not(.icon-only):not(.lang-pick) { padding: 8px 12px; }
}

/* ---------- Guard me ---------- */
.band.is-scan { background: var(--ink); color: #fff; }
.guard-band .g-state, .live-band .g-state { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.guard-band .g-state svg { width: 20px; height: 20px; }
.g-title { font-family: var(--display); font-weight: 900; font-stretch: 72%; text-transform: uppercase; font-size: clamp(30px, 8vw, 46px); line-height: 0.95; }
.band.is-scan .g-state::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--signal); animation: blink 1.2s ease-in-out infinite; }
.g-share { display: grid; gap: 12px; }
.tile-guard { background: #fff; color: var(--ink); border: 2px solid var(--ink); } .tile-guard svg { color: var(--ink); }
@media (max-width: 979px) { body.has-tabs .tabbar { grid-template-columns: repeat(5, 1fr); } .tabbar a { font-size: 11.5px; } }

/* ---------- "Are you OK?" check-ins (site/checkin.js) ---------- */
.tile-checkin { background: var(--safe, #2f9e44); color: #fff; } .tile-checkin svg { color: #fff; }
.checkin { display: grid; gap: 14px; }
.checkin header { display: grid; gap: 8px; }
.ci-at { display: inline-flex; align-items: center; gap: 8px; }
.ci-at input { border: 0; background: transparent; font: inherit; font-weight: 700; min-width: 0; width: 7em; }
.ci-add { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr); margin-top: 12px; }
@media (min-width: 560px) { .ci-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto; } }
.ci-contact { grid-template-columns: auto minmax(0, 1fr) auto; }
.ci-contact b, .ci-contact small { overflow-wrap: anywhere; }
.ci-band .g-state { display: inline-flex; font-weight: 800; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }
.ci-ok { width: 100%; justify-content: center; font-size: 22px; min-height: 64px; }
.ci-more { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ci-more .btn { justify-content: center; }
.checkin #ciStart { width: 100%; justify-content: center; }

/* ---------- every language fits (tests/lang-audit.mjs) ---------- */
/* a word longer than the screen (German, Finnish, Hungarian…) breaks instead of running off it */
h1, h2, h3, .display, .q, .h2, .g-title, .tile b, .btn, .chip, .label, .eyebrow, .pill { overflow-wrap: break-word; }
/* the top label: when it needs two lines, the dot stays with the first one */
.eyebrow { align-items: flex-start; max-width: 100%; text-wrap: balance; line-height: 1.35; }
.eyebrow i { flex: none; margin-top: 0.4em; }
/* buttons with an icon: the text wraps next to the icon, centred and evenly */
.btn { text-wrap: balance; line-height: 1.25; }
.btn svg { flex: none; }
/* narrow phones: signing in is the person icon (its name stays for screen readers), so the header always fits */
.top-link .lbl { white-space: nowrap; }
@media (max-width: 420px) {
  #account:not(.icon-only) { padding: 0; width: 44px; justify-content: center; }
  #account:not(.icon-only) .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.signin-ic { display: none; }
@media (max-width: 420px) { .signin-ic { display: inline-flex; } }
.signin-ic svg { width: 20px; height: 20px; }
/* safe places: the place name gets the room; "Directions" is an arrow on narrow phones */
.place b { overflow-wrap: anywhere; }
.place .go { display: inline-flex; align-items: center; gap: 6px; }
.place .go svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 420px) { .place .go .lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
/* other languages: the big headlines may hyphenate a long word rather than run off the screen (English never needs it) */
html:not(:lang(en)) :is(.display, .q, .h2, .g-title, .tile b, .sos-title) { hyphens: auto; -webkit-hyphens: auto; hyphenate-limit-chars: 10 4 4; }
:is(.display, .q, .h2, .g-title) { overflow-wrap: anywhere; } /* last resort; site/fit.js shrinks the headline first */
.hero2-text, .hero2-text > * { min-width: 0; }

/* ---------- Settings: on/off switches ---------- */
.set-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; }
.set-text { display: grid; gap: 4px; }
.set-text small { color: var(--text-2); font-size: 15px; line-height: 1.45; }
.switch { position: relative; width: 56px; height: 32px; border-radius: 999px; border: 2px solid var(--ink); background: var(--fill); cursor: pointer; padding: 0; flex: none; }
.switch i { position: absolute; top: 2px; left: 2px; width: 24px; height: 24px; border-radius: 50%; background: var(--ink); transition: transform 0.2s var(--ease); }
.switch[aria-checked='true'] { background: var(--signal); }
.switch[aria-checked='true'] i { transform: translateX(24px); }
.switch:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.g-voice { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; text-decoration: none; }
.g-voice svg { width: 18px; height: 18px; flex: none; }
[dir='rtl'] .switch[aria-checked='true'] i { transform: translateX(-24px); }
[dir='rtl'] .switch i { left: auto; right: 2px; }
/* the level in a band never makes its column wider than the screen (site/fit.js sizes a long word to fit) */
.band > * { min-width: 0; }
/* the scan depth and other row titles wrap instead of being cut with "…" */
.trip-row b { white-space: normal; overflow-wrap: anywhere; }
/* Chinese and Japanese labels may break between any two characters */
:is(:lang(ja), :lang(zh)) .label { white-space: normal; line-break: strict; }
/* headlines share their words evenly over the lines (no lone word or character on the last line, e.g. Japanese) */
:is(.display, .q, .h2, .sos-title, .g-title) { text-wrap: balance; }

/* ---------- "Right now": what the streets around look like this minute ---------- */
.live-now { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: var(--radius-l); background: var(--ink); color: #fff; }
.live-now small { display: block; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; font-size: 12px; color: var(--signal); margin-bottom: 4px; }
.live-now p { margin: 0; font-size: 17px; line-height: 1.45; }
.live-dot { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: #e03131; box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.6); animation: live-pulse 1.8s infinite; }
@keyframes live-pulse { 0% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0.55); } 70% { box-shadow: 0 0 0 10px rgba(224, 49, 49, 0); } 100% { box-shadow: 0 0 0 0 rgba(224, 49, 49, 0); } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
