/* =========================================================
   IPTViX landing — single-file stylesheet, no frameworks.
   Dark by default, red accent (matches the app's default
   "Netflix red" AccentColor — see Assets.xcassets), system
   font stack for speed.
   ========================================================= */

:root {
    --bg:            #0A0A0F;
    --bg-elev:       #101018;
    --bg-card:       #151520;
    --bg-card-hover: #1B1B28;
    --border:        rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.14);
    --text:          #EDEDF0;
    --text-dim:      #A0A0AD;
    --text-faint:    #60606B;
    /* Brand red — matches AccentColor.colorset (#E40813) and the
       default AccentChoice.netflixRed picked in AppSettings. The
       gradient companion (-2) is a brighter pinkish red so callout
       glows still read against deep backgrounds. */
    --accent:        #E40813;
    --accent-2:      #FF2D44;
    --accent-soft:   rgba(228, 8, 19, 0.14);
    --accent-border: rgba(228, 8, 19, 0.40);
    --live:          #FF375F;
    --radius-sm:     10px;
    --radius:        16px;
    --radius-lg:     24px;
    --radius-xl:     32px;
    --ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
    --maxw:          1180px;

    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
            "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: "ss01", "cv02", "cv03";
    line-height: 1.5;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

.skip {
    position: absolute;
    top: -40px;
    left: 8px;
    background: var(--accent);
    color: #000;
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 100;
}
.skip:focus { top: 8px; }

.container {
    width: 100%;
    max-width: var(--maxw);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- typography ---------- */
.h1 {
    font-size: clamp(42px, 7vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.035em;
    font-weight: 700;
    margin: 0 0 24px;
}
.h2 {
    font-size: clamp(30px, 4.4vw, 52px);
    line-height: 1.04;
    letter-spacing: -0.025em;
    font-weight: 700;
    margin: 0 0 16px;
}
.lede {
    font-size: clamp(17px, 1.6vw, 20px);
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 0 32px;
}
.section-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--text-dim);
    max-width: 640px;
    margin: 0;
}
.accent { color: var(--accent); }
.ilink { color: var(--accent); }
.ilink:hover { text-decoration: underline; }

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dim);
    padding: 6px 12px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    margin-bottom: 20px;
    background: var(--bg-elev);
}
.eyebrow .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px var(--accent-soft);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 56px;
    text-align: center;
}
.section-head .section-sub { margin: 0 auto; }

/* ---------- nav ---------- */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.4) blur(16px);
    -webkit-backdrop-filter: saturate(1.4) blur(16px);
    background: rgba(10, 10, 15, 0.72);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.nav-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 64px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text);
}
.brand-mark { display: inline-flex; }
.brand-name { font-size: 18px; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-left: auto;
}
.nav-links a {
    font-size: 14px;
    color: var(--text-dim);
    transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }
@media (max-width: 760px) {
    .nav-links { display: none; }
    .nav-inner { justify-content: space-between; }
}

/* ---------- buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    transition: transform 0.15s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn small {
    display: block;
    font-size: 10px;
    font-weight: 500;
    opacity: 0.7;
    line-height: 1;
    margin-bottom: 2px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.btn strong {
    display: block;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
}
.btn-primary {
    background: var(--text);
    color: #000;
}
.btn-primary:hover {
    background: #fff;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.12);
}
.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: transparent;
}
.btn-ghost:hover {
    background: var(--bg-elev);
    border-color: var(--text-dim);
}
.btn-small {
    padding: 10px 16px;
    font-size: 14px;
}

/* ---------- hero ---------- */
.hero {
    position: relative;
    padding: 80px 0 96px;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    inset: -200px auto auto -200px;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle at 30% 30%, var(--accent) 0%, transparent 55%);
    opacity: 0.22;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.hero::after {
    content: '';
    position: absolute;
    inset: auto -200px -200px auto;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #5B5BF0 0%, transparent 55%);
    opacity: 0.15;
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}
.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 48px 0 72px; }
}
.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
}
.hero-cta.center { justify-content: center; }
.hero-meta {
    display: flex;
    gap: 10px;
    align-items: center;
    color: var(--text-faint);
    font-size: 14px;
}
.hero-meta.center { justify-content: center; }
.dot-sep { opacity: 0.5; }

/* ---------- hero phone mockups ---------- */
.hero-visual {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.phone {
    position: absolute;
    width: 78%;
    max-width: 360px;
    aspect-ratio: 9 / 19.5;
    background: linear-gradient(180deg, #1C1C26, #0E0E16);
    border-radius: 42px;
    padding: 10px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.08) inset,
        0 50px 80px -20px rgba(0, 0, 0, 0.6),
        0 10px 40px -10px rgba(228, 8, 19, 0.30);
    border: 1px solid rgba(255, 255, 255, 0.06);
    z-index: 2;
    transform: rotate(-3deg) translateX(-8%);
    animation: phoneFloat 6s ease-in-out infinite;
}
.phone-back {
    transform: rotate(6deg) translateX(34%) translateY(6%) scale(0.86);
    z-index: 1;
    opacity: 0.96;
    animation-delay: -3s;
}
@keyframes phoneFloat {
    0%, 100% { transform: rotate(-3deg) translateX(-8%) translateY(0); }
    50%      { transform: rotate(-3deg) translateX(-8%) translateY(-10px); }
}
.phone-back { animation-name: phoneFloatBack; }
@keyframes phoneFloatBack {
    0%, 100% { transform: rotate(6deg) translateX(34%) translateY(6%) scale(0.86); }
    50%      { transform: rotate(6deg) translateX(34%) translateY(calc(6% + 8px)) scale(0.86); }
}
.phone-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #000;
    border-radius: 999px;
    z-index: 3;
}
.phone-screen {
    width: 100%;
    height: 100%;
    background: #0A0A10;
    border-radius: 34px;
    padding: 44px 14px 14px;
    overflow: hidden;
    color: #fff;
}
.phone-screen.dark {
    background: #000;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mock list rows */
.mock-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    padding: 0 8px 10px;
}
.mock-icons { display: inline-flex; gap: 4px; }
.mock-title {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    padding: 8px 4px 14px;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
}
.mock-date {
    font-size: 11px;
    font-weight: 500;
    color: var(--text-faint);
    letter-spacing: 0;
}
.mock-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 4px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.mock-row.live { background: linear-gradient(90deg, rgba(228,8,19,0.14), transparent); border-radius: 10px; padding-left: 8px; }
.mock-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    flex-shrink: 0;
}
.mock-rowtext {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}
.mock-chname {
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
}
.mock-now {
    font-size: 10px;
    color: var(--text-dim);
    display: inline-flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
}
.live-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live);
    animation: livePulse 1.4s ease-in-out infinite;
}
@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.45; }
}
.mock-play { color: var(--accent); font-size: 14px; }
.mock-play.dim { color: var(--text-faint); }
.mock-rec { color: var(--live); font-size: 14px; }

.mock-player {
    width: 100%;
    height: 100%;
    background:
        linear-gradient(135deg, rgba(228,8,19,0.28), rgba(91,91,240,0.22)),
        #0A0A12;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mock-player-shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,0.05) 50%, transparent 60%);
    background-size: 200% 100%;
    animation: shimmer 3s linear infinite;
}
@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.mock-player-badge {
    position: absolute;
    top: 20px;
    left: 16px;
    background: var(--live);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    padding: 4px 8px;
    border-radius: 4px;
    z-index: 2;
}
.mock-player-controls {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    color: #fff;
    z-index: 2;
    font-size: 22px;
    opacity: 0.9;
}
.mock-ctrl.big { font-size: 40px; }

/* ---------- platforms strip ---------- */
.platforms {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg-elev);
}
.platforms-label {
    text-align: center;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 11px;
    font-weight: 600;
    margin: 0 0 24px;
}
.platforms-row {
    display: flex;
    justify-content: center;
    gap: clamp(24px, 6vw, 80px);
    flex-wrap: wrap;
}
.platform {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    font-size: 15px;
    font-weight: 500;
}
.platform.dim { opacity: 0.5; }
.platform small {
    display: inline-block;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border: 1px solid var(--border-strong);
    border-radius: 999px;
    margin-left: 8px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

/* ---------- features grid ---------- */
.features {
    padding: 120px 0;
}
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feature-grid { grid-template-columns: 1fr; } }
.feature-card {
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease), border-color 0.2s var(--ease);
}
.feature-card:hover {
    background: var(--bg-card-hover);
    transform: translateY(-2px);
    border-color: var(--border-strong);
}
.feature-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -0.015em;
}
.feature-card p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.55;
}
.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border: 1px solid var(--accent-border);
}

/* ---------- callouts ---------- */
.callout {
    padding: 96px 0;
    border-top: 1px solid var(--border);
}
.callout-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 900px) {
    .callout-inner { grid-template-columns: 1fr; gap: 40px; }
    .callout { padding: 72px 0; }
}
.callout.reverse .callout-inner > :first-child { order: 2; }
@media (max-width: 900px) {
    .callout.reverse .callout-inner > :first-child { order: initial; }
}
.ticks {
    list-style: none;
    padding: 0;
    margin: 28px 0 0;
    display: grid;
    gap: 12px;
}
.ticks li {
    position: relative;
    padding-left: 28px;
    color: var(--text);
    font-size: 15px;
}
.ticks li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
}
.ticks li::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 8px;
    width: 8px;
    height: 4px;
    border-left: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(-45deg);
}

/* Guide callout visual */
.guide-grid {
    position: relative;
    display: grid;
    grid-template-columns: 50px repeat(4, 1fr);
    gap: 2px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    overflow: hidden;
}
.guide-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.guide-col.time {
    font-size: 10px;
    color: var(--text-faint);
    padding-top: 36px;
    gap: 30px;
}
.guide-ch {
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-dim);
    background: var(--bg-elev);
    border-radius: 6px;
    border: 1px solid var(--border);
    margin-bottom: 4px;
}
.guide-cell {
    flex: 1;
    min-height: 30px;
    padding: 8px 10px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    font-size: 10px;
    color: var(--text-dim);
    display: flex;
    align-items: center;
}
.guide-cell.wide { min-height: 62px; }
.guide-cell.accent-cell {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent);
    font-weight: 600;
}
.guide-now {
    position: absolute;
    top: 56px;
    bottom: 20px;
    left: 38%;
    width: 2px;
    background: var(--live);
    box-shadow: 0 0 10px var(--live);
}
.guide-now::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    width: 8px;
    height: 8px;
    background: var(--live);
    border-radius: 50%;
}

/* Recording cards */
.rec-card {
    padding: 18px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 12px;
}
.rec-card.dim { opacity: 0.82; }
.rec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    margin-bottom: 8px;
}
.rec-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 0 3px rgba(255, 55, 95, 0.18);
    animation: livePulse 1.4s ease-in-out infinite;
}
.rec-dot.dim { background: var(--text-faint); box-shadow: none; animation: none; }
.rec-dot.done { background: var(--accent); box-shadow: none; animation: none; }
.rec-time { margin-left: auto; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-dim); }
.rec-title { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 4px; }
.rec-sub { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.rec-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 10px;
}
.rec-bar span {
    display: block;
    height: 100%;
    width: 62%;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    border-radius: 999px;
}
.rec-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--text-faint);
}

/* AI card */
.ai-card {
    padding: 28px;
    background: linear-gradient(160deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
}
.ai-card::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(135deg, var(--accent), transparent 60%);
    opacity: 0.08;
    pointer-events: none;
}
.ai-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 12px;
    padding: 6px 12px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    border-radius: 999px;
}
.ai-card p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 20px;
}
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.ai-chips span {
    font-size: 12px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text-dim);
}

/* Sources grid */
.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}
@media (max-width: 560px) { .sources-grid { grid-template-columns: repeat(2, 1fr); } }
.source {
    padding: 22px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-card);
    display: flex;
    flex-direction: column;
    gap: 4px;
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.source:hover {
    background: var(--bg-card-hover);
    border-color: var(--accent-border);
}
.source-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.source-sub {
    font-size: 12px;
    color: var(--text-faint);
}

/* ---------- reviews ---------- */
.reviews {
    padding: 120px 0;
    border-top: 1px solid var(--border);
}
.review-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
@media (max-width: 760px) { .review-grid { grid-template-columns: 1fr; } }
.review {
    margin: 0;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.review blockquote {
    margin: 0 0 14px;
    font-size: 17px;
    line-height: 1.45;
    letter-spacing: -0.01em;
    color: var(--text);
}
.review blockquote::before { content: ''; }
.review figcaption { font-size: 13px; color: var(--text-faint); }
.stars { color: var(--accent); font-size: 14px; letter-spacing: 0.2em; margin-bottom: 12px; }

/* ---------- FAQ ---------- */
.faq {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
}
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq details {
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary {
    cursor: pointer;
    list-style: none;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    transition: color 0.15s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent); }
.faq summary::after {
    content: '+';
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-strong);
    border-radius: 50%;
    font-size: 18px;
    font-weight: 400;
    color: var(--text-dim);
    transition: transform 0.2s var(--ease);
}
.faq details p {
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    max-width: 700px;
}

/* ---------- final CTA ---------- */
.final-cta {
    padding: 120px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    position: relative;
    overflow: hidden;
}
.final-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 100%, var(--accent-soft) 0%, transparent 50%);
    pointer-events: none;
}
.final-cta-inner { position: relative; }
.final-cta .section-sub { margin: 0 auto 32px; }

/* ---------- footer ---------- */
.footer {
    padding: 72px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg-elev);
    color: var(--text-dim);
    font-size: 14px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.4fr 2fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 760px) {
    .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
.foot-brand .brand-name { font-size: 16px; }
.foot-tag { margin: 12px 0 0; color: var(--text-faint); max-width: 280px; }

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
@media (max-width: 560px) { .foot-cols { grid-template-columns: repeat(2, 1fr); } }
.foot-col h4 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0 0 14px;
}
.foot-col a {
    display: block;
    padding: 6px 0;
    color: var(--text-dim);
    font-size: 14px;
    transition: color 0.15s var(--ease);
}
.foot-col a:hover { color: var(--accent); }

.foot-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    color: var(--text-faint);
    font-size: 12px;
    flex-wrap: wrap;
}
.foot-social { display: inline-flex; gap: 16px; }
.foot-social a {
    color: var(--text-faint);
    transition: color 0.15s var(--ease);
    padding: 6px;
}
.foot-social a:hover { color: var(--accent); }

/* ---------- legal pages (privacy, terms) ----------
   Bookish prose layout — narrow column, generous line-height, big
   section headings. Reuses the brand .nav and .footer; only the
   content article needs its own styles. */
.legal-page {
    padding: 96px 0 80px;
}
.legal-doc {
    max-width: 720px;
    margin: 0 auto;
    color: var(--text-dim);
    line-height: 1.7;
}
.legal-doc .h1 {
    font-size: clamp(38px, 5.5vw, 60px);
    color: var(--text);
    margin: 8px 0 18px;
}
.legal-doc .lede {
    color: var(--text-dim);
    font-size: 18px;
    margin: 0 0 28px;
}
.legal-doc h2 {
    color: var(--text);
    font-size: clamp(22px, 2.4vw, 28px);
    line-height: 1.25;
    letter-spacing: -0.015em;
    font-weight: 700;
    margin: 44px 0 12px;
    scroll-margin-top: 96px;
}
.legal-doc h3 {
    color: var(--text);
    font-size: 18px;
    margin: 28px 0 8px;
}
.legal-doc p { margin: 0 0 14px; }
.legal-doc strong { color: var(--text); font-weight: 600; }
.legal-doc em { color: var(--text); font-style: italic; }
.legal-doc a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-color: var(--accent-border);
    text-underline-offset: 3px;
    transition: color 0.15s var(--ease), text-decoration-color 0.15s var(--ease);
}
.legal-doc a:hover {
    color: var(--accent);
    text-decoration-color: var(--accent);
}
.legal-doc ul, .legal-doc ol {
    margin: 0 0 18px;
    padding-left: 22px;
}
.legal-doc li { margin: 0 0 8px; }
.legal-doc li::marker { color: var(--accent); }
.legal-doc hr.legal-hr {
    border: 0;
    border-top: 1px solid var(--border);
    margin: 56px 0 28px;
}
.legal-doc .legal-foot {
    color: var(--text-faint);
    font-size: 14px;
}

/* TL;DR / summary callout — soft accent block at the top. */
.legal-summary {
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius);
    padding: 22px 24px;
    margin: 0 0 36px;
}
.legal-summary-title {
    /* Override the heavy h2 since this is a callout label, not a
       section header. */
    font-size: 14px !important;
    text-transform: uppercase;
    letter-spacing: 0.12em !important;
    color: var(--accent-2) !important;
    margin: 0 0 8px !important;
    font-weight: 700;
}
.legal-summary ul {
    margin: 0;
    padding-left: 18px;
}
.legal-summary li {
    color: var(--text);
    margin: 0 0 4px;
}

/* Data inventory table — horizontally scrollable on narrow screens
   so the cell text never has to break the layout. */
.legal-table-wrap {
    overflow-x: auto;
    margin: 8px 0 22px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg-elev);
}
.legal-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.legal-table th,
.legal-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.legal-table thead th {
    color: var(--text);
    background: var(--bg-card);
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table tbody td:first-child { color: var(--text); font-weight: 500; }

/* Footer "current page" indicator on the legal links. */
.foot-col a[aria-current="page"] {
    color: var(--accent-2);
}

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