/* Tyggs site — Tyde dark theme. Tokens mirror Tyde's frontend/styles.css. */
:root {
    color-scheme: dark;

    --surface-base: #121212;
    --surface-0: #161616;
    --surface-1: #1a1a1a;
    --surface-2: #242424;
    --surface-3: #2d2d2d;
    --surface-hover: rgba(255, 255, 255, 0.04);

    --text-primary: #e8e8e8;
    --text-secondary: #a0a0a0;
    --text-tertiary: #6e6e6e;
    --text-bright: #ffffff;

    --border-primary: #2e2e2e;
    --border-secondary: #444;

    --accent-primary: #007acc;
    --accent-hover: #1a8ad4;
    --accent-link: #569cd6;
    --accent-subtle: color-mix(in srgb, var(--accent-primary) 14%, transparent);

    --success: #4ec9b0;
    --warning: #e8c56a;
    --error: #f48771;

    --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Fira Code', Consolas, monospace;

    --radius: 6px;
    --topbar-height: 52px;
    --page-width: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { background: var(--surface-base); }

body {
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--surface-base);
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

::selection { background: color-mix(in srgb, var(--accent-primary) 35%, transparent); color: var(--text-bright); }

:focus-visible { outline: 2px solid var(--accent-primary); outline-offset: 2px; }

a { color: var(--accent-link); text-decoration: none; }
a:hover { color: var(--text-bright); }

main { flex: 1; }

.wrap { max-width: var(--page-width); margin: 0 auto; padding: 0 24px; }

/* ===== Top bar (Tyde header + tab strip) ===== */
.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--topbar-height);
    background: color-mix(in srgb, var(--surface-1) 92%, transparent);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-primary);
}

.topbar .wrap {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-bright);
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
}

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

/* The Tyde tiger. */
.brand-mark { width: 30px; height: 30px; flex: none; }

.tabs {
    display: flex;
    align-self: stretch;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
    display: flex;
    align-items: center;
    padding: 0 10px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    transition: color 0.15s, border-color 0.15s;
}

.tab:hover { color: var(--text-primary); }
.tab.active { color: var(--text-bright); border-bottom-color: var(--accent-primary); }

.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 8px; flex: none; }
.topbar-links { display: flex; gap: 20px; margin-right: 12px; font-size: 14px; font-weight: 500; }
.topbar-links a { color: var(--text-secondary); }
.topbar-links a:hover { color: var(--text-bright); }

/* account.js mounts its pill into [data-tyg-account-slot]; restyle it for the bar. */
body .tyg-pill {
    position: static;
    height: 32px;
    padding: 0 6px 0 10px;
    border-radius: var(--radius);
    background: var(--surface-2);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    box-shadow: none;
    font: 500 13px/1 var(--font-sans);
    white-space: nowrap;
    flex: none;
}
body .tyg-pill:hover { transform: none; box-shadow: none; background: var(--surface-3); }
body .tyg-pill.guest { padding: 0 14px; background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
body .tyg-pill.guest:hover { background: var(--accent-hover); }
body .tyg-pill .tyg-av { width: 22px; height: 22px; border-radius: 4px; background: var(--accent-primary); font-size: 11px; }
body .tyg-menu {
    top: 58px;
    right: max(24px, calc((100vw - var(--page-width)) / 2 + 24px));
    background: var(--surface-1);
    color: var(--text-primary);
    border: 1px solid var(--border-secondary);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
    font-family: var(--font-sans);
}
body .tyg-menu .tyg-head { border-color: var(--border-primary); }
body .tyg-menu .tyg-head .tyg-av { border-radius: 6px; background: var(--accent-primary); }
body .tyg-menu .tyg-mail, body .tyg-item.muted { color: var(--text-secondary); }
body .tyg-item { color: var(--text-primary); border-radius: 4px; font-weight: 500; }
body .tyg-item:hover { background: var(--surface-hover); }
body .tyg-item.primary { background: var(--accent-primary); color: #fff; }
body .tyg-item.primary:hover { background: var(--accent-hover); filter: none; }
body .tyg-sep { background: var(--border-primary); }
body .tyg-badge { border-radius: 4px; font-family: var(--font-mono); font-weight: 500; background: var(--surface-2); color: var(--text-secondary); }
body .tyg-badge.active { background: color-mix(in srgb, var(--success) 14%, transparent); color: var(--success); }

/* ===== Shared bits ===== */
.label {
    font-family: var(--font-mono);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 16px;
    border-radius: var(--radius);
    font: 500 14px/1 var(--font-sans);
    border: 1px solid var(--border-secondary);
    background: var(--surface-2);
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--surface-3); color: var(--text-bright); }
.btn.primary { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.btn.small { height: 32px; padding: 0 14px; font-size: 13px; }
.btn.block { width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.6; cursor: wait; }
button.btn { cursor: pointer; }
.btn svg { width: 15px; height: 15px; }

.chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 22px;
    padding: 0 8px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--text-secondary);
    background: var(--surface-2);
    border: 1px solid var(--border-primary);
    white-space: nowrap;
}
.chip.live { color: var(--success); background: color-mix(in srgb, var(--success) 10%, transparent); border-color: color-mix(in srgb, var(--success) 25%, transparent); }
.chip.pass { color: var(--warning); background: color-mix(in srgb, var(--warning) 10%, transparent); border-color: color-mix(in srgb, var(--warning) 25%, transparent); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.section { padding: 56px 0 0; }
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border-primary);
}
.section-head h2 { font-size: 13px; }
.section-head a { font-size: 13px; }

/* ===== Home hero ===== */
.hero { padding: 88px 0 32px; max-width: 760px; }

.hero h1 {
    font-size: 60px;
    line-height: 1.04;
    font-weight: 700;
    letter-spacing: -0.04em;
    color: var(--text-bright);
    margin: 0 0 20px;
}

.hero h1 .accent { color: var(--accent-link); }

.hero p.lede { font-size: 18px; color: var(--text-secondary); max-width: 36em; }

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; }

.socials { display: flex; gap: 6px; margin-left: 8px; }
.social {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    color: var(--text-tertiary);
    border: 1px solid var(--border-primary);
    transition: color 0.15s, border-color 0.15s;
}
.social:hover { color: var(--text-bright); border-color: var(--border-secondary); }
.social svg { width: 16px; height: 16px; }

/* ===== Project grid ===== */
.grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.tile {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: var(--surface-1);
    border: 1px solid var(--border-primary);
    border-radius: 8px;
    color: var(--text-primary);
    transition: border-color 0.15s, background 0.15s;
}
.tile:hover { border-color: var(--accent-primary); background: var(--surface-2); color: var(--text-primary); }
.tile-head { display: flex; align-items: center; gap: 10px; }
.tile-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--accent-link);
    background: var(--accent-subtle);
}
.tile-icon svg { width: 17px; height: 17px; }
.tile h3 { font-size: 15.5px; font-weight: 600; color: var(--text-bright); letter-spacing: -0.01em; }
.tile-head .chip { margin-left: auto; }
.tile p { font-size: 14px; color: var(--text-secondary); flex: 1; }
.tile-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
    gap: 12px;
    padding-top: 10px;
    border-top: 1px solid var(--border-primary);
}
.tile-foot > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-foot > span:last-child { flex: none; }
.tile:hover .tile-foot .arrow { color: var(--accent-link); transform: translateX(3px); }
.arrow { transition: transform 0.15s, color 0.15s; }

/* ===== Page header ===== */
.page-head { padding: 64px 0 32px; }
.page-head h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.03em; color: var(--text-bright); margin: 12px 0 12px; }
.page-head p { font-size: 16px; color: var(--text-secondary); max-width: 40em; }
.page-head .row { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }

/* ===== Article ===== */
.article { max-width: 700px; margin: 0 auto; padding: 56px 24px 0; }
.crumbs { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-tertiary); }
.crumbs a { color: var(--text-secondary); }
.crumbs a:hover { color: var(--text-bright); }
.article h1 { font-size: 42px; line-height: 1.12; font-weight: 700; letter-spacing: -0.03em; color: var(--text-bright); margin: 18px 0 14px; }
.meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding-bottom: 28px; margin-bottom: 32px; border-bottom: 1px solid var(--border-primary); }

.prose { font-size: 17px; line-height: 1.75; color: #d6d6d6; }
.prose > * + * { margin-top: 1.25em; }
.prose h2, .prose h3, .prose h4 { color: var(--text-bright); line-height: 1.3; letter-spacing: -0.015em; margin-top: 2.2em; }
.prose h2 { font-size: 24px; }
.prose h3 { font-size: 19px; }
.prose strong { color: var(--text-bright); font-weight: 600; }
.prose a { color: var(--accent-link); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent-link) 40%, transparent); text-underline-offset: 3px; }
.prose a:hover { color: var(--text-bright); text-decoration-color: currentColor; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.4em; }
.prose li::marker { color: var(--text-tertiary); }
.prose blockquote { border-left: 2px solid var(--accent-primary); padding: 2px 0 2px 18px; color: var(--text-secondary); }
.prose code { font-family: var(--font-mono); font-size: 0.86em; background: var(--surface-2); border: 1px solid var(--border-primary); padding: 0.1em 0.4em; border-radius: 4px; }
.prose pre { background: var(--surface-1); border: 1px solid var(--border-primary); border-radius: 6px; padding: 16px 18px; overflow-x: auto; line-height: 1.55; }
.prose pre code { background: none; border: 0; padding: 0; font-size: 13.5px; }
.prose img { max-width: 100%; height: auto; border-radius: 6px; border: 1px solid var(--border-primary); display: block; }
.prose hr { border: 0; height: 1px; background: var(--border-primary); }

.post-nav { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border-primary); display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }

/* ===== Status-bar footer ===== */
.statusbar { margin-top: 80px; border-top: 1px solid var(--border-primary); background: var(--surface-1); }
.statusbar .wrap {
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-tertiary);
}
.statusbar .ok { color: var(--success); display: inline-flex; align-items: center; gap: 7px; }
.statusbar nav { margin-left: auto; display: flex; gap: 16px; flex-wrap: wrap; }
.statusbar a { color: var(--text-tertiary); }
.statusbar a:hover { color: var(--text-primary); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .hero { padding-top: 56px; }
    .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
    .wrap { padding: 0 16px; }
    /* Two rows on phones: brand + account on top, all five tabs underneath. */
    .topbar { height: auto; }
    .topbar .wrap { flex-wrap: wrap; gap: 0 14px; }
    .brand, .topbar-end { height: var(--topbar-height); }
    .tabs { order: 3; flex: 1 0 100%; height: 40px; justify-content: space-between; margin: 0 -6px; }
    .tab { padding: 0 6px; }
    body .tyg-menu { top: calc(var(--topbar-height) + 46px); }
    .hero h1 { font-size: 40px; }
    .socials { margin-left: 0; }
    .hero p.lede { font-size: 16px; }
    .grid { grid-template-columns: minmax(0, 1fr); }
    .page-head h1, .article h1 { font-size: 32px; }
    .article { padding: 36px 16px 0; }
    .prose { font-size: 16.5px; }
    body .tyg-menu { right: 16px; }
    .topbar-end .btn.small { padding: 0 10px; }
    .topbar-links { margin-right: 4px; }
    .topbar-links a + a { display: none; }
}

@media (max-width: 360px) {
    .tab { padding: 0 4px; font-size: 13px; }
    .tabs { margin: 0 -4px; }
}

/* ---------- article extras (about, legal) ---------- */
.article .sub { font-size: 18px; color: var(--text-secondary); margin: -4px 0 20px; }
.notice {
  border: 1px solid color-mix(in srgb, var(--accent-primary) 35%, transparent);
  background: color-mix(in srgb, var(--accent-primary) 8%, transparent);
  border-radius: var(--radius); padding: 14px 16px; font-size: 15px; color: var(--text-primary);
}
.notice strong { color: var(--text-bright); }
.post-nav { flex-wrap: wrap; }

/* ---------- cards + forms (support, account, pass) ---------- */
.card {
  background: var(--surface-1); border: 1px solid var(--border-primary);
  border-radius: var(--radius); padding: 24px;
}
.card h2 { font-size: 18px; font-weight: 600; color: var(--text-bright); letter-spacing: -0.01em; margin-bottom: 6px; }
.card h3 { font-size: 14px; font-weight: 600; color: var(--text-bright); margin: 22px 0 6px; }
.muted, .card.side p, .card.side li { color: var(--text-secondary); font-size: 14.5px; }
.card.side ul { padding-left: 1.2em; }
.card.side li + li { margin-top: 4px; }
.split { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 0.85fr); gap: 16px; align-items: start; padding-bottom: 72px; }
.form { margin-top: 20px; display: grid; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 500; color: var(--text-secondary); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: 14.5px; color: var(--text-primary);
  background: var(--surface-0); border: 1px solid var(--border-primary); border-radius: var(--radius);
  padding: 10px 12px; outline: none;
}
.field input::placeholder, .field textarea::placeholder { color: var(--text-tertiary); }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--accent-primary); box-shadow: 0 0 0 1px var(--accent-primary); }
.field textarea { min-height: 150px; resize: vertical; }
.form .btn { justify-self: start; }
@media (max-width: 820px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- account UI controls (emitted by pass/account page scripts) ---------- */
.notice.error { color: var(--error); background: color-mix(in srgb, var(--error) 8%, transparent); border-color: color-mix(in srgb, var(--error) 30%, transparent); }
.notice[hidden], .footnote[hidden] { display: none; }
.footnote { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-tertiary); }
.have-account { margin-top: 14px; text-align: center; color: var(--text-secondary); font-size: 14px; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 38px; padding: 0 16px; border-radius: var(--radius); border: 1px solid var(--border-secondary); background: var(--surface-2); color: var(--text-primary); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.button:hover { background: var(--surface-3); color: var(--text-bright); }
.button:disabled { opacity: .6; cursor: wait; }
.button-block { width: 100%; }
.button-lg { height: 44px; font-size: 15px; }
.button-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: #fff; }
.button-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button-oauth svg { width: 18px; height: 18px; flex: none; }

.skeleton { border-radius: var(--radius); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.3s ease infinite; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.sk-line { height: 14px; margin-bottom: 12px; }

/* ---------- hubs (games., music.) ---------- */
.hub { padding-top: 0; padding-bottom: 72px; }
.tile.disabled { opacity: 0.55; cursor: default; }
.tile.disabled:hover { border-color: var(--border-primary); background: var(--surface-1); }

/* ---------- Tyde product pages (/tyde, /tyde/download) ---------- */
.btn.large { height: 46px; padding: 0 22px; font-size: 15px; }

.tyde-hero { text-align: center; padding: 72px 0 48px; max-width: 820px; margin: 0 auto; }
.tyde-hero-icon { display: block; margin: 0 auto 24px; }
.tyde-hero h1 { font-size: 64px; line-height: 1.04; font-weight: 700; letter-spacing: -0.045em; color: var(--text-bright); margin-bottom: 22px; }
.tyde-hero h1 .accent { background: linear-gradient(90deg, var(--accent-link), var(--success)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.tyde-hero .lede { font-size: 18px; color: var(--text-secondary); max-width: 38em; margin: 0 auto; }
.tyde-hero .hero-actions { justify-content: center; }
.hero-meta { margin-top: 18px; }

.window { position: relative; border: 1px solid var(--border-secondary); border-radius: 10px; overflow: hidden; background: var(--surface-1); }
.window-bar { height: 26px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: var(--surface-2); border-bottom: 1px solid var(--border-primary); }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--surface-3); }
.window img, .window video { display: block; width: 100%; height: auto; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.hero-shot { box-shadow: 0 40px 120px -40px color-mix(in srgb, var(--accent-primary) 60%, transparent), 0 0 0 1px rgba(255, 255, 255, 0.02); }

.harness-strip { text-align: center; padding: 72px 0 8px; }
.harness-strip .label { margin-bottom: 18px; }
.harnesses { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.harnesses li { font: 500 14px/1 var(--font-mono); color: var(--text-bright); padding: 12px 16px; border: 1px solid var(--border-primary); border-radius: var(--radius); background: var(--surface-1); }
.harness-strip .muted { margin: 18px auto 0; max-width: 40em; }

.tyde-feature { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 56px; align-items: center; padding-top: 112px; }
.tyde-feature.flip .tyde-feature-copy { order: 2; }
.feature-icon { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; color: var(--accent-link); background: var(--accent-subtle); margin-bottom: 16px; }
.feature-icon svg { width: 18px; height: 18px; }
.tyde-feature h3 { font-size: 32px; line-height: 1.12; font-weight: 700; letter-spacing: -0.035em; color: var(--text-bright); margin: 8px 0 14px; }
.tyde-feature p { color: var(--text-secondary); font-size: 16px; margin-bottom: 18px; }
.more { font-weight: 500; }
.more:hover .arrow { transform: translateX(3px); display: inline-block; }
.tyde-feature.phone { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.phone-frame { justify-self: center; width: min(100%, 290px); padding: 10px; border-radius: 36px; background: #0b0b0b; border: 1px solid var(--border-secondary); box-shadow: 0 30px 80px -30px color-mix(in srgb, var(--success) 35%, transparent); }
.phone-frame video { display: block; width: 100%; height: auto; border-radius: 27px; }

.tour { padding-top: 112px; }
.tour-caption { margin-top: 12px; text-align: center; font-size: 14px; }

.doc-index { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.doc-col { padding: 20px; border: 1px solid var(--border-primary); border-radius: 8px; background: var(--surface-1); }
.doc-col .label { margin-bottom: 10px; }
.doc-col ul { list-style: none; }
.doc-col li a { display: block; padding: 5px 0; font-size: 14.5px; color: var(--text-primary); }
.doc-col li a:hover { color: var(--accent-link); }

.steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.steps li { counter-increment: step; padding: 20px; border: 1px solid var(--border-primary); border-radius: 8px; background: var(--surface-1); color: var(--text-secondary); font-size: 14px; }
.steps li::before { content: counter(step, decimal-leading-zero); display: block; font: 500 12px/1 var(--font-mono); color: var(--accent-link); margin-bottom: 14px; }
.steps strong { display: block; color: var(--text-bright); font-weight: 600; font-size: 15px; margin-bottom: 4px; }

.tyde-cta { margin-top: 112px; padding: 64px 24px; text-align: center; border: 1px solid var(--border-primary); border-radius: 12px; background: radial-gradient(ellipse at top, var(--accent-subtle), transparent 70%), var(--surface-1); }
.tyde-cta img { border-radius: 12px; }
.tyde-cta h2 { font-size: 36px; letter-spacing: -0.035em; color: var(--text-bright); margin: 16px 0 6px; }
.tyde-cta .hero-actions { justify-content: center; margin-top: 26px; }

.lightbox { margin: auto; max-width: 96vw; max-height: 94vh; padding: 0; border: 1px solid var(--border-secondary); border-radius: 8px; background: var(--surface-1); cursor: zoom-out; overflow: hidden; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); }
.lightbox img { display: block; max-width: 96vw; max-height: 94vh; width: auto; height: auto; }
.lightbox-close { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border-secondary); background: rgba(0, 0, 0, 0.6); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

.dl-crumbs { padding-top: 28px; }
.dl-hero { text-align: center; padding: 36px 0 48px; }
.dl-hero img { border-radius: 14px; }
.dl-hero h1 { font-size: 48px; letter-spacing: -0.04em; color: var(--text-bright); margin: 18px 0 8px; }
.dl-pick { margin-top: 28px; display: grid; justify-items: center; gap: 12px; }
.dl-mobile { max-width: 34em; color: var(--text-secondary); font-size: 14.5px; }
.os-icon { display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 6px; background: var(--surface-2); color: var(--text-bright); vertical-align: -7px; }
.os-icon svg { width: 15px; height: 15px; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.downloads .card p { margin: 10px 0 4px; }
.dl-list { list-style: none; margin-top: 12px; }
.dl-list li { border-top: 1px solid var(--border-primary); font-size: 14.5px; }
.dl-list li:not(:has(a)) { padding: 11px 0; }
.dl-list li a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 8px; margin: 0 -8px; border-radius: 5px; color: var(--text-primary); }
.dl-list li a:hover { background: var(--surface-2); color: var(--text-bright); }
.dl-list li.suggested a { color: var(--accent-link); font-weight: 600; background: var(--accent-subtle); }
.dl-list li.suggested a .label::before { content: 'for you · '; color: var(--accent-link); }
.dl-list li.missing { color: var(--text-tertiary); }

@media (max-width: 900px) {
    .tyde-hero h1 { font-size: 52px; }
    .tyde-feature, .tyde-feature.phone { grid-template-columns: minmax(0, 1fr); gap: 28px; padding-top: 80px; }
    .tyde-feature.flip .tyde-feature-copy { order: 0; }
    .steps, .doc-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .tyde-hero { padding: 48px 0 36px; }
    .tyde-hero h1 { font-size: 40px; }
    .tyde-hero .lede { font-size: 16px; }
    .tyde-hero .hero-actions .btn, .tyde-cta .hero-actions .btn { width: 100%; justify-content: center; }
    .window-bar { height: 18px; gap: 5px; }
    .window-bar span { width: 7px; height: 7px; }
    .tyde-feature h3 { font-size: 26px; }
    .tour, .harness-strip { padding-top: 64px; }
    .tyde-cta { margin-top: 72px; padding: 44px 18px; }
    .tyde-cta h2 { font-size: 28px; }
    .dl-hero h1 { font-size: 38px; }
    .steps, .downloads, .doc-index { grid-template-columns: minmax(0, 1fr); }
}
