/* ═══════════════════════════════════════════════════════
   Ana Stream — styles.css
   Light / Dark theme · Mobile-first · GitHub Pages
   ═══════════════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img { display: block; max-width: 100%; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* ══════════════════════════════════
   Tokens — DARK (default)
   ══════════════════════════════════ */
:root {
  color-scheme: dark;
  --green-900: #1a2e00; --green-800: #243d00; --green-700: #2f5200;
  --green-600: #4a8200; --green-500: #6ab510; --green-400: #7ec820;
  --green-300: #a2d84a; --green-200: #c8eba0; --green-100: #edf7d8;

  --bg:        #0a0c08;
  --surface:   #131608;
  --surface-2: #1c2010;
  --surface-3: #282e18;
  --border:    #2d3318;
  --border-hi: #3d4828;

  --text:       #e8f0d0;
  --text-muted: #b0c090;
  --text-dim:   #728050;

  --accent:      #7ec820;
  --accent-hi:   #96d930;
  --accent-dark: #4a8200;
  --on-accent:   #0c1600;   /* text colour ON top of accent bg */

  --header-h:    60px;
  --max-w:       1160px;
  --r:           10px;
  --r-lg:        16px;
  --r-xl:        24px;
  --font:        "Sora", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-ar:     "IBM Plex Sans Arabic", "Sora", system-ui, sans-serif;
}

/* ══════════════════════════════════
   Tokens — LIGHT (manual toggle)
   ══════════════════════════════════ */
[data-theme="light"] {
  color-scheme: light;
  --bg:        #f4f8ea;
  --surface:   #ffffff;
  --surface-2: #eef4de;
  --surface-3: #e2eccc;
  --border:    #ccdda0;
  --border-hi: #aac870;

  --text:       #182008;
  --text-muted: #485830;
  --text-dim:   #7a8860;

  --accent:      #4e8a00;
  --accent-hi:   #3d7000;
  --accent-dark: #305800;
  --on-accent:   #ffffff;
}

/* ── System preference (no manual override) ── */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]):not([data-theme="light"]) {
    color-scheme: light;
    --bg:        #f4f8ea;
    --surface:   #ffffff;
    --surface-2: #eef4de;
    --surface-3: #e2eccc;
    --border:    #ccdda0;
    --border-hi: #aac870;
    --text:       #182008;
    --text-muted: #485830;
    --text-dim:   #7a8860;
    --accent:      #4e8a00;
    --accent-hi:   #3d7000;
    --accent-dark: #305800;
    --on-accent:   #ffffff;
  }
}

/* ══════════════════════════════════
   Base
   ══════════════════════════════════ */
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  transition: background .25s, color .2s;
}
[dir="rtl"], [dir="rtl"] * { font-family: var(--font-ar); }

.bg-orb {
  position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 65% 50% at 65% -5%, color-mix(in srgb,var(--accent) 12%,transparent) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at -5% 80%,  color-mix(in srgb,var(--accent)  8%,transparent) 0%, transparent 60%);
}

.page-shell {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; min-height: 100dvh;
}

/* ══════════════════════════════════
   Header
   ══════════════════════════════════ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(.9rem, 4vw, 2.5rem);
  gap: .75rem;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s, background .25s;
}
.site-header.scrolled {
  border-color: var(--border);
  box-shadow: 0 2px 20px color-mix(in srgb, #000 25%, transparent);
}

.brand { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand-icon { width: 30px; height: 30px; border-radius: 7px; }
.brand-copy strong { display: block; font-size: .88rem; font-weight: 700; color: var(--text); line-height: 1.1; }
.brand-copy span   { display: block; font-size: .64rem; color: var(--text-dim); white-space: nowrap; }

.header-end { display: flex; align-items: center; gap: .75rem; }

.site-nav { display: flex; gap: .1rem; }
.site-nav a {
  font-size: .8rem; font-weight: 500; color: var(--text-muted);
  padding: .3rem .5rem; border-radius: 6px;
  transition: color .15s, background .15s;
}
.site-nav a:hover { color: var(--accent); background: color-mix(in srgb,var(--accent) 10%,transparent); }

/* ── Theme toggle ── */
.theme-toggle {
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer; font-size: .9rem;
  color: var(--text-muted);
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--border-hi); }
/* show moon in dark, sun in light */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }
@media (prefers-color-scheme: light) {
  :root:not([data-theme]) .theme-toggle .icon-sun  { display: block; }
  :root:not([data-theme]) .theme-toggle .icon-moon { display: none; }
}

/* ── Lang switcher ── */
.lang-switcher {
  display: flex; gap: .12rem;
  background: var(--surface-2);
  border-radius: 8px; padding: 2px;
  border: 1px solid var(--border);
}
.lang-switcher button {
  font: inherit; font-size: .72rem; font-weight: 600;
  color: var(--text-dim); background: none; border: none;
  padding: .26rem .5rem; border-radius: 6px;
  cursor: pointer; white-space: nowrap;
  transition: color .15s, background .15s;
}
.lang-switcher button:hover { color: var(--text); }
.lang-switcher button.is-active {
  background: color-mix(in srgb, var(--accent) 18%, var(--surface-3));
  color: var(--accent);
}

/* ── Hamburger ── */
.nav-toggle {
  display: none; width: 32px; height: 32px;
  align-items: center; justify-content: center; flex-direction: column;
  gap: 5px; background: none; border: none; cursor: pointer; padding: 4px;
}
.nav-toggle span {
  display: block; width: 20px; height: 2px;
  background: var(--text-muted); border-radius: 2px;
  transition: transform .2s, opacity .2s;
}

/* ── Mobile nav drawer ── */
.mobile-nav {
  display: none; position: fixed;
  top: var(--header-h); left: 0; right: 0;
  background: color-mix(in srgb, var(--bg) 97%, transparent);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 99; padding: .75rem clamp(.9rem, 4vw, 2.5rem);
  flex-direction: column; gap: .2rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: .93rem; font-weight: 500; color: var(--text-muted);
  padding: .6rem .75rem; border-radius: 8px;
  transition: color .15s, background .15s;
}
.mobile-nav a:hover { color: var(--accent); background: color-mix(in srgb,var(--accent) 8%,transparent); }

/* ══════════════════════════════════
   Shared typography
   ══════════════════════════════════ */
.eyebrow {
  font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
}
.section-heading { max-width: 640px; margin-bottom: 2.5rem; }
.section-heading h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.2rem); font-weight: 800;
  line-height: 1.2; margin-top: .4rem; color: var(--text);
}
.section-heading p { margin-top: .6rem; color: var(--text-muted); font-size: .95rem; line-height: 1.7; }

.content-section {
  padding: clamp(3rem, 7vw, 5.5rem) clamp(.9rem, 5vw, 3rem);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}

/* ══════════════════════════════════
   BUTTONS — the root fix
   Every button explicitly sets both bg AND text color so
   neither can bleed in from the parent container.
   ══════════════════════════════════ */
.button {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; font: inherit; font-size: .88rem; font-weight: 600;
  padding: .6rem 1.2rem; border-radius: var(--r);
  cursor: pointer; border: none;
  transition: background .18s, color .18s, transform .12s, box-shadow .18s;
  white-space: nowrap; text-decoration: none;
  position: relative; overflow: hidden;
}
.button:active { transform: scale(.97); }

/* Primary — lime green bg, always dark text regardless of page theme */
.button-primary {
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  box-shadow: none;
}
.button-primary:hover {
  background: var(--accent-hi);
  color: var(--on-accent);
  box-shadow: 0 4px 18px color-mix(in srgb, var(--accent) 38%, transparent);
}

/* Secondary — explicit surface bg + visible text */
.button-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border-hi);
}
.button-secondary:hover {
  background: var(--surface-3);
  border-color: var(--accent-dark);
  color: var(--text);
}

/* Ghost */
.button-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.button-ghost:hover {
  color: var(--accent);
  border-color: var(--accent-dark);
}

/* ══════════════════════════════════
   Hero
   ══════════════════════════════════ */
.hero {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: clamp(2.5rem, 7vw, 5rem) clamp(.9rem, 5vw, 3rem);
  max-width: var(--max-w); margin: 0 auto; width: 100%;
}
@media (min-width: 920px) {
  .hero { grid-template-columns: 1fr 390px; align-items: start; gap: 4rem; }
}

.version-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .74rem; font-weight: 600; color: var(--accent);
  background: color-mix(in srgb,var(--accent) 12%,transparent);
  border: 1px solid color-mix(in srgb,var(--accent) 28%,transparent);
  padding: .27rem .68rem; border-radius: 100px; margin-bottom: 1rem;
}
.version-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%,100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .45; transform: scale(.72); }
}
.version-tag {
  background: color-mix(in srgb,var(--accent) 18%,var(--surface-3));
  color: var(--accent); padding: .04rem .38rem; border-radius: 4px;
  font-size: .67rem; font-weight: 700;
}

.hero-copy h1 {
  font-size: clamp(1.85rem, 5.5vw, 3.1rem); font-weight: 800;
  line-height: 1.12; letter-spacing: -.02em;
  color: var(--text); margin-bottom: .8rem;
}
.hero-sub { font-size: .97rem; color: var(--text-muted); max-width: 500px; line-height: 1.7; }

.hero-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.65rem; }

.hero-points { display: flex; flex-direction: column; gap: .45rem; margin-top: 1.6rem; }
.hero-points li {
  display: flex; align-items: center; gap: .5rem;
  font-size: .84rem; color: var(--text-muted);
}
.hero-points li::before {
  content: ''; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
}

/* ── Hero panel cards ── */
.hero-panel { display: flex; flex-direction: column; gap: .8rem; }

.panel-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.2rem 1.35rem;
}
.panel-card-accent {
  border-color: color-mix(in srgb,var(--accent) 38%,transparent);
  background: color-mix(in srgb,var(--accent) 5%,var(--surface));
}
.panel-card-accent h2 {
  font-size: 1.05rem; font-weight: 700; margin: .28rem 0 .5rem; color: var(--text);
}
.panel-card-accent > p {
  font-size: .8rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.6;
}
.panel-label {
  font-size: .67rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
}
.panel-link {
  display: inline-flex; align-items: center; gap: .32rem;
  font-size: .82rem; font-weight: 700;
  color: var(--on-accent); background: var(--accent);
  padding: .46rem .9rem; border-radius: 7px; transition: background .15s;
}
.panel-link:hover { background: var(--accent-hi); color: var(--on-accent); }

.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.panel-grid .panel-card h3 { font-size: .85rem; font-weight: 700; margin: .2rem 0 .26rem; color: var(--text); }
.panel-grid .panel-card p  { font-size: .76rem; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════
   Signal band
   ══════════════════════════════════ */
.signal-band {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.signal-band article {
  padding: 1.5rem clamp(.9rem, 2.5vw, 2rem);
  border-inline-end: 1px solid var(--border);
}
.signal-band article:last-child { border-inline-end: none; }
.signal-num { display: block; font-size: .63rem; font-weight: 700; letter-spacing: .12em; color: var(--accent); margin-bottom: .4rem; }
.signal-band strong { display: block; font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .28rem; }
.signal-band p { font-size: .78rem; color: var(--text-muted); line-height: 1.55; }

/* ══════════════════════════════════
   Screens
   ══════════════════════════════════ */
.screens-grid {
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem; align-items: center;
}
@media (min-width: 800px) {
  .screens-grid { grid-template-columns: 195px 1fr; gap: 2rem; }
}

.screen-card { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.screen-card figcaption { text-align: center; max-width: 310px; }
.screen-card figcaption strong { display: block; font-weight: 700; color: var(--text); margin-bottom: .22rem; }
.screen-card figcaption span  { font-size: .8rem; color: var(--text-muted); }

/* Phone device */
.device-phone {
  width: clamp(148px, 32vw, 188px);
  background: var(--surface-2); border-radius: 26px;
  border: 2px solid var(--border-hi); padding: 8px 7px;
  box-shadow: 0 8px 36px color-mix(in srgb,#000 45%,transparent), 0 0 0 1px var(--border);
}
.phone-camera {
  width: 9px; height: 9px; background: var(--surface-3);
  border-radius: 50%; margin: 0 auto 6px;
}
.phone-screen { background: var(--bg); border-radius: 18px; overflow: hidden; min-height: 320px; }

.mock-topbar { display: flex; align-items: center; gap: 5px; padding: 7px 9px 5px; background: var(--surface); }
.mock-topbar img { width: 15px; height: 15px; border-radius: 3px; }
.mock-pill {
  font-size: .53rem; font-weight: 700;
  background: color-mix(in srgb,var(--accent) 16%,var(--surface-3));
  color: var(--accent); padding: 2px 5px; border-radius: 20px; white-space: nowrap;
}

.mock-hero-banner { position: relative; height: 88px; overflow: hidden; }
.mock-hero-banner img { width: 100%; height: 100%; object-fit: cover; }
.mock-banner-overlay {
  position: absolute; bottom: 0; left: 0; right: 0; padding: 7px 9px;
  background: linear-gradient(transparent, rgba(0,0,0,.9));
}
.mock-tag { font-size: .49rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 2px; }
.mock-banner-overlay strong { font-size: .56rem; color: #fff; display: block; }

.mock-section-label { padding: 6px 9px 3px; }
.mock-section-label strong { font-size: .55rem; font-weight: 700; color: var(--text); }
.mock-section-label--dim strong { color: var(--text-dim); }

.mock-posters { display: flex; gap: 4px; padding: 0 9px 6px; }
.mock-poster { flex: 1; height: 48px; background: var(--surface-3); border-radius: 4px; position: relative; overflow: hidden; }
.mock-poster--active { border: 1.5px solid var(--accent); }
.mock-progress-bar { position: absolute; bottom: 0; left: 0; width: 60%; height: 2px; background: var(--accent); }

.mock-download-row { display: flex; flex-direction: column; gap: 3px; padding: 0 9px 9px; }
.mock-dl-item { height: 17px; background: var(--surface-2); border-radius: 3px; border: 1px solid var(--border); }

/* TV device */
.device-tv { width: min(550px, 88vw); display: flex; flex-direction: column; align-items: center; }
.tv-bezel {
  width: 100%; background: var(--surface-2); border-radius: 11px;
  border: 2px solid var(--border-hi); padding: 8px;
  box-shadow: 0 10px 44px color-mix(in srgb,#000 50%,transparent), 0 0 0 1px var(--border);
}
.tv-screen { background: #080a06; border-radius: 5px; overflow: hidden; position: relative; }
.tv-stand { width: 54px; height: 18px; background: var(--surface-3); clip-path: polygon(15% 0%,85% 0%,100% 100%,0% 100%); margin-top: -1px; }

.tv-topbar { display: flex; align-items: center; gap: 7px; padding: 9px 13px 7px; background: rgba(0,0,0,.55); position: absolute; top:0;left:0;right:0; z-index:2; }
.tv-topbar img { width: 19px; height: 19px; border-radius: 4px; }
.tv-pill { font-size: .57rem; }
.tv-nav-dots { display: flex; gap: 9px; margin-inline-start: auto; }
.tv-nav-dots span { width: 24px; height: 3px; background: rgba(255,255,255,.16); border-radius: 2px; }
.tv-nav-dots span:first-child { background: var(--accent); }

.tv-hero { position: relative; height: 170px; overflow: hidden; }
.tv-hero img { width: 100%; height: 100%; object-fit: cover; }
.tv-hero-overlay { position: absolute; bottom:0;left:0;right:0; padding: 12px 15px; background: linear-gradient(transparent,rgba(0,0,0,.93)); }
.tv-hero-overlay .mock-tag { margin-bottom: 3px; }
.tv-hero-overlay strong { font-size: .82rem; color:#fff; display:block; margin-bottom:7px; }
.tv-hero-actions { display: flex; gap: 6px; }
.tv-btn { font-size:.66rem;font-weight:700;padding:4px 11px;border-radius:5px;background:rgba(255,255,255,.13);color:#fff;border:1px solid rgba(255,255,255,.2); }
.tv-btn-primary { background: var(--accent); color: #0c1600; border-color: transparent; }

.tv-row { display: flex; gap: 7px; padding: 10px 13px; background: #080a06; }
.tv-card { flex:1;height:48px;background:#181c0e;border-radius:5px;border:1.5px solid transparent; }
.tv-card--focus { border-color: var(--accent); box-shadow:0 0 0 2px color-mix(in srgb,var(--accent) 26%,transparent); }

/* ══════════════════════════════════
   Features
   ══════════════════════════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(230px,1fr)); gap: .85rem; }
.feature-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.35rem 1.45rem;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
.feature-card:hover { border-color: var(--accent-dark); transform: translateY(-2px); box-shadow: 0 6px 22px color-mix(in srgb,var(--accent) 10%,transparent); }
.feature-icon { font-size: 1.35rem; margin-bottom: .65rem; }
.feature-card h3 { font-size: .92rem; font-weight: 700; color: var(--text); margin-bottom: .32rem; }
.feature-card p  { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════
   Guide
   ══════════════════════════════════ */
.guide-steps { display: grid; grid-template-columns: repeat(auto-fill,minmax(225px,1fr)); gap: 1rem; }
.guide-step {
  display: flex; gap: .85rem;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.2rem 1.3rem;
  transition: border-color .2s;
}
.guide-step:hover { border-color: var(--accent-dark); }
.step-num {
  width: 29px; height: 29px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb,var(--accent) 16%,var(--surface-3));
  color: var(--accent); font-size: .78rem; font-weight: 800;
}
.guide-step h3 { font-size: .9rem; font-weight: 700; color: var(--text); margin-bottom: .3rem; }
.guide-step p  { font-size: .82rem; color: var(--text-muted); line-height: 1.6; }

/* ══════════════════════════════════
   Download — fixed
   Text and buttons always visible on any theme.
   ══════════════════════════════════ */
.download-section .section-heading h2 { color: var(--text); }
.download-section .section-heading p  { color: var(--text-muted); }

.download-card {
  display: flex; align-items: center; gap: 2rem;
  background: var(--surface);
  border: 1.5px solid var(--border-hi);
  border-radius: var(--r-xl);
  padding: 2rem 2.25rem;
  flex-wrap: wrap;
  box-shadow: inset 0 1.5px 0 color-mix(in srgb,var(--accent) 14%,transparent);
}
.download-card-icon img { width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 6px 18px color-mix(in srgb,#000 30%,transparent); }
.download-card-body { flex: 1; min-width: 0; }
.download-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ══════════════════════════════════
   FAQ
   ══════════════════════════════════ */
.faq-list { max-width: 700px; display: flex; flex-direction: column; gap: .4rem; }
.faq-list details {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; transition: border-color .2s;
}
.faq-list details[open] { border-color: var(--accent-dark); }
.faq-list summary {
  display: block; padding: .88rem 1.1rem; font-size: .9rem; font-weight: 600;
  color: var(--text); cursor: pointer; position: relative;
  padding-inline-end: 2.3rem; user-select: none; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content:'+'; position:absolute; inset-inline-end:1.1rem; top:50%; transform:translateY(-50%); font-size:.95rem; color:var(--accent); }
.faq-list details[open] summary::after { content:'−'; }
.faq-list details p { padding: 0 1.1rem .88rem; font-size: .855rem; color: var(--text-muted); line-height: 1.65; }

/* ══════════════════════════════════
   Disclaimer
   ══════════════════════════════════ */
.disclaimer-section { padding-top: 0; }
.disclaimer-card {
  max-width: 700px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 1.35rem 1.55rem;
}
.disclaimer-card .eyebrow { margin-bottom: .5rem; }
.disclaimer-card p { font-size: .83rem; color: var(--text-muted); line-height: 1.7; }

/* ══════════════════════════════════
   Footer
   ══════════════════════════════════ */
.site-footer { margin-top: auto; border-top: 1px solid var(--border); padding: 1.6rem clamp(.9rem,5vw,3rem); }
.footer-inner { max-width: var(--max-w); margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 2rem; }
.footer-brand { font-weight: 700; font-size: .86rem; color: var(--text); }
.footer-links { display: flex; gap: 1rem; }
.footer-links a { font-size: .8rem; color: var(--text-dim); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-meta { font-size: .73rem; color: var(--text-dim); width: 100%; margin-top: .18rem; }

/* ══════════════════════════════════
   Scroll reveal
   ══════════════════════════════════ */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ══════════════════════════════════
   RTL
   ══════════════════════════════════ */
[dir="rtl"] .hero-copy h1,
[dir="rtl"] .hero-sub,
[dir="rtl"] .section-heading h2,
[dir="rtl"] .section-heading p { text-align: right; }
[dir="rtl"] .hero-actions,
[dir="rtl"] .download-actions,
[dir="rtl"] .hero-points { direction: rtl; }

/* ══════════════════════════════════
   Responsive
   ══════════════════════════════════ */
@media (max-width: 800px) {
  .screens-grid { grid-template-columns: 1fr; }
  .screen-card-tv { order: -1; }
}

@media (max-width: 640px) {
  /* Header */
  .site-nav { display: none; }
  .nav-toggle { display: flex; }
  .brand-copy span { display: none; }

  /* Hero */
  .hero { gap: 2rem; padding-top: 1.75rem; }
  .hero-actions .button { font-size: .83rem; padding: .56rem 1rem; }
  .panel-grid { grid-template-columns: 1fr 1fr; }

  /* Signal band — stack */
  .signal-band { grid-template-columns: 1fr; }
  .signal-band article { border-inline-end: none; border-bottom: 1px solid var(--border); }
  .signal-band article:last-child { border-bottom: none; }

  /* Features + guide — 1 col */
  .feature-grid  { grid-template-columns: 1fr; }
  .guide-steps   { grid-template-columns: 1fr; }

  /* Download card — stacked, full-width buttons */
  .download-card {
    padding: 1.25rem 1.1rem;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
  }
  .download-card-icon img { width: 52px; height: 52px; }
  .download-actions {
    flex-direction: column;
    align-items: stretch;
    gap: .45rem;
    width: 100%;
  }
  .download-actions .button {
    width: 100%;
    justify-content: center;
    font-size: .9rem;
    padding: .72rem 1rem;
  }

  /* Footer */
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .45rem; }
}

@media (max-width: 380px) {
  .lang-switcher button { padding: .22rem .36rem; font-size: .67rem; }
  .theme-toggle { width: 28px; height: 28px; font-size: .82rem; }
  .panel-grid { grid-template-columns: 1fr; }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ══════════════════════════════════
   Patches & improvements v2
   ══════════════════════════════════ */

/* Fix figcaption selectors (screen-card now uses h3/p not strong/span) */
.screen-card figcaption h3 { font-size:.95rem;font-weight:700;color:var(--text);margin-bottom:.22rem; }
.screen-card figcaption p  { font-size:.8rem;color:var(--text-muted);line-height:1.6; }

/* Mock row & card (used in phone mockup screens) */
.mock-row-label { padding:5px 9px 2px;font-size:.5rem;font-weight:700;color:var(--text-dim);text-transform:uppercase;letter-spacing:.08em; }
.mock-row { display:flex;gap:4px;padding:0 9px 6px; }
.mock-card { flex:1;height:48px;background:var(--surface-3);border-radius:4px; }
.mock-card--focus { border:1.5px solid var(--accent); }

/* Mock CTA buttons inside banner */
.mock-actions { display:flex;gap:4px;margin-top:4px; }
.mock-btn { font-size:.47rem;font-weight:700;padding:2px 6px;border-radius:3px;background:rgba(255,255,255,.14);color:#fff; }
.mock-btn-primary { background:var(--accent);color:#0c1600; }

/* TV mock tag fix */
.tv-mock-tag { font-size:.57rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:var(--accent);display:block;margin-bottom:3px; }

/* FAQ: extra question */
.faq-list details:nth-child(5) { }

/* Google-friendly: ensure text is selectable / crawlable */
[data-i18n] { -webkit-user-select:text;user-select:text; }

/* Better focus ring for keyboard nav (Google accessibility signal) */
:focus-visible { outline:2px solid var(--accent);outline-offset:2px;border-radius:4px; }

/* Improve CLS: reserve space for lazy-loaded images */
.mock-hero-banner img,
.tv-hero img { aspect-ratio:16/9;width:100%;height:auto; }
.brand-icon { width:30px;height:30px; }

/* Print styles (minor SEO signal) */
@media print { .site-header,.mobile-nav,.hero-actions,.download-card,.lang-switcher,.theme-toggle,.nav-toggle{display:none!important;} body{color:#000;background:#fff;} }
