/* =========================================================
   IPTViX landing — single-file stylesheet, no frameworks.
   Pitch-black canvas with red ambient glows, glowing
   wordmark, stacked product mockups. The accent
   (--accent: #E40813) matches AccentColor.colorset and the
   default AppSettings.AccentChoice.netflixRed in-app, so
   the brand carries across web → App Store → app.
   ========================================================= */

:root {
    /* Pure-black field — same vibe as a movie cinema, lets the
       red ambient blobs and glowing wordmark do all the speaking. */
    --bg:            #050508;
    --bg-elev:       #0C0C12;
    --bg-card:       #12121C;
    --bg-card-hover: #18182A;
    --border:        rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.13);
    --text:          #EDEDF0;
    --text-dim:      #9CA0AC;
    --text-faint:    #5C5F6B;

    /* Brand red — matches AccentColor.colorset (#E40813) and the
       default AccentChoice.netflixRed picked in AppSettings. */
    --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:     22px;
    --radius-xl:     32px;
    --ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
    --maxw:          1200px;

    --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;
    background: var(--bg);
}

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.55;
    overflow-x: hidden;
}

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: #fff;
    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;
    position: relative;
    z-index: 1;
}

/* =========================================================
   Ambient — fixed-position decorative glows that bleed off-canvas.
   Deliberately fixed (not absolute on hero) so they parallax
   subtly with scroll and frame the entire page, not just one
   section. Pure CSS — no images, no JS.
   ========================================================= */
.ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}
.ambient-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(110px);
    will-change: transform;
}
.ambient-blob.red {
    top: -260px;
    left: -260px;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, var(--accent) 0%, transparent 60%);
    opacity: 0.55;
}
.ambient-blob.blue {
    bottom: -300px;
    right: -260px;
    width: 760px;
    height: 760px;
    background: radial-gradient(circle, #2451E0 0%, transparent 60%);
    opacity: 0.30;
}
@media (max-width: 760px) {
    .ambient-blob.red,
    .ambient-blob.blue { width: 520px; height: 520px; opacity: 0.40; }
}

/* Make sure the chrome layers sit above the ambient. */
.nav, main, .footer { position: relative; z-index: 1; }

/* =========================================================
   Typography
   ========================================================= */
.h2 {
    font-size: clamp(32px, 5vw, 60px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    font-weight: 800;
    margin: 0 0 18px;
}
.lede {
    font-size: clamp(16px, 1.5vw, 19px);
    color: var(--text-dim);
    max-width: 560px;
    margin: 0 0 32px;
    line-height: 1.6;
}

/* Tiny ALL-CAPS section eyebrow. The `--red` modifier is the
   default for this site — only the brand-red variant exists,
   but we keep the modifier name so future neutral eyebrows are
   easy to layer in. */
.eyebrow {
    display: inline-block;
    margin: 0 0 18px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-faint);
}
.eyebrow--red { color: var(--accent-2); }

/* Massive glowing IPTViX wordmark — the visual anchor of the
   page. Oswald 700 keeps the tall, condensed, cinematic
   Netflix-display feel of Bebas Neue but ships with proper
   lowercase glyphs, so the brand's lowercase 'i' in "IPTViX"
   actually renders as a lowercase 'i' instead of being flattened
   to caps. Multi-layer text-shadow paints a soft red bloom that
   tapers off so it reads as light rather than a solid halo. */
.wordmark {
    margin: 0 0 18px;
    font-family: "Oswald", "Bebas Neue", "Anton", Impact, var(--font);
    font-size: clamp(88px, 16vw, 208px);
    line-height: 0.92;
    font-weight: 700;
    letter-spacing: -0.005em;
    color: var(--accent);
    text-shadow:
        0 0 28px rgba(228, 8, 19, 0.65),
        0 0 60px rgba(228, 8, 19, 0.45),
        0 0 110px rgba(228, 8, 19, 0.25);
}

.hero-headline {
    margin: 0 0 22px;
    font-size: clamp(28px, 4vw, 50px);
    line-height: 1.05;
    letter-spacing: -0.025em;
    font-weight: 700;
    color: var(--text);
}

/* =========================================================
   Nav — sticky, blurred, transparent over ambient
   ========================================================= */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: saturate(1.4) blur(18px);
    -webkit-backdrop-filter: saturate(1.4) blur(18px);
    background: rgba(5, 5, 8, 0.65);
    border-bottom: 1px solid var(--border);
}
.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; }
}

/* Language picker — native <select> styled to match the dark nav. The
   form submits on `change` so users don't have to hit a button. We
   keep it small + compact so it doesn't muscle the Download CTA. */
.lang-picker { margin: 0; }
.lang-picker select {
    appearance: none;
    -webkit-appearance: none;
    background-color: rgba(255, 255, 255, 0.05);
    background-image: linear-gradient(45deg, transparent 50%, var(--text-dim) 50%),
                      linear-gradient(135deg, var(--text-dim) 50%, transparent 50%);
    background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%;
    background-size: 5px 5px, 5px 5px;
    background-repeat: no-repeat;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    padding: 7px 30px 7px 14px;
    cursor: pointer;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}
.lang-picker select:hover,
.lang-picker select:focus-visible {
    border-color: rgba(255, 255, 255, 0.20);
    background-color: rgba(255, 255, 255, 0.08);
    outline: none;
}
.lang-picker option {
    background: #0c0c10;
    color: var(--text);
}
@media (max-width: 760px) {
    .lang-picker select { font-size: 12px; padding: 6px 26px 6px 12px; }
}

/* Visually-hidden helper for accessible labels that shouldn't render. */
.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;
}

/* RTL — flip directional layout where needed. The grid components
   (EPG, hero stack, feature pills) read fine either direction since
   their content is mirrored by the writing direction. */
[dir="rtl"] .nav-links a + a { margin-right: 0; }

/* Legal page — non-English notice. Sits at the very top of the
   document so users see immediately that the legal copy below is
   English-only, regardless of the chrome they navigated through. */
.legal-lang-note {
    margin: 0 0 24px;
    padding: 10px 14px;
    border-left: 3px solid var(--accent);
    background: rgba(228, 8, 19, 0.06);
    color: var(--text-dim);
    font-size: 13px;
    border-radius: 4px;
}
[dir="rtl"] .legal-lang-note {
    border-left: none;
    border-right: 3px solid var(--accent);
}

/* =========================================================
   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),
                color 0.2s var(--ease);
    border: 1px solid transparent;
    white-space: nowrap;
    cursor: pointer;
}
.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.16);
}
.btn-ghost {
    color: var(--text);
    border-color: var(--border-strong);
    background: transparent;
}
.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: var(--text-dim);
}
.btn-small {
    padding: 10px 16px;
    font-size: 14px;
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
    position: relative;
    padding: 56px 0 96px;
}
.hero-inner {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 48px;
    align-items: center;
}
@media (max-width: 980px) {
    .hero-inner { grid-template-columns: 1fr; gap: 56px; }
    .hero { padding: 40px 0 64px; }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 4px 0 36px;
}
.hero-cta.center { justify-content: center; }

/* Stat trio under the CTAs. The vertical-stack of
   number-then-label is intentionally lean — competing IPTV
   apps splash multi-row stat tables; we want one row that
   reads as a confidence signal. */
.hero-stats {
    list-style: none;
    padding: 24px 0 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: start;
    gap: clamp(20px, 4vw, 40px);
    border-top: 1px solid var(--border);
    max-width: 520px;
}
.hero-stats li {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.hero-stats strong {
    font-size: clamp(28px, 3.4vw, 38px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--text);
}
.hero-stats span {
    font-size: 11px;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 600;
    line-height: 1.3;
}

/* =========================================================
   Hero device stack — pure-CSS TV / iPad / iPhone mockups
   stacked with overlap so the eye reads "every Apple screen,
   one app". Each is its own absolute layer.
   ========================================================= */
.hero-stack {
    position: relative;
    aspect-ratio: 1 / 1;
    min-height: 420px;
}
@media (max-width: 980px) {
    .hero-stack { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 480px) {
    .hero-stack { min-height: 320px; }
}
.dev {
    position: absolute;
    background: linear-gradient(180deg, #1A1A24, #08080F);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.06) inset,
        0 60px 100px -30px rgba(0, 0, 0, 0.85),
        0 0 80px rgba(228, 8, 19, 0.18);
    overflow: hidden;
}
.dev-screen {
    width: 100%;
    height: 100%;
    background: #08080F;
    overflow: hidden;
    position: relative;
}

/* TV — back-most layer, shifted up so the iPad and iPhone
   overlap its lower edge. Subtle counter-rotate. */
.dev--tv {
    top: -2%;
    left: 4%;
    right: 4%;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    padding: 8px;
    z-index: 1;
    transform: rotate(-1.5deg);
}
.dev--tv .dev-screen { border-radius: 8px; padding: 14px; }

/* iPad — middle layer, overlapping the TV from below-left. */
.dev--ipad {
    bottom: 2%;
    left: -6%;
    width: 62%;
    aspect-ratio: 4 / 3;
    border-radius: 18px;
    padding: 10px;
    z-index: 2;
    transform: rotate(-4deg);
}
.dev--ipad .dev-screen { border-radius: 10px; padding: 14px; }

/* iPhone — front-most layer, smallest, vertical, slightly
   tilted the other way for visual rhythm. */
.dev--iphone {
    top: 14%;
    right: -2%;
    width: 28%;
    aspect-ratio: 9 / 19.5;
    border-radius: 32px;
    padding: 7px;
    z-index: 3;
    transform: rotate(4deg);
}
.dev--iphone .dev-screen {
    border-radius: 26px;
    padding: 22px 10px 10px;
}
.dev-notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 14px;
    background: #000;
    border-radius: 999px;
    z-index: 4;
}

/* ---------- TV content ---------- */
.tv-feature {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px;
    background:
        linear-gradient(135deg, rgba(228, 8, 19, 0.55), rgba(20, 6, 12, 0)) ,
        linear-gradient(180deg, #2A0810, #050508);
    border-radius: 8px;
    margin-bottom: 12px;
    aspect-ratio: 16 / 7;
    justify-content: flex-end;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    position: relative;
}
.tv-feature-pill {
    align-self: flex-start;
    background: var(--accent);
    color: #fff;
    font-size: 8px;
    font-weight: 800;
    letter-spacing: 0.12em;
    padding: 3px 7px;
    border-radius: 3px;
    margin-bottom: 4px;
}
.tv-feature-title {
    font-size: clamp(13px, 1.6vw, 18px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1;
    color: #fff;
}
.tv-feature-meta {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.2;
}
.tv-rail {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.tv-rail-title {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    font-weight: 700;
}
.tv-rail-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 4px;
}
.tv-tile {
    aspect-ratio: 16 / 10;
    border-radius: 4px;
    background: var(--tile-tint, #1E1E2A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.04em;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.tv-tile .live-dot {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 6px var(--live);
}

/* ---------- iPad content ---------- */
.ipad-head {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
}
.ipad-tab {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-faint);
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
}
.ipad-tab.active {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.ipad-grid {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.ipad-row {
    display: grid;
    grid-template-columns: 28px 1fr 1fr 1fr;
    gap: 4px;
    align-items: center;
}
.ipad-time {
    font-size: 8px;
    color: var(--text-faint);
    text-align: right;
}
.ipad-prog {
    font-size: 9px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    color: var(--text-dim);
    line-height: 1;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.ipad-prog.wide { grid-column: span 2; }
.ipad-prog.accent {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-2);
    font-weight: 600;
}

/* ---------- iPhone content ---------- */
.iph-poster {
    aspect-ratio: 1 / 1.45;
    border-radius: 12px;
    background:
        linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, 0.85)),
        linear-gradient(135deg, #5B0710, #100308);
    margin-bottom: 14px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 4px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.iph-poster-label {
    font-size: 8px;
    color: var(--accent-2);
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.iph-poster-title {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: #fff;
    line-height: 1;
}
.iph-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
}
.iph-ctrl.big {
    font-size: 26px;
    color: #fff;
}

/* =========================================================
   Spotlight — 2-column copy + visual block, used 3× on the page
   (EPG, DVR, AI). `.reverse` swaps the columns.
   ========================================================= */
.spotlight {
    padding: 96px 0;
    position: relative;
}
.spotlight-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}
@media (max-width: 900px) {
    .spotlight-inner { grid-template-columns: 1fr; gap: 40px; }
    .spotlight { padding: 56px 0; }
}
.spotlight.reverse .spotlight-copy { order: 2; }
.spotlight.reverse .spotlight-visual { order: 1; }
@media (max-width: 900px) {
    .spotlight.reverse .spotlight-copy { order: initial; }
    .spotlight.reverse .spotlight-visual { order: initial; }
}
.spotlight-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

/* =========================================================
   EPG card — the visual companion to the LIVE TV GUIDE block.
   Five rows of channel/program cells with an animated
   "now" line slicing through.
   ========================================================= */
.epg-card {
    position: relative;
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #14141E, #0A0A12);
    border: 1px solid var(--border);
    box-shadow:
        0 30px 60px -20px rgba(0, 0, 0, 0.7),
        0 0 60px rgba(228, 8, 19, 0.10);
    padding: 22px;
    overflow: hidden;
}
.epg-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}
.epg-now {
    color: var(--live);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.epg-now::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 8px var(--live);
    animation: livePulse 1.4s ease-in-out infinite;
}
.epg-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.epg-row {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 8px;
    align-items: center;
}
.epg-logo {
    height: 36px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
}
.epg-cells {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4px;
}
.epg-prog {
    padding: 10px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-dim);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.epg-prog.accent {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-2);
    font-weight: 600;
}
.epg-now-line {
    position: absolute;
    top: 56px;
    bottom: 22px;
    left: 65%;
    width: 2px;
    background: var(--live);
    box-shadow: 0 0 12px var(--live);
    pointer-events: none;
}
.epg-now-line::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    width: 10px;
    height: 10px;
    background: var(--live);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--live);
}
@keyframes livePulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%      { opacity: 0.5; transform: scale(0.85); }
}

/* =========================================================
   Platforms — center-aligned grid with two halves
   (Available now, Coming soon).
   ========================================================= */
.platforms {
    padding: 96px 0;
    text-align: center;
}
.platforms .eyebrow,
.platforms .h2,
.platforms .lede {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.platforms .lede { margin-bottom: 32px; }
.platforms-title {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--text-faint);
    font-weight: 700;
    margin: 56px 0 20px;
}
.platforms-title:first-of-type { margin-top: 16px; }
/* Flex with centered justify so both the 2-card "Available now"
   row and the 3-card "Coming soon" row look balanced — a 3-col
   grid would leave an empty cell when there are only two items. */
.platform-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
    max-width: 720px;
    margin: 0 auto;
}
.platform-grid + .platforms-title { margin-top: 48px; }
.platform-card {
    flex: 0 1 220px;
    min-width: 180px;
    position: relative;
    padding: 28px 18px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.platform-card:hover {
    border-color: var(--border-strong);
    transform: translateY(-2px);
}
.platform-card.dim { opacity: 0.62; }
.platform-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    margin-bottom: 6px;
}
.platform-name {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.platform-os {
    font-size: 12px;
    color: var(--text-faint);
}
.badge-soon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent);
    color: #fff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    padding: 3px 7px;
    border-radius: 4px;
}

/* =========================================================
   Pillars — 3-card row of brand promises (Native, Privacy,
   Apple craft). Subtle red top-edge gradient gives each
   card a backlit feel without overwhelming the surface.
   ========================================================= */
.pillars {
    padding: 56px 0 32px;
}
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 760px) {
    .pillar-grid { grid-template-columns: 1fr; }
}
.pillar {
    position: relative;
    padding: 28px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    overflow: hidden;
}
.pillar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 12%;
    right: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.55;
}
.pillar h3 {
    font-size: 19px;
    font-weight: 700;
    letter-spacing: -0.015em;
    margin: 0 0 10px;
    color: var(--text);
}
.pillar p {
    margin: 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.55;
}

/* =========================================================
   Everything — feature pills wrapped in a faux-browser frame
   so the chips feel like they live inside an app's tab.
   ========================================================= */
.everything {
    padding: 120px 0 100px;
}
.everything .eyebrow,
.everything .h2,
.everything .lede {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.everything .lede { margin-bottom: 56px; }

.browser {
    background: linear-gradient(180deg, #11111B, #08080F);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow:
        0 40px 80px -30px rgba(0, 0, 0, 0.85),
        0 0 80px rgba(228, 8, 19, 0.10);
}
.browser-bar {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 18px;
    background: rgba(255, 255, 255, 0.025);
    border-bottom: 1px solid var(--border);
}
.browser-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-faint);
    flex-shrink: 0;
}
.browser-dot:nth-child(1) { background: #FF5F57; }
.browser-dot:nth-child(2) { background: #FEBC2E; }
.browser-dot:nth-child(3) { background: #28C840; }
.browser-tab {
    margin-left: 18px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 12px;
    color: var(--text-dim);
    font-weight: 500;
    max-width: 70%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.browser-mark { display: inline-flex; flex-shrink: 0; }
.features-pills {
    list-style: none;
    padding: 36px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.features-pills li {
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 14px;
    color: var(--text);
    transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
                color 0.2s var(--ease), transform 0.15s var(--ease);
}
.features-pills li:hover {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent-2);
    transform: translateY(-1px);
}
@media (max-width: 760px) {
    .features-pills { padding: 22px; gap: 8px; }
    .features-pills li { font-size: 13px; padding: 8px 13px; }
}

/* =========================================================
   DVR — stacked recording cards.
   ========================================================= */
.rec-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rec-card {
    padding: 18px 20px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.rec-card.dim { opacity: 0.78; }
.rec-head {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-faint);
    margin-bottom: 10px;
}
.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.scheduled { background: var(--accent-2); 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: 700;
    letter-spacing: -0.01em;
    margin-bottom: 2px;
    color: var(--text);
}
.rec-sub {
    font-size: 13px;
    color: var(--text-dim);
    margin-bottom: 14px;
}
.rec-card.dim .rec-sub { margin-bottom: 0; }
.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);
}

/* Generic ticked-list, used in the DVR + AI spotlights. */
.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);
}

/* =========================================================
   AI card — visual companion to the AI COMPANION spotlight.
   ========================================================= */
.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.10;
    pointer-events: none;
}
.ai-head {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 14px;
    padding: 6px 12px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    border-radius: 999px;
}
.ai-badge {
    margin-left: 6px;
    padding-left: 8px;
    border-left: 1px solid var(--accent-border);
    color: var(--accent-2);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
}
.ai-card p {
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    margin: 0 0 20px;
    position: relative;
}
.ai-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    position: relative;
}
.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);
}

/* =========================================================
   Reviews — 3-up testimonial grid.
   ========================================================= */
.reviews {
    padding: 96px 0;
}
.reviews .eyebrow,
.reviews .h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.reviews .h2 { margin-bottom: 48px; }
.review-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
@media (max-width: 900px) { .review-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .review-grid { grid-template-columns: 1fr; } }
.review {
    margin: 0;
    padding: 24px;
    background: linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.review blockquote {
    margin: 0 0 14px;
    font-size: 15px;
    line-height: 1.5;
    letter-spacing: -0.005em;
    color: var(--text);
}
.review figcaption {
    font-size: 13px;
    color: var(--text-faint);
}
.review figcaption strong { color: var(--text-dim); font-weight: 600; }
.stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 0.2em;
    margin-bottom: 12px;
}

/* =========================================================
   FAQ — centered, with disclosure-triangle accordions.
   ========================================================= */
.faq {
    padding: 96px 0;
}
.faq .eyebrow,
.faq .h2 {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}
.faq .h2 { margin-bottom: 32px; }
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}
.faq details {
    padding: 22px 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);
    color: var(--text);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--accent-2); }
.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), color 0.2s var(--ease),
                border-color 0.2s var(--ease);
}
.faq details[open] summary::after {
    color: var(--accent-2);
    border-color: var(--accent-border);
}
.faq details p {
    margin: 12px 0 0;
    color: var(--text-dim);
    font-size: 15px;
    line-height: 1.6;
    max-width: 720px;
}

/* =========================================================
   Final CTA — single rounded card with a soft red glow at
   the top edge, mirroring the .pillar accent treatment.
   ========================================================= */
.final {
    padding: 64px 0 120px;
}
.final-inner {
    max-width: 760px;
    margin: 0 auto;
}
.final-card {
    text-align: center;
    padding: 72px 32px;
    background:
        radial-gradient(ellipse at 50% -20%, var(--accent-soft) 0%, transparent 55%),
        linear-gradient(180deg, var(--bg-card), var(--bg-elev));
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    overflow: hidden;
}
.final-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.65;
}
.final-card .eyebrow { text-align: center; }
.final-title {
    margin: 0 auto 16px;
}
.final-card .lede {
    margin: 0 auto 32px;
}
.final-card .hero-cta {
    justify-content: center;
    margin-bottom: 0;
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
    background: var(--bg);
    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: 700;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    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-2); }
.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;
    display: inline-flex;
}
.foot-social a:hover { color: var(--accent-2); }

/* =========================================================
   Legal pages (privacy.html, terms.html) — preserved from
   the prior design. The legal article reuses .nav and
   .footer; only the article body 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;
    letter-spacing: -0.025em;
    font-weight: 800;
    line-height: 1.05;
}
.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;
    font-weight: 700;
}
.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 {
    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 cell text never breaks 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: 700;
    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; }

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

/* =========================================================
   Reduced motion — kill the live-pulse and any transforms
   for users who've asked the OS for less 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;
    }
}
