:root {
    color-scheme: light dark;
    --cream-50: #fffaf1;
    --cream-100: #f7efdf;
    --cream-200: #eadcc4;
    --ink-900: #17121f;
    --ink-700: #3b3248;
    --ink-500: #756b82;
    --purple-950: #21112f;
    --purple-850: #351653;
    --purple-700: #5a2a87;
    --purple-500: #7a48b2;
    --purple-300: #b99be0;
    --violet-glow: rgba(122, 72, 178, 0.22);
    --cream-glass: rgba(255, 250, 241, 0.82);
    --cream-line: rgba(53, 22, 83, 0.14);
    --shadow-soft: 0 24px 70px rgba(33, 17, 47, 0.14);
    --shadow-tight: 0 12px 32px rgba(33, 17, 47, 0.12);
    --radius: 8px;
    --header-height: 76px;
    --content-max: 1180px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

body[data-theme="dark"] {
    --cream-50: #120d18;
    --cream-100: #1a1223;
    --cream-200: #2a1c38;
    --ink-900: #fffaf1;
    --ink-700: #eadff2;
    --ink-500: #bbaec8;
    --purple-950: #fffaf1;
    --purple-850: #d8c0ff;
    --purple-700: #b98cff;
    --purple-500: #9b6df0;
    --purple-300: #6f48a6;
    --violet-glow: rgba(185, 140, 255, 0.24);
    --cream-glass: rgba(26, 18, 35, 0.84);
    --cream-line: rgba(255, 250, 241, 0.14);
    --shadow-soft: 0 24px 70px rgba(0, 0, 0, 0.34);
    --shadow-tight: 0 12px 32px rgba(0, 0, 0, 0.28);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    scroll-behavior: smooth;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 78% 14%, rgba(122, 72, 178, 0.12), transparent 30rem),
        linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 54%, #efe3cf 100%);
    color: var(--ink-900);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.5;
}

body[data-theme="dark"] {
    background:
        radial-gradient(circle at 78% 14%, rgba(185, 140, 255, 0.14), transparent 30rem),
        linear-gradient(135deg, #120d18 0%, #1a1223 54%, #24162f 100%);
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    content: "";
    background-image:
        linear-gradient(rgba(53, 22, 83, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(53, 22, 83, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

img,
svg,
canvas {
    display: block;
    max-width: 100%;
}

button,
input,
select {
    font: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

:focus-visible {
    outline: 3px solid rgba(122, 72, 178, 0.42);
    outline-offset: 3px;
}

[hidden] {
    display: none !important;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 100;
    padding: 10px 14px;
    border-radius: var(--radius);
    background: var(--purple-850);
    color: var(--cream-50);
    transform: translateY(-140%);
    transition: transform 180ms var(--ease-out);
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    padding: 14px clamp(16px, 4vw, 42px);
    border-bottom: 1px solid rgba(53, 22, 83, 0.08);
    background: rgba(255, 250, 241, 0.78);
    backdrop-filter: blur(22px) saturate(1.15);
}

body[data-theme="dark"] .site-header {
    border-bottom-color: rgba(255, 250, 241, 0.1);
    background: rgba(18, 13, 24, 0.8);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand__logo {
    width: 44px;
    height: 44px;
    border-radius: var(--radius);
    object-fit: contain;
    background: rgba(255, 255, 255, 0.5);
}

.brand__name {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--purple-850);
}

.theme-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(53, 22, 83, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.72);
    box-shadow: 0 10px 24px rgba(33, 17, 47, 0.08);
}

.theme-switch__button,
.header-action {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 7px;
    font-size: 0.94rem;
    font-weight: 800;
    transition:
        transform 180ms var(--ease-out),
        background 180ms var(--ease-out),
        color 180ms var(--ease-out),
        box-shadow 180ms var(--ease-out);
}

.theme-switch__button {
    min-width: 82px;
    border: 0;
    padding: 0 16px;
    background: transparent;
    color: var(--ink-700);
    cursor: pointer;
}

.theme-switch__button:hover {
    background: rgba(90, 42, 135, 0.08);
    color: var(--purple-850);
}

.theme-switch__button[aria-pressed="true"] {
    background: var(--purple-850);
    color: var(--cream-50);
    box-shadow: 0 10px 22px rgba(53, 22, 83, 0.18);
}

body[data-theme="dark"] .theme-switch {
    border-color: rgba(255, 250, 241, 0.12);
    background: rgba(255, 250, 241, 0.07);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.24);
}

body[data-theme="dark"] .theme-switch__button {
    color: #d8c0ff;
}

body[data-theme="dark"] .theme-switch__button:hover {
    background: rgba(216, 192, 255, 0.12);
    color: #fffaf1;
}

body[data-theme="dark"] .theme-switch__button[aria-pressed="true"] {
    background: #d8c0ff;
    color: #17121f;
}

.header-action {
    padding: 0 18px;
    background: var(--purple-850);
    color: var(--cream-50);
    box-shadow: 0 10px 26px rgba(53, 22, 83, 0.18);
}

.header-action:hover,
.primary-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(53, 22, 83, 0.22);
}

.hero {
    position: relative;
    min-height: calc(100vh - var(--header-height));
    isolation: isolate;
    display: grid;
    align-items: start;
    padding: clamp(28px, 6vh, 58px) clamp(16px, 4vw, 42px) 64px;
}

.hero__media {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        linear-gradient(115deg, rgba(255, 250, 241, 0.98), rgba(255, 250, 241, 0.72) 45%, rgba(53, 22, 83, 0.26)),
        linear-gradient(180deg, rgba(255, 250, 241, 0.4), rgba(255, 250, 241, 1));
}

body[data-theme="dark"] .hero__media {
    background:
        linear-gradient(115deg, rgba(18, 13, 24, 0.98), rgba(18, 13, 24, 0.78) 45%, rgba(122, 72, 178, 0.28)),
        linear-gradient(180deg, rgba(18, 13, 24, 0.4), rgba(18, 13, 24, 1));
}

.hero__poster {
    position: absolute;
    inset: auto 0 0 auto;
    width: min(62vw, 960px);
    height: min(78vh, 760px);
    object-fit: contain;
    object-position: center right;
    opacity: 0.24;
    filter: saturate(0.9) contrast(1.03);
}

.hero__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.92;
}

.hero__content {
    width: min(100%, var(--content-max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    justify-items: center;
    gap: 16px;
    padding-top: 0;
}

.hero__logo {
    width: min(460px, 76vw);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 18px 30px rgba(33, 17, 47, 0.12));
}

h1,
h2,
h3,
p {
    overflow-wrap: anywhere;
}

h1 {
    max-width: 820px;
    margin: 0;
    color: var(--purple-950);
    font-size: 5.2rem;
    line-height: 0.96;
    font-weight: 860;
}

.search-panel,
.answer-shell {
    width: min(100%, 1040px);
    border: 1px solid rgba(53, 22, 83, 0.12);
    border-radius: var(--radius);
    background: var(--cream-glass);
    box-shadow: var(--shadow-soft);
    backdrop-filter: blur(28px) saturate(1.08);
}

.search-panel {
    display: grid;
    gap: 16px;
    padding: clamp(14px, 2vw, 20px);
    transform-style: preserve-3d;
    animation: panel-rise 680ms var(--ease-out) both;
}

.vehicle-picker {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 0;
    padding: 0;
    border: 0;
}

.vehicle-picker legend {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.field {
    min-width: 0;
    display: grid;
    gap: 7px;
}

.field label,
.question-area > label {
    color: var(--ink-700);
    font-size: 0.84rem;
    font-weight: 800;
}

select,
input[type="search"] {
    width: 100%;
    min-height: 48px;
    border: 1px solid rgba(53, 22, 83, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.74);
    color: var(--ink-900);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64);
    transition:
        border-color 180ms var(--ease-out),
        box-shadow 180ms var(--ease-out),
        background 180ms var(--ease-out);
}

select {
    padding: 0 36px 0 12px;
    cursor: pointer;
}

input[type="search"] {
    padding: 0 16px;
}

select:disabled {
    cursor: not-allowed;
    color: rgba(59, 50, 72, 0.52);
    background: rgba(234, 220, 196, 0.42);
}

select:hover:not(:disabled),
input[type="search"]:hover {
    border-color: rgba(90, 42, 135, 0.34);
}

select:focus,
input[type="search"]:focus {
    border-color: var(--purple-500);
    box-shadow: 0 0 0 5px rgba(122, 72, 178, 0.12);
}

.question-area {
    display: grid;
    gap: 8px;
}

.question-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.primary-action {
    min-height: 54px;
    min-width: 132px;
    border: 0;
    border-radius: var(--radius);
    background: var(--purple-850);
    color: var(--cream-50);
    font-weight: 850;
    cursor: pointer;
    box-shadow: 0 12px 28px rgba(53, 22, 83, 0.2);
    transition:
        transform 180ms var(--ease-out),
        box-shadow 180ms var(--ease-out),
        background 180ms var(--ease-out);
}

.primary-action:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(53, 22, 83, 0.16);
}

.privacy-note {
    margin: 0;
    color: var(--ink-500);
    font-size: 0.84rem;
}

.search-status {
    min-height: 1.25em;
    margin: 0;
    color: var(--ink-500);
    font-size: 0.84rem;
}

.answer-shell {
    display: grid;
    gap: 14px;
    padding: clamp(14px, 2vw, 20px);
}

.process-section h2 {
    margin: 0;
    color: var(--purple-950);
    font-size: 2.1rem;
    line-height: 1.05;
}

.answer-card {
    min-height: 96px;
    padding: 16px;
    border: 1px solid rgba(53, 22, 83, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.58);
}

.answer-card[data-state="loading"] {
    position: relative;
    overflow: hidden;
}

.answer-card[data-state="loading"]::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255, 250, 241, 0.8), transparent);
    transform: translateX(-100%);
    animation: shimmer 1.1s infinite;
}

.empty-state {
    margin: 0;
    color: var(--ink-500);
}

.safety-note,
.answer-meta {
    margin: 12px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(53, 22, 83, 0.1);
}

.safety-note {
    color: var(--purple-850);
    font-weight: 750;
}

.answer-meta {
    color: var(--ink-500);
    font-size: 0.9rem;
}

.process-section {
    width: min(100% - 32px, var(--content-max));
    margin: 0 auto;
    padding: 66px 0;
}

.process-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 24px 0 0;
    padding: 0;
    list-style: none;
}

.process-list li {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid rgba(53, 22, 83, 0.1);
    border-radius: var(--radius);
    background: rgba(255, 250, 241, 0.72);
    box-shadow: var(--shadow-tight);
}

.process-list strong {
    color: var(--purple-850);
}

.process-list span {
    color: var(--ink-700);
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 24px clamp(16px, 4vw, 42px);
    border-top: 1px solid rgba(53, 22, 83, 0.1);
    color: var(--ink-700);
}

.site-footer > span {
    font-weight: 850;
    color: var(--purple-850);
}

.site-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 14px;
    font-size: 0.92rem;
}

.site-footer a:hover {
    color: var(--purple-700);
}

.noscript-message {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 90;
    max-width: 360px;
    margin: 0;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--purple-850);
    color: var(--cream-50);
    box-shadow: var(--shadow-soft);
}

@keyframes panel-rise {
    from {
        opacity: 0;
        transform: translateY(18px) rotateX(3deg);
    }

    to {
        opacity: 1;
        transform: translateY(0) rotateX(0);
    }
}

@keyframes shimmer {
    to {
        transform: translateX(100%);
    }
}

@media (max-width: 980px) {
    .site-header {
        gap: 12px;
    }

    .theme-switch {
        width: auto;
    }

    .hero {
        align-items: start;
        padding-top: 28px;
    }

    h1 {
        font-size: 4.1rem;
    }

    .hero__poster {
        width: 92vw;
        height: 48vh;
        opacity: 0.16;
    }

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

    .field--compact {
        grid-column: auto;
    }

    .process-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    :root {
        --header-height: 68px;
    }

    body {
        background:
            radial-gradient(circle at 80% 5%, rgba(122, 72, 178, 0.1), transparent 20rem),
            linear-gradient(135deg, var(--cream-50) 0%, var(--cream-100) 100%);
    }

    .site-header {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
        gap: 10px;
        padding: 12px 14px;
    }

    .brand__name {
        font-size: 1rem;
    }

    .brand__logo {
        width: 38px;
        height: 38px;
    }

    .header-action {
        min-height: 38px;
        padding: 0 12px;
        font-size: 0.86rem;
    }

    .hero {
        min-height: auto;
        padding: 24px 14px 42px;
    }

    h1 {
        font-size: 2.95rem;
    }

    .process-section h2 {
        font-size: 1.6rem;
    }

    .search-panel,
    .answer-shell {
        box-shadow: 0 14px 42px rgba(33, 17, 47, 0.12);
    }

    .vehicle-picker {
        grid-template-columns: 1fr;
    }

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

    .primary-action {
        width: 100%;
    }

    .site-footer {
        align-items: start;
        flex-direction: column;
    }

    .hero__logo {
        width: min(320px, 82vw);
    }

    .site-footer nav {
        justify-content: flex-start;
    }

    .theme-switch {
        justify-self: end;
        width: auto;
        max-width: 100%;
        gap: 3px;
        padding: 3px;
    }

    .theme-switch__button {
        min-width: 0;
        min-height: 36px;
        padding: 0 11px;
        font-size: 0.84rem;
        border-radius: 6px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

body[data-theme="dark"] select,
body[data-theme="dark"] input[type="search"] {
    border-color: rgba(216, 192, 255, 0.34);
    background: rgba(255, 250, 241, 0.94);
    color: #17121f;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

body[data-theme="dark"] select:disabled {
    color: rgba(23, 18, 31, 0.48);
    background: rgba(255, 250, 241, 0.58);
}

body[data-theme="dark"] select option {
    background: #fffaf1;
    color: #17121f;
}

body[data-theme="dark"] input[type="search"]::placeholder {
    color: rgba(23, 18, 31, 0.56);
}

body[data-theme="dark"] .search-panel,
body[data-theme="dark"] .answer-shell {
    border-color: rgba(248, 239, 220, 0.12);
    background: rgba(28, 19, 38, 0.82);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

body[data-theme="dark"] .answer-card {
    border-color: rgba(216, 192, 255, 0.18);
    background:
        linear-gradient(135deg, rgba(255, 250, 241, 0.08), rgba(216, 192, 255, 0.06)),
        rgba(18, 13, 24, 0.72);
    color: #f8efdc;
    box-shadow: inset 0 1px 0 rgba(255, 250, 241, 0.08);
}

body[data-theme="dark"] .answer-card p {
    margin: 0;
    color: #f8efdc;
}

body[data-theme="dark"] .safety-note {
    margin-top: 14px;
    padding: 12px 14px;
    border-top: 0;
    border-left: 3px solid #d8c0ff;
    border-radius: 7px;
    background: rgba(216, 192, 255, 0.1);
    color: #fffaf1;
}

body[data-theme="dark"] .answer-meta {
    border-top-color: rgba(248, 239, 220, 0.12);
    color: rgba(248, 239, 220, 0.72);
}

body[data-theme="dark"] .empty-state {
    color: rgba(248, 239, 220, 0.72);
}

body[data-theme="dark"] .brand__name {
    color: #d8c0ff;
}

body[data-theme="dark"] .brand__logo {
    background: transparent;
    box-shadow: none;
}

body[data-theme="dark"] .brand__name {
    color: #fffaf1;
}