/* Tavi Player website — redesign.css
   Carbon (default) and Cobalt themes. Glass is used on the functional layer only: header, menu, status pill, controls.
   Sections: [1] tokens · [2] base · [3] header & nav · [4] hero · [5] truth strip · [6] layout picker
             [7] Basic browser · [8] features · [9] kids · [10] themes · [11] pricing · [12] download
             [13] FAQ · [14] contact · [15] footer · [16] focus · [17] responsive · [18] user preferences */

/* ---------- [1] tokens ---------- */
:root {
  color-scheme: dark;
  --bg: #090b0e; --bg-soft: #0e1115;
  --bg-glass: rgba(9, 11, 14, .72);            /* header / menu / pill fallback when color-mix is unsupported */
  --panel: rgba(24, 27, 31, .72); --panel-solid: #171a1f;
  --line: rgba(255, 255, 255, .12); --line-strong: rgba(255, 255, 255, .22);
  --text: #f5f5f2; --muted: #a6a9ad;
  --accent: #ff7a45; --accent-2: #ffb080; --accent-soft: rgba(255, 122, 69, .14); --accent-line: rgba(255, 122, 69, .4);
  --focus: #fff; --radius: 22px; --shadow: 0 24px 80px rgba(0, 0, 0, .38); --max: 1240px;
}
html[data-theme="cobalt"] {
  --bg: #050914; --bg-soft: #081125;
  --bg-glass: rgba(5, 9, 20, .72);
  --panel: rgba(11, 25, 54, .72); --panel-solid: #0c1831;
  --line: rgba(140, 183, 255, .16); --line-strong: rgba(140, 183, 255, .3);
  --accent: #4d93ff; --accent-2: #94bdff; --accent-soft: rgba(77, 147, 255, .16); --accent-line: rgba(77, 147, 255, .4);
}

/* ---------- [2] base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; overflow-x: clip; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: clip; transition: background .3s ease; }
body:before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1; background: radial-gradient(ellipse 70% 45% at 75% -10%, var(--accent-soft), transparent 70%), linear-gradient(180deg, transparent 80%, rgba(255, 255, 255, .015)); transition: background .3s ease; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
figure { margin: 0; }
code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .95em; padding: 2px 6px; border-radius: 6px; background: rgba(255, 255, 255, .08); }
.skip-link { position: fixed; left: 16px; top: 10px; z-index: 1000; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; transform: translateY(-150%); }
.skip-link:focus { transform: none; }
.section-shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.section { padding-block: 120px; }
.eyebrow { margin: 0 0 18px; color: var(--accent-2); text-transform: uppercase; font-size: .75rem; font-weight: 800; letter-spacing: .14em; }
.hero h1, .section-heading h2, .download-copy h2, .faq-shell h2, .contact-section h2 { margin: 0; line-height: .93; letter-spacing: -.065em; }
.section-heading { max-width: 760px; margin-bottom: 48px; }
.section-heading h2 { font-size: clamp(2.7rem, 5.5vw, 5.5rem); }
.section-heading > p:last-child { max-width: 650px; margin: 24px 0 0; color: var(--muted); font-size: 1.08rem; }
.section-heading-wide { display: grid; grid-template-columns: 1.1fr .9fr; gap: 8vw; align-items: end; max-width: none; }
.section-heading-wide > p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 20px; border: 1px solid transparent; border-radius: 12px; font-weight: 750; cursor: pointer; }
.button-primary { color: #0a0a0a; background: var(--accent); }
.button-primary:hover, .button-primary:focus-visible { background: var(--accent-2); }
.button-quiet { border-color: var(--line-strong); background: rgba(255, 255, 255, .04); }
.button-quiet:hover, .button-quiet:focus-visible { background: rgba(255, 255, 255, .1); }
.screen-frame { position: relative; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 18px; background: #111; box-shadow: var(--shadow); }
.screen-frame:after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; box-shadow: inset 0 1px rgba(255, 255, 255, .2); }
.screen-frame img { width: 100%; height: auto; }

/* ---------- [3] header & nav (glass) ---------- */
.site-header { position: sticky; top: 0; z-index: 100; display: flex; align-items: center; gap: 28px; min-height: 72px; padding: 12px max(20px, calc((100vw - var(--max)) / 2)); border-bottom: 1px solid transparent; background: var(--bg-glass); -webkit-backdrop-filter: blur(20px) saturate(130%); backdrop-filter: blur(20px) saturate(130%); transition: border-color .2s, background .2s; }
.site-header.scrolled { border-color: var(--line); background: var(--bg-glass); background: color-mix(in srgb, var(--bg) 83%, transparent); }
.brand { display: inline-flex; align-items: center; gap: 11px; min-height: 44px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; }
.brand img { object-fit: contain; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 12px; border-radius: 10px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); background: rgba(255, 255, 255, .06); }
.site-nav .nav-download { color: var(--text); border: 1px solid var(--line-strong); margin-left: 6px; }
.menu-button { display: none; margin-left: auto; min-height: 44px; padding: 8px 12px; color: var(--text); background: transparent; border: 1px solid var(--line); border-radius: 10px; align-items: center; gap: 8px; }
.menu-icon, .menu-icon:before, .menu-icon:after { display: block; width: 18px; height: 2px; background: currentColor; content: ""; }
.menu-icon { position: relative; }
.menu-icon:before { position: absolute; top: -6px; }
.menu-icon:after { position: absolute; top: 6px; }

/* ---------- [4] hero ---------- */
.hero { min-height: calc(100svh - 72px); display: grid; grid-template-columns: .82fr 1.38fr; align-items: center; gap: 6vw; padding-top: 72px; padding-bottom: 96px; }
.hero h1 { font-size: clamp(3.8rem, 7vw, 7.8rem); max-width: 9ch; }
.hero h1 span { color: var(--accent); }
.hero-lede { max-width: 580px; margin: 30px 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.28rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-facts { list-style: none; display: flex; gap: 28px; padding: 0; margin: 48px 0 0; }
.hero-facts li { display: grid; }
.hero-facts strong { font-size: 1.35rem; }
.hero-facts span { color: var(--muted); font-size: .78rem; }
.hero-product { position: relative; padding-top: 24px; }
.status-pill { position: absolute; z-index: 2; top: 0; left: 24px; display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--bg-glass); border: 1px solid var(--line-strong); border-radius: 99px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: .78rem; font-weight: 700; }
.status-pill span { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.screen-frame-hero { transform: perspective(1400px) rotateY(-4deg) rotateX(2deg); transform-origin: center left; }
.product-note { max-width: 54ch; margin: 18px 16px 0 auto; color: var(--muted); font-size: .82rem; text-align: right; }

/* ---------- [5] truth strip ---------- */
.truth-strip { display: grid; grid-template-columns: .8fr 1.2fr; gap: 7vw; padding: 64px max(20px, calc((100vw - var(--max)) / 2)); border-block: 1px solid var(--line); background: var(--bg-soft); }
.truth-strip h2 { max-width: 14ch; margin: 0; font-size: clamp(1.6rem, 3vw, 2.7rem); line-height: 1.08; letter-spacing: -.04em; }
.truth-strip > p { max-width: 650px; margin: 5px 0; color: var(--muted); font-size: 1.08rem; }

/* ---------- [6] layout picker ---------- */
.layout-picker { display: grid; grid-template-columns: 230px 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--panel-solid); }
.layout-tabs { display: flex; flex-direction: column; padding: 12px; border-right: 1px solid var(--line); background: rgba(255, 255, 255, .018); }
.layout-tabs button { min-height: 72px; padding: 12px 14px; text-align: left; color: var(--muted); background: transparent; border: 0; border-radius: 12px; cursor: pointer; }
.layout-tabs span, .layout-tabs small { display: block; }
.layout-tabs span { font-weight: 750; font-size: 1rem; }
.layout-tabs small { font-size: .75rem; margin-top: 2px; }
.layout-tabs button[aria-selected="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 3px 0 var(--accent); }
.layout-stage { min-width: 0; display: grid; grid-template-columns: 280px 1fr; gap: 32px; align-items: center; padding: 42px; }
.layout-stage-copy h3 { font-size: 2.4rem; line-height: 1; margin: 12px 0; }
.layout-stage-copy p:not(.stage-count) { color: var(--muted); }
.stage-count { color: var(--accent-2); font-size: .75rem; letter-spacing: .14em; }
.availability { display: inline-block; margin-top: 12px; padding: 6px 9px; border: 1px solid var(--line-strong); border-radius: 6px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.layout-screen { min-width: 0; }

/* ---------- [7] Basic browser ---------- */
.basic-section { background: linear-gradient(180deg, var(--bg-soft), var(--bg)); border-block: 1px solid var(--line); }
.basic-browser { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); overflow: hidden; }
.basic-tabs { display: flex; gap: 6px; overflow-x: auto; padding: 12px; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
.basic-tabs button { flex: 0 0 auto; min-height: 44px; padding: 9px 14px; color: var(--muted); border: 0; border-radius: 9px; background: transparent; cursor: pointer; }
.basic-tabs button[aria-selected="true"] { color: var(--text); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-line); }
.basic-screen { padding: 24px; }
.basic-screen .screen-frame { border-radius: 14px; }
.screen-caption { display: grid; grid-template-columns: .7fr 1.3fr; gap: 40px; padding: 26px 6px 6px; }
.screen-caption span { color: var(--accent-2); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.screen-caption h3 { font-size: 1.6rem; line-height: 1.1; margin: 7px 0 0; }
.screen-caption p { margin: 0; color: var(--muted); }
.review-note { max-width: 860px; margin: 22px 0 0; color: var(--muted); font-size: .82rem; }
.review-note strong { color: var(--text); }

/* ---------- [8] features — screenshots sit below the copy, full width, never cropped ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); }
.feature-card-wide { grid-column: span 2; }
.feature-copy { padding: 30px 30px 26px; max-width: 620px; }
.feature-copy .number { color: var(--accent-2); font-size: .7rem; letter-spacing: .1em; }
.feature-copy h3 { margin: 12px 0; font-size: clamp(1.6rem, 3vw, 3rem); line-height: 1; letter-spacing: -.04em; }
.feature-copy p { margin: 0; color: var(--muted); }
.feature-shot { margin: auto 24px 0; }
.feature-shot img { width: 100%; height: auto; border: 1px solid var(--line); border-bottom: 0; border-radius: 14px 14px 0 0; box-shadow: 0 15px 50px rgba(0, 0, 0, .45); }

/* ---------- [9] kids — artwork stays visible behind the labels ---------- */
.kids-section { overflow: hidden; background: #f1eadf; color: #161310; }
.kids-section .eyebrow { color: #755b3b; }
.kids-section .section-heading-wide > p { color: #625d56; }
.kids-worlds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.kids-card { position: relative; min-height: 390px; overflow: hidden; border-radius: 20px; background: #2f3640; }
.kids-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.kids-adventure img { object-position: left center; }
.kids-card:hover img { transform: scale(1.025); }
.kids-card:after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(0, 0, 0, .82)); }
.kids-card > div { position: absolute; z-index: 2; left: 26px; bottom: 24px; color: #fff; }
.kids-card span { font-size: 1.55rem; font-weight: 800; }
.kids-card p { margin: 2px 0 0; color: rgba(255, 255, 255, .75); }

.plan-extra { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.plan-extra article { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.plan-extra h3 { margin: 0 0 10px; font-size: 1.25rem; font-weight: 800; letter-spacing: -.02em; }
.plan-extra p { margin: 0 0 10px; color: var(--muted); }
.plan-extra ul { margin: 0; padding-left: 20px; color: var(--muted); }
.plan-extra li { margin: 6px 0; }
@media (max-width: 800px) { .plan-extra { grid-template-columns: 1fr; } }

/* ---------- [9b] screens gallery (17 Nov 2026) ---------- */
.screens-sub { margin: 56px 0 20px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.screens-sub:first-of-type { margin-top: 0; }
.screens-h1 { margin: 0; line-height: .93; letter-spacing: -.065em; font-size: clamp(2.7rem, 5.5vw, 5.5rem); }
.screens-more { margin-top: 36px; }
.screens-more .button { margin-right: 10px; }
.screens-jump { position: sticky; top: 64px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; padding: 12px 0; background: var(--bg, #0a0b0f); }
.screens-jump a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-solid); color: var(--text); text-decoration: none; font-weight: 700; font-size: .95rem; }
.screens-jump a:hover, .screens-jump a:focus-visible { border-color: var(--accent-line); }
.screens-jump small { color: var(--muted); font-weight: 600; }
.screens-group { margin: 72px 0 6px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; scroll-margin-top: 150px; }
.screens-intro { max-width: 720px; margin: 0 0 26px; color: var(--muted); font-size: 1.08rem; }
.explain-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; }
.explain-grid.explain-phones { grid-template-columns: repeat(4, 1fr); }
.explain { margin: 0; }
.explain .screen-frame { display: block; border-radius: 14px; }
.explain-phone > a { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #111; box-shadow: var(--shadow); }
.explain-phone img { display: block; width: 100%; height: auto; }
.explain h3 { margin: 16px 0 6px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.explain p { margin: 0; color: var(--muted); line-height: 1.55; }
.screens-pairs-h { margin: 34px 0 16px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.pair-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 34px 26px; margin-bottom: 20px; }
.pair { margin: 0; }
.pair-shots { display: grid; grid-template-columns: 1fr 23%; gap: 12px; align-items: start; }
.pair-shots .screen-frame { display: block; border-radius: 14px; }
.pair-phone { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 14px; background: #111; }
.pair-phone img { display: block; width: 100%; height: auto; }
.pair h3 { margin: 16px 0 6px; font-size: 1.2rem; font-weight: 800; }
.pair p { margin: 0; color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .pair-grid { grid-template-columns: 1fr; } }
.steps { counter-reset: step; display: grid; gap: 44px; max-width: 980px; }
.step { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; counter-increment: step; }
.step-phone { grid-template-columns: 1fr 220px; }
.step h3 { margin: 0 0 8px; font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; }
.step h3:before { content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; margin-right: 12px; border-radius: 50%; background: var(--accent); color: #111; font-size: 1rem; }
.step p, .step li { color: var(--muted); line-height: 1.6; }
.step ol, .step ul { margin: 8px 0 0; padding-left: 22px; }
.step .screen-frame { display: block; border-radius: 14px; }
.guide-screen-stack { display: grid; gap: 12px; }
.step .pair-phone { border-radius: 20px; }
.guide-tv-example { margin: 0; }
.guide-tv-example .pair-phone { display: block; }
.guide-tv-example figcaption { margin-top: 8px; color: var(--muted); font-size: .82rem; line-height: 1.45; }
.step-phone-guide .guide-video-wrap { grid-column: 1 / -1; max-width: 760px; }
.guide-phone-pictures { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 760px; align-items: start; }
.guide-phone-pictures figure { margin: 0; max-width: 358px; }
.guide-phone-pictures img { display: block; width: 100%; height: auto; }
.guide-phone-pictures figcaption { margin-top: 8px; color: var(--muted); font-size: .85rem; line-height: 1.5; }
.guide-video-wrap h4 { margin: 10px 0 6px; font-size: 1.3rem; }
.guide-video-wrap video { display: block; width: 100%; height: auto; margin: 18px 0; border: 1px solid var(--line-strong); border-radius: 16px; background: #0b1016; }
.guide-video-wrap details { margin: 14px 0; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; }
.guide-video-wrap summary { cursor: pointer; font-weight: 750; }
.guide-part { margin: 70px 0 26px; font-size: clamp(1.8rem, 3vw, 2.6rem); letter-spacing: -.04em; scroll-margin-top: 150px; }
@media (max-width: 800px) { .step, .step-phone { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .guide-phone-pictures { grid-template-columns: 1fr; } }
.explain a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
@media (max-width: 1000px) { .explain-grid.explain-phones { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .explain-grid { grid-template-columns: 1fr; } .screens-jump { position: static; } }
.shot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.shot, .phone { margin: 0; }
.shot .screen-frame { display: block; border-radius: 14px; }
.shot figcaption, .phone figcaption { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.phone-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.phone a { display: block; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 22px; background: #111; box-shadow: var(--shadow); }
.phone img { display: block; width: 100%; height: auto; }
.shot a:focus-visible, .phone a:focus-visible { outline: 3px solid var(--accent-2); outline-offset: 3px; }
@media (max-width: 1000px) { .shot-grid { grid-template-columns: repeat(2, 1fr); } .phone-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .shot-grid { grid-template-columns: 1fr; } .phone-row { grid-template-columns: repeat(2, 1fr); } }

/* ---------- [10] themes ---------- */
.theme-section { position: relative; }
.theme-switch { display: flex; gap: 8px; margin-top: 24px; }
.theme-switch button { min-height: 44px; padding: 8px 13px; color: var(--muted); border: 1px solid var(--line); border-radius: 10px; background: var(--panel); cursor: pointer; }
.theme-switch button[aria-pressed="true"] { color: var(--text); border-color: var(--line-strong); background: var(--accent-soft); }
.swatch { display: inline-block; width: 9px; height: 9px; margin-right: 7px; border-radius: 50%; }
.swatch-carbon { background: #e16b3c; }
.swatch-cobalt { background: #408cff; }
.theme-showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.theme-showcase article { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.theme-label { display: flex; justify-content: space-between; align-items: baseline; margin: 0 3px 14px; }
.theme-label span { font-weight: 750; }
.theme-label small { color: var(--muted); }
.palette-row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: .8rem; }
.palette-row b { padding: 7px 10px; border: 1px solid var(--line); border-radius: 7px; color: var(--text); }

/* ---------- [11] pricing ---------- */
.pricing-section { background: var(--bg-soft); border-block: 1px solid var(--line); }
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.price-card { display: flex; flex-direction: column; padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); }
.price-card-plus { border-color: var(--accent-line); }
.plan { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 0; font-weight: 800; }
.plan span { padding: 5px 8px; color: var(--accent-2); border: 1px solid var(--line-strong); border-radius: 6px; font-size: .65rem; text-transform: uppercase; letter-spacing: .08em; }
.price { margin: 40px 0 0; font-size: clamp(4rem, 8vw, 7rem); font-weight: 800; line-height: .8; letter-spacing: -.06em; }
.price span { font-size: .4em; vertical-align: top; }
.price-note { color: var(--muted); }
.price-card ul { list-style: none; padding: 22px 0; margin: 28px 0; border-block: 1px solid var(--line); flex: 1; }
.price-card li { display: flex; gap: 10px; padding: 7px 0; }
.price-card li:before { content: "✓"; color: var(--accent); flex: 0 0 auto; }
.price-card .button { width: 100%; }
.price-card > small { display: block; margin-top: 12px; color: var(--muted); text-align: center; }

/* ---------- [12] download ---------- */
.download-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 18px 8vw; align-items: start; }
.download-copy { grid-row: 1 / span 2; }
.download-copy h2 { font-size: clamp(3rem, 6vw, 6rem); }
.download-copy > p:last-child { color: var(--muted); }
.download-grid { display: grid; gap: 10px; }
.download-grid a, .download-firetv { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; min-height: 78px; padding: 12px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel-solid); }
.download-firetv { align-items: start; }
.download-grid a:hover, .download-grid a:focus-visible { border-color: var(--line-strong); background: var(--panel); }
.platform-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-2); font-weight: 900; }
.download-grid strong, .download-grid small { display: block; }
.download-grid small { color: var(--muted); }
.download-grid em { font-style: normal; font-weight: 750; color: var(--accent-2); }
.download-firetv p { margin: 6px 0 8px; color: var(--text); font-size: .95rem; }
.download-firetv b { font-weight: 750; }
.install-note { grid-column: 2; margin: 0; color: var(--muted); font-size: .8rem; }
.install-note strong { color: var(--text); }

/* ---------- [13] FAQ ---------- */
.faq-section { border-top: 1px solid var(--line); }
.faq-shell { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; }
.faq-shell h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { position: relative; list-style: none; padding: 24px 46px 24px 0; font-weight: 750; cursor: pointer; }
summary::-webkit-details-marker { display: none; }
summary:after { content: "+"; position: absolute; right: 10px; font-size: 1.4rem; color: var(--accent-2); }
details[open] summary:after { content: "−"; }
details p { margin: -8px 0 24px; max-width: 650px; color: var(--muted); }
details a { text-decoration: underline; color: var(--text); }

/* ---------- [14] contact ---------- */
.contact-section { display: grid; grid-template-columns: .7fr 1.3fr; gap: 8vw; padding: 90px max(20px, calc((100vw - var(--max)) / 2)); background: var(--accent); color: #0b0b0b; }
.contact-section .eyebrow { color: #441c0b; }
.contact-section h2 { font-size: clamp(2.8rem, 5vw, 5rem); }
.contact-section > div > p { max-width: 440px; }
.contact-mail { text-decoration: underline; font-weight: 700; }
.contact-boundary { font-size: .85rem; color: #3b1a0b; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-content: start; }
.contact-form label { font-size: .8rem; font-weight: 750; }
.contact-form .optional { font-weight: 500; color: #441c0b; }
.contact-form input, .contact-form textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; color: #111; background: rgba(255, 255, 255, .78); border: 1px solid rgba(0, 0, 0, .28); border-radius: 9px; }
.contact-form input::placeholder, .contact-form textarea::placeholder { color: #5a5a5a; }
.contact-form input[aria-invalid="true"], .contact-form textarea[aria-invalid="true"] { border: 2px solid #7a1500; }
.contact-form input { min-height: 46px; }
.contact-form textarea { resize: vertical; }
.field-wide, .contact-form .button, .form-status { grid-column: span 2; }
.contact-form .button { justify-self: start; background: #0b0b0b; color: #fff; }
.contact-form .button:disabled { opacity: .6; cursor: progress; }
.form-status { margin: 0; min-height: 1.5em; font-weight: 600; }
.form-status.err { color: #4a0d00; }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile:empty { display: none; }

/* ---------- [15] footer ---------- */
.site-footer { display: grid; grid-template-columns: auto 1fr auto; gap: 30px; align-items: center; padding: 48px max(20px, calc((100vw - var(--max)) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }
.site-footer > p { margin: 0; max-width: 70ch; }
.footer-brand { color: var(--text); }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
.site-footer a:hover { text-decoration: underline; }
.copyright { grid-column: 1 / -1; margin: 0; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- [16] focus — one clear ring everywhere ---------- */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.contact-section :focus-visible { outline-color: #0b0b0b; }
.kids-section :focus-visible { outline-color: #161310; }

/* ---------- [17] responsive ---------- */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 80px; }
  .hero h1 { max-width: none; }
  .hero-product { width: min(100%, 850px); margin-left: auto; }
  .screen-frame-hero { transform: none; }
  .truth-strip, .section-heading-wide, .download-section, .faq-shell, .contact-section { grid-template-columns: 1fr; }
  .layout-picker { grid-template-columns: 1fr; }
  .layout-tabs { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--line); scrollbar-width: thin; }
  .layout-tabs button { flex: 0 0 170px; }
  .layout-stage { grid-template-columns: 220px 1fr; padding: 28px; }
  .install-note { grid-column: 1; margin: 10px 0 0; }
  .site-footer { grid-template-columns: 1fr 1fr; }
  .site-footer nav { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  :root { --radius: 17px; }
  .section-shell { width: min(100% - 28px, var(--max)); }
  .site-header { padding-inline: 14px; }
  .menu-button { display: flex; }
  .site-nav { display: none; position: absolute; top: 66px; left: 12px; right: 12px; flex-direction: column; align-items: stretch; padding: 8px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); }
  .site-nav.open { display: flex; }
  .site-nav a { min-height: 44px; }
  .site-nav .nav-download { margin: 4px 0 0; }
  .hero { min-height: auto; gap: 48px; padding-top: 64px; padding-bottom: 72px; }
  .hero h1 { font-size: clamp(3.4rem, 16vw, 5.5rem); }
  .hero-facts { gap: 18px; }
  .hero-facts span { max-width: 9ch; }
  .product-note { text-align: left; margin-left: 0; }
  .truth-strip { padding-block: 48px; }
  .section { padding-block: 84px; }
  .section-heading { margin-bottom: 34px; }
  .section-heading h2 { font-size: clamp(2.7rem, 13vw, 4.6rem); }
  .layout-stage { grid-template-columns: 1fr; gap: 24px; padding: 20px; }
  .layout-tabs button { flex-basis: 150px; }
  .basic-screen { padding: 12px; }
  .screen-caption { grid-template-columns: 1fr; gap: 14px; padding: 22px 4px 6px; }
  .feature-grid, .kids-worlds, .theme-showcase, .pricing-grid { grid-template-columns: 1fr; }
  .feature-card, .feature-card-wide { grid-column: auto; }
  .feature-copy { padding: 24px 22px 20px; }
  .feature-shot { margin-inline: 14px; }
  .kids-card { min-height: 330px; }
  .price-card { padding: 28px; }
  .download-grid a, .download-firetv { grid-template-columns: 40px 1fr; }
  .download-grid em { grid-column: 2; }
  .contact-form { grid-template-columns: 1fr; }
  .field-wide, .contact-form .button, .form-status { grid-column: auto; }
  .site-footer { grid-template-columns: 1fr; }
  .site-footer nav { grid-column: auto; }
  .copyright { grid-column: auto; }
  .hero-actions .button { flex: 1 1 160px; }
}
@media (max-width: 430px) {
  .hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .hero-facts strong { font-size: 1.15rem; }
  .status-pill { left: 12px; }
  .download-grid a, .download-firetv { padding: 12px; }
  .theme-label small { display: none; }
}

/* ---------- [18] user preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  .kids-card:hover img { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .site-header, .site-header.scrolled, .status-pill, .site-nav { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--bg); }
  .theme-switch button, .theme-showcase article, .download-grid a:hover { background: var(--panel-solid); }
}
@media (prefers-contrast: more) {
  :root { --muted: #d3d3d3; --line: rgba(255, 255, 255, .36); --line-strong: rgba(255, 255, 255, .6); }
  .button-primary { border: 2px solid currentColor; }
  .site-header, .status-pill, .site-nav { background: var(--bg); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (forced-colors: active) {
  .layout-tabs button[aria-selected="true"], .basic-tabs button[aria-selected="true"], .theme-switch button[aria-pressed="true"] { outline: 2px solid CanvasText; outline-offset: -2px; }
  .kids-card:after { display: none; }
}

/* ---------- [12b] download checksums (the upload script rewrites the hashes on publish) ---------- */
.checksums { border: 1px solid var(--line); border-radius: 14px; background: var(--panel-solid); padding: 0 16px; }
.checksums summary { padding: 16px 46px 16px 0; font-size: .92rem; }
.checksums .hash { margin: 0 0 14px; max-width: none; color: var(--muted); font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .74rem; overflow-wrap: anywhere; }
.checksums .hash span { display: block; font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: var(--text); font-size: .8rem; margin-top: 2px; }

/* ---------- [11b] pricing sub-headings and the "coming soon" list ---------- */
.plan-sub { margin: 26px 0 0; font-weight: 800; }
.plan-sub.plan-soon { color: var(--accent-2); }
.price-card ul + .plan-sub { margin-top: 0; }
.price-card ul.soon { margin-top: 8px; padding-top: 10px; border-top: 0; }
.price-card ul.soon li:before { content: "✓"; color: var(--accent-2); }

/* Languages (2 Nov 2026): the ten languages, and Arabic right to left. */
.language-list { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.language-list li { padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel-solid); font-weight: 600; }
.rtl-card { display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: center; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-solid); }
.rtl-card h3 { margin: 0 0 12px; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.1; }
.rtl-card p { margin: 0; color: var(--muted); }
.rtl-sample { margin: 0; text-align: right; font-size: clamp(1.4rem, 3vw, 2.2rem); font-weight: 700; color: inherit !important; }
@media (max-width: 760px) { .rtl-card { grid-template-columns: 1fr; padding: 24px; } .rtl-sample { text-align: right; } }

.no-account { margin-top: 18px; padding: 20px 22px; border: 2px solid var(--accent, #5ad7c3); border-radius: var(--radius); background: var(--panel); }
.no-account h3 { margin: 0 0 8px; font-size: 1.2rem; font-weight: 800; letter-spacing: -.02em; }
.no-account p { margin: 0 0 8px; }
.no-account p:last-child { margin-bottom: 0; }

/* ---------- Tavi Plus buy panel (18 Nov 2026) ---------- */
.buy { margin-top: 22px; padding-top: 22px; border-top: 1px solid var(--line); }
.buy-row { display: grid; grid-template-columns: auto 1fr; gap: 14px; }
.buy-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.buy-cap { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.buy-cap em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; }
.buy-stepper { display: inline-grid; grid-template-columns: 48px 44px 48px; align-items: center; height: 48px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.buy-stepper button { height: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.3rem; font-weight: 700; cursor: pointer; }
.buy-stepper button:hover:not(:disabled), .buy-stepper button:focus-visible { background: var(--accent-soft); }
.buy-stepper button:disabled { color: var(--muted); opacity: .45; cursor: default; }
.buy-count { text-align: center; font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.buy-currency, .buy-email input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(255, 255, 255, .04); color: var(--text); font: inherit; }
.buy-currency option { color: #111; }
.buy-email { margin-top: 14px; }
.buy-email input::placeholder { color: var(--muted); opacity: .7; }
.buy-currency:focus-visible, .buy-email input:focus-visible, .buy-stepper button:focus-visible, .buy-button:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.buy-button { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; min-height: 60px; margin-top: 16px; padding: 0 8px 0 22px; border: 0; border-radius: 14px; background: var(--accent); color: #0a0a0a; font: inherit; font-weight: 800; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.buy-button:hover:not(:disabled), .buy-button:focus-visible { background: var(--accent-2); }
.buy-button:active:not(:disabled) { transform: translateY(1px); }
.buy-total { font-size: 1.5rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.buy-label { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 10px; background: #0a0a0a; color: var(--text); font-size: .98rem; }
.buy-button:disabled { cursor: default; background: transparent; border: 1px dashed var(--line-strong); color: var(--muted); justify-content: center; padding: 0 16px; }
.buy-button:disabled .buy-label { background: transparent; color: var(--muted); padding: 0; }
.buy-status { min-height: 1.4em; margin: 10px 0 0; color: var(--accent-2); font-size: .92rem; }
.buy-status-bad { color: #ffb4a8; }
.buy-note { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.buy-closed .buy-status { display: none; }
@media (max-width: 420px) { .buy-row { grid-template-columns: 1fr; } .buy-button { padding-left: 16px; } .buy-label { padding: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .buy-button { transition: none; } }

/* ---------- Guide: one step at a time (18 Nov 2026) ---------- */
.step h3[data-n]:before { content: attr(data-n); }
.step h3:focus { outline: none; }
.step h3:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; border-radius: 8px; }
.step code { padding: 2px 7px; border: 1px solid var(--line); border-radius: 7px; background: rgba(255, 255, 255, .06); color: var(--text); font-size: .95em; white-space: nowrap; }
.step-words { grid-template-columns: 1fr; max-width: 720px; }
.step[hidden], .steps[hidden], .guide-part[hidden], .guide-pager[hidden] { display: none; }
.guide-paged .guide-part { margin-top: 30px; }
.guide-paged .guide-jump { position: static; }
.guide-pager-top { margin-top: 8px; padding: 14px 0 0; border-top: 0; }
.guide-paged .steps { align-content: start; }
.guide-jump a[aria-current] { border-color: var(--accent); background: var(--accent-soft); }
.guide-all { min-height: 44px; margin-left: auto; padding: 8px 14px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .92rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.guide-all:hover, .guide-all:focus-visible { color: var(--text); }
.guide-pager { display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 12px; max-width: 980px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.guide-pager button { min-height: 52px; padding: 0 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--panel-solid); color: var(--text); font: inherit; font-weight: 800; cursor: pointer; }
.guide-pager button:hover:not(:disabled), .guide-pager button:focus-visible { border-color: var(--accent); }
.guide-pager button:focus-visible, .guide-all:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.guide-pager button:disabled { opacity: .4; cursor: default; }
.guide-pager .guide-start { border-color: transparent; background: transparent; color: var(--muted); padding: 0 10px; }
.guide-pager .guide-back:before { content: "\2190\00a0\00a0"; }
.guide-pager .guide-next { justify-self: end; max-width: 100%; border: 0; background: var(--accent); color: #0a0a0a; text-align: left; }
.guide-pager .guide-next:not(:disabled):after { content: "\00a0\00a0\2192"; }
.guide-pager .guide-next:hover:not(:disabled), .guide-pager .guide-next:focus-visible { background: var(--accent-2); }
.guide-mid { display: grid; gap: 8px; justify-items: center; min-width: 0; }
.guide-where { margin: 0; color: var(--muted); font-size: .92rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.guide-meter { display: block; width: min(220px, 100%); height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.guide-meter span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 720px) {
  .guide-pager { grid-template-columns: 1fr 1fr; }
  .guide-mid { grid-column: 1 / -1; grid-row: 1; }
  .guide-pager .guide-next { grid-column: 1 / -1; grid-row: 2; justify-self: stretch; min-height: 56px; }
  .guide-pager .guide-back { grid-row: 3; }
  .guide-pager .guide-start { grid-row: 3; grid-column: 2; }
  .guide-all { margin-left: 0; }
}

/* ---------- Start here (home) and the guide on phones (18 Nov 2026, late) ---------- */
.start-here { padding-top: 26px; padding-bottom: 34px; }
.start-here h2 { margin: 0 0 22px; font-size: clamp(1.7rem, 3.4vw, 2.6rem); letter-spacing: -.04em; }
.start-steps { counter-reset: start; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; padding: 0; list-style: none; }
.start-steps li { counter-increment: start; display: flex; flex-direction: column; gap: 16px; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel-solid); }
.start-steps li > div:before { content: counter(start); display: grid; place-items: center; width: 38px; height: 38px; margin-bottom: 12px; border-radius: 50%; background: var(--accent); color: #111; font-weight: 800; font-size: 1.1rem; }
.start-steps b { display: block; font-size: 1.15rem; letter-spacing: -.01em; }
.start-steps span { display: block; margin-top: 6px; color: var(--muted); line-height: 1.5; }
.start-steps .button { align-self: flex-start; min-height: 48px; }
@media (max-width: 800px) { .start-steps { grid-template-columns: 1fr; } .start-steps .button { align-self: stretch; text-align: center; justify-content: center; } }
.step-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.step-actions .button { min-height: 48px; }
.guide-pager-top .guide-start { display: none; }
.guide-pager-top { grid-template-columns: auto 1fr auto; }
.guide-pager-top .guide-next { min-width: 110px; text-align: center; }
@media (max-width: 720px) {
  /* The step itself must be on the first screen of a phone: one line of parts that slides sideways,
     a small Back / Next row, and the long "Next: ..." button after the step. */
  .guide-paged .section-heading p:not(.eyebrow) { display: none; }
  .guide-paged .section-heading { margin-bottom: 8px; }
  .guide-paged .screens-h1 { font-size: 2rem; }
  .guide-paged .guide-jump { flex-wrap: nowrap; overflow-x: auto; margin: 0; padding: 8px 0; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .guide-paged .guide-jump::-webkit-scrollbar { display: none; }
  .guide-paged .guide-jump a, .guide-paged .guide-all { flex: 0 0 auto; white-space: nowrap; }
  .guide-pager-top { grid-template-columns: auto 1fr auto; margin-top: 0; padding-top: 8px; gap: 8px; }
  .guide-pager-top .guide-mid { grid-column: auto; grid-row: auto; }
  .guide-pager-top .guide-next { grid-column: auto; grid-row: auto; justify-self: end; min-height: 48px; min-width: 96px; }
  .guide-pager-top .guide-back { grid-row: auto; min-height: 48px; padding: 0 14px; }
  .guide-paged .guide-part { margin: 18px 0 12px; font-size: 1.05rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2); }
  .guide-paged .step h3 { font-size: 1.3rem; }
  .step-actions .button { flex: 1 1 100%; text-align: center; justify-content: center; }
}
