/* ==========================================================================
   KinoPlayer — shared design system.

   Same language as the TV app: deep ink base, one warm-gold signal colour.
   The site and the app are one product, so a viewer who has seen the app
   recognises the site instantly. Gold is used only for "this is the thing" —
   never decoratively — which is what keeps a very dark page legible.
   ========================================================================== */

:root {
  color-scheme: light;

  /* Surface ladder, light. Not pure white: a hair of warmth stops large fields
     from glaring, and gives the elevation steps somewhere to go. */
  --base:      #ffffff;
  --sunken:    #f6f7f9;
  --surface:   #ffffff;
  --raised:    #fbfbfd;
  --overlay:   #f1f3f6;

  --hairline:  #e3e6ec;
  --divider:   #eceef2;

  /* Four ink steps. On light, hierarchy comes from weight as much as value,
     so the top step is near-black rather than pure black. */
  --ink:       #0e1420;
  --ink-2:     #46505f;
  --ink-3:     #6b7688;
  --ink-4:     #98a1b0;

  /* The accent darkens for light backgrounds: the gold that reads premium on
     ink fails contrast on white, so text and borders use the deeper tone and
     the bright tone is reserved for fills. */
  --gold:        #a9761f;
  --gold-bright: #e8b45c;
  --gold-deep:   #7c5514;
  --gold-wash:   #fdf4e4;
  --gold-edge:   #e6c88f;

  --live:   #c8322a;
  --cool:   #2c5f9e;
  --good:   #1c7a53;

  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --step-display: clamp(2.6rem, 1.6rem + 3.6vw, 4.5rem);
  --step-h1:      clamp(2rem, 1.4rem + 2.2vw, 3rem);
  --step-h2:      clamp(1.4rem, 1.1rem + 1.1vw, 1.9rem);
  --step-lead:    clamp(1.02rem, 0.96rem + 0.4vw, 1.2rem);

  --shell: 1140px;

  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
  --s9: clamp(64px, 8vw, 120px);

  --r-chip: 8px; --r-card: 14px; --r-panel: 20px;

  /* On light, depth has to come from shadow — a border alone reads as flat. */
  --lift-1: 0 1px 2px rgba(14, 20, 32, 0.05);
  --lift-2: 0 4px 14px -6px rgba(14, 20, 32, 0.12);
  --lift-3: 0 18px 44px -22px rgba(14, 20, 32, 0.24);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --dur: 180ms;
}

*, *::before, *::after { box-sizing: border-box; }

/* A class-level `display` beats the UA `[hidden]` rule, so this must win. */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--base);
  color: var(--ink);
  font: 1rem/1.65 var(--sans);
  letter-spacing: -0.006em;
  display: flex;
  flex-direction: column;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.shell { width: 100%; max-width: var(--shell); margin-inline: auto; padding-inline: var(--s5); }

/* ── header ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s5);
  padding: var(--s3) var(--s5);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.brand { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); }
.brand__mark { height: 24px; width: auto; flex: none; }
.brand__word { height: 18px; width: auto; }
@media (max-width: 520px) { .brand__mark { height: 20px; } .brand__word { height: 15px; } }

.site-nav { margin-left: auto; display: flex; gap: var(--s1); flex-wrap: wrap; }
.site-nav a {
  color: var(--ink-2);
  font-size: 0.9rem;
  font-weight: 500;
  padding: var(--s2) var(--s3);
  border-radius: var(--r-chip);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a[aria-current="page"] { color: var(--gold); background: var(--gold-wash); }

/* ── buttons ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  padding: 0.78rem 1.5rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font: 600 0.94rem/1 var(--sans);
  cursor: pointer;
  box-shadow: var(--lift-1);
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease),
              border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); border-color: var(--gold-deep); color: var(--ink); }
.btn:active:not(:disabled) { transform: none; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--primary {
  background: linear-gradient(160deg, #d99b34, var(--gold));
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 8px 20px -10px rgba(169, 118, 31, 0.45);
}
.btn--primary:hover:not(:disabled) { filter: brightness(1.06); color: #ffffff; }
.btn--ghost { background: transparent; }
.btn--danger { background: transparent; border-color: transparent; color: var(--live); }
.btn--danger:hover:not(:disabled) { background: rgba(232, 84, 76, 0.12); border-color: transparent; color: var(--live); }
.btn--block { width: 100%; }

/* ── shared type ─────────────────────────────────────────────────────── */
.eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.lead { font-size: var(--step-lead); color: var(--ink-2); margin: 0; }
.mono { font-family: var(--mono); }

/* ── footer ──────────────────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--divider);
  padding: var(--s6) var(--s5);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3) var(--s5);
  align-items: center;
  color: var(--ink-4);
  font-size: 0.86rem;
}
.site-footer nav { margin-left: auto; display: flex; gap: var(--s5); flex-wrap: wrap; }
.site-footer a { color: var(--ink-3); }
.site-footer a:hover { color: var(--gold); }

/* ══ MARKETING HOME ═══════════════════════════════════════════════════ */

.hero {
  position: relative;
  padding: var(--s9) 0 var(--s8);
  overflow: hidden;
}
.hero::before {
  /* one off-centre glow so a near-black page never reads as switched off */
  content: "";
  position: absolute;
  inset: -30% 40% 30% -20%;
  background: radial-gradient(circle at 30% 40%, rgba(232, 180, 92, 0.16), transparent 64%);
  pointer-events: none;
}
.hero__grid {
  position: relative;
  display: grid;
  gap: var(--s7);
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 900px) { .hero__grid { grid-template-columns: 1fr; } }

.hero h1 {
  margin: var(--s4) 0 0;
  font-size: var(--step-display);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-top: var(--s5); max-width: 34rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }

.hero__note {
  margin-top: var(--s5);
  padding: var(--s3) var(--s4);
  border: 1px solid var(--hairline);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-chip) var(--r-chip) 0;
  background: var(--sunken);
  color: var(--ink-3);
  font-size: 0.88rem;
}

/* device mock — the product shown, not described */
.mock {
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  background: var(--surface);
  padding: var(--s3);
  box-shadow: var(--lift-3);
  overflow: hidden;
}
.mock__bar { display: flex; gap: 6px; margin-bottom: var(--s4); }
.mock__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--hairline); }
.mock__screen { display: grid; gap: var(--s3); }
.mock__row { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.mock__tile {
  aspect-ratio: 1 / 1.1;
  border-radius: 10px;
  border: 1px solid var(--hairline);
  background: var(--raised);
  display: grid;
  place-items: end start;
  padding: var(--s2);
  font-size: 0.6rem;
  color: var(--ink-4);
}
.mock__tile--live { border-color: var(--gold-edge); background: var(--gold-wash); color: var(--gold); }
.mock__strip { height: 6px; border-radius: 3px; background: var(--divider); }
.mock__strip--fill { background: linear-gradient(90deg, var(--gold), var(--gold-deep)); width: 38%; }

/* ── generic section ─────────────────────────────────────────────────── */
.section { padding: var(--s9) 0; border-top: 1px solid var(--divider); }
.section__head { max-width: 42rem; margin-bottom: var(--s7); }
.section__head h2 {
  margin: var(--s3) 0 var(--s4);
  font-size: var(--step-h1);
  letter-spacing: -0.035em;
  line-height: 1.08;
  font-weight: 680;
}

/* ── platforms ───────────────────────────────────────────────────────── */
.platforms { display: flex; flex-wrap: wrap; gap: var(--s2); }
.platform {
  padding: var(--s2) var(--s4);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 0.86rem;
  font-weight: 500;
}
/* The label lives in the markup, not in `content:`, so it can be translated. */
.platform__soon { color: var(--ink-4); font-size: 0.76rem; margin-inline-start: 4px; }

/* ── features: deliberately uneven bento, not a uniform card grid ────── */
.bento { display: grid; gap: var(--s3); grid-template-columns: repeat(6, 1fr); }
@media (max-width: 860px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .bento { grid-template-columns: 1fr; } }

.cell {
  grid-column: span 2;
  padding: var(--s5);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-1);
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.cell:hover { border-color: var(--gold-edge); background: var(--surface); transform: translateY(-2px); box-shadow: var(--lift-2); }
.cell--wide { grid-column: span 3; }
@media (max-width: 860px) { .cell, .cell--wide { grid-column: span 1; } }

.cell h3 { margin: 0 0 var(--s2); font-size: 1.04rem; letter-spacing: -0.02em; font-weight: 640; }
.cell p { margin: 0; color: var(--ink-3); font-size: 0.92rem; }
.cell__icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gold-wash);
  color: var(--gold);
  margin-bottom: var(--s4);
  font-size: 0.94rem;
}

/* ── steps ───────────────────────────────────────────────────────────── */
.steps { display: grid; gap: var(--s5); grid-template-columns: repeat(3, 1fr); counter-reset: step; }
@media (max-width: 780px) { .steps { grid-template-columns: 1fr; } }
.step { padding-top: var(--s5); border-top: 2px solid var(--divider); counter-increment: step; }
.step::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  font: 600 0.78rem/1 var(--mono);
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: var(--s3);
}
.step h3 { margin: 0 0 var(--s2); font-size: 1.06rem; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--ink-3); font-size: 0.92rem; }

/* ── pricing ─────────────────────────────────────────────────────────── */
.plans { display: grid; gap: var(--s5); grid-template-columns: repeat(2, minmax(0, 340px)); align-items: stretch; padding-top: var(--s3); }
@media (max-width: 700px) { .plans { grid-template-columns: 1fr; } }

.plan {
  position: relative;
  padding: var(--s6);
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  background: var(--surface);
  box-shadow: var(--lift-1);
  display: flex;
  flex-direction: column;
  gap: var(--s5);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.plan:hover { box-shadow: var(--lift-2); transform: translateY(-2px); }
/* The action sits on the floor of the card so both buttons line up even when
   one plan lists more benefits than the other. */
.plan > .btn { margin-top: auto; }
.plan--featured { border-color: var(--gold-edge); background: var(--gold-wash); box-shadow: var(--lift-2); }
.plan__tag {
  position: absolute; top: -11px; left: var(--s6);
  box-shadow: 0 2px 8px -2px rgba(169, 118, 31, 0.5);
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold);
  color: #ffffff;
  font: 700 0.66rem/1.6 var(--sans);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.plan__price { display: flex; align-items: baseline; gap: var(--s2); }
.plan__price b { font-size: 2.9rem; letter-spacing: -0.055em; font-weight: 700; line-height: 1; }
.plan__price span { color: var(--ink-4); font-size: 0.88rem; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.plan li { padding-left: 1.4rem; position: relative; color: var(--ink-2); font-size: 0.92rem; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-size: 0.8rem; }

/* ── disclaimer ──────────────────────────────────────────────────────── */
.disclaimer {
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-panel);
  background: var(--gold-wash);
  box-shadow: var(--lift-1);
  padding: var(--s6);
  display: grid;
  gap: var(--s5);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
@media (max-width: 780px) { .disclaimer { grid-template-columns: 1fr; } }
.disclaimer h2 { margin: var(--s3) 0 var(--s3); font-size: var(--step-h2); letter-spacing: -0.03em; }
.disclaimer p { margin: 0 0 var(--s3); color: var(--ink-2); font-size: 0.95rem; }
.disclaimer ul { margin: 0; padding-left: 1.1rem; color: var(--ink-3); font-size: 0.9rem; display: grid; gap: var(--s2); }

/* ── faq ─────────────────────────────────────────────────────────────── */
.faq { display: grid; gap: var(--s2); max-width: 46rem; }
.faq details {
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--lift-1);
}
.faq summary {
  cursor: pointer;
  padding: var(--s4) var(--s5);
  font-weight: 600;
  font-size: 0.98rem;
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--s3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; color: var(--gold); font-size: 1.1rem; }
.faq details[open] summary::after { content: "−"; }
.faq details[open] summary { border-bottom: 1px solid var(--divider); }
.faq p { margin: 0; padding: var(--s4) var(--s5); color: var(--ink-3); font-size: 0.92rem; }

/* ══ PORTAL / FORMS ═══════════════════════════════════════════════════ */

.page { padding: var(--s7) 0 var(--s9); }
.page__head { max-width: 44rem; margin-bottom: var(--s6); }
.page__head h1 { margin: var(--s3) 0 var(--s3); font-size: var(--step-h1); letter-spacing: -0.035em; line-height: 1.1; }

.panel {
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  background: var(--surface);
  padding: var(--s6);
  box-shadow: var(--lift-1);
}
.panel + .panel { margin-top: var(--s4); }
.panel__title { margin: 0 0 var(--s2); font-size: 1.1rem; letter-spacing: -0.02em; font-weight: 640; }
.panel__hint { margin: 0 0 var(--s5); color: var(--ink-3); font-size: 0.9rem; }

.split { display: grid; gap: var(--s5); grid-template-columns: minmax(0, 1fr) minmax(0, 380px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.field { display: grid; gap: 6px; margin-bottom: var(--s4); }
.field label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-4); }
.field__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.field__note { font-size: 0.76rem; color: var(--ink-4); font-style: italic; }

input, select, textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--hairline);
  border-radius: var(--r-chip);
  background: var(--sunken);
  color: var(--ink);
  font: 0.98rem/1.4 var(--sans);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
input::placeholder { color: var(--ink-4); }
input:hover, select:hover { border-color: #2e3849; }
input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px var(--gold-wash);
}

/* The device code is read off a TV across a room, then typed here. */
.input--code {
  font-family: var(--mono);
  font-size: 1.25rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-block: 0.85rem;
}

.pair { display: grid; gap: var(--s3); grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .pair { grid-template-columns: 1fr; } }

.check { display: flex; gap: var(--s3); align-items: flex-start; margin-bottom: var(--s4); }
.check input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--gold); }
.check label { font-size: 0.9rem; color: var(--ink-2); text-transform: none; letter-spacing: 0; font-weight: 400; }

.alert {
  margin: 0 0 var(--s4);
  padding: var(--s3) var(--s4);
  border-radius: var(--r-chip);
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.alert--error { background: #fdf0ef; border-color: #f2c9c6; color: #a3251e; }
.alert--ok { background: #eef8f3; border-color: #c2e5d5; color: var(--good); }
.alert--info { background: var(--gold-wash); border-color: var(--gold-edge); color: var(--gold); }

/* device summary card */
.device { display: grid; gap: var(--s3); }
.device__row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.device__row dt { font-size: 0.8rem; color: var(--ink-4); }
.device__row dd { margin: 0; font-family: var(--mono); font-size: 0.92rem; color: var(--ink); }
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
}
.pill--active { background: #e6f4ee; color: var(--good); }
.pill--expired { background: #fdecea; color: var(--live); }

/* playlist rows */
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) var(--s4) var(--s3) calc(var(--s4) + 4px);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--sunken);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.item:hover { border-color: #2e3849; background: var(--raised); }
.item::before { content: ""; position: absolute; inset-block: 0; left: 0; width: 3px; background: var(--spine, var(--gold)); }
.item[data-kind="xtream"] { --spine: linear-gradient(180deg, #4d84c4, var(--cool)); }
.item__name { margin: 0; font-weight: 620; font-size: 1rem; letter-spacing: -0.015em; }
.item__meta {
  margin: 2px 0 0;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-4);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tags { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.tag {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 5px; background: var(--overlay); color: var(--ink-3);
}
.item[data-kind="m3u"] .tag--kind { background: var(--gold-wash); color: var(--gold); }
.item[data-kind="xtream"] .tag--kind { background: #eaf1fa; color: var(--cool); }
.item__actions { display: flex; gap: 4px; }

.empty {
  padding: var(--s8) var(--s5);
  text-align: center;
  border: 1px dashed var(--hairline);
  border-radius: var(--r-card);
  color: var(--ink-4);
}
.empty strong { display: block; color: var(--ink-2); font-size: 1.05rem; margin-bottom: 6px; }

/* ══ LEGAL PAGES ══════════════════════════════════════════════════════ */
.legal { max-width: 46rem; margin-inline: auto; padding: var(--s7) var(--s5) var(--s9); }
.legal h1 { font-size: var(--step-h1); letter-spacing: -0.035em; margin: 0 0 var(--s2); }
.legal__updated { color: var(--ink-4); font-size: 0.86rem; margin: 0 0 var(--s6); }
.legal__warning {
  padding: var(--s4);
  border: 1px solid var(--gold-edge);
  border-radius: var(--r-chip);
  background: var(--gold-wash);
  color: var(--gold);
  font-size: 0.9rem;
  margin: 0 0 var(--s6);
}
.legal section { margin-bottom: var(--s6); }
.legal h2 { font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 var(--s3); color: var(--ink); }
.legal h3 { font-size: 1rem; margin: var(--s4) 0 var(--s2); color: var(--ink-2); }
.legal p, .legal li { color: var(--ink-2); font-size: 0.95rem; }
.legal ul, .legal ol { padding-left: 1.2rem; display: grid; gap: 6px; }
.legal address { font-style: normal; color: var(--ink-2); line-height: 1.9; font-size: 0.95rem; }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.legal th, .legal td { text-align: left; padding: var(--s2) var(--s3); border-bottom: 1px solid var(--divider); }
.legal th { color: var(--ink-4); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; }
.legal dl { display: grid; gap: var(--s2); }
.legal dt { color: var(--ink-4); font-size: 0.82rem; }
.legal dd { margin: 0 0 var(--s3); }

/* ══ LANGUAGE SWITCHER ════════════════════════════════════════════════ */
.lang-switcher { display: flex; gap: 2px; margin-left: var(--s3); }
.lang {
  appearance: none;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink-4);
  font: 600 0.76rem/1 var(--sans);
  letter-spacing: 0.04em;
  padding: var(--s2) 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.lang:hover { color: var(--ink); background: var(--surface); }
.lang--on { color: var(--gold); background: var(--gold-wash); border-color: var(--gold-edge); }
.lang[lang="ar"] { font-size: 0.84rem; }

/* ══ RIGHT-TO-LEFT ════════════════════════════════════════════════════
   Only the handful of rules that actually carry direction are flipped.
   Logical properties handle the rest, and the grids are symmetric already. */
[dir="rtl"] body { letter-spacing: 0; }
[dir="rtl"] .site-nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .lang-switcher { margin-left: 0; margin-right: var(--s3); }
[dir="rtl"] .site-footer nav { margin-left: 0; margin-right: auto; }
[dir="rtl"] .hero::before { inset: -30% -20% 30% 40%; }
[dir="rtl"] .hero__note { border-left: 1px solid var(--hairline); border-right: 3px solid var(--gold); border-radius: var(--r-chip) 0 0 var(--r-chip); }
[dir="rtl"] .item { padding: var(--s3) calc(var(--s4) + 4px) var(--s3) var(--s4); }
[dir="rtl"] .item::before { left: auto; right: 0; }
[dir="rtl"] .plan li { padding-left: 0; padding-right: 1.4rem; }
[dir="rtl"] .plan li::before { left: auto; right: 0; }
[dir="rtl"] .plan__tag { left: auto; right: var(--s6); }
[dir="rtl"] .faq summary::after { margin-left: 0; margin-right: auto; }
[dir="rtl"] .legal ul, [dir="rtl"] .legal ol { padding-left: 0; padding-right: 1.2rem; }
[dir="rtl"] .legal th, [dir="rtl"] .legal td { text-align: right; }
/* Codes, URLs and MACs stay left-to-right even inside Arabic text. */
[dir="rtl"] .mono, [dir="rtl"] .input--code, [dir="rtl"] .item__meta,
[dir="rtl"] .device__row dd, [dir="rtl"] .plan__price { direction: ltr; text-align: right; }

/* ══ REAL SCREENSHOT ══════════════════════════════════════════════════ */
figure.mock { margin: 0; }
figure.mock img { border-radius: calc(var(--r-panel) - 6px); display: block; width: 100%; height: auto; }

/* ══ PLATFORM TILES ═══════════════════════════════════════════════════
   Real brand marks (Simple Icons, CC0) on cards rather than text chips: a
   viewer scanning for their own device recognises the logo before the word. */
.tiles {
  display: grid;
  gap: var(--s3);
  grid-template-columns: repeat(auto-fill, minmax(158px, 1fr));
}
.tile {
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: var(--s4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--lift-1);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.tile:hover { border-color: var(--gold-edge); box-shadow: var(--lift-2); transform: translateY(-2px); }
.tile__logo { width: 26px; height: 26px; flex: none; opacity: 0.88; }
.tile__name { font-size: 0.92rem; font-weight: 600; letter-spacing: -0.01em; }
.tile--soon { opacity: 0.62; }
.tile--soon:hover { transform: none; box-shadow: var(--lift-1); border-color: var(--hairline); }
.tile__soon {
  margin-inline-start: auto;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-4);
  background: var(--overlay);
  padding: 2px 6px;
  border-radius: 5px;
}

/* ══ INSTALL DIALOG ═══════════════════════════════════════════════════ */
.sheet {
  border: 1px solid var(--hairline);
  border-radius: var(--r-panel);
  padding: var(--s6);
  width: min(30rem, calc(100vw - 2rem));
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--lift-3);
}
.sheet::backdrop { background: rgba(14, 20, 32, 0.42); backdrop-filter: blur(3px); }
.sheet[open] { animation: sheet-rise var(--dur) var(--ease); }
@keyframes sheet-rise { from { opacity: 0; transform: translateY(8px) scale(0.99); } to { opacity: 1; transform: none; } }

.sheet__head { display: flex; align-items: center; gap: var(--s3); }
.sheet__head h2 { margin: 0; font-size: 1.24rem; letter-spacing: -0.028em; font-weight: 660; }
.sheet__close {
  margin-inline-start: auto;
  appearance: none;
  width: 32px; height: 32px;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--overlay);
  color: var(--ink-3);
  font-size: 1.3rem; line-height: 1;
  cursor: pointer;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.sheet__close:hover { background: var(--hairline); color: var(--ink); }
.sheet__sub { margin: var(--s2) 0 var(--s5); color: var(--ink-3); font-size: 0.92rem; }

.options { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.option {
  display: flex;
  align-items: center;
  gap: var(--s4);
  padding: var(--s4);
  border: 1px solid var(--hairline);
  border-radius: var(--r-card);
  background: var(--base);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.option:hover { border-color: var(--gold-edge); box-shadow: var(--lift-1); }
.option__icon {
  width: 44px; height: 44px; flex: none;
  display: grid; place-items: center;
  border-radius: 11px;
  font: 700 1.15rem/1 var(--sans);
}
.option__icon--gold { background: var(--gold-wash); color: var(--gold); }
/* Downloader's own icon, so the row is recognisable at a glance. */
.option__icon--downloader { object-fit: cover; }
.option__body { min-width: 0; flex: 1; }
.option__title { margin: 0; font-weight: 640; font-size: 0.98rem; letter-spacing: -0.015em; }
.option__meta { margin: 2px 0 0; color: var(--ink-3); font-size: 0.86rem; }
.option__meta .code {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--ink);
}
.option .btn { flex: none; padding: 0.6rem 1.1rem; font-size: 0.86rem; }
.btn--ok { color: var(--good); border-color: var(--good); }

.sheet__note {
  margin: var(--s5) 0 0;
  padding-top: var(--s4);
  border-top: 1px solid var(--divider);
  color: var(--ink-4);
  font-size: 0.84rem;
  line-height: 1.6;
}

/* The three shipping tiles are interactive; make that obvious. */
.tile:not(.tile--soon) { cursor: pointer; }
.tile:not(.tile--soon):focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

@media (max-width: 420px) {
  .option { flex-wrap: wrap; }
  .option .btn { width: 100%; }
}

/* ── layout utilities ───────────────────────────────────────────
   The production CSP is `style-src 'self'`, which drops every `style="…"`
   attribute silently: no console warning the visitor sees, just a page that
   quietly loses its layout. Anything these pages used to set inline lives
   here instead. */
.u-gold { color: var(--gold); }
.u-m0   { margin: 0; }
.u-mb0  { margin-bottom: 0; }
.u-mt3  { margin-top: var(--s3); }
.u-mt4  { margin: var(--s4) 0 0; }
.u-mt5  { margin: var(--s5) 0 0; }
.u-mt6  { margin-top: var(--s6); }
.u-mb4  { margin-bottom: var(--s4); }
.u-mb6  { margin-bottom: var(--s6); }
.u-push { margin-left: auto; }

/* A numbered how-to list: tighter and quieter than body copy. */
.steps {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--ink-3);
  font-size: 0.92rem;
  display: grid;
  gap: var(--s2);
}

.row-end { display: flex; gap: var(--s2); justify-content: flex-end; }
.col-end { display: flex; flex-direction: column; gap: var(--s2); align-items: flex-end; }

.row-split { display: flex; align-items: flex-start; gap: var(--s4); flex-wrap: wrap; }
.row-split__main { flex: 1; min-width: 220px; }

.page__head--row { display: flex; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; }
