/* ============================================================
   Chaipa — marketing site
   Visual language ported from the Android TV app:
   near-black canvas, warm amber accent, airy light type,
   Netflix-style hero, soft amber glow instead of hard shadows.
   ============================================================ */

@font-face {
  font-family: "Sora";
  src: url("/assets/fonts/sora-var.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
  font-style: normal;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/fonts/hanken-var.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

:root {
  /* palette — extracted from the app's Color.kt */
  --bg: #0A0A0D;
  --surface: #14141A;
  --surface-2: #1E1D28;
  --sidebar: #08080B;
  --accent: #E8B560;
  --accent-bright: #FFCA7A;
  --accent-soft: #C9984D;
  --text-hi: #FAFAFC;
  --text-mid: #B8B8C0;
  --text-lo: #7A7A82;
  --text-dim: #3F3F48;
  --success: #88C38F;
  --error: #E08B95;
  --border: #22222A;
  --border-soft: rgba(232, 181, 96, 0.16);

  --r-btn: 18px;
  --r-btn-lg: 26px;
  --r-card: 16px;
  --r-pill: 999px;

  --spring: cubic-bezier(0.34, 1.4, 0.5, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Hanken Grotesk", system-ui, sans-serif;

  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 64px);
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-mid);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 360;
  letter-spacing: 0.1px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* atmospheric backdrop: amber glows + fine grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60vw 50vh at 78% -8%, rgba(232,181,96,0.10), transparent 60%),
    radial-gradient(46vw 46vh at 6% 14%, rgba(232,181,96,0.05), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

::selection { background: rgba(232,181,96,0.28); color: var(--text-hi); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

/* ---------- typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-hi);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.01em;
}
.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--accent);
}
.accent { color: var(--accent); }
.accent-strong { color: var(--accent); font-weight: 600; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section { position: relative; }
.section-pad { padding-block: clamp(64px, 11vh, 130px); }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head h2 { font-size: clamp(1.9rem, 4.4vw, 3.1rem); margin-top: 14px; }
.section-head p { margin-top: 18px; color: var(--text-mid); font-size: 1.06rem; max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center p { margin-inline: auto; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--border), transparent); border: 0; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8,8,11,0.86), rgba(8,8,11,0.5));
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--border); background: rgba(8,8,11,0.92); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.brand img { width: 30px; height: 30px; }
.brand .word {
  font-family: var(--font-display); font-weight: 600; font-size: 1.18rem;
  letter-spacing: 0.30em; color: var(--text-hi); padding-left: 0.30em;
}
.nav-links { display: flex; gap: 30px; align-items: center; }
.nav-links a {
  font-size: 0.92rem; color: var(--text-mid); letter-spacing: 0.02em;
  position: relative; padding: 6px 0; transition: color .2s var(--ease);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0;
  background: var(--accent); transition: width .25s var(--ease);
}
.nav-links a:hover { color: var(--text-hi); }
.nav-links a:hover::after { width: 100%; }

/* language switcher */
.lang { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-mid); border-radius: var(--r-pill);
  padding: 8px 14px; font-size: 0.85rem; letter-spacing: 0.04em;
  transition: border-color .2s var(--ease), color .2s var(--ease);
}
.lang-btn:hover { border-color: var(--border-soft); color: var(--text-hi); }
.lang-btn svg { width: 15px; height: 15px; opacity: .8; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 168px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 7px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .2s var(--ease);
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
}
.lang.open .lang-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 9px; font-size: 0.9rem; color: var(--text-mid);
  transition: background .15s var(--ease), color .15s var(--ease);
}
.lang-menu a:hover { background: var(--surface-2); color: var(--text-hi); }
.lang-menu a[aria-current="true"] { color: var(--accent); }
.lang-menu a[aria-current="true"]::after { content: "●"; font-size: 0.6rem; }

.nav-toggle { display: none; background: transparent; border: 0; color: var(--text-hi); padding: 6px; }
.nav-toggle svg { width: 26px; height: 26px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--font-display); font-weight: 500; font-size: 0.95rem;
  letter-spacing: 0.02em; padding: 13px 24px; border-radius: var(--r-btn-lg);
  border: 1px solid transparent; transition: transform .25s var(--spring),
    background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease),
    box-shadow .3s var(--ease); white-space: nowrap;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: #100B03; box-shadow: 0 0 0 rgba(232,181,96,0); }
.btn-primary:hover { background: var(--accent-bright); transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 38px rgba(232,181,96,0.28); }
.btn-ghost { background: rgba(20,20,26,0.7); color: var(--text-mid); border-color: var(--border); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text-hi); border-color: var(--border-soft); transform: translateY(-2px); }
.btn-lg { padding: 16px 30px; font-size: 1.02rem; }

/* badge / pill */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); background: rgba(232,181,96,0.10);
  border: 1px solid var(--border-soft); border-radius: var(--r-pill);
  padding: 7px 15px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* ---------- hero ---------- */
.hero { padding-top: clamp(48px, 8vh, 96px); padding-bottom: clamp(40px, 7vh, 80px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.6rem); margin: 22px 0 0; font-weight: 200; }
.hero h1 b { font-weight: 600; color: var(--accent); }
.hero .lead { margin-top: 24px; font-size: clamp(1.05rem, 1.6vw, 1.28rem); color: var(--text-mid); max-width: 52ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--text-lo); font-size: 0.88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta svg { width: 15px; height: 15px; color: var(--accent); }

/* hero device frame */
.device {
  position: relative; border-radius: 18px; overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 40px 110px rgba(0,0,0,0.6), 0 0 0 1px rgba(232,181,96,0.06);
}
.device::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.04); pointer-events: none; }
.device img { width: 100%; }
.hero-visual { position: relative; }
.hero-visual .glow {
  position: absolute; inset: -12% -12% -22% -12%; z-index: -1;
  background: radial-gradient(closest-side, rgba(232,181,96,0.22), transparent 72%);
  filter: blur(8px);
}
.float { animation: float 7s ease-in-out infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- feature grid ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.f-card {
  background: linear-gradient(180deg, rgba(30,29,40,0.5), rgba(20,20,26,0.5));
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 28px 26px; transition: transform .3s var(--spring), border-color .3s var(--ease), background .3s var(--ease);
}
.f-card:hover { transform: translateY(-5px); border-color: var(--border-soft); background: linear-gradient(180deg, rgba(30,29,40,0.85), rgba(20,20,26,0.7)); }
.f-icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(232,181,96,0.1); border: 1px solid var(--border-soft); color: var(--accent);
  margin-bottom: 18px;
}
.f-icon svg { width: 23px; height: 23px; }
.f-card h3 { font-size: 1.18rem; font-weight: 400; color: var(--text-hi); margin-bottom: 9px; letter-spacing: 0; }
.f-card p { font-size: 0.96rem; color: var(--text-mid); line-height: 1.6; }

/* ---------- showcase (alternating screenshot rows) ---------- */
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 86px); align-items: center; }
.show-row + .show-row { margin-top: clamp(64px, 11vh, 130px); }
.show-row.reverse .show-text { order: 2; }
.show-text .eyebrow { display: block; margin-bottom: 16px; }
.show-text h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 300; }
.show-text p { margin-top: 18px; font-size: 1.05rem; color: var(--text-mid); }
.show-list { margin-top: 22px; display: grid; gap: 12px; }
.show-list li { list-style: none; display: flex; gap: 12px; align-items: flex-start; color: var(--text-mid); font-size: 0.98rem; }
.show-list svg { width: 19px; height: 19px; color: var(--accent); flex: none; margin-top: 3px; }

/* gallery strip under the showcase rows */
.gallery-strip { margin-top: clamp(48px, 8vh, 90px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ---------- enrichment (community EPG + metadata) ---------- */
.enrich-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.enrich-card {
  background: linear-gradient(180deg, rgba(30,29,40,0.5), rgba(20,20,26,0.5));
  border: 1px solid var(--border); border-radius: var(--r-card);
  padding: 34px 32px; transition: border-color .3s var(--ease);
}
.enrich-card:hover { border-color: var(--border-soft); }
.enrich-card .f-icon { margin-bottom: 20px; }
.enrich-card h3 { font-size: 1.4rem; font-weight: 400; color: var(--text-hi); margin-bottom: 12px; letter-spacing: 0; }
.enrich-card p { color: var(--text-mid); font-size: 1rem; line-height: 1.7; }
.enrich-card p + p { margin-top: 12px; }
.enrich-card a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.chip {
  font-family: var(--font-display); font-size: 0.74rem; font-weight: 500; letter-spacing: 0.06em;
  color: var(--text-mid); background: rgba(232,181,96,0.07);
  border: 1px solid var(--border-soft); border-radius: var(--r-pill); padding: 7px 14px;
}
.attribution { margin-top: 26px; font-size: 0.8rem; color: var(--text-dim); line-height: 1.6; }

/* ---------- demo playlist URL block ---------- */
.demo-url {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 28px 0 clamp(40px, 6vw, 60px); max-width: 660px; padding: 12px 12px 12px 22px;
  background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--r-btn-lg);
}
.demo-url code {
  flex: 1 1 240px; min-width: 0; word-break: break-all;
  font-family: var(--font-display); font-size: clamp(0.95rem, 2.4vw, 1.16rem);
  color: var(--accent-bright); letter-spacing: 0.01em;
}
.demo-copy { flex: 0 0 auto; transition: background .25s var(--ease), color .25s var(--ease), transform .25s var(--spring); }
.demo-copy .ico-check { display: none; }
.demo-copy.copied { background: var(--success); color: #0B1A0D; }
.demo-copy.copied:hover { background: var(--success); transform: none; box-shadow: none; }
.demo-copy.copied .ico-copy { display: none; }
.demo-copy.copied .ico-check { display: inline; }
/* off-screen helper for the execCommand copy fallback (no inline styles → CSP-safe) */
.copy-helper { position: fixed; left: -9999px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* ---------- how it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step {
  position: relative; padding: 32px 28px 30px; border-radius: var(--r-card);
  background: rgba(20,20,26,0.5); border: 1px solid var(--border);
}
.step::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-weight: 200; font-size: 2.7rem;
  color: var(--accent); opacity: 0.9; display: block; margin-bottom: 14px;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 1.2rem; font-weight: 400; color: var(--text-hi); margin-bottom: 8px; }
.step p { font-size: 0.96rem; color: var(--text-mid); }
.step-line { display: none; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin-inline: auto; }
.faq details {
  border-bottom: 1px solid var(--border); padding: 6px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 4px; position: relative;
  font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: var(--text-hi);
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: translateY(-65%) rotate(45deg); transition: transform .25s var(--spring);
}
.faq details[open] summary::after { transform: translateY(-35%) rotate(-135deg); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 44px 24px 4px; color: var(--text-mid); font-size: 1rem; line-height: 1.7; }
.faq .answer a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- CTA strip ---------- */
.cta {
  text-align: center; border-radius: 24px; padding: clamp(48px, 8vw, 86px) var(--gutter);
  background:
    radial-gradient(70% 130% at 50% 0%, rgba(232,181,96,0.16), transparent 60%),
    linear-gradient(180deg, rgba(30,29,40,0.6), rgba(20,20,26,0.4));
  border: 1px solid var(--border-soft); position: relative; overflow: hidden;
}
.cta h2 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 200; }
.cta h2 b { font-weight: 600; color: var(--accent); }
.cta p { margin: 20px auto 32px; max-width: 56ch; color: var(--text-mid); font-size: 1.08rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- pricing / plans ---------- */
.plans { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; max-width: 880px; margin-inline: auto; align-items: stretch; }
.plan {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, rgba(30,29,40,0.5), rgba(20,20,26,0.5));
  border: 1px solid var(--border); border-radius: var(--r-card); padding: 32px 30px;
}
.plan--premium {
  border-color: var(--border-soft);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(232,181,96,0.12), transparent 60%),
    linear-gradient(180deg, rgba(30,29,40,0.7), rgba(20,20,26,0.6));
}
.plan-badge {
  position: absolute; top: -12px; right: 22px;
  font-family: var(--font-display); font-size: 0.66rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: #100B03;
  background: var(--accent); border-radius: var(--r-pill); padding: 6px 13px;
  box-shadow: 0 6px 18px rgba(232,181,96,0.3);
}
.plan-name { font-family: var(--font-display); font-size: 1.32rem; font-weight: 400; color: var(--text-hi); letter-spacing: 0; }
.plan-tag { color: var(--text-lo); font-size: 0.9rem; margin-top: 4px; }
.plan-price { margin: 20px 0 2px; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.plan-price .amount { font-family: var(--font-display); font-weight: 300; font-size: 2.5rem; color: var(--text-hi); letter-spacing: -0.02em; line-height: 1; }
.plan-price .per { color: var(--text-mid); font-size: 0.96rem; }
.plan-price .alt { color: var(--text-lo); font-size: 0.86rem; flex-basis: 100%; }
.plan-trial { color: var(--accent); font-size: 0.86rem; font-weight: 500; min-height: 1.2em; margin: 8px 0 18px; }
.plan-list { list-style: none; display: grid; gap: 12px; margin: 4px 0 26px; }
.plan-list li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-mid); font-size: 0.97rem; line-height: 1.5; }
.plan-list svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }
.plan-list strong { color: var(--text-hi); font-weight: 600; }
.plan-cta { margin-top: auto; }
.plan-cta .btn { width: 100%; }
.plan-note { max-width: 720px; margin: 24px auto 0; text-align: center; color: var(--text-lo); font-size: 0.86rem; line-height: 1.6; }
.plan-note a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .plans { grid-template-columns: 1fr; max-width: 460px; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding-block: 56px 40px; margin-top: clamp(48px,8vh,96px); background: var(--sidebar); }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.foot-brand .brand { margin-bottom: 16px; }
.foot-brand p { font-size: 0.92rem; color: var(--text-lo); max-width: 42ch; }
.foot-col h4 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-lo); font-weight: 600; margin-bottom: 16px; }
.foot-col a { display: block; padding: 6px 0; font-size: 0.95rem; color: var(--text-mid); transition: color .2s var(--ease); }
.foot-col a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--border); }
.foot-bottom p { font-size: 0.84rem; color: var(--text-dim); }
.foot-bottom .disclaimer { max-width: 70ch; line-height: 1.6; }
.foot-langs { display: flex; gap: 8px; }
.foot-langs a { font-size: 0.82rem; color: var(--text-lo); padding: 5px 11px; border: 1px solid var(--border); border-radius: var(--r-pill); transition: all .2s var(--ease); }
.foot-langs a:hover, .foot-langs a[aria-current="true"] { color: var(--accent); border-color: var(--border-soft); }

/* ---------- legal pages ---------- */
.legal { padding-top: clamp(40px, 7vh, 80px); }
.legal-head h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 200; }
.legal-head .updated { margin-top: 14px; color: var(--text-lo); font-size: 0.9rem; }
.legal-body { max-width: 800px; margin-top: 40px; }
.legal-body h2 { font-size: 1.35rem; font-weight: 400; color: var(--text-hi); margin: 42px 0 14px; }
.legal-body h3 { font-size: 1.08rem; font-weight: 500; color: var(--text-hi); margin: 26px 0 10px; font-family: var(--font-body); }
.legal-body p, .legal-body li { color: var(--text-mid); font-size: 1.02rem; line-height: 1.75; }
.legal-body p { margin-bottom: 16px; }
.legal-body ul { margin: 0 0 18px; padding-left: 22px; }
.legal-body li { margin-bottom: 8px; }
.legal-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.legal-body strong { color: var(--text-hi); font-weight: 600; }
.callout {
  border: 1px solid var(--border-soft); border-left: 3px solid var(--accent);
  background: rgba(232,181,96,0.06); border-radius: 10px; padding: 18px 22px; margin: 24px 0;
}
.callout p { margin: 0; color: var(--text-mid); }
.callout p + p { margin-top: 12px; }

/* ---------- legality page (legal-iptv) ---------- */
.legal-head .lead {
  margin-top: 20px; color: var(--text-mid); max-width: 64ch;
  font-size: clamp(1.05rem, 1.6vw, 1.22rem); line-height: 1.7;
}
/* green "trust signals" vs red "red flags" checklists, built on .show-list */
.flag-good svg { color: var(--success); }
.flag-bad svg { color: var(--error); }
/* source-category cards: keep the chips legible as a brand list */
.source-card .chips { margin-top: 18px; }
.source-card .chip { background: rgba(232,181,96,0.05); }

/* ---------- scroll reveal ----------
   Gated on .js so content is fully visible without JavaScript (and to crawlers).
   The .js class is set by a CSP-hashed inline script before first paint. */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--spring); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .08s; }
.js .reveal[data-d="2"] { transition-delay: .16s; }
.js .reveal[data-d="3"] { transition-delay: .24s; }
.js .reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 560px; }
  .show-row { grid-template-columns: 1fr; gap: 28px; }
  .show-row.reverse .show-text { order: 0; }
  .show-row .device { max-width: 600px; }
  .enrich-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-links, .nav .lang { display: none; }
  .nav-toggle { display: inline-flex; }
  body.menu-open { overflow: hidden; }
  .mobile-menu {
    position: fixed; inset: 72px 0 0; z-index: 90; background: rgba(8,8,11,0.98);
    backdrop-filter: blur(14px); padding: 28px var(--gutter);
    display: flex; flex-direction: column; gap: 6px;
    transform: translateX(100%); transition: transform .3s var(--ease); visibility: hidden;
  }
  body.menu-open .mobile-menu { transform: none; visibility: visible; }
  .mobile-menu a { padding: 16px 4px; font-size: 1.2rem; color: var(--text-hi); border-bottom: 1px solid var(--border); font-family: var(--font-display); font-weight: 300; }
  .mobile-menu .m-langs { display: flex; gap: 10px; margin-top: 22px; }
  .mobile-menu .m-langs a { border: 1px solid var(--border); border-radius: var(--r-pill); padding: 9px 18px; font-size: 0.95rem; }
  .mobile-menu .m-langs a[aria-current="true"] { color: var(--accent); border-color: var(--border-soft); }
}
@media (min-width: 761px) { .mobile-menu { display: none; } }
@media (max-width: 540px) {
  .feature-grid, .steps, .gallery-strip { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 auto; }
}

/* ---------- 404 ---------- */
.nf { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.nf .code { font-family: var(--font-display); font-weight: 200; font-size: clamp(5rem, 18vw, 11rem); color: var(--accent); line-height: 1; letter-spacing: -0.02em; }
.nf h1 { font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 300; margin-top: 8px; }
.nf p { color: var(--text-mid); margin: 16px auto 30px; max-width: 46ch; }
.nf .langs { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.nf .brand { justify-content: center; margin-bottom: 30px; }
.nf .brand .word { font-size: 1.3rem; }
