:root {
    color-scheme: dark;
    --bg-a: #000000;
    --bg-b: #090909;
    --bg-c: #151515;
    --text: #f4f4f1;
    --strong: #ffffff;
    --muted: rgba(244, 244, 241, 0.66);
    --quiet: rgba(244, 244, 241, 0.56);
    --hairline: rgba(244, 244, 241, 0.14);
    --accent: #8b8b85;
    --field: rgba(255, 255, 255, 0.96);
    --field-text: #101010;
    --field-placeholder: rgba(16, 16, 16, 0.42);
    --button: #080808;
    --button-text: #ffffff;
    --panel: rgba(255, 255, 255, 0.90);
    --panel-text: #101010;
    --panel-muted: rgba(16, 16, 16, 0.62);
    --soft-shadow: 0 34px 90px rgba(0, 0, 0, 0.30);
    --field-shadow: 0 36px 110px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255,255,255,0.88);
}

html[data-theme="light"] {
    color-scheme: light;
    --bg-a: #ffffff;
    --bg-b: #f4f4f4;
    --bg-c: #e6e6e6;
    --text: #111111;
    --strong: #080808;
    --muted: rgba(17, 17, 17, 0.64);
    --quiet: rgba(17, 17, 17, 0.54);
    --hairline: rgba(17, 17, 17, 0.12);
    --accent: #727272;
    --field: rgba(255, 255, 255, 0.96);
    --field-text: #101010;
    --field-placeholder: rgba(16, 16, 16, 0.42);
    --button: #080808;
    --button-text: #ffffff;
    --panel: rgba(255, 255, 255, 0.82);
    --panel-text: #101010;
    --panel-muted: rgba(16, 16, 16, 0.62);
    --soft-shadow: 0 34px 90px rgba(0, 0, 0, 0.12);
    --field-shadow: 0 36px 110px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255,255,255,0.98);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    color: var(--text);
    background: linear-gradient(135deg, var(--bg-a) 0%, var(--bg-b) 52%, var(--bg-c) 100%);
    overflow-x: hidden;
}

body::before {
    content: none;
}


.brand-bar {
    position: fixed;
    top: 28px;
    left: 32px;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 18px;
    text-align: left;
}

.brand-logo-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    width: 65px;
    height: auto;
    display: block;
}

.brand-title,
.brand-subtitle {
    margin: 0;
}

.brand-title {
    color: var(--strong);
    font-size: 33px;
    line-height: 0.96;
    font-weight: 760;
    letter-spacing: -0.055em;
}

.brand-subtitle {
    max-width: 383px;
    margin-top: 8px;
    color: var(--quiet);
    font-size: 20px;
    line-height: 1.18;
    letter-spacing: -0.035em;
}

.theme-toggle {
    position: fixed;
    top: 32px;
    right: 34px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 38px;
    padding: 6px 11px 6px 7px;
    border: 1px solid var(--hairline);
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    color: var(--text);
    cursor: pointer;
    box-shadow: 0 18px 42px rgba(0,0,0,0.08);
}

html[data-theme="light"] .theme-toggle {
    background: rgba(255,255,255,0.54);
}

.toggle-track {
    width: 38px;
    height: 24px;
    padding: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.14);
    border: 1px solid var(--hairline);
}

.toggle-dot {
    display: block;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3c17c, #9abccd);
    transform: translateX(0);
    transition: transform 160ms ease;
}

html[data-theme="light"] .toggle-dot {
    transform: translateX(14px);
}

.toggle-label {
    color: var(--quiet);
    font-size: 12px;
    line-height: 1;
}

.shell {
    width: min(1220px, calc(100% - 34px));
    margin: 0 auto;
}

.hero {
    display: flex;
    min-height: 100vh;
    padding: 132px 0 46px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.eyebrow {
    margin: 0 0 24px;
    color: var(--accent);
    font-size: clamp(11px, 1vw, 13px);
    font-weight: 780;
    letter-spacing: 0.27em;
    text-transform: uppercase;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    max-width: 850px;
    margin: 0 auto 24px;
    color: var(--strong);
    font-size: clamp(44px, 6vw, 78px);
    line-height: 0.93;
    letter-spacing: -0.08em;
    font-weight: 780;
    text-wrap: balance;
}

.lede {
    max-width: 720px;
    margin: 0 auto 42px;
    color: var(--muted);
    font-size: clamp(18px, 1.9vw, 24px);
    line-height: 1.42;
    letter-spacing: -0.035em;
}

.search-card {
    width: min(1140px, 100%);
    margin: 0 auto;
    padding: 14px;
    border: 1px solid rgba(255,255,255,0.62);
    border-radius: 999px;
    background: var(--field);
    box-shadow: var(--field-shadow);
}

html[data-theme="dark"] .search-card {
    border-color: rgba(255,255,255,0.30);
}

.search-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 12px;
}

.search-field input {
    width: 100%;
    min-height: 84px;
    border: 0;
    outline: 0;
    padding: 0 28px;
    border-radius: 999px;
    background: transparent;
    color: var(--field-text);
    font: inherit;
    font-size: clamp(25px, 2.4vw, 34px);
    letter-spacing: -0.045em;
}

.search-field input::placeholder {
    color: var(--field-placeholder);
}

.search-field button {
    min-width: 214px;
    min-height: 84px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    border: 0;
    border-radius: 999px;
    background: var(--button);
    color: var(--button-text);
    font: inherit;
    font-size: 20px;
    font-weight: 760;
    letter-spacing: -0.035em;
    cursor: pointer;
    transition: transform 160ms ease, opacity 160ms ease;
}

.search-field button:hover {
    transform: translateY(-1px);
}

.search-field button:active {
    transform: translateY(0);
    opacity: 0.86;
}

.button-icon {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid currentColor;
    border-radius: 50%;
    opacity: 0.96;
}

.button-icon::after {
    content: "";
    position: absolute;
    width: 8px;
    height: 2px;
    right: -6px;
    bottom: -3px;
    border-radius: 999px;
    background: currentColor;
    transform: rotate(45deg);
    transform-origin: center;
}

.form-error {
    margin: 18px 0 0;
    color: var(--accent);
    font-size: 14px;
    font-weight: 650;
    letter-spacing: -0.02em;
}

.answer-panel {
    width: min(860px, 100%);
    margin: 30px auto 0;
    padding: clamp(26px, 4vw, 48px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 32px;
    background: var(--panel);
    color: var(--panel-text);
    box-shadow: var(--soft-shadow);
}

.answer-meta {
    margin: 0 0 20px;
    color: var(--panel-muted);
    font-size: 12px;
    font-weight: 780;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.answer-panel h2 {
    margin: 0 0 14px;
    font-size: clamp(34px, 4.6vw, 58px);
    line-height: 0.96;
    letter-spacing: -0.075em;
    color: var(--panel-text);
}

.answer-panel p:not(.answer-meta) {
    max-width: 720px;
    margin: 0 auto;
    color: var(--panel-muted);
    font-size: clamp(18px, 2vw, 24px);
    line-height: 1.42;
    letter-spacing: -0.035em;
}

.copy-button {
    margin-top: 26px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background: #11100d;
    color: #fffaf2;
    font: inherit;
    font-size: 14px;
    font-weight: 760;
    cursor: pointer;
}

.quiet-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px 34px;
    margin-top: 26px;
    color: var(--quiet);
    font-size: clamp(15px, 1.2vw, 18px);
    line-height: 1.35;
    letter-spacing: 0.01em;
}

.setup-warning {
    max-width: 780px;
    margin: 24px auto 0;
    color: var(--accent);
    font-size: 14px;
    line-height: 1.45;
}

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



.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    width: 100%;
    min-height: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    padding: 5px clamp(12px, 3vw, 42px);
    border: 0;
    border-top: 1px solid var(--hairline);
    border-radius: 0;
    background: rgba(10, 10, 10, 0.72);
    color: rgba(255, 255, 255, 0.66);
    box-shadow: 0 -10px 36px rgba(0, 0, 0, 0.10);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

html[data-theme="light"] .cookie-bar {
    background: rgba(255, 255, 255, 0.76);
    color: rgba(17, 17, 17, 0.68);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.10);
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-bar.is-accepted {
    min-height: 22px;
    gap: 0;
    padding-top: 5px;
    padding-bottom: 5px;
    background: rgba(8, 8, 8, 0.58);
}

html[data-theme="light"] .cookie-bar.is-accepted {
    background: rgba(255, 255, 255, 0.62);
}

.cookie-row[hidden] {
    display: none;
}

.cookie-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
}

.cookie-copy {
    margin: 0;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: -0.005em;
}

.cookie-footer {
    margin: 0;
    font-size: 9px;
    line-height: 1.15;
    letter-spacing: 0;
    color: inherit;
    opacity: 0.72;
}

.cookie-footer a {
    color: inherit;
    text-decoration: none;
}

.cookie-footer a:hover,
.cookie-footer a:focus-visible {
    text-decoration: none;
    opacity: 0.84;
}

.cookie-button {
    flex: 0 0 auto;
    min-height: 22px;
    padding: 0 10px;
    border: 0;
    border-radius: 999px;
    background: var(--button);
    color: var(--button-text);
    font: inherit;
    font-size: 10px;
    font-weight: 760;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 760px) {
    .brand-bar {
        position: absolute;
        top: 20px;
        left: 20px;
        gap: 13px;
    }

    .brand-logo {
        width: 65px;
    }

    .brand-title {
        font-size: 21px;
    }

    .brand-subtitle {
        max-width: min(383px, calc(100vw - 160px));
        font-size: 12px;
        line-height: 1.2;
    }

    .theme-toggle {
        top: 22px;
        right: 18px;
    }

    .toggle-label {
        display: none;
    }

    .hero {
        padding-top: 134px;
    }

    .search-card {
        padding: 8px;
        border-radius: 38px;
    }

    .search-field {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .search-field input {
        min-height: 76px;
        padding: 0 18px;
        text-align: center;
        font-size: clamp(16px, 4.1vw, 22px);
        line-height: 1.08;
        letter-spacing: -0.035em;
    }

    .search-field button {
        width: 100%;
        min-height: 76px;
        font-size: 20px;
    }


    .answer-panel {
        border-radius: 26px;
    }
}

@media (max-width: 430px) {
    .shell {
        width: min(100% - 24px, 1220px);
    }

    .search-card {
        padding: 8px;
        border-radius: 34px;
    }

    .search-field input {
        min-height: 64px;
        font-size: clamp(14px, 3.45vw, 16px);
        padding: 0 12px;
        line-height: 1.08;
    }

    .search-field button {
        min-height: 62px;
    }
}

@media (max-width: 560px) {
    .cookie-bar {
        min-height: 36px;
        gap: 2px;
        padding: 5px 10px;
        text-align: center;
    }

    .cookie-bar.is-accepted {
        min-height: 22px;
        padding-top: 5px;
        padding-bottom: 5px;
    }

    .cookie-row {
        justify-content: center;
        gap: 8px;
    }

    .cookie-copy {
        font-size: 8px;
    }

    .cookie-footer {
        font-size: 8px;
    }

    .cookie-button {
        min-height: 20px;
        padding: 0 8px;
        font-size: 8px;
        white-space: nowrap;
    }
}
