/* Stream House — shared site styles (homepage + privacy policy) */

/* ── Self-hosted fonts (SIL Open Font License, see assets/fonts/LICENSE.txt) ── */
@font-face {
    font-family: 'DM Sans';
    src: url('fonts/dm-sans-latin.woff2') format('woff2');
    font-weight: 400 700;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Syne';
    src: url('fonts/syne-latin.woff2') format('woff2');
    font-weight: 400 800;
    font-style: normal;
    font-display: swap;
}

/* ── Design tokens (dark first) ── */
:root {
    --bg:          #06090F;
    --surface:     #0C1018;
    --card:        #10151F;
    --border:      #1F2938;
    --border-hi:   #2C3A4E;
    --text:        #EDE8E1;
    --sub:         #A0ACBB;
    --accent:      #FF4715;          /* brand fill, decorative use */
    --accent-ink:  #FF6A3D;          /* accent used as text on --bg */
    --accent-lo:   rgba(255, 71, 21, 0.13);
    --accent-glow: rgba(255, 71, 21, 0.22);
    --btn:         #CF360A;          /* white text on this passes WCAG AA */
    --btn-hover:   #B52F08;
    --teal:        #00DDB0;
    --teal-lo:     rgba(0, 221, 176, 0.1);
    --focus:       #FFB199;
    --radius:      14px;
    color-scheme: dark;
}
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg:          #F3F6FB;
        --surface:     #FFFFFF;
        --card:        #FFFFFF;
        --border:      #DCE3EE;
        --border-hi:   #C3CEDF;
        --text:        #0A0D14;
        --sub:         #4C5666;
        --accent-ink:  #B42F08;
        --accent-lo:   rgba(255, 71, 21, 0.08);
        --accent-glow: rgba(255, 71, 21, 0.12);
        --teal:        #008F72;
        --teal-lo:     rgba(0, 143, 114, 0.08);
        --focus:       #B42F08;
                color-scheme: light;
    }
}
:root[data-theme="light"] {
    --bg:          #F3F6FB;
    --surface:     #FFFFFF;
    --card:        #FFFFFF;
    --border:      #DCE3EE;
    --border-hi:   #C3CEDF;
    --text:        #0A0D14;
    --sub:         #4C5666;
    --accent-ink:  #B42F08;
    --accent-lo:   rgba(255, 71, 21, 0.08);
    --accent-glow: rgba(255, 71, 21, 0.12);
    --teal:        #008F72;
    --teal-lo:     rgba(0, 143, 114, 0.08);
    --focus:       #B42F08;
        color-scheme: light;
}

/* ── Base ── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
body {
    font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
    font-size: 1rem;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-wrap: break-word;
}
h1, h2, h3 { font-family: 'Syne', 'DM Sans', system-ui, sans-serif; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.container { width: 100%; max-width: 1120px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 480px) { .container { padding-inline: 16px; } }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip-link {
    position: absolute; inset-inline-start: 16px; top: -100px; z-index: 10;
    background: var(--btn); color: #fff; padding: 10px 16px; border-radius: 8px;
    font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* ── Header / navigation ── */
.site-header { border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 16px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-img { width: 76px; height: auto; }
.logo-name { font-family: 'Syne', sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.025em; line-height: 1; }
.logo-name span { color: var(--accent-ink); }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; }
.nav-links a {
    display: inline-block; padding: 8px 12px; border-radius: 8px;
    text-decoration: none; color: var(--sub); font-size: 0.9rem; font-weight: 500;
}
.nav-links a:hover { color: var(--text); background: var(--card); }
.nav-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 640px) {
    .site-nav { flex: 1 1 100%; }
    .nav-links { margin-inline: -12px; }
}

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 22px; border-radius: 10px;
    font: 600 0.95rem/1.2 'DM Sans', system-ui, sans-serif; text-decoration: none;
    border: 1px solid transparent; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary { background: var(--btn); color: #fff; }
.btn-primary:hover { background: var(--btn-hover); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-hi); }
.btn-ghost:hover { background: var(--card); }
/* Shown instead of the App Store button until a verified product URL is configured. */
.btn-pending {
    background: var(--card); color: var(--sub); border: 1px dashed var(--border-hi); cursor: default;
}
@media (prefers-reduced-motion: no-preference) {
    .btn, .nav-links a, .text-link { transition: background-color .18s, color .18s, border-color .18s; }
}

.text-link { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

/* ── Sections ── */
.section { padding-block: clamp(56px, 8vw, 96px); }
.section + .section { border-top: 1px solid var(--border); }
.eyebrow { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 12px; }
.section-title { font-size: clamp(1.7rem, 4vw, 2.5rem); font-weight: 800; }
.section-lead { color: var(--sub); font-size: 1.05rem; max-width: 62ch; margin-top: 14px; }
.section-head { margin-bottom: 40px; }

/* ── Cards ── */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.card p { color: var(--sub); font-size: 0.95rem; }

.icon {
    width: 40px; height: 40px; border-radius: 10px; background: var(--accent-lo);
    display: flex; align-items: center; justify-content: center; margin-bottom: 16px; flex-shrink: 0;
}
.icon svg { width: 20px; height: 20px; stroke: var(--accent-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }

/* Check list */
.check-list { list-style: none; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--text); font-size: 0.97rem; }
.check-list li::before {
    content: ''; flex-shrink: 0; width: 20px; height: 20px; margin-top: 2px; border-radius: 50%;
    background: var(--teal-lo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2300B892' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
    border: 1px solid var(--teal);
}

.note {
    display: flex; gap: 12px; align-items: flex-start;
    background: var(--surface); border: 1px solid var(--border); border-inline-start: 3px solid var(--accent);
    border-radius: 10px; padding: 14px 16px; color: var(--sub); font-size: 0.93rem;
}
.note strong { color: var(--text); font-weight: 600; }

/* ── Footer ── */
.site-footer { border-top: 1px solid var(--border); padding-block: 40px; }
.footer-inner { display: flex; gap: 16px 32px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.footer-copy { color: var(--sub); font-size: 0.875rem; max-width: 52ch; }
.footer-copy p + p { margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; list-style: none; margin-inline: -10px; }
.footer-links a { display: inline-block; padding: 6px 10px; color: var(--sub); font-size: 0.9rem; text-decoration: none; border-radius: 6px; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }

/* ── Setup methods, provider profile, FAQ (shared) ── */
.badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px; margin-bottom: 14px;
    background: var(--accent-lo); color: var(--accent-ink); font-size: 0.75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
}
.card .card-list { margin-top: 14px; padding-inline-start: 1.2em; color: var(--sub); font-size: 0.95rem; display: grid; gap: 6px; }
.card .card-list li::marker { color: var(--accent-ink); }
.card ol.card-list { padding-inline-start: 1.4em; }
.card .card-list strong { color: var(--text); font-weight: 600; }

.panel { margin-top: 16px; }
.panel-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 40px; }
.panel h3 { font-size: 1.15rem; }

.example {
    margin-top: 16px; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px dashed var(--border-hi);
    font-size: 0.9rem; color: var(--sub);
}
.example dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 14px; margin-top: 6px; }
.example dt { color: var(--sub); }
.example dd { color: var(--text); font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 0.88rem; overflow-wrap: anywhere; direction: ltr; text-align: start; unicode-bidi: isolate; }
.example .example-label { font-size: 0.75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

/* Disclosure / FAQ items built on <details> */
.disclosure { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.disclosure + .disclosure { margin-top: 10px; }
.disclosure > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    min-height: 48px; padding: 16px 20px; border-radius: var(--radius);
    font: 700 1rem/1.35 'DM Sans', system-ui, sans-serif; color: var(--text);
}
.disclosure > summary::-webkit-details-marker { display: none; }
.disclosure > summary::after {
    content: ''; flex-shrink: 0; width: 10px; height: 10px; margin-inline-end: 4px;
    border-inline-end: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink);
    transform: rotate(45deg) translateY(-3px);
}
.disclosure[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.disclosure > summary:hover { background: var(--surface); }
.disclosure > summary:focus-visible { outline-offset: -2px; }
.disclosure-body { padding: 0 20px 18px; color: var(--sub); font-size: 0.95rem; }
.disclosure-body p + p, .disclosure-body p + ul, .disclosure-body ul + p { margin-top: 10px; }
.disclosure-body ul { padding-inline-start: 1.2em; display: grid; gap: 4px; }
.disclosure-body strong { color: var(--text); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
    .disclosure > summary::after { transition: transform .18s; }
}