/* =====================================================================================================================
   mapbow  -  THE DESIGN SYSTEM ("Spectrum Velocity")

   Precision cartography rather than soft software: a flat carbon-black (or paper-white) ground with an engineering grid
   that fades out below the fold, hairline rules, square corners and one cut angle used everywhere - the chamfer, a
   45-degree cut on the top-left and bottom-right of buttons and badges. The hexagon is the one recurring shape (every
   icon tile). The bow - a five-colour spectrum (teal, blue, violet, pink, amber) - is used as a line of light: on an
   edge, a rule, an underline, a corner wedge, the primary button - never as a fog.

   Archivo, expanded and set in capitals, for headlines, buttons and small tracked labels; Inter for reading; JetBrains
   Mono for numbers and coordinates. Dark by default, light on request.

       --cut / --chamfer   the cut corners (buttons are clipped to it, so their focus ring is drawn inside)
       --hex               the hexagon (icon tiles, avatars, the auth mark)
       --rule              the spectrum as a hairline

   Motion is transform and opacity only (cheap on phones) and stops for prefers-reduced-motion.

   Every page loads this file; the studio and the map viewer add studio.css on top.

   Coded By Darko G.
   ===================================================================================================================== */

:root {
    --bg: #05070B; --bg-2: #090C12; --surface: #0C1017; --surface-solid: #0C1017; --surface-2: #11161F; --surface-3: #18202B;
    --line: rgba(255, 255, 255, .08); --line-strong: rgba(255, 255, 255, .16);
    --text: #F3F5F8; --text-2: #C3CAD5; --muted: #8A94A3; --dim: #5A6472;
    --c-teal: #19E3B1; --c-blue: #3BA7FF; --c-violet: #8B5CF6; --c-pink: #FF4D8D; --c-amber: #FFB547; --c-green: #22C55E; --c-red: #FF5470;
    --spectrum: linear-gradient(90deg, #19E3B1 0%, #3BA7FF 28%, #8B5CF6 52%, #FF4D8D 76%, #FFB547 100%);
    --rule: var(--spectrum);
    --primary: #3BA7FF;
    --primary-grad: linear-gradient(115deg, #19E3B1 0%, #3BA7FF 48%, #8B5CF6 100%);
    --glow: 0 0 0 1px rgba(59, 167, 255, .45);
    --radius: 3px; --radius-sm: 2px; --radius-lg: 4px;
    --shadow: 0 18px 40px -22px rgba(0, 0, 0, .9);
    --shadow-lg: 0 40px 90px -40px rgba(0, 0, 0, .95), 0 2px 6px rgba(0, 0, 0, .4);
    --font-display: "Archivo", "Inter", system-ui, sans-serif;
    --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
    --nav-h: 68px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --cut: 10px;
    --chamfer: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
    --hex: polygon(25% 3%, 75% 3%, 100% 50%, 75% 97%, 25% 97%, 0 50%);
    --grid-line: rgba(255, 255, 255, .03);
    --input-bg: rgba(255, 255, 255, .025);
    --fl-focus: #5EEAD4;
    --wedge: #3BA7FF;
    color-scheme: dark;
}
[data-theme="light"] {
    --bg: #F2F3F6; --bg-2: #E8EAEF; --surface: #FFFFFF; --surface-solid: #FFFFFF; --surface-2: #F6F7F9; --surface-3: #ECEEF2;
    --line: rgba(10, 13, 18, .09); --line-strong: rgba(10, 13, 18, .2);
    --text: #0A0D12; --text-2: #2A3039; --muted: #5C6470; --dim: #8C949F;
    --primary: #2563EB;
    --glow: 0 0 0 1px rgba(37, 99, 235, .4);
    --shadow: 0 18px 40px -24px rgba(10, 13, 18, .28);
    --shadow-lg: 0 40px 90px -40px rgba(10, 13, 18, .35), 0 2px 6px rgba(10, 13, 18, .06);
    --grid-line: rgba(10, 13, 18, .045);
    --input-bg: #FFFFFF;
    --fl-focus: #0E7490;
    --wedge: #2563EB;
    color-scheme: light;
}

/* Flag emoji on Windows (which has none): Twemoji's flags only, fetched only when a flag is on the page (unicode-range). */
@font-face { font-family: "Twemoji Country Flags"; unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
    src: url("../fonts/TwemojiCountryFlags.woff2") format("woff2"); font-display: swap; }

/* ---- BASE ------------------------------------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 "Twemoji Country Flags", var(--font-body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .15s; }
a:hover { color: var(--text); }
[data-theme="light"] a { color: var(--primary); }
[data-theme="light"] a:hover { color: #0A0D12; }
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.12; margin: 0 0 .5em; color: var(--text); }
h1, h2, .display { font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -.012em; line-height: 1.02; }
h1 { font-size: clamp(1.9rem, 4vw, 3.2rem); }
h2 { font-size: clamp(1.45rem, 2.8vw, 2.25rem); }
h3 { font-size: 1.18rem; font-stretch: 112%; font-weight: 700; letter-spacing: -.005em; }
h4 { font-stretch: 108%; font-weight: 700; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
::selection { background: var(--c-blue); color: #fff; }
:focus-visible { outline: 2px solid var(--c-blue); outline-offset: 2px; border-radius: 0; }
.container { width: 100%; max-width: 1220px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: var(--font-mono); font-size: .92em; }
.mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.6rem; } .mb-2 { margin-bottom: 1rem; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.hide-mobile { }
.skip { position: absolute; left: -999px; top: 8px; z-index: 999; background: var(--surface-solid); padding: 8px 14px; }
.skip:focus { left: 8px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.signed-in .show-signed-out, .signed-out .show-signed-in, .paid .hide-paid, html:not(.paid) .paid-only { display: none !important; }
.flag { font-family: 'Twemoji Country Flags', 'Apple Color Emoji', 'Segoe UI Emoji', 'Noto Color Emoji', sans-serif; font-style: normal; }
.flag.big { font-size: 2rem; line-height: 1; }
.kbd, kbd { font: 500 .78em var(--font-mono); padding: 2px 6px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--text-2); box-shadow: inset 0 -1px 0 var(--line-strong); }
.spectrum-text { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
* { scrollbar-color: color-mix(in srgb, var(--muted) 50%, transparent) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--muted) 45%, transparent); }
::-webkit-scrollbar-thumb:hover { background: var(--c-blue); }

/* the ground: an engineering grid that fades out below the fold, and one hard beam of the spectrum across the top.
   Both are fixed and static - painted once, never animated. */
.ground { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ground-grid { position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 72px 72px; background-position: -1px -1px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 90%); mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 90%); }
.ground-glow { position: absolute; width: 140vw; height: 150px; top: -46px; left: -20vw; transform: rotate(-7deg); background: var(--spectrum); opacity: .16; filter: blur(64px); }
.ground::after { content: ""; position: absolute; top: 0; right: -10vw; width: 62vw; height: 1px; background: linear-gradient(90deg, transparent, #3BA7FF 40%, #8B5CF6 70%, #FF4D8D); opacity: .7; }
[data-theme="light"] .ground-glow { opacity: .1; }

/* ---- BRAND ----------------------------------------------------------------------------------------------------- */
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text) !important; font: 800 1.36rem/1 var(--font-display); font-stretch: 118%; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-word b { font-weight: 800; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-word { white-space: nowrap; }

/* ---- NAV ------------------------------------------------------------------------------------------------------- */
.site-nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); transition: background-color .25s; }
.site-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); opacity: 0; transition: opacity .3s; }
.site-nav.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.site-nav.is-scrolled::after { opacity: .75; }
.nav-inner { max-width: 1320px; margin: 0 auto; height: 100%; padding: 0 24px; display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 2px; flex: 1; }
.nav-links a { position: relative; color: var(--text-2); font: 600 .74rem/1 var(--font-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--rule); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav-links a:hover { color: var(--text); }
.nav-links a:hover::after, .nav-links a.is-active::after { transform: scaleX(1); }
.nav-links a.is-active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.theme-toggle { --cut: 7px; width: 38px; height: 38px; border: 0; clip-path: var(--chamfer); background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); color: var(--text-2); cursor: pointer; display: grid; place-items: center; transition: background-color .2s, color .2s; }
.theme-toggle::before { font: 400 15px/1 "Font Awesome 6 Pro"; content: "\f186"; }
[data-theme="light"] .theme-toggle::before { content: "\e28f"; }
.theme-toggle:hover { background: var(--surface-2); color: var(--text); }
.theme-toggle:focus-visible, .nav-burger:focus-visible { outline: 0; box-shadow: inset 0 0 0 2px var(--c-blue); }
.nav-burger { --cut: 7px; display: none; width: 42px; height: 42px; border: 0; clip-path: var(--chamfer); box-shadow: inset 0 0 0 1px var(--line-strong); background: var(--surface-2); color: var(--text); font-size: 18px; cursor: pointer; }
.mobile-menu { display: none; }
@media (max-width: 1200px) { .nav-inner { gap: 14px; } .nav-links { gap: 0; } .nav-links a { padding: 10px 8px; letter-spacing: .08em; } .nav-links a::after { left: 8px; right: 8px; } }
@media (max-width: 1080px) { .nav-cta .show-signed-out.btn-ghost, .nav-cta .show-signed-in.btn-ghost { display: none; } }
@media (max-width: 980px) {
    .nav-links { display: none; }
    .nav-burger { display: grid; place-items: center; }
    .hide-mobile { display: none !important; }
    .mobile-menu { position: fixed; inset: var(--nav-h) 0 0 0; z-index: 49; background: var(--bg); padding: 18px 24px 24px; display: flex; flex-direction: column; gap: 0; transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
        transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s .28s; overflow-y: auto; border-top: 1px solid var(--line); }
    .menu-open .mobile-menu { opacity: 1; transform: none; visibility: visible; pointer-events: auto; transition: opacity .22s var(--ease), transform .28s var(--ease), visibility 0s; }
    .mobile-menu a:not(.btn) { color: var(--text); font: 700 1rem/1.2 var(--font-display); font-stretch: 118%; letter-spacing: .06em; text-transform: uppercase; padding: 15px 4px; border-bottom: 1px solid var(--line); }
    .mobile-menu .btn { margin-top: 12px; }
    .menu-open { overflow: hidden; }
    .menu-open .site-nav { background: var(--bg); }
}

/* ---- BUTTONS ---------------------------------------------------------------------------------------------------
   Capitals in the expanded face, cut on the chamfer. Primary is the spectrum, flat; hover runs a bar of light across
   it. Ghost is a hairline in the text colour that fills on hover. Focus is drawn inside (clip-path clips outlines). */
.btn { --cut: 9px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 44px; padding: 0 22px; border: 0; border-radius: 0; clip-path: var(--chamfer); overflow: hidden;
    font: 700 .8rem/1 var(--font-display); font-stretch: 118%; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; white-space: nowrap; color: var(--text) !important; background: transparent;
    box-shadow: inset 0 0 0 1px var(--line-strong); transition: background-color .2s, color .2s, box-shadow .2s, opacity .2s, transform .12s; user-select: none; text-decoration: none; }
.btn:active { transform: scale(.985); }
.btn:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--text); }
.btn i { font-size: 1.05em; }
.btn-primary { color: #fff !important; background: var(--primary-grad); background-size: 200% 100%; background-position: 0 50%; box-shadow: none; transition: background-position .5s var(--ease), opacity .2s, transform .12s; }
.btn-primary::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .42), transparent); transform: translateX(-160%) skewX(-28deg); transition: transform .7s var(--ease); pointer-events: none; }
.btn-primary:hover { background-position: 100% 50%; }
.btn-primary:hover::before { transform: translateX(420%) skewX(-28deg); }
.btn-primary:focus-visible { box-shadow: inset 0 0 0 2px #fff; }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--text); color: var(--bg) !important; box-shadow: inset 0 0 0 1px var(--text); }
.btn-dark { background: #0A0D12; color: #fff !important; box-shadow: none; }
.btn-sm { --cut: 6px; height: 36px; padding: 0 15px; font-size: .7rem; letter-spacing: .07em; gap: 7px; }
.btn-lg { --cut: 11px; height: 52px; padding: 0 28px; font-size: .86rem; }
.btn-xl { --cut: 13px; height: 60px; padding: 0 34px; font-size: .92rem; letter-spacing: .1em; }
.btn-block { width: 100%; }
.btn-icon { --cut: 6px; width: 38px; height: 38px; display: inline-grid; place-items: center; border: 0; clip-path: var(--chamfer); background: transparent; color: var(--text-2); cursor: pointer; font-size: 16px; transition: background-color .15s, color .15s; padding: 0; }
.btn-icon:hover { background: var(--surface-2); color: var(--text); }
.btn-icon.is-on { background: rgba(59, 167, 255, .16); color: var(--c-blue); box-shadow: inset 0 0 0 1px rgba(59, 167, 255, .45); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading > * { visibility: hidden; }
.btn.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn-ghost.is-loading::after { border-color: var(--line-strong); border-top-color: var(--text); }
.btn i.fa-arrow-right { transition: transform .35s var(--ease); }
.btn:hover i.fa-arrow-right { transform: translateX(4px); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- FORMS -----------------------------------------------------------------------------------------------------
   Square fields with a hairline; focus draws one line of the brand blue round them. */
.field { margin-bottom: 16px; position: relative; }
.label { display: block; font-size: .86rem; font-weight: 600; color: var(--text-2); margin-bottom: 7px; }
.label .opt { color: var(--dim); font-weight: 400; }
.input, .select, .textarea { width: 100%; height: 48px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line-strong); background-color: var(--input-bg); color: var(--text); font: 400 .98rem var(--font-body);
    transition: border-color .2s, box-shadow .2s; }
.textarea { height: auto; min-height: 130px; padding: 12px 14px; resize: vertical; line-height: 1.5; }
.select { appearance: none; padding-right: 38px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 19px) 50%, calc(100% - 14px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.select option { background: var(--surface-solid); color: var(--text); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--muted); }
.input:focus, .select:focus, .textarea:focus { outline: 0; border-color: var(--c-blue); box-shadow: 0 0 0 1px var(--c-blue), 0 10px 30px -18px rgba(59, 167, 255, .9); }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.is-invalid { border-color: var(--c-red) !important; box-shadow: 0 0 0 1px var(--c-red) !important; }
.help { display: block; font-size: .8rem; color: var(--dim); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--c-blue); width: 16px; height: 16px; }
.pw-wrap { position: relative; }
.pw-wrap .input { padding-right: 46px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 0; z-index: 3; }
.pw-eye:hover { color: var(--text); background: var(--surface-2); }

/* IN-FIELD LABELS. A .field whose label sits right before its control (.input, .textarea, .select, or a .pw-wrap around
   an .input) keeps the label inside the field: resting in the middle while the field is empty, and gliding up to a
   small caption in its top edge on focus or once there is a value (tinted while focused). The control is padded for
   the caption from the start, so the text never jumps. "Has a value" is :not(:placeholder-shown) - core.js gives every
   such control a placeholder (MB.floatLabels) - and a select always has one, so its label is always up. The label
   shrinks by transform, not font-size (no re-layout per frame). Browsers without :has() keep the plain label above. */
@supports selector(:has(*)) {
    .field:has(> .label + :is(.input, .textarea, .select, .pw-wrap)) { position: relative; }
    .field > .label + :is(.input, .select), .field > .label + .pw-wrap > .input { height: 56px; padding-top: 22px; padding-bottom: 6px; }
    .field > .label + .textarea { padding-top: 28px; }
    .field > .label:has(+ :is(.input, .textarea, .select, .pw-wrap)) {
        position: absolute; z-index: 2; left: 15px; top: 28px; margin: 0; transform: translateY(-50%); transform-origin: 0 50%; max-width: calc(100% - 50px); pointer-events: none;
        color: var(--muted); font-size: .95rem; font-weight: 500; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
        transition: top .3s var(--ease), transform .3s var(--ease), color .3s var(--ease); }
    .field > .label:has(+ .textarea) { top: 26px; }
    .field > .label:has(+ :is(.input, .textarea):is(:focus, :not(:placeholder-shown))),
    .field > .label:has(+ .pw-wrap > .input:is(:focus, :not(:placeholder-shown))),
    .field > .label:has(+ .input:-webkit-autofill), .field > .label:has(+ .pw-wrap > .input:-webkit-autofill),
    .field > .label:has(+ .select) { top: 14px; transform: translateY(-50%) scale(.76); }
    .field > .label:has(+ :is(.input, .textarea, .select):focus), .field > .label:has(+ .pw-wrap > .input:focus) { color: var(--fl-focus); }
    .field > .label:has(+ .is-invalid) { color: var(--c-red); }
    .field > .label + :is(.input, .textarea)::placeholder, .field > .label + .pw-wrap > .input::placeholder { color: transparent; transition: color .2s .1s; }
    .field > .label + :is(.input, .textarea):focus::placeholder, .field > .label + .pw-wrap > .input:focus::placeholder { color: var(--dim); }
}

/* ---- FEEDBACK --------------------------------------------------------------------------------------------------
   Alerts and toasts carry a coloured bar on their leading edge. Toasts set their own colours (they are also shown in
   the studio, over the map), slide up and fade (transform + opacity only). */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-radius: 0; border: 1px solid var(--line); border-left: 3px solid var(--c-blue); background: var(--surface-2); color: var(--text); font-size: .93rem; margin-bottom: 16px; }
.alert i { margin-top: 3px; }
.alert-danger { border-color: rgba(255, 84, 112, .35); border-left-color: var(--c-red); background: rgba(255, 84, 112, .09); color: #FFC2CC; }
[data-theme="light"] .alert-danger { color: #9F1239; }
.alert-success { border-color: rgba(34, 197, 94, .35); border-left-color: var(--c-teal); background: rgba(34, 197, 94, .09); }
.alert-warning { border-color: rgba(255, 181, 71, .35); border-left-color: var(--c-amber); background: rgba(255, 181, 71, .09); }
.form-error, .form-ok { display: none; }
.form-error.is-shown, .form-ok.is-shown { display: flex; animation: rise .3s var(--ease); }
.toasts { position: fixed; z-index: 1000; bottom: 22px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(92vw, 520px); }
.toast { display: flex; gap: 11px; align-items: center; min-height: 46px; padding: 12px 18px 12px 15px; border-radius: 0; background: var(--surface-solid); color: var(--text); border: 1px solid var(--line-strong); border-left: 3px solid var(--c-blue);
    box-shadow: var(--shadow-lg); font: 500 .92rem/1.4 var(--font-body); pointer-events: auto; max-width: 100%;
    opacity: 0; transform: translateY(14px); transition: opacity .3s var(--ease), transform .3s var(--ease); }
.toast.is-in { opacity: 1; transform: none; }
.toast > i { color: var(--c-blue); font-size: 1.05em; flex: none; }
.toast > span { color: var(--text); }
.toast-success { border-left-color: var(--c-teal); } .toast-success > i { color: var(--c-teal); }
.toast-error { border-left-color: var(--c-red); } .toast-error > i { color: var(--c-red); }
.toast-progress { border-left-color: var(--c-violet); }
.toast-progress .st-spinner, .toast .st-spinner { flex: none; width: 16px !important; height: 16px !important; border-width: 2px !important; border-radius: 50%; border-style: solid; border-color: var(--line-strong); border-top-color: var(--c-teal); border-right-color: var(--c-violet); animation: spin .8s linear infinite; }
[data-theme="light"] .toast { box-shadow: 0 18px 40px -18px rgba(10, 13, 18, .35), 0 1px 3px rgba(10, 13, 18, .08); }
[data-theme="light"] .toast > i { color: var(--primary); }
[data-theme="light"] .toast-success > i { color: #059669; } [data-theme="light"] .toast-success { border-left-color: #10B981; }
[data-theme="light"] .toast-error > i { color: #DC2626; } [data-theme="light"] .toast-error { border-left-color: #E11D48; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 0; font: 700 .64rem/1 var(--font-display); font-stretch: 112%; letter-spacing: .1em; text-transform: uppercase; background: var(--surface-3); color: var(--text-2); font-style: normal; }
.tag-ok { background: rgba(25, 227, 177, .14); color: var(--c-teal); }
.tag-bad { background: rgba(255, 84, 112, .14); color: var(--c-red); }
.tag-pro { background: rgba(139, 92, 246, .16); color: #C4B5FD; }
[data-theme="light"] .tag-ok { color: #047857; } [data-theme="light"] .tag-bad { color: #BE123C; } [data-theme="light"] .tag-pro { color: #6D28D9; }

/* ---- SURFACES --------------------------------------------------------------------------------------------------
   Cards are sharp with a hairline and carry the cut as a mark: a small wedge of colour in the top-right corner. On
   hover they rise a few pixels (transform) and their top edge lights up. No glows, no blur. */
.panel, .country-card, .layer-card, .guide-card, .bento-card, .how-card, .price-card, .faq-item, .gallery-card, .kpi, .place-list li, .buy-item, .map-row, .receipt-mini { position: relative; }
.panel::after, .country-card::after, .layer-card::after, .guide-card::after, .bento-card::after, .how-card::after, .price-card::after, .gallery-card::after, .kpi::after, .stat-row::after, .table-wrap::after, .buy-box::after, .empty-state::after {
    content: ""; position: absolute; top: -1px; right: -1px; width: 12px; height: 12px; z-index: 1; pointer-events: none; background: linear-gradient(225deg, var(--wedge) 0 50%, transparent 50%); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 26px; margin-bottom: 24px; box-shadow: var(--shadow); }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1rem; font-stretch: 118%; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 18px; }
.panel-title i { color: var(--c-blue); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-2.tight { gap: 14px; }
@media (max-width: 860px) { .grid-2 { grid-template-columns: 1fr; } }
.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: 0; background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.table th { text-align: left; font: 700 .66rem var(--font-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface-2); }
.table td { padding: 11px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background-color .15s; }
.table tbody tr:hover td { background: rgba(59, 167, 255, .045); }
.table .num { text-align: right; }
.table.compact td, .table.compact th { padding: 8px 12px; }
.table.bars td[style*="--w"] { background-image: linear-gradient(90deg, rgba(59, 167, 255, .18), rgba(139, 92, 246, .18)); background-size: var(--w) 56%; background-repeat: no-repeat; background-position: right center; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 600 .68rem/1.4 var(--font-display); font-stretch: 112%; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--text); }
.crumbs i { font-size: .8em; opacity: .55; }
.crumbs span[aria-current] { color: var(--text-2); }

/* ---- PAGE HEADERS ---------------------------------------------------------------------------------------------- */
/* EYEBROW: no pill - a spectrum hairline, then widely tracked capitals */
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font: 700 .68rem/1.3 var(--font-display); font-stretch: 125%; letter-spacing: .24em; text-transform: uppercase; color: var(--c-teal); margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 34px; height: 2px; flex: none; background: var(--rule); }
.eyebrow > i { font-size: .95rem; letter-spacing: 0; }
.eyebrow .type-ico.sm { margin-right: -2px; }
[data-theme="light"] .eyebrow { color: #0E7490; }
.center > .eyebrow, .sec-head:not(.left) > .eyebrow, .cta-band > .eyebrow { margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--text-2); max-width: 760px; line-height: 1.65; }
.page-hero { padding: 54px 0 34px; }
.page-hero h1 { max-width: 980px; }
.h1-sub { display: block; font-size: .42em; color: var(--muted); font-weight: 600; font-stretch: 112%; letter-spacing: .14em; margin-top: .6em; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.hero-cta.center { justify-content: center; }
.stat-row { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 0; margin-top: 30px; }
.stat-row > div { background: var(--surface-solid); padding: 22px 24px; }
.stat-row b { display: block; font: 800 clamp(1.45rem, 3vw, 2.15rem)/1.05 var(--font-display); font-stretch: 125%; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.stat-row span { color: var(--muted); font-size: .86rem; }
.stat-row.compact { max-width: 760px; }
.stat-row.compact b { font-size: 1.35rem; }
.stat-row.compact > div { padding: 16px 18px; }
@media (max-width: 700px) { .stat-row { grid-template-columns: 1fr 1fr; } }
.filter-box { position: relative; max-width: 440px; margin-top: 24px; }
.filter-box i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); z-index: 1; }
.filter-box .input { padding-left: 44px; }

/* ---- CATALOGUE (the SEO pages) ------------------------------------------------------------------------------------ */
.catalog-sec { margin: 48px 0; }
.catalog-sec > h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.catalog-sec > h2 i { color: var(--c-blue); font-size: .85em; }
.catalog-sec > h2 .muted { font-size: .62em; font-weight: 600; letter-spacing: .08em; }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.country-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px 16px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; --wedge: var(--c-teal); }
.country-card .flag { grid-row: span 2; font-size: 1.8rem; line-height: 1; }
.country-card b { font-weight: 600; font-size: .98rem; line-height: 1.25; }
.country-card span:not(.flag) { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.layer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.layer-card { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: center; padding: 16px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; --wedge: var(--c, var(--c-blue)); }
.layer-card .type-ico { grid-row: span 2; }
.layer-card b { font-weight: 600; line-height: 1.25; }
.layer-card span:not(.type-ico) { color: var(--muted); font-size: .8rem; font-family: var(--font-mono); }
.layer-card em { position: absolute; top: 10px; right: 14px; }
.country-card:hover, .layer-card:hover, .guide-card:hover, .bento-card:hover, .how-card:hover, .gallery-card:hover, .price-card:hover { transform: translateY(-3px); border-color: var(--line-strong); box-shadow: inset 0 2px 0 var(--wedge), var(--shadow); }
.type-ico { --c: var(--c-blue); width: 46px; height: 42px; clip-path: var(--hex); display: inline-grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 18%, transparent); font-size: 17px; flex: none; }
.type-ico.sm { width: 26px; height: 24px; font-size: 11px; vertical-align: middle; }
.group-title { display: flex; align-items: center; gap: 10px; font: 700 .7rem var(--font-display); font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 26px 0 12px; }
.group-title i { color: var(--c-blue); font-size: .95rem; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-row.center { justify-content: center; }
.chip { --c: var(--c-blue); display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text-2) !important; font-size: .86rem; font-weight: 500;
    transition: border-color .2s, color .2s, transform .2s var(--ease), box-shadow .2s; }
.chip i { color: var(--c); }
.chip:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); color: var(--text) !important; transform: translateY(-2px); box-shadow: inset 0 -2px 0 var(--c); }
.chip.owned { border-color: rgba(25, 227, 177, .4); }
.region-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.region-cloud a { padding: 7px 12px; border-radius: 0; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); font-size: .86rem; transition: border-color .2s, color .2s; }
.region-cloud a span { color: var(--dim); font-family: var(--font-mono); font-size: .8em; margin-left: 4px; }
.region-cloud a:hover { color: var(--text); border-color: var(--c-blue); }
.layer-hero-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; }
@media (max-width: 980px) { .layer-hero-grid { grid-template-columns: 1fr; } }
.buy-box { position: sticky; top: calc(var(--nav-h) + 16px); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 0; padding: 22px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow-lg); }
.buy-box::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: var(--spectrum); }
.buy-box-head { display: flex; gap: 14px; align-items: center; margin-bottom: 6px; }
.buy-box-head b { display: block; font: 700 1.02rem/1.25 var(--font-display); font-stretch: 112%; }
.buy-box-head span:not(.type-ico):not(.flag) { color: var(--muted); font-size: .84rem; font-family: var(--font-mono); }
.buy-pass { font-size: .86rem; text-align: center; color: var(--c-amber) !important; padding: 4px; }
[data-theme="light"] .buy-pass { color: #B45309 !important; }
.buy-pass:hover { text-decoration: underline; }
.ticks { list-style: none; padding: 0; margin: 6px 0 0; }
.ticks li { position: relative; padding-left: 24px; margin: 7px 0; color: var(--text-2); }
.ticks li::before { content: "\f00c"; font: 400 13px/1 "Font Awesome 6 Pro"; position: absolute; left: 0; top: 5px; color: var(--c-teal); }
[data-theme="light"] .ticks li::before { color: #059669; }
.ticks.small li { font-size: .85rem; margin: 4px 0; }
.preview { margin: 0 0 10px; }
.preview-map { position: relative; height: 440px; border-radius: 0; overflow: hidden; border: 1px solid var(--line-strong); background: var(--bg-2); }
.preview-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 36px 36px; pointer-events: none; }
.preview-ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 12px; color: var(--muted); font-size: .9rem; }
.preview-ph i { font-size: 34px; color: var(--c-blue); animation: pulse 1.6s ease-in-out infinite; }
.preview-map.is-failed .preview-ph span::after { content: " (preview unavailable)"; }
.preview figcaption { font-size: .86rem; color: var(--muted); margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
@keyframes pulse { 50% { transform: scale(1.12); opacity: .6; } }
.place-list { list-style: none; counter-reset: p; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; }
.place-list li { counter-increment: p; padding: 12px 14px 12px 54px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.place-list li::before { content: counter(p, decimal-leading-zero); position: absolute; left: 12px; top: 12px; width: 30px; height: 27px; clip-path: var(--hex); display: grid; place-items: center; font: 700 .7rem var(--font-mono); color: var(--text-2); background: var(--surface-3); }
.place-list b { display: block; font-weight: 600; line-height: 1.3; }
.place-list span { color: var(--muted); font-size: .82rem; }
.split-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; margin: 48px 0; }
.split-2 .catalog-sec, .split-2 .faq { margin: 0; }
.split-2 > .buy-box { position: static; }
@media (max-width: 900px) { .split-2 { grid-template-columns: 1fr; } }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px; }
.related-grid h3 { font: 700 .72rem var(--font-display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .92rem; }
.link-list li > span { color: var(--dim); font-family: var(--font-mono); font-size: .82rem; }
.faq h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); }
.faq-item { border: 1px solid var(--line); border-radius: 0; background: var(--surface); margin-bottom: 8px; transition: border-color .2s, box-shadow .2s; }
.faq-item[open] { border-color: var(--line-strong); box-shadow: inset 2px 0 0 var(--c-blue); }
.faq-item summary { cursor: pointer; list-style: none; padding: 16px 52px 16px 18px; font-weight: 600; position: relative; transition: color .2s; }
.faq-item summary:hover { color: var(--c-blue); }
[data-theme="light"] .faq-item summary:hover { color: var(--primary); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "\2b"; font: 400 15px/1 "Font Awesome 6 Pro"; position: absolute; right: 18px; top: 50%; margin-top: -8px; color: var(--muted); transition: transform .3s var(--ease); }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item > div { padding: 0 18px 6px; color: var(--text-2); }
.faq-item[open] > div { animation: rise .32s var(--ease); }
.empty-state { position: relative; text-align: center; padding: 70px 20px; border: 1px dashed var(--line-strong); border-radius: 0; }
.empty-state.small { padding: 34px 20px; }
.empty-state i { font-size: 38px; color: var(--c-blue); margin-bottom: 14px; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.gallery-card { display: flex; flex-direction: column; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; overflow: hidden; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; --wedge: var(--c-pink); }
.gallery-thumb { position: relative; height: 160px; display: grid; place-items: center; font-size: 34px; color: var(--c-blue); background: var(--bg-2); border-bottom: 1px solid var(--line);
    background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px), linear-gradient(135deg, rgba(25, 227, 177, .1), rgba(59, 167, 255, .1), rgba(139, 92, 246, .12)); background-size: 24px 24px, 24px 24px, 100% 100%; }
.gallery-card b { padding: 14px 16px 4px; font-family: var(--font-display); font-stretch: 112%; }
.gallery-card span { padding: 0 16px; color: var(--muted); font-size: .88rem; }
.gallery-card em { padding: 10px 16px 14px; color: var(--dim); font-size: .78rem; font-style: normal; margin-top: auto; font-family: var(--font-mono); }
.pager { display: flex; justify-content: center; gap: 12px; margin: 30px 0; }

/* ---- GUIDES, TOOLS AND PROSE -------------------------------------------------------------------------------------- */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.guide-card { display: flex; flex-direction: column; gap: 8px; padding: 24px 22px 22px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); color: var(--text) !important; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.guide-ico { width: 48px; height: 44px; clip-path: var(--hex); display: grid; place-items: center; font-size: 18px; color: #fff; background: var(--primary-grad); margin-bottom: 8px; }
.guide-card-cat { font: 700 .64rem var(--font-display); font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--c-teal); }
[data-theme="light"] .guide-card-cat { color: #0E7490; }
.guide-card b { font: 700 1.08rem/1.3 var(--font-display); font-stretch: 112%; letter-spacing: -.005em; }
.guide-card > span:not(.guide-ico):not(.guide-card-cat):not(.guide-card-go) { color: var(--muted); font-size: .92rem; }
.guide-card-go { margin-top: auto; padding-top: 8px; color: var(--c-blue); font: 700 .7rem var(--font-display); font-stretch: 118%; letter-spacing: .12em; text-transform: uppercase; }
[data-theme="light"] .guide-card-go { color: var(--primary); }
.guide-card-go i { transition: transform .35s var(--ease); }
.guide-card:hover .guide-card-go i { transform: translateX(4px); }
.guide-wrap { padding-top: 40px; }
.guide { max-width: 780px; margin: 0 auto; }
.guide-head { margin-bottom: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.guide-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.7rem); }
.guide-date { color: var(--dim); font: 500 .8rem var(--font-mono); }
.prose-wrap { padding-bottom: 40px; }
.prose { max-width: 780px; font-size: 1.04rem; color: var(--text-2); }
.prose-wrap > .prose { margin: 0 auto; }
.prose h2 { font-size: clamp(1.25rem, 2.4vw, 1.6rem); font-stretch: 118%; margin: 2.2em 0 .7em; color: var(--text); }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 .5em; color: var(--text); }
.prose p, .prose li { line-height: 1.75; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .35em 0; }
.prose strong, .prose b { color: var(--text); }
.prose a:not(.btn) { text-decoration: underline; text-decoration-color: rgba(59, 167, 255, .45); text-underline-offset: 3px; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid; border-image: var(--spectrum) 1; color: var(--text); font-size: 1.1rem; }
.prose code { font: .88em var(--font-mono); padding: 2px 6px; border-radius: 0; background: var(--surface-2); color: var(--text); }
.prose .table-wrap, .prose table { margin: 1.5em 0; }
.prose table.table { border: 1px solid var(--line); overflow: hidden; display: table; }
.prose .faq { margin-top: 3em; }
.prose .btn { margin: .5em 0; text-decoration: none; }
.prose figure, .shot { margin: 1.6em 0; }
.prose figure img, .shot img { width: 100%; height: auto; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.prose figcaption, .shot figcaption { margin-top: 10px; font-size: .86rem; line-height: 1.5; color: var(--muted); }
.prose figcaption > b:first-child, .shot figcaption > b:first-child { display: inline-block; margin-right: 10px; font: 700 .66rem var(--font-display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: var(--c-teal); }
.callout { position: relative; display: flex; gap: 14px; padding: 16px 18px; border-radius: 0; border: 1px solid rgba(25, 227, 177, .28); border-left: 3px solid var(--c-teal); background: rgba(25, 227, 177, .06); margin: 1.6em 0; color: var(--text-2); }
.callout > i { color: var(--c-teal); margin-top: 5px; font-size: 1.1rem; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout-warn { border-color: rgba(255, 181, 71, .32); border-left-color: var(--c-amber); background: rgba(255, 181, 71, .06); }
.callout-warn > i { color: var(--c-amber); }
[data-theme="light"] .callout > i { color: #059669; } [data-theme="light"] .callout-warn > i { color: #B45309; }
.steps { list-style: none; counter-reset: s; padding: 0 !important; margin: 1.5em 0; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 16px 58px; margin: 0 !important; }
.steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 40px; height: 36px; clip-path: var(--hex); display: grid; place-items: center; font: 800 .8rem var(--font-display); font-stretch: 118%; color: #fff; background: var(--primary-grad); }
.steps li::after { content: ""; position: absolute; left: 19.5px; top: 42px; bottom: 4px; width: 1px; background: var(--line-strong); }
.steps li:last-child::after { display: none; }
.tool-hero { padding-bottom: 20px; }
.tool-frame { position: relative; margin-top: 28px; height: min(72vh, 680px); min-height: 460px; border-radius: 0; overflow: hidden; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); background: var(--bg-2); }
.tool-frame::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--spectrum); z-index: 2; pointer-events: none; }
.tool-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.tool-open { position: absolute; right: 14px; top: 14px; bottom: auto; z-index: 3; }
.support-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 30px; align-items: start; padding-bottom: 50px; }
@media (max-width: 900px) { .support-grid { grid-template-columns: 1fr; } }

/* ---- HOME -------------------------------------------------------------------------------------------------------- */
.hero { position: relative; padding: 46px 0 40px; overflow: clip visible; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 40px; align-items: center; }
@media (max-width: 1060px) { .hero-grid { grid-template-columns: 1fr; } }
/* the hero badge: a plate of frosted glass held in two gradient corner brackets */
.hero-badge { position: relative; isolation: isolate; overflow: hidden; display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 8px 18px 8px 8px; border-radius: 0; border: 1px solid color-mix(in srgb, var(--text) 16%, transparent);
    color: var(--text-2) !important; margin-bottom: 26px; font: 600 .68rem/1.3 var(--font-display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase;
    background: linear-gradient(#19E3B1, #19E3B1) top left / 16px 2px no-repeat, linear-gradient(#19E3B1, #19E3B1) top left / 2px 16px no-repeat,
        linear-gradient(#8B5CF6, #8B5CF6) bottom right / 16px 2px no-repeat, linear-gradient(#8B5CF6, #8B5CF6) bottom right / 2px 16px no-repeat,
        linear-gradient(115deg, color-mix(in srgb, var(--surface) 80%, transparent), color-mix(in srgb, var(--surface) 35%, transparent));
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: color .2s; }
.hero-badge::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; transform: translateX(-110%); background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .16) 50%, transparent 65%); animation: pass 7s ease-in-out 2.4s infinite; }
@keyframes pass { 0%, 62% { transform: translateX(-110%); } 100% { transform: translateX(110%); } }
.hero-badge:hover { color: var(--text) !important; }
.hero-badge b { --cut: 5px; clip-path: var(--chamfer); background: var(--spectrum); color: #fff; text-shadow: 0 1px 2px rgba(5, 7, 11, .45), 0 0 1px rgba(5, 7, 11, .5); padding: 5px 9px; font-size: .95em; font-weight: 800; letter-spacing: .1em; }
.hero-badge i { transition: transform .35s var(--ease); }
.hero-badge:hover i { transform: translateX(4px); }
[data-theme="light"] .hero-badge::after { background: linear-gradient(100deg, transparent 35%, rgba(255, 255, 255, .85) 50%, transparent 65%); }
.display { font-size: clamp(2.1rem, 3.9vw, 3.45rem); line-height: .98; letter-spacing: -.015em; margin-bottom: 24px; }
.display .line { display: block; }
.display .bow { position: relative; background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); margin-bottom: 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 22px; color: var(--muted); font-size: .88rem; }
.hero-trust i { color: var(--c-teal); margin-right: 7px; }
[data-theme="light"] .hero-trust i { color: #059669; }
.hero-search { position: relative; margin-top: 30px; display: flex; gap: 0; padding: 6px; border-radius: 0; background: var(--surface); border: 1px solid var(--line-strong); max-width: 600px; box-shadow: 0 0 0 1px rgba(59, 167, 255, .0), var(--shadow-lg); transition: box-shadow .3s, border-color .3s; }
.hero-search:focus-within { border-color: var(--c-blue); box-shadow: 0 0 0 1px var(--c-blue), 0 18px 40px -22px rgba(59, 167, 255, .8); }
.hero-search .input { border: 0; background: transparent; height: 48px; box-shadow: none !important; }
.hero-search .select { border: 0; background-color: transparent; height: 48px; max-width: 210px; box-shadow: none !important; font-weight: 600; }
.hero-search .select + .select { border-left: 1px solid var(--line); }
.hero-search .btn { flex: none; margin-left: 6px; }
@media (max-width: 560px) { .hero-search { flex-direction: column; } .hero-search .select { max-width: none; } .hero-search .select + .select { border-left: 0; border-top: 1px solid var(--line); } .hero-search .btn { margin: 6px 0 0; } }

/* the hero's typeahead fields (core.js combo() over the hidden <select>s). On wide screens the list drops under the whole
   bar, as wide as it; on phones under its own field. */
.cbx { position: static; flex: 1 1 0; min-width: 0; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 10px 0 12px; cursor: text; transition: background-color .2s; }
.cbx + .cbx { box-shadow: inset 1px 0 0 var(--line); }
.cbx:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.cbx.is-open { background: var(--spectrum) bottom / 100% 2px no-repeat, color-mix(in srgb, var(--c-blue) 7%, transparent); }
.cbx-lead { flex: none; display: grid; place-items: center; width: 28px; }
.cbx-hex { --c: #3BA7FF; display: inline-grid; place-items: center; width: 26px; height: 23px; flex: none; clip-path: var(--hex); background: var(--c); color: #fff; font-size: 11.5px; font-style: normal; }
.cbx-flag { font-size: 20px; line-height: 1; }
.cbx-search { color: var(--c-blue); font-size: 15px; }
.cbx-input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--text); font: 600 .98rem var(--font-body); padding: 0; outline: 0; text-overflow: ellipsis; }
.cbx-input::selection { background: color-mix(in srgb, var(--c-blue) 40%, transparent); color: var(--text); }
.cbx-caret { flex: none; color: var(--muted); font-size: 11px; transition: transform .3s var(--ease), color .2s; cursor: pointer; }
.cbx.is-open .cbx-caret { transform: rotate(180deg); color: var(--c-blue); }
.cbx-pop { position: absolute; left: -1px; right: -1px; top: calc(100% + 8px); z-index: 40; display: flex; flex-direction: column; max-height: min(430px, 62vh);
    background: color-mix(in srgb, var(--surface-solid) 94%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
    border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg), 0 30px 60px -30px rgba(0, 0, 0, .6); cursor: default; animation: cbx-in .22s var(--ease); }
.cbx-pop::before { content: ""; position: absolute; left: -1px; right: -1px; top: -1px; height: 2px; background: var(--spectrum); }
.cbx-pop[hidden] { display: none; }
@keyframes cbx-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cbx-head { flex: none; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px 10px; border-bottom: 1px solid var(--line);
    font: 700 .62rem/1 var(--font-display); font-stretch: 118%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.cbx-head em { font: 500 .72rem/1 var(--font-mono); font-style: normal; letter-spacing: 0; text-transform: none; color: var(--c-teal); }
[data-theme="light"] .cbx-head em { color: #0E7490; }
.cbx-list { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 4px 0 6px; }
.cbx-group { position: sticky; top: -4px; z-index: 1; display: flex; align-items: center; gap: 10px; padding: 12px 16px 6px; background: var(--surface-solid);
    font: 700 .6rem/1 var(--font-display); font-stretch: 118%; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cbx-group::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.cbx-opt { position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 14px; align-items: center; gap: 12px; height: 42px; padding: 0 16px; cursor: pointer; color: var(--text-2); font-size: .94rem; }
.cbx-opt .cbx-flag { font-size: 19px; text-align: center; }
.cbx-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cbx-name mark { background: none; color: var(--c-blue); font-weight: 700; box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--c-blue) 45%, transparent); }
[data-theme="light"] .cbx-name mark { color: var(--primary); }
.cbx-opt em { font: 500 .74rem var(--font-mono); font-style: normal; color: var(--dim); white-space: nowrap; }
.cbx-tick { color: var(--c-teal); font-size: 12px; opacity: 0; }
[data-theme="light"] .cbx-tick { color: #059669; }
.cbx-opt.is-sel { color: var(--text); font-weight: 600; }
.cbx-opt.is-sel .cbx-tick { opacity: 1; }
.cbx-opt.is-active { background: color-mix(in srgb, var(--c-blue) 11%, transparent); color: var(--text); }
.cbx-opt.is-active::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, #19E3B1, #3BA7FF 50%, #8B5CF6); }
.cbx-opt.is-active em { color: var(--muted); }
.cbx-empty { display: grid; justify-items: center; gap: 6px; padding: 28px 16px 26px; text-align: center; color: var(--muted); font-size: .85rem; }
.cbx-empty i { font-size: 20px; color: var(--dim); margin-bottom: 4px; }
.cbx-empty b { color: var(--text); font-weight: 600; }
.cbx-foot { flex: none; display: flex; gap: 18px; padding: 9px 16px; border-top: 1px solid var(--line); font-size: .72rem; color: var(--muted); }
.cbx-foot kbd { font-size: .68rem; padding: 1px 5px; margin-right: 3px; }
@media (hover: none) { .cbx-foot { display: none; } }
@media (max-width: 560px) {
    .cbx { position: relative; flex: none; height: 52px; }
    .cbx + .cbx { box-shadow: inset 0 1px 0 var(--line); }
    .cbx-pop { left: -7px; right: -7px; top: calc(100% + 4px); max-height: min(360px, 52vh); }
}

/* the hero scene: the studio telling its own story - Add data, pick Hospitals, they fly onto a city map and land inside
   its boundary, one is clicked and its popup opens - then it clears and loops (18 s). Pure SVG + CSS, transform and
   opacity only, sized in cqw (container units) so the whole picture scales as one; it pauses off screen. */
.hero-scene { --hs-t: 18s; position: relative; container-type: inline-size; aspect-ratio: 100 / 82; width: 100%; max-width: 660px; margin: 0 auto;
    --hs-frame: #0A0E15; --hs-bar: #080B10; --hs-line: rgba(255, 255, 255, .1); --hs-ink: #F3F5F8; --hs-ink2: #A9B3C1;
    --hs-land: #0D131C; --hs-cityfill: rgba(139, 92, 246, .075); --hs-minor: rgba(148, 163, 184, .2); --hs-art: rgba(203, 213, 225, .3); --hs-art-case: transparent;
    --hs-water: #0A1E33; --hs-coast: rgba(59, 167, 255, .5); --hs-park: rgba(34, 197, 94, .15); --hs-mway: #E6A03C; --hs-mway-case: #2A1D0B; --hs-rail: rgba(203, 213, 225, .3);
    --hs-sand: rgba(232, 200, 140, .28); --hs-block: rgba(148, 163, 184, .16); --hs-bound: #A78BFA; --hs-lbl: rgba(203, 213, 225, .5); --hs-water-lbl: rgba(110, 172, 255, .75); --hs-city-lbl: #E9E3FF;
    --hs-glass: rgba(12, 16, 23, .94); --hs-pop-shadow: 0 2.4cqw 5cqw -2cqw rgba(0, 0, 0, .9); --hs-cursor: #FFFFFF; }
[data-theme="light"] .hero-scene { --hs-frame: #FFFFFF; --hs-bar: #FFFFFF; --hs-line: rgba(10, 13, 18, .1); --hs-ink: #0A0D12; --hs-ink2: #4B5563;
    --hs-land: #EEF0EC; --hs-cityfill: rgba(124, 58, 237, .055); --hs-minor: rgba(100, 116, 139, .16); --hs-art: #FFFFFF; --hs-art-case: #CDD3DB;
    --hs-water: #B9D9F2; --hs-coast: #86B6E0; --hs-park: #CFE9CC; --hs-mway: #F5B54F; --hs-mway-case: #D48A1C; --hs-rail: rgba(71, 85, 105, .4);
    --hs-sand: #F1E2BE; --hs-block: rgba(100, 116, 139, .17); --hs-bound: #7C3AED; --hs-lbl: rgba(30, 41, 59, .55); --hs-water-lbl: #3A78B0; --hs-city-lbl: #4C1D95;
    --hs-glass: rgba(255, 255, 255, .96); --hs-pop-shadow: 0 2.4cqw 5cqw -2cqw rgba(10, 13, 18, .45); --hs-cursor: #0A0D12; }
.hero-scene * { animation-play-state: inherit; }
.hero-scene.is-paused, .hero-scene.is-paused * { animation-play-state: paused !important; }
.hero-scene i[class*="fa-"] { line-height: 1; }
/* a hairline frame offset behind the window, held by two gradient corners */
.scene-glow { position: absolute; inset: 4% -2.5% -3.5% 4%; border: 1px solid rgba(59, 167, 255, .28); z-index: -1; pointer-events: none; }
.scene-glow::before { content: ""; position: absolute; top: -1px; left: -1px; width: 22px; height: 22px; border-top: 2px solid var(--c-teal); border-left: 2px solid var(--c-teal); }
.scene-glow::after { content: ""; position: absolute; bottom: -1px; right: -1px; width: 22px; height: 22px; border-bottom: 2px solid var(--c-pink); border-right: 2px solid var(--c-pink); }
[data-theme="light"] .scene-glow { border-color: rgba(37, 99, 235, .22); }

.hs-frame { position: absolute; inset: 0; overflow: hidden; background: var(--hs-frame); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); color: var(--hs-ink); font-family: var(--font-body); }
.hs-bar { position: absolute; left: 0; right: 0; top: 0; height: 7cqw; display: flex; align-items: center; gap: 1.3cqw; padding: 0 1.6cqw; background: var(--hs-bar); border-bottom: 1px solid var(--hs-line); z-index: 3; }
.hs-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--spectrum); opacity: .75; }
.hs-mark { width: 3.8cqw; height: 3.8cqw; flex: none; color: var(--hs-ink); }
.hs-title { display: flex; flex-direction: column; gap: .35cqw; padding-left: 1.3cqw; border-left: 1px solid var(--hs-line); min-width: 0; }
.hs-title b { font: 700 1.7cqw/1 var(--font-display); font-stretch: 110%; white-space: nowrap; }
.hs-title em { font: 500 1.2cqw/1 var(--font-mono); font-style: normal; color: var(--hs-ink2); white-space: nowrap; }
.hs-bar-gap { flex: 1; }
.hs-chip3d, .hs-share { --cut: .8cqw; clip-path: var(--chamfer); display: inline-flex; align-items: center; gap: .7cqw; height: 3.8cqw; padding: 0 1.4cqw; font: 700 1.15cqw/1 var(--font-display); font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.hs-chip3d { box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-ink); }
.hs-share { background: var(--primary-grad); color: #fff; }
.hs-rail { position: absolute; left: 0; top: 7cqw; bottom: 0; width: 7cqw; background: var(--hs-bar); border-right: 1px solid var(--hs-line); z-index: 3; padding-top: 1cqw; }
.hs-rail span { position: relative; display: grid; place-items: center; height: 7cqw; color: var(--hs-ink2); font-size: 2.3cqw; }
.hs-rail-add { color: var(--hs-ink) !important; }
.hs-rail-add::before { content: ""; position: absolute; inset: .6cqw .9cqw; background: color-mix(in srgb, var(--c-blue) 18%, transparent); box-shadow: inset 0 -2px 0 var(--c-blue); opacity: 0; animation: hs-railon var(--hs-t) var(--ease) infinite; }
.hs-rail-add i { position: relative; }

/* the map */
.hs-map { position: absolute; left: 7cqw; top: 7cqw; width: 93cqw; height: 75cqw; overflow: hidden; }
.hs-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hs-land { fill: var(--hs-land); }
.hs-cityfill { fill: var(--hs-cityfill); }
.hs-minor { stroke: var(--hs-minor); stroke-width: 1.2; }
.hs-minor.faint { stroke-width: 1; opacity: .6; }
.hs-park { fill: var(--hs-park); }
.hs-river { fill: none; stroke: var(--hs-water); stroke-width: 15; stroke-linecap: round; }
.hs-river-case { fill: none; stroke: var(--hs-coast); stroke-width: 17; stroke-linecap: round; opacity: .55; }
.hs-sea { fill: var(--hs-water); }
.hs-coast { fill: none; stroke: var(--hs-coast); stroke-width: 2; }
.hs-island { fill: var(--hs-land); stroke: var(--hs-coast); stroke-width: 2; }
.hs-beach { fill: none; stroke: var(--hs-sand); stroke-width: 9; stroke-linecap: round; }
.hs-ferry { fill: none; stroke: var(--hs-water-lbl); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; opacity: .8; }
.hs-pier { fill: none; stroke: var(--hs-art); stroke-width: 4; }
.hs-blocks rect { fill: var(--hs-block); }
.hs-art, .hs-art-case { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.hs-art-case { stroke: var(--hs-art-case); stroke-width: 7.5; }
.hs-art { stroke: var(--hs-art); stroke-width: 4.5; }
.hs-rail-line { fill: none; stroke: var(--hs-rail); stroke-width: 2.4; stroke-dasharray: 10 7; }
.hs-mway-case { fill: none; stroke: var(--hs-mway-case); stroke-width: 13; stroke-linecap: round; }
.hs-mway { fill: none; stroke: var(--hs-mway); stroke-width: 8; stroke-linecap: round; opacity: .92; }
.hs-bound { fill: none; stroke: var(--hs-bound); stroke-width: 3; stroke-dasharray: 12 7; stroke-linejoin: round; }
.hs-lbl text { font: 700 15px var(--font-display); font-stretch: 118%; letter-spacing: .22em; fill: var(--hs-lbl); }
.hs-water-lbl { font: italic 500 20px var(--font-body); fill: var(--hs-water-lbl); letter-spacing: .04em; }
.hs-water-lbl.sm { font-size: 15px; }
.hs-city-lbl { font: 800 30px var(--font-display); font-stretch: 125%; letter-spacing: .14em; fill: var(--hs-city-lbl); }
.hs-city-sub { font: 600 12px var(--font-mono); letter-spacing: .12em; fill: var(--hs-bound); }
.hs-scale path { fill: none; stroke: var(--hs-ink); stroke-width: 2.5; opacity: .7; }
.hs-scale text { font: 600 13px var(--font-mono); fill: var(--hs-ink); opacity: .7; }

/* markers */
.hs-pin { position: absolute; width: 3.6cqw; height: 4.8cqw; margin: -4.8cqw 0 0 -1.8cqw; transform-origin: 50% 100%; opacity: 0; z-index: 1;
    animation: hs-drop var(--hs-t) var(--ease) infinite; animation-delay: calc(var(--d) * .22s); filter: drop-shadow(0 .5cqw .5cqw rgba(0, 0, 0, .4)); }
.hs-pin svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hs-pin svg path { fill: #FF4D6D; stroke: #fff; stroke-width: 2; }
.hs-pin > i { position: absolute; left: 0; right: 0; top: 1.05cqw; text-align: center; color: #fff; font-size: 1.5cqw; }
.hs-pin-sel { z-index: 2; animation-name: hs-drop-sel; animation-delay: 0s; }
.hs-sel-ring { position: absolute; left: 50%; top: 100%; width: 5.4cqw; height: 2.2cqw; margin: -1.1cqw 0 0 -2.7cqw; border-radius: 50%; border: 2px solid #FF4D6D; background: rgba(255, 77, 109, .16); opacity: 0; animation: hs-ring var(--hs-t) var(--ease) infinite; }

/* the popup, styled like the studio's own */
.hs-pop-at { position: absolute; width: 0; height: 0; z-index: 4; }
.hs-pop { position: absolute; left: -19cqw; bottom: 7cqw; width: 38cqw; background: var(--hs-glass); border: 1px solid var(--hs-line); box-shadow: inset 0 2px 0 #FF4D6D, var(--hs-pop-shadow); padding: 1.7cqw 1.9cqw 1.8cqw;
    transform-origin: 50% 100%; opacity: 0; animation: hs-pop var(--hs-t) var(--ease) infinite; }
.hs-pop::after { content: ""; position: absolute; left: 50%; bottom: -1.2cqw; width: 2.2cqw; height: 2.2cqw; margin-left: -1.1cqw; background: var(--hs-glass); border-right: 1px solid var(--hs-line); border-bottom: 1px solid var(--hs-line); transform: rotate(45deg) scale(.7); }
.hs-pop-kind { display: flex; align-items: center; gap: .8cqw; font: 700 1.1cqw/1 var(--font-display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; color: #FF4D6D; margin-bottom: .9cqw; }
.hs-pop-h { display: block; font: 800 2.05cqw/1.15 var(--font-display); font-stretch: 108%; margin-bottom: .8cqw; }
.hs-pop p { margin: 0 0 1.1cqw; font-size: 1.4cqw; line-height: 1.45; color: var(--hs-ink2); }
.hs-pop dl { display: grid; grid-template-columns: auto 1fr; gap: .55cqw 1.6cqw; margin: 0; font-size: 1.32cqw; line-height: 1.3; }
.hs-pop dt { color: var(--hs-ink2); }
.hs-pop dd { margin: 0; font-weight: 500; }
.hs-pop-acts { display: flex; gap: .9cqw; margin-top: 1.4cqw; }
.hs-pop-acts span { display: inline-flex; align-items: center; gap: .6cqw; padding: .85cqw 1.15cqw; box-shadow: inset 0 0 0 1px var(--hs-line); font: 700 1.02cqw/1 var(--font-display); font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; }
.hs-pop-acts span:first-child { background: #FF4D6D; color: #fff; box-shadow: none; }

/* hexagon icon tiles */
.hs-hex { --c: #FF4D6D; display: inline-grid; place-items: center; flex: none; width: 3.3cqw; height: 2.95cqw; clip-path: var(--hex); background: var(--c); color: #fff; font-size: 1.35cqw; font-style: normal; }

/* legend, zoom, toast */
.hs-legend { position: absolute; left: 1.5cqw; bottom: 6.6cqw; padding: 1.1cqw 1.4cqw; background: var(--hs-glass); border: 1px solid var(--hs-line); z-index: 3; opacity: 0; animation: hs-legend var(--hs-t) var(--ease) infinite; }
.hs-legend b { display: block; font: 700 1cqw/1 var(--font-display); font-stretch: 118%; letter-spacing: .16em; text-transform: uppercase; color: var(--hs-ink2); margin-bottom: .9cqw; }
.hs-legend span { display: flex; align-items: center; gap: 1cqw; font-size: 1.4cqw; font-weight: 500; white-space: nowrap; }
.hs-legend em { font: 600 1.2cqw var(--font-mono); font-style: normal; color: var(--hs-ink2); margin-left: .4cqw; }
.hs-legend .hs-hex { width: 2.5cqw; height: 2.25cqw; font-size: 1.05cqw; }
.hs-zoom { position: absolute; right: 1.5cqw; bottom: 1.5cqw; display: flex; flex-direction: column; background: var(--hs-glass); border: 1px solid var(--hs-line); z-index: 3; }
.hs-zoom i { display: grid; place-items: center; width: 3.6cqw; height: 3.6cqw; font-size: 1.4cqw; color: var(--hs-ink2); }
.hs-zoom i + i { border-top: 1px solid var(--hs-line); }
.hs-toast { position: absolute; left: 50%; top: 1.6cqw; display: flex; align-items: center; gap: .9cqw; padding: 1.1cqw 1.6cqw; margin-left: -15cqw; width: 30cqw; justify-content: center; white-space: nowrap;
    background: var(--hs-glass); border: 1px solid var(--hs-line); border-left: 2px solid var(--c-teal); font-size: 1.35cqw; z-index: 3; opacity: 0; animation: hs-toast var(--hs-t) var(--ease) infinite; }
.hs-toast i { color: var(--c-teal); }
[data-theme="light"] .hs-toast i { color: #059669; }

/* the Add data panel */
.hs-panel { position: absolute; left: 1.4cqw; top: 1.4cqw; width: 36cqw; background: var(--hs-glass); border: 1px solid var(--hs-line); box-shadow: var(--hs-pop-shadow); z-index: 5; padding-bottom: .8cqw;
    opacity: 0; animation: hs-panel var(--hs-t) var(--ease) infinite; }
.hs-panel::before { content: ""; position: absolute; left: -1px; top: -1px; bottom: -1px; width: 2px; background: linear-gradient(180deg, #19E3B1, #3BA7FF 40%, #8B5CF6 70%, #FF4D8D); }
.hs-panel-head { display: flex; align-items: center; gap: .9cqw; padding: 1.5cqw 1.6cqw 1.2cqw; font: 700 1.3cqw/1 var(--font-display); font-stretch: 118%; letter-spacing: .12em; text-transform: uppercase; }
.hs-panel-head i { color: var(--c-blue); font-size: 1.6cqw; }
.hs-panel-head span { margin-left: auto; font: 500 1.1cqw/1 var(--font-mono); letter-spacing: 0; text-transform: none; color: var(--hs-ink2); }
.hs-panel-search { display: flex; align-items: center; gap: .9cqw; margin: 0 1.4cqw .8cqw; padding: 0 1.1cqw; height: 3.8cqw; box-shadow: inset 0 0 0 1px var(--hs-line); color: var(--hs-ink2); font-size: 1.3cqw; }
.hs-row { position: relative; display: flex; align-items: center; gap: 1.2cqw; height: 4.9cqw; padding: 0 1.6cqw; font-size: 1.5cqw; font-weight: 500; }
.hs-row span { position: relative; flex: 1; white-space: nowrap; }
.hs-row em { position: relative; font: 500 1.2cqw var(--font-mono); font-style: normal; color: var(--hs-ink2); }
.hs-row .hs-hex { position: relative; }
.hs-row-pick::before { content: ""; position: absolute; inset: 0 .6cqw; background: color-mix(in srgb, #FF4D6D 15%, transparent); box-shadow: inset 2px 0 0 #FF4D6D; opacity: 0; animation: hs-pick var(--hs-t) var(--ease) infinite; }
.hs-tick { position: relative; color: #FF4D6D; font-size: 1.4cqw; margin-left: -.2cqw; opacity: 0; transform: scale(.4); animation: hs-tick var(--hs-t) var(--ease) infinite; }
.hs-fly { position: absolute; left: 2.8cqw; top: 10.8cqw; display: flex; align-items: center; gap: 1cqw; padding: .7cqw 1.4cqw .7cqw .8cqw; background: var(--hs-glass); border: 1px solid #FF4D6D; box-shadow: var(--hs-pop-shadow);
    font: 700 1.3cqw/1 var(--font-display); font-stretch: 112%; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; z-index: 6; opacity: 0; animation: hs-fly var(--hs-t) var(--ease) infinite; }
.hs-fly em { font: 600 1.2cqw var(--font-mono); font-style: normal; color: #FF4D6D; letter-spacing: 0; }

/* the cursor (its track is the frame's own size, so translate in cqw lands on frame coordinates) */
.hs-cursor-track { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-origin: 0 0; z-index: 8; pointer-events: none; opacity: 0; animation: hs-cursor var(--hs-t) var(--ease) infinite; }
.hs-cursor { position: absolute; left: -.35cqw; top: -.25cqw; width: 3.4cqw; height: 3.4cqw; color: var(--hs-cursor); filter: drop-shadow(0 .4cqw .7cqw rgba(0, 0, 0, .5)); }
[data-theme="light"] .hs-cursor path { stroke: #fff; }
.hs-ripple { position: absolute; left: -2.4cqw; top: -2.4cqw; width: 4.8cqw; height: 4.8cqw; border-radius: 50%; border: 2px solid var(--c-blue); opacity: 0; animation: hs-ripple var(--hs-t) linear infinite; }

@keyframes hs-cursor {
    0% { opacity: 0; transform: translate(80cqw, 70cqw); }
    4% { opacity: 1; transform: translate(72cqw, 62cqw); }
    10% { transform: translate(3.6cqw, 18.6cqw); }
    11% { transform: translate(3.6cqw, 18.6cqw) scale(.85); }
    12.5%, 15% { transform: translate(3.6cqw, 18.6cqw); }
    21%, 24% { transform: translate(28cqw, 20.6cqw); }
    25% { transform: translate(28cqw, 20.6cqw) scale(.85); }
    26.5%, 32% { transform: translate(28cqw, 20.6cqw); }
    50%, 53% { transform: translate(60.4cqw, 45.4cqw); }
    54% { transform: translate(60.4cqw, 45.4cqw) scale(.85); }
    55.5% { transform: translate(60.4cqw, 45.4cqw); }
    63%, 90% { opacity: 1; transform: translate(86cqw, 66cqw); }
    95%, 100% { opacity: 0; transform: translate(86cqw, 66cqw); }
}
@keyframes hs-ripple {
    0%, 10.9% { opacity: 0; transform: scale(.2); } 11% { opacity: .9; transform: scale(.3); } 14% { opacity: 0; transform: scale(1.5); }
    24.9% { opacity: 0; transform: scale(.2); } 25% { opacity: .9; transform: scale(.3); } 28% { opacity: 0; transform: scale(1.5); }
    53.9% { opacity: 0; transform: scale(.2); } 54% { opacity: .9; transform: scale(.3); } 57%, 100% { opacity: 0; transform: scale(1.5); }
}
@keyframes hs-railon { 0%, 10.8% { opacity: 0; } 11.5%, 32% { opacity: 1; } 35%, 100% { opacity: 0; } }
@keyframes hs-panel { 0%, 11.5% { opacity: 0; transform: translateX(-3cqw); } 14.5%, 31% { opacity: 1; transform: none; } 34.5%, 100% { opacity: 0; transform: translateX(-3cqw); } }
@keyframes hs-pick { 0%, 19% { opacity: 0; } 21%, 24.5% { opacity: .55; } 25.5%, 31% { opacity: 1; } 34.5%, 100% { opacity: 0; } }
@keyframes hs-tick { 0%, 25% { opacity: 0; transform: scale(.4); } 27%, 31% { opacity: 1; transform: none; } 34.5%, 100% { opacity: 0; transform: none; } }
@keyframes hs-fly { 0%, 26.5% { opacity: 0; transform: none; } 28% { opacity: 1; transform: translate(0, 0) scale(1.04); }
    36% { opacity: 1; transform: translate(29cqw, 22cqw) scale(.9); } 38.5%, 100% { opacity: 0; transform: translate(29cqw, 22cqw) scale(1.35); } }
@keyframes hs-drop { 0%, 36% { opacity: 0; transform: translateY(-7cqw) scale(.6); } 38.5% { opacity: 1; transform: translateY(.5cqw) scale(1.06); } 40.5%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hs-drop-sel { 0%, 37% { opacity: 0; transform: translateY(-7cqw) scale(.6); } 39.5% { opacity: 1; transform: translateY(.5cqw) scale(1.06); } 41.5%, 54% { opacity: 1; transform: none; }
    55.5%, 92% { opacity: 1; transform: scale(1.22); } 96%, 100% { opacity: 0; transform: scale(1.22); } }
@keyframes hs-ring { 0%, 54.5% { opacity: 0; transform: scale(.4); } 56.5%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hs-pop { 0%, 55.5% { opacity: 0; transform: translateY(1.5cqw) scale(.95); } 58.5%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: translateY(-.6cqw); } }
@keyframes hs-legend { 0%, 39% { opacity: 0; transform: translateY(1cqw); } 42.5%, 92% { opacity: 1; transform: none; } 96%, 100% { opacity: 0; transform: none; } }
@keyframes hs-toast { 0%, 39% { opacity: 0; transform: translateY(-1.2cqw); } 41.5%, 50% { opacity: 1; transform: none; } 53%, 100% { opacity: 0; transform: translateY(-.6cqw); } }

/* a small scene (phones): drop the popup's sentence, make what is left bigger */
@container (max-width: 520px) {
    .hs-title em, .hs-chip3d { display: none; }
    .hs-pop { width: 46cqw; left: -23cqw; padding: 2cqw 2.2cqw; }
    .hs-pop p { display: none; }
    .hs-pop-kind { font-size: 1.6cqw; }
    .hs-pop-h { font-size: 2.8cqw; }
    .hs-pop dl { font-size: 2cqw; gap: .7cqw 1.8cqw; }
    .hs-pop-acts span { font-size: 1.5cqw; padding: 1cqw 1.3cqw; }
    .hs-pop-acts span + span { display: none; }
    .hs-panel { width: 44cqw; }
    .hs-row { font-size: 2cqw; }
    .hs-panel-head { font-size: 1.7cqw; }
    .hs-panel-search { font-size: 1.7cqw; }
    .hs-legend span, .hs-toast { font-size: 1.9cqw; }
    .hs-toast { width: 40cqw; margin-left: -20cqw; }
}

.section { padding: 90px 0; position: relative; }
.section.tight { padding: 56px 0; }
.sec-head { max-width: 820px; margin: 0 auto 48px; text-align: center; }
.sec-head .lead { margin: 0 auto; }
.sec-head.left { margin-left: 0; text-align: left; }
.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 34px; color: var(--dim); font: 700 .8rem var(--font-display); font-stretch: 118%; letter-spacing: .14em; text-transform: uppercase; margin-top: 46px; }
.logo-strip span { display: inline-flex; align-items: center; gap: 8px; }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.bento-card { grid-column: span 2; padding: 28px 26px 26px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); overflow: hidden; min-height: 230px; display: flex; flex-direction: column; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.bento-card:nth-child(5n+1) { --wedge: var(--c-teal); } .bento-card:nth-child(5n+2) { --wedge: var(--c-blue); } .bento-card:nth-child(5n+3) { --wedge: var(--c-violet); } .bento-card:nth-child(5n+4) { --wedge: var(--c-pink); } .bento-card:nth-child(5n) { --wedge: var(--c-amber); }
.bento-card.wide { grid-column: span 4; }
.bento-card.half { grid-column: span 3; }
.bento-card h3 { font-size: 1.16rem; margin-top: auto; }
.bento-card p { color: var(--muted); margin: 0; font-size: .94rem; }
.bento-ico { width: 52px; height: 47px; clip-path: var(--hex); display: grid; place-items: center; font-size: 19px; color: #fff; background: var(--primary-grad); margin-bottom: 20px; }
.bento-card:nth-child(5n+3) .bento-ico { background: linear-gradient(115deg, #8B5CF6, #FF4D8D); }
.bento-card:nth-child(5n+4) .bento-ico { background: linear-gradient(115deg, #FF4D8D, #FFB547); }
.bento-art { position: absolute; right: -10px; top: -10px; width: 58%; opacity: .9; pointer-events: none; }
@media (max-width: 980px) { .bento-card, .bento-card.wide, .bento-card.half { grid-column: span 6; } }
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; counter-reset: h; }
.how-card { counter-increment: h; padding: 30px 26px 26px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.how-card:nth-child(1) { --wedge: var(--c-teal); } .how-card:nth-child(2) { --wedge: var(--c-violet); } .how-card:nth-child(3) { --wedge: var(--c-pink); }
.how-card::before { content: "0" counter(h); font: 800 3.4rem/1 var(--font-display); font-stretch: 125%; letter-spacing: -.02em; display: block; margin-bottom: 18px; color: transparent; -webkit-text-stroke: 1px var(--line-strong); }
.how-card:hover::before { -webkit-text-stroke-color: var(--wedge); }
[data-theme="light"] .how-card::before { -webkit-text-stroke-color: rgba(10, 13, 18, .32); }
.how-card p { color: var(--muted); margin: 0; }
@media (max-width: 860px) { .how-grid { grid-template-columns: 1fr; } }
.device-row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 50px; align-items: center; }
@media (max-width: 900px) { .device-row { grid-template-columns: 1fr; } }
.feature-list { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.feature-list li { display: flex; gap: 16px; align-items: flex-start; }
.feature-list li i { width: 40px; height: 36px; flex: none; clip-path: var(--hex); display: grid; place-items: center; color: var(--c-blue); background: rgba(59, 167, 255, .16); }
.feature-list b { display: block; color: var(--text); }
.feature-list span { color: var(--muted); font-size: .93rem; }
.devices { position: relative; height: 420px; }
.dev { position: absolute; border-radius: 4px; border: 9px solid #141A24; background: #0C1730; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, .06); overflow: hidden; }
[data-theme="light"] .dev { border-color: #1A202B; }
.dev svg { width: 100%; height: 100%; }
.dev-desk { left: 0; top: 10px; width: 78%; height: 300px; border-width: 8px; }
.dev-tab { right: 6%; top: 120px; width: 34%; height: 250px; border-radius: 10px; }
.dev-phone { right: 0; top: 200px; width: 21%; height: 210px; border-radius: 12px; border-width: 7px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: stretch; }
.price-card { display: flex; flex-direction: column; padding: 32px 26px 26px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.price-card.featured { border-color: rgba(139, 92, 246, .55); background: linear-gradient(180deg, rgba(139, 92, 246, .08), transparent 40%), var(--surface); --wedge: var(--c-violet); }
.price-card.featured::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: var(--spectrum); }
.price-card .tag { position: absolute; top: -11px; left: 26px; --cut: 6px; clip-path: var(--chamfer); background: var(--spectrum); color: #05070B; }
.price-card h3 { font: 700 .78rem var(--font-display); font-stretch: 125%; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.price { font: 800 3rem/1 var(--font-display); font-stretch: 125%; letter-spacing: -.02em; margin: 8px 0 6px; }
.price small { font: 500 .9rem var(--font-body); color: var(--muted); letter-spacing: 0; }
.price-card p { color: var(--muted); font-size: .94rem; }
.price-card .ticks { margin: 14px 0 24px; flex: 1; }
@media (max-width: 900px) { .pricing-grid { grid-template-columns: 1fr; } }
.compare { min-width: 720px; }
.compare td.us, .compare th.us { background: rgba(59, 167, 255, .07); }
.compare th.us { color: var(--text); box-shadow: inset 0 2px 0 var(--c-blue); }
.compare .yes { color: var(--c-teal); } .compare .no { color: var(--c-red); } .compare .meh { color: var(--c-amber); }
[data-theme="light"] .compare .yes { color: #047857; } [data-theme="light"] .compare .no { color: #BE123C; } [data-theme="light"] .compare .meh { color: #B45309; }
.cta-band { position: relative; margin: 70px 0 30px; padding: 60px 40px; border-radius: 0; overflow: hidden; text-align: center; background: var(--surface-solid); border: 1px solid var(--line-strong); }
.cta-band::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--spectrum); }
.cta-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px); background-size: 36px 36px;
    -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%); mask-image: radial-gradient(ellipse 70% 90% at 50% 0%, #000, transparent 75%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { max-width: 760px; margin: 0 auto 14px; }
.cta-band p { color: var(--text-2); max-width: 620px; margin: 0 auto; }
.cta-band .hero-cta { justify-content: center; }

/* ---- FOOTER ------------------------------------------------------------------------------------------------------ */
.site-footer { position: relative; margin-top: 60px; padding: 56px 0 30px; background: var(--bg-2); }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--rule); opacity: .7; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 34px; }
.footer-grid h4 { font: 700 .66rem var(--font-display); font-stretch: 125%; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid a:not(.brand) { display: block; color: var(--text-2); font-size: .9rem; padding: 4px 0; transition: color .15s, transform .2s var(--ease); }
.footer-grid a:not(.brand):hover { color: var(--text); transform: translateX(3px); }
.footer-about { color: var(--muted); font-size: .9rem; margin: 16px 0; max-width: 360px; }
.footer-stats { display: flex; flex-wrap: wrap; gap: 6px; }
.footer-stats span { font: 500 .74rem var(--font-mono); padding: 5px 9px; border-radius: 0; border: 1px solid var(--line); color: var(--muted); }
.footer-stats b { color: var(--text-2); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--dim); font-size: .8rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: span 2; } }

/* ---- ACCOUNTS, BUY, RECEIPTS, ADMIN ------------------------------------------------------------------------------- */
.auth-wrap { min-height: calc(100vh - var(--nav-h) - 200px); display: grid; place-items: center; padding: 50px 0; }
.auth-panel { width: 100%; max-width: 440px; }
.auth-panel::before { content: ""; position: absolute; inset: -1px -1px auto; height: 2px; background: var(--spectrum); }
.auth-panel h1 { font-size: 1.7rem; text-align: center; }
.auth-panel > p { text-align: center; }
.account { padding-top: 40px; }
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.account-head h1 { margin: 0; font-size: 2rem; }
.map-list { display: grid; gap: 6px; }
.map-row { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 0; border: 1px solid var(--line); background: var(--surface-2); transition: border-color .2s, box-shadow .2s; }
.map-row:hover { border-color: var(--line-strong); box-shadow: inset 2px 0 0 var(--c-blue); }
.map-row-main { flex: 1; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; color: var(--text) !important; min-width: 0; }
.map-row-main i { grid-row: span 2; width: 40px; height: 36px; clip-path: var(--hex); display: grid; place-items: center; background: rgba(59, 167, 255, .16); color: var(--c-blue); }
.map-row-main b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.map-row-main span { color: var(--muted); font-size: .82rem; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 24px; }
.kpi { padding: 18px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); }
.kpi-ico { color: var(--c-blue); font-size: 18px; }
.kpi b { display: block; font: 800 1.55rem/1.2 var(--font-display); font-stretch: 118%; margin: 8px 0 2px; font-variant-numeric: tabular-nums; }
.kpi span:last-child { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; }
.health { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.health li { display: grid; grid-template-columns: 22px 130px 1fr; gap: 10px; font-size: .9rem; }
.health li.ok i { color: var(--c-teal); } .health li.warn i { color: var(--c-amber); }
.health li span { color: var(--muted); word-break: break-word; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 90px; }
.spark span { flex: 1; height: var(--h); background: var(--primary-grad); border-radius: 0; opacity: .85; }
.small-title { font-size: .95rem; color: var(--text-2); }
.msg { white-space: pre-wrap; max-width: 420px; font-size: .86rem; }
.buy-item { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: 0; border: 1px solid var(--line-strong); background: var(--surface-2); margin-bottom: 18px; }
.buy-item b { display: block; font: 700 1.05rem/1.3 var(--font-display); font-stretch: 112%; }
.buy-item span:not(.flag) { color: var(--muted); font-size: .88rem; }
.buy-price { margin-left: auto; font: 800 1.6rem/1 var(--font-display); font-stretch: 118%; white-space: nowrap; text-align: right; }
.buy-price small { display: block; font: 500 .75rem var(--font-body); color: var(--muted); }
.success-burst { width: 104px; height: 94px; margin: 0 auto 20px; clip-path: var(--hex); display: grid; place-items: center; font-size: 42px; color: #fff; background: var(--primary-grad); animation: burst .7s var(--ease) both; }
@keyframes burst { from { transform: scale(.4); opacity: 0; } }
.receipt-mini { display: inline-flex; flex-direction: column; gap: 2px; padding: 16px 26px; border-radius: 0; border: 1px solid var(--line); background: var(--surface); margin-top: 10px; }
.receipt-mini b { font: 800 1.5rem var(--font-display); font-stretch: 118%; }
.receipt-mini span { color: var(--muted); font-size: .85rem; }
.receipt-wrap { padding: 40px 24px; max-width: 860px; }
.receipt { background: #fff; color: #0A0D12; border-radius: 0; padding: 44px; box-shadow: var(--shadow-lg); border-top: 3px solid #3BA7FF; }
.receipt .muted { color: #5C6470; }
.receipt .table { color: #0A0D12; }
.receipt .table th { background: #F2F3F6; color: #5C6470; }
.receipt .table td, .receipt .table th { border-color: #E5E7EB; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 30px; }
.receipt .brand-word { font: 800 1.7rem var(--font-display); font-stretch: 118%; letter-spacing: -.02em; color: #0A0D12; }
.receipt .brand-word span { color: #2563EB; }
.receipt-title { text-align: right; display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.receipt-title h1 { color: #0A0D12; font-size: 1.6rem; margin: 0; }
.receipt-parties { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; font-size: .9rem; }
.receipt-parties h4 { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: #5C6470; margin: 0 0 6px; }
.receipt-lines .total td { font-weight: 700; font-size: 1.05rem; }
@media print { .site-nav, .site-footer, .no-print, .ground, .toasts { display: none !important; } body { background: #fff; } .receipt { box-shadow: none; padding: 0; border: 0; } }

/* ---- MODALS (the auth dialog; the studio reuses these) --------------------------------------------------------------
   Square, a spectrum line along the top; the scrim fades (no blur - it would repaint the page behind every frame) and
   the card rises into place. */
.mb-modal { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 18px; opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .22s var(--ease), visibility 0s .25s; }
.mb-modal.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity .22s var(--ease), visibility 0s; }
.mb-modal-back { position: absolute; inset: 0; background: rgba(3, 5, 9, .74); }
[data-theme="light"] .mb-modal-back { background: rgba(10, 13, 18, .5); }
.mb-modal-card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 36px); overflow-y: auto; border: 1px solid var(--line-strong); border-radius: 0; padding: 32px 30px 28px; box-shadow: var(--shadow-lg);
    background: var(--spectrum) top / 100% 2px no-repeat, var(--surface-solid); transform: translateY(18px); transition: transform .32s var(--ease); }
.mb-modal.is-open .mb-modal-card { transform: none; }
.mb-modal-x { position: absolute; right: 12px; top: 12px; }
.auth-card h2 { font-size: 1.45rem; text-align: center; margin-bottom: 8px; }
.auth-card > p { text-align: center; margin-bottom: 22px; }
.auth-mark { width: 62px; height: 56px; margin: 0 auto 18px; clip-path: var(--hex); background: var(--spectrum); padding: 2px; }
.auth-mark span { display: block; width: 100%; height: 100%; clip-path: var(--hex); background: var(--surface-solid) url("/images/favicon.svg") center / 30px no-repeat; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; padding: 3px; border-radius: 0; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 20px; }
.auth-tabs button { height: 38px; border: 0; border-radius: 0; background: transparent; color: var(--muted); font: 700 .72rem var(--font-display); font-stretch: 118%; letter-spacing: .1em; text-transform: uppercase; cursor: pointer; transition: background-color .2s, color .2s; }
.auth-tabs button.is-on { background: var(--text); color: var(--bg); }
.auth-card .in-only { display: none; }
.auth-card.mode-in .up-only, .mb-modal.mode-in .up-only { display: none; }
.mb-modal.mode-in .in-only { display: initial; }
.mb-modal.mode-in p.in-only, .mb-modal.mode-in span.in-only { display: block; }

/* ---- MOTION ------------------------------------------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    /* the hero scene holds its last good frame: hospitals placed, one selected, its popup open */
    .hs-pin, .hs-legend, .hs-pop, .hs-sel-ring { opacity: 1 !important; transform: none !important; }
    .hs-pin-sel { transform: scale(1.22) !important; }
    .hs-panel, .hs-fly, .hs-toast, .hs-cursor-track, .hs-ripple, .hs-rail-add::before, .hs-row-pick::before, .hs-tick { opacity: 0 !important; }
    .hero-badge::after { display: none; }
}
@media (max-width: 640px) {
    .container { padding: 0 16px; }
    .page-hero { padding: 34px 0 24px; }
    .section { padding: 64px 0; }
    .panel { padding: 20px; }
    .cta-band { padding: 44px 18px; }
    .receipt { padding: 24px; }
    .receipt-parties { grid-template-columns: 1fr; }
    .preview-map { height: 340px; }
    .nav-inner { padding: 0 16px; gap: 12px; }
}
/* phones: the expanded face eases in width so capitals never crowd a narrow screen */
@media (max-width: 480px) {
    .btn { font-stretch: 104%; letter-spacing: .05em; }
    h1, h2, .display { font-stretch: 110%; }
    .eyebrow { letter-spacing: .16em; }
    .brand { font-size: 1.2rem; }
    .nav-cta .btn-primary { padding: 0 12px; }
}
