﻿/* =========================================================
   PUHTOLA - STYLES

   One light-first stylesheet. Every colour comes from a token
   in :root, and the dark aurora look only overrides those tokens,
   so the theme toggle can never leave a hard-coded colour behind.

   Order matters: tokens, base, layout, components, then the
   responsive and motion blocks at the end, where the last rule
   with a given specificity wins.
   ========================================================= */

/* =========================================================
   1. DESIGN TOKENS
   ========================================================= */

:root {
    color-scheme: light;

    /* Automotive studio: white body panels, black ink, hot orange. */
    --bg: #ffffff;
    --bg-glow-a: rgba(215, 25, 32, .10);
    --bg-glow-b: rgba(12, 13, 14, .05);
    --panel: rgba(255, 255, 255, .92);
    --surface: #ffffff;
    --surface-2: #f4f4f6;
    --surface-3: #e9eaec;

    /* Black ink on white: crisp, technical, legible. */
    --text: #0c0d0e;
    --text-soft: #3c4045;
    --muted: #6d7177;

    /* Black rules + signal orange accent. */
    --line: rgba(12, 13, 14, .14);
    --line-strong: rgba(12, 13, 14, .32);
    --accent: #d71920;
    --accent-bright: #ed2931;
    --accent-ink: #ffffff;
    --accent-soft: rgba(215, 25, 32, .12);
    --accent-glow: rgba(215, 25, 32, .28);

    /* semantic */
    --ok: #1e7a3f;
    --ok-soft: rgba(30, 122, 63, .12);
    --warn: #ac7d18;
    --danger: #c22b2b;
    --danger-soft: rgba(194, 43, 43, .12);

    /* Flat, mechanical elevation. */
    --shadow-sm: 0 2px 10px rgba(12, 13, 14, .07);
    --shadow-md: 0 14px 34px rgba(12, 13, 14, .11);
    --shadow-lg: 0 28px 70px rgba(12, 13, 14, .16);
    --ring: 0 0 0 3px rgba(255, 106, 0, .32);

    --radius: 10px;
    --ease: cubic-bezier(.2, .8, .2, 1);
    --speed: .22s;
}


/* =========================================================
   2. BASE
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    height: 100dvh;
    /* DIN-flavoured technical stack: Bahnschrift/DIN Alternate first so the
       workshop-console look lands on Windows/macOS, Inter keeps the rest. */
    font-family: "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 14% 6%, var(--bg-glow-a), transparent 46%),
        radial-gradient(ellipse at 88% 58%, var(--bg-glow-b), transparent 52%),
        var(--bg);
    background-attachment: fixed;
    /* The bot is a screen, not a document: the page never scrolls and the
       console scrolls inside itself, so the composer is always reachable. */
    overflow: hidden;
    transition: background-color .35s var(--ease), color .35s var(--ease);
}

button,
input,
select,
textarea {
    font-family: inherit;
    color: inherit;
}

button {
    cursor: pointer;
    border: 0;
    background: none;
}

:focus-visible {
    outline: 2px solid var(--accent-bright);
    outline-offset: 3px;
}

/* =========================================================
   3. LAYOUT
   ========================================================= */

.app {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    min-height: 0;
    overflow: hidden;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: var(--accent-ink);
    font-weight: 900;
    letter-spacing: 1px;
    box-shadow: var(--shadow-sm);
}

.brand-info {
    min-width: 0;
}

.brand-name {
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 3px;
}

.brand-subtitle {
    margin-top: 3px;
    font-size: 9px;
    letter-spacing: 2px;
    color: var(--muted);
}

/* The old top-bar actions, right-aligned inside the console bar. */

.console-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.online-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--ok);
    white-space: nowrap;
}

.online-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 12px currentColor;
}

.main {
    display: flex;
    flex: 1;
    justify-content: flex-end;
    min-height: 0;
    /* Empty space around the floating console must reach the 3D canvas,
       so orbiting Puhto still works. */
    pointer-events: none;
    overflow: hidden;
}

/* =========================================================
   4. STAGE + TELEMETRY
   ========================================================= */

/* The robot is the full-page Aibot background: the canvas always fills the
   viewport and every menu floats above it, so the visitor never leaves
   the Aibot screen. Brand bar top-left, camera menu top-right, hint
   bottom-left, and the booking console docked bottom-right. */

.robot-section {
    position: fixed;
    inset: 0;
    z-index: 0;
    /* The pills need mouse events, but empty stage space must let the
       visitor orbit Puhto. */
    pointer-events: none;
}

.robot-container {
    position: absolute;
    inset: 0;
    pointer-events: auto;
}

.robot-container canvas {
    display: block;
    width: 100%;
    height: 100%;
}

/* Floating menus over the Aibot background: the brand pill docks top-left
   above the bottom-right booking console. Empty stage space stays orbitable. */

.stage-hud {
    position: absolute;
    z-index: 3;
    display: flex;
    pointer-events: none;
}

.stage-hud--hint {
    display: none;
}

.start-overlay {
    position: absolute;
    inset: env(safe-area-inset-top, 0px) env(safe-area-inset-right, 0px)
        env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    z-index: 4;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.start-note {
    position: absolute;
    top: calc(53% + 38px);
    left: 50%;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0;
    transform: translateX(-50%);
    color: var(--text-soft);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.3px;
    text-align: center;
    text-shadow: 0 1px 8px rgba(255, 255, 255, .65);
}

.start-button {
    position: absolute;
    top: 53%;
    left: 50%;
    min-width: 210px;
    min-height: 56px;
    padding: 15px 24px;
    pointer-events: auto;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transform: translate(-50%, -50%);
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 999px;
    box-shadow: 0 14px 34px var(--accent-glow), 0 0 0 8px rgba(215, 25, 32, .10);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.8px;
    transition: transform var(--speed) var(--ease);
}

.start-button:hover {
    transform: translate(-50%, calc(-50% - 2px));
    box-shadow: 0 18px 40px var(--accent-glow), 0 0 0 10px rgba(215, 25, 32, .14);
}

.start-button:active {
    transform: translate(-50%, -50%) scale(.98);
}

.start-button:focus-visible {
    outline: 3px solid var(--accent-bright);
    outline-offset: 6px;
    box-shadow: 0 18px 40px var(--accent-glow), 0 0 0 10px rgba(215, 25, 32, .18);
}

body[data-app-state="request"] .start-overlay {
    display: none;
}

body[data-app-state="request"] .conversation,
body[data-app-state="request"] .console-dock {
    display: none;
}

body[data-app-state="request"] .console-window {
    max-height: calc(100dvh - 36px);
}

.stage-hud--bar {
    top: calc(14px + env(safe-area-inset-top, 0px));
    left: calc(14px + env(safe-area-inset-left, 0px));
    right: auto;
    justify-content: flex-start;
    width: max-content;
    max-width: min(430px, calc(50vw - 24px));
}

/* Brand, camera, and hint overlays stay lightweight while the stage remains
   fully orbitable in the empty space around them. */

.stage-hint {
    margin: 0;
    padding: 8px 12px;
    pointer-events: auto;
    font-size: 11px;
    letter-spacing: .4px;
    color: var(--text-soft);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(14px);
}

.eco-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 26px;
    padding: 5px 8px;
    color: var(--ok);
    background: var(--ok-soft);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
}

.eco-badge span {
    font-size: 13px;
    line-height: 1;
}

.stage-pill {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    max-width: 100%;
    padding: 10px 14px;
    pointer-events: auto;
    color: var(--text);
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(18px);
}

.stage-pill .console-dots {
    flex: none;
}

.stage-hud--bar .stage-pill {
    max-width: min(430px, 100%);
}

.stage-hud--bar .brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
}

.stage-hud--bar .brand-name {
    font-size: 15px;
    letter-spacing: 2px;
}

.stage-hud--bar .brand-subtitle {
    margin-top: 2px;
    font-size: 8px;
    letter-spacing: 1.5px;
}

/* =========================================================
   5. ASSISTANT PANEL + CONSOLE
   ========================================================= */

/* The Aibot screen is the page background. This console only holds the
   booking workspace and floats bottom-right above the robot, so every
   menu stays on the same full-page view. */

.assistant-panel {
    position: relative;
    z-index: 2;
    display: flex;
    flex: none;
    align-items: flex-end;
    justify-content: flex-end;
    width: clamp(430px, 42vw, 520px);
    min-width: 0;
    min-height: 0;
    margin-left: auto;
    padding: 18px;
    overflow: visible;
    background: transparent;
    border-left: 0;
    /* The panel wrapper only positions the floating console: the console
       itself restores pointer events below. */
    pointer-events: none;
}

.console-window {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    max-height: calc(100dvh - 118px);
    overflow: hidden;
    pointer-events: auto;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 22px;
    box-shadow: var(--shadow-lg);
    backdrop-filter: blur(20px);
    transition: background-color .35s var(--ease), border-color .35s var(--ease);
}

/* The wizard progress opens the booking console: only the dots are shared
   with the floating brand pill on the Aibot stage. */

.console-dots {
    display: flex;
    gap: 5px;
}

.console-dots i {
    width: 8px;
    height: 8px;
    background: var(--line-strong);
    border-radius: 50%;
}

.console-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
    padding: 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
}

/* The conversation sits above the scrolling workspace, so Puhto's answer
   and the visitor's question are never scrolled out of sight. */

.conversation {
    display: flex;
    flex: 0 1 auto;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    max-height: 44%;
    padding: 16px 18px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

/* Docked footer: service quick picks, text composer and the live status
   line - everything the visitor acts with stays on screen. */

.console-dock {
    flex: none;
    padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
    background: var(--surface-2);
    border-top: 1px solid var(--line);
    border-radius: 0 0 21px 21px;
}

/* =========================================================
   6. SPEECH BUBBLE
   ========================================================= */

.speech-card {
    position: relative;
    padding: 18px 20px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.assistant-message {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text);
    overflow-wrap: anywhere;
}

.assistant-message:empty {
    display: none;
}

.assistant-message.is-streaming::after {
    content: "";
    display: inline-block;
    width: 2px;
    height: 1em;
    margin-left: 3px;
    vertical-align: text-bottom;
    background: var(--accent);
    animation: caret 1s steps(2, jump-none) infinite;
}

@keyframes caret {
    50% { opacity: 0; }
}

/* The visitor's question reads as a chat bubble on the right, Puhto's
   answer stays in the speech card below it. An empty line is hidden, so
   the first view is just Puhto's welcome. */

.user-message {
    align-self: flex-end;
    max-width: 88%;
    padding: 9px 13px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-soft);
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: 14px 14px 4px 14px;
    overflow-wrap: anywhere;
    animation: wizard-in .28s var(--ease) both;
}

.user-message:empty {
    display: none;
}

/* =========================================================
   7. SERVICES
   ========================================================= */

.service-panel {
    margin-top: 2px;
}

.panel-title {
    margin-bottom: 10px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-soft);
}

.eco-proof {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px;
    padding: 8px 10px;
    color: var(--text-soft);
    background: color-mix(in srgb, var(--ok-soft) 72%, var(--surface) 28%);
    border: 1px solid var(--line);
    border-radius: 12px;
    font-size: 10px;
    line-height: 1.35;
}

.eco-proof-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 24px;
    height: 24px;
    color: var(--ok);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 50%;
    font-size: 13px;
}

.service-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
    gap: 10px;
}

.mobile-service-list {
    grid-auto-rows: 1fr;
}

.service-button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    height: 100%;
    min-height: 180px;
    padding: 10px;
    overflow: hidden;
    text-align: left;
    color: var(--text);
    background: color-mix(in srgb, var(--surface) 92%, var(--surface-2));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
        background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.service-button::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 50% 0%, var(--accent-glow), transparent 70%);
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}

.service-button:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-md);
}

.service-button:hover::before {
    opacity: .5;
}

.service-icon {
    display: grid;
    flex: none;
    place-items: center;
    width: 44px;
    height: 44px;
    font-size: 25px;
    transition: transform .25s var(--ease);
}

.service-thumb {
    display: block;
    width: 100%;
    height: 148px;
    flex: 0 0 148px;
    object-fit: contain;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}

.service-icon svg,
.quick-icon svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.quick-icon {
    display: inline-grid;
    place-items: center;
    width: 16px;
    height: 16px;
}

.service-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.service-content strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
}

.service-content small {
    display: block;
    margin-top: 5px;
    font-size: 11px;
    color: var(--muted);
}

/* Starting price on every card: the number is the selling point,
   so it gets its own accent-coloured line. */

.service-price {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--accent);
}

.service-arrow {
    position: absolute;
    right: 12px;
    bottom: 12px;
    flex: none;
    margin-left: auto;
    font-size: 16px;
    line-height: 1;
    color: var(--accent);
    opacity: .6;
    transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.service-arrow,
.mobile-service-arrow {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: none;
}

.service-arrow i,
.mobile-service-arrow i {
    display: block;
    width: 8px;
    height: 8px;
    background: #36d17a;
    border: 1px solid #a1f4c1;
    border-radius: 50%;
    box-shadow: 0 0 0 2px rgba(54, 209, 122, .18);
}

.service-button:hover .service-arrow {
    transform: translateX(3px);
    opacity: 1;
}

/* The chosen service stays visible and clearly framed. */

.service-button.selected {
    transform: translateY(-2px);
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-color: transparent;
    box-shadow: 0 12px 26px var(--accent-glow);
}

.service-button.selected::before {
    opacity: 0;
}

.service-button.selected .service-content small,
.service-button.selected .service-arrow,
.service-button.selected .service-price {
    color: var(--accent-ink);
    opacity: .85;
}

.service-button.selected .service-icon {
    transform: scale(1.12);
}

/* The pick is confirmed in the corner, so the state never relies on the
   gradient alone. */

.service-button.selected::after {
    content: "Γ£ô";
    position: absolute;
    top: 8px;
    right: 11px;
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    color: var(--accent-ink);
    opacity: .9;
}

/* =========================================================
   8. BOOKING
   ========================================================= */

.booking-panel {
    margin-top: 10px;
    padding: 18px;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.booking-panel label {
    display: block;
    margin: 11px 0 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: var(--muted);
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea {
    width: 100%;
    height: 44px;
    padding: 0 12px;
    font-size: 16px;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.booking-panel textarea {
    height: auto;
    padding: 12px;
    font-size: 15px;
    line-height: 1.5;
    resize: vertical;
}

.booking-panel input:focus,
.booking-panel select:focus,
.booking-panel textarea:focus {
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.booking-panel input[readonly] {
    background: var(--surface-3);
    color: var(--text-soft);
}

.plate-input {
    display: flex;
    width: 100%;
    height: 44px;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.plate-eu-band {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #164b9b;
}

.plate-country {
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .5px;
    line-height: 1;
}

.plate-input input,
.plate-input input:focus {
    flex: 1;
    width: 0;
    min-width: 0;
    height: 100%;
    padding: 0 12px;
    color: var(--text);
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-align: center;
    text-transform: uppercase;
}

.plate-input:focus-within {
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.booking-panel textarea::placeholder {
    color: var(--muted);
    opacity: .75;
}

/* Honeypot: pulled out of the flow and out of reach, but still a real
   field for a bot to fill in. */

.honeypot {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   9. CONTROLS
   ========================================================= */

.controls {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

/* Inside the dock the controls own their spacing, so the quick rail above
   them decides the gap instead. */

.console-dock .controls {
    margin-top: 0;
}

.console-dock .status-message {
    margin-top: 8px;
}

/* SERVICE QUICK PICK - the four services as pills, right above the composer,
   so the choice can be changed from any booking step without scrolling. */

.quick-rail {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.quick-rail::-webkit-scrollbar {
    display: none;
}

.quick-label {
    flex: none;
    margin-right: 2px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--muted);
}

.quick-chip {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 6px;
    min-height: 34px;
    padding: 0 13px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .3px;
    white-space: nowrap;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease),
        background var(--speed) var(--ease), box-shadow var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.quick-chip:hover {
    color: var(--accent);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

.quick-chip.selected {
    color: var(--accent-ink);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-color: transparent;
    box-shadow: 0 6px 16px var(--accent-glow);
}

.quick-icon {
    font-size: 13px;
    line-height: 1;
}

.mic-button {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 52px;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 1px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-radius: 14px;
    box-shadow: 0 8px 22px var(--accent-glow);
    transition: transform var(--speed) var(--ease), background var(--speed) var(--ease);
}

.mic-button.listening {
    background: linear-gradient(135deg, #ff5f72, #ff9a61);
}

.secondary-button {
    height: 52px;
    padding: 0 20px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .5px;
    color: var(--text-soft);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease),
        border-color var(--speed) var(--ease);
}

.secondary-button:hover {
    color: var(--accent);
    border-color: var(--line-strong);
}

.status-message {
    min-height: 14px;
    margin-top: 10px;
    font-size: 11px;
    text-align: center;
    color: var(--muted);
}

.status-message.is-ai {
    color: var(--accent);
    font-weight: 700;
}

/* =========================================================
   10. TEXT CHAT
   ========================================================= */

.chat-row {
    display: flex;
    gap: 8px;
}

.chat-row input {
    flex: 1;
    min-width: 0;
    padding: 12px 14px;
    font-size: 16px;
    color: var(--text);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 12px;
    outline: none;
    transition: border-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
}

.chat-row input:focus {
    border-color: var(--accent);
    box-shadow: var(--ring);
}

.chat-row input::placeholder {
    color: var(--muted);
    opacity: .75;
}

.send-button {
    padding: 12px 18px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-radius: 12px;
    box-shadow: 0 6px 18px var(--accent-glow);
    transition: transform var(--speed) var(--ease);
}

/* =========================================================
   11. WIZARD
   ========================================================= */

.wizard-steps {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 2px 0 14px;
}

/* Pinned directly under the console bar, so the progress is part of the
   header instead of scrolling away with the feed. */

.console-window > .wizard-steps {
    flex: none;
    margin: 0;
    padding: 11px 16px;
    background: var(--surface);
    border-bottom: 1px solid var(--line);
}

.wizard-step {
    display: flex;
    flex: 1;
    align-items: center;
    gap: 7px;
    min-width: 0;
    padding: 8px 10px;
    overflow: hidden;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1.5px;
    white-space: nowrap;
    color: var(--muted);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    transition: color var(--speed) var(--ease), background-color var(--speed) var(--ease),
        border-color var(--speed) var(--ease);
}

.wizard-step i {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0;
    background: var(--surface-3);
    border-radius: 50%;
    transition: background-color var(--speed) var(--ease), color var(--speed) var(--ease);
}

.wizard-step.active {
    color: var(--accent);
    background: var(--accent-soft);
    border-color: var(--line-strong);
}

.wizard-step.active i {
    color: var(--accent-ink);
    background: var(--accent);
}

.wizard-step.done {
    color: var(--ok);
    background: var(--ok-soft);
    border-color: transparent;
}

.wizard-step.done i {
    color: #fff;
    background: var(--ok);
}

.wizard-pane {
    animation: wizard-in .32s var(--ease) both;
}

@keyframes wizard-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(.99);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.wizard-nav {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.wizard-nav .confirm-button {
    flex: 1;
    width: auto;
    margin-top: 0;
}

.wizard-back {
    height: 46px;
    padding: 0 16px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--muted);
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    transition: color var(--speed) var(--ease), border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.wizard-back:hover {
    color: var(--accent);
    border-color: var(--line-strong);
    transform: translateY(-1px);
}

/* =========================================================
   12. BUTTONS
   ========================================================= */

.confirm-button {
    width: 100%;
    height: 46px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #fff;
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    border-radius: 12px;
    box-shadow: 0 8px 20px var(--accent-glow);
    transition: transform var(--speed) var(--ease);
}

/* =========================================================
   13. CONFIRMATION CARD (inline, not a modal)
   ========================================================= */

.confirmation {
    display: block;
}

.confirmation-card {
    width: 100%;
    padding: 24px;
    text-align: center;
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    animation: wizard-in .34s var(--ease) both;
}

.success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    font-size: 26px;
    font-weight: 900;
    color: #fff;
    background: var(--ok);
    border-radius: 50%;
    box-shadow: 0 8px 20px var(--ok-soft);
}

.confirmation-card h2 {
    margin-bottom: 12px;
    font-size: 18px;
    font-weight: 900;
}

.confirmation-card p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-soft);
    overflow-wrap: anywhere;
}

/* =========================================================
   14. AI STATUS + THEME
   ========================================================= */

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    max-width: 100%;
    padding: 5px 11px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1.5px;
    white-space: nowrap;
    color: var(--accent);
    background: var(--accent-soft);
    border: 1px solid var(--line);
    border-radius: 20px;
}

.ai-badge .dot {
    flex: none;
    width: 7px;
    height: 7px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.ai-badge.is-offline {
    color: var(--muted);
}

.ai-badge.is-busy .dot {
    animation: caret .8s steps(2, jump-none) infinite;
}

.theme-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 17px;
    line-height: 1;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease);
}

.theme-toggle:hover {
    transform: translateY(-1px) rotate(-8deg);
    border-color: var(--line-strong);
}

.hidden {
    display: none !important;
}

/* =========================================================
   15. TOUCH, FOCUS AND MOTION PREFERENCES
   ========================================================= */

.service-button,
.mic-button,
.secondary-button,
.send-button,
.confirm-button,
.wizard-back,
.theme-toggle {
    min-height: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.service-button:active,
.mic-button:active,
.secondary-button:active,
.send-button:active,
.confirm-button:active,
.wizard-back:active,
.theme-toggle:active {
    transform: scale(.985);
}

.service-button.selected:active {
    transform: translateY(-2px) scale(.99);
}

.quick-chip {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

.quick-chip:active {
    transform: scale(.97);
}

/* Fat fingers get a full-size pill without bloating the desktop rail. */

@media (pointer: coarse) {

    .quick-chip {
        min-height: 44px;
        padding: 0 15px;
    }

}

/* Hover effects only apply where a real pointer exists. */

@media (hover: none) {

    .service-button:hover,
    .service-button.selected {
        transform: none;
    }

    .service-button:hover::before {
        opacity: 0;
    }

    .service-button.selected::before {
        opacity: 0;
    }

    .service-button:hover .service-arrow {
        transform: none;
        opacity: .6;
    }

    .mic-button:hover {
        filter: none;
    }

    .quick-chip:hover {
        color: var(--text-soft);
        border-color: var(--line);
        transform: none;
    }

    .wizard-back:hover {
        transform: none;
    }

    .theme-toggle:hover {
        transform: none;
    }
}

@media (max-width: 900px) {

    .start-button {
        top: 52%;
        min-width: min(230px, calc(100vw - 48px));
        min-height: 54px;
        font-size: 11px;
    }

    .start-note {
        top: calc(52% + 37px);
        font-size: 8px;
        letter-spacing: 1px;
    }

    body[data-app-state="request"] .console-window {
        max-height: calc(100dvh - 84px);
    }

}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }

    .wizard-pane,
    .confirmation-card {
        animation: none;
    }

    .start-button,
    .start-button:hover,
    .start-button:active {
        transform: translate(-50%, -50%);
        transition: none;
    }

}

/* =========================================================
   16. RESPONSIVE
   ========================================================= */

/* --- tablet + phone: one column, sticky top bar --- */

@media (max-width: 900px) {

    /* The Aibot screen stays the background on a phone too: the booking
       console docks bottom-right above it and the menus stay floating. */

    .main {
        align-items: flex-end;
    }

    .assistant-panel {
        width: 100%;
        align-items: stretch;
        padding:
            0
            calc(12px + env(safe-area-inset-right, 0px))
            calc(12px + env(safe-area-inset-bottom, 0px))
            calc(12px + env(safe-area-inset-left, 0px));
        border-left: 0;
    }

    .stage-hud--bar {
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: calc(10px + env(safe-area-inset-left, 0px));
        max-width: calc(100% - 20px);
    }

    .stage-hud--hint {
        display: none;
    }

    .stage-pill {
        width: 100%;
        padding: 8px 10px;
        gap: 6px 8px;
    }

    .console-window {
        max-height: calc(100dvh - 168px);
        border-radius: 18px;
    }

    .console-window > .wizard-steps {
        padding: 9px 14px;
    }

    .conversation {
        max-height: 46%;
        padding: 14px;
    }

    .console-body {
        gap: 12px;
        padding: 14px;
    }

    .console-dock {
        padding: 12px 14px calc(12px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 0 17px 17px;
    }

    .speech-card {
        padding: 15px;
    }

    .booking-panel {
        padding: 15px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .service-button {
        min-height: 78px;
        padding: 10px;
        gap: 9px;
    }

    .service-icon {
        font-size: 22px;
    }

    .service-content strong {
        font-size: 12px;
    }

    .service-content small {
        margin-top: 3px;
        font-size: 11px;
    }

}

/* --- narrow screens --- */

@media (max-width: 560px) {

    .stage-pill {
        border-radius: 14px;
    }

    /* A phone fits one pane at a time: while the booking form is open the
       pinned conversation keeps only its latest reply, so the fields the
       visitor came to fill in get the rest of the screen. */

    [data-booking] .conversation {
        max-height: min(140px, 26%);
    }

}

/* --- small phones --- */

@media (max-width: 500px) {

    .assistant-panel {
        padding-left: calc(10px + env(safe-area-inset-left, 0px));
        padding-right: calc(10px + env(safe-area-inset-right, 0px));
    }

    .console-window {
        max-height: calc(100dvh - 158px);
    }

    .wizard-steps {
        gap: 5px;
    }

    .wizard-step {
        padding: 7px;
        gap: 5px;
        font-size: 8px;
        letter-spacing: 1px;
    }

    .wizard-step i {
        width: 16px;
        height: 16px;
        font-size: 9px;
    }

    .wizard-nav {
        gap: 6px;
    }

    .wizard-back {
        padding: 0 12px;
        letter-spacing: 1px;
    }

    .brand-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: 13px;
    }

    .brand-name {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .brand-subtitle {
        font-size: 8px;
        letter-spacing: 1px;
    }

    .online-status {
        font-size: 9px;
        letter-spacing: 1px;
    }

    /* All four services stay visible: two cards per row. */

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .service-button {
        min-height: 62px;
        padding: 10px;
        gap: 8px;
    }

    /* The arrow only costs width on a narrow card. */
    .service-arrow {
        display: none;
    }

    .assistant-message {
        font-size: 14px;
    }

    /* The dock never stacks: the composer would be pushed off screen. */

    .controls {
        gap: 7px;
    }

    .mic-button {
        gap: 7px;
        height: 46px;
        padding: 0 10px;
        font-size: 12px;
    }

    .secondary-button {
        height: 46px;
        padding: 0 12px;
        font-size: 12px;
    }

    .send-button {
        padding: 12px 14px;
        letter-spacing: 1px;
    }

}

@media (max-width: 430px) {

    .brand-subtitle {
        display: none;
    }

    .ai-badge {
        padding: 6px;
    }

    .ai-badge span {
        display: none;
    }

    .theme-toggle {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    /* Emoji-only helper buttons: the microphone keeps its label. */

    .secondary-button {
        width: 46px;
        padding: 0;
    }

    .secondary-button .btn-txt {
        display: none;
    }

}

/* --- phone on its side: keep the stage from eating the screen --- */

@media (max-width: 900px) and (max-height: 520px) {

    .start-button {
        top: 50%;
    }

    .conversation {
        max-height: 42%;
    }

    .quick-rail {
        display: none;
    }

}

/* --- desktop: wider console, roomier padding --- */

@media (min-width: 1280px) {

    .assistant-panel {
        width: clamp(470px, 38vw, 580px);
        padding: 22px 24px;
    }

}

/* --- large desktop --- */

@media (min-width: 1700px) {

    .assistant-panel {
        width: clamp(540px, 36vw, 660px);
    }

    .assistant-message {
        font-size: 16px;
    }

    .service-button {
        min-height: 80px;
    }

}

/* --- short windows: hand the height back to the scrolling workspace --- */

@media (max-height: 660px) {

    .quick-rail {
        display: none;
    }

    .conversation {
        max-height: 38%;
    }

    .console-window > .wizard-steps {
        padding-top: 8px;
        padding-bottom: 8px;
    }

    .console-dock {
        padding-top: 10px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    }

    .status-message {
        margin-top: 6px;
        font-size: 10px;
    }

}

/* =========================================================
   17. MOBILE-FIRST VISUAL REFRESH
   =========================================================

   Phones use the assistant as the primary product surface. The robot stays
   as a quiet brand layer, while the booking form gets the height, contrast,
   and touch space it needs. Desktop keeps the immersive stage unchanged.
   ========================================================= */

:root {
    --radius: 18px;
}

.service-button,
.booking-panel,
.speech-card,
.confirmation-card {
    border-radius: var(--radius);
}

.service-button:focus-visible,
.quick-chip:focus-visible,
.mic-button:focus-visible,
.secondary-button:focus-visible,
.send-button:focus-visible,
.confirm-button:focus-visible,
.wizard-back:focus-visible {
    box-shadow: var(--ring), var(--shadow-sm);
}

.booking-panel {
    box-shadow: var(--shadow-sm);
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea,
.chat-row input {
    min-height: 48px;
}

@media (max-width: 900px) {

    body {
        background:
            radial-gradient(circle at 15% 0%, var(--bg-glow-a), transparent 42%),
            linear-gradient(180deg, var(--bg) 0%, var(--surface-2) 100%);
    }

    .main {
        align-items: stretch;
    }

    /* Let the robot remain part of the mobile composition instead of
       disappearing behind an opaque booking sheet. */
    .robot-container {
        opacity: .38;
        pointer-events: none;
    }

    .robot-container canvas {
        filter: none;
    }

    .stage-hud--hint,
    .theme-toggle {
        display: none;
    }

    .stage-hud--bar {
        top: calc(8px + env(safe-area-inset-top, 0px));
        left: calc(12px + env(safe-area-inset-left, 0px));
        right: calc(12px + env(safe-area-inset-right, 0px));
        width: auto;
        max-width: none;
    }

    .stage-hud--bar .stage-pill {
        width: 100%;
        min-height: 54px;
        padding: 7px 10px;
        border-color: transparent;
        background: color-mix(in srgb, var(--surface) 76%, transparent);
        box-shadow: var(--shadow-sm);
        backdrop-filter: blur(18px);
    }

    .assistant-panel {
        width: 100%;
        height: 100%;
        padding: calc(74px + env(safe-area-inset-top, 0px))
            calc(10px + env(safe-area-inset-right, 0px))
            calc(10px + env(safe-area-inset-bottom, 0px))
            calc(10px + env(safe-area-inset-left, 0px));
    }

    .console-window {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 24px;
        box-shadow: 0 18px 55px rgba(12, 13, 14, .14);
    }

    .console-window > .wizard-steps {
        padding: 10px 12px;
    }

    .wizard-step {
        min-height: 42px;
        padding: 7px 8px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .conversation {
        max-height: clamp(112px, 22vh, 180px);
        padding: 12px 14px;
    }

    .speech-card {
        padding: 14px 15px;
    }

    .assistant-message {
        font-size: 14px;
        line-height: 1.52;
    }

    .console-body {
        padding: 14px;
        scroll-padding-block: 16px;
    }

    .console-dock {
        padding: 11px 12px calc(11px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 0 23px 23px;
    }

    .quick-rail {
        margin: 0 -2px 10px;
        padding: 0 2px 2px;
    }

    .quick-chip {
        min-height: 42px;
    }

    .controls {
        gap: 8px;
        margin-top: 0;
    }

    .mic-button,
    .secondary-button {
        height: 48px;
    }

    .chat-row {
        gap: 7px;
        margin-top: 9px;
    }

    .send-button {
        min-width: 84px;
        padding-inline: 13px;
    }

    .service-grid {
        gap: 9px;
    }

    .service-button {
        min-height: 78px;
        padding: 13px;
    }

    .booking-panel {
        padding: 16px;
    }

    .booking-panel label {
        margin-top: 13px;
    }

    .wizard-nav {
        position: sticky;
        bottom: -1px;
        z-index: 1;
        padding-top: 10px;
        background: linear-gradient(180deg, transparent, var(--surface-2) 30%);
    }

}

@media (max-width: 520px) {

    .brand-info {
        display: block;
    }

    .console-actions {
        gap: 6px;
    }

    .online-status,
    .theme-toggle {
        display: none;
    }

    .wizard-step {
        justify-content: center;
        gap: 5px;
        padding-inline: 5px;
        letter-spacing: .8px;
    }

    .wizard-step i {
        width: 20px;
        height: 20px;
    }

    .service-grid {
        grid-template-columns: 1fr 1fr;
    }

    .service-button {
        align-items: flex-start;
        min-height: 86px;
        padding: 12px;
        gap: 9px;
    }

    .service-icon {
        font-size: 23px;
    }

    .service-content strong {
        font-size: 12px;
        line-height: 1.25;
    }

    .service-content small {
        font-size: 10px;
        line-height: 1.3;
    }

    .service-price {
        margin-top: 5px;
        font-size: 9px;
        letter-spacing: 1px;
    }

    .booking-panel input,
    .booking-panel select,
    .booking-panel textarea {
        min-height: 50px;
    }

    .wizard-nav {
        gap: 7px;
    }

    .wizard-back,
    .wizard-nav .confirm-button {
        min-height: 48px;
    }

}

@media (max-width: 430px) {

    .assistant-panel {
        padding-left: calc(8px + env(safe-area-inset-left, 0px));
        padding-right: calc(8px + env(safe-area-inset-right, 0px));
    }

    .console-window {
        border-radius: 21px;
    }

    .console-window > .wizard-steps {
        padding-inline: 9px;
    }

    .wizard-step span {
        font-size: 8px;
    }

    .console-body {
        padding: 12px;
    }

    .console-dock {
        padding-inline: 10px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-button {
        min-height: 72px;
        align-items: center;
    }

    .controls {
        grid-template-columns: minmax(0, 1fr) 48px 48px;
        display: grid;
    }

    .mic-button {
        min-width: 0;
        padding-inline: 8px;
        font-size: 11px;
        letter-spacing: .7px;
    }

    .secondary-button {
        width: 48px;
        padding: 0;
    }

    .chat-row input {
        min-width: 0;
        padding-inline: 12px;
    }

    .send-button {
        min-width: 76px;
        padding-inline: 10px;
        letter-spacing: 1px;
    }

}

@media (max-width: 900px) and (max-height: 620px) {

    .assistant-panel {
        padding-top: calc(66px + env(safe-area-inset-top, 0px));
    }

    .conversation {
        max-height: 116px;
    }

    .console-window > .wizard-steps {
        padding-block: 7px;
    }

    .console-dock {
        padding-block: 8px;
    }

    .status-message {
        display: none;
    }

}

@media (prefers-reduced-motion: reduce) {

    .robot-container canvas {
        filter: none;
    }

}

/* =========================================================
   18. MOBILE GLASS MODE
   =========================================================

   The phone experience is intentionally layered: the robot and ambient
   lighting stay visible through the shell, while text and controls receive
   only the amount of frost they need. This avoids the "opaque sheet over the
   scene" effect without turning the booking flow into low-contrast glass.
   ========================================================= */

@media (max-width: 900px) {

    :root {
        --mobile-glass: rgba(255, 255, 255, .34);
        --mobile-glass-soft: rgba(245, 245, 247, .34);
        --mobile-glass-card: rgba(255, 255, 255, .82);
        --mobile-glass-field: rgba(255, 255, 255, .94);
        --mobile-glass-border: rgba(12, 13, 14, .20);
        --mobile-ink-shadow: 0 1px 2px rgba(255, 255, 255, .58);
    }

    .robot-container {
        opacity: .48;
    }

    .robot-container canvas {
        filter: none;
    }

    .assistant-panel {
        padding-top: calc(72px + env(safe-area-inset-top, 0px));
    }

    .console-window {
        /* The shell is a clear frame. Frost only the content that needs it,
           so the robot remains visible between the interactive layers. */
        background: transparent;
        border-color: var(--mobile-glass-border);
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .console-window > .wizard-steps {
        background: var(--mobile-glass-soft);
        border-bottom-color: var(--mobile-glass-border);
        backdrop-filter: blur(12px) saturate(1.2);
        -webkit-backdrop-filter: blur(12px) saturate(1.2);
    }

    .wizard-step {
        color: var(--text);
        text-shadow: var(--mobile-ink-shadow);
        background: rgba(244, 244, 246, .38);
        border-color: var(--mobile-glass-border);
    }

    .wizard-step.active {
        background: var(--accent-soft);
    }

    .conversation {
        background: var(--mobile-glass-soft);
        border-bottom-color: var(--mobile-glass-border);
        backdrop-filter: blur(7px) saturate(1.12);
        -webkit-backdrop-filter: blur(7px) saturate(1.12);
    }

    .speech-card,
    .user-message {
        background: var(--mobile-glass-card);
        border-color: var(--mobile-glass-border);
        box-shadow: 0 8px 24px rgba(12, 13, 14, .10);
        backdrop-filter: blur(10px) saturate(1.12);
        -webkit-backdrop-filter: blur(10px) saturate(1.12);
    }

    .assistant-message,
    .panel-title,
    .quick-label,
    .status-message {
        text-shadow: var(--mobile-ink-shadow);
    }

    .console-body {
        background: transparent;
    }

    .service-button,
    .booking-panel,
    .confirmation-card {
        background: var(--mobile-glass-card);
        border-color: var(--mobile-glass-border);
        box-shadow: 0 8px 24px rgba(12, 13, 14, .12);
        backdrop-filter: blur(11px) saturate(1.14);
        -webkit-backdrop-filter: blur(11px) saturate(1.14);
    }

    .service-button:not(.selected),
    .quick-chip,
    .secondary-button,
    .wizard-back {
        background: rgba(244, 244, 246, .55);
        border-color: var(--mobile-glass-border);
    }

    .booking-panel input,
    .booking-panel select,
    .booking-panel textarea,
    .chat-row input {
        background: var(--mobile-glass-field);
        border-color: var(--mobile-glass-border);
        box-shadow: 0 4px 15px rgba(12, 13, 14, .08);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .booking-panel input[readonly] {
        background: rgba(244, 244, 246, .70);
    }

    .console-dock {
        background: var(--mobile-glass);
        border-top-color: var(--mobile-glass-border);
        backdrop-filter: blur(13px) saturate(1.18);
        -webkit-backdrop-filter: blur(13px) saturate(1.18);
    }

    .stage-hud--bar .stage-pill {
        background: var(--mobile-glass);
        border-color: var(--mobile-glass-border);
        box-shadow: 0 10px 26px rgba(12, 13, 14, .12);
    }

    .theme-toggle {
        background: rgba(244, 244, 246, .55);
        border-color: var(--mobile-glass-border);
    }

    .panel-title,
    .quick-label,
    .status-message,
    .booking-panel label {
        color: var(--text-soft);
    }

    .eco-proof {
        background: rgba(215, 25, 32, .12);
        border-color: var(--mobile-glass-border);
    }

    .mic-button,
    .send-button,
    .confirm-button,
    .service-button.selected,
    .quick-chip.selected {
        backdrop-filter: saturate(1.15);
        -webkit-backdrop-filter: saturate(1.15);
    }

}

@media (max-width: 430px) {

    .console-window {
        border-radius: 21px;
        background: transparent;
    }

    .console-body {
        padding-top: 10px;
    }

    .speech-card,
    .service-button,
    .booking-panel,
    .confirmation-card {
        box-shadow: 0 6px 18px rgba(12, 13, 14, .10);
    }

}

@media (max-width: 900px) and (max-height: 620px) {

    .robot-container {
        opacity: .56;
    }

    .console-window {
        background: transparent;
    }

}


/* =========================================================
   MOTOBOTTI PRODUCT REFRESH
   Customer-facing marketplace layer over the existing 3D stage.
   ========================================================= */

:root {
    --bg: #ffffff;
    --bg-glow-a: rgba(255, 106, 0, .09);
    --bg-glow-b: rgba(12, 13, 14, .05);
    --panel: rgba(255, 255, 255, .94);
    --surface: #ffffff;
    --surface-2: #f4f4f6;
    --surface-3: #e9eaec;
    --text: #0c0d0e;
    --text-soft: #3c4045;
    --muted: #6d7177;
    --line: rgba(12, 13, 14, .14);
    --line-strong: rgba(12, 13, 14, .32);
    --accent: #d71920;
    --accent-bright: #ed2931;
    --accent-ink: #ffffff;
    --accent-soft: rgba(215, 25, 32, .12);
    --accent-glow: rgba(215, 25, 32, .28);
    --ok: #1e7a3f;
    --ok-soft: rgba(30, 122, 63, .12);
    --radius: 10px;
}


body {
    background:
        radial-gradient(ellipse at 12% 4%, var(--bg-glow-a), transparent 42%),
        radial-gradient(ellipse at 83% 65%, var(--bg-glow-b), transparent 46%),
        var(--bg);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 18px;
}

.nav-link {
    padding: 8px 10px;
    color: var(--muted);
    border-radius: 9px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

button.nav-link { cursor: pointer; }
.nav-link--active, button.nav-link:hover { color: var(--accent); background: var(--accent-soft); }

.stage-pill--brand { gap: 10px; padding: 9px 12px; border-radius: 18px; }
.stage-hud--bar .stage-pill { max-width: min(920px, calc(100vw - 28px)); }
.stage-hud--bar .brand-icon { width: 38px; height: 38px; border-radius: 12px; font-size: 21px; letter-spacing: -1px; }
.stage-hud--bar .brand-name { font-size: 19px; letter-spacing: -1px; }
.stage-hud--bar .brand-subtitle { color: var(--accent); font-size: 8px; letter-spacing: 1.4px; font-weight: 800; }

.hero-copy {
    position: absolute;
    top: 50%;
    left: clamp(28px, 8vw, 120px);
    width: min(510px, calc(100vw - 56px));
    transform: translateY(-50%);
    pointer-events: auto;
    text-align: left;
}

.hero-eyebrow, .eyebrow, .panel-kicker {
    color: var(--accent);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-eyebrow { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.hero-eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 5px var(--ok-soft); }

.hero-copy h1 {
    max-width: 520px;
    margin: 0;
    color: var(--text);
    font-size: clamp(42px, 5.1vw, 76px);
    line-height: .96;
    letter-spacing: -4px;
    font-weight: 850;
    text-transform: uppercase;
    font-style: italic;
    text-wrap: balance;
}

.hero-copy h1 em { color: var(--accent); font-style: italic; }
.hero-lead { max-width: 440px; margin: 24px 0 22px; color: var(--text-soft); font-size: 16px; line-height: 1.6; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-caption { color: var(--muted); font-size: 11px; font-weight: 700; }

.start-overlay { display: block; }
.start-button {
    position: static;
    min-width: 0;
    min-height: 54px;
    padding: 0 22px;
    transform: none;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 13px;
    box-shadow: 0 16px 32px var(--accent-glow);
    font-size: 12px;
    letter-spacing: .8px;
}
.start-button span { display: inline-block; margin-left: 12px; font-size: 18px; line-height: 0; transition: transform var(--speed) var(--ease); }
.start-button:hover { transform: translateY(-2px); box-shadow: 0 20px 42px var(--accent-glow); filter: none; }
.start-button:hover span { transform: translate(2px, -2px); }
.start-button:active { transform: translateY(0) scale(.98); }
.start-note { display: none; }

.hero-trust { display: flex; gap: 24px; margin-top: 34px; }
.hero-trust div { display: grid; gap: 3px; }
.hero-trust strong { color: var(--text); font-size: 18px; letter-spacing: -.5px; }
.hero-trust span { color: var(--muted); font-size: 10px; font-weight: 700; }
.service-area-note { margin-top: 24px; color: var(--muted); font-size: 11px; font-weight: 650; }
.service-area-note span { color: var(--accent); margin-right: 5px; font-size: 16px; }

.robot-container { opacity: .92; }
.robot-section::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(90deg, color-mix(in srgb, var(--bg) 76%, transparent) 0%, color-mix(in srgb, var(--bg) 28%, transparent) 48%, transparent 78%);
}
.robot-container { z-index: 0; }
.stage-hud, .start-overlay { z-index: 3; }

.assistant-panel { width: clamp(470px, 42vw, 580px); padding: 18px; }
.console-window { border-radius: 24px; border-color: color-mix(in srgb, var(--accent) 16%, var(--line)); }
.assistant-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 18px 18px 8px; background: var(--surface); }
.assistant-heading h2 { margin-top: 4px; color: var(--text); font-size: 24px; letter-spacing: -1px; }
.assistant-live { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; color: var(--ok); background: var(--ok-soft); border-radius: 999px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.assistant-live i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.console-window > .wizard-steps { padding-top: 10px; }
.conversation { padding-top: 10px; }
.speech-card { background: color-mix(in srgb, var(--accent-soft) 72%, var(--surface) 28%); border-color: color-mix(in srgb, var(--accent) 14%, var(--line)); }
.assistant-message { font-size: 14px; line-height: 1.55; }
.panel-kicker { margin-bottom: 7px; color: var(--muted); font-size: 9px; letter-spacing: 1.5px; }
.panel-title { margin-bottom: 14px; color: var(--text); font-size: 20px; font-weight: 850; letter-spacing: -.6px; }
.eco-proof { display: none; }
.service-grid { gap: 10px; }
.service-button { min-height: 88px; padding: 14px; border-radius: 16px; }
.service-button::before { background: linear-gradient(90deg, var(--accent), var(--accent-bright)); }
.service-icon { display: grid; place-items: center; width: 35px; height: 35px; color: var(--accent); background: var(--accent-soft); border-radius: 11px; font-size: 19px; }
.service-content strong { font-size: 13px; }
.service-content small { max-width: 175px; font-size: 11px; line-height: 1.3; }
.service-price { margin-top: 7px; color: var(--accent); font-size: 9px; font-weight: 900; letter-spacing: 1.1px; }
.selection-trust { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 10px; font-weight: 700; }
.selection-trust span:first-child { color: var(--ok); }
.booking-panel { padding: 18px; border-radius: 18px; }
.route-intro, .time-note { display: flex; align-items: flex-start; gap: 10px; margin: -2px 0 12px; padding: 10px 12px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 11px; line-height: 1.45; }
.route-line { width: 6px; min-height: 34px; margin-top: 2px; background: linear-gradient(var(--accent), var(--accent-bright)); border-radius: 99px; }
.time-note span { color: var(--accent); font-size: 19px; line-height: 1; }
.address-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.label-optional { color: var(--muted); font-weight: 500; letter-spacing: 0; }
.price-preview { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; padding: 13px 14px; color: var(--text-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; font-size: 12px; font-weight: 700; }
.price-preview strong { color: var(--accent); font-size: 17px; }
.confirm-button { background: var(--accent); }
.quick-chip.selected { background: var(--accent); }
.console-dock { background: color-mix(in srgb, var(--surface-2) 90%, transparent); }
.mic-button, .send-button { background: var(--accent); }

@media (max-width: 1180px) {
    .main-nav { display: none; }
    .hero-copy { left: 5vw; }
    .hero-copy h1 { font-size: clamp(42px, 6vw, 64px); }
}

@media (max-width: 900px) {
    .robot-section::after { background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 10%, transparent), color-mix(in srgb, var(--bg) 86%, transparent) 58%, var(--bg) 100%); }
    .robot-container { opacity: .34; }
    .stage-hud--bar .stage-pill { padding: 7px 10px; }
    .stage-hud--bar .brand-name { font-size: 18px; }
    .hero-copy { top: 35%; left: 22px; width: calc(100vw - 44px); transform: none; }
    .hero-copy h1 { font-size: clamp(42px, 13vw, 62px); letter-spacing: -3px; }
    .hero-lead { margin: 17px 0 18px; font-size: 14px; }
    .hero-trust { gap: 18px; margin-top: 24px; }
    .hero-trust strong { font-size: 16px; }
    .service-area-note { margin-top: 18px; }
    .start-overlay { inset: 0; }
    .assistant-panel { width: 100%; padding: calc(72px + env(safe-area-inset-top, 0px)) 10px calc(10px + env(safe-area-inset-bottom, 0px)); }
    .console-window { border-radius: 22px; }
    .assistant-heading { padding: 15px 15px 8px; }
    .assistant-heading h2 { font-size: 21px; }
    .address-pair { grid-template-columns: 1fr; gap: 0; }
    .selection-trust { gap: 8px; }
}

@media (max-width: 520px) {
    .stage-hud--bar .brand-subtitle { display: block; font-size: 7px; }
    .ai-badge, .eco-badge { display: none; }
    .hero-copy { top: 31%; }
    .hero-copy h1 { font-size: 47px; }
    .hero-lead { max-width: 340px; }
    .hero-caption { width: 100%; }
    .hero-trust { margin-top: 20px; }
    .hero-trust div:last-child { display: none; }
    .service-area-note { font-size: 10px; }
    .assistant-heading { padding-inline: 14px; }
    .assistant-live { padding: 6px 8px; font-size: 8px; }
    .service-button { min-height: 82px; padding: 11px; gap: 8px; }
    .service-content small { font-size: 10px; }
    .selection-trust { font-size: 9px; }
}

/* =========================================================
   LIVE ROUTE + PRICING
   ========================================================= */

.route-actions {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 12px;
}

.route-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 12px;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 11px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .8px;
    white-space: nowrap;
    transition: transform var(--speed) var(--ease), opacity var(--speed) var(--ease);
}

.route-button:hover { transform: translateY(-1px); }
.route-button:disabled { cursor: wait; opacity: .72; transform: none; }
.route-button.is-loading::after {
    content: "";
    width: 12px;
    height: 12px;
    margin-left: 2px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: route-spin .7s linear infinite;
}

@keyframes route-spin { to { transform: rotate(360deg); } }

.route-status {
    min-width: 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.route-map-shell {
    position: relative;
    margin-top: 12px;
    overflow: hidden;
    background: var(--surface-3);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.route-map {
    width: 100%;
    height: 190px;
    background: #eceef0;
}

.route-map .leaflet-control-zoom a {
    color: var(--text);
    background: var(--surface);
    border-color: var(--line);
}

.map-attribution-note {
    position: absolute;
    right: 7px;
    bottom: 5px;
    z-index: 500;
    padding: 2px 5px;
    color: var(--muted);
    background: color-mix(in srgb, var(--surface) 84%, transparent);
    border-radius: 4px;
    font-size: 8px;
    pointer-events: none;
}

.route-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-top: 9px;
}

.route-summary > div {
    display: grid;
    gap: 4px;
    min-width: 0;
    padding: 9px 10px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.route-summary span {
    color: var(--muted);
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 1px;
}

.route-summary strong {
    min-width: 0;
    color: var(--text);
    font-size: 13px;
    overflow-wrap: anywhere;
}

.route-summary > div:last-child strong { color: var(--accent); }

@media (max-width: 520px) {
    .route-actions { align-items: stretch; flex-direction: column; }
    .route-button { width: 100%; }
    .route-status { min-height: 14px; }
    .route-map { height: 165px; }
    .route-summary { gap: 5px; }
    .route-summary > div { padding: 8px 7px; }
    .route-summary strong { font-size: 12px; }
}


/* =========================================================
   FINAL RESPONSIVE LAYOUT SYSTEM
   One last cascade layer keeps the immersive desktop view and the
   delivery wizard usable at every viewport width.
   ========================================================= */

/* =========================================================
   AURORA WORKSHOP ΓÇö cinematic, high-contrast interface layer
   ========================================================= */

:root {
    color-scheme: dark;
    --bg: #071116;
    --bg-glow-a: rgba(0, 220, 200, .13);
    --bg-glow-b: rgba(255, 111, 38, .11);
    --panel: rgba(10, 23, 29, .90);
    --surface: #0c1a20;
    --surface-2: #102229;
    --surface-3: #193039;
    --text: #eef7f6;
    --text-soft: #b4c6c7;
    --muted: #82989b;
    --line: rgba(174, 222, 223, .13);
    --line-strong: rgba(174, 222, 223, .28);
    --accent: #d71920;
    --accent-bright: #ed2931;
    --accent-ink: #ffffff;
    --accent-soft: rgba(215, 25, 32, .14);
    --accent-glow: rgba(215, 25, 32, .25);
    --ok: #42dbbd;
    --ok-soft: rgba(66, 219, 189, .12);
    --shadow-sm: 0 8px 22px rgba(0, 0, 0, .20);
    --shadow-md: 0 18px 48px rgba(0, 0, 0, .30);
    --shadow-lg: 0 30px 90px rgba(0, 0, 0, .44);
    --ring: 0 0 0 3px rgba(66, 219, 189, .26);
}

html, body { background: #071116; }
body {
    font-family: "DM Sans", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse at 18% 44%, rgba(13, 95, 92, .20), transparent 48%),
        radial-gradient(ellipse at 83% 10%, rgba(240, 95, 44, .12), transparent 40%),
        #071116;
}

.ambient-grid {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: .18;
    background-image: linear-gradient(rgba(123, 190, 192, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(123, 190, 192, .075) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, #000 0%, transparent 70%);
}

.app, .main { position: relative; z-index: 1; }
.main { justify-content: flex-end; }

.robot-section::after {
    background: linear-gradient(90deg, rgba(7, 17, 22, .22), rgba(7, 17, 22, .02) 38%, rgba(7, 17, 22, .68) 72%, rgba(7, 17, 22, .88));
}
.robot-container { opacity: 1; filter: none; }

.stage-pill {
    color: var(--text);
    background: rgba(8, 21, 27, .72);
    border-color: rgba(155, 215, 214, .18);
    border-radius: 16px;
    box-shadow: 0 14px 48px rgba(0, 0, 0, .26), inset 0 1px rgba(255,255,255,.05);
    backdrop-filter: blur(18px) saturate(1.3);
}
.stage-hud--bar { max-width: calc(100% - 40px); }
.stage-hud--bar .stage-pill { max-width: min(980px, calc(100vw - 40px)); padding: 10px 14px; }
.stage-hud--bar .brand-icon { color: #061916; background: linear-gradient(145deg, #8af0d9, #2fb99d); box-shadow: 0 0 28px rgba(66,219,189,.24); }
.stage-hud--bar .brand-name { font-family: "Space Grotesk", sans-serif; color: #f0fbf9; }
.stage-hud--bar .brand-subtitle { color: #7ce0ca; }
.console-dots i { background: rgba(163, 194, 194, .35); }

.main-nav { margin-left: 20px; }
.nav-link { color: #9eb2b4; font-size: 11px; }
.nav-link--active, button.nav-link:hover { color: #8cebd6; background: rgba(66, 219, 189, .10); }

.console-actions { gap: 8px; }
.ai-badge { color: #94ead7; background: rgba(66,219,189,.09); border-color: rgba(66,219,189,.18); }
.online-status { color: #86e6d0; }
.eco-badge { color: #95e9d5; background: rgba(66,219,189,.08); border-color: rgba(66,219,189,.18); }

.scene-readout {
    position: absolute;
    z-index: 2;
    left: clamp(28px, 3.2vw, 54px);
    bottom: 28px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    color: #82999a;
    background: rgba(8, 20, 25, .48);
    border: 1px solid rgba(157, 214, 212, .14);
    border-radius: 10px;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 1.3px;
    backdrop-filter: blur(12px);
}
.scene-readout strong { color: #d2e7e3; font-weight: 700; }
.scene-readout__pulse { width: 6px; height: 6px; background: #4de0bf; border-radius: 50%; box-shadow: 0 0 12px #4de0bf; animation: readout-pulse 2s ease-in-out infinite; }
.scene-readout__divider { width: 1px; height: 15px; background: rgba(157,214,212,.2); }
@keyframes readout-pulse { 50% { opacity: .45; box-shadow: 0 0 4px #4de0bf; } }

.hero-copy { left: clamp(36px, 6.3vw, 96px); width: min(500px, 40vw); }
.hero-eyebrow, .eyebrow, .panel-kicker { color: #76ddc6; font-family: "Space Grotesk", sans-serif; letter-spacing: 1.7px; }
.hero-eyebrow { color: #acd5ce; }
.hero-eyebrow-dot { background: #4de0bf; box-shadow: 0 0 0 5px rgba(66,219,189,.12), 0 0 18px rgba(66,219,189,.5); }
.hero-copy h1 {
    color: #f2f7f6;
    font-family: "Space Grotesk", sans-serif;
    font-size: clamp(48px, 5vw, 76px);
    font-weight: 600;
    letter-spacing: -4.8px;
    line-height: .99;
    text-transform: none;
    font-style: normal;
    text-shadow: 0 8px 34px rgba(0,0,0,.28);
}
.hero-copy h1 em { color: #76ddc6; font-style: normal; }
.hero-lead { max-width: 420px; color: #a9bbbd; font-size: 15px; line-height: 1.75; }
.hero-caption { color: #9db0b1; }
.start-button {
    color: #061916;
    background: linear-gradient(135deg, #9af0dc, #48c9ad);
    border: 1px solid rgba(182,255,238,.42);
    border-radius: 12px;
    box-shadow: 0 10px 34px rgba(57,207,177,.22), inset 0 1px rgba(255,255,255,.5);
}
.start-button:hover { box-shadow: 0 15px 40px rgba(57,207,177,.3); }
.hero-trust { gap: 0; margin-top: 36px; padding-top: 22px; border-top: 1px solid rgba(179,220,217,.16); }
.hero-trust div { min-width: 112px; padding-right: 20px; }
.hero-trust div + div { padding-left: 20px; border-left: 1px solid rgba(179,220,217,.16); }
.hero-trust strong { color: #eff9f6; font-family: "Space Grotesk", sans-serif; font-size: 20px; }
.hero-trust span { color: #89a2a3; font-size: 10px; letter-spacing: .35px; }
.service-area-note { color: #859b9c; }
.service-area-note span { color: #71ddc4; }

.assistant-panel { width: clamp(470px, 39vw, 600px); }
.console-window {
    background: rgba(9, 22, 28, .88);
    border: 1px solid rgba(142, 208, 203, .18);
    border-radius: 20px;
    box-shadow: 0 32px 100px rgba(0,0,0,.48), inset 0 1px rgba(255,255,255,.055);
    backdrop-filter: blur(28px) saturate(1.2);
}
.assistant-heading { background: transparent; }
.assistant-heading h2 { color: #f0f7f5; font-family: "Space Grotesk", sans-serif; font-weight: 600; }
.assistant-live { color: #78e0c8; background: rgba(66,219,189,.09); border: 1px solid rgba(66,219,189,.12); }
.console-window > .wizard-steps { background: rgba(255,255,255,.018); border-color: rgba(173,220,218,.1); }
.wizard-step { color: #8aa0a3; background: rgba(255,255,255,.025); border-color: rgba(173,220,218,.11); }
.wizard-step i { color: #afc4c4; background: rgba(255,255,255,.08); }
.wizard-step.active { color: #81e3cc; background: rgba(66,219,189,.09); border-color: rgba(66,219,189,.26); }
.wizard-step.active i { color: #061916; background: #69d9c0; }
.wizard-step.done { color: #70d9c2; background: rgba(66,219,189,.08); }
.conversation { background: transparent; border-color: rgba(173,220,218,.09); }
.speech-card { background: rgba(18,43,48,.72); border-color: rgba(98,194,177,.17); box-shadow: none; }
.assistant-message { color: #d6e5e3; }
.user-message { color: #dce9e7; background: rgba(65,112,112,.22); border-color: rgba(143,202,198,.14); }
.console-body { scrollbar-color: rgba(116,172,168,.32) transparent; }
.panel-title { color: #eef6f4; font-family: "Space Grotesk", sans-serif; }
.panel-kicker { color: #79d9c4; }
.service-button {
    color: #edf5f3;
    background: linear-gradient(145deg, rgba(22,45,51,.88), rgba(13,31,37,.88));
    border-color: rgba(141,192,192,.14);
    box-shadow: inset 0 1px rgba(255,255,255,.035);
}
.service-button:hover { border-color: rgba(103,220,198,.48); box-shadow: 0 12px 28px rgba(0,0,0,.2); }
.service-icon { color: #78e1ca; background: rgba(66,219,189,.10); }
.service-content small { color: #91a8aa; }
.service-price { color: #ffad7d; }
.service-arrow { color: var(--accent); }
.service-button.selected { color: #051916; background: linear-gradient(135deg, #96ecd7, #53c9ae); box-shadow: 0 12px 28px rgba(56,198,168,.19); }
.service-button.selected .service-content small, .service-button.selected .service-price { color: #174a42; }
.service-button.selected .service-arrow { color: var(--accent); }
.service-button.selected::after { color: #0d4d43; }
.selection-trust { color: #89a3a3; }
.selection-trust span:first-child { color: #6fe0c4; }
.booking-panel { background: rgba(15,35,41,.8); border-color: rgba(142,197,195,.13); }
.booking-panel label { color: #95abad; }
.booking-panel input, .booking-panel select, .booking-panel textarea, .chat-row input {
    color: #e6f0ee;
    background: rgba(5,17,22,.65);
    border-color: rgba(146,196,194,.16);
}
.booking-panel input::placeholder, .booking-panel textarea::placeholder, .chat-row input::placeholder { color: #6e8589; }
.booking-panel input[readonly] { color: #aabbb9; background: rgba(255,255,255,.055); }
.booking-panel input:focus, .booking-panel select:focus, .booking-panel textarea:focus, .chat-row input:focus { border-color: #67d9bf; }
.route-intro, .time-note, .price-preview { color: #bdd0cd; background: rgba(255,255,255,.035); border-color: rgba(146,196,194,.13); }
.price-preview strong, .route-summary > div:last-child strong { color: #84e4ce; }
.route-button, .confirm-button, .send-button { color: #071a17; background: linear-gradient(135deg, #94ecd7, #4bc5a9); box-shadow: 0 8px 22px rgba(56,198,168,.16); }
.wizard-back, .quick-chip, .secondary-button {
    color: #b8ccca;
    background: rgba(255,255,255,.035);
    border-color: rgba(142,197,195,.14);
}
.quick-chip:hover, .secondary-button:hover { color: #83e4ce; border-color: rgba(111,220,199,.42); }
.quick-chip.selected { color: #061916; background: linear-gradient(135deg, #94ecd7, #4bc5a9); border-color: transparent; }
.console-dock { background: rgba(7,19,24,.82); border-color: rgba(142,197,195,.13); }
.mic-button { color: #071a17; background: linear-gradient(135deg, #94ecd7, #4bc5a9); box-shadow: 0 8px 22px rgba(56,198,168,.16); }
.status-message { color: #82999b; }
.status-message.is-ai { color: #8be6d2; }
.route-map-shell { border-color: rgba(146,196,194,.16); }
.route-summary > div { background: rgba(255,255,255,.035); border-color: rgba(146,196,194,.13); }
.route-summary span { color: #8ba2a4; }
.route-summary strong { color: #d8e8e5; }
.success-icon { color: #06201a; background: #50d4b6; }

@media (max-width: 1180px) and (min-width: 901px) {
    .hero-copy { left: 4vw; width: min(420px, 38vw); }
    .hero-copy h1 { font-size: clamp(44px, 5vw, 62px); }
    .assistant-panel { width: min(520px, 45vw); }
}

@media (max-width: 900px) {
    .robot-section::after { background: linear-gradient(180deg, rgba(7,17,22,.08), rgba(7,17,22,.16) 30%, rgba(7,17,22,.86) 64%, #071116 100%); }
    .robot-container { opacity: .62; }
    /* Bot smaller, anchored to the left on mobile */
    .robot-container canvas { transform-origin: left center; }
    .hero-copy { top: 29%; left: 24px; width: calc(100vw - 48px); }
    .hero-copy h1 { max-width: 480px; font-size: clamp(43px, 10vw, 64px); }
    .hero-lead { max-width: 470px; color: #b2c4c2; }
    .hero-trust { max-width: 430px; }
    .assistant-panel { background: transparent; }
    .console-window { background: rgba(8,21,27,.91); border-color: rgba(142,208,203,.2); }
    .console-window > .wizard-steps, .conversation, .console-dock { background-color: rgba(8,21,27,.92); }
    .speech-card { background: rgba(18,43,48,.92); }
    .service-button:not(.selected), .quick-chip, .secondary-button, .wizard-back { background: rgba(17,39,45,.92); border-color: rgba(142,197,195,.16); }
    .booking-panel { background: rgba(12,29,35,.96); }
    .booking-panel input, .booking-panel select, .booking-panel textarea, .chat-row input { background: rgba(5,17,22,.88); }
    .stage-readout { display: none; }
    .scene-readout { bottom: auto; top: 78px; left: 18px; font-size: 7px; }
}

@media (max-width: 520px) {
    .hero-copy { top: 24%; }
    .hero-copy h1 { font-size: 43px; letter-spacing: -2.7px; }
    .hero-lead { max-width: 365px; margin: 12px 0 15px; font-size: 12px; line-height: 1.55; }
    .hero-eyebrow { margin-bottom: 10px; font-size: 8px; }
    .hero-trust { margin-top: 15px; padding-top: 12px; }
    .hero-trust div { min-width: 94px; padding-right: 14px; }
    .hero-trust div + div { padding-left: 14px; }
    .hero-trust strong { font-size: 16px; }
    .service-area-note { margin-top: 12px; }
    .scene-readout { display: none; }
    .stage-hud--bar .stage-pill { background: rgba(8,21,27,.85); border-color: rgba(155,215,214,.18); }
}

@media (prefers-reduced-motion: reduce) {
    .scene-readout__pulse { animation: none; }
}

html,
body,
.app,
.main {
    min-width: 0;
}

/* Desktop: preserve the 3D stage, but give the order console a stable
   reading width and enough vertical room for the route workflow. */
@media (min-width: 901px) {
    .main {
        align-items: stretch;
        justify-content: flex-end;
    }

    .assistant-panel {
        align-self: stretch;
        width: clamp(560px, 42vw, 700px);
        height: 100%;
        padding: 28px clamp(24px, 2.2vw, 40px) 28px 24px;
    }

    .console-window {
        width: 100%;
        max-height: calc(100dvh - 56px);
        border-radius: 28px;
        box-shadow: 0 24px 64px rgba(0, 0, 0, .12);
    }

    .console-body {
        overflow-x: hidden;
        padding: 28px;
    }

    .assistant-heading {
        padding: 24px 28px 16px;
    }

    .assistant-heading h2 {
        font-size: 28px;
        letter-spacing: -.8px;
    }

    .console-window > .wizard-steps {
        padding: 12px 28px 16px;
    }

    .wizard-step {
        min-height: 44px;
        padding: 9px 13px;
        font-size: 10px;
    }

    .service-grid {
        gap: 14px;
    }

    .service-button {
        min-height: 108px;
        padding: 18px;
        border-radius: 18px;
    }

    .service-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }

    .service-content strong {
        font-size: 15px;
    }

    .service-content small {
        font-size: 12px;
        line-height: 1.4;
    }

    .booking-panel {
        padding: 24px;
        border-radius: 20px;
    }

    .booking-panel label {
        margin-top: 16px;
        font-size: 10px;
    }

    .booking-panel input,
    .booking-panel select,
    .booking-panel textarea {
        min-height: 50px;
        font-size: 15px;
    }

    .route-map {
        height: 240px;
    }

    .panel-title {
        font-size: 22px;
        margin-bottom: 18px;
    }

    .console-dock {
        padding: 18px 28px calc(18px + env(safe-area-inset-bottom, 0px));
    }
}

@media (max-width: 900px) and (max-height: 360px) {
    .stage-hud--bar .brand-subtitle,
    .hero-eyebrow,
    .hero-lead,
    .hero-caption,
    .hero-trust,
    .service-area-note {
        display: none;
    }

    .hero-copy {
        top: 76px;
        left: 16px;
        width: calc(100vw - 32px);
        transform: none;
    }

    .start-button {
        min-height: 44px;
        padding-inline: 16px;
    }
}

/* Medium desktop/tablet landscape: keep the stage visible, but prevent the
   console and hero from competing for too much horizontal space. */
@media (min-width: 901px) and (max-width: 1180px) {
    .assistant-panel {
        width: min(520px, 46vw);
        padding-right: 16px;
    }

    .hero-copy {
        left: 42px;
        width: min(430px, 42vw);
    }

    .hero-copy h1 {
        font-size: clamp(40px, 5.6vw, 62px);
        letter-spacing: -3px;
    }

    .stage-hud--bar .stage-pill {
        max-width: calc(100vw - 32px);
    }
}

/* Tablet portrait: the console becomes the main workspace without the
   phone-specific glass treatment taking over too early. */
@media (min-width: 601px) and (max-width: 900px) {
    .assistant-panel {
        height: 100%;
        padding: calc(78px + env(safe-area-inset-top, 0px))
            max(24px, env(safe-area-inset-right, 0px))
            max(24px, env(safe-area-inset-bottom, 0px))
            max(24px, env(safe-area-inset-left, 0px));
    }

    .console-window {
        max-width: 720px;
        margin: 0 auto;
        border-radius: 24px;
    }

    .console-body {
        padding: 20px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .service-button {
        min-height: 88px;
    }

    .address-pair {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .route-actions {
        align-items: center;
    }

    .route-button {
        flex: 0 0 auto;
    }
}

/* Phones: the console fills the safe viewport and every interactive control
   remains reachable with one hand and an open keyboard. */
@media (max-width: 600px) {
    body {
        overflow: hidden;
    }

    .assistant-panel {
        width: 100%;
        height: 100%;
        min-height: 0;
        padding-top: calc(70px + env(safe-area-inset-top, 0px));
        padding-right: max(8px, env(safe-area-inset-right, 0px));
        padding-bottom: max(8px, env(safe-area-inset-bottom, 0px));
        padding-left: max(8px, env(safe-area-inset-left, 0px));
    }

    .console-window {
        width: 100%;
        height: 100%;
        min-height: 0;
        max-height: none;
        border-radius: 22px;
    }

    .assistant-heading {
        padding: 14px 14px 9px;
    }

    .assistant-heading h2 {
        font-size: 20px;
    }

    .console-window > .wizard-steps {
        padding: 9px 10px;
    }

    .wizard-step {
        min-height: 40px;
        padding: 7px 6px;
    }

    .conversation {
        max-height: clamp(104px, 19vh, 148px);
        padding: 10px 12px;
    }

    .console-body {
        min-height: 0;
        padding: 12px;
        overflow-x: hidden;
        overscroll-behavior-y: contain;
    }

    .booking-panel {
        padding: 14px;
    }

    .address-pair {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .route-actions {
        align-items: stretch;
        flex-direction: column;
        gap: 7px;
    }

    .route-button {
        width: 100%;
        min-height: 48px;
    }

    .route-status {
        min-height: 18px;
        text-align: center;
    }

    .route-map {
        height: clamp(156px, 28vw, 190px);
    }

    .route-summary {
        gap: 6px;
    }

    .route-summary > div {
        padding: 9px 8px;
    }

    .route-summary strong {
        font-size: 12px;
    }

    .wizard-nav {
        margin-inline: -2px;
        padding-inline: 2px;
    }

    .wizard-back,
    .wizard-nav .confirm-button {
        min-height: 48px;
    }

    .console-dock {
        padding-right: 10px;
        padding-left: 10px;
    }

    .controls {
        min-width: 0;
    }

    .mic-button,
    .secondary-button,
    .send-button {
        min-height: 48px;
    }

    .mic-button {
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .chat-row input {
        min-width: 0;
    }
}

/* Very narrow phones: the route summary gets a readable two-row layout and
   the composer never forces horizontal scrolling. */
@media (max-width: 399px) {
    .console-window > .wizard-steps {
        padding-inline: 7px;
    }

    .wizard-step {
        gap: 4px;
        font-size: 8px;
    }

    .wizard-step i {
        width: 19px;
        height: 19px;
    }

    .route-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .route-summary > div:last-child {
        grid-column: 1 / -1;
    }

    .route-summary > div:last-child strong {
        font-size: 14px;
    }

    .chat-row {
        gap: 5px;
    }

    .send-button {
        min-width: 70px;
        padding-inline: 8px;
        font-size: 10px;
    }
}

/* Landscape phone: release vertical space from decorative areas and keep
   the form itself scrollable. */
@media (max-width: 900px) and (max-height: 560px) {
    .assistant-panel {
        padding-top: calc(56px + env(safe-area-inset-top, 0px));
    }

    .conversation {
        max-height: 88px;
    }

    .console-window > .wizard-steps {
        padding-block: 6px;
    }

    .console-dock {
        padding-top: 7px;
        padding-bottom: max(7px, env(safe-area-inset-bottom, 0px));
    }

    .status-message {
        display: none;
    }
}


/* =========================================================
   DESKTOP COMPOSITION FIX
   Desktop only. Mobile and tablet rules above remain unchanged.
   ========================================================= */

@media (min-width: 901px) {
    /* A single compact top bar replaces the wrapped desktop header. */
    .stage-hud--bar {
        top: 16px;
        right: 24px;
        left: 24px;
        width: auto;
        max-width: none;
        align-items: flex-start;
    }

    .stage-pill--brand {
        display: flex;
        flex-wrap: nowrap;
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 68px;
        padding: 12px 16px;
        gap: 12px;
        border-radius: 20px;
    }

    .stage-pill--brand .brand {
        flex: 0 0 auto;
    }

    .stage-hud--bar .brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 21px;
    }

    .stage-hud--bar .brand-name {
        font-size: 20px;
        letter-spacing: -1px;
    }

    .stage-hud--bar .brand-subtitle {
        font-size: 8px;
        letter-spacing: 1.35px;
    }

    .stage-pill--brand .main-nav {
        flex: 0 1 auto;
        min-width: 0;
        margin-left: clamp(8px, 2vw, 28px);
    }

    .stage-pill--brand .console-actions {
        flex: 0 0 auto;
        margin-left: auto;
        flex-wrap: nowrap;
        gap: 8px;
    }

    /* The hero owns the left reading area and never competes with the
       desktop order workspace on the right. */
    .hero-copy {
        left: clamp(48px, 7vw, 108px);
        width: min(520px, calc(100vw - 700px));
        max-width: 520px;
    }

    .hero-copy h1 {
        font-size: clamp(48px, 5.25vw, 78px);
        line-height: .94;
        letter-spacing: -4.5px;
    }

    .hero-lead {
        max-width: 460px;
        margin-top: 22px;
        font-size: 16px;
    }

    /* Desktop request state: the order console is a real workspace, not a
       content-sized card stranded at the bottom of the screen. */
    .assistant-panel {
        align-items: stretch;
        align-self: stretch;
        width: clamp(520px, 40vw, 640px);
        height: 100%;
        padding: 104px clamp(22px, 2.4vw, 36px) 24px 18px;
    }

    .console-window {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 24px;
    }

    .assistant-heading {
        flex: 0 0 auto;
        padding: 20px 22px 12px;
    }

    .console-window > .wizard-steps {
        flex: 0 0 auto;
        padding: 10px 22px 12px;
    }

    .console-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 22px;
        overflow-x: hidden;
    }

    .service-panel,
    .booking-panel {
        width: 100%;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .service-grid {
        gap: 12px;
    }

    .service-button {
        min-height: 92px;
        padding: 14px;
    }

    .booking-panel {
        padding: 20px;
    }

    .route-map {
        height: 210px;
    }
}

/* Desktop landscape below 1180px: keep the same composition while giving
   the hero and panel a safe amount of breathing room. */
@media (min-width: 901px) and (max-width: 1180px) {
    .stage-hud--bar {
        right: 16px;
        left: 16px;
    }

    .stage-pill--brand {
        min-height: 62px;
        padding: 10px 12px;
    }

    .stage-pill--brand .main-nav {
        display: none;
    }

    .stage-pill--brand .console-actions {
        margin-left: auto;
    }

    .assistant-panel {
        width: min(500px, 48vw);
        padding-right: 16px;
    }

    .hero-copy {
        left: 40px;
        width: min(430px, calc(100vw - 570px));
    }

    .hero-copy h1 {
        font-size: clamp(42px, 5.4vw, 62px);
        letter-spacing: -3px;
    }
}


/* =========================================================
   DESKTOP HEADER: THREE-ZONE FULL-WIDTH BAR
   Desktop only. The mobile header remains governed by max-width rules.
   ========================================================= */

@media (min-width: 901px) {
    .stage-hud--bar {
        top: 18px;
        right: 24px;
        bottom: auto;
        left: 24px;
        width: auto;
        max-width: none;
        pointer-events: none;
    }

    .stage-pill--brand {
        display: grid;
        grid-template-columns: minmax(220px, 1fr) auto minmax(300px, 1fr);
        align-items: center;
        width: 100%;
        max-width: none;
        min-height: 72px;
        padding: 12px 18px;
        gap: 22px;
        pointer-events: auto;
        border-radius: 20px;
    }

    .stage-pill--brand .console-dots {
        display: none;
    }

    .stage-pill--brand .brand {
        grid-column: 1;
        min-width: 0;
        justify-self: start;
    }

    .stage-pill--brand .main-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: max-content;
        margin: 0;
        gap: 6px;
    }

    .stage-pill--brand .nav-link {
        padding: 9px 13px;
        font-size: 10px;
        letter-spacing: .25px;
    }

    .stage-pill--brand .console-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        margin: 0;
        gap: 9px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .stage-pill--brand .ai-badge,
    .stage-pill--brand .online-status,
    .stage-pill--brand .eco-badge {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stage-pill--brand .ai-badge {
        max-width: 142px;
    }

    .stage-pill--brand .online-status {
        max-width: 126px;
    }

    .stage-pill--brand .eco-badge {
        max-width: 122px;
    }

    .stage-pill--brand .theme-toggle {
        flex: 0 0 40px;
    }

    .stage-hud--bar .brand-icon {
        width: 40px;
        height: 40px;
        border-radius: 12px;
        font-size: 21px;
    }

    .stage-hud--bar .brand-name {
        font-size: 20px;
        letter-spacing: -1px;
    }

    .stage-hud--bar .brand-subtitle {
        margin-top: 2px;
        font-size: 8px;
        letter-spacing: 1.35px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .stage-pill--brand {
        grid-template-columns: minmax(185px, 1fr) auto minmax(230px, 1fr);
        gap: 12px;
        padding-inline: 13px;
    }

    .stage-pill--brand .nav-link {
        padding-inline: 9px;
        font-size: 9px;
    }

    .stage-pill--brand .ai-badge {
        max-width: 92px;
    }

    .stage-pill--brand .online-status {
        max-width: 96px;
        font-size: 9px;
    }

    .stage-pill--brand .eco-badge {
        max-width: 96px;
        padding-inline: 6px;
        font-size: 8px;
    }
}


/* =========================================================
   DESKTOP EXPERIENCE REDESIGN
   Rebuilds the desktop composition from the top bar through the
   booking workspace. The 3D Puhto scene and all mobile rules stay intact.
   ========================================================= */

@media (min-width: 901px) {
    :root {
        --desktop-header-height: 76px;
        --desktop-panel-width: clamp(540px, 42vw, 650px);
        --desktop-edge: clamp(24px, 3vw, 52px);
    }

    body {
        overflow: hidden;
    }

    .main {
        position: relative;
        align-items: stretch;
        justify-content: flex-end;
        min-height: 0;
    }

    .robot-section::after {
        background:
            linear-gradient(90deg,
                color-mix(in srgb, var(--bg) 90%, transparent) 0%,
                color-mix(in srgb, var(--bg) 58%, transparent) 42%,
                color-mix(in srgb, var(--bg) 12%, transparent) 76%,
                transparent 100%),
            linear-gradient(180deg,
                color-mix(in srgb, var(--bg) 12%, transparent) 0%,
                transparent 30%,
                color-mix(in srgb, var(--bg) 24%, transparent) 100%);
    }

    /* Compact utility bar: identity, navigation, then live status. */
    .stage-hud--bar {
        top: 18px;
        right: var(--desktop-edge);
        left: var(--desktop-edge);
        width: auto;
        max-width: none;
        pointer-events: none;
    }

    .stage-pill--brand {
        display: grid;
        grid-template-columns: minmax(230px, 1fr) auto minmax(330px, 1fr);
        align-items: center;
        width: 100%;
        min-height: var(--desktop-header-height);
        padding: 10px 16px;
        gap: 26px;
        pointer-events: auto;
        background: color-mix(in srgb, var(--panel) 90%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
        border-radius: 22px;
        box-shadow: 0 18px 45px color-mix(in srgb, var(--text) 12%, transparent);
        backdrop-filter: blur(22px) saturate(1.08);
    }

    .stage-pill--brand .console-dots {
        display: none;
    }

    .stage-pill--brand .brand {
        grid-column: 1;
        min-width: 0;
        justify-self: start;
    }

    .stage-hud--bar .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 22px;
    }

    .stage-hud--bar .brand-name {
        font-size: 21px;
        letter-spacing: -1.1px;
    }

    .stage-hud--bar .brand-subtitle {
        margin-top: 2px;
        color: var(--accent);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 1.5px;
    }

    .stage-pill--brand .main-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        min-width: max-content;
        margin: 0;
        gap: 4px;
    }

    .stage-pill--brand .nav-link {
        padding: 10px 14px;
        color: var(--text-soft);
        border-radius: 10px;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .35px;
    }

    .stage-pill--brand .nav-link--active,
    .stage-pill--brand button.nav-link:hover {
        color: var(--accent-ink);
        background: var(--accent);
        box-shadow: 0 8px 18px var(--accent-glow);
    }

    .stage-pill--brand .console-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        margin: 0;
        gap: 9px;
        flex-wrap: nowrap;
        overflow: hidden;
    }

    .stage-pill--brand .ai-badge,
    .stage-pill--brand .online-status,
    .stage-pill--brand .eco-badge {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stage-pill--brand .ai-badge { max-width: 144px; }
    .stage-pill--brand .online-status { max-width: 126px; }
    .stage-pill--brand .eco-badge { max-width: 124px; }
    .stage-pill--brand .theme-toggle { flex: 0 0 40px; }

    /* Landing composition: generous editorial hero on the left, Puhto stays
       the visual anchor in the open middle of the stage. */
    .hero-copy {
        top: 53%;
        left: var(--desktop-edge);
        width: min(560px, calc(100vw - var(--desktop-panel-width) - 150px));
        max-width: 560px;
        transform: translateY(-50%);
    }

    .hero-eyebrow {
        margin-bottom: 18px;
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .hero-copy h1 {
        max-width: 560px;
        font-size: clamp(54px, 5.2vw, 82px);
        line-height: .93;
        letter-spacing: -5px;
    }

    .hero-lead {
        max-width: 475px;
        margin: 24px 0 24px;
        font-size: 16px;
        line-height: 1.65;
    }

    .hero-actions {
        gap: 18px;
    }

    .start-button {
        min-height: 56px;
        padding-inline: 24px;
        border-radius: 15px;
        font-size: 12px;
    }

    .hero-trust {
        gap: 30px;
        margin-top: 34px;
    }

    .hero-trust strong {
        font-size: 20px;
    }

    .service-area-note {
        margin-top: 28px;
    }

    /* Request state: a tall, calm workspace on the right. */
    .assistant-panel {
        align-self: stretch;
        align-items: stretch;
        width: var(--desktop-panel-width);
        height: 100%;
        padding: calc(var(--desktop-header-height) + 42px) var(--desktop-edge) 24px 18px;
        background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--bg) 18%, transparent));
        pointer-events: none;
    }

    .console-window {
        width: 100%;
        height: 100%;
        max-height: none;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
        border-radius: 28px;
        box-shadow: 0 28px 80px color-mix(in srgb, var(--text) 18%, transparent);
        backdrop-filter: blur(24px) saturate(1.08);
    }

    .assistant-heading {
        flex: 0 0 auto;
        align-items: center;
        padding: 22px 24px 14px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
    }

    .assistant-heading h2 {
        margin-top: 5px;
        font-size: 25px;
        letter-spacing: -1.1px;
    }

    .assistant-live {
        padding: 8px 10px;
        font-size: 9px;
        letter-spacing: .4px;
    }

    .console-window > .wizard-steps {
        flex: 0 0 auto;
        padding: 11px 24px 14px;
        background: color-mix(in srgb, var(--surface) 94%, transparent);
    }

    .wizard-step {
        min-height: 42px;
        padding: 8px 11px;
        border-radius: 11px;
    }

    .console-body {
        flex: 1 1 auto;
        min-height: 0;
        padding: 22px 24px 28px;
        overflow-x: hidden;
        background: color-mix(in srgb, var(--surface) 96%, transparent);
    }

    .service-panel,
    .booking-panel {
        width: 100%;
        max-width: 620px;
        margin-right: auto;
        margin-left: auto;
    }

    .panel-title {
        margin-bottom: 16px;
        font-size: 21px;
    }

    .service-grid {
        gap: 13px;
    }

    .service-button {
        min-height: 104px;
        padding: 16px;
        border-radius: 17px;
    }

    .service-icon {
        width: 38px;
        height: 38px;
        border-radius: 12px;
        font-size: 20px;
    }

    .service-content strong {
        font-size: 14px;
    }

    .service-content small {
        max-width: 190px;
        font-size: 11px;
        line-height: 1.4;
    }

    .selection-trust {
        margin-top: 18px;
    }

    .booking-panel {
        padding: 20px;
        border-radius: 18px;
    }

    .route-map {
        height: 220px;
    }

    .route-summary > div {
        padding: 11px 12px;
    }

    /* The footer controls remain available when the assistant is in chat
       mode, but never compete with the booking workspace. */
    .console-dock {
        border-radius: 0 0 27px 27px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .stage-pill--brand {
        grid-template-columns: minmax(190px, 1fr) auto minmax(250px, 1fr);
        gap: 12px;
        padding-inline: 13px;
    }

    .stage-pill--brand .main-nav {
        gap: 1px;
    }

    .stage-pill--brand .nav-link {
        padding-inline: 9px;
        font-size: 9px;
    }

    .stage-pill--brand .ai-badge { max-width: 92px; }
    .stage-pill--brand .online-status { max-width: 102px; font-size: 9px; }
    .stage-pill--brand .eco-badge { max-width: 96px; padding-inline: 6px; font-size: 8px; }

    .hero-copy {
        left: 40px;
        width: min(450px, calc(100vw - 590px));
    }

    .hero-copy h1 {
        font-size: clamp(44px, 5.4vw, 66px);
        letter-spacing: -3.6px;
    }

    .assistant-panel {
        width: min(500px, 46vw);
        padding-right: 16px;
    }
}


/* =========================================================
   DESKTOP BREATHING-ROOM HEADER
   Three independent desktop zones instead of one crowded card.
   Mobile layout is intentionally untouched.
   ========================================================= */

@media (min-width: 901px) {
    .stage-hud--bar {
        top: 22px;
        right: clamp(28px, 4vw, 64px);
        left: clamp(28px, 4vw, 64px);
        width: auto;
        max-width: none;
    }

    .stage-pill--brand {
        display: grid;
        grid-template-columns: minmax(235px, auto) minmax(300px, 1fr) minmax(330px, auto);
        align-items: center;
        width: 100%;
        min-height: 0;
        padding: 0;
        gap: clamp(18px, 3vw, 48px);
        background: transparent;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        backdrop-filter: none;
    }

    .stage-pill--brand .console-dots {
        display: none;
    }

    /* Independent brand island. */
    .stage-pill--brand .brand {
        grid-column: 1;
        display: flex;
        align-items: center;
        min-width: 0;
        min-height: 66px;
        padding: 10px 18px 10px 12px;
        justify-self: start;
        background: color-mix(in srgb, var(--panel) 92%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 18%, var(--line));
        border-radius: 19px;
        box-shadow: 0 14px 34px color-mix(in srgb, var(--text) 12%, transparent);
        backdrop-filter: blur(20px) saturate(1.08);
    }

    .stage-hud--bar .brand-icon {
        width: 42px;
        height: 42px;
        border-radius: 13px;
        font-size: 22px;
    }

    .stage-hud--bar .brand-name {
        font-size: 21px;
        letter-spacing: -1.1px;
    }

    .stage-hud--bar .brand-subtitle {
        margin-top: 3px;
        color: var(--accent);
        font-size: 8px;
        font-weight: 900;
        letter-spacing: 1.45px;
    }

    /* Independent navigation island. */
    .stage-pill--brand .main-nav {
        grid-column: 2;
        display: flex;
        align-items: center;
        justify-content: center;
        justify-self: center;
        min-width: max-content;
        margin: 0;
        padding: 5px;
        gap: 3px;
        background: color-mix(in srgb, var(--panel) 90%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
        border-radius: 16px;
        box-shadow: 0 12px 30px color-mix(in srgb, var(--text) 10%, transparent);
        backdrop-filter: blur(18px) saturate(1.06);
    }

    .stage-pill--brand .nav-link {
        padding: 10px 14px;
        color: var(--text-soft);
        border-radius: 10px;
        font-size: 10px;
        font-weight: 850;
        letter-spacing: .3px;
        transition: color var(--speed) var(--ease), background var(--speed) var(--ease), transform var(--speed) var(--ease);
    }

    .stage-pill--brand .nav-link--active,
    .stage-pill--brand button.nav-link:hover {
        color: var(--accent-ink);
        background: var(--accent);
        box-shadow: 0 7px 16px var(--accent-glow);
    }

    .stage-pill--brand button.nav-link:hover {
        transform: translateY(-1px);
    }

    /* Independent status island. Keep labels readable and give the theme
       control its own breathing room instead of packing everything together. */
    .stage-pill--brand .console-actions {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-content: flex-end;
        min-width: 0;
        margin: 0;
        padding: 9px 10px 9px 13px;
        gap: 10px;
        flex-wrap: nowrap;
        background: color-mix(in srgb, var(--panel) 92%, transparent);
        border: 1px solid color-mix(in srgb, var(--accent) 15%, var(--line));
        border-radius: 17px;
        box-shadow: 0 12px 30px color-mix(in srgb, var(--text) 10%, transparent);
        backdrop-filter: blur(18px) saturate(1.06);
    }

    .stage-pill--brand .ai-badge,
    .stage-pill--brand .online-status,
    .stage-pill--brand .eco-badge {
        flex: 0 1 auto;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stage-pill--brand .ai-badge {
        max-width: 142px;
        padding-inline: 9px;
    }

    .stage-pill--brand .online-status {
        max-width: 124px;
    }

    .stage-pill--brand .eco-badge {
        max-width: 120px;
    }

    .stage-pill--brand .theme-toggle {
        flex: 0 0 40px;
        margin-left: 2px;
    }

    /* Lower the hero slightly so the eyebrow does not read as part of the
       header and remains visually separated from the top islands. */
    .hero-copy {
        top: 56%;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .stage-hud--bar {
        right: 22px;
        left: 22px;
    }

    .stage-pill--brand {
        grid-template-columns: minmax(190px, auto) minmax(240px, 1fr) minmax(250px, auto);
        gap: 12px;
    }

    .stage-pill--brand .brand {
        padding-right: 12px;
    }

    .stage-pill--brand .main-nav {
        gap: 1px;
    }

    .stage-pill--brand .nav-link {
        padding-inline: 9px;
        font-size: 9px;
    }

    .stage-pill--brand .ai-badge {
        max-width: 96px;
    }

    .stage-pill--brand .online-status {
        max-width: 96px;
        font-size: 9px;
    }

    .stage-pill--brand .eco-badge {
        max-width: 92px;
        padding-inline: 6px;
        font-size: 8px;
    }
}


/* =========================================================
   DESKTOP STATUS LABELS ΓÇö KEEP FULL TEXT VISIBLE
   Desktop only. Mobile status behavior remains unchanged.
   ========================================================= */

@media (min-width: 901px) {
    .stage-pill--brand {
        grid-template-columns: minmax(235px, auto) minmax(280px, 1fr) max-content;
    }

    .stage-pill--brand .console-actions {
        width: max-content;
        max-width: none;
        overflow: visible;
        white-space: nowrap;
    }

    .stage-pill--brand .ai-badge,
    .stage-pill--brand .online-status,
    .stage-pill--brand .eco-badge {
        max-width: none;
        overflow: visible;
        text-overflow: clip;
        white-space: nowrap;
        flex: 0 0 auto;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .stage-pill--brand {
        grid-template-columns: minmax(190px, auto) minmax(220px, 1fr) max-content;
        gap: 10px;
    }

    .stage-pill--brand .console-actions {
        gap: 7px;
        padding-inline: 9px;
    }

    .stage-pill--brand .ai-badge,
    .stage-pill--brand .online-status,
    .stage-pill--brand .eco-badge {
        font-size: 8px;
        letter-spacing: .7px;
    }
}


/* =========================================================
   PUHTO VISUAL CLARITY ΓÇö DESKTOP
   Keeps the AI bot solid, detailed and readable without changing
   its geometry, animation or AI behavior. Mobile remains untouched.
   ========================================================= */

@media (min-width: 901px) {
    /* Let the rendered bot carry real colour and edge definition. */
    .robot-container {
        opacity: 1;
        filter: none;
    }

    .robot-container canvas {
        opacity: 1;
        filter: none;
    }

    /* Replace the heavy white veil with a controlled readability gradient:
       the hero gets its own solid surface below, while Puhto remains clear
       through the open center of the stage. */
    .robot-section::after {
        background:
            linear-gradient(90deg,
                color-mix(in srgb, var(--bg) 48%, transparent) 0%,
                color-mix(in srgb, var(--bg) 22%, transparent) 30%,
                color-mix(in srgb, var(--bg) 5%, transparent) 54%,
                transparent 76%),
            linear-gradient(180deg,
                color-mix(in srgb, var(--bg) 8%, transparent) 0%,
                transparent 34%,
                color-mix(in srgb, var(--bg) 12%, transparent) 100%);
    }

    /* The hero copy gets a proper opaque reading surface instead of relying
       on a full-screen transparent wash that hides the robot. */
    .hero-copy {
        isolation: isolate;
        padding: 26px 30px 28px;
        border: 1px solid color-mix(in srgb, var(--accent) 14%, var(--line));
        border-radius: 24px;
        background: color-mix(in srgb, var(--panel) 94%, transparent);
        box-shadow: 0 22px 56px color-mix(in srgb, var(--text) 14%, transparent);
        backdrop-filter: blur(16px) saturate(1.04);
    }

    .hero-copy .hero-eyebrow,
    .hero-copy h1,
    .hero-copy .hero-lead,
    .hero-copy .hero-actions,
    .hero-copy .hero-trust,
    .hero-copy .service-area-note {
        position: relative;
        z-index: 1;
    }

    .hero-copy h1 {
        text-shadow: 0 2px 0 color-mix(in srgb, var(--surface) 42%, transparent);
    }

    /* Keep the bot readable behind the order workspace as well. */
    body[data-app-state="request"] .robot-section::after {
        background:
            linear-gradient(90deg,
                color-mix(in srgb, var(--bg) 34%, transparent) 0%,
                color-mix(in srgb, var(--bg) 10%, transparent) 48%,
                color-mix(in srgb, var(--bg) 8%, transparent) 100%),
            linear-gradient(180deg,
                color-mix(in srgb, var(--bg) 8%, transparent) 0%,
                transparent 42%,
                color-mix(in srgb, var(--bg) 14%, transparent) 100%);
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .hero-copy {
        padding: 22px 24px 24px;
        border-radius: 21px;
    }
}

:root {
    --accent-glow: transparent;
}

body {
    background: var(--bg);
    background-attachment: scroll;
}

.ambient-grid {
    display: none;
}

.robot-container {
    opacity: 1;
    filter: none;
}

.robot-container canvas {
    filter: none;
}

.robot-section::after,
body[data-app-state="request"] .robot-section::after {
    background: none;
}

.hero-copy {
    isolation: auto;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.hero-copy h1 {
    text-shadow: none;
}

.start-button,
.start-button:hover,
.start-button:focus-visible,
.confirm-button,
.send-button,
.route-button,
.mic-button {
    box-shadow: none;
}

.start-button:hover,
.route-button:hover,
.confirm-button:hover,
.send-button:hover {
    filter: none;
}

.online-dot,
.assistant-live i,
.hero-eyebrow-dot,
.scene-readout__pulse {
    box-shadow: none;
}

.scene-readout__pulse {
    animation: none;
}

:root {
    color-scheme: light;
    --bg: #ffffff;
    --bg-glow-a: transparent;
    --bg-glow-b: transparent;
    --panel: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f5;
    --surface-3: #ededed;
    --text: #171717;
    --text-soft: #454545;
    --muted: #707070;
    --line: rgba(23, 23, 23, .14);
    --line-strong: rgba(23, 23, 23, .28);
    --accent: #d71920;
    --accent-bright: #ed2931;
    --accent-ink: #171717;
    --accent-soft: rgba(215, 25, 32, .10);
    --accent-glow: transparent;
    --ok: #267747;
    --ok-soft: rgba(38, 119, 71, .10);
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, .07);
    --shadow-md: 0 14px 34px rgba(0, 0, 0, .10);
    --shadow-lg: 0 28px 70px rgba(0, 0, 0, .14);
    --ring: 0 0 0 3px rgba(255, 106, 0, .25);
}

html,
body {
    color-scheme: light;
    background: #ffffff;
}

body {
    color: var(--text);
    background: var(--bg);
}

.ambient-grid {
    display: none;
}

.robot-section::after,
body[data-app-state="request"] .robot-section::after {
    background: none;
}

.robot-container,
.robot-container canvas {
    opacity: 1;
    filter: none;
}

.stage-pill,
.stage-pill--brand,
.console-window,
.console-dock,
.booking-panel {
    color: var(--text);
    background: var(--panel);
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.stage-hud--bar .brand-name,
.scene-readout strong,
.hero-trust strong,
.hero-copy h1,
.assistant-heading h2,
.panel-title,
.assistant-message,
.user-message,
.service-button,
.booking-panel label {
    color: var(--text);
}

.stage-hud--bar .brand-subtitle,
.hero-eyebrow,
.eyebrow,
.panel-kicker,
.service-area-note span,
.service-icon,
.service-price,
.service-arrow,
.price-preview strong {
    color: var(--accent);
}

.stage-hud--bar .brand-icon {
    color: var(--accent-ink);
    background: var(--accent);
    box-shadow: none;
}

.nav-link,
.hero-caption,
.hero-lead,
.hero-trust span,
.service-area-note,
.scene-readout {
    color: var(--text-soft);
}

.nav-link--active,
button.nav-link:hover {
    color: var(--accent-ink);
    background: var(--accent-soft);
}

.ai-badge,
.online-status,
.eco-badge,
.assistant-live,
.selection-trust span:first-child {
    color: var(--ok);
}

.scene-readout {
    background: var(--panel);
    border-color: var(--line);
    backdrop-filter: none;
}

.hero-copy h1 {
    text-shadow: none;
}

.hero-eyebrow-dot,
.online-dot,
.assistant-live i,
.scene-readout__pulse {
    box-shadow: none;
    animation: none;
}

.assistant-heading,
.conversation,
.console-body {
    color: var(--text);
    background: var(--panel);
}

.console-window > .wizard-steps,
.wizard-step,
.wizard-back,
.quick-chip,
.secondary-button {
    color: var(--text-soft);
    background: var(--surface-2);
    border-color: var(--line);
}

.wizard-step.active,
.wizard-step.done {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: var(--line-strong);
}

.wizard-step i {
    color: var(--text);
    background: var(--surface-3);
}

.wizard-step.active i {
    color: #ffffff;
    background: var(--accent);
}

.speech-card,
.route-intro,
.time-note,
.price-preview {
    color: var(--text-soft);
    background: var(--surface-2);
    border-color: var(--line);
}

.user-message,
.service-button:not(.selected),
.quick-chip,
.secondary-button,
.wizard-back {
    background: var(--surface);
    border-color: var(--line);
}

.service-button.selected,
.quick-chip.selected {
    color: var(--accent-ink);
    background: var(--accent-soft);
    border-color: var(--accent);
    box-shadow: none;
}

.service-button.selected .service-content small,
.service-button.selected .service-price {
    color: var(--text-soft);
}

.service-button.selected .service-arrow {
    color: var(--accent);
}

.booking-panel input,
.booking-panel select,
.booking-panel textarea,
.chat-row input {
    color: var(--text);
    background: #ffffff;
    border-color: var(--line-strong);
}

.booking-panel input::placeholder,
.booking-panel textarea::placeholder,
.chat-row input::placeholder {
    color: var(--muted);
}

.booking-panel input[readonly] {
    color: var(--text-soft);
    background: var(--surface-2);
}

.route-button,
.confirm-button,
.send-button,
.mic-button {
    color: #ffffff;
    background: var(--accent);
}

.start-button {
    color: #ffffff;
    background: var(--accent);
}

.service-button.selected::after,
.success-icon {
    color: var(--accent-ink);
}

.start-button,
.start-button:hover,
.start-button:focus-visible,
.confirm-button,
.send-button,
.route-button,
.mic-button {
    box-shadow: none;
}

.start-button:hover,
.route-button:hover,
.confirm-button:hover,
.send-button:hover {
    filter: none;
}

@media (max-width: 900px) {
    .robot-container {
        opacity: 1;
    }
}

:root {
    --bg: #ffffff;
    --bg-glow-a: transparent;
    --bg-glow-b: transparent;
    --panel: #ffffff;
    --surface: #ffffff;
    --surface-2: #f5f5f5;
    --surface-3: #ededed;
    --accent: #d71920;
    --accent-bright: #ed2931;
    --accent-ink: #ffffff;
    --accent-soft: rgba(215, 25, 32, .10);
    --accent-glow: transparent;
    --ring: 0 0 0 3px rgba(215, 25, 32, .24);
}

html,
body {
    color-scheme: light;
    background: #ffffff;
}

body {
    font-size: 18px;
    font-weight: 700;
    background: #ffffff;
}

body :is(p, span, strong, small, label, button, a, input, select, textarea, h1, h2, h3) {
    font-size: max(1em, 1rem);
    font-weight: 700;
}

.brand-name {
    color: var(--accent) !important;
}

.brand-icon,
.wizard-step.active i,
.route-button,
.confirm-button,
.send-button,
.mic-button,
.start-button {
    color: #ffffff;
    background: var(--accent);
}

.start-button:hover,
.confirm-button:hover,
.send-button:hover,
.route-button:hover {
    background: var(--accent-bright);
    box-shadow: none;
    filter: none;
    transform: none;
}

.robot-section,
.robot-container {
    background: #ffffff;

    .assistant-panel {
        background: transparent;
    }

    .console-window,
    .console-window > .wizard-steps,
    .conversation,
    .console-dock,
    .speech-card,
    .service-button:not(.selected),
    .quick-chip,
    .secondary-button,
    .wizard-back,
    .booking-panel,
    .booking-panel input,
    .booking-panel select,
    .booking-panel textarea,
    .chat-row input,
    .stage-hud--bar .stage-pill {
        color: var(--text);
        background: var(--panel);
        border-color: var(--line);
    }
}

@media (max-width: 900px) {
    .stage-hud--bar {
        top: calc(8px + env(safe-area-inset-top, 0px));
        right: 12px;
        left: 12px;
        width: auto;
        max-width: none;
    }

    .stage-hud--bar .stage-pill {
        width: max-content;
        max-width: 100%;
        gap: 8px;
        padding: 6px 9px;
    }

    .stage-pill--brand .console-dots {
        display: none;
    }
}




/* =========================================================
   MOBILE LAYOUT ΓÇö professional, bot left, hero bottom-center
   ========================================================= */

@media (max-width: 900px) {

    /* ΓöÇΓöÇ Bot: full background, slightly left-biased ΓöÇΓöÇ */
    .robot-container {
        position: absolute;
        inset: 0;
        opacity: 1;
        pointer-events: none;
    }

    .robot-container canvas {
        width: 100% !important;
        height: 100% !important;
    }

    /* Subtle gradient so hero card text stays readable over the bot */
    .robot-section::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        pointer-events: none;
        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,0)   0%,
                rgba(255,255,255,0)  42%,
                rgba(255,255,255,.55) 68%,
                rgba(255,255,255,.92) 100%
            );
    }

    /* ΓöÇΓöÇ Hero card: bottom-center, full readable width ΓöÇΓöÇ */
    .start-overlay {
        display: flex !important;
        align-items: flex-end;
        justify-content: center;
        padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
    }

    .hero-copy {
        position: static !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 480px;
        padding: 22px 20px 20px;
        background: rgba(255,255,255,.96);
        border: 1px solid rgba(215,25,32,.12);
        border-radius: 20px;
        box-shadow: 0 -4px 32px rgba(0,0,0,.10), 0 8px 24px rgba(0,0,0,.08);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        isolation: isolate;
        text-align: left;
    }

    /* Eyebrow */
    .hero-copy .hero-eyebrow {
        font-size: 9px;
        letter-spacing: 1.8px;
        margin-bottom: 10px;
        color: var(--accent);
        gap: 7px;
    }

    .hero-eyebrow-dot {
        width: 6px;
        height: 6px;
        box-shadow: none;
    }

    /* Headline */
    .hero-copy h1 {
        font-size: clamp(26px, 7vw, 36px) !important;
        line-height: 1.08 !important;
        letter-spacing: -1.5px !important;
        color: #171717;
        margin-bottom: 10px;
        font-weight: 800;
        text-shadow: none !important;
    }

    .hero-copy h1 em {
        color: var(--accent);
        font-style: normal;
    }

    /* Lead text */
    .hero-lead {
        font-size: 13px !important;
        line-height: 1.55 !important;
        color: #454545 !important;
        margin: 0 0 16px !important;
        max-width: none !important;
        font-weight: 500;
    }

    /* CTA row */
    .hero-actions {
        display: flex;
        align-items: center;
        gap: 12px;
        flex-wrap: wrap;
        margin-bottom: 0;
    }

    /* ΓöÇΓöÇ Start button: identical to desktop ΓöÇΓöÇ */
    .start-button {
        position: static !important;
        transform: none !important;
        min-width: 0 !important;
        min-height: 52px !important;
        width: auto;
        padding: 0 24px !important;
        font-size: 12px !important;
        font-weight: 900;
        letter-spacing: .8px;
        color: #ffffff !important;
        background: var(--accent) !important;
        border-radius: 13px !important;
        box-shadow: none !important;
        border: none;
        flex: 1;
    }

    .start-button span {
        display: inline-block;
        margin-left: 10px;
        font-size: 16px;
        line-height: 0;
    }

    .start-button:hover,
    .start-button:active {
        transform: none !important;
        background: var(--accent-bright) !important;
        box-shadow: none !important;
        filter: none !important;
    }

    .hero-caption {
        font-size: 10px;
        font-weight: 600;
        color: #707070;
        line-height: 1.4;
        flex: 0 0 auto;
    }

    /* Trust bar */
    .hero-trust {
        display: flex !important;
        gap: 0 !important;
        margin-top: 16px !important;
        padding-top: 14px !important;
        border-top: 1px solid rgba(23,23,23,.10) !important;
        flex-wrap: nowrap;
    }

    .hero-trust div {
        flex: 1;
        display: grid;
        gap: 2px;
        padding-right: 12px;
    }

    .hero-trust div + div {
        padding-left: 12px;
        padding-right: 12px;
        border-left: 1px solid rgba(23,23,23,.10);
    }

    .hero-trust div:last-child {
        display: grid !important; /* override any hide rule */
    }

    .hero-trust strong {
        font-size: 15px !important;
        font-weight: 800;
        color: var(--accent) !important;
        letter-spacing: -.3px;
    }

    .hero-trust span {
        font-size: 9px !important;
        font-weight: 700;
        color: #707070 !important;
        letter-spacing: .3px;
        text-transform: uppercase;
    }

    /* Service area note */
    .service-area-note {
        margin-top: 10px !important;
        font-size: 10px !important;
        font-weight: 600;
        color: #888 !important;
    }

    .service-area-note span {
        color: var(--accent) !important;
        font-size: 13px;
        margin-right: 4px;
    }

    /* Top bar compact */
    .stage-hud--bar {
        top: calc(10px + env(safe-area-inset-top, 0px));
        left: 12px;
        right: 12px;
        width: auto;
        max-width: none;
    }

    .stage-pill--brand {
        width: 100%;
        min-height: 50px;
        padding: 7px 12px;
        gap: 8px;
    }

    .stage-hud--bar .brand-name {
        font-size: 16px;
        letter-spacing: -.5px;
    }

    /* Console panel */
    .assistant-panel {
        width: 100% !important;
        padding: calc(72px + env(safe-area-inset-top, 0px)) 10px
                 calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    }

    .console-window {
        width: 100%;
        height: 100%;
        max-height: none;
        border-radius: 20px;
    }

}

/* ΓöÇΓöÇ Small phones ΓöÇΓöÇ */
@media (max-width: 480px) {

    .hero-copy {
        padding: 18px 16px 16px;
        border-radius: 18px;
    }

    .hero-copy h1 {
        font-size: clamp(23px, 6.5vw, 30px) !important;
    }

    .hero-lead {
        font-size: 12px !important;
    }

    .start-button {
        min-height: 48px !important;
        font-size: 11px !important;
    }

    .hero-trust strong {
        font-size: 14px !important;
    }

}

/* ΓöÇΓöÇ Landscape phone: keep hero compact ΓöÇΓöÇ */
@media (max-width: 900px) and (max-height: 500px) {

    .start-overlay {
        align-items: center;
        padding-bottom: 12px;
    }

    .hero-copy {
        padding: 14px 16px;
        border-radius: 16px;
    }

    .hero-copy h1 {
        font-size: clamp(20px, 4.5vw, 26px) !important;
        margin-bottom: 6px;
    }

    .hero-lead {
        font-size: 11px !important;
        margin-bottom: 10px !important;
    }

    .hero-trust,
    .service-area-note {
        display: none !important;
    }

}


/* =========================================================
   DESKTOP PROFESSIONAL ENHANCEMENTS
   Refined spacing, typography, and visual hierarchy for desktop
   ========================================================= */

@media (min-width: 901px) {
    .stage-hud {
        position: static;
        display: flex;
        width: 100%;
    }

    .stage-hud--bar {
        position: static;
        top: auto;
        right: auto;
        left: auto;
        width: 100%;
        max-width: none;
        padding: 20px 32px 0;
        justify-content: center;
    }

    .stage-pill--brand {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 18px;
        width: min(1200px, calc(100vw - 64px));
        min-height: 76px;
        padding: 14px 20px;
        background: rgba(255, 255, 255, .98);
        border: 1px solid rgba(215, 25, 32, .16);
        box-shadow: 0 20px 52px rgba(0, 0, 0, .11);
    }

    .stage-pill--brand .brand {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 14px;
        flex: 1 1 0;
    }

    .stage-hud--bar .brand-icon {
        width: 46px;
        height: 46px;
        font-size: 24px;
    }

    .stage-hud--bar .brand-name {
        font-size: 22px;
        letter-spacing: -1.2px;
        font-weight: 900;
    }

    .stage-pill--brand .main-nav {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        flex: 0 0 auto;
        margin: 0;
    }

    .stage-pill--brand .nav-link {
        padding: 11px 16px;
        font-size: 11px;
        font-weight: 900;
        letter-spacing: .5px;
    }

    .stage-pill--brand .console-actions {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        flex: 1 1 0;
        margin: 0;
    }

    /* Wider, more spacious console */
    .assistant-panel {
        width: clamp(580px, 43vw, 720px);
        padding: 32px clamp(28px, 2.4vw, 44px) 32px 28px;
    }

    .console-window {
        border-radius: 30px;
        box-shadow: 0 28px 72px rgba(0, 0, 0, .14);
    }

    .console-body {
        padding: 32px;
        gap: 16px;
    }

    .assistant-heading {
        padding: 28px 32px 18px;
    }

    .assistant-heading h2 {
        font-size: 30px;
        letter-spacing: -1px;
        font-weight: 900;
    }

    .console-window > .wizard-steps {
        padding: 14px 32px 18px;
    }

    .wizard-step {
        min-height: 46px;
        padding: 10px 14px;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: .5px;
    }

    .service-grid {
        gap: 16px;
    }

    .service-button {
        min-height: 112px;
        padding: 20px;
        border-radius: 20px;
        gap: 14px;
    }

    .service-icon {
        width: 44px;
        height: 44px;
        font-size: 24px;
        border-radius: 13px;
    }

    .service-content strong {
        font-size: 16px;
        font-weight: 900;
        line-height: 1.3;
    }

    .service-content small {
        font-size: 13px;
        line-height: 1.5;
        max-width: 200px;
    }

    .service-price {
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 1.2px;
        margin-top: 8px;
    }

    .booking-panel {
        padding: 28px;
        border-radius: 22px;
    }

    .booking-panel label {
        margin-top: 18px;
        font-size: 11px;
        font-weight: 800;
        letter-spacing: 1.6px;
    }

    .booking-panel input,
    .booking-panel select,
    .booking-panel textarea {
        min-height: 52px;
        font-size: 16px;
        border-radius: 12px;
    }

    .panel-title {
        font-size: 24px;
        font-weight: 900;
        margin-bottom: 20px;
        letter-spacing: -.8px;
    }

    .panel-kicker {
        font-size: 10px;
        font-weight: 900;
        letter-spacing: 1.8px;
        margin-bottom: 10px;
    }

    .console-dock {
        padding: 20px 32px calc(20px + env(safe-area-inset-bottom, 0px));
        border-radius: 0 0 29px 29px;
    }

    .route-map {
        height: 260px;
        border-radius: 16px;
    }

    .route-summary {
        gap: 10px;
        margin-top: 12px;
    }

    .route-summary > div {
        padding: 12px 14px;
        border-radius: 12px;
    }

    .route-summary strong {
        font-size: 15px;
    }

    /* Hero section refinement */
    .hero-copy h1 {
        font-size: clamp(56px, 5.4vw, 84px);
        line-height: .92;
        letter-spacing: -5px;
        font-weight: 900;
    }

    .hero-lead {
        font-size: 17px;
        line-height: 1.7;
        margin-top: 26px;
    }

    .hero-eyebrow {
        font-size: 11px;
        letter-spacing: 2.4px;
        margin-bottom: 20px;
    }

    .start-button {
        min-height: 58px;
        padding: 0 28px;
        font-size: 13px;
        letter-spacing: 1px;
        font-weight: 900;
        border-radius: 16px;
    }

    .hero-trust {
        gap: 36px;
        margin-top: 40px;
    }

    .hero-trust strong {
        font-size: 22px;
        font-weight: 900;
    }

    .hero-trust span {
        font-size: 11px;
        font-weight: 800;
        letter-spacing: .5px;
    }
}

@media (min-width: 901px) and (max-width: 1180px) {
    .assistant-panel {
        width: min(540px, 47vw);
    }

    .console-window {
        border-radius: 28px;
    }

    .service-button {
        min-height: 104px;
        padding: 18px;
    }

    .assistant-heading h2 {
        font-size: 26px;
    }

    .panel-title {
        font-size: 21px;
    }
}

@media (max-width: 768px) {
    body[data-app-state="start"] {
        height: auto;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
    }

    body[data-app-state="start"] .app {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    body[data-app-state="start"] .main {
        display: block;
        flex: none;
        min-height: 0;
        overflow: visible;
    }

    body[data-app-state="start"] .robot-section {
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    body[data-app-state="start"] .robot-container {
        position: relative;
        inset: auto;
        display: flex;
        align-items: flex-end;
        justify-content: center;
        width: 100%;
        height: clamp(300px, 56dvh, 480px);
        z-index: 1;
        overflow: visible;
    }

    body[data-app-state="start"] .robot-container canvas {
        position: relative;
        z-index: 1;
        display: block;
        width: auto !important;
        max-width: 90%;
        height: auto !important;
        max-height: 56dvh;
        object-fit: contain;
        margin: 0 auto;
    }

    body[data-app-state="start"] .start-overlay {
        position: relative;
        inset: auto;
        display: flex !important;
        align-items: flex-start;
        justify-content: center;
        width: 100%;
        min-height: 0;
        padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
        z-index: 2;
    }

    body[data-app-state="start"] .hero-copy {
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        transform: none !important;
        width: 100% !important;
        max-width: 520px;
        z-index: 2;
        margin: 0 auto;
        padding: 28px 22px 22px;
        border: 1px solid rgba(215, 25, 32, .12);
        border-radius: 24px;
        background: rgba(255, 255, 255, .98);
        box-shadow: 0 20px 52px rgba(12, 13, 14, .12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        text-align: left;
    }

    body[data-app-state="start"] .hero-copy h1 {
        margin-bottom: 12px;
        font-family: "Space Grotesk", "DM Sans", sans-serif;
        font-size: clamp(30px, 8vw, 40px) !important;
        font-weight: 700;
        line-height: 1.04 !important;
        letter-spacing: -1.8px !important;
    }

    body[data-app-state="start"] .hero-lead {
        margin: 0 0 20px !important;
        font-size: 14px !important;
        font-weight: 500;
        line-height: 1.6 !important;
    }

    body[data-app-state="start"] .hero-actions {
        gap: 12px;
    }

    body[data-app-state="start"] .start-button {
        width: 100%;
        min-height: 58px !important;
        border: 1px solid rgba(255, 255, 255, .3);
        border-radius: 14px !important;
        background: linear-gradient(135deg, #d71920, #a90f17) !important;
        box-shadow: 0 10px 24px rgba(169, 15, 23, .2) !important;
        font-size: 13px !important;
        font-weight: 800;
        letter-spacing: .7px;
    }

    body[data-app-state="start"] .hero-caption {
        font-size: 11px !important;
        font-weight: 500;
        line-height: 1.45;
    }

    body[data-app-state="start"] .hero-trust {
        justify-content: space-between;
        gap: 12px;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid rgba(12, 13, 14, .08);
    }
}

/* Mobile start screen: stack the 3D robot above the hero copy instead of
   letting the two layers compete for the same absolute-positioned space. */
@media (max-width: 900px) {
    body[data-app-state="start"] .robot-section {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        overflow: hidden;
    }

    body[data-app-state="start"] .robot-container {
        position: relative;
        inset: auto;
        flex: 0 0 clamp(330px, 55dvh, 470px);
        min-height: 0;
        order: 1;
        pointer-events: none;
    }

    body[data-app-state="start"] .start-overlay {
        position: relative;
        inset: auto;
        display: flex;
        flex: 1 1 auto;
        min-height: 0;
        order: 2;
        align-items: flex-start;
        justify-content: center;
        padding: 0 12px max(12px, env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        pointer-events: none;
    }

    body[data-app-state="start"] .hero-copy {
        position: relative;
        top: auto;
        left: auto;
        width: min(100%, 520px);
        margin: 0 auto;
        transform: none;
    }
}

/* =========================================================
   MOBILE START APP SURFACE
   ========================================================= */

@media (max-width: 768px) {
    body[data-app-state="start"] .robot-section {
        overflow: visible;
        background: #ffffff;
    }

    body[data-app-state="start"] .robot-container {
        flex: 0 0 clamp(286px, 38dvh, 350px);
        height: clamp(286px, 38dvh, 350px);
        background: #ffffff;
    }

    body[data-app-state="start"] .robot-container canvas {
        max-height: 100%;
        max-width: 100%;
    }

    body[data-app-state="start"] .start-overlay {
        padding: 0 12px calc(24px + env(safe-area-inset-bottom, 0px));
        overflow: visible;
    }

    body[data-app-state="start"] .hero-copy {
        max-width: 520px;
        padding: 22px 16px 18px;
        border-radius: 24px;
        border-color: rgba(215, 25, 32, .15);
        box-shadow: 0 14px 42px rgba(12, 13, 14, .11);
    }

    body[data-app-state="start"] .hero-copy h1 {
        margin-bottom: 9px;
        font-size: clamp(29px, 8vw, 38px) !important;
        letter-spacing: -1.6px !important;
    }

    body[data-app-state="start"] .hero-lead {
        margin-bottom: 15px !important;
        font-size: 13px !important;
        line-height: 1.5 !important;
    }

    body[data-app-state="start"] .hero-trust {
        margin-top: 18px;
        padding-top: 15px;
    }

    .mobile-service-picker {
        display: block;
        margin-top: 22px;
        padding-top: 18px;
        border-top: 1px solid rgba(12, 13, 14, .09);
    }

    .mobile-service-heading {
        margin-bottom: 12px;
    }

    .mobile-service-kicker {
        display: block;
        margin-bottom: 4px;
        color: var(--accent);
        font-size: 9px;
        font-weight: 900;
        letter-spacing: 1.8px;
    }

    .mobile-service-heading h2 {
        margin: 0;
        color: var(--text);
        font-family: "Space Grotesk", "DM Sans", sans-serif;
        font-size: 22px;
        font-weight: 800;
        letter-spacing: -.7px;
        line-height: 1.1;
    }

    .mobile-service-heading p {
        margin-top: 5px;
        color: var(--muted);
        font-size: 12px;
        font-weight: 500;
        line-height: 1.4;
    }

    .mobile-service-list {
        display: grid;
        gap: 9px;
    }

    .mobile-service-button {
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 70px;
        padding: 11px 12px;
        gap: 11px;
        color: var(--text);
        background: #ffffff;
        border: 1px solid rgba(12, 13, 14, .11);
        border-radius: 16px;
        box-shadow: 0 5px 16px rgba(12, 13, 14, .07);
        text-align: left;
        touch-action: manipulation;
        transition: transform var(--speed) var(--ease), border-color var(--speed) var(--ease),
            background-color var(--speed) var(--ease), box-shadow var(--speed) var(--ease);
    }

    .mobile-service-button:active {
        transform: scale(.985);
    }

    .mobile-service-icon {
        display: grid;
        flex: none;
        place-items: center;
        width: 42px;
        height: 42px;
        color: #ffffff;
        background: var(--accent);
        border-radius: 13px;
        box-shadow: 0 6px 14px rgba(215, 25, 32, .2);
    }

    .mobile-service-icon svg {
        width: 22px;
        height: 22px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.8;
    }

    .mobile-service-copy {
        display: block;
        flex: 1;
        min-width: 0;
    }

    .mobile-service-copy strong {
        display: block;
        color: var(--text);
        font-size: 14px;
        font-weight: 800;
        line-height: 1.2;
    }

    .mobile-service-copy small {
        display: block;
        margin-top: 4px;
        color: var(--muted);
        font-size: 11px;
        font-weight: 500;
        line-height: 1.25;
    }

    .mobile-service-arrow {
        flex: none;
        color: var(--accent);
        font-size: 21px;
        font-weight: 800;
        line-height: 1;
    }

    .mobile-service-button.selected {
        color: #ffffff;
        background: var(--accent);
        border-color: var(--accent);
        box-shadow: 0 9px 20px rgba(215, 25, 32, .22);
    }

    .mobile-service-button.selected .mobile-service-icon {
        color: var(--accent);
        background: #ffffff;
        box-shadow: none;
    }

    .mobile-service-button.selected .mobile-service-copy strong,
    .mobile-service-button.selected .mobile-service-copy small,
    .mobile-service-button.selected .mobile-service-arrow {
        color: #ffffff;
    }
}

@media (min-width: 769px) {
    .mobile-service-picker {
        display: none;
    }
}

/* =========================================================
   MOBILE START: BOT + INTRO SIDE BY SIDE, SERVICES 2 x 2
   ========================================================= */

@media (max-width: 768px) {
    body[data-app-state="start"] .robot-section {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        grid-template-rows: auto auto;
        align-items: stretch;
        overflow: visible;
        background: #ffffff;
    }

    /* The canvas is the left half of the compact mobile welcome row. */
    body[data-app-state="start"] .robot-container {
        grid-column: 1;
        grid-row: 1;
        position: relative;
        inset: auto;
        display: flex;
        align-items: center;
        justify-content: center;
        width: auto;
        height: clamp(238px, 32dvh, 286px);
        min-height: 238px;
        flex: none;
        background: #ffffff;
        overflow: visible;
    }

    body[data-app-state="start"] .robot-container canvas {
        width: 100% !important;
        max-width: 100%;
        height: 100% !important;
        max-height: 100%;
        object-fit: contain;
        margin: 0;
    }

    /* Let the intro and service picker become grid items of robot-section. */
    body[data-app-state="start"] .start-overlay {
        position: static;
        inset: auto;
        display: contents !important;
        padding: 0;
        overflow: visible;
        pointer-events: none;
    }

    body[data-app-state="start"] .hero-copy {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        position: relative !important;
        top: auto !important;
        left: auto !important;
        right: auto !important;
        width: auto !important;
        max-width: none;
        margin: 0;
        padding: 12px 12px 12px 3px;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        text-align: left;
        pointer-events: auto;
    }

    body[data-app-state="start"] .hero-copy h1 {
        max-width: 170px;
        margin: 0 0 8px;
        font-size: clamp(19px, 5.5vw, 25px) !important;
        line-height: 1.04 !important;
        letter-spacing: -1px !important;
    }

    body[data-app-state="start"] .hero-lead {
        max-width: 172px;
        margin: 0 !important;
        color: #555555 !important;
        font-size: 10.5px !important;
        font-weight: 600;
        line-height: 1.42 !important;
    }

    body[data-app-state="start"] .hero-actions,
    body[data-app-state="start"] .hero-trust,
    body[data-app-state="start"] .mobile-service-heading {
        display: none !important;
    }

    body[data-app-state="start"] .mobile-service-picker {
        grid-column: 1 / -1;
        grid-row: 2;
        display: block;
        width: 100%;
        margin: 0;
        padding: 10px 12px calc(24px + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid rgba(12, 13, 14, .09);
        pointer-events: auto;
    }

    body[data-app-state="start"] .mobile-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    body[data-app-state="start"] .mobile-service-button {
        position: relative;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        min-height: 102px;
        padding: 9px 9px 8px;
        gap: 5px;
        border-radius: 14px;
    }

    body[data-app-state="start"] .mobile-service-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
    }

    body[data-app-state="start"] .mobile-service-icon svg {
        width: 16px;
        height: 16px;
    }

    body[data-app-state="start"] .mobile-service-copy {
        width: 100%;
        padding-right: 4px;
    }

    body[data-app-state="start"] .mobile-service-copy strong {
        font-size: 11px;
        line-height: 1.16;
    }

    body[data-app-state="start"] .mobile-service-copy small {
        margin-top: 3px;
        font-size: 9px;
        line-height: 1.2;
    }

    body[data-app-state="start"] .mobile-service-arrow {
        position: absolute;
        top: 9px;
        right: 9px;
        font-size: 16px;
    }
}

/* =========================================================
   MOBILE APP SURFACE ΓÇö FULL SCREEN, CALM SELECTION STATE
   ========================================================= */

@media (max-width: 768px) {
    html,
    body {
        min-height: 100%;
        background: #f6f6f7;
    }

    body[data-app-state="start"] {
        height: 100dvh;
        min-height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        background: #f6f6f7;
    }

    body[data-app-state="start"] .app,
    body[data-app-state="start"] .main {
        min-height: 100dvh;
        height: auto;
        overflow: visible;
    }

    body[data-app-state="start"] .main {
        display: block;
    }

    body[data-app-state="start"] .robot-section {
        display: grid;
        grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
        grid-template-rows: clamp(300px, 42dvh, 354px) minmax(0, 1fr);
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
        background: #f6f6f7;
    }

    /* Remove the old full-stage wash; the app surface owns its own contrast. */
    body[data-app-state="start"] .robot-section::after {
        display: none;
    }

    body[data-app-state="start"] .robot-container {
        grid-column: 2;
        grid-row: 1;
        height: auto;
        min-height: 0;
        padding: 56px 8px 8px;
        background: #f6f6f7;
        overflow: hidden;
    }

    body[data-app-state="start"] .robot-container canvas {
        width: 100% !important;
        height: 100% !important;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    /* The intro sits beside the bot, below the floating brand header. */
    body[data-app-state="start"] .hero-copy {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        padding: 76px 2px 14px 14px;
        background: transparent;
    }

    body[data-app-state="start"] .hero-copy h1 {
        max-width: 170px;
        margin-bottom: 8px;
        font-size: clamp(19px, 5.5vw, 25px) !important;
        line-height: 1.04 !important;
        letter-spacing: -1px !important;
    }

    body[data-app-state="start"] .hero-lead {
        max-width: 172px;
        font-size: 10.5px !important;
        line-height: 1.42 !important;
    }

    body[data-app-state="start"] .hero-actions,
    body[data-app-state="start"] .hero-trust,
    body[data-app-state="start"] .mobile-service-heading {
        display: none !important;
    }

    /* Bottom-sheet service area fills the rest of the phone screen. */
    body[data-app-state="start"] .mobile-service-picker {
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        flex-direction: column;
        justify-content: center;
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 22px 12px calc(24px + env(safe-area-inset-bottom, 0px));
        background: #ffffff;
        border: 1px solid rgba(12, 13, 14, .08);
        border-bottom: 0;
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -8px 28px rgba(12, 13, 14, .06);
        pointer-events: auto;
    }

    body[data-app-state="start"] .mobile-service-picker::before {
        content: "";
        flex: none;
        width: 36px;
        height: 4px;
        margin: 0 auto 18px;
        background: #dedee1;
        border-radius: 999px;
    }

    body[data-app-state="start"] .mobile-service-list {
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    /* Calm, compact cards: no bright fill or selection bloom. */
    body[data-app-state="start"] .mobile-service-button,
    body[data-app-state="start"] .mobile-service-button:hover,
    body[data-app-state="start"] .mobile-service-button:focus {
        min-height: 116px;
        padding: 11px 10px;
        gap: 7px;
        color: var(--text);
        background: #ffffff;
        border: 1px solid #e5e5e7;
        border-radius: 15px;
        box-shadow: 0 2px 9px rgba(12, 13, 14, .06);
        transform: none;
        filter: none;
    }

    body[data-app-state="start"] .mobile-service-button:active {
        transform: scale(.985);
        box-shadow: 0 1px 5px rgba(12, 13, 14, .05);
    }

    body[data-app-state="start"] .mobile-service-icon,
    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-icon {
        width: 34px;
        height: 34px;
        color: var(--accent);
        background: rgba(215, 25, 32, .10);
        border-radius: 10px;
        box-shadow: none;
        transform: none;
    }

    body[data-app-state="start"] .mobile-service-icon svg {
        width: 18px;
        height: 18px;
    }

    body[data-app-state="start"] .mobile-service-copy strong,
    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-copy strong {
        color: var(--text);
        font-size: 11px;
        line-height: 1.16;
    }

    body[data-app-state="start"] .mobile-service-copy small,
    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-copy small {
        color: var(--muted);
        font-size: 9px;
        line-height: 1.2;
    }

    body[data-app-state="start"] .mobile-service-arrow,
    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-arrow {
        color: var(--accent);
        font-size: 16px;
    }

    /* Selection is communicated by a border and check only. */
    body[data-app-state="start"] .mobile-service-button.selected {
        color: var(--text);
        background: #ffffff;
        border: 2px solid var(--accent);
        box-shadow: none;
        transform: none;
        filter: none;
    }

    body[data-app-state="start"] .mobile-service-button.selected::before {
        display: none;
    }

    body[data-app-state="start"] .mobile-service-button.selected::after {
        display: grid;
        place-items: center;
        top: 7px;
        right: 7px;
        width: 18px;
        height: 18px;
        color: #ffffff;
        background: var(--accent);
        border: 0;
        border-radius: 50%;
        font-size: 11px;
        opacity: 1;
    }
}

/* Mobile brand mark: centered red wordmark without the M tile. */
@media (max-width: 768px) {
    body[data-app-state="start"] .stage-hud--bar {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: auto;
        left: 50%;
        width: max-content;
        max-width: calc(100% - 24px);
        transform: translateX(-50%);
    }

    body[data-app-state="start"] .stage-pill--brand {
        display: flex;
        justify-content: center;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 24px);
        padding: 10px 22px;
        color: #ffffff;
        background: #d71920 !important;
        background-image: none !important;
        border: 0;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(215, 25, 32, .22);
    }

    body[data-app-state="start"] .stage-pill--brand .brand {
        justify-content: center;
        gap: 0;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-icon {
        display: none;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-info {
        text-align: center;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name,
    body[data-app-state="start"] .stage-pill--brand .brand-subtitle {
        color: #ffffff !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-subtitle {
        margin-top: 2px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    body[data-app-state="start"] .stage-pill--brand .main-nav {
        display: none !important;
    }
}

/* =========================================================
   MOBILE RED APP THEME ΓÇö BLACK HEADLINE, WHITE UI
   ========================================================= */

@media (max-width: 768px) {
    :root {
        --mobile-red: #d71920;
        --mobile-red-deep: #b51219;
        --mobile-white: #ffffff;
        --mobile-black: #111111;
    }

    html,
    body,
    body[data-app-state="start"],
    body[data-app-state="start"] .app,
    body[data-app-state="start"] .main,
    body[data-app-state="start"] .robot-section,
    body[data-app-state="start"] .robot-container {
        background: var(--mobile-red) !important;
    }

    body[data-app-state="start"] .ambient-grid {
        display: none;
    }

    body[data-app-state="start"] .hero-copy h1 {
        color: var(--mobile-black) !important;
        text-shadow: none;
    }

    body[data-app-state="start"] .hero-copy h1 em {
        color: var(--mobile-white) !important;
    }

    body[data-app-state="start"] .hero-lead {
        color: var(--mobile-white) !important;
    }

    body[data-app-state="start"] .stage-pill--brand {
        background: var(--mobile-red-deep) !important;
        border: 1px solid rgba(255, 255, 255, .28);
        box-shadow: 0 8px 20px rgba(90, 0, 5, .22);
    }

    body[data-app-state="start"] .mobile-service-picker {
        background: var(--mobile-red) !important;
        border-color: rgba(255, 255, 255, .25);
        border-radius: 28px 28px 0 0;
        box-shadow: 0 -8px 28px rgba(90, 0, 5, .18);
    }

    body[data-app-state="start"] .mobile-service-picker::before {
        background: rgba(255, 255, 255, .70);
    }

    /* Default state: black cards with white content. */
    body[data-app-state="start"] .mobile-service-button,
    body[data-app-state="start"] .mobile-service-button:hover,
    body[data-app-state="start"] .mobile-service-button:focus {
        color: var(--mobile-white) !important;
        background: var(--mobile-black) !important;
        border-color: rgba(255, 255, 255, .32) !important;
        box-shadow: none !important;
        filter: none !important;
    }

    body[data-app-state="start"] .mobile-service-button:focus-visible {
        outline: 2px solid var(--mobile-white);
        outline-offset: 2px;
    }

    body[data-app-state="start"] .mobile-service-icon {
        color: var(--mobile-white);
        background: rgba(255, 255, 255, .16);
        border: 1px solid rgba(255, 255, 255, .28);
        box-shadow: none;
    }

    body[data-app-state="start"] .mobile-service-icon svg {
        stroke: var(--mobile-white);
    }

    body[data-app-state="start"] .mobile-service-copy strong,
    body[data-app-state="start"] .mobile-service-copy small {
        color: var(--mobile-white);
    }

    body[data-app-state="start"] .mobile-service-arrow {
        color: var(--accent);
    }

    /* Selected state: solid red card with white content and no glow.
       Include interaction states because the preview and keyboard users may
       leave the button focused while the selected class is applied. */
    body[data-app-state="start"] .mobile-service-button.selected,
    body[data-app-state="start"] .mobile-service-button.selected:hover,
    body[data-app-state="start"] .mobile-service-button.selected:focus,
    body[data-app-state="start"] .mobile-service-button.selected:active {
        color: var(--mobile-white) !important;
        background: var(--mobile-red) !important;
        border: 2px solid rgba(255, 255, 255, .82) !important;
        box-shadow: none !important;
        filter: none !important;
    }

    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-icon {
        color: var(--mobile-white);
        background: rgba(255, 255, 255, .16);
        border-color: rgba(255, 255, 255, .32);
        box-shadow: none;
    }

    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-icon svg {
        stroke: var(--mobile-white);
    }

    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-copy strong,
    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-copy small {
        color: var(--mobile-white);
    }

    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-arrow {
        color: var(--accent);
    }

    body[data-app-state="start"] .mobile-service-button.selected::after {
        color: var(--mobile-red);
        background: var(--mobile-white);
    }
}

/* =========================================================
   PHONE REQUEST FOCUS
   After a service is selected, show only the active question/form.
   ========================================================= */

@media (max-width: 768px) {
    html[data-wizard-step="2"] body[data-app-state="request"] #service-panel,
    html[data-wizard-step="3"] body[data-app-state="request"] #service-panel,
    html[data-wizard-step="2"] body[data-app-state="request"] .quick-rail,
    html[data-wizard-step="3"] body[data-app-state="request"] .quick-rail {
        display: none !important;
    }

    html[data-wizard-step="2"] body[data-app-state="request"] label[for="booking-service"],
    html[data-wizard-step="2"] body[data-app-state="request"] #booking-service,
    html[data-wizard-step="3"] body[data-app-state="request"] label[for="booking-service"],
    html[data-wizard-step="3"] body[data-app-state="request"] #booking-service {
        display: none !important;
    }

    /* The wordmark is identical and centered on the start and request screens. */
    body[data-app-state="start"] .stage-hud--bar,
    body[data-app-state="request"] .stage-hud--bar {
        top: calc(12px + env(safe-area-inset-top, 0px));
        right: auto;
        left: 50%;
        width: max-content;
        max-width: calc(100% - 24px);
        transform: translateX(-50%);
    }

    body[data-app-state="start"] .stage-pill--brand,
    body[data-app-state="request"] .stage-pill--brand {
        display: flex;
        justify-content: center;
        width: max-content;
        min-width: 0;
        max-width: calc(100vw - 24px);
        padding: 10px 22px;
        color: #ffffff;
        background: #d71920 !important;
        background-image: none !important;
        border: 2px solid #111111;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(215, 25, 32, .22);
    }

    body[data-app-state="start"] .stage-pill--brand .brand,
    body[data-app-state="request"] .stage-pill--brand .brand {
        justify-content: center;
        gap: 0;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-icon,
    body[data-app-state="request"] .stage-pill--brand .brand-icon,
    body[data-app-state="start"] .stage-pill--brand .main-nav,
    body[data-app-state="request"] .stage-pill--brand .main-nav {
        display: none !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-info,
    body[data-app-state="request"] .stage-pill--brand .brand-info {
        text-align: center;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name,
    body[data-app-state="start"] .stage-pill--brand .brand-subtitle,
    body[data-app-state="request"] .stage-pill--brand .brand-name,
    body[data-app-state="request"] .stage-pill--brand .brand-subtitle {
        color: #ffffff !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name,
    body[data-app-state="request"] .stage-pill--brand .brand-name {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-subtitle,
    body[data-app-state="request"] .stage-pill--brand .brand-subtitle {
        margin-top: 2px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    body[data-app-state="request"] .assistant-panel {
        padding-top: calc(74px + env(safe-area-inset-top, 0px));
        padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    }

    body[data-app-state="request"] .console-window {
        max-height: calc(100dvh - 94px);
        border-radius: 18px;
    }

    body[data-app-state="request"] .assistant-heading {
        padding: 13px 14px 9px;
    }

    body[data-app-state="request"] .assistant-heading h2 {
        font-size: 22px;
        letter-spacing: -.5px;
    }

    body[data-app-state="request"] .console-window > .wizard-steps {
        padding: 6px 9px;
    }

    body[data-app-state="request"] .wizard-step {
        min-height: 34px;
        padding: 5px 6px;
        gap: 5px;
        font-size: 8px;
        letter-spacing: .7px;
    }

    body[data-app-state="request"] .wizard-step i {
        width: 18px;
        height: 18px;
        font-size: 9px;
    }

    body[data-app-state="request"] .console-body {
        gap: 8px;
        padding: 8px;
    }

    body[data-app-state="request"] .booking-panel {
        margin-top: 0;
        padding: 12px;
        border-radius: 16px;
    }

    body[data-app-state="request"] .panel-kicker {
        margin-bottom: 5px;
        font-size: 9px;
        letter-spacing: 1.2px;
    }

    body[data-app-state="request"] .panel-title {
        margin-bottom: 9px;
        font-size: 20px;
        letter-spacing: -.5px;
    }

    body[data-app-state="request"] .route-intro,
    body[data-app-state="request"] .time-note {
        margin-bottom: 8px;
        padding: 8px 10px;
    }

    body[data-app-state="request"] .route-intro p,
    body[data-app-state="request"] .time-note p {
        font-size: 12px;
        line-height: 1.35;
    }

    body[data-app-state="request"] .booking-panel label {
        margin: 8px 0 4px;
        font-size: 9px;
        letter-spacing: 1.1px;
    }

    body[data-app-state="request"] .booking-panel input,
    body[data-app-state="request"] .booking-panel select,
    body[data-app-state="request"] .booking-panel textarea {
        min-height: 42px;
        height: 42px;
        padding: 9px 10px;
        font-size: 14px;
        border-radius: 10px;
    }

    body[data-app-state="request"] .booking-panel .plate-input {
        height: 42px;
    }

    body[data-app-state="request"] .booking-panel .plate-input input,
    body[data-app-state="request"] .booking-panel .plate-input input:focus {
        height: 100%;
        padding: 0 10px;
        border: 0;
        border-radius: 0;
        font-size: 17px;
    }

    body[data-app-state="request"] .booking-panel textarea {
        height: 68px;
        min-height: 68px;
    }

    body[data-app-state="request"] .wizard-nav {
        position: static;
        gap: 6px;
        padding-top: 9px;
        background: transparent;
    }

    body[data-app-state="request"] .wizard-back,
    body[data-app-state="request"] .wizard-nav .confirm-button {
        min-height: 42px;
        padding-inline: 10px;
        font-size: 10px;
    }
}

/* Request header navigation: return to the landing page from any step. */
.assistant-heading-copy {
    min-width: 0;
}

.assistant-heading-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: none;
}

.request-home-button {
    min-height: 36px;
    padding: 0 11px;
    color: var(--text-soft);
    background: var(--surface-2);
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
    white-space: nowrap;
    touch-action: manipulation;
}

.request-home-button:hover {
    color: var(--accent);
    border-color: var(--line-strong);
}

.request-home-button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

@media (max-width: 768px) {
    body[data-app-state="request"] .assistant-heading {
        position: relative;
        padding-right: 120px;
    }

    body[data-app-state="request"] .assistant-heading-actions {
        position: absolute;
        top: 10px;
        right: 12px;
    }

    body[data-app-state="request"] .request-home-button {
        min-height: 32px;
        padding-inline: 8px;
        font-size: 9px;
        letter-spacing: .8px;
    }

    body[data-app-state="request"] .assistant-heading-actions .assistant-live {
        display: none;
    }
}

/* Final phone polish: red page, white service sheet, black cards, and one
   consistent black/white back-button treatment throughout the request flow. */
@media (max-width: 768px) {
    body[data-app-state="start"] {
        background: var(--mobile-red) !important;
    }

    body[data-app-state="start"] .mobile-service-picker {
        position: relative;
        z-index: 4;
        width: 100%;
        margin: 0;
        padding: 28px 14px calc(28px + env(safe-area-inset-bottom, 0px));
        background: #ffffff !important;
        border: 2px solid #111111;
        border-radius: 32px 32px 0 0;
        box-shadow: 0 -10px 30px rgba(12, 13, 14, .12);
        overflow: visible;
    }

    body[data-app-state="start"] .mobile-service-picker::before {
        position: absolute;
        top: -13px;
        left: 50%;
        width: 72px;
        height: 8px;
        margin: 0;
        content: "";
        background: #ffffff;
        border-radius: 999px;
        transform: translateX(-50%);
    }

    body[data-app-state="start"] .mobile-service-list {
        width: 100%;
        gap: 9px;
    }

    body[data-app-state="start"] .mobile-service-button,
    body[data-app-state="start"] .mobile-service-button:hover,
    body[data-app-state="start"] .mobile-service-button:focus,
    body[data-app-state="start"] .mobile-service-button:active {
        color: #ffffff !important;
        background: #111111 !important;
        border: 1px solid #111111 !important;
        box-shadow: none !important;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-icon {
        color: #ffffff !important;
        background: rgba(255, 255, 255, .14) !important;
        border-color: rgba(255, 255, 255, .28) !important;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-icon svg {
        stroke: #ffffff !important;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy strong,
    body[data-app-state="start"] .mobile-service-button .mobile-service-copy small {
        color: #ffffff !important;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-arrow {
        color: #d71920 !important;
    }

    /* Keep the established selected-service signal while default cards stay black. */
    body[data-app-state="start"] .mobile-service-button.selected,
    body[data-app-state="start"] .mobile-service-button.selected:hover,
    body[data-app-state="start"] .mobile-service-button.selected:focus,
    body[data-app-state="start"] .mobile-service-button.selected:active {
        color: #ffffff !important;
        background: var(--mobile-red) !important;
        border-color: #ffffff !important;
    }

    body[data-app-state="start"] .mobile-service-button.selected .mobile-service-icon {
        color: #ffffff !important;
        background: rgba(255, 255, 255, .16) !important;
        border-color: rgba(255, 255, 255, .32) !important;
    }

    body[data-app-state="request"] .request-home-button,
    body[data-app-state="request"] .wizard-back,
    body[data-app-state="request"] .request-step-back {
        min-height: 42px;
        color: #ffffff !important;
        background: #111111 !important;
        border: 1px solid #111111 !important;
        border-radius: 10px;
        box-shadow: none !important;
    }

    body[data-app-state="request"] .request-home-button:hover,
    body[data-app-state="request"] .wizard-back:hover,
    body[data-app-state="request"] .request-step-back:hover,
    body[data-app-state="request"] .request-home-button:focus,
    body[data-app-state="request"] .wizard-back:focus,
    body[data-app-state="request"] .request-step-back:focus {
        color: #ffffff !important;
        background: #000000 !important;
        border-color: #000000 !important;
    }

    body[data-app-state="request"] .service-panel-actions {
        display: flex;
        width: 100%;
        margin-top: 16px;
    }

    body[data-app-state="request"] .service-panel-actions .request-step-back {
        width: 100%;
        padding-inline: 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }

    body[data-app-state="request"] .wizard-nav .wizard-back {
        padding-inline: 12px;
        font-size: 10px;
        letter-spacing: 1px;
    }
}

/* Final mobile logo treatment: no outer frame; give every logo letter a
   refined black keyline for contrast against the red pill. */
@media (max-width: 768px) {
    body[data-app-state="start"] .stage-pill--brand,
    body[data-app-state="request"] .stage-pill--brand {
        border: 0 !important;
        border-color: transparent !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name,
    body[data-app-state="request"] .stage-pill--brand .brand-name {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff;
        -webkit-text-stroke: .65px #111111;
        paint-order: stroke fill;
        text-shadow: 0 1px 0 rgba(17, 17, 17, .22);
    }

    body[data-app-state="start"] .stage-pill--brand .brand-subtitle,
    body[data-app-state="request"] .stage-pill--brand .brand-subtitle {
        color: #ffffff !important;
        -webkit-text-fill-color: #ffffff;
        -webkit-text-stroke: .4px #111111;
        paint-order: stroke fill;
        text-shadow: 0 1px 0 rgba(17, 17, 17, .18);
    }
}

/* Keep the booking flow's dark frame on the outer container only. */
@media (max-width: 768px) {
    body[data-app-state="start"] .mobile-service-picker {
        border: 4px solid #111111 !important;
        border-bottom-width: 4px !important;
    }

    body[data-app-state="request"] .console-window {
        border: 1px solid #d8dde3 !important;
        border-color: #d8dde3 !important;
        box-shadow: 0 12px 32px rgba(17, 17, 17, .12);
    }

    body[data-app-state="request"] .console-window > .wizard-steps {
        border-bottom: 1px solid #dddddd;
    }

    body[data-app-state="request"] .wizard-step {
        color: #111111 !important;
        background: #f2f2f2 !important;
        border: 0 !important;
    }

    body[data-app-state="request"] .wizard-step.active,
    body[data-app-state="request"] .wizard-step.done {
        color: #111111 !important;
    }

    body[data-app-state="request"] .wizard-step i {
        color: #ffffff !important;
        background: #737b84 !important;
    }

    body[data-app-state="request"] .wizard-step.active i {
        background: #d71920 !important;
    }

    body[data-app-state="request"] .wizard-step.done i {
        background: #555555 !important;
    }

    body[data-app-state="request"] .booking-panel,
    body[data-app-state="request"] .route-intro,
    body[data-app-state="request"] .time-note {
        border: 1px solid #e2e2e2 !important;
    }

    body[data-app-state="request"] .booking-panel label {
        color: #111111 !important;
    }

}

body[data-app-state="request"] .service-button,
body[data-app-state="request"] .service-button.selected {
    color: #111111 !important;
    background: #ffffff !important;
    border: 1px solid #e2e2e2 !important;
    box-shadow: none;
}

body[data-app-state="request"] .service-button .service-content strong,
body[data-app-state="request"] .service-button .service-content small,
body[data-app-state="request"] .service-button .service-price,
body[data-app-state="request"] .service-button .service-arrow,
body[data-app-state="request"] .service-button .service-icon {
    color: #111111 !important;
}

/* Final mobile background: use the requested red gradient across the page
   while preserving the white service sheet and request surfaces above it. */
@media (max-width: 768px) {
    html,
    body,
    body[data-app-state="start"],
    body[data-app-state="request"],
    body[data-app-state="start"] .app,
    body[data-app-state="request"] .app,
    body[data-app-state="start"] .main,
    body[data-app-state="request"] .main,
    body[data-app-state="start"] .robot-section,
    body[data-app-state="request"] .robot-section,
    body[data-app-state="start"] .robot-container,
    body[data-app-state="request"] .robot-container {
        background: linear-gradient(145deg, #650909, #D91F18, #F02F20, #A81712) !important;
    }
}

/* Final mobile background unification: paint one continuous gradient on the
   page, not separate gradients on the bot, intro card, and logo. Transparent
   composition layers reveal the same background shape everywhere. */
@media (max-width: 768px) {
    html,
    body[data-app-state="start"],
    body[data-app-state="request"] {
        background: linear-gradient(145deg, #650909, #D91F18, #F02F20, #A81712) !important;
        background-attachment: fixed;
    }

    body[data-app-state="start"] .app,
    body[data-app-state="request"] .app,
    body[data-app-state="start"] .main,
    body[data-app-state="request"] .main,
    body[data-app-state="start"] .robot-section,
    body[data-app-state="request"] .robot-section,
    body[data-app-state="start"] .robot-container,
    body[data-app-state="request"] .robot-container,
    body[data-app-state="start"] .hero-copy,
    body[data-app-state="start"] .stage-pill--brand,
    body[data-app-state="request"] .stage-pill--brand {
        background: transparent !important;
        background-image: none !important;
    }

    body[data-app-state="start"] .robot-section::after,
    body[data-app-state="request"] .robot-section::after {
        display: none !important;
        background: none !important;
    }

    body[data-app-state="start"] .stage-pill--brand,
    body[data-app-state="request"] .stage-pill--brand {
        box-shadow: none !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
    }

    body[data-app-state="start"] .hero-copy {
        border-color: transparent !important;
        box-shadow: none !important;
        color: #ffffff;
    }

    body[data-app-state="start"] .hero-copy h1,
    body[data-app-state="start"] .hero-copy h1 em {
        color: #111111 !important;
        -webkit-text-fill-color: #111111;
        text-shadow: none;
    }

    body[data-app-state="start"] .hero-copy h1 em {
        font-style: normal;
    }

    body[data-app-state="start"] .hero-trust {
        border-top-color: rgba(255, 255, 255, .35) !important;
    }
}




/* =========================================================
   SUPPORT WIDGET - direct call
   ========================================================= */

.support-widget {
    position: fixed;
    right: calc(18px + env(safe-area-inset-right, 0px));
    bottom: calc(18px + env(safe-area-inset-bottom, 0px));
    z-index: 60;
    display: none;
    flex-direction: column;
    align-items: flex-end;
    pointer-events: none;
}

.support-widget-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    min-height: 56px;
    padding: 0;
    color: #ffffff;
    background: #19813f;
    border: 0;
    border-radius: 50%;
    box-shadow: none;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 1px;
    pointer-events: auto;
    text-decoration: none;
    animation: call-sign-trigger 2s ease-in-out infinite;
    transition: background-color var(--speed) var(--ease);
}

.support-widget-toggle:hover {
    background: #126b32;
}

.support-widget-toggle:focus-visible {
    outline: 3px solid #111111;
    outline-offset: 3px;
}

@keyframes call-sign-trigger {
    0%, 84%, 100% { transform: scale(1); }
    88% { transform: scale(1.1); }
    92% { transform: scale(1); }
}

.support-widget-toggle-icon {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #ffffff;
    background: transparent;
    border-radius: 18px;
}

.support-widget-toggle-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: .5;
}

body[data-app-state="request"] .support-widget,
body[data-app-state="chat"] .support-widget,
body[data-app-state="chat"] .start-overlay {
    display: none;
}

body[data-app-state="chat"] .wizard-steps,
body[data-app-state="chat"] .service-panel,
body[data-app-state="chat"] .booking-panel {
    display: none;
}

body[data-app-state="chat"] .console-dock {
    display: block;
}

@media (max-width: 768px) {
    .support-widget {
        display: flex;
        right: calc(12px + env(safe-area-inset-right, 0px));
        bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-widget-toggle {
        animation: none;
        transition: none;
    }
}

/* Desktop landing page follows the same red/black/white brand system as
   mobile, with a wide hero and four service choices in the bottom sheet. */
@media (min-width: 769px) {
    :root {
        --mobile-red: #d71920;
        --mobile-red-deep: #b51219;
        --mobile-black: #111111;
    }

    html,
    body[data-app-state="start"] {
        min-height: 100%;
        height: auto;
        overflow-x: hidden;
        overflow-y: auto;
        background: linear-gradient(145deg, #650909, #d91f18, #f02f20, #a81712);
        background-attachment: fixed;
    }

    body[data-app-state="start"] .app,
    body[data-app-state="start"] .main {
        height: auto;
        min-height: 100dvh;
        overflow: visible;
    }

    body[data-app-state="start"] .main {
        display: block;
    }

    body[data-app-state="start"] .robot-section {
        position: relative;
        inset: auto;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: minmax(460px, 1fr) auto;
        width: 100%;
        min-height: 100dvh;
        overflow: visible;
        background: transparent;
    }

    body[data-app-state="start"] .robot-section::after {
        display: none;
    }

    body[data-app-state="start"] .robot-container {
        position: relative;
        inset: auto;
        grid-column: 2;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        background: transparent;
        overflow: hidden;
    }

    body[data-app-state="start"] .robot-container canvas {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain;
    }

    body[data-app-state="start"] .stage-hud--bar {
        position: absolute;
        top: 18px;
        right: auto;
        left: 50%;
        width: max-content;
        max-width: calc(100% - 48px);
        padding: 0;
        transform: translateX(-50%);
    }

    body[data-app-state="start"] .stage-pill--brand {
        display: flex;
        justify-content: center;
        width: max-content;
        min-width: 0;
        max-width: 100%;
        min-height: 0 !important;
        padding: 8px 22px !important;
        color: #ffffff;
        background: var(--mobile-red-deep) !important;
        border: 1px solid rgba(255, 255, 255, .28) !important;
        border-radius: 999px;
        box-shadow: 0 8px 20px rgba(90, 0, 5, .22) !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand {
        justify-content: center;
        gap: 0;
        min-height: 0 !important;
        padding: 0 !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-icon,
    body[data-app-state="start"] .stage-pill--brand .main-nav {
        display: none;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-info {
        text-align: center;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name,
    body[data-app-state="start"] .stage-pill--brand .brand-subtitle {
        color: #ffffff !important;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-name {
        font-size: 18px;
        letter-spacing: -.5px;
    }

    body[data-app-state="start"] .stage-pill--brand .brand-subtitle {
        margin-top: 2px;
        font-size: 7px;
        letter-spacing: 1.2px;
    }

    body[data-app-state="start"] .start-overlay {
        position: static;
        inset: auto;
        display: contents !important;
    }

    body[data-app-state="start"] .hero-copy {
        position: relative;
        top: auto;
        left: auto;
        right: auto;
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        width: 100%;
        max-width: 640px;
        margin-left: clamp(32px, 7vw, 112px);
        padding: 92px 0 32px;
        transform: none;
        background: transparent;
        border: 0;
        box-shadow: none;
        text-align: left;
    }

    body[data-app-state="start"] .hero-copy h1 {
        max-width: 620px;
        margin-bottom: 16px;
        color: var(--mobile-black) !important;
        font-family: "Space Grotesk", "DM Sans", sans-serif;
        font-size: clamp(48px, 5.2vw, 76px);
        font-weight: 700;
        line-height: 1.02;
        letter-spacing: -3.5px;
        text-shadow: none;
    }

    body[data-app-state="start"] .hero-copy h1 em {
        color: var(--mobile-black) !important;
        font-style: normal;
    }

    body[data-app-state="start"] .hero-lead {
        max-width: 560px;
        margin: 0;
        color: #ffffff !important;
        font-size: clamp(15px, 1.2vw, 18px);
        font-weight: 500;
        line-height: 1.6;
    }

    body[data-app-state="start"] .hero-actions,
    body[data-app-state="start"] .hero-trust,
    body[data-app-state="start"] .mobile-service-heading {
        display: none !important;
    }

    body[data-app-state="start"] .mobile-service-picker {
        position: relative;
        z-index: 4;
        grid-column: 1 / -1;
        grid-row: 2;
        display: flex;
        align-items: center;
        width: 100%;
        min-height: 260px;
        margin: 0;
        padding: 30px clamp(24px, 5vw, 72px);
        background: #ffffff;
        border: 4px solid #111111;
        border-bottom-width: 4px;
        border-radius: 34px 34px 0 0;
        box-shadow: 0 -10px 30px rgba(12, 13, 14, .12);
        pointer-events: auto;
    }

    body[data-app-state="start"] .mobile-service-picker::before {
        position: absolute;
        top: -13px;
        left: 50%;
        width: 72px;
        height: 8px;
        margin: 0;
        content: "";
        background: #ffffff;
        border-radius: 999px;
        transform: translateX(-50%);
    }

    body[data-app-state="start"] .mobile-service-list {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        width: 100%;
        gap: 14px;
    }

    body[data-app-state="start"] .mobile-service-button,
    body[data-app-state="start"] .mobile-service-button:hover,
    body[data-app-state="start"] .mobile-service-button:focus,
    body[data-app-state="start"] .mobile-service-button:active {
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        min-width: 0;
        min-height: 176px;
        padding: 20px;
        gap: 12px;
        color: #ffffff !important;
        background: #111111 !important;
        border: 1px solid #111111 !important;
        border-radius: 20px;
        box-shadow: none !important;
        text-align: left;
    }

    body[data-app-state="start"] .mobile-service-button:focus-visible {
        outline: 2px solid #d71920;
        outline-offset: 3px;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-icon {
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        color: #ffffff !important;
        background: rgba(255, 255, 255, .14) !important;
        border: 1px solid rgba(255, 255, 255, .28) !important;
        border-radius: 12px;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-icon svg {
        width: 21px;
        height: 21px;
        fill: none;
        stroke: #ffffff !important;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke-width: 1.7;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy {
        display: block;
        width: 100%;
        padding-right: 18px;
        text-align: left;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy strong,
    body[data-app-state="start"] .mobile-service-button .mobile-service-copy small {
        display: block;
        color: #ffffff !important;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy strong {
        font-size: 16px;
        line-height: 1.2;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy small {
        margin-top: 5px;
        font-size: 12px;
        line-height: 1.35;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-arrow {
        position: absolute;
        top: 16px;
        right: 16px;
        color: #ffffff !important;
        font-size: 0;
    }

    body[data-app-state="start"] .mobile-service-button.selected,
    body[data-app-state="start"] .mobile-service-button.selected:hover,
    body[data-app-state="start"] .mobile-service-button.selected:focus,
    body[data-app-state="start"] .mobile-service-button.selected:active {
        color: #ffffff !important;
        background: #d71920 !important;
        border-color: #111111 !important;
    }
}

@media (min-width: 769px) and (max-width: 1023px) {
    body[data-app-state="start"] .robot-section {
        grid-template-rows: minmax(400px, 1fr) auto;
    }

    body[data-app-state="start"] .hero-copy {
        margin-left: 28px;
        padding-top: 82px;
    }

    body[data-app-state="start"] .hero-copy h1 {
        font-size: clamp(40px, 5.4vw, 56px);
        letter-spacing: -2.5px;
    }

    body[data-app-state="start"] .mobile-service-picker {
        min-height: 230px;
        padding-inline: 20px;
    }

    body[data-app-state="start"] .mobile-service-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    body[data-app-state="start"] .mobile-service-button {
        min-height: 100px;
        padding: 14px;
        gap: 8px;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-icon {
        width: 34px;
        height: 34px;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy strong {
        font-size: 13px;
    }

    body[data-app-state="start"] .mobile-service-button .mobile-service-copy small {
        font-size: 10px;
    }
}

.service-grid,
body[data-app-state="start"] .mobile-service-list {
    grid-auto-rows: 280px;
    align-items: stretch;
}

.service-grid .service-button,
body[data-app-state="start"] .mobile-service-list .mobile-service-button {
    height: 280px;
    min-height: 280px;
}

.service-grid .service-thumb,
body[data-app-state="start"] .mobile-service-list .service-thumb {
    width: 100%;
    height: 148px;
    flex: 0 0 148px;
    object-fit: fill;
}

@media (max-width: 768px) {
    body[data-app-state="start"] .mobile-service-list {
        grid-auto-rows: 190px;
    }

    body[data-app-state="start"] .mobile-service-list .mobile-service-button {
        height: 190px;
        min-height: 190px;
        padding: 9px;
        gap: 7px;
        border-radius: 14px;
    }

    body[data-app-state="start"] .mobile-service-list .service-thumb {
        height: 96px;
        flex-basis: 96px;
        border-radius: 9px;
    }

    body[data-app-state="start"] .mobile-service-list .mobile-service-copy strong {
        font-size: 13px;
        line-height: 1.2;
    }

    body[data-app-state="start"] .mobile-service-list .mobile-service-copy small {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.25;
    }
}
