html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

/* Clean wheel-style home */
.home-wheel-page {
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0 -2rem;
    background: #ffffff;
    color: #0b233f;
    overflow-x: hidden;
}

.home-wheel-page::before,
.home-wheel-page::after {
    display: none;
}

.home-wheel-page .home-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid #e5e7eb;
    background: #f5f6f8;
    backdrop-filter: none;
}

.home-wheel-page .home-logo {
    width: 8rem;
    height: auto;
    filter: none;
}

.home-wheel-page .home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.home-wheel-page .home-nav a {
    color: #44566c;
    font-size: 0.95rem;
    font-weight: 750;
    text-decoration: none;
}

.home-wheel-page .home-nav a:hover {
    color: #0b233f;
}

.home-wheel-page .home-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.75rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid #d7dde5;
    border-radius: 999px;
    background: #ffffff;
    color: #0b233f;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
}

.home-wheel-main {
    min-height: calc(100vh - 8.5rem);
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.home-wheel-hero {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(22rem, 1.18fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.home-wheel-copy {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}

.home-wheel-page .home-eyebrow {
    color: #0aa68f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-wheel-copy h1 {
    margin: 0;
    color: #0b233f;
    font-size: clamp(3rem, 7vw, 6.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.home-wheel-copy p {
    margin: 0;
    max-width: 30rem;
    color: #52667c;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
}

.home-wheel-picker {
    position: relative;
    height: min(35rem, calc(100vh - 12rem));
    min-height: 28rem;
    overflow: hidden;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        #ffffff;
}

.home-wheel-picker::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 9.5rem;
    border-top: 1px solid #e7ebf0;
    border-bottom: 1px solid #e7ebf0;
    background: #f8fafc;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-wheel-picker::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, #ffffff 100%);
    pointer-events: none;
}

.home-wheel-track {
    height: 100%;
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    padding: calc((min(35rem, calc(100vh - 12rem)) - 9.5rem) / 2) 0;
    scrollbar-width: none;
}

.home-wheel-track::-webkit-scrollbar {
    display: none;
}

.home-wheel-item {
    position: relative;
    z-index: 1;
    min-height: 9.5rem;
    display: grid;
    align-content: center;
    gap: 0.4rem;
    padding: 1rem clamp(1rem, 3vw, 2.5rem);
    border-radius: 0.75rem;
    scroll-snap-align: center;
    transform: scale(0.92);
    opacity: 0.46;
    transition: transform 180ms ease, opacity 180ms ease, background 180ms ease;
}

.home-wheel-item:hover,
.home-wheel-item:focus-within,
.home-wheel-item-featured {
    transform: scale(1);
    opacity: 1;
}

.home-wheel-item span {
    color: #0aa68f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-wheel-item h2 {
    margin: 0;
    color: #0b233f;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
}

.home-wheel-item p {
    margin: 0;
    max-width: 36rem;
    color: #52667c;
    font-size: 1rem;
    line-height: 1.55;
}

.home-wheel-page .home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem clamp(1rem, 4vw, 4rem) 1.5rem;
    color: #7b8794;
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .home-wheel-page {
        margin: -1.1rem -1rem 0 -1rem;
    }

    .home-wheel-page .home-topbar {
        grid-template-columns: 1fr auto;
        padding: 0.85rem 1rem;
    }

    .home-wheel-page .home-nav {
        display: none;
    }

    .home-wheel-main {
        place-items: start;
        min-height: auto;
        padding: 2rem 1rem;
    }

    .home-wheel-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-wheel-copy h1 {
        font-size: clamp(2.65rem, 13vw, 4.25rem);
    }

    .home-wheel-picker {
        height: 28rem;
        min-height: 28rem;
        border-radius: 0.75rem;
    }

    .home-wheel-track {
        padding: 9.25rem 0;
    }

    .home-wheel-item {
        min-height: 9rem;
        padding: 1rem;
    }
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    background: #f4f7fb;
    color: #1f2937;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.live-shell {
    display: grid;
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 1rem;
    min-height: calc(100vh - 5rem);
}

.live-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.live-map-container {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - 5rem);
}

.live-map {
    flex: 1 1 auto;
    min-height: 32rem;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.status-card,
.vehicle-card {
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.traceit-logo {
    display: block;
    height: auto;
}

.status-card {
    padding: 0.55rem;
}

.status-split {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.25rem;
}

.status-panel-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 2.5rem;
    padding: 0.15rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.85rem;
    background: #ffffff;
    text-decoration: none;
    color: #1f2937;
}

.status-panel-button:hover {
    border-color: #c7d2e4;
}

.status-session-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.45rem;
    margin-top: 0.6rem;
    padding: 0.7rem 0.8rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.85rem;
    background: #ffffff;
}

.status-session-label {
    color: #64748b;
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1.15;
    text-transform: uppercase;
}

.status-session-value {
    color: #1f2937;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1.2;
    overflow-wrap: anywhere;
}

.status-logo-button {
    padding: 0.35rem;
}

.traceit-icon-status {
    width: 100%;
    max-width: 3rem;
    max-height: 3rem;
    object-fit: contain;
}

.status-dot {
    width: 0.95rem;
    height: 0.95rem;
    border-radius: 999px;
    display: inline-block;
}

.status-state-button {
    gap: 0.55rem;
}

.status-state-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
}

.status-admin-button {
    color: #0f766e;
}

.status-panel-button > svg {
    width: 1.25rem;
    height: 1.25rem;
}

.status-home-icon {
    width: 1.45rem;
    height: 1.45rem;
    fill: currentColor;
}

.status-language-button {
    font-size: 0.7rem;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.status-language-button.active {
    color: #1d4ed8;
    border-color: #2563eb;
    background: #eff6ff;
}

.status-panel-button:focus-visible {
    outline: 2px solid #2563eb;
    outline-offset: 2px;
}

.status-dot.connected {
    background: #10b981;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16);
}

.status-dot.disconnected {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}

.vehicle-filter-toggle {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #f8fafc;
}

.vehicle-filter-tab {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 0.4rem 0.3rem;
    text-align: center;
}

.vehicle-filter-tab.active {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.debug-toggle-button {
    width: 100%;
    border: 1px solid #d8e0ea;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #475569;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 0.45rem 0.6rem;
}

.debug-toggle-button.active {
    border-color: #0f766e;
    background: #ecfeff;
    color: #0f766e;
}

.debug-position-card {
    padding: 0.8rem;
}

.debug-position-list {
    display: grid;
    gap: 0.45rem;
    max-height: 18rem;
    overflow: auto;
}

.debug-position-row {
    display: grid;
    gap: 0.1rem;
    padding: 0.45rem 0.5rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.55rem;
    background: #f8fafc;
}

.debug-position-main {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    font-size: 0.78rem;
}

.debug-position-meta {
    color: #64748b;
    font-size: 0.72rem;
    line-height: 1.25;
}

.vehicle-list-scroll {
    max-height: calc(100vh - 16rem);
    overflow: auto;
}

.vehicle-list-toggle {
    display: inline-flex;
    gap: 0.35rem;
    padding: 0.2rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #f8fafc;
}

.vehicle-list-tab {
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
}

.vehicle-list-tab.active {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.vehicle-row-clickable {
    cursor: pointer;
}

.vehicle-row-clickable:hover > td {
    background: #f8fafc !important;
}

.vehicle-row-selected > td {
    box-shadow: inset 0 0 0 2px #0f766e;
}

.vehicle-device-cell {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.vehicle-time-cell {
    display: grid;
    justify-items: start;
    gap: 0.25rem;
}

.vehicle-reset-button {
    flex: 0 0 auto;
    min-width: 3.1rem;
    padding: 0.15rem 0.4rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.45rem;
    background: #ffffff;
    color: #475569;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.vehicle-reset-button:hover {
    border-color: #0f766e;
    color: #0f766e;
}

.vehicle-position-hint {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    margin-left: 0.45rem;
    border: 2px solid #64748b;
    border-radius: 999px;
    position: relative;
    vertical-align: middle;
}

.vehicle-position-hint::after {
    content: "";
    position: absolute;
    inset: 0.12rem;
    border-radius: 999px;
    background: #64748b;
}

.vehicle-popup {
    line-height: 1.45;
}

.history-stop-duration-label {
    width: max-content !important;
    height: auto !important;
    color: #ff0000;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.15;
    white-space: nowrap;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.vehicle-row-alert > td {
    background: #fef2f2 !important;
    color: #991b1b;
}

.vehicle-row-stopped > td {
    background: #eff6ff !important;
    color: #0f3d75;
}

.vehicle-row-returned > td {
    animation: vehicle-return-pulse 1s ease-in-out infinite;
}

.vehicle-alert-label {
    color: #b91c1c;
    font-weight: 700;
}

.vehicle-stopped-label {
    color: #0353a4;
    font-weight: 700;
}

.vehicle-warning-label {
    color: #c2410c;
    font-weight: 700;
}

.vehicle-standby-label {
    color: #475569;
    font-weight: 700;
}

.history-overlay {
    position: fixed;
    top: 5rem;
    right: 1rem;
    width: min(28rem, calc(100vw - 2rem));
    max-height: calc(100vh - 6rem);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.18);
    overflow: auto;
    z-index: 1100;
}

.trip-details-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.35);
    z-index: 1200;
}

.trip-details-modal {
    width: min(64rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    display: grid;
    gap: 0.85rem;
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
}

.trip-details-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.trip-details-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
    padding: 0.75rem 0.85rem;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.trip-details-map {
    min-height: min(70vh, 36rem);
    border: 1px solid #d8e0ea;
    border-radius: 0.85rem;
    overflow: hidden;
}

.trip-plate-alert-stack {
    position: fixed;
    top: 1rem;
    right: 1rem;
    display: grid;
    gap: 0.55rem;
    width: min(34rem, calc(100vw - 2rem));
    z-index: 1300;
}

.trip-plate-alert {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 6.5rem 6.5rem auto auto;
    align-items: center;
    gap: 0.55rem;
    padding: 0.65rem;
    border: 1px solid #bfdbfe;
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18);
}

.trip-battery-alert {
    grid-template-columns: minmax(0, 1fr) auto auto;
    border-color: #f59e0b;
    background: #fff7ed;
    box-shadow: 0 14px 28px rgba(146, 64, 14, 0.18);
}

.trip-plate-alert-main {
    min-width: 0;
}

.trip-plate-input {
    min-width: 0;
    text-transform: uppercase;
}

.history-overlay-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.history-filter {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.history-filter > button {
    grid-column: 1 / -1;
}

.history-occurrence-list {
    display: grid;
    gap: 0.6rem;
}

.history-occurrence-button {
    display: grid;
    gap: 0.2rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #d8e0ea;
    border-radius: 0.85rem;
    background: #f8fafc;
    text-align: left;
}

.history-occurrence-button.has-stop {
    border-color: #60a5fa;
    background: #eff6ff;
}

.history-occurrence-button.has-overspeed {
    border-color: #f87171;
    background: #fef2f2;
}

.history-occurrence-button.selected {
    border-color: #0f766e;
    background: #ecfeff;
}

.history-occurrence-button.selected.has-stop {
    border-color: #2563eb;
    background: #dbeafe;
}

.history-occurrence-button.selected.has-overspeed {
    border-color: #dc2626;
    background: #fee2e2;
}

.history-alert-line {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    min-height: 1.45rem;
}

.history-alert-pill {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.35rem;
    padding: 0.08rem 0.45rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.history-alert-stop {
    color: #0353a4;
    background: #dbeafe;
}

.history-alert-overspeed {
    color: #b91c1c;
    background: #fee2e2;
}

.history-alert-stop-text {
    color: #0353a4;
    font-weight: 700;
}

.history-alert-overspeed-text {
    color: #b91c1c;
    font-weight: 700;
}

.history-license-plate {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 1.35rem;
    padding: 0.08rem 0.45rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.35rem;
    color: #0f172a;
    background: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.history-summary {
    display: grid;
    gap: 0.2rem;
    padding: 0.85rem;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.auth-shell {
    min-height: calc(100vh - 8rem);
    display: grid;
    place-items: center;
}

.auth-card {
    width: min(26rem, 100%);
    padding: 1.5rem;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.08);
}

.auth-card-wide {
    width: min(42rem, 100%);
}

.auth-logo-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.traceit-logo-login {
    max-width: 8rem;
}

.admin-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.admin-nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 7rem;
    padding: 0.7rem 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #ffffff;
    color: #334155;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.admin-nav-link.active {
    border-color: #0f766e;
    background: #ecfeff;
    color: #0f766e;
}

.admin-card {
    display: grid;
    gap: 1rem;
}

.admin-page-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-editor-panel {
    padding: 1rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.9rem;
    background: #f8fafc;
}

.debug-subscreen-tabs {
    display: inline-flex;
    width: fit-content;
    gap: 0.35rem;
    padding: 0.25rem;
    border: 1px solid #d8e0ea;
    border-radius: 999px;
    background: #f8fafc;
}

.debug-subscreen-tab {
    min-width: 6.5rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #64748b;
    font-weight: 700;
    padding: 0.45rem 0.8rem;
}

.debug-subscreen-tab.active {
    background: #ffffff;
    color: #0f766e;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}

.debug-maintenance-controls {
    display: grid;
    grid-template-columns: minmax(12rem, 18rem) auto;
    align-items: end;
    gap: 0.6rem;
}

@media (max-width: 760px) {
    .debug-maintenance-controls {
        width: 100%;
        grid-template-columns: 1fr;
    }
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.38);
    z-index: 1300;
}

.admin-modal {
    width: min(54rem, calc(100vw - 2rem));
    max-height: calc(100vh - 2rem);
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    overflow: auto;
}

.tenant-zone-map {
    width: 100%;
    min-height: min(48vh, 28rem);
    border: 1px solid #d8e0ea;
    border-radius: 0.75rem;
    overflow: hidden;
    background: #f8fafc;
}

.tenant-zone-points {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.tenant-zone-points span {
    min-width: 0;
    padding: 0.35rem 0.45rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.45rem;
    background: #f8fafc;
    overflow-wrap: anywhere;
}

.tenant-zone-corner-label {
    border-color: #0f766e;
    background: #0f766e;
    color: #ffffff;
}

.admin-modal-header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
}

.admin-subsection-title {
    padding-top: 0.25rem;
    color: #334155;
    font-size: 0.9rem;
    font-weight: 700;
}

.crm-contact-comment {
    min-width: 16rem;
    max-width: 24rem;
    white-space: pre-wrap;
}

.crm-contact-comment-editor {
    min-height: 12rem;
}

.standby-corner-label {
    position: relative;
    color: rgba(71, 85, 105, 0.68);
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.standby-corner-label-nw {
    transform: translate(-1.35rem, -1.35rem);
}

.standby-corner-label-ne {
    transform: translate(1.35rem, -1.35rem);
}

.standby-corner-label-se {
    transform: translate(1.35rem, 1.35rem);
}

.standby-corner-label-sw {
    transform: translate(-1.35rem, 1.35rem);
}

.movement-debug-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.movement-debug-summary > div {
    padding: 0.85rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.75rem;
    background: #f8fafc;
}

.movement-debug-table {
    max-height: 34rem;
    overflow: auto;
}

.movement-debug-inside > td {
    background: #ecfeff !important;
}

.movement-debug-trip-list {
    display: grid;
    gap: 0.55rem;
}

.movement-debug-trip {
    padding: 0.65rem 0.75rem;
    border: 1px solid #e5ebf3;
    border-radius: 0.65rem;
    background: #ffffff;
}

.home-page {
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0 -2rem;
    background: #f4f7fb;
    color: #1f2937;
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid rgba(216, 224, 234, 0.88);
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(14px);
}

.home-brand {
    display: inline-flex;
    align-items: center;
}

.home-logo {
    width: 8.5rem;
    height: auto;
}

.home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(0.75rem, 3vw, 2rem);
}

.home-nav a {
    color: #475569;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
}

.home-nav a:hover {
    color: #0f766e;
}

.home-login-button {
    min-width: 6.25rem;
    font-weight: 700;
}

.home-main {
    display: grid;
    gap: clamp(3rem, 7vw, 5.5rem);
    padding: clamp(1.25rem, 4vw, 4rem);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(20rem, 0.95fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    min-height: min(46rem, calc(100vh - 6rem));
}

.home-hero-copy {
    display: grid;
    gap: 1.25rem;
    max-width: 46rem;
}

.home-eyebrow {
    color: #0f766e;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero h1,
.home-section-heading h2,
.home-band h2,
.home-implementation h2,
.home-cta h2 {
    margin: 0;
    color: #0f172a;
    font-weight: 800;
    letter-spacing: 0;
}

.home-hero h1 {
    max-width: 42rem;
    font-size: clamp(2.35rem, 6vw, 5.25rem);
    line-height: 0.96;
}

.home-hero p,
.home-section-heading p,
.home-band p,
.home-implementation p,
.home-cta p {
    margin: 0;
    color: #475569;
    font-size: 1.08rem;
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    padding-top: 0.4rem;
}

.home-hero-panel {
    display: grid;
    gap: 1rem;
}

.home-map-card {
    position: relative;
    min-height: 31rem;
    overflow: hidden;
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background:
        linear-gradient(135deg, rgba(15, 118, 110, 0.12), transparent 42%),
        linear-gradient(45deg, rgba(27, 110, 194, 0.13), transparent 52%),
        #ffffff;
    box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
}

.home-map-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.06) 1px, transparent 1px);
    background-size: 3.25rem 3.25rem;
}

.home-route-line {
    position: absolute;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #0f766e, #1b6ec2);
    box-shadow: 0 0 0 0.35rem rgba(15, 118, 110, 0.1);
    transform-origin: left center;
}

.home-route-line-one {
    left: 14%;
    top: 56%;
    width: 42%;
    transform: rotate(-22deg);
}

.home-route-line-two {
    left: 48%;
    top: 41%;
    width: 34%;
    transform: rotate(18deg);
}

.home-pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.2rem;
    height: 5.2rem;
    border: 0.45rem solid #ffffff;
    border-radius: 999px;
    background: #0f766e;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.18);
}

.home-pin-gate {
    left: 8%;
    top: 58%;
}

.home-pin-delivery {
    left: 44%;
    top: 31%;
    background: #1b6ec2;
}

.home-pin-exit {
    right: 9%;
    top: 49%;
    background: #334155;
}

.home-alert-pill {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 0.9rem;
    border: 1px solid #fecaca;
    border-radius: 999px;
    background: #fef2f2;
    color: #991b1b;
    font-weight: 800;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.1);
}

.home-signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-signal-row div {
    display: grid;
    gap: 0.15rem;
    padding: 1rem;
    border: 1px solid #d8e0ea;
    border-radius: 0.75rem;
    background: #ffffff;
}

.home-signal-row strong {
    color: #0f172a;
    font-size: 1.35rem;
}

.home-signal-row span {
    color: #64748b;
    font-weight: 700;
}

.home-section {
    display: grid;
    gap: 1.5rem;
}

.home-section-heading {
    display: grid;
    gap: 0.65rem;
    max-width: 44rem;
}

.home-section-heading h2,
.home-band h2,
.home-implementation h2,
.home-cta h2 {
    font-size: clamp(1.9rem, 4vw, 3.35rem);
    line-height: 1.05;
}

.home-benefit-grid,
.home-pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.home-benefit-card,
.home-price-card {
    display: grid;
    align-content: start;
    gap: 0.85rem;
    min-height: 100%;
    padding: 1.25rem;
    border: 1px solid #d8e0ea;
    border-radius: 0.75rem;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.home-benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 0.7rem;
    background: #ecfeff;
    color: #0f766e;
    font-weight: 900;
}

.home-benefit-card h3,
.home-price-card h3 {
    margin: 0;
    color: #0f172a;
    font-size: 1.2rem;
    font-weight: 800;
}

.home-benefit-card p {
    margin: 0;
    color: #475569;
    line-height: 1.6;
}

.home-band,
.home-implementation,
.home-cta {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1.5rem;
    padding: clamp(1.4rem, 4vw, 2.5rem);
    border: 1px solid #d8e0ea;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.07);
}

.home-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-price-card {
    gap: 1rem;
}

.home-price-card-featured {
    border-color: #0f766e;
    background: linear-gradient(180deg, #ffffff 0%, #ecfeff 100%);
}

.home-plan-name {
    color: #0f766e;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-price-card h3 {
    margin-top: 0.25rem;
    font-size: 2rem;
}

.home-price-card h3 span {
    color: #64748b;
    font-size: 0.95rem;
    font-weight: 700;
}

.home-price-card ul {
    display: grid;
    gap: 0.55rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #475569;
}

.home-cta {
    grid-template-columns: minmax(0, 1fr) auto;
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.25rem clamp(1rem, 4vw, 4rem) 2rem;
    color: #64748b;
    font-size: 0.92rem;
}

@keyframes vehicle-return-pulse {
    0% {
        background: #fff7ed !important;
        box-shadow: inset 0 0 0 0 rgba(249, 115, 22, 0.28);
    }

    50% {
        background: #fde68a !important;
        box-shadow: inset 0 0 0 2px rgba(249, 115, 22, 0.35);
    }

    100% {
        background: #fff7ed !important;
        box-shadow: inset 0 0 0 0 rgba(249, 115, 22, 0.18);
    }
}

@media (max-width: 960px) {
    .live-shell {
        grid-template-columns: 1fr;
    }

    .live-map-container {
        min-height: auto;
    }

    .live-map {
        min-height: 24rem;
    }

    .vehicle-list-scroll {
        max-height: none;
    }

    .history-overlay {
        top: auto;
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
        max-height: 55vh;
    }

    .trip-plate-alert-stack {
        right: 0.75rem;
        left: 0.75rem;
        width: auto;
    }

    .trip-plate-alert {
        grid-template-columns: minmax(0, 1fr) auto auto;
    }

    .trip-plate-alert-main {
        grid-column: 1 / -1;
    }

    .trip-plate-alert:not(.trip-battery-alert) {
        grid-template-columns: minmax(0, 1fr) 6rem auto auto;
    }

    .trip-details-modal {
        width: calc(100vw - 1.5rem);
        max-height: calc(100vh - 1.5rem);
    }

    .trip-details-map {
        min-height: 24rem;
    }

    .status-split {
        grid-template-columns: repeat(7, minmax(0, 1fr));
    }

    .admin-page-header {
        flex-direction: column;
    }

    .home-page {
        margin: -1.1rem -1rem 0 -1rem;
    }

    .home-topbar {
        grid-template-columns: 1fr auto;
        padding: 0.75rem 1rem;
    }

    .home-logo {
        width: 7rem;
    }

    .home-nav {
        display: none;
    }

    .home-login-button {
        min-width: 5.2rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .home-main {
        gap: 3rem;
        padding: 1rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1rem;
    }

    .home-hero h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
        line-height: 1;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-map-card {
        min-height: 22rem;
    }

    .home-pin {
        width: 4.4rem;
        height: 4.4rem;
        border-width: 0.35rem;
        font-size: 0.7rem;
    }

    .home-alert-pill {
        left: 1rem;
        right: auto;
        max-width: calc(100% - 2rem);
    }

    .home-signal-row,
    .home-benefit-grid,
    .home-pricing-grid,
    .home-band,
    .home-implementation,
    .home-cta {
        grid-template-columns: 1fr;
    }

    .home-cta .btn {
        width: 100%;
    }
}

/* Final override: product screenshot replaces the drawn hero mockup. */
.home-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: min(40rem, calc(100vh - 5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.home-hero h1 {
    max-width: 34rem;
    font-size: clamp(2.9rem, 5.7vw, 5.25rem);
    line-height: 0.98;
}

.home-hero p {
    max-width: 31rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-hero-panel {
    min-width: 0;
    transform: none;
}

.home-product-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: 0 32px 86px rgba(10, 37, 64, 0.22);
}

.home-product-shot::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.home-product-shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product-stack,
.home-map-card,
.home-map-grid,
.home-route-line,
.home-pin,
.home-alert-pill,
.home-floating-card {
    display: none;
}

.home-signal-row {
    margin-top: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-signal-row div {
    min-width: 0;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero h1,
    .home-hero p {
        max-width: 42rem;
    }

    .home-hero-panel {
        width: min(58rem, 100%);
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .home-signal-row {
        grid-template-columns: 1fr;
    }
}

/* Definitive home hero with real product image */
.home-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: min(40rem, calc(100vh - 5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.home-hero h1 {
    max-width: 34rem;
    font-size: clamp(2.9rem, 5.7vw, 5.25rem);
    line-height: 0.98;
}

.home-hero p {
    max-width: 31rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-hero-panel {
    min-width: 0;
    transform: none;
}

.home-product-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: 0 32px 86px rgba(10, 37, 64, 0.22);
}

.home-product-shot::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.home-product-shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product-stack,
.home-map-card,
.home-map-grid,
.home-route-line,
.home-pin,
.home-alert-pill,
.home-floating-card {
    display: none;
}

.home-signal-row {
    margin-top: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-signal-row div {
    min-width: 0;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero h1,
    .home-hero p {
        max-width: 42rem;
    }

    .home-hero-panel {
        width: min(58rem, 100%);
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .home-signal-row {
        grid-template-columns: 1fr;
    }
}

/* Definitive home hero with real product image */
.home-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: min(40rem, calc(100vh - 5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.home-hero h1 {
    max-width: 34rem;
    font-size: clamp(2.9rem, 5.7vw, 5.25rem);
    line-height: 0.98;
}

.home-hero p {
    max-width: 31rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-hero-panel {
    min-width: 0;
    transform: none;
}

.home-product-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: 0 32px 86px rgba(10, 37, 64, 0.22);
}

.home-product-shot::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.home-product-shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product-stack,
.home-map-card,
.home-map-grid,
.home-route-line,
.home-pin,
.home-alert-pill,
.home-floating-card {
    display: none;
}

.home-signal-row {
    margin-top: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-signal-row div {
    min-width: 0;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero h1,
    .home-hero p {
        max-width: 42rem;
    }

    .home-hero-panel {
        width: min(58rem, 100%);
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .home-signal-row {
        grid-template-columns: 1fr;
    }
}

/* Real product image hero: no overlap, no synthetic mockup */
.home-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: min(40rem, calc(100vh - 5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.home-hero h1 {
    max-width: 34rem;
    font-size: clamp(2.9rem, 5.7vw, 5.25rem);
    line-height: 0.98;
}

.home-hero p {
    max-width: 31rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-hero-panel {
    min-width: 0;
    transform: none;
}

.home-product-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: 0 32px 86px rgba(10, 37, 64, 0.22);
}

.home-product-shot::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.home-product-shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product-stack,
.home-map-card,
.home-map-grid,
.home-route-line,
.home-pin,
.home-alert-pill,
.home-floating-card {
    display: none;
}

.home-signal-row {
    margin-top: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-signal-row div {
    min-width: 0;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero h1,
    .home-hero p {
        max-width: 42rem;
    }

    .home-hero-panel {
        width: min(58rem, 100%);
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .home-signal-row {
        grid-template-columns: 1fr;
    }
}

/* Aggressive content trim: quieter rhythm, fewer competing blocks */
.home-main {
    gap: clamp(3.4rem, 6vw, 5.5rem);
}

.home-hero {
    min-height: min(42rem, calc(100vh - 5rem));
}

.home-hero-copy {
    gap: 1rem;
}

.home-hero h1 {
    max-width: 42rem;
    font-size: clamp(3.2rem, 7vw, 6.4rem);
}

.home-hero p {
    max-width: 34rem;
}

.home-product-stack {
    min-height: 34rem;
}

.home-map-card {
    min-height: 31rem;
}

.home-signal-row div {
    padding: 0.85rem 1rem;
}

.home-section {
    grid-template-columns: minmax(0, 0.62fr) minmax(0, 1.38fr);
    gap: clamp(1.5rem, 4vw, 3.5rem);
}

.home-section-heading {
    max-width: 28rem;
}

.home-section-heading p {
    max-width: 21rem;
    font-size: 1rem;
    line-height: 1.55;
}

.home-benefit-grid {
    grid-template-columns: 1.2fr 1fr;
}

.home-benefit-card {
    min-height: 11.5rem;
    padding: 1.15rem;
}

.home-benefit-card-large {
    min-height: 24rem;
}

.home-benefit-card p {
    font-size: 0.98rem;
    line-height: 1.5;
}

.home-band {
    min-height: 16rem;
}

.home-band,
.home-implementation {
    padding-top: clamp(2.25rem, 5vw, 4rem);
    padding-bottom: clamp(2.25rem, 5vw, 4rem);
}

.home-band p,
.home-implementation p,
.home-cta p {
    max-width: 32rem;
    font-size: 1.02rem;
    line-height: 1.58;
}

.home-price-card {
    min-height: 17rem;
}

.home-price-card ul {
    gap: 0.45rem;
}

.home-implementation {
    min-height: 11rem;
}

.home-cta {
    padding: clamp(1.4rem, 4vw, 2.4rem);
}

@media (max-width: 1100px) {
    .home-section {
        grid-template-columns: 1fr;
    }

    .home-section-heading {
        max-width: 40rem;
    }
}

@media (max-width: 960px) {
    .home-main {
        gap: 2.75rem;
    }

    .home-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4.1rem);
    }

    .home-product-stack {
        min-height: 27rem;
    }

    .home-map-card {
        min-height: 24rem;
    }

    .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-benefit-card,
    .home-benefit-card-large,
    .home-price-card {
        min-height: auto;
    }
}

/* Final home ordering guards */
.home-main > .home-section-offset {
    grid-column: 1 / -1;
}

.home-section-offset {
    margin-left: 0;
    margin-right: 0;
    padding-left: max(1rem, calc((100% - 1080px) / 2));
    padding-right: max(1rem, calc((100% - 1080px) / 2));
}

.home-band,
.home-implementation {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.home-footer > * {
    grid-column: auto;
}

@media (max-width: 960px) {
    .home-topbar {
        grid-template-areas: ". brand login .";
        grid-template-columns: 1rem minmax(0, 1fr) auto 1rem;
        padding-left: 0;
        padding-right: 0;
    }

    .home-section-offset {
        margin-left: 0;
        margin-right: 0;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-band,
    .home-implementation {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }
}

/* Home iteration 4: full-bleed diagonal bands and section flow */
.home-main > .home-section-offset {
    grid-column: 1 / -1;
}

.home-section-offset {
    margin-left: 0;
    margin-right: 0;
    padding-left: max(1rem, calc((100% - 1080px) / 2));
    padding-right: max(1rem, calc((100% - 1080px) / 2));
}

.home-band,
.home-implementation {
    padding-top: clamp(3rem, 6vw, 5rem);
    padding-bottom: clamp(3rem, 6vw, 5rem);
}

.home-band {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

.home-implementation {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.home-price-card:hover,
.home-benefit-card:hover {
    transform: translateY(-0.25rem);
    transition: transform 180ms ease, box-shadow 180ms ease;
    box-shadow: 0 26px 62px rgba(10, 37, 64, 0.1);
}

.home-price-card-featured:hover {
    box-shadow: 0 30px 70px rgba(99, 91, 255, 0.18);
}

@media (max-width: 960px) {
    .home-section-offset {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-band,
    .home-implementation {
        padding-top: 2rem;
        padding-bottom: 2rem;
    }

    .home-price-card:hover,
    .home-benefit-card:hover {
        transform: none;
    }
}

/* Home iteration 3: added metrics/platform rhythm and tightened responsive polish */
.home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: min(1080px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 1.25rem 0 2rem;
}

.home-footer > * {
    grid-column: auto;
}

.home-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border-radius: 8px;
    background: rgba(10, 37, 64, 0.08);
    box-shadow: 0 20px 50px rgba(10, 37, 64, 0.07);
}

.home-metrics div {
    display: grid;
    align-content: start;
    gap: 0.35rem;
    min-height: 11rem;
    padding: 1.3rem;
    background: #ffffff;
}

.home-metrics strong {
    color: var(--home-purple);
    font-size: clamp(1.6rem, 3vw, 2.35rem);
    line-height: 1;
}

.home-metrics span {
    color: var(--home-muted);
    font-weight: 800;
    line-height: 1.45;
}

.home-platform {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(1.5rem, 5vw, 4rem);
}

.home-platform-copy {
    display: grid;
    gap: 0.75rem;
}

.home-platform h2 {
    margin: 0;
    color: var(--home-ink);
    font-size: clamp(2rem, 4.1vw, 3.55rem);
    font-weight: 900;
    line-height: 1.03;
}

.home-platform p {
    margin: 0;
    color: var(--home-muted);
    font-size: 1.08rem;
    line-height: 1.72;
}

.home-console {
    display: grid;
    gap: 0;
    overflow: hidden;
    border-radius: 8px;
    background: #0a2540;
    box-shadow: 0 30px 80px rgba(10, 37, 64, 0.22);
}

.home-console-bar {
    display: flex;
    gap: 0.45rem;
    align-items: center;
    height: 3.2rem;
    padding: 0 1rem;
    background: #071d33;
}

.home-console-bar span {
    width: 0.72rem;
    height: 0.72rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.25);
}

.home-console-row {
    display: grid;
    grid-template-columns: 4rem minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.home-console-row span {
    color: #11efe3;
    font-size: 0.9rem;
    font-weight: 900;
}

.home-console-row strong {
    color: #ffffff;
    font-weight: 800;
}

.home-console-row em {
    padding: 0.35rem 0.55rem;
    border-radius: 999px;
    background: rgba(99, 91, 255, 0.24);
    color: rgba(255,255,255,0.82);
    font-size: 0.78rem;
    font-style: normal;
    font-weight: 900;
}

@media (max-width: 960px) {
    .home-metrics,
    .home-platform {
        grid-template-columns: 1fr;
    }

    .home-metrics {
        gap: 1px;
    }

    .home-metrics div {
        min-height: 8rem;
    }

    .home-console-row {
        grid-template-columns: 3.5rem minmax(0, 1fr);
    }

    .home-console-row em {
        grid-column: 2;
        width: max-content;
    }
}

/* Home iteration 2: closer to Stripe's fluid product-led composition */
.home-page {
    --home-ink: #0a2540;
    --home-muted: #425466;
    --home-faint: #6b7c93;
    --home-purple: #635bff;
    --home-cyan: #00d4ff;
    --home-mint: #00a88f;
    --home-teal: #11efe3;
    --home-grid: minmax(1rem, 1fr) minmax(0, 1080px) minmax(1rem, 1fr);
    background:
        linear-gradient(180deg, transparent 0 39rem, #f6f9fc 39rem 72rem, #ffffff 72rem);
}

.home-page::before {
    height: clamp(34rem, 57vw, 45rem);
    background:
        linear-gradient(112deg, #00d4ff 0%, #7a73ff 28%, #635bff 45%, #00a88f 72%, #11efe3 100%);
    filter: saturate(116%);
}

.home-page::after {
    top: 22rem;
    right: -16vw;
    width: min(76rem, 105vw);
    height: 28rem;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.82), rgba(255,255,255,0.1)),
        linear-gradient(118deg, rgba(255,197,61,0.24), rgba(0,212,255,0.2) 42%, rgba(99,91,255,0.18));
}

.home-topbar,
.home-main,
.home-footer {
    display: grid;
    grid-template-columns: var(--home-grid);
    padding-left: 0;
    padding-right: 0;
}

.home-topbar > *,
.home-main > *,
.home-footer > * {
    grid-column: 2;
}

.home-topbar {
    grid-template-areas: ". brand nav login .";
    grid-template-columns: minmax(1rem, 1fr) auto minmax(14rem, 1fr) auto minmax(1rem, 1fr);
    background: rgba(255, 255, 255, 0.42);
    border-bottom: 0;
}

.home-brand {
    grid-column: auto;
    grid-area: brand;
}

.home-nav {
    grid-column: auto;
    grid-area: nav;
}

.home-login-button {
    grid-column: auto;
    grid-area: login;
}

.home-main {
    gap: clamp(4.5rem, 8.5vw, 8rem);
    padding-top: clamp(2.25rem, 5vw, 5.25rem);
}

.home-hero {
    min-height: min(47rem, calc(100vh - 5rem));
}

.home-hero-copy {
    align-content: center;
}

.home-hero h1 {
    color: var(--home-ink);
    font-size: clamp(3.45rem, 7.8vw, 7.35rem);
    max-width: 50rem;
}

.home-hero p {
    max-width: 38rem;
    font-size: clamp(1.1rem, 1.65vw, 1.34rem);
}

.home-product-stack {
    position: relative;
    min-height: 38rem;
}

.home-map-card {
    min-height: 35rem;
    margin-top: 1rem;
    transform: translateX(1rem);
}

.home-map-card::before {
    display: none;
}

.home-map-card::after {
    content: "";
}

.home-map-grid {
    inset: 0;
    background:
        linear-gradient(140deg, rgba(255,255,255,0.12), rgba(255,255,255,0)),
        linear-gradient(rgba(10, 37, 64, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 37, 64, 0.07) 1px, transparent 1px),
        linear-gradient(135deg, #ffffff, #eef7ff);
    background-size: auto, 3.1rem 3.1rem, 3.1rem 3.1rem, auto;
}

.home-map-grid::before {
    content: "";
    position: absolute;
    inset: 1.1rem 1.1rem auto;
    height: 3.25rem;
    border-radius: 8px;
    background: var(--home-ink);
    box-shadow: 0 18px 36px rgba(10, 37, 64, 0.16);
}

.home-map-grid::after {
    content: "TraceIt live monitor";
    position: absolute;
    top: 2.05rem;
    left: 2.35rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 900;
}

.home-route-line-one {
    top: 62%;
}

.home-route-line-two {
    top: 46%;
}

.home-floating-card {
    position: absolute;
    z-index: 4;
    display: grid;
    gap: 0.2rem;
    width: min(15rem, 45%);
    padding: 1rem 1.05rem;
    border: 1px solid rgba(255,255,255,0.68);
    border-radius: 8px;
    background: rgba(255,255,255,0.9);
    box-shadow: 0 22px 54px rgba(10, 37, 64, 0.18);
    backdrop-filter: blur(16px);
}

.home-floating-card span {
    color: var(--home-faint);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-floating-card strong {
    color: var(--home-ink);
    font-size: 1.02rem;
}

.home-floating-card-alert {
    top: 0;
    right: -0.25rem;
}

.home-floating-card-trip {
    left: -1.25rem;
    bottom: 3.5rem;
}

.home-signal-row {
    margin-top: -1rem;
    position: relative;
    z-index: 5;
}

.home-proof-strip {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    gap: 1rem;
    margin-top: clamp(-4rem, -4vw, -2rem);
    color: rgba(10, 37, 64, 0.45);
    font-size: 0.88rem;
    font-weight: 900;
    text-transform: uppercase;
}

.home-proof-strip span {
    border-top: 1px solid rgba(10, 37, 64, 0.1);
    padding-top: 0.85rem;
}

.home-section {
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    align-items: start;
}

.home-section-heading {
    position: sticky;
    top: 6rem;
}

.home-benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-benefit-card {
    min-height: 14rem;
}

.home-benefit-card-large {
    grid-row: span 2;
    align-content: end;
    min-height: 29rem;
    background:
        linear-gradient(180deg, rgba(10,37,64,0), rgba(10,37,64,0.82)),
        linear-gradient(135deg, rgba(0,212,255,0.74), rgba(99,91,255,0.78)),
        #635bff;
}

.home-benefit-card-large h3,
.home-benefit-card-large p {
    color: #ffffff;
}

.home-benefit-card-large .home-benefit-icon {
    background: rgba(255,255,255,0.16);
    color: #ffffff;
}

.home-band {
    min-height: 22rem;
    transform: skewY(-4deg);
}

.home-band > *,
.home-implementation > * {
    transform: skewY(4deg);
}

.home-pricing-grid {
    align-items: stretch;
}

.home-price-card {
    min-height: 22rem;
    padding: clamp(1.25rem, 3vw, 1.8rem);
}

.home-price-card-featured {
    transform: translateY(-1.2rem);
}

.home-implementation {
    min-height: 15rem;
    transform: skewY(-4deg);
}

.home-cta {
    border-radius: 8px;
    box-shadow: 0 24px 70px rgba(10,37,64,0.08);
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: minmax(0, 1fr);
    }

    .home-hero-panel {
        width: min(42rem, 100%);
        transform: none;
    }

    .home-section {
        grid-template-columns: 1fr;
    }

    .home-section-heading {
        position: static;
    }
}

@media (max-width: 960px) {
    .home-topbar,
    .home-main,
    .home-footer {
        grid-template-columns: 1rem minmax(0, 1fr) 1rem;
    }

    .home-topbar {
        grid-template-areas: ". brand login .";
        grid-template-columns: 1rem minmax(0, 1fr) auto 1rem;
    }

    .home-page::before {
        height: 35rem;
    }

    .home-product-stack {
        min-height: 28rem;
    }

    .home-map-card {
        min-height: 25rem;
        margin-top: 0;
        transform: none;
    }

    .home-floating-card {
        width: min(13rem, 54%);
    }

    .home-floating-card-alert {
        right: 0.5rem;
    }

    .home-floating-card-trip {
        left: 0.5rem;
        bottom: 2rem;
    }

    .home-proof-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 0;
    }

    .home-proof-strip span:last-child {
        grid-column: 1 / -1;
    }

    .home-benefit-grid {
        grid-template-columns: 1fr;
    }

    .home-benefit-card-large {
        min-height: 20rem;
    }

    .home-band,
    .home-implementation,
    .home-band > *,
    .home-implementation > * {
        transform: none;
    }

    .home-price-card-featured {
        transform: none;
    }
}

/* Stripe-inspired home refresh */
.home-page {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0 -2rem;
    background: #ffffff;
    color: #0a2540;
}

.home-page::before {
    content: "";
    position: absolute;
    inset: -8rem -12vw auto -12vw;
    height: 42rem;
    z-index: -2;
    background:
        linear-gradient(118deg, #00d4ff 0%, #635bff 30%, #7a73ff 48%, #00a88f 68%, #11efe3 100%);
    transform: skewY(-8deg);
    transform-origin: 0 0;
}

.home-page::after {
    content: "";
    position: absolute;
    inset: 19rem -8vw auto auto;
    width: min(62rem, 90vw);
    height: 26rem;
    z-index: -1;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0)),
        linear-gradient(135deg, rgba(0, 212, 255, 0.22), rgba(122, 115, 255, 0.18));
    transform: skewY(-8deg);
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem clamp(1.1rem, 5vw, 5rem);
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.58);
    backdrop-filter: blur(18px) saturate(160%);
}

.home-logo {
    width: 8.75rem;
    height: auto;
    filter: drop-shadow(0 10px 24px rgba(10, 37, 64, 0.16));
}

.home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2.35rem);
}

.home-nav a {
    color: rgba(10, 37, 64, 0.78);
    font-size: 0.94rem;
    font-weight: 800;
    text-decoration: none;
}

.home-nav a:hover {
    color: #0a2540;
}

.home-page .btn {
    border-radius: 999px;
    font-weight: 800;
}

.home-page .btn-primary {
    border-color: #0a2540;
    background: #0a2540;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(10, 37, 64, 0.18);
}

.home-page .btn-primary:hover {
    border-color: #1d3f5f;
    background: #1d3f5f;
}

.home-page .btn-outline-primary {
    border-color: rgba(10, 37, 64, 0.16);
    background: rgba(255, 255, 255, 0.68);
    color: #0a2540;
}

.home-page .btn-outline-primary:hover {
    border-color: rgba(10, 37, 64, 0.28);
    background: #ffffff;
    color: #0a2540;
}

.home-main {
    display: grid;
    gap: clamp(4.5rem, 8vw, 7rem);
    padding: clamp(1.25rem, 4vw, 4.5rem) clamp(1.1rem, 5vw, 5rem) clamp(3rem, 6vw, 5rem);
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(21rem, 0.98fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5.5rem);
    min-height: min(45rem, calc(100vh - 5.5rem));
}

.home-hero-copy {
    display: grid;
    gap: 1.25rem;
    max-width: 48rem;
    padding-top: clamp(1rem, 3vw, 3rem);
}

.home-eyebrow {
    color: #00a88f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero .home-eyebrow {
    color: rgba(10, 37, 64, 0.72);
}

.home-hero h1,
.home-section-heading h2,
.home-band h2,
.home-implementation h2,
.home-cta h2 {
    margin: 0;
    color: #0a2540;
    font-weight: 900;
    letter-spacing: 0;
}

.home-hero h1 {
    max-width: 47rem;
    font-size: clamp(3rem, 7.3vw, 6.55rem);
    line-height: 0.94;
}

.home-hero p,
.home-section-heading p,
.home-band p,
.home-implementation p,
.home-cta p {
    margin: 0;
    color: #425466;
    font-size: 1.1rem;
    line-height: 1.72;
}

.home-hero p {
    max-width: 39rem;
    color: rgba(10, 37, 64, 0.72);
    font-size: clamp(1.05rem, 1.5vw, 1.28rem);
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    padding-top: 0.6rem;
}

.home-hero-panel {
    display: grid;
    gap: 1rem;
    transform: perspective(1100px) rotateY(-8deg) rotateX(3deg);
    transform-origin: center;
}

.home-map-card {
    position: relative;
    min-height: 33rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 8px;
    background:
        radial-gradient(circle at 18% 20%, rgba(17, 239, 227, 0.32), transparent 28%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.9)),
        #ffffff;
    box-shadow: 0 28px 80px rgba(10, 37, 64, 0.22);
}

.home-map-card::before {
    content: "";
    position: absolute;
    inset: 1rem 1rem auto;
    height: 3rem;
    border-radius: 8px;
    background: #0a2540;
    box-shadow: 0 18px 36px rgba(10, 37, 64, 0.16);
}

.home-map-card::after {
    content: "TraceIt live monitor";
    position: absolute;
    top: 1.86rem;
    left: 2.25rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.82rem;
    font-weight: 800;
}

.home-map-grid {
    position: absolute;
    inset: 5.25rem 1rem 1rem;
    border-radius: 8px;
    background-image:
        linear-gradient(rgba(10, 37, 64, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 37, 64, 0.07) 1px, transparent 1px);
    background-size: 3.1rem 3.1rem;
}

.home-route-line {
    position: absolute;
    height: 0.35rem;
    border-radius: 999px;
    background: linear-gradient(90deg, #00a88f, #635bff);
    box-shadow: 0 0 0 0.42rem rgba(99, 91, 255, 0.12);
    transform-origin: left center;
}

.home-route-line-one {
    left: 14%;
    top: 59%;
    width: 44%;
    transform: rotate(-22deg);
}

.home-route-line-two {
    left: 49%;
    top: 43%;
    width: 35%;
    transform: rotate(18deg);
}

.home-pin {
    position: absolute;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 5.3rem;
    height: 5.3rem;
    border: 0.42rem solid #ffffff;
    border-radius: 999px;
    background: #00a88f;
    color: #ffffff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 18px 36px rgba(10, 37, 64, 0.2);
}

.home-pin-delivery {
    background: #635bff;
}

.home-pin-exit {
    background: #0a2540;
}

.home-alert-pill {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(255, 197, 61, 0.42);
    border-radius: 999px;
    background: #fff8e6;
    color: #8a5a00;
    font-weight: 900;
    box-shadow: 0 18px 34px rgba(10, 37, 64, 0.13);
}

.home-signal-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.8rem;
}

.home-signal-row div {
    display: grid;
    gap: 0.15rem;
    padding: 1rem;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: 0 18px 42px rgba(10, 37, 64, 0.09);
}

.home-signal-row strong {
    color: #0a2540;
    font-size: 1.45rem;
}

.home-signal-row span {
    color: #6b7c93;
    font-weight: 800;
}

.home-section {
    display: grid;
    gap: 1.75rem;
}

.home-section-heading {
    display: grid;
    gap: 0.7rem;
    max-width: 45rem;
}

.home-section-heading h2,
.home-band h2,
.home-implementation h2,
.home-cta h2 {
    font-size: clamp(2rem, 4.2vw, 3.8rem);
    line-height: 1.02;
}

.home-benefit-grid,
.home-pricing-grid {
    display: grid;
    gap: 1rem;
}

.home-benefit-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-benefit-card,
.home-price-card {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    min-height: 100%;
    padding: 1.35rem;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(10, 37, 64, 0.07);
}

.home-benefit-card {
    position: relative;
    overflow: hidden;
}

.home-benefit-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 0.25rem;
    background: linear-gradient(180deg, #00d4ff, #635bff);
}

.home-benefit-icon {
    display: inline-grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border-radius: 8px;
    background: #f6f9fc;
    color: #635bff;
    font-weight: 900;
}

.home-benefit-card h3,
.home-price-card h3 {
    margin: 0;
    color: #0a2540;
    font-size: 1.17rem;
    font-weight: 900;
}

.home-benefit-card p {
    margin: 0;
    color: #425466;
    line-height: 1.65;
}

.home-band,
.home-implementation,
.home-cta {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 1.75rem;
    padding: clamp(1.55rem, 4vw, 3rem);
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(135deg, rgba(10, 37, 64, 0.96), rgba(53, 38, 120, 0.94)),
        #0a2540;
    color: #ffffff;
    box-shadow: none;
}

.home-section-offset {
    margin-left: calc(clamp(1.1rem, 5vw, 5rem) * -1);
    margin-right: calc(clamp(1.1rem, 5vw, 5rem) * -1);
    padding-left: clamp(1.1rem, 5vw, 5rem);
    padding-right: clamp(1.1rem, 5vw, 5rem);
}

.home-band .home-eyebrow,
.home-implementation .home-eyebrow,
.home-cta .home-eyebrow {
    color: #11efe3;
}

.home-band h2,
.home-implementation h2,
.home-cta h2 {
    color: #ffffff;
}

.home-band p,
.home-implementation p,
.home-cta p {
    color: rgba(255, 255, 255, 0.74);
}

.home-pricing-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-price-card {
    gap: 1rem;
    border-top: 4px solid #d8dee9;
}

.home-price-card-featured {
    border-color: rgba(99, 91, 255, 0.22);
    border-top-color: #635bff;
    background: linear-gradient(180deg, #ffffff 0%, #f6f9fc 100%);
    box-shadow: 0 26px 60px rgba(99, 91, 255, 0.16);
}

.home-plan-name {
    color: #635bff;
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-price-card h3 {
    margin-top: 0.25rem;
    font-size: clamp(1.65rem, 2.5vw, 2.15rem);
}

.home-price-card h3 span {
    color: #6b7c93;
    font-size: 0.95rem;
    font-weight: 800;
}

.home-price-card ul {
    display: grid;
    gap: 0.6rem;
    margin: 0;
    padding-left: 1.15rem;
    color: #425466;
}

.home-implementation {
    background:
        linear-gradient(118deg, rgba(0, 168, 143, 0.96), rgba(99, 91, 255, 0.94)),
        #00a88f;
}

.home-cta {
    grid-template-columns: minmax(0, 1fr) auto;
    background:
        linear-gradient(118deg, #f6f9fc, #ffffff);
    border-top: 1px solid rgba(10, 37, 64, 0.08);
    border-bottom: 1px solid rgba(10, 37, 64, 0.08);
}

.home-cta .home-eyebrow {
    color: #00a88f;
}

.home-cta h2 {
    color: #0a2540;
}

.home-cta p {
    color: #425466;
}

.home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.8rem;
    padding: 1.25rem clamp(1.1rem, 5vw, 5rem) 2rem;
    color: #6b7c93;
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .home-page {
        margin: -1.1rem -1rem 0 -1rem;
    }

    .home-page::before {
        height: 37rem;
        top: -7rem;
    }

    .home-topbar {
        grid-template-columns: 1fr auto;
        padding: 0.8rem 1rem;
    }

    .home-logo {
        width: 7.1rem;
    }

    .home-nav {
        display: none;
    }

    .home-login-button {
        min-width: 5.2rem;
        padding-left: 0.85rem;
        padding-right: 0.85rem;
    }

    .home-main {
        gap: 3.5rem;
        padding: 1rem;
    }

    .home-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 1rem;
    }

    .home-hero h1 {
        font-size: clamp(2.65rem, 13vw, 4rem);
        line-height: 0.98;
    }

    .home-hero-actions .btn {
        width: 100%;
    }

    .home-hero-panel {
        transform: none;
    }

    .home-map-card {
        min-height: 22rem;
    }

    .home-pin {
        width: 4.25rem;
        height: 4.25rem;
        border-width: 0.35rem;
        font-size: 0.68rem;
    }

    .home-alert-pill {
        left: 1rem;
        right: auto;
        max-width: calc(100% - 2rem);
    }

    .home-signal-row,
    .home-benefit-grid,
    .home-pricing-grid,
    .home-band,
    .home-implementation,
    .home-cta {
        grid-template-columns: 1fr;
    }

    .home-section-offset {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .home-cta .btn {
        width: 100%;
    }
}

/* Final override: product screenshot replaces the drawn hero mockup. */
.home-hero {
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
    min-height: min(40rem, calc(100vh - 5rem));
}

.home-hero-copy {
    position: relative;
    z-index: 2;
    max-width: 34rem;
}

.home-hero h1 {
    max-width: 34rem;
    font-size: clamp(2.9rem, 5.7vw, 5.25rem);
    line-height: 0.98;
}

.home-hero p {
    max-width: 31rem;
    font-size: clamp(1rem, 1.25vw, 1.16rem);
}

.home-hero-panel {
    min-width: 0;
    transform: none;
}

.home-product-shot {
    position: relative;
    overflow: hidden;
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #eef4fb;
    box-shadow: 0 32px 86px rgba(10, 37, 64, 0.22);
}

.home-product-shot::before {
    content: "";
    display: block;
    aspect-ratio: 16 / 10;
}

.home-product-shot img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-product-stack,
.home-map-card,
.home-map-grid,
.home-route-line,
.home-pin,
.home-alert-pill,
.home-floating-card {
    display: none;
}

.home-signal-row {
    margin-top: 0.9rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-signal-row div {
    min-width: 0;
    padding: 0.85rem 1rem;
}

@media (max-width: 1100px) {
    .home-hero {
        grid-template-columns: 1fr;
    }

    .home-hero-copy,
    .home-hero h1,
    .home-hero p {
        max-width: 42rem;
    }

    .home-hero-panel {
        width: min(58rem, 100%);
    }
}

@media (max-width: 960px) {
    .home-hero {
        min-height: auto;
    }

    .home-hero h1 {
        font-size: clamp(2.35rem, 11vw, 3.75rem);
    }

    .home-signal-row {
        grid-template-columns: 1fr;
    }
}

/* Final clean wheel-style home */
.home-wheel-page {
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0 -2rem;
    background: #ffffff;
    color: #0b233f;
    overflow-x: hidden;
}

.home-wheel-page::before,
.home-wheel-page::after {
    display: none;
}

.home-wheel-page .home-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1.5rem;
    padding: 1rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid #e5e7eb;
    background: #f5f6f8;
    backdrop-filter: none;
}

.home-wheel-page .home-logo {
    width: 8rem;
    height: auto;
    filter: none;
}

.home-wheel-page .home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.home-wheel-page .home-nav a {
    color: #44566c;
    font-size: 0.95rem;
    font-weight: 750;
    text-decoration: none;
}

.home-wheel-page .home-nav a:hover {
    color: #0b233f;
}

.home-wheel-page .home-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.75rem;
    padding: 0.55rem 1.1rem;
    border: 1px solid #d7dde5;
    border-radius: 999px;
    background: #ffffff;
    color: #0b233f;
    font-weight: 800;
    text-decoration: none;
    box-shadow: none;
}

.home-wheel-main {
    min-height: calc(100vh - 8.5rem);
    display: grid;
    place-items: center;
    padding: clamp(1.25rem, 4vw, 4rem);
}

.home-wheel-hero {
    width: min(1120px, 100%);
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(22rem, 1.18fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
}

.home-wheel-copy {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}

.home-wheel-page .home-eyebrow {
    color: #0aa68f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-wheel-copy h1 {
    margin: 0;
    color: #0b233f;
    font-size: clamp(3rem, 7vw, 6.25rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 0.95;
}

.home-wheel-copy p {
    margin: 0;
    max-width: 30rem;
    color: #52667c;
    font-size: clamp(1.05rem, 1.5vw, 1.22rem);
    line-height: 1.65;
}

.home-wheel-picker {
    position: relative;
    height: min(35rem, calc(100vh - 12rem));
    min-height: 28rem;
    overflow: hidden;
    border-radius: 1rem;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0) 24%),
        #ffffff;
}

.home-wheel-picker::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 9.5rem;
    border-top: 1px solid #e7ebf0;
    border-bottom: 1px solid #e7ebf0;
    background: #f8fafc;
    transform: translateY(-50%);
    pointer-events: none;
}

.home-wheel-picker::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, #ffffff 0%, rgba(255,255,255,0) 22%, rgba(255,255,255,0) 78%, #ffffff 100%);
    pointer-events: none;
}

.home-wheel-track {
    height: 100%;
    display: grid;
    gap: 1rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-snap-type: y mandatory;
    padding: calc((min(35rem, calc(100vh - 12rem)) - 9.5rem) / 2) 0;
    scrollbar-width: none;
}

.home-wheel-track::-webkit-scrollbar {
    display: none;
}

.home-wheel-item {
    position: relative;
    z-index: 1;
    min-height: 9.5rem;
    display: grid;
    align-content: center;
    gap: 0.4rem;
    padding: 1rem clamp(1rem, 3vw, 2.5rem);
    border-radius: 0.75rem;
    scroll-snap-align: center;
    transform: scale(0.92);
    opacity: 0.46;
    transition: transform 180ms ease, opacity 180ms ease;
}

.home-wheel-item:hover,
.home-wheel-item:focus-within,
.home-wheel-item-featured {
    transform: scale(1);
    opacity: 1;
}

.home-wheel-item span {
    color: #0aa68f;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-wheel-item h2 {
    margin: 0;
    color: #0b233f;
    font-size: clamp(1.75rem, 3.2vw, 3rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.02;
}

.home-wheel-item p {
    margin: 0;
    max-width: 36rem;
    color: #52667c;
    font-size: 1rem;
    line-height: 1.55;
}

.home-wheel-page .home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem clamp(1rem, 4vw, 4rem) 1.5rem;
    color: #7b8794;
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .home-wheel-page {
        margin: -1.1rem -1rem 0 -1rem;
    }

    .home-wheel-page .home-topbar {
        grid-template-columns: 1fr auto;
        padding: 0.85rem 1rem;
    }

    .home-wheel-page .home-nav {
        display: none;
    }

    .home-wheel-main {
        place-items: start;
        min-height: auto;
        padding: 2rem 1rem;
    }

    .home-wheel-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .home-wheel-copy h1 {
        font-size: clamp(2.65rem, 13vw, 4.25rem);
    }

    .home-wheel-picker {
        height: 28rem;
        min-height: 28rem;
        border-radius: 0.75rem;
    }

    .home-wheel-track {
        padding: 9.25rem 0;
    }

    .home-wheel-item {
        min-height: 9rem;
        padding: 1rem;
    }
}

/* Final organic top-to-bottom home */
.home-organic-page {
    min-height: 100vh;
    margin: -1.1rem -1.5rem 0 -2rem;
    background: #ffffff;
    color: #0b2a4a;
    overflow-x: hidden;
}

.home-organic-page::before,
.home-organic-page::after {
    display: none;
}

.home-organic-page::-webkit-scrollbar {
    width: 14px;
}

.home-organic-page::-webkit-scrollbar-track {
    background: #f2f4f7;
}

.home-organic-page::-webkit-scrollbar-thumb {
    border: 4px solid #f2f4f7;
    border-radius: 999px;
    background: #0b4f86;
}

.home-organic-page .home-topbar {
    position: sticky;
    top: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: 10.4rem 1fr auto;
    align-items: center;
    gap: 1.5rem;
    min-height: 5rem;
    padding: 0.85rem clamp(1rem, 4vw, 4rem);
    border-bottom: 1px solid #e5e9ef;
    background: #f4f6f8;
    backdrop-filter: none;
    overflow: visible;
}

.home-organic-page .home-logo {
    width: 8rem;
    height: auto;
    filter: none;
}

.home-organic-page .home-brand {
    position: relative;
    width: 10.4rem;
    height: 3.25rem;
    z-index: 2;
    overflow: visible;
}

.home-organic-page .home-logo {
    position: absolute;
    left: -2rem;
    top: -6.2rem;
    width: clamp(16rem, 19vw, 24rem);
    max-width: none;
    transform: none;
    transform-origin: left center;
    transition: left 260ms ease, top 260ms ease, width 260ms ease, transform 260ms ease;
}

.home-organic-page.home-logo-scrolled .home-logo {
    left: 0;
    top: 50%;
    width: 10.4rem;
    transform: translateY(-50%);
}

.home-organic-page .home-nav {
    display: flex;
    justify-content: center;
    gap: clamp(1rem, 3vw, 2rem);
}

.home-organic-page .home-nav a,
.home-organic-page .home-login-button {
    color: #254966;
    font-size: 0.95rem;
    font-weight: 800;
    text-decoration: none;
}

.home-organic-page .home-login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 5.5rem;
    padding: 0.52rem 1rem;
    border: 1px solid #d8dee7;
    border-radius: 999px;
    background: #ffffff;
}

.home-organic-main {
    position: relative;
    width: min(1120px, calc(100% - 2rem));
    display: grid;
    gap: clamp(4rem, 8vw, 7rem);
    margin: 0 auto;
    padding: clamp(4rem, 8vw, 7rem) 0 clamp(3rem, 7vw, 6rem);
}

.home-scroll-rail {
    position: fixed;
    top: 9rem;
    right: clamp(1rem, 3vw, 2.5rem);
    z-index: 10;
    display: grid;
    gap: 0.8rem;
    padding: 0.65rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 14px 34px rgba(11, 42, 74, 0.08);
}

.home-scroll-rail span {
    width: 0.45rem;
    height: 2.15rem;
    border-radius: 999px;
    background: #d4dce7;
}

.home-scroll-rail span:first-child {
    background: #0b4f86;
}

.home-organic-hero {
    display: grid;
    gap: 1.2rem;
    max-width: 52rem;
}

.home-organic-page .home-eyebrow,
.home-section-number,
.home-organic-feature-row article span,
.home-organic-price-grid article > span {
    color: #0b7f73;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

/* Organic home content updates */
.home-scroll-rail {
    display: none !important;
}

.home-section-number {
    display: none;
}

.home-organic-feature-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-icon {
    position: relative;
    display: inline-block;
    width: 2.6rem;
    height: 2.6rem;
    margin-bottom: 0.2rem;
    border: 1px solid #dbe4ee;
    border-radius: 0.75rem;
    background: #f6f8fb;
}

.home-feature-icon-speed::before {
    content: "";
    position: absolute;
    left: 0.55rem;
    top: 0.65rem;
    width: 1.45rem;
    height: 1.45rem;
    border: 0.22rem solid #0b4f86;
    border-bottom-color: transparent;
    border-radius: 999px 999px 0 0;
}

.home-feature-icon-speed::after {
    content: "";
    position: absolute;
    left: 1.24rem;
    top: 1.42rem;
    width: 0.72rem;
    height: 0.18rem;
    border-radius: 999px;
    background: #0b7f73;
    transform: rotate(-36deg);
    transform-origin: left center;
}

.home-feature-icon-safe-package::before {
    content: "";
    position: absolute;
    left: 0.62rem;
    top: 0.78rem;
    width: 1.35rem;
    height: 1.2rem;
    border: 0.2rem solid #0b4f86;
    border-radius: 0.22rem;
}

.home-feature-icon-safe-package::after {
    content: "";
    position: absolute;
    left: 1.08rem;
    top: 0.38rem;
    width: 0.72rem;
    height: 0.72rem;
    border: 0.18rem solid #0b7f73;
    border-bottom: 0;
    border-radius: 999px 999px 0 0;
}

@media (max-width: 1100px) {
    .home-organic-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .home-organic-feature-row {
        grid-template-columns: 1fr;
    }
}

/* Final hero alignment fix: top aligned text and image */
.home-organic-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(26rem, 1.14fr);
    align-items: start;
    column-gap: clamp(3rem, 7vw, 6rem);
    row-gap: 1.2rem;
    max-width: none;
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
    min-width: 0;
}

.home-organic-hero h1 {
    max-width: 38rem;
    font-size: clamp(3rem, 5.6vw, 5.85rem);
}

.home-organic-hero p {
    max-width: 34rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    width: 100%;
    margin-top: 0.35rem;
}

@media (max-width: 1180px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
        column-gap: 2.5rem;
    }

    .home-organic-hero h1 {
        font-size: clamp(2.8rem, 5.2vw, 5rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-map-visual {
        grid-row: auto;
        margin-top: 0.75rem;
    }
}

/* Absolute final hero layout guard. */
.home-organic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
    align-items: start;
    column-gap: clamp(3.5rem, 7vw, 6.5rem);
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-organic-hero h1 {
    max-width: 32rem;
    font-size: clamp(2.8rem, 4.75vw, 4.95rem);
    overflow-wrap: normal;
}

.home-organic-hero p {
    max-width: 31rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: start;
    width: min(120%, 40.8rem);
    margin-top: 0;
    position: relative;
    z-index: 0;
}

@media (max-width: 1120px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
        column-gap: 2.5rem;
    }

    .home-organic-hero h1 {
        max-width: 30rem;
        font-size: clamp(2.65rem, 4.45vw, 4.35rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-hero h1,
    .home-organic-hero p {
        max-width: 42rem;
    }

    .home-organic-map-visual {
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Alternating visual sections after the hero. */
.home-visual-section {
    display: grid;
    grid-template-columns: minmax(20rem, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    border-top: 1px solid #e7ecf2;
}

.home-visual-section .home-organic-section-copy {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}

.home-visual-section h2 {
    margin: 0;
    color: #08213b;
    font-size: clamp(2rem, 4.8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.home-visual-section p {
    margin: 0;
    color: #53687d;
    font-size: clamp(1.04rem, 1.45vw, 1.18rem);
    line-height: 1.7;
}

.home-visual-left .home-organic-visual {
    grid-column: 1;
}

.home-visual-left .home-organic-section-copy {
    grid-column: 2;
}

.home-visual-right .home-organic-section-copy {
    grid-column: 1;
}

.home-visual-right .home-organic-visual {
    grid-column: 2;
}

.home-family-safety-visual,
.home-organic-safety-visual,
.home-ai-patterns-visual,
.home-implementation-visual {
    width: 100%;
}

@media (max-width: 980px) {
    .home-visual-section {
        grid-template-columns: 1fr;
    }

    .home-visual-left .home-organic-visual,
    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy,
    .home-visual-right .home-organic-visual {
        grid-column: 1;
    }

    .home-visual-right .home-organic-visual {
        grid-row: 1;
    }
}

/* Final visual sizing and mobile ordering pass. */
.home-organic-main {
    width: min(1280px, calc(100% - 2rem));
}

.home-organic-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(30rem, 1.18fr);
}

.home-organic-map-visual {
    width: min(100%, 44rem);
}

.home-visual-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.home-visual-section .home-organic-section-copy {
    gap: 0;
}

.home-organic-section h2 + p,
.home-visual-section h2 + p,
.home-organic-contact h2 + p {
    margin-top: clamp(0.95rem, 1.8vw, 1.45rem);
}

.home-visual-left .home-organic-visual,
.home-visual-right .home-organic-visual {
    width: min(130%, 46rem);
}

.home-visual-left .home-organic-visual {
    justify-self: start;
}

.home-visual-right .home-organic-visual {
    justify-self: end;
}

.home-visual-left .home-organic-section-copy {
    justify-self: end;
}

.home-visual-right .home-organic-section-copy {
    justify-self: start;
}

@media (max-width: 1120px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    }

    .home-organic-map-visual {
        width: min(100%, 39rem);
    }

    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        width: min(115%, 40rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero,
    .home-visual-section {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow {
        grid-row: 2;
    }

    .home-organic-hero h1 {
        grid-row: 3;
    }

    .home-organic-hero p {
        grid-row: 4;
    }

    .home-organic-map-visual {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }

    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-self: stretch;
    }

    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy {
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
    }
}

/* Alert team visual and remaining feature icons. */
.home-alert-team-visual {
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #f6f8fb;
    box-shadow: 0 18px 44px rgba(11, 42, 74, 0.05);
}

.home-feature-icon-record::before {
    content: "";
    position: absolute;
    left: 0.72rem;
    top: 0.5rem;
    width: 1.16rem;
    height: 1.58rem;
    border: 0.2rem solid #0b4f86;
    border-radius: 0.22rem;
    background: #ffffff;
}

.home-feature-icon-record::after {
    content: "";
    position: absolute;
    left: 0.98rem;
    top: 0.92rem;
    width: 0.7rem;
    height: 0.58rem;
    border-top: 0.16rem solid #0b7f73;
    border-bottom: 0.16rem solid #0b7f73;
}

.home-feature-icon-flow::before {
    content: "";
    position: absolute;
    left: 0.5rem;
    top: 0.75rem;
    width: 1.55rem;
    height: 1.15rem;
    border: 0.2rem solid #0b4f86;
    border-left-color: transparent;
    border-radius: 999px;
}

.home-feature-icon-flow::after {
    content: "";
    position: absolute;
    right: 0.43rem;
    top: 0.64rem;
    width: 0.5rem;
    height: 0.5rem;
    border-top: 0.2rem solid #0b7f73;
    border-right: 0.2rem solid #0b7f73;
    transform: rotate(45deg);
}

/* Hard stop for hero overlap: real columns, contained title, contained image. */
.home-organic-hero {
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
    align-items: start;
    column-gap: clamp(3.5rem, 7vw, 6.5rem);
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
}

.home-organic-hero h1 {
    max-width: 32rem;
    font-size: clamp(2.8rem, 4.75vw, 4.95rem);
    overflow-wrap: normal;
}

.home-organic-hero p {
    max-width: 31rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: start;
    width: min(100%, 34rem);
    margin-top: 0;
    position: relative;
    z-index: 0;
}

@media (max-width: 1120px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
        column-gap: 2.5rem;
    }

    .home-organic-hero h1 {
        max-width: 30rem;
        font-size: clamp(2.65rem, 4.45vw, 4.35rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-hero h1,
    .home-organic-hero p {
        max-width: 42rem;
    }

    .home-organic-map-visual {
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Hero image separation and family safety section */
.home-organic-hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(28rem, 1.08fr);
    align-items: start;
}

.home-organic-hero h1 {
    max-width: 36rem;
    font-size: clamp(2.9rem, 5.1vw, 5.45rem);
}

.home-organic-map-visual {
    grid-row: 1 / span 3;
    margin-top: 0;
}

.home-family-safety-section {
    align-items: center;
}

.home-family-safety-visual {
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #f6f8fb;
    box-shadow: 0 18px 44px rgba(11, 42, 74, 0.05);
}

@media (max-width: 1100px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-map-visual {
        grid-row: auto;
    }
}

.home-organic-hero h1 {
    margin: 0;
    color: #08213b;
    font-size: clamp(3.2rem, 8vw, 7rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
}

.home-organic-hero p {
    margin: 0;
    max-width: 40rem;
    color: #53687d;
    font-size: clamp(1.08rem, 1.7vw, 1.28rem);
    line-height: 1.68;
}

.home-organic-section,
.home-organic-pricing,
.home-organic-contact {
    scroll-margin-top: 6rem;
}

.home-organic-split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
    gap: clamp(1.5rem, 5vw, 4rem);
    padding-top: 1.25rem;
    border-top: 1px solid #e7ecf2;
}

.home-organic-split h2,
.home-organic-section-heading h2,
.home-organic-contact h2 {
    margin: 0.45rem 0 0;
    color: #08213b;
    font-size: clamp(2rem, 4.8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.home-organic-split p,
.home-organic-contact p {
    margin: 0;
    color: #53687d;
    font-size: clamp(1.04rem, 1.45vw, 1.18rem);
    line-height: 1.7;
}

.home-organic-feature-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #e7ecf2;
}

.home-organic-feature-row article {
    display: grid;
    align-content: start;
    gap: 0.65rem;
    min-height: 14rem;
    padding: clamp(1.25rem, 3vw, 2rem);
    background: #ffffff;
}

.home-organic-feature-row h3 {
    margin: 0;
    color: #08213b;
    font-size: clamp(1.35rem, 2.4vw, 2.1rem);
    font-weight: 900;
    line-height: 1.08;
}

.home-organic-feature-row p {
    margin: 0;
    color: #53687d;
    line-height: 1.6;
}

.home-organic-pricing {
    display: grid;
    gap: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid #e7ecf2;
}

.home-organic-price-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.home-organic-price-grid article {
    display: grid;
    align-content: start;
    gap: 0.7rem;
    min-height: 13rem;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #ffffff;
    box-shadow: 0 18px 44px rgba(11, 42, 74, 0.05);
}

.home-organic-price-grid h3 {
    margin: 0;
    color: #08213b;
    font-size: clamp(1.75rem, 3vw, 2.45rem);
    font-weight: 900;
    line-height: 1;
}

.home-organic-price-grid h3 span {
    color: #6b7c8f;
    font-size: 0.95rem;
}

.home-organic-price-grid p {
    margin: 0;
    color: #53687d;
    line-height: 1.6;
}

.home-pricing-calculator {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 1.05fr) minmax(17rem, 0.85fr);
    gap: clamp(1rem, 2.6vw, 1.5rem);
    align-items: start;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    border: 1px solid #dce5ef;
    border-radius: 1rem;
    background: #f8fafc;
}

.home-pricing-calculator-copy {
    display: grid;
    gap: 0.65rem;
}

.home-pricing-calculator-copy h3 {
    margin: 0;
    color: #08213b;
    font-size: clamp(1.45rem, 2.3vw, 2.2rem);
    font-weight: 900;
    line-height: 1.04;
}

.home-pricing-calculator-copy p {
    margin: 0;
    color: #53687d;
    line-height: 1.6;
}

.home-calculator-fields {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.home-calculator-fields label {
    display: grid;
    gap: 0.4rem;
    min-width: 0;
}

.home-calculator-fields label:first-child {
    grid-column: 1 / -1;
}

.home-calculator-fields span,
.home-calculator-result dt,
.home-calculator-result > div > span {
    color: #53687d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-calculator-fields input {
    width: 100%;
    min-height: 2.9rem;
    padding: 0.65rem 0.8rem;
    border: 1px solid #cbd7e4;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #08213b;
    font: inherit;
    font-weight: 700;
}

.home-calculator-fields input:focus {
    border-color: #0f766e;
    outline: 3px solid rgba(15, 118, 110, 0.16);
}

.home-calculator-result {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid #cbd7e4;
    border-radius: 0.85rem;
    background: #ffffff;
}

.home-calculator-result strong {
    display: block;
    margin-top: 0.25rem;
    color: #08213b;
    font-size: clamp(1.45rem, 2.8vw, 2.25rem);
    font-weight: 900;
    line-height: 1.05;
}

.home-calculator-result p {
    margin: 0.35rem 0 0;
    color: #53687d;
    line-height: 1.45;
}

.home-calculator-result dl {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}

.home-calculator-result dl > div {
    display: grid;
    gap: 0.2rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e7ecf2;
}

.home-calculator-result dd {
    margin: 0;
    color: #08213b;
    font-size: 1.35rem;
    font-weight: 900;
}

.home-calculator-note {
    padding: 0.65rem 0.75rem;
    border-radius: 0.65rem;
    background: #ecfeff;
    color: #0f766e !important;
    font-weight: 750;
}

.home-organic-implementation {
    padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

.home-organic-contact {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
    gap: clamp(1.25rem, 4vw, 2.25rem);
    align-items: start;
    padding: clamp(2rem, 5vw, 3.5rem);
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #f6f8fb;
}

.home-contact-copy {
    display: grid;
    gap: 0.75rem;
}

.home-contact-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem;
    padding: clamp(1rem, 2.5vw, 1.25rem);
    border: 1px solid #dce5ef;
    border-radius: 0.85rem;
    background: #ffffff;
}

.home-contact-form label {
    display: grid;
    gap: 0.38rem;
    min-width: 0;
}

.home-contact-form label:first-of-type,
.home-contact-form label:nth-of-type(2) {
    grid-column: 1 / -1;
}

.home-contact-form span {
    color: #53687d;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-contact-form input,
.home-contact-form select {
    width: 100%;
    min-height: 2.8rem;
    padding: 0.62rem 0.75rem;
    border: 1px solid #cbd7e4;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #08213b;
    font: inherit;
    font-weight: 700;
}

.home-contact-form input:focus,
.home-contact-form select:focus {
    border-color: #0f766e;
    outline: 3px solid rgba(15, 118, 110, 0.16);
}

.home-contact-form .validation-message {
    font-size: 0.8rem;
    line-height: 1.35;
}

.home-contact-form button {
    grid-column: 1 / -1;
    min-height: 2.9rem;
    border: none;
    border-radius: 0.65rem;
    background: #0f766e;
    color: #ffffff;
    font: inherit;
    font-weight: 900;
}

.home-contact-form button:disabled {
    cursor: wait;
    opacity: 0.68;
}

.home-contact-status {
    grid-column: 1 / -1;
    margin: 0;
    padding: 0.7rem 0.8rem;
    border-radius: 0.65rem;
    font-weight: 750;
    line-height: 1.45;
}

.home-contact-status.success {
    background: #ecfeff;
    color: #0f766e;
}

.home-contact-status.error {
    background: #fef2f2;
    color: #991b1b;
}

.home-organic-page .home-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: min(1120px, calc(100% - 2rem));
    gap: 0.75rem;
    margin: 0 auto;
    padding: 1rem 0 1.75rem;
    color: #7b8794;
    font-size: 0.88rem;
}

@media (max-width: 960px) {
    .home-organic-page {
        margin: -1.1rem -1rem 0 -1rem;
    }

    .home-organic-page .home-topbar {
        grid-template-columns: 1fr auto;
        min-height: 4.4rem;
        padding: 0.85rem 1rem;
    }

    .home-organic-page .home-brand {
        width: min(42vw, 10.4rem);
        height: 2.8rem;
    }

    .home-organic-page .home-logo {
        left: -4em;
        top: -5em;
        width: min(78vw, 21rem);
    }

    .home-organic-page.home-logo-scrolled .home-logo {
        left: 0;
        top: 50%;
        width: min(42vw, 10.4rem);
        transform: translateY(-50%);
    }

    .home-organic-page .home-nav {
        display: none;
    }

    .home-organic-main {
        gap: 3.5rem;
        padding-top: 3rem;
    }

    .home-scroll-rail {
        display: none;
    }

    .home-organic-split,
    .home-organic-feature-row,
    .home-organic-price-grid {
        grid-template-columns: 1fr;
    }

    .home-pricing-calculator {
        grid-template-columns: 1fr;
    }

    .home-organic-contact,
    .home-contact-form {
        grid-template-columns: 1fr;
    }

    .home-contact-form label:first-of-type,
    .home-contact-form label:nth-of-type(2) {
        grid-column: 1;
    }

    .home-organic-feature-row article,
    .home-organic-price-grid article {
        min-height: auto;
    }
}

/* Final copy/visual consistency pass */
.home-organic-hero {
    grid-template-columns: minmax(0, 0.85fr) minmax(20rem, 1.15fr);
    align-items: center;
    max-width: none;
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
}

.home-organic-hero h1 {
    font-size: clamp(3rem, 6.6vw, 6.3rem);
}

.home-organic-hero p + p {
    color: #254966;
    font-weight: 650;
}

.home-organic-visual {
    margin: 0;
}

.home-organic-visual img {
    display: block;
    width: 100%;
    height: auto;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #f6f8fb;
    box-shadow: 0 24px 58px rgba(11, 42, 74, 0.08);
}

.home-organic-section-copy {
    display: grid;
    gap: 1.25rem;
}

.home-organic-safety-visual {
    overflow: hidden;
    border: 1px solid #e7ecf2;
    border-radius: 1rem;
    background: #f6f8fb;
}

.home-organic-feature-row {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-feature-icon + span {
    margin-top: 0.1rem;
}

.home-organic-price-grid h3 span {
    margin-left: 0.1rem;
}

.home-organic-contact {
    background:
        linear-gradient(135deg, #f6f8fb, #ffffff);
}

.home-organic-contact h2 {
    max-width: 50rem;
}

.home-organic-contact p {
    max-width: 42rem;
}

@media (max-width: 1100px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-map-visual {
        grid-row: auto;
    }

    .home-organic-feature-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 960px) {
    .home-organic-feature-row {
        grid-template-columns: 1fr;
    }
}

/* Final hero alignment fix: top aligned text and image */
.home-organic-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(26rem, 1.14fr);
    align-items: start;
    column-gap: clamp(3rem, 7vw, 6rem);
    row-gap: 1.2rem;
    max-width: none;
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
    min-width: 0;
}

.home-organic-hero h1 {
    max-width: 38rem;
    font-size: clamp(3rem, 5.6vw, 5.85rem);
}

.home-organic-hero p {
    max-width: 34rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 4;
    align-self: start;
    width: 100%;
    margin-top: 0.35rem;
}

@media (max-width: 1180px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 1.1fr);
        column-gap: 2.5rem;
    }

    .home-organic-hero h1 {
        font-size: clamp(2.8rem, 5.2vw, 5rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-map-visual {
        grid-row: auto;
        margin-top: 0.75rem;
    }
}

/* Absolute final hero layout guard. */
.home-organic-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(22rem, 0.95fr);
    align-items: start;
    column-gap: clamp(3.5rem, 7vw, 6.5rem);
}

.home-organic-hero .home-eyebrow,
.home-organic-hero h1,
.home-organic-hero p {
    grid-column: 1;
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.home-organic-hero h1 {
    max-width: 32rem;
    font-size: clamp(2.8rem, 4.75vw, 4.95rem);
    overflow-wrap: normal;
}

.home-organic-hero p {
    max-width: 31rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    justify-self: end;
    align-self: start;
    width: min(100%, 34rem);
    margin-top: 0;
    position: relative;
    z-index: 0;
}

@media (max-width: 1120px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.85fr);
        column-gap: 2.5rem;
    }

    .home-organic-hero h1 {
        max-width: 30rem;
        font-size: clamp(2.65rem, 4.45vw, 4.35rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p,
    .home-organic-map-visual {
        grid-column: 1;
    }

    .home-organic-hero h1,
    .home-organic-hero p {
        max-width: 42rem;
    }

    .home-organic-map-visual {
        grid-row: auto;
        justify-self: stretch;
        width: 100%;
        margin-top: 0.5rem;
    }
}

/* Absolute final alternating visual sections guard. */
.home-visual-section {
    display: grid;
    grid-template-columns: minmax(20rem, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: clamp(2rem, 6vw, 5rem);
    padding-top: clamp(1.5rem, 4vw, 2.5rem);
    border-top: 1px solid #e7ecf2;
}

.home-visual-section .home-organic-section-copy {
    display: grid;
    gap: 1rem;
    max-width: 34rem;
}

.home-visual-section h2 {
    margin: 0;
    color: #08213b;
    font-size: clamp(2rem, 4.8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: 0;
}

.home-visual-section p {
    margin: 0;
    color: #53687d;
    font-size: clamp(1.04rem, 1.45vw, 1.18rem);
    line-height: 1.7;
}

.home-visual-left .home-organic-visual {
    grid-column: 1;
}

.home-visual-left .home-organic-section-copy {
    grid-column: 2;
}

.home-visual-right .home-organic-section-copy {
    grid-column: 1;
}

.home-visual-right .home-organic-visual {
    grid-column: 2;
}

.home-family-safety-visual,
.home-organic-safety-visual {
    width: 100%;
}

@media (max-width: 980px) {
    .home-visual-section {
        grid-template-columns: 1fr;
    }

    .home-visual-left .home-organic-visual,
    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy,
    .home-visual-right .home-organic-visual {
        grid-column: 1;
    }

    .home-visual-right .home-organic-visual {
        grid-row: 1;
    }
}

/* Final visual sizing and mobile ordering pass. */
.home-organic-main {
    width: min(1280px, calc(100% - 2rem));
}

.home-organic-hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(30rem, 1.18fr);
}

.home-organic-map-visual {
    width: min(100%, 44rem);
}

.home-visual-section {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: clamp(2.5rem, 6vw, 6rem);
}

.home-visual-section .home-organic-section-copy {
    gap: 0;
}

.home-organic-section h2 + p,
.home-visual-section h2 + p,
.home-organic-contact h2 + p {
    margin-top: clamp(0.95rem, 1.8vw, 1.45rem);
}

.home-visual-left .home-organic-visual,
.home-visual-right .home-organic-visual {
    width: min(130%, 46rem);
}

.home-visual-left .home-organic-visual {
    justify-self: start;
}

.home-visual-right .home-organic-visual {
    justify-self: end;
}

.home-visual-left .home-organic-section-copy {
    justify-self: end;
}

.home-visual-right .home-organic-section-copy {
    justify-self: start;
}

@media (max-width: 1120px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 0.9fr) minmax(24rem, 1.1fr);
    }

    .home-organic-map-visual {
        width: min(100%, 39rem);
    }

    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        width: min(115%, 40rem);
    }
}

@media (max-width: 980px) {
    .home-organic-hero,
    .home-visual-section {
        grid-template-columns: 1fr;
    }

    .home-organic-hero .home-eyebrow {
        grid-row: 2;
    }

    .home-organic-hero h1 {
        grid-row: 3;
    }

    .home-organic-hero p {
        grid-row: 4;
    }

    .home-organic-map-visual {
        grid-row: 1;
        grid-column: 1;
        width: 100%;
        justify-self: stretch;
    }

    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        grid-column: 1;
        grid-row: 1;
        width: 100%;
        justify-self: stretch;
    }

    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy {
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
    }
}

/* Final containment guard for enlarged visuals. */
.home-visual-left .home-organic-visual,
.home-visual-right .home-organic-visual {
    width: min(100%, 46rem);
    max-width: 100%;
}

.home-visual-left .home-organic-section-copy,
.home-visual-right .home-organic-section-copy {
    width: min(100%, 35rem);
}

/* Final section rhythm adjustment. */
.home-visual-section {
    align-items: start;
    padding-top: clamp(2.25rem, 4.5vw, 3.75rem);
}

.home-alert-section {
    padding-top: clamp(1.5rem, 3vw, 2.25rem);
}

.home-visual-section .home-organic-section-copy {
    align-self: start;
    padding-top: clamp(0.15rem, 0.8vw, 0.65rem);
}

.home-alert-section .home-organic-section-copy {
    padding-top: 0;
}

.home-visual-section h2 + p,
.home-organic-section h2 + p,
.home-organic-contact h2 + p {
    margin-top: clamp(1.15rem, 2vw, 1.65rem);
}

@media (max-width: 980px) {
    .home-visual-section,
    .home-alert-section {
        padding-top: clamp(2rem, 7vw, 3rem);
    }

    .home-visual-section .home-organic-section-copy,
    .home-alert-section .home-organic-section-copy {
        padding-top: 0;
    }

    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        grid-row: 1;
    }

    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy {
        grid-row: 2;
    }
}

/* Final hard layout reset for home sections. */
.home-organic-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(28rem, 1.1fr);
    align-items: start;
    column-gap: clamp(3rem, 6vw, 5.5rem);
    row-gap: 1.1rem;
}

.home-organic-hero .home-eyebrow {
    grid-column: 1;
    grid-row: 1;
}

.home-organic-hero h1 {
    grid-column: 1;
    grid-row: 2;
    max-width: 34rem;
}

.home-organic-hero p {
    grid-column: 1;
    grid-row: 3;
    max-width: 33rem;
}

.home-organic-map-visual {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: start;
    justify-self: end;
    width: min(100%, 43rem);
    margin: 20px 0 0;
}

.home-visual-section {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-top: clamp(2rem, 4vw, 3rem);
}

.home-visual-section .home-organic-visual,
.home-visual-section .home-organic-section-copy {
    grid-row: 1;
    align-self: start;
    margin-top: 0;
    padding-top: 0;
}

.home-visual-left .home-organic-visual {
    grid-column: 1;
    justify-self: start;
}

.home-visual-left .home-organic-section-copy {
    grid-column: 2;
    justify-self: start;
}

.home-visual-right .home-organic-visual {
    grid-column: 2;
    justify-self: end;
}

.home-visual-right .home-organic-section-copy {
    grid-column: 1;
    justify-self: start;
}

.home-visual-section .home-organic-visual {
    width: min(100%, 44rem);
    max-width: 100%;
}

.home-visual-section .home-organic-section-copy {
    width: min(100%, 35rem);
    max-width: 100%;
    gap: 0;
}

.home-visual-section h2 {
    margin: 0;
}

.home-visual-section h2 + p,
.home-organic-section h2 + p,
.home-organic-contact h2 + p {
    margin-top: clamp(1.1rem, 1.7vw, 1.55rem);
}

.home-alert-section,
.home-organic-implementation {
    padding-top: clamp(2rem, 4vw, 3rem);
}

@media (max-width: 980px) {
    .home-organic-hero {
        grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
        column-gap: 2rem;
    }

    .home-organic-hero .home-eyebrow,
    .home-organic-hero h1,
    .home-organic-hero p {
        grid-column: 1;
    }

    .home-organic-map-visual {
        grid-column: 2;
        grid-row: 1 / span 3;
        width: 100%;
    }
}

@media (max-width: 760px) {
    .home-organic-hero,
    .home-visual-section {
        grid-template-columns: 1fr;
    }

    .home-organic-map-visual,
    .home-visual-left .home-organic-visual,
    .home-visual-right .home-organic-visual {
        grid-column: 1;
        grid-row: 1;
        justify-self: stretch;
        width: 100%;
        margin-top: 0;
    }

    .home-organic-hero .home-eyebrow {
        grid-column: 1;
        grid-row: 2;
    }

    .home-organic-hero h1 {
        grid-column: 1;
        grid-row: 3;
    }

    .home-organic-hero p {
        grid-column: 1;
        grid-row: 4;
    }

    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-section-copy {
        grid-column: 1;
        grid-row: 2;
        justify-self: stretch;
    }
}

/* Tablet must stay side-by-side; only phones stack. */
@media (min-width: 761px) and (max-width: 980px) {
    .home-visual-section {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }

    .home-visual-left .home-organic-visual,
    .home-visual-left .home-organic-section-copy,
    .home-visual-right .home-organic-visual,
    .home-visual-right .home-organic-section-copy {
        grid-row: 1;
    }

    .home-visual-left .home-organic-visual {
        grid-column: 1;
    }

    .home-visual-left .home-organic-section-copy {
        grid-column: 2;
    }

    .home-visual-right .home-organic-section-copy {
        grid-column: 1;
    }

    .home-visual-right .home-organic-visual {
        grid-column: 2;
    }
}

/* Final home hero map alignment. */
@media (min-width: 761px) {
    .home-organic-page .home-organic-hero > .home-organic-map-visual {
        margin-top: 48px;
    }
}

@media (max-width: 760px) {
    .home-organic-page .home-organic-hero > .home-organic-map-visual {
        margin-top: 0;
    }
}

.operator-dialog {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100dvh;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #f8fafc;
    color: #182230;
}
.operator-dialog[open] { display: flex; flex-direction: column; }
.operator-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid #dbe3ec;
    background: #fff;
    flex-shrink: 0;
}
.operator-dialog-body { overflow: auto; flex: 1; padding: 1.5rem; min-height: 0; }
.operator-position-list { display: grid; gap: .75rem; }
.operator-position-list .debug-position-row { background: #fff; padding: 1rem; border: 1px solid #dbe3ec; border-radius: .5rem; }
.operator-report-table { min-width: 900px; }
.operator-unplated-report { margin-top: 1.5rem; padding: 1rem; border: 1px solid #dbe3ec; border-radius: .5rem; }
.operator-unplated-report summary { cursor: pointer; font-weight: 600; }

.browser-notification-control { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .6rem 1rem; background: #fff; border-bottom: 1px solid #dbe3ec; }
.browser-notification-control[hidden] { display: none; }

/* The live map fills the viewport; operator controls float above it. */
.live-shell {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
}
.live-shell > .live-map-container {
    position: absolute;
    inset: 0;
    z-index: 0;
    min-height: 0;
}
.live-shell .live-map {
    min-height: 0;
    height: 100%;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.live-shell > .live-sidebar {
    position: absolute;
    top: max(.75rem, env(safe-area-inset-top));
    left: max(.75rem, env(safe-area-inset-left));
    z-index: 800;
    width: min(25rem, calc(100% - 4.5rem));
    max-height: calc(100% - 1.5rem);
    padding: .75rem;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 1.25rem;
    background: rgba(235, 241, 248, .55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, .14);
}
.live-sidebar > .status-card,
.live-sidebar > .vehicle-card {
    flex-shrink: 0;
    background: rgba(255, 255, 255, .9);
}
.live-shell .leaflet-top.leaflet-left {
    left: auto;
    right: 0;
}
.live-shell .leaflet-top.leaflet-left .leaflet-control {
    margin-left: 0;
    margin-right: 10px;
}
.live-map-filters {
    position: absolute;
    top: max(.75rem, env(safe-area-inset-top));
    right: max(.75rem, env(safe-area-inset-right));
    z-index: 800;
    width: 22rem;
    padding: .45rem;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 8px 24px rgba(15, 23, 42, .14);
}
@media (min-width: 961px) {
    .live-shell .leaflet-top.leaflet-left {
        top: calc(max(.75rem, env(safe-area-inset-top)) + 3.5rem);
    }
}
@media (max-width: 960px) {
    .live-map-filters {
        display: none;
    }
}
@media (max-width: 640px) {
    .live-shell > .live-sidebar {
        top: max(.5rem, env(safe-area-inset-top));
        left: max(.5rem, env(safe-area-inset-left));
        width: min(22rem, calc(100% - 4rem));
        max-height: 65%;
        padding: .5rem;
        gap: .65rem;
    }
}

.persistent-speed-alerts {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 11000;
    width: min(24rem, calc(100vw - 2rem));
    max-height: calc(100dvh - 2rem);
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: .65rem;
}
.persistent-speed-alerts article {
    padding: 1rem;
    background: #fff;
    color: #7f1d1d;
    border: 2px solid #dc2626;
    border-radius: .75rem;
    box-shadow: 0 4px 18px #0004;
}
.persistent-speed-alerts p { margin: .5rem 0; }
.persistent-speed-alerts time { display: block; font-size: .85rem; }
.persistent-speed-alerts button { margin-top: .75rem; padding: .35rem .7rem; }

.leaflet-tooltip.map-tag-number {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    color: #082f49;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 0 2px #fff, 0 0 3px #fff;
    pointer-events: none;
}
.leaflet-tooltip.map-tag-number::before { display: none; }
