:root {
    --ink: #070811;
    --ink-soft: #0e111d;
    --surface: #141827;
    --surface-raised: #1b2031;
    --line: #4f586f;
    --line-bright: #8a96b4;
    --text: #f6f2e8;
    --muted: #d2d5dd;
    --cream: #ffd28a;
    --orange: #ffb15f;
    --coral: #ff9b8f;
    --cyan: #91e4e1;
    --violet: #d4b7ff;
    --sage: #b8e58b;
    --measure: 70ch;
    --radius: 24px;
    color-scheme: dark;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    margin: 0;
    background:
        linear-gradient(90deg, transparent 0, transparent calc(50% - 1px), #202437 calc(50% - 1px), #202437 50%, transparent 50%) top center / min(100% - 48px, 1180px) 100% no-repeat,
        var(--ink);
    color: var(--text);
    font-family: ui-rounded, "Avenir Next Rounded", "Avenir Next", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 550;
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--cyan);
    text-underline-offset: 0.22em;
    text-decoration-thickness: 2px;
}

a:hover {
    color: var(--cream);
}

a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--cream);
    outline-offset: 4px;
    border-radius: 4px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 12px;
    left: 12px;
    padding: 12px 16px;
    background: var(--cream);
    color: #211200;
    font-weight: 800;
    transform: translateY(-160%);
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: 78px;
    padding: 12px max(24px, calc((100vw - 1180px) / 2));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #070811f5;
    border-bottom: 1px solid #465068;
    backdrop-filter: blur(16px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover {
    color: var(--text);
}

.support-wordmark-frame {
    flex: 0 0 auto;
    padding: 8px 10px;
}

.support-wordmark {
    width: fit-content;
    --hue: 196;
    font-size: 24px;
}

.brand-section {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: var(--text);
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

nav a:hover {
    color: var(--cream);
}

main,
footer {
    width: min(1180px, calc(100% - 48px));
    margin-inline: auto;
}

section,
article {
    scroll-margin-top: 104px;
}

.hero {
    min-height: min(780px, calc(100vh - 78px));
    padding: clamp(72px, 10vw, 140px) 0 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eyebrow,
.section-mark {
    margin: 0 0 18px;
    color: var(--cream);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.hero h1,
h2 {
    margin: 0;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.hero h1 {
    max-width: 950px;
    font-size: clamp(58px, 8.8vw, 112px);
    font-weight: 900;
}

.hero h1 span {
    color: var(--cyan);
}

.hero-copy {
    max-width: 760px;
    margin: 34px 0 46px;
    color: var(--muted);
    font-size: clamp(19px, 2.1vw, 26px);
    line-height: 1.48;
}

.route-switch {
    max-width: 920px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--line-bright);
    border-bottom: 1px solid var(--line-bright);
}

.route-switch a {
    min-height: 112px;
    padding: 22px 26px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 18px;
    color: var(--text);
    text-decoration: none;
}

.route-switch a + a {
    border-left: 1px solid var(--line-bright);
}

.route-switch a:hover {
    background: var(--surface);
}

.route-number {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.route-switch strong,
.route-switch small {
    display: block;
}

.route-switch strong {
    font-size: 19px;
}

.route-switch small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.route-arrow {
    color: var(--cyan);
    font-size: 26px;
}

.story {
    padding: clamp(80px, 11vw, 152px) 0;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.7fr);
    align-items: center;
    gap: clamp(54px, 9vw, 120px);
    border-top: 1px solid var(--line);
}

.story-featured {
    border-top-color: var(--coral);
}

.story-reverse .story-copy {
    order: 1;
}

.story-reverse figure {
    order: 2;
}

.story h2,
.support-band h2,
.learn-intro h2,
.contact h2 {
    max-width: 760px;
    font-size: clamp(44px, 5.8vw, 76px);
    font-weight: 900;
}

.story .lede {
    max-width: var(--measure);
    margin: 28px 0 34px;
    color: var(--muted);
    font-size: 21px;
    line-height: 1.52;
}

.story-link {
    min-height: 44px;
    margin: -10px 0 30px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--cyan);
    font-weight: 900;
    text-decoration: none;
}

.story-link span {
    font-size: 24px;
}

.phone-shot {
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 10px;
    border: 1px solid var(--line-bright);
    border-radius: 34px;
    background: #05060d;
    box-shadow: 0 28px 80px #00000070;
}

.phone-shot::before {
    content: "";
    display: block;
    width: 72px;
    height: 6px;
    margin: 2px auto 10px;
    border-radius: 999px;
    background: var(--line-bright);
}

.phone-shot img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 23px;
}

.phone-shot figcaption {
    padding: 14px 10px 8px;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
}

.phone-shot-coral {
    border-color: var(--coral);
}

.phone-shot-cyan {
    border-color: var(--cyan);
}

.phone-shot-violet {
    border-color: var(--violet);
}

.phone-shot-gold {
    border-color: var(--cream);
}

.steps {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
    border-top: 1px solid var(--line);
}

.steps li {
    position: relative;
    min-height: 78px;
    padding: 18px 0 18px 58px;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    counter-increment: step;
}

.steps li::before {
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 20px;
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
}

.steps li span {
    display: block;
    color: var(--text);
    font-weight: 850;
}

.steps-compact li {
    min-height: 68px;
}

.truth-note,
.tip,
.privacy-line {
    border-left: 4px solid var(--cyan);
    background: var(--surface);
}

.truth-note {
    margin-top: 28px;
    padding: 20px 22px;
}

.truth-note strong {
    color: var(--cyan);
}

.truth-note p {
    margin: 6px 0 0;
    color: var(--muted);
}

.support-band {
    margin-inline: calc(50% - 50vw);
    padding: clamp(76px, 9vw, 120px) max(24px, calc((100vw - 1180px) / 2));
    display: grid;
    grid-template-columns: minmax(280px, 0.55fr) minmax(0, 1fr);
    gap: clamp(48px, 8vw, 110px);
    background: var(--surface);
    border-block: 1px solid var(--line);
}

.support-band-wide {
    margin-top: 20px;
}

.band-heading p:last-child {
    max-width: 52ch;
    color: var(--muted);
}

.answer-list {
    border-top: 1px solid var(--line-bright);
}

details {
    border-bottom: 1px solid var(--line-bright);
}

summary {
    position: relative;
    min-height: 68px;
    padding: 20px 46px 18px 0;
    cursor: pointer;
    color: var(--text);
    font-size: 18px;
    font-weight: 850;
    list-style: none;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    position: absolute;
    top: 15px;
    right: 4px;
    color: var(--cyan);
    font-size: 28px;
    font-weight: 500;
}

details[open] summary::after {
    content: "−";
}

details p {
    max-width: var(--measure);
    margin: -4px 0 24px;
    color: var(--muted);
}

.learn-intro {
    padding: clamp(110px, 14vw, 190px) 0 80px;
}

.learn-intro p:last-child {
    max-width: 740px;
    margin: 30px 0 0;
    color: var(--muted);
    font-size: 23px;
}

.control-map {
    margin: 0;
    border-top: 1px solid var(--line);
}

.control-map div {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 20px;
    border-bottom: 1px solid var(--line);
}

.control-map dt {
    color: var(--cyan);
    font-weight: 900;
}

.control-map dd {
    margin: 0;
    color: var(--muted);
}

.feature-list {
    padding-left: 21px;
    color: var(--muted);
}

.feature-list li {
    margin: 12px 0;
    padding-left: 6px;
}

.feature-list li::marker {
    color: var(--coral);
}

.feature-list strong {
    color: var(--text);
}

.tip,
.privacy-line {
    padding: 18px 20px;
    color: var(--muted);
}

.story-camera {
    grid-template-columns: minmax(480px, 1fr) minmax(0, 0.8fr);
}

.shot-pair {
    position: relative;
    min-height: 820px;
}

.shot-pair .phone-shot {
    position: absolute;
    width: min(65%, 360px);
    left: 0;
    top: 0;
}

.shot-pair .shot-pair-front {
    left: auto;
    right: 0;
    top: 82px;
}

.contact {
    margin: clamp(100px, 14vw, 180px) 0 90px;
    padding: clamp(48px, 7vw, 84px);
    background: var(--cream);
    color: #211200;
    border-radius: var(--radius);
}

.contact .section-mark {
    color: #552400;
}

.contact p {
    max-width: var(--measure);
    font-size: 20px;
}

.contact a {
    color: #003f4b;
}

.contact-button {
    min-height: 52px;
    margin-top: 12px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    border: 2px solid #211200;
    border-radius: 999px;
    color: #211200 !important;
    font-weight: 900;
    text-decoration: none;
}

.contact-button:hover {
    background: #211200;
    color: var(--cream) !important;
}

/* Dedicated Govee Room Lights guide. This stays in the support-site visual system: one
   editorial reading path, no vendor-logo skin or speculative compatibility grid. */
.govee-hero {
    min-height: calc(100vh - 78px);
    padding: clamp(68px, 8vw, 112px) 0 clamp(90px, 10vw, 140px);
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.55fr);
    align-items: center;
    gap: clamp(54px, 8vw, 110px);
    border-bottom: 1px solid var(--coral);
}

.govee-hero h1,
.govee-explainer h2,
.govee-setup h2,
.govee-compatibility h2 {
    margin: 0;
    max-width: 930px;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 900;
    line-height: 0.98;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.govee-hero h1 {
    color: var(--cyan);
}

.govee-hero .hero-copy {
    max-width: 720px;
}

.govee-hero-shot {
    width: min(100%, 390px);
}

.govee-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
}

.action-primary,
.action-secondary {
    min-height: 52px;
    padding: 13px 20px;
    display: inline-flex;
    align-items: center;
    border: 2px solid var(--cyan);
    border-radius: 999px;
    font-weight: 900;
    text-decoration: none;
}

.action-primary {
    background: var(--cyan);
    color: #062025;
}

.action-primary:hover {
    background: var(--cream);
    border-color: var(--cream);
    color: #211200;
}

.action-secondary {
    color: var(--text);
}

.action-secondary:hover {
    border-color: var(--cream);
    color: var(--cream);
}

.govee-facts {
    max-width: 780px;
    margin: 48px 0 0;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-block: 1px solid var(--line-bright);
}

.govee-facts div {
    padding: 18px 18px 18px 0;
}

.govee-facts div + div {
    padding-left: 18px;
    border-left: 1px solid var(--line-bright);
}

.govee-facts dt,
.access-label {
    color: var(--coral);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.govee-facts dd {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.4;
}

.govee-explainer,
.govee-compatibility {
    padding: clamp(100px, 13vw, 180px) 0;
}

.govee-explainer-copy {
    max-width: 72ch;
    margin: 34px 0 54px;
    color: var(--muted);
    font-size: clamp(20px, 2.2vw, 27px);
    line-height: 1.5;
}

.govee-roles,
.compatibility-ledger {
    margin: 0;
    border-top: 1px solid var(--line-bright);
}

.govee-roles div,
.compatibility-ledger div {
    min-height: 116px;
    padding: 25px 0;
    display: grid;
    grid-template-columns: minmax(240px, 0.42fr) minmax(0, 1fr);
    gap: clamp(28px, 7vw, 100px);
    border-bottom: 1px solid var(--line-bright);
}

.govee-roles dt,
.compatibility-ledger dt {
    color: var(--text);
    font-size: 21px;
    font-weight: 900;
}

.govee-roles dd,
.compatibility-ledger dd {
    max-width: 72ch;
    margin: 0;
    color: var(--muted);
}

.govee-access .band-heading p:last-child {
    font-size: 19px;
}

.access-ledger {
    border-top: 1px solid var(--line-bright);
}

.access-ledger section {
    padding: 26px 0 30px;
    border-bottom: 1px solid var(--line-bright);
}

.access-ledger h3,
.setup-aside h3 {
    margin: 7px 0 14px;
    color: var(--text);
    font-size: clamp(26px, 3vw, 36px);
    line-height: 1.1;
    letter-spacing: -0.035em;
}

.access-ledger ul {
    margin: 0;
    padding-left: 21px;
    color: var(--muted);
}

.access-ledger li {
    margin: 8px 0;
}

.access-ledger li::marker {
    color: var(--cyan);
}

.govee-setup {
    padding: clamp(100px, 13vw, 180px) 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.45fr);
    align-items: start;
    gap: clamp(54px, 9vw, 120px);
}

.govee-setup h2 {
    font-size: clamp(48px, 6vw, 78px);
}

.govee-setup .steps {
    margin-top: 48px;
}

.setup-aside {
    position: sticky;
    top: 116px;
    padding: 28px;
    background: var(--surface);
    border-top: 4px solid var(--violet);
}

.setup-aside p:not(.section-mark) {
    color: var(--muted);
}

.compatibility-note {
    max-width: 840px;
    margin-top: 44px;
}

.govee-cta .section-mark {
    color: #552400;
}

.contact-button-secondary {
    background: transparent;
}

.legacy {
    max-width: 800px;
    margin-bottom: 100px;
}

.legacy h2 {
    font-size: 34px;
}

.legacy > p {
    color: var(--muted);
}

footer {
    min-height: 100px;
    padding: 28px 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 22px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
}

footer a {
    color: var(--text);
    font-weight: 800;
}

footer span {
    margin-left: auto;
}

@media (max-width: 900px) {
    .site-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
    }

    nav {
        width: 100%;
        gap: 22px;
        overflow-x: auto;
    }

    .story,
    .story-camera,
    .support-band,
    .govee-hero,
    .govee-setup {
        grid-template-columns: 1fr;
    }

    .govee-hero-copy {
        max-width: 820px;
    }

    .govee-hero-shot {
        width: min(76%, 420px);
    }

    .setup-aside {
        position: static;
    }

    .story-reverse .story-copy,
    .story-reverse figure {
        order: initial;
    }

    .story-copy {
        max-width: 760px;
    }

    .shot-pair {
        width: min(100%, 650px);
        min-height: 780px;
        margin-inline: auto;
    }
}

@media (max-width: 620px) {
    body {
        background: var(--ink);
        font-size: 17px;
    }

    main,
    footer {
        width: min(100% - 32px, 1180px);
    }

    .site-header {
        min-height: 0;
        padding-inline: 16px;
    }

    .brand-section {
        display: none;
    }

    nav {
        margin-bottom: -4px;
    }

    nav a {
        flex: 0 0 auto;
        font-size: 13px;
    }

    .hero {
        min-height: 680px;
        padding-top: 70px;
    }

    .hero h1 {
        font-size: clamp(49px, 15vw, 68px);
    }

    .govee-hero {
        min-height: 0;
        padding-top: 76px;
    }

    .govee-hero h1,
    .govee-explainer h2,
    .govee-setup h2,
    .govee-compatibility h2 {
        font-size: clamp(46px, 14vw, 62px);
    }

    .govee-facts {
        grid-template-columns: 1fr;
    }

    .govee-facts div,
    .govee-facts div + div {
        padding: 16px 0;
        border-left: 0;
    }

    .govee-facts div + div {
        border-top: 1px solid var(--line-bright);
    }

    .govee-hero-shot {
        width: min(92%, 390px);
    }

    .govee-roles div,
    .compatibility-ledger div {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .govee-explainer-copy {
        font-size: 20px;
    }

    .route-switch {
        grid-template-columns: 1fr;
    }

    .route-switch a + a {
        border-left: 0;
        border-top: 1px solid var(--line-bright);
    }

    .story {
        padding: 90px 0;
        gap: 50px;
    }

    .story h2,
    .support-band h2,
    .learn-intro h2,
    .contact h2 {
        font-size: 44px;
    }

    .story .lede {
        font-size: 19px;
    }

    .phone-shot {
        width: min(92%, 390px);
    }

    .support-band {
        margin-inline: -16px;
        padding-inline: 16px;
    }

    .control-map div {
        grid-template-columns: 90px 1fr;
        gap: 12px;
    }

    .shot-pair {
        min-height: 610px;
    }

    .shot-pair .phone-shot {
        width: 68%;
    }

    .shot-pair .shot-pair-front {
        top: 68px;
    }

    .contact {
        margin-inline: -4px;
        padding: 40px 24px;
    }

    footer span {
        width: 100%;
        margin-left: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

/* ---- Standalone shell command + copy affordance -------------------------
   Used on /support/offline-analysis/ for the ffmpeg install line. Dark --ink
   ground so the command reads as a terminal line rather than as prose.
   Contrast: #f6f2e8 on #070811 = 17.9:1; button --ink on --cyan = 13.7:1;
   copied state --ink on --sage = 13.9:1. */
.cmd {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin: 14px 0;
    padding: 12px 12px 12px 16px;
    background: var(--ink);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.cmd-text {
    flex: 1 1 260px;
    min-width: 0;
    overflow-x: auto;
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 15px;
    line-height: 1.6;
    white-space: pre;
}

.cmd-copy {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 0;
    border-radius: 9px;
    background: var(--cyan);
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 850;
    letter-spacing: 0.01em;
    cursor: pointer;
}

.cmd-copy:hover {
    filter: brightness(1.08);
}

.cmd-copy:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 3px;
}

.cmd-copy[data-copied="true"] {
    background: var(--sage);
}

.cmd-copy[data-copied="false"] {
    background: var(--cream);
}

@media (max-width: 640px) {
    .cmd-copy {
        width: 100%;
    }
}
