/* RoadSafe.AI website: the Dev Soft UK look (deep navy and brand blue, Inter and Plus Jakarta Sans), clean and app-like.
   The planner is a full-screen map with one panel floating over it. Charger and battery colours stay green: they mean energy. */
:root {
    --rs-brand: #0B6DB5;
    --rs-brand-mid: #114A7C;
    --rs-brand-deep: #10233C;
    --rs-brand-hover: #095C9A;
    --rs-tint: #E6F2FA;
    --rs-light: #8CCBF2;
    --rs-amber: #B4540A;
    --rs-red: #C62828;
    --rs-blue: #0B6DB5;
    --rs-text: #3D4A5C;
    --rs-muted: #5E6B7D;
    --rs-line: #E4E8EE;
    --rs-bg: #F5F7FA;
    --rs-card: #FFFFFF;
    --rs-ink: #101C2E;
    --rs-shadow: 0 1px 2px rgba(16, 35, 60, .05), 0 4px 14px rgba(16, 35, 60, .06);
    --rs-shadow-float: 0 2px 4px rgba(16, 35, 60, .06), 0 18px 44px rgba(16, 35, 60, .16);
    --rs-header-h: 60px;
    --rs-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --rs-font-h: "Plus Jakarta Sans", var(--rs-font);
}

@media (prefers-color-scheme: dark) {
    :root {
        --rs-tint: #12304A;
        --rs-text: #D5DEEA;
        --rs-muted: #9AA8BA;
        --rs-line: #23344A;
        --rs-bg: #0B1626;
        --rs-card: #111F33;
        --rs-ink: #EEF3FA;
        --rs-brand: #3C9BE0;
        --rs-shadow: 0 1px 2px rgba(0, 0, 0, .4);
        --rs-shadow-float: 0 18px 44px rgba(0, 0, 0, .5);
    }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--rs-font); font-size: 16px; line-height: 1.55; color: var(--rs-text); background: var(--rs-bg); -webkit-font-smoothing: antialiased; }
a { color: var(--rs-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--rs-font-h); color: var(--rs-ink); font-weight: 800; letter-spacing: -.02em; }
h1 { font-size: 2rem; line-height: 1.18; margin: 0 0 .6rem; }
h1:focus { outline: none; } /* focused after each page change for screen readers; no box on screen */
h2 { font-size: 1.25rem; margin: 0 0 .5rem; }
h3 { font-size: 1.05rem; margin: 0 0 .35rem; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--rs-brand); outline-offset: 2px; }
.rs-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rs-icon { flex: none; vertical-align: -3px; }

/* ----- Header (every page): white, as devsoftuk.com ----- */
.rs-header { position: sticky; top: 0; z-index: 1500; display: flex; gap: .5rem 1.25rem; align-items: center; padding: 0 1.25rem; min-height: var(--rs-header-h);
             background: rgba(255, 255, 255, .94); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--rs-line); color: var(--rs-ink); }
.rs-brand { display: flex; gap: .55rem; align-items: center; color: var(--rs-ink); text-decoration: none; font: 800 1.2rem/1 var(--rs-font-h); letter-spacing: -.03em; white-space: nowrap; }
.rs-brand:hover { text-decoration: none; }
.rs-brand-ai { color: var(--rs-brand); }
.rs-channel-pill { background: var(--rs-tint); color: var(--rs-brand); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .55rem; border-radius: 99px; }
.rs-nav { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.rs-nav::-webkit-scrollbar { display: none; }
.rs-nav a { color: var(--rs-ink); text-decoration: none; font-weight: 500; font-size: .95rem; padding: .5rem .8rem; border-radius: 8px; white-space: nowrap; }
.rs-nav a:hover { background: var(--rs-bg); text-decoration: none; }
.rs-nav a.active { color: var(--rs-brand); font-weight: 600; }
.rs-me { display: inline-flex; align-items: center; gap: .45rem; padding: .25rem .65rem .25rem .25rem; border-radius: 99px; border: 1px solid var(--rs-line); color: var(--rs-ink); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.rs-me:hover { border-color: var(--rs-brand); text-decoration: none; }
.rs-me img, .rs-me-initial { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.rs-me-initial { display: inline-grid; place-items: center; background: var(--rs-brand); color: #fff; font-weight: 700; font-size: .9rem; }
.rs-signin-btn { white-space: nowrap; }
@media (prefers-color-scheme: dark) {
    .rs-header { background: rgba(11, 22, 38, .94); }
}
@media (max-width: 760px) {
    .rs-header { padding: 0 .75rem; gap: .4rem .6rem; --rs-header-h: 54px; }
    .rs-brand { font-size: 1.05rem; }
    .rs-brand img { width: 24px; height: 27px; }
    .rs-nav a { padding: .45rem .5rem; font-size: .9rem; }
    .rs-nav a[href="/"], .rs-nav a[href="/safety"] { display: none; } /* the logo goes home; safety is on the home page */
    .rs-me-name { display: none; }
    .rs-me { padding: 2px; }
}

/* ----- Content pages ----- */
.rs-main { max-width: 1120px; margin: 0 auto; padding: 1.25rem; }
.rs-section { margin: 1.5rem 0; }
.rs-narrow { max-width: 600px; }
.rs-lead { font-size: 1.15rem; color: var(--rs-muted); max-width: 760px; }
.rs-muted { color: var(--rs-muted); font-size: .93rem; }

.rs-hero { position: relative; overflow: hidden; display: flex; gap: 2rem; align-items: center; justify-content: space-between; padding: 2.5rem 2rem; margin-top: .5rem; border-radius: 22px;
           background: radial-gradient(700px 400px at 90% -10%, #1E7ED0 0%, rgba(30, 126, 208, 0) 70%), linear-gradient(135deg, #0C1A2E, #10233C 55%, #114A7C); color: #fff; }
.rs-hero h1 { font-size: 2.6rem; color: #fff; }
.rs-hero .rs-lead { color: #CFE0F8; }
.rs-hero-logo { width: 160px; height: auto; background: #fff; border-radius: 32px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
@media (max-width: 720px) { .rs-hero { flex-direction: column-reverse; text-align: left; padding: 1.6rem 1.25rem; } .rs-hero-logo { width: 96px; border-radius: 22px; padding: 12px; } .rs-hero h1 { font-size: 1.9rem; } }

.rs-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.rs-list { display: grid; gap: 1rem; }
.rs-card { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 16px; padding: 1.1rem 1.2rem; box-shadow: var(--rs-shadow); }
.rs-band { background: var(--rs-tint); border-radius: 18px; padding: 1.4rem; }

.rs-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: .8rem 0; }
.rs-button { display: inline-flex; align-items: center; gap: .4rem; border: 1px solid transparent; border-radius: 10px; padding: .65rem 1.2rem; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none;
             background: var(--rs-brand); color: #fff; transition: background .15s, transform .15s; }
.rs-button:hover { background: var(--rs-brand-hover); text-decoration: none; }
.rs-button-primary { background: var(--rs-brand); color: #fff; box-shadow: 0 6px 18px rgba(11, 109, 181, .22); }
.rs-button:disabled { opacity: .6; cursor: default; }
.rs-button-light { background: var(--rs-card); color: var(--rs-ink); border: 1px solid var(--rs-line); }
.rs-button-light:hover { background: var(--rs-card); border-color: var(--rs-brand); color: var(--rs-brand); }
.rs-hero .rs-button { background: #fff; color: var(--rs-brand-deep); }
.rs-hero .rs-button:hover { background: #E6F2FA; }
.rs-hero .rs-button-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.rs-hero .rs-button-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.rs-button-danger { background: var(--rs-card); color: var(--rs-red); border: 1px solid var(--rs-red); }
.rs-button-danger:hover { background: #FDECEC; }
.rs-button-danger-solid { background: var(--rs-red); color: #fff; }
.rs-button-danger-solid:hover { background: #A61F1F; }
.rs-button-small { padding: .4rem .8rem; font-size: .9rem; border-radius: 10px; }

.rs-input, .rs-select { width: 100%; font-size: .95rem; padding: .5rem .65rem; border-radius: 10px; border: 1px solid var(--rs-line); background: var(--rs-card); color: var(--rs-text); min-height: 40px; }
.rs-input:focus, .rs-select:focus { outline: 2px solid var(--rs-brand); outline-offset: -1px; }
.rs-label { display: grid; gap: .25rem; font-weight: 600; font-size: .95rem; }

.rs-warning { background: #FFF3E0; color: #7A4100; border-radius: 12px; padding: .65rem .85rem; font-weight: 600; font-size: .93rem; }
.rs-note { background: var(--rs-tint); border-radius: 12px; padding: .6rem .8rem; font-size: .93rem; }
.rs-empty { background: var(--rs-card); border: 1px dashed var(--rs-line); border-radius: 16px; padding: 2rem; color: var(--rs-muted); text-align: center; }
.rs-map { height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid var(--rs-line); margin-top: .9rem; }

.rs-trip-list { list-style: none; padding: 0; display: grid; gap: .75rem; }
.rs-trip-list .rs-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; align-items: center; }

.rs-footer { max-width: 1120px; margin: 2rem auto 0; padding: 1.25rem; color: var(--rs-muted); font-size: .88rem; display: grid; gap: .3rem; border-top: 1px solid var(--rs-line); }
.rs-error { display: none; position: fixed; bottom: 0; left: 0; right: 0; background: #FFF3E0; color: #7A4100; padding: .7rem 1.2rem; font-weight: 600; z-index: 2000; }

/* ----- The planner: the map fills the screen, one panel floats over it on the left (along the bottom on phones) ----- */
.rs-appshell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.rs-app { flex: 1; min-height: 0; position: relative; }
.rs-mapwrap { position: absolute; inset: 0; }
.rs-appmap { position: absolute; inset: 0; background: #E9EEF3; }
.rs-panel { position: absolute; z-index: 1000; top: 12px; left: 12px; width: 404px; max-height: calc(100% - 24px); overflow-y: auto; overscroll-behavior: contain;
            background: var(--rs-bg); border-radius: 20px; box-shadow: var(--rs-shadow-float); padding: .7rem; display: flex; flex-direction: column; gap: .6rem;
            scrollbar-width: thin; }
.rs-panel-handle { display: none; }
.rs-panel-foot { padding: .3rem .25rem 0; font-size: .76rem; color: var(--rs-muted); }

/* The car: who is driving decides the stops, so it comes first */
.rs-car-head { display: flex; align-items: center; gap: .65rem; }
.rs-car-tile { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--rs-tint); color: var(--rs-brand); flex: none; }
.rs-car-name { display: grid; min-width: 0; flex: 1; line-height: 1.25; }
.rs-car-name strong { color: var(--rs-ink); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-car-name small { color: var(--rs-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-defaults { display: grid; gap: .2rem; padding-top: .2rem; border-top: 1px solid var(--rs-line); }
.rs-defaults .rs-link-button { justify-self: start; }

.rs-pcard { background: var(--rs-card); border-radius: 16px; padding: .7rem; box-shadow: var(--rs-shadow); }

/* Place boxes with suggestions */
.rs-where { display: grid; gap: .45rem; }
.rs-field { position: relative; display: flex; align-items: center; gap: .55rem; background: var(--rs-bg); border: 1px solid transparent; border-radius: 12px; padding: 0 .35rem 0 .7rem; min-height: 44px; }
.rs-field:focus-within { border-color: var(--rs-brand); background: var(--rs-card); }
.rs-field-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; border: 2px solid var(--rs-card); box-shadow: 0 0 0 1.5px currentColor; }
.rs-field-dot-start { color: var(--rs-blue); background: var(--rs-blue); }
.rs-field-dot-stop { color: #6A1B9A; background: #6A1B9A; }
.rs-field-dot-destination { color: var(--rs-red); background: var(--rs-red); border-radius: 2px; }
.rs-field-input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .6rem 0; font-size: .98rem; outline: none; }
.rs-field-clear { border: 0; background: transparent; color: var(--rs-muted); width: 32px; height: 32px; border-radius: 8px; cursor: pointer; font-size: 1rem; flex: none; }
.rs-field-clear:hover { background: var(--rs-line); color: var(--rs-text); }
.rs-field-spinner { width: 18px; height: 18px; margin: 0 .45rem; border-radius: 50%; border: 2px solid var(--rs-line); border-top-color: var(--rs-brand); animation: rs-spin .8s linear infinite; flex: none; }
@keyframes rs-spin { to { transform: rotate(360deg); } }
.rs-suggest { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 4px); list-style: none; margin: 0; padding: .3rem; background: var(--rs-card);
              border: 1px solid var(--rs-line); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); max-height: 360px; overflow-y: auto; }
.rs-suggest button { width: 100%; display: flex; gap: .65rem; align-items: flex-start; text-align: left; background: transparent; border: 0; border-radius: 10px; padding: .5rem .55rem; cursor: pointer; }
.rs-suggest button span:last-child { display: grid; min-width: 0; }
.rs-suggest strong { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-suggest small { color: var(--rs-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rs-suggest-icon { color: var(--rs-muted); width: 20px; text-align: center; padding-top: .1rem; }
.rs-suggest li.rs-suggest-on button, .rs-suggest button:hover { background: var(--rs-tint); }
.rs-suggest-note { padding: .55rem .6rem; color: var(--rs-muted); font-size: .88rem; }
.rs-where-actions { display: flex; justify-content: space-between; gap: .5rem; padding: .1rem .15rem 0; }
.rs-link-button { display: inline-flex; gap: .35rem; align-items: center; border: 0; background: transparent; color: var(--rs-brand); font-weight: 700; font-size: .9rem; padding: .3rem .35rem; border-radius: 8px; cursor: pointer; }
.rs-link-button:hover { background: var(--rs-tint); }

/* Car and level */
.rs-car { display: grid; gap: .55rem; }
.rs-car-selects { display: grid; gap: .45rem; }
.rs-level { display: grid; grid-template-columns: auto 1fr; gap: .8rem; align-items: center; padding: 0 .2rem; }
.rs-level-value { display: inline-flex; gap: .4rem; align-items: center; font-weight: 800; font-size: 1.15rem; min-width: 5.2rem; }
.rs-level input[type=range] { width: 100%; height: 6px; -webkit-appearance: none; appearance: none; border-radius: 6px; cursor: pointer;
    background: linear-gradient(to right, #2FB565 0 var(--level, 80%), var(--rs-line) var(--level, 80%) 100%); }
.rs-level input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #C9D2CD; box-shadow: 0 1px 4px rgba(0,0,0,.25); }
.rs-level input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid #C9D2CD; box-shadow: 0 1px 4px rgba(0,0,0,.25); }

/* Options */
.rs-opts summary { list-style: none; display: flex; gap: .55rem; align-items: center; cursor: pointer; font-weight: 700; padding: .15rem .2rem; }
.rs-opts summary::-webkit-details-marker { display: none; }
.rs-opts summary small { margin-left: auto; color: var(--rs-muted); font-weight: 500; font-size: .82rem; text-align: right; }
.rs-opts-body { display: grid; gap: .6rem; margin-top: .6rem; }
.rs-opt { display: grid; gap: .2rem; font-size: .85rem; font-weight: 600; color: var(--rs-muted); }
.rs-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.rs-chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.rs-chip input { position: absolute; opacity: 0; pointer-events: none; }
.rs-chip span { display: inline-block; border: 1px solid var(--rs-line); border-radius: 99px; padding: .3rem .75rem; font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--rs-card); }
.rs-chip input:checked + span { background: var(--rs-ink); color: var(--rs-card); border-color: var(--rs-ink); }
.rs-chip input:focus-visible + span { outline: 2px solid var(--rs-brand); }

/* Waiting and empty states */
.rs-skeleton { background: var(--rs-card); border-radius: 16px; padding: 1rem; display: grid; gap: .6rem; box-shadow: var(--rs-shadow); }
.rs-skel-line { height: 14px; border-radius: 7px; width: 70%; background: linear-gradient(90deg, var(--rs-line), var(--rs-bg), var(--rs-line)); background-size: 200% 100%; animation: rs-shimmer 1.2s infinite; }
.rs-skel-wide { height: 26px; width: 45%; }
@keyframes rs-shimmer { to { background-position: -200% 0; } }
.rs-hint { display: grid; gap: .3rem; padding: .9rem 1rem; border-radius: 16px; border: 1px dashed #C9D6CF; color: var(--rs-muted); font-size: .92rem; }
.rs-hint strong { color: var(--rs-text); font-size: 1rem; }

/* Route choices */
.rs-seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .35rem; }
.rs-seg-item { border: 1px solid var(--rs-line); background: var(--rs-card); border-radius: 12px; padding: .4rem .3rem; cursor: pointer; display: grid; text-align: center; }
.rs-seg-time { font-weight: 800; font-size: .95rem; }
.rs-seg-label { font-size: .75rem; color: var(--rs-muted); }
.rs-seg-on { background: var(--rs-ink); border-color: var(--rs-ink); color: var(--rs-card); }
.rs-seg-on .rs-seg-label { color: inherit; opacity: .8; }

/* Plan summary */
.rs-sumcard { background: var(--rs-card); border-radius: 16px; padding: .85rem 1rem; box-shadow: var(--rs-shadow); display: grid; gap: .45rem; margin-top: .1rem; }
.rs-sumcard-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.rs-sumcard-time { font-size: 1.6rem; font-weight: 800; letter-spacing: -.01em; }
.rs-badge { background: #DCE9FB; color: #0D47A1; font-weight: 700; font-size: .8rem; padding: .2rem .6rem; border-radius: 99px; white-space: nowrap; }
.rs-facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--rs-muted); font-size: .9rem; }
.rs-facts span { display: inline-flex; gap: .35rem; align-items: center; }
.rs-sumcard-note { font-size: .8rem; color: var(--rs-muted); }

.rs-iconbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: .4rem; margin: .45rem 0 .1rem; }
.rs-iconbtn { display: inline-flex; justify-content: center; align-items: center; gap: .4rem; border: 0; background: var(--rs-card); border-radius: 12px; padding: .55rem .5rem;
              font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--rs-text); text-decoration: none; box-shadow: var(--rs-shadow); }
.rs-iconbtn:hover { background: var(--rs-tint); }
.rs-linkbox { display: flex; gap: .4rem; margin-top: .45rem; }
.rs-btn-small { border: 0; border-radius: 10px; background: var(--rs-ink); color: var(--rs-card); font-weight: 700; padding: 0 .9rem; cursor: pointer; }

/* Stops as cards, the drive between them as a quiet line */
.rs-stops { list-style: none; margin: .5rem 0 0; padding: 0; display: grid; gap: 0; }
.rs-stops-drive { color: var(--rs-muted); font-size: .82rem; padding: .35rem .9rem; }
.rs-stop { background: var(--rs-card); border-radius: 16px; padding: .7rem .9rem; box-shadow: var(--rs-shadow); display: grid; gap: .15rem; }
.rs-stop-top { display: flex; align-items: center; gap: .6rem; font-size: .9rem; }
.rs-stop-power { display: inline-flex; gap: .3rem; align-items: center; font-weight: 800; color: #1B8A4B; }
.rs-stop-stalls { color: var(--rs-muted); font-size: .82rem; }
.rs-stop-stalls::first-letter { color: #2FB565; }
.rs-stop-kind { display: inline-flex; gap: .35rem; align-items: center; font-weight: 700; color: var(--rs-muted); font-size: .82rem; text-transform: uppercase; letter-spacing: .04em; }
.rs-stop-destination .rs-stop-kind { color: var(--rs-red); }
.rs-stop-start .rs-stop-kind { color: var(--rs-blue); }
.rs-stop-time { margin-left: auto; font-weight: 700; color: var(--rs-muted); }
.rs-stop-name { font-weight: 700; font-size: 1rem; }
.rs-stop-detail { color: var(--rs-muted); font-size: .86rem; }
.rs-stop-facts { display: flex; flex-wrap: wrap; gap: .2rem .9rem; align-items: center; font-size: .9rem; margin-top: .15rem; }
.rs-stop-facts strong { display: inline-flex; gap: .35rem; align-items: center; }
.rs-stop-facts span { color: var(--rs-muted); }

/* Map extras */
.rs-legend { position: absolute; z-index: 800; left: 432px; bottom: 22px; display: flex; gap: .6rem; background: rgba(255,255,255,.92); color: #333; font-size: .74rem;
             padding: .25rem .55rem; border-radius: 99px; box-shadow: 0 1px 4px rgba(0,0,0,.2); pointer-events: none; }
.rs-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: .25rem; vertical-align: -1px; border: 1px solid #fff; }
.leaflet-tooltip.rs-map-label { background: #fff; color: #101C2E; border: 0; border-radius: 99px; padding: .15rem .55rem; font-weight: 700; font-size: .8rem; box-shadow: 0 1px 5px rgba(0,0,0,.3); }
.leaflet-tooltip.rs-map-label-alt { color: #5E6B7D; font-weight: 600; cursor: pointer; }
.leaflet-tooltip.rs-map-label::before { display: none; }

/* Shared journey page */
.rs-shared { display: grid; gap: .4rem; padding: .9rem 1rem; }
.rs-shared-title { font-size: 1.3rem; margin: 0; }
.rs-shared .rs-muted { margin: 0; }
.rs-iconbtn-dark { background: var(--rs-ink); color: var(--rs-card); }
.rs-iconbtn-dark:hover { background: var(--rs-ink); filter: brightness(1.2); }


/* Leaflet controls in the same style as the panel */
.rs-mapwrap .leaflet-bar { border: 0; border-radius: 12px; overflow: hidden; box-shadow: var(--rs-shadow-float); }
.rs-mapwrap .leaflet-bar a { width: 38px; height: 38px; line-height: 38px; color: var(--rs-ink); }
.rs-mapwrap .leaflet-top.leaflet-right { margin-top: 2px; }

/* Phones: the map fills the screen, the panel is a sheet along the bottom (tap its handle for more room) */
@media (max-width: 900px) {
    .rs-panel { top: auto; left: 0; right: 0; bottom: 0; width: auto; max-height: 56%; border-radius: 20px 20px 0 0; padding: .35rem .65rem .7rem; transition: max-height .22s ease-out; }
    .rs-panel-tall { max-height: calc(100% - 12px); }
    .rs-panel-handle { display: block; flex: none; align-self: center; width: 64px; height: 20px; border: 0; background: transparent; cursor: pointer; position: relative; }
    .rs-panel-handle::before { content: ""; position: absolute; left: 16px; right: 16px; top: 8px; height: 4px; border-radius: 2px; background: #B9C3D0; }
    .rs-legend { left: 8px; top: 8px; bottom: auto; font-size: .7rem; gap: .45rem; }
    .rs-mapwrap .leaflet-control-zoom { display: none; } /* pinch to zoom on phones */
    .rs-opt-grid { grid-template-columns: 1fr 1fr; }
}

/* ----- Account, settings and sign-in ----- */
.rs-profile { display: flex; align-items: center; gap: 1rem; }
.rs-avatar { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; }
.rs-avatar-initial { display: grid; place-items: center; background: var(--rs-brand); color: #fff; font: 800 1.6rem/1 var(--rs-font-h); }
.rs-profile-text { display: grid; gap: .1rem; min-width: 0; }
.rs-profile-text strong { color: var(--rs-ink); font: 700 1.2rem/1.3 var(--rs-font-h); }
.rs-account-links { display: grid; gap: .5rem; margin: 1rem 0; }
.rs-account-link { display: flex; align-items: center; gap: .85rem; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; padding: .85rem 1rem; color: var(--rs-ink); }
.rs-account-link:hover { border-color: var(--rs-brand); text-decoration: none; }
.rs-account-link > .rs-icon { color: var(--rs-brand); width: 22px; height: 22px; }
.rs-account-link span { display: grid; }
.rs-account-link small { color: var(--rs-muted); font-size: .85rem; }
.rs-danger-zone h2 { font-size: 1.05rem; }
.rs-settings { display: grid; gap: .65rem; margin-bottom: .9rem; }
.rs-settings h2 { font-size: 1.05rem; margin: 0; }
.rs-seg-2 { grid-auto-columns: 1fr; }
.rs-seg-2 .rs-seg-item { padding: .6rem .4rem; }
.rs-seg-on { background: var(--rs-brand); border-color: var(--rs-brand); color: #fff; }
.rs-savebar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; }
.rs-saved { display: inline-flex; align-items: center; gap: .3rem; color: #12934A; font-weight: 600; }

.rs-signin-page { display: grid; place-items: center; padding: 2rem 0 1rem; }
.rs-signin-card { width: 100%; max-width: 440px; padding: 2rem 1.75rem; text-align: center; display: grid; gap: .5rem; justify-items: center; }
.rs-signin-card h1 { font-size: 1.6rem; margin: .3rem 0 0; }
.rs-signin-card .rs-muted { margin: 0 0 .5rem; }
.rs-signin { display: grid; gap: .65rem; width: 100%; max-width: 340px; margin: .5rem 0; }
.rs-brandbtn { display: flex; align-items: center; justify-content: center; gap: .7rem; height: 46px; border-radius: 10px; font-weight: 600; font-size: .98rem; text-decoration: none;
               border: 1px solid #747775; background: #fff; color: #1F1F1F; font-family: Roboto, var(--rs-font); }
.rs-brandbtn:hover { text-decoration: none; filter: brightness(.97); }
.rs-brandbtn-apple { background: #000; color: #fff; border-color: #000; font-family: -apple-system, "SF Pro Text", var(--rs-font); }
.rs-brandbtn-facebook { background: #1877F2; color: #fff; border-color: #1877F2; }
.rs-signin-small { font-size: .8rem; color: var(--rs-muted); max-width: 340px; margin: .4rem 0 0; }
.rs-footer-links { display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

/* Long reading pages: privacy policy, account deletion */
.rs-doc { max-width: 760px; }
.rs-doc h2 { margin-top: 1.6rem; }
.rs-doc h3 { margin-top: 1.1rem; }
.rs-doc li { margin: .25rem 0; }
.rs-doc .rs-danger-zone { margin-top: .6rem; }

/* ----- Why RoadSafe (/why) ----- */
.rs-why-hero h1 { font-family: var(--rs-font-h); color: var(--rs-ink); font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 .5rem; }
.rs-why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.rs-why-card { display: flex; gap: 16px; align-items: flex-start; }
.rs-why-card img { flex: 0 0 auto; }
.rs-why-card h2 { font-family: var(--rs-font-h); font-size: 1.15rem; color: var(--rs-ink); margin: 4px 0 6px; }
.rs-why-card p { margin: 0; color: var(--rs-text); line-height: 1.5; }
.rs-why-table-wrap { overflow-x: auto; }
.rs-why-table { width: 100%; border-collapse: collapse; background: var(--rs-card); border-radius: 14px; overflow: hidden; box-shadow: var(--rs-shadow); }
.rs-why-table th, .rs-why-table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--rs-line); }
.rs-why-table thead th { background: var(--rs-tint); color: var(--rs-ink); }
.rs-why-table tbody th { font-weight: 500; color: var(--rs-text); }
.rs-why-yes { color: #1E8E4E; font-weight: 700; white-space: nowrap; }
@media (max-width: 760px) {
    .rs-why-grid { grid-template-columns: 1fr; }
    .rs-why-card img { width: 64px; height: 64px; }
}

.rs-notices { white-space: pre-wrap; font-size: .82rem; line-height: 1.45; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 12px; padding: 16px; max-height: 70vh; overflow: auto; }

/* ===== Marketing pages: home, features (professional look, fast: no web fonts beyond the two families, no JS) ===== */
.rs-kicker { margin: 0 0 .4rem; color: var(--rs-brand); font-weight: 700; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.rs-kicker-light { color: #8CCBF2; }
.rs-h2-big { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }

.rs-home-hero { display: grid; grid-template-columns: 1.1fr .9fr; gap: 2rem; align-items: center; margin-top: .75rem; padding: 3rem 2.5rem 0;
                border-radius: 28px; overflow: hidden; color: #fff; background: radial-gradient(120% 140% at 0% 0%, #1A7BC4 0%, #114A7C 45%, #10233C 100%); }
.rs-home-hero h1 { color: #fff; font-size: clamp(2rem, 4.6vw, 3.2rem); line-height: 1.08; margin-bottom: 1rem; }
.rs-home-hero .rs-lead { color: #D6E6F8; font-size: 1.15rem; }
.rs-home-hero-text { padding-bottom: 2.5rem; }
.rs-hero-note { color: #A9C6E6; font-size: .9rem; margin: .9rem 0 .3rem; }
.rs-hero-link { color: #fff; font-weight: 600; }
.rs-home-phones { position: relative; height: 470px; align-self: end; }
.rs-phone { position: absolute; bottom: -60px; width: 230px; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35)); }
.rs-phone-front { left: 6%; z-index: 2; }
.rs-phone-back { right: 4%; bottom: -10px; transform: rotate(5deg); opacity: .96; }
@media (max-width: 860px) {
    .rs-home-hero { grid-template-columns: 1fr; padding: 2rem 1.25rem 0; }
    .rs-home-phones { height: 330px; }
    .rs-phone { width: 170px; }
}

.rs-store { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.1rem; }
.rs-store-btn { display: inline-flex; align-items: center; gap: .6rem; min-width: 170px; padding: .6rem 1.1rem; border-radius: 14px; background: #0B1626; color: #fff; text-decoration: none;
                border: 1px solid rgba(255, 255, 255, .18); font-weight: 700; font-size: 1.1rem; line-height: 1.1; }
.rs-store-btn small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; letter-spacing: .02em; }
.rs-store-btn:hover { text-decoration: none; background: #000; }
.rs-store-hero .rs-store-btn { background: #fff; color: #10233C; border-color: transparent; }
.rs-store-hero .rs-store-btn:hover { background: #E6F2FA; }

.rs-proof { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--rs-line); border-radius: 18px; overflow: hidden; box-shadow: var(--rs-shadow); }
.rs-proof div { background: var(--rs-card); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; }
.rs-proof strong { font: 800 1.8rem/1 var(--rs-font-h); color: var(--rs-brand); }
.rs-proof span { color: var(--rs-muted); font-size: .9rem; }
@media (max-width: 760px) { .rs-proof { grid-template-columns: repeat(2, 1fr); } }

.rs-feature-rows { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 1.1rem; }
.rs-feature-row { display: flex; gap: 1.1rem; align-items: flex-start; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 18px; padding: 1.2rem; box-shadow: var(--rs-shadow); }
.rs-feature-row img { flex: none; width: 96px; height: 96px; }
.rs-feature-row h3 { font-size: 1.15rem; margin-top: .2rem; }
.rs-feature-row p { margin: 0 0 .5rem; }
.rs-feature-row a { font-weight: 600; }

.rs-screens-strip { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.rs-screens-strip figure { margin: 0; text-align: center; max-width: 240px; }
.rs-screens-strip img { width: 100%; height: auto; filter: drop-shadow(0 14px 26px rgba(16, 35, 60, .22)); }
.rs-screens-strip figcaption { color: var(--rs-muted); font-size: .92rem; margin-top: .6rem; }

.rs-compare-teaser { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: center; background: var(--rs-tint); border-radius: 24px; padding: 2rem; }
@media (max-width: 860px) { .rs-compare-teaser { grid-template-columns: 1fr; padding: 1.25rem; } }

.rs-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 1rem; }
.rs-trust-item { border-left: 4px solid var(--rs-brand); padding: .3rem 0 .3rem 1rem; }
.rs-trust-item p { margin: 0; }

.rs-feature-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.rs-feature-links a { display: inline-block; padding: .5rem 1rem; border-radius: 99px; border: 1px solid var(--rs-line); background: var(--rs-card); color: var(--rs-ink); font-weight: 600; }
.rs-feature-links a:hover { border-color: var(--rs-brand); color: var(--rs-brand); text-decoration: none; }

.rs-faq { max-width: 860px; }
.rs-faq-item { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 14px; padding: .2rem 1.1rem; margin-bottom: .6rem; }
.rs-faq-item summary { cursor: pointer; font-weight: 700; color: var(--rs-ink); padding: .75rem 0; list-style-position: outside; }
.rs-faq-item p { margin: 0 0 .9rem; }

.rs-cta { text-align: center; padding: 2.5rem 1.25rem; border-radius: 24px; color: #fff; background: linear-gradient(135deg, #0B6DB5, #10233C); }
.rs-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 2rem); }
.rs-cta p { color: #D6E6F8; }
.rs-cta .rs-store { justify-content: center; }
.rs-cta .rs-store-btn { background: #fff; color: #10233C; }

.rs-crumbs { font-size: .88rem; color: var(--rs-muted); margin: .4rem 0 .8rem; }
.rs-feature-hero { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 24px; padding: 2rem; box-shadow: var(--rs-shadow); }
.rs-feature-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.rs-feature-hero img { width: 220px; height: 220px; }
.rs-feature-hero .rs-store-btn { background: var(--rs-brand-deep); }
@media (max-width: 760px) { .rs-feature-hero { grid-template-columns: 1fr; padding: 1.25rem; } .rs-feature-hero img { width: 140px; height: 140px; order: -1; } }
.rs-prose { max-width: 760px; margin: 2rem 0; font-size: 1.05rem; }
.rs-prose h2 { margin-top: 2rem; font-size: 1.45rem; }
.rs-prose li { margin: .4rem 0; }

.rs-footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1.5rem; margin-bottom: 1rem; }
.rs-footer-cols ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.rs-footer-cols p { margin: .5rem 0 0; max-width: 320px; }
.rs-footer-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--rs-ink); margin: 0 0 .5rem; }
.rs-footer-brand { font-size: 1.1rem; }
@media (max-width: 760px) { .rs-footer-cols { grid-template-columns: 1fr 1fr; } }
/* Phones: nothing wider than the screen. */
.rs-home-hero > *, .rs-compare-teaser > *, .rs-feature-hero > * { min-width: 0; }
.rs-main { overflow-x: clip; }
.rs-compare-teaser .rs-why-table { display: block; overflow-x: auto; }
@media (max-width: 560px) {
    .rs-feature-row { flex-direction: column; }
    .rs-feature-row img { width: 72px; height: 72px; }
    .rs-home-hero h1 { font-size: 1.9rem; overflow-wrap: anywhere; }
    .rs-store-btn { min-width: 0; flex: 1 1 140px; }
    .rs-proof strong { font-size: 1.5rem; }
}
.rs-nav { min-width: 0; }
.rs-suggest-busy { display: flex; align-items: center; gap: .4rem; }

/* Dropped pin on the planner map */
.rs-pin span { display: block; width: 26px; height: 26px; background: #C62828; border: 3px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); box-shadow: 0 2px 6px rgba(0,0,0,.35); }
.rs-pin-button { display: flex; align-items: center; gap: .35rem; margin-top: 8px; padding: .4rem .7rem; border: 0; border-radius: 10px; background: #fff; color: #17201C; font: 600 13px/1.2 inherit; box-shadow: 0 1px 5px rgba(0,0,0,.25); cursor: pointer; }
.rs-pin-button.rs-on { background: #C62828; color: #fff; }
.rs-pin-glyph { width: 10px; height: 10px; background: currentColor; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: inline-block; }
.rs-pin-armed, .rs-pin-armed .leaflet-interactive { cursor: crosshair !important; }
.rs-pincard { border: 2px solid #C62828; }
.rs-pincard-actions { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.rs-row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

/* ===== Wide layout: use the full width of big screens; text stays at a readable measure ===== */
.rs-main { max-width: min(1600px, calc(100% - 48px)); padding: 1.25rem clamp(0px, 1.5vw, 1.5rem); }
.rs-footer { max-width: min(1600px, calc(100% - 48px)); }
.rs-lead, .rs-prose, .rs-faq { max-width: 70ch; }
.rs-home-hero { padding: clamp(2rem, 4vw, 4.5rem) clamp(1.25rem, 4vw, 4.5rem) 0; gap: clamp(2rem, 4vw, 5rem); }
.rs-home-hero h1 { font-size: clamp(2.2rem, 3.6vw, 3.6rem); }
.rs-feature-rows { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
@media (min-width: 1200px) { .rs-feature-rows { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1600px) { .rs-why-grid { grid-template-columns: repeat(5, 1fr); } }
.rs-screens-strip { justify-content: space-evenly; }
.rs-screens-strip figure { max-width: 280px; }
.rs-compare-teaser { padding: clamp(1.25rem, 3vw, 3rem); }
@media (max-width: 760px) { .rs-main, .rs-footer { max-width: 100%; padding-left: 1rem; padding-right: 1rem; } }

/* ===== Easier to read: larger text, more space, shorter lines (marketing and reading pages; the planner keeps its compact panel) ===== */
.rs-prose, .rs-doc, .rs-faq, .rs-why-card p, .rs-feature-row p, .rs-trust-item p, .rs-pen-card p, .rs-compare-teaser p, .rs-cta p { font-size: 1.125rem; line-height: 1.65; }
.rs-lead { font-size: clamp(1.15rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--rs-text); }
.rs-prose p, .rs-doc p { margin: 0 0 1.1rem; }
.rs-prose li, .rs-doc li { margin: .55rem 0; padding-left: .2rem; }
.rs-prose h2, .rs-doc h2 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); margin: 2.4rem 0 .8rem; }
.rs-section { margin: 2.5rem 0; }
.rs-h2-big, .rs-section > h2 { font-size: clamp(1.5rem, 2.8vw, 2.2rem); }
.rs-button { min-height: 48px; padding: .75rem 1.4rem; font-size: 1.05rem; border-radius: 12px; }
.rs-feature-links a { padding: .65rem 1.2rem; font-size: 1.02rem; }
.rs-faq-item summary { font-size: 1.12rem; padding: 1rem 0; }
.rs-faq-item { padding: .2rem 1.3rem; }
.rs-crumbs { font-size: .98rem; }
.rs-footer { font-size: .98rem; }
.rs-muted { color: var(--rs-muted); }
:root { --rs-muted: #4F5B6C; } /* darker grey: AA contrast on white and the light background */
@media (prefers-color-scheme: dark) { :root { --rs-muted: #B3BFCE; } }

/* ===== Penalties (/penalties) and the "What a mistake can cost" teaser ===== */
.rs-pen-hero { background: linear-gradient(135deg, #FFF4E0, #FDECEC); border-radius: 24px; padding: clamp(1.5rem, 4vw, 3.5rem); color: #101C2E; }
.rs-pen-hero h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); color: #101C2E; }
.rs-pen-hero .rs-lead { color: #2B3646; }
.rs-pen-caveat { display: inline-block; background: #fff; border-radius: 12px; padding: .6rem 1rem; font-size: 1.05rem; color: #2B3646; margin: .5rem 0 0; }
.rs-pen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 1.25rem; }
@media (min-width: 1200px) { .rs-pen-grid { grid-template-columns: repeat(3, 1fr); } }
.rs-pen-card { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 20px; padding: 1.4rem 1.5rem; box-shadow: var(--rs-shadow); display: flex; flex-direction: column; gap: .3rem; }
.rs-pen-top { display: flex; gap: 1rem; align-items: center; }
.rs-pen-top img { flex: none; }
.rs-pen-card h2 { font-size: 1.3rem; margin: 0; }
.rs-pen-where { margin: .15rem 0 0; color: var(--rs-muted); font-size: 1rem !important; }
.rs-pen-numbers { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin: .9rem 0 .4rem; }
.rs-pen-numbers > div { display: grid; justify-items: center; gap: .1rem; padding: .8rem .5rem; border-radius: 14px; background: #FDECEC; color: #8E1B1B; font-weight: 600; }
.rs-pen-numbers .rs-pen-points { background: #FFF4E0; color: #7A4100; }
.rs-pen-numbers .rs-pen-none { background: var(--rs-tint); color: var(--rs-brand-mid); }
.rs-pen-big { font: 800 clamp(2rem, 3.6vw, 2.6rem)/1 var(--rs-font-h); letter-spacing: -.02em; }
.rs-pen-early { margin: 0; font-weight: 700; color: #1E7A44; }
.rs-pen-help { margin-top: auto !important; padding-top: .8rem; border-top: 1px solid var(--rs-line); }
.rs-pen-help a { font-weight: 700; white-space: nowrap; }
.rs-pen-example { background: var(--rs-card); border: 2px dashed #D32F2F; border-radius: 20px; padding: 1.5rem; max-width: 70ch; }
.rs-pen-example-sum { font-size: 1.3rem; font-weight: 700; color: #8E1B1B; margin: .3rem 0 .6rem; }
.rs-pen-list { list-style: none; padding: 0; margin: 0 0 1.2rem; display: grid; gap: .7rem; max-width: 70ch; font-size: 1.125rem; }
.rs-pen-list li { padding-left: 1.9rem; position: relative; }
.rs-pen-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #1E8E4E; font-weight: 800; }
.rs-pen-sources { font-size: 1rem; color: var(--rs-muted); max-width: 90ch; }
.rs-pen-sources h2 { font-size: 1.2rem !important; }
.rs-pen-sources li { margin: .35rem 0; }
.rs-pen-teaser { background: linear-gradient(135deg, #FFF4E0, #FDECEC); border-radius: 24px; padding: clamp(1.25rem, 3vw, 2.5rem); max-width: none; }
.rs-pen-teaser h2 { color: #101C2E; }
.rs-pen-teaser-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 1rem; margin: 1rem 0 1.3rem; }
.rs-pen-chip { display: grid; justify-items: start; gap: .3rem; background: #fff; border-radius: 16px; padding: 1rem 1.2rem; color: #101C2E; box-shadow: var(--rs-shadow); }
.rs-pen-chip:hover { text-decoration: none; outline: 2px solid #D32F2F; }
.rs-pen-chip .rs-pen-big { color: #B71C1C; }
.rs-pen-chip span:last-child { font-size: 1.02rem; font-weight: 600; color: #2B3646; }
.rs-prose .rs-pen-teaser { margin: 2.5rem 0 0; }
@media (prefers-color-scheme: dark) {
    .rs-pen-numbers > div { background: #3A1A1A; color: #FFB4B4; }
    .rs-pen-numbers .rs-pen-points { background: #3A2A10; color: #FFD8A0; }
    .rs-pen-example { background: var(--rs-card); }
}
.rs-pen-example p, .rs-pen-teaser p { font-size: 1.1rem; line-height: 1.6; }
.rs-proof span, .rs-screens-strip figcaption { font-size: 1.02rem; }
.rs-feature-row h3 { font-size: 1.25rem; }

/* ===== Home page: fines first ===== */
.rs-fh-hero { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 5rem); align-items: center; margin-top: .75rem;
              padding: clamp(2rem, 4vw, 4.5rem); border-radius: 28px; color: #fff;
              background: radial-gradient(circle at 85% 20%, rgba(198, 40, 40, .35), transparent 45%), linear-gradient(135deg, #0B6DB5, #10233C 70%); }
.rs-fh-hero > * { min-width: 0; }
.rs-fh-hero h1 { color: #fff; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.04; margin-bottom: .6rem; }
.rs-fh-sub { font: 700 clamp(1.2rem, 2vw, 1.6rem)/1.3 var(--rs-font-h); color: #FFD54F; margin: 0 0 1rem; }
.rs-fh-hero .rs-lead { color: #D6E6F8; font-size: 1.2rem; line-height: 1.6; max-width: 60ch; }
.rs-fh-ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.4rem 0 .4rem; }
.rs-fh-cta-main { background: #FFB300; color: #10233C; font-size: 1.15rem; font-weight: 800; padding: .95rem 1.6rem; min-height: 52px; border-radius: 14px; box-shadow: 0 8px 22px rgba(255, 179, 0, .35); }
.rs-fh-cta-main:hover { background: #FFC233; color: #10233C; }
.rs-fh-cta-alt { background: rgba(255, 255, 255, .12); color: #fff; border: 2px solid rgba(255, 255, 255, .6); font-size: 1.1rem; padding: .85rem 1.4rem; min-height: 52px; border-radius: 14px; }
.rs-fh-cta-alt:hover { background: rgba(255, 255, 255, .22); }

/* The "fine notice" card (our own design) with the AVOIDED stamp and the alert that prevented it. */
.rs-fh-notice { position: relative; display: grid; justify-items: center; gap: 1rem; padding-bottom: 1rem; }
.rs-fh-notice-card { position: relative; width: min(420px, 100%); background: #FFFDF7; color: #1D2633; border-radius: 14px; padding: 1.3rem 1.4rem 1.6rem;
                     box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transform: rotate(-2.5deg); font-size: 1rem; }
.rs-fh-notice-top { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 3px solid #C62828; padding-bottom: .6rem; margin-bottom: .8rem;
                    font: 800 1.05rem/1.2 var(--rs-font-h); letter-spacing: .06em; color: #C62828; }
.rs-fh-notice-top span:last-child { font: 600 .85rem/1.4 var(--rs-font); letter-spacing: 0; color: #5E6B7D; }
.rs-fh-notice-row { display: flex; justify-content: space-between; gap: 1rem; padding: .35rem 0; border-bottom: 1px dashed #D9DEE5; }
.rs-fh-notice-row span, .rs-fh-notice-amount span { color: #5E6B7D; }
.rs-fh-notice-amount { display: flex; justify-content: space-between; align-items: baseline; margin-top: .8rem; min-height: 4.2rem; padding-top: .4rem; }
.rs-fh-notice-amount strong { font: 800 3rem/1 var(--rs-font-h); color: #101C2E; text-decoration: line-through; text-decoration-color: #C62828; text-decoration-thickness: 5px; }
.rs-fh-stamp { position: absolute; left: 1.2rem; bottom: .9rem; transform: rotate(-10deg); border: 5px solid #1E8E4E; color: #1E8E4E; border-radius: 12px;
               padding: .3rem .9rem; font: 900 2rem/1 var(--rs-font-h); letter-spacing: .08em; background: rgba(255, 255, 255, .85); text-align: center; }
.rs-fh-stamp small { display: block; font: 700 .8rem/1.3 var(--rs-font); letter-spacing: .04em; }
.rs-fh-alert { width: min(360px, 92%); background: #C62828; color: #fff; border-radius: 16px; padding: .9rem 1.2rem; box-shadow: 0 14px 32px rgba(0, 0, 0, .3); display: grid; gap: .15rem; }
.rs-fh-alert strong { font: 800 1.3rem/1.2 var(--rs-font-h); }
.rs-fh-alert span { font-size: 1rem; opacity: .95; }

/* Big fine cards right under the hero. */
.rs-fh-fines-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; }
.rs-fh-fine-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
@media (max-width: 900px) { .rs-fh-fine-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .rs-fh-fine-grid { grid-template-columns: 1fr; } }
@media (min-width: 1500px) { .rs-fh-fine-grid { grid-template-columns: repeat(6, 1fr); } }
.rs-fh-fine { display: grid; align-content: start; gap: .35rem; background: var(--rs-card); border: 1px solid var(--rs-line); border-top: 6px solid #C62828; border-radius: 18px;
              padding: 1.2rem 1.2rem 1.3rem; box-shadow: var(--rs-shadow); color: var(--rs-text); text-decoration: none; transition: transform .15s, box-shadow .15s; }
.rs-fh-fine:hover { transform: translateY(-3px); box-shadow: var(--rs-shadow-float); text-decoration: none; }
.rs-fh-fine img { width: 52px; height: 52px; }
.rs-fh-fine-amount { font: 800 clamp(2.4rem, 3.5vw, 3rem)/1 var(--rs-font-h); color: #C62828; margin-top: .3rem; }
.rs-fh-fine-points { font-weight: 700; color: var(--rs-ink); font-size: 1rem; }
.rs-fh-fine-name { font: 700 1.1rem/1.3 var(--rs-font-h); color: var(--rs-ink); }
.rs-fh-fine-name small { display: block; font: 500 .9rem/1.4 var(--rs-font); color: var(--rs-muted); }
.rs-fh-fine-help { font-size: 1rem; line-height: 1.55; border-top: 1px solid var(--rs-line); padding-top: .6rem; margin-top: .3rem; }
.rs-fh-fine-help strong { color: #1E8E4E; }
.rs-fh-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1.4rem; margin-top: 1.4rem; padding: 1.3rem 1.5rem;
               border-radius: 20px; background: #10233C; color: #fff; font: 700 clamp(1.15rem, 2.2vw, 1.6rem)/1.35 var(--rs-font-h); text-align: center; }
.rs-fh-strip strong { color: #FF8A80; }
.rs-fh-strip-free { color: #FFD54F; }
.rs-fh-example { text-align: center; margin-top: .5rem; }

/* How it warns: four steps. */
.rs-fh-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; counter-reset: none; }
.rs-fh-steps li { background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 18px; padding: 1.3rem; box-shadow: var(--rs-shadow); position: relative; }
.rs-fh-steps li:last-child { background: #E8F5EC; border-color: #BFE3CB; }
.rs-fh-steps h3 { font-size: 1.25rem; margin: .6rem 0 .4rem; }
.rs-fh-steps p { font-size: 1.1rem; line-height: 1.6; margin: 0; }
.rs-fh-step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--rs-brand); color: #fff; font: 800 1.3rem/1 var(--rs-font-h); }
.rs-fh-steps li:last-child .rs-fh-step-n { background: #1E8E4E; }
@media (prefers-color-scheme: dark) { .rs-fh-steps li:last-child { background: #12321F; border-color: #1E5A35; } }

@media (max-width: 1100px) {
    .rs-fh-hero { grid-template-columns: 1fr; }
    .rs-fh-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
    .rs-fh-hero { padding: 1.6rem 1.1rem 1.4rem; border-radius: 20px; }
    .rs-fh-hero h1 { font-size: 2.3rem; overflow-wrap: anywhere; }
    .rs-fh-ctas .rs-button { flex: 1 1 100%; justify-content: center; }
    .rs-fh-steps { grid-template-columns: 1fr; }
    .rs-fh-stamp { font-size: 1.5rem; left: .8rem; }
    .rs-fh-notice-amount strong { font-size: 2.4rem; }
}

/* ===== Meet RoadSafe: a real app screenshot in a phone frame ===== */
.rs-meet { display: grid; grid-template-columns: minmax(240px, 340px) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center;
    background: var(--rs-card); border: 1px solid var(--rs-line); border-radius: 28px; padding: clamp(1.25rem, 3vw, 3rem); }
.rs-meet-phone { justify-self: center; width: 100%; max-width: 320px; padding: 12px; border-radius: 44px; background: #0F1B2D;
    box-shadow: 0 24px 60px rgba(13, 30, 55, .28); transform: rotate(-2deg); }
.rs-meet-phone img { display: block; width: 100%; height: auto; border-radius: 34px; }
.rs-meet-text { max-width: 70ch; }
.rs-meet-text h2 { margin-top: .2rem; }
.rs-meet-list { list-style: none; padding: 0; margin: 1.25rem 0 1.75rem; display: grid; gap: .8rem; }
.rs-meet-list li { position: relative; padding-left: 2.1rem; font-size: 1.1rem; line-height: 1.55; }
.rs-meet-list li::before { content: "✓"; position: absolute; left: 0; top: .05rem; width: 1.5rem; height: 1.5rem; border-radius: 50%;
    background: #E6F4EA; color: #1E8E4E; font-weight: 800; font-size: .95rem; display: grid; place-items: center; }
@media (max-width: 760px) {
    .rs-meet { grid-template-columns: 1fr; text-align: left; }
    .rs-meet-phone { max-width: 260px; transform: none; }
}

/* Hero: "FREE Navigation app" made to stand out. */
.rs-free-app {
    display: inline-flex; align-items: center; gap: .6rem; flex-wrap: wrap;
    margin: 0 0 1.1rem; padding: .45rem 1.1rem .45rem .45rem;
    background: rgba(255, 255, 255, .14); border: 2px solid #ffd54a; border-radius: 999px;
    color: #fff; font-size: 1.25rem; font-weight: 800; letter-spacing: .01em;
    box-shadow: 0 0 0 4px rgba(255, 213, 74, .18), 0 8px 24px rgba(0, 0, 0, .25);
}
.rs-free-app-badge {
    background: #ffd54a; color: #10203a; padding: .25rem .8rem; border-radius: 999px;
    font-size: 1.05rem; font-weight: 900; letter-spacing: .08em;
}
.rs-free-app-more { color: #ffe9a6; font-weight: 600; font-size: 1rem; }
@media (max-width: 560px) {
    .rs-free-app { font-size: 1.05rem; }
    .rs-free-app-more { flex-basis: 100%; padding-left: .45rem; }
}

/* Hero: electric car advantage line. */
.rs-hero-ev {
    margin: 1.1rem 0 .6rem; padding: .7rem 1rem; max-width: 46rem;
    background: rgba(76, 217, 100, .14); border-left: 4px solid #4cd964; border-radius: 10px;
    color: #eafff0; font-size: 1.05rem; line-height: 1.5;
}
.rs-hero-ev strong { color: #9dffb6; }

/* Hero about 20% shorter so the fine cards show on the first screen. */
@media (min-width: 601px) {
    .rs-fh-hero { padding: clamp(1.5rem, 2.6vw, 2.6rem) clamp(2rem, 4vw, 4.5rem); gap: clamp(1.5rem, 3vw, 3.5rem); }
    .rs-fh-hero h1 { font-size: clamp(2.2rem, 4.2vw, 3.5rem); margin-bottom: .4rem; }
    .rs-fh-sub { margin-bottom: .6rem; }
    .rs-fh-hero .rs-lead { font-size: 1.1rem; line-height: 1.5; margin-bottom: 0; }
    .rs-fh-ctas { margin: 1rem 0 .3rem; }
    .rs-free-app { margin-bottom: .8rem; }
    .rs-hero-ev { margin: .8rem 0 .4rem; padding: .55rem .9rem; }
    .rs-fh-notice { gap: .7rem; padding-bottom: .4rem; }
    .rs-fh-notice-card { width: min(380px, 100%); padding: 1rem 1.2rem 1.2rem; }
}
@media (min-width: 601px) {
    .rs-fh-hero { padding-top: clamp(1.2rem, 2vw, 2rem); padding-bottom: clamp(1.2rem, 2vw, 2rem); margin-top: .4rem; }
    .rs-fh-hero h1 { font-size: clamp(2.1rem, 3.8vw, 3.2rem); }
    .rs-fh-sub { font-size: clamp(1.1rem, 1.7vw, 1.4rem); }
    .rs-fh-hero .rs-lead { font-size: 1.05rem; }
    .rs-fh-ctas .rs-button, .rs-fh-cta-main, .rs-fh-cta-alt { min-height: 46px; padding-top: .7rem; padding-bottom: .7rem; }
    .rs-hero-note { margin-top: .3rem; margin-bottom: 0; }
    .rs-fh-notice-card { width: min(350px, 100%); font-size: .95rem; }
}

/* ===== Car picker: make logos, model cards with key figures, search ===== */
.rs-make { --rs-make-size: 40px; width: var(--rs-make-size); height: var(--rs-make-size); flex: none; display: grid; place-items: center;
    border-radius: 50%; background: #fff; border: 1px solid #E3E8E6; overflow: hidden; }
.rs-make img { width: 64%; height: 64%; object-fit: contain; }
.rs-make-letter { color: #fff; border: 0; font: 800 calc(var(--rs-make-size) * .45)/1 var(--rs-font-h); }
.rs-make-any { background: #5A6B64; }
.rs-cp { display: grid; gap: .8rem; margin-top: .8rem; }
.rs-cp-search { display: flex; align-items: center; gap: .55rem; padding: 0 .9rem; min-height: 48px; border: 1.5px solid var(--rs-line); border-radius: 14px;
    background: var(--rs-card); color: var(--rs-muted); }
.rs-cp-search:focus-within { border-color: var(--rs-brand); box-shadow: 0 0 0 3px rgba(13, 110, 253, .15); }
.rs-cp-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 1rem; color: var(--rs-ink); padding: .7rem 0; }
.rs-cp-heading { margin: .2rem 0 0; color: var(--rs-muted); font-size: .9rem; }
.rs-cp-brands { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: .6rem; max-height: 420px; overflow-y: auto; padding: 2px; }
.rs-cp-brands-few { max-height: none; }
.rs-cp-brand { display: grid; justify-items: center; gap: .3rem; padding: .8rem .4rem .7rem; border: 1.5px solid var(--rs-line); border-radius: 14px;
    background: var(--rs-card); color: var(--rs-ink); cursor: pointer; text-align: center; font: inherit; min-height: 48px; }
.rs-cp-brand:hover, .rs-cp-model:hover { border-color: var(--rs-brand); box-shadow: 0 4px 14px rgba(13, 30, 55, .10); }
.rs-cp-brand:focus-visible, .rs-cp-model:focus-visible { outline: 3px solid var(--rs-brand); outline-offset: 2px; }
.rs-cp-brand-name { font-weight: 700; font-size: .92rem; line-height: 1.2; overflow-wrap: anywhere; }
.rs-cp-brand small { color: var(--rs-muted); font-size: .78rem; }
.rs-cp-on { border-color: var(--rs-brand); background: var(--rs-tint); }
.rs-cp-bar { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; }
.rs-cp-bar-make { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.rs-cp-models { display: grid; gap: .5rem; max-height: 460px; overflow-y: auto; padding: 2px; }
.rs-cp-model { display: flex; align-items: center; gap: .85rem; width: 100%; padding: .75rem .9rem; border: 1.5px solid var(--rs-line); border-radius: 14px;
    background: var(--rs-card); color: var(--rs-ink); text-align: left; cursor: pointer; font: inherit; }
.rs-cp-model-main { display: grid; gap: .25rem; min-width: 0; flex: 1; }
.rs-cp-model-title { font-size: 1rem; line-height: 1.3; }
.rs-cp-model-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; color: var(--rs-muted); font-size: .85rem; }
.rs-cp-facts { color: var(--rs-ink); font-size: .9rem; opacity: .85; }
.rs-cp-chip { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: .76rem; font-weight: 700; letter-spacing: .01em; }
.rs-cp-ev { background: #E3F6E8; color: #1B6E34; }
.rs-cp-hy { background: #E4EEFB; color: #1A4F94; }
.rs-cp-fuel { background: #F1EDE6; color: #6B4E1E; }
.rs-cp-est { background: #FFF4D6; color: #7A5A00; }
.rs-cp-tick { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--rs-brand); color: #fff; font-weight: 800; }
@media (max-width: 560px) {
    .rs-cp-brands { grid-template-columns: repeat(3, 1fr); max-height: 360px; }
    .rs-cp-model { padding: .65rem .7rem; gap: .65rem; }
}
.rs-cp-brands, .rs-cp-models { grid-auto-rows: max-content; align-content: start; }

/* Car picker: makes as compact rows (logo on the left, name beside it, model count on the right). */
.rs-cp-brands, .rs-cp-brands-few { grid-template-columns: 1fr; gap: .35rem; }
.rs-cp-brands { max-height: 360px; }
.rs-cp-brand { display: flex; align-items: center; justify-items: start; gap: .7rem; padding: .45rem .75rem; border-radius: 12px; text-align: left; min-height: 46px; }
.rs-cp-brand-name { flex: 1; font-size: .98rem; }
.rs-cp-brand small { font-size: .8rem; white-space: nowrap; }
@media (max-width: 600px) { .rs-cp-brands { grid-template-columns: 1fr; max-height: 320px; } }
