/* Smart TV Remote — site styles ("Function keys", 7 October 2026).
   The page is built from the objects in the product's world: a TV whose screen carries the
   headline and the page navigation, a phone running the remote, the colour-key legend from a
   TV guide, and the rating plate from the back of a set. Archivo's width axis does the talking:
   expanded for headings (bezel lettering), normal for reading.
   The .app-* components are the redesigned remote; artifacts/concepts/function-keys/ uses them too. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/assets/fonts/noto-kufi-arabic.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

:root {
  /* Ground and ink: a switched-off screen and the remote's graphite body */
  --ground: #e4e6ea;
  --ground-2: #d8dbe0;
  --ink: #1f2226;
  --ink-2: #4b515a;
  --line: #c4c9d0;
  /* Keycaps */
  --key: #f8f9fa;
  --key-hi: #ffffff;
  --key-edge: #b9bec7;
  --key-shadow: rgb(31 34 38 / 22%);
  --key-press: #eceef1;
  /* The TV */
  --bezel: #1f2226;
  --bezel-rim: rgb(255 255 255 / 6%);
  --glass: #0e1116;
  --glass-2: #171c24;
  --glass-ink: #f1f3f5;
  --glass-muted: #a3acb8;
  /* The four colour keys. Green also carries "connected" and the primary action. */
  --red: #c8372a;
  --green: #1f7a4d;
  --green-ink: #ffffff;
  --green-text: #1b6a43;
  --yellow: #e8ae22;
  --blue: #2b5fc9;
  --blue-text: #2552b0;

  --display: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
  --text: "Archivo", system-ui, "Segoe UI", Roboto, sans-serif;
  --arabic: "Noto Kufi Arabic", "Segoe UI", Tahoma, sans-serif;
  --max: 1180px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ground: #16181b;
    --ground-2: #1e2125;
    --ink: #eceef0;
    --ink-2: #a9b0b9;
    --line: #353a41;
    --key: #2b2f35;
    --key-hi: #3a3f46;
    --key-edge: #08090b;
    --key-shadow: rgb(0 0 0 / 55%);
    --key-press: #25292e;
    --bezel: #0b0c0e;
    --bezel-rim: #3a3f47;
    --glass: #07090c;
    --glass-2: #10141a;
    --green: #3fae72;
    --green-ink: #04140b;
    --green-text: #6fd29b;
    --red: #ef6a5c;
    --blue: #6f9bf2;
    --blue-text: #8fb1f6;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--text);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; font-family: var(--display); text-wrap: balance; }
h2 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 800; font-stretch: 125%; line-height: 1; letter-spacing: -0.025em; }
h3 { font-size: 1.125rem; font-weight: 700; font-stretch: 110%; line-height: 1.25; }
p { margin: 0 0 1em; text-wrap: pretty; }
.wrap { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip { position: absolute; top: 10px; inset-inline-start: 10px; z-index: 30; background: var(--key); color: var(--ink); padding: 10px 16px; border-radius: 10px; transform: translateY(-200%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--ground) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 750; font-stretch: 115%; letter-spacing: -0.01em; white-space: nowrap; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .9375rem; padding: 10px 12px; border-radius: 10px; white-space: nowrap; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav .nav-cta { margin-inline-start: 6px; }
@media (max-width: 680px) { .nav a.opt { display: none; } .nav a { padding: 10px 8px; } }
@media (max-width: 400px) { .nav a.opt-xs { display: none; } }

/* ---------- Keys (buttons on the page are keycaps too) ---------- */
.key-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: 14px; cursor: pointer;
  font: 700 1rem/1 var(--text); font-stretch: 110%; text-decoration: none;
  background: var(--key); color: var(--ink);
  box-shadow: inset 0 1px 0 var(--key-hi), 0 3px 0 var(--key-edge), 0 6px 14px -6px var(--key-shadow);
  transition: transform .08s ease, box-shadow .08s ease;
}
.key-btn:active { transform: translateY(3px); box-shadow: inset 0 1px 0 var(--key-hi), 0 0 0 var(--key-edge), 0 2px 6px -4px var(--key-shadow); }
.key-btn.go { background: var(--green); color: var(--green-ink); box-shadow: inset 0 1px 0 rgb(255 255 255 / 18%), 0 3px 0 color-mix(in srgb, var(--green) 55%, #000), 0 8px 18px -8px color-mix(in srgb, var(--green) 70%, transparent); }
.nav .key-btn { min-height: 40px; padding: 0 16px; font-size: .9375rem; border-radius: 11px; }
.nav .key-btn.go { color: var(--green-ink); }

.store-badge { display: inline-flex; align-items: center; gap: 12px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 14px; border: 1.5px solid var(--line); color: var(--ink-2); text-align: start; }
.store-badge svg { width: 22px; height: 22px; flex: none; }
.store-badge span { display: grid; line-height: 1.15; font-weight: 700; font-stretch: 110%; color: var(--ink); }
.store-badge small { font-weight: 500; font-stretch: 100%; font-size: .75rem; color: var(--ink-2); }

/* ---------- Hero: the TV and the remote ---------- */
.hero { padding: clamp(16px, 3vw, 36px) 0 0; }
.stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  grid-template-areas: "tv phone" "below phone";
  align-items: start;
}
.tv { grid-area: tv; position: relative; padding: 12px; border-radius: 22px; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-rim), 0 40px 70px -40px rgb(14 17 22 / 55%); }
.tv::after { content: ""; position: absolute; left: 50%; bottom: -22px; width: 26%; height: 10px; translate: -50% 0; border-radius: 0 0 8px 8px; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-rim); }
.screen {
  position: relative; overflow: hidden; border-radius: 10px;
  min-height: clamp(460px, 44vw, 560px);
  padding: clamp(28px, 4.6vw, 64px) clamp(110px, 10vw, 128px) clamp(24px, 3vw, 36px) clamp(24px, 4.6vw, 64px);
  display: flex; flex-direction: column;
  background:
    radial-gradient(120% 90% at 8% 0%, #1d2735 0%, transparent 60%),
    radial-gradient(80% 70% at 100% 100%, #13241c 0%, transparent 70%),
    var(--glass);
  color: var(--glass-ink);
}
[dir="rtl"] .screen { padding-inline: clamp(24px, 4.6vw, 64px) clamp(110px, 10vw, 128px); }
.screen h1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); font-weight: 850; font-stretch: 125%; line-height: .93; letter-spacing: -0.03em; }
.screen .lede { max-width: 31rem; margin: clamp(16px, 2vw, 24px) 0 0; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--glass-muted); }
.screen .lede b { color: var(--glass-ink); font-weight: 600; }

/* The TV's home row doubles as the page navigation */
.tiles { list-style: none; margin: auto 0 0; padding: clamp(28px, 4vw, 44px) 0 4px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(8px, 1.2vw, 14px); }
.tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px;
  aspect-ratio: 16 / 11; padding: 12px; border-radius: 10px; text-decoration: none;
  color: var(--glass-muted); background: var(--glass-2); font-size: .875rem; font-weight: 600; line-height: 1.2;
  outline: 0 solid transparent; transition: transform .18s cubic-bezier(.2,.8,.2,1), color .18s ease, box-shadow .18s ease;
}
.tile svg { width: 22px; height: 22px; margin-bottom: auto; opacity: .85; }
.tile:nth-child(1) { background: #1a2433; }
.tile:nth-child(2) { background: #1e2a26; }
.tile:nth-child(3) { background: #2a2333; }
.tile:nth-child(4) { background: #2a2620; }
.tile:nth-child(5) { background: #16402c; color: #dff3e8; }
.tile:hover, .tile.is-focused { color: #fff; transform: scale(1.05); box-shadow: 0 0 0 3px #fff, 0 14px 28px -10px rgb(0 0 0 / 70%); }
.tile:focus-visible { outline: none; color: #fff; transform: scale(1.05); box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--blue); }
.tv-hint { margin: 14px 0 0; font-size: .8125rem; color: var(--glass-muted); }
.tv-hint[hidden] { display: none; }

.below { grid-area: below; padding-top: 48px; padding-inline-end: 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 32px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

/* Colour-key legend, as printed along the bottom of a TV guide */
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-weight: 650; font-stretch: 110%; font-size: .9375rem; }
.legend li { display: inline-flex; align-items: center; gap: 9px; }
.ck { display: inline-block; width: 26px; height: 12px; border-radius: 4px; box-shadow: inset 0 -2px 0 rgb(0 0 0 / 18%), inset 0 1px 0 rgb(255 255 255 / 30%); }
.ck.red { background: #d23b2c; } .ck.green { background: #1f9a58; } .ck.yellow { background: #edb22a; } .ck.blue { background: #2d63d2; }

/* The phone */
.phone-col { grid-area: phone; position: relative; z-index: 2; margin-top: clamp(40px, 6vw, 84px); margin-inline-start: -96px; }
.phone {
  container-type: inline-size;
  position: relative; width: 100%; max-width: 300px; aspect-ratio: 9 / 19.2; margin-inline: auto;
  padding: 9px; border-radius: 46px; background: #15171a;
  box-shadow: inset 0 0 0 1.5px #3a3e44, inset 0 0 0 4px #0c0d0f, 0 2px 4px rgb(0 0 0 / 20%), 0 40px 60px -30px rgb(14 17 22 / 60%);
}
.phone > .app { height: 100%; border-radius: 38px; }
.phone::before { content: ""; position: absolute; top: 19px; left: 50%; width: 14px; height: 14px; translate: -50% 0; border-radius: 50%; background: #050506; z-index: 3; }
.phone.crop { aspect-ratio: 9 / 15; border-end-start-radius: 0; border-end-end-radius: 0; padding-bottom: 0; }
.phone.crop > .app { border-end-start-radius: 0; border-end-end-radius: 0; }
.demo-caption { margin: 14px 0 0; text-align: center; font-size: .8125rem; color: var(--ink-2); }
.demo-caption[hidden] { display: none; }

@media (max-width: 900px) {
  .stage { grid-template-columns: minmax(0, 1fr); grid-template-areas: "tv" "below" "phone"; }
  .screen { min-height: 0; padding: 32px 24px 24px; }
  [dir="rtl"] .screen { padding-inline: 24px; }
  .tiles { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding: 32px 6px 10px; margin-inline: -6px; scrollbar-width: none; }
  .tiles::-webkit-scrollbar { display: none; }
  .tiles li { flex: 0 0 136px; scroll-snap-align: start; }
  .tile { height: 100%; }
  .below { padding-inline-end: 0; }
  .phone-col { margin: 48px auto 0; width: min(100%, 300px); }
}

/* ---------- The remote (app design) ---------- */
.app {
  --a-ground: var(--ground);
  position: relative; overflow: hidden; height: 100%;
  display: flex; flex-direction: column; gap: 4.2cqi;
  padding: 13cqi 5.5cqi 5cqi;
  background: var(--a-ground); color: var(--ink);
  font-family: var(--text); font-size: 4.6cqi; line-height: 1.25; text-align: start;
}
:where(.app) button { font: inherit; color: inherit; border: 0; background: none; padding: 0; margin: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.app svg { width: 1.45em; height: 1.45em; fill: none; stroke: currentColor; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.app-time { position: absolute; top: 4.6cqi; inset-inline-start: 8cqi; font-size: 3.6cqi; font-weight: 600; color: var(--ink-2); }
.k { background: var(--key); box-shadow: inset 0 1px 0 var(--key-hi), 0 .7cqi 0 var(--key-edge), 0 1.6cqi 3cqi -1.4cqi var(--key-shadow); transition: transform .07s ease, box-shadow .07s ease, background-color .07s ease; }
.k:active, .k.is-pressed { transform: translateY(.7cqi); background: var(--key-press); box-shadow: inset 0 1px 0 var(--key-hi), 0 0 0 var(--key-edge), 0 .4cqi 1cqi -.6cqi var(--key-shadow); }

.app-head { display: flex; align-items: center; justify-content: space-between; gap: 3cqi; }
.app-tv { display: grid; gap: .8cqi; min-width: 0; }
.app-tv b { display: flex; align-items: center; gap: 1.5cqi; font-size: 7cqi; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.05; white-space: nowrap; }
.app-tv b svg { width: 4.8cqi; height: 4.8cqi; stroke-width: 2.6; color: var(--ink-2); }
.app-status { display: flex; align-items: center; gap: 1.8cqi; font-size: 3.9cqi; font-weight: 600; color: var(--ink-2); }
.app-status i { width: 2.4cqi; height: 2.4cqi; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 1cqi color-mix(in srgb, var(--green) 22%, transparent); }
.app-round { flex: none; display: grid; place-items: center; width: 11.5cqi; height: 11.5cqi; border-radius: 50%; }

/* Power strip: Wake, Add TV, Turn off and TV details stay together */
.app-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6cqi; }
.app-act { display: grid; justify-items: center; gap: 1.4cqi; font-size: 3.3cqi; font-weight: 600; color: var(--ink-2); text-align: center; }
.app-act > span:first-child { display: grid; place-items: center; width: 100%; height: 11.5cqi; border-radius: 3.6cqi; color: var(--ink); }
.app-act.off > span:first-child { color: var(--red); }
.app-act.idle { opacity: .5; }

.app-modes { display: grid; grid-template-columns: repeat(3, 1fr); padding: 1cqi; border-radius: 3.6cqi; background: var(--ground-2); font-size: 3.7cqi; font-weight: 650; }
.app-modes span { padding: 2.2cqi 0; border-radius: 2.8cqi; text-align: center; color: var(--ink-2); }
.app-modes span.on { color: var(--ink); }

/* D-pad: one raised disc, four arrow zones, green OK */
.app-dpad { position: relative; width: 78%; aspect-ratio: 1; margin: 1cqi auto; border-radius: 50%; background: var(--key);
  box-shadow: inset 0 1px 0 var(--key-hi), 0 1.2cqi 0 var(--key-edge), 0 4cqi 7cqi -3cqi var(--key-shadow); }
.app-dpad::before { content: ""; position: absolute; inset: 6%; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--key-edge) 45%, transparent); pointer-events: none; }
.app-dir { position: absolute; display: grid; place-items: center; color: var(--ink); border-radius: 50%; }
.app-dir svg { width: 7cqi; height: 7cqi; stroke-width: 2.6; }
.app-dir.up { top: 2%; left: 30%; width: 40%; height: 30%; }
.app-dir.down { bottom: 2%; left: 30%; width: 40%; height: 30%; }
.app-dir.left { left: 2%; top: 30%; width: 30%; height: 40%; }
.app-dir.right { right: 2%; top: 30%; width: 30%; height: 40%; }
.app-dir:active, .app-dir.is-pressed { background: radial-gradient(closest-side, var(--key-press), transparent); }
.app-ok { position: absolute; inset: 31%; display: grid; place-items: center; border-radius: 50%;
  background: var(--green); color: var(--green-ink); font-size: 5.6cqi; font-weight: 800; font-stretch: 125%; letter-spacing: .02em;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 .9cqi 0 color-mix(in srgb, var(--green) 50%, #000); transition: transform .07s ease, box-shadow .07s ease; }
.app-ok:active, .app-ok.is-pressed { transform: translateY(.8cqi); box-shadow: inset 0 1px 0 rgb(255 255 255 / 22%), 0 0 0 transparent; }

.app-row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqi; align-items: start; justify-items: center; }
.app-row3 > * { display: grid; justify-items: center; gap: 1.2cqi; font-size: 3.2cqi; font-weight: 600; color: var(--ink-2); }
.app-row3 .app-round { width: 13cqi; height: 13cqi; color: var(--ink); }

.app-rockers { display: grid; grid-template-columns: 1fr 1fr; gap: 3cqi; }
.app-rocker { display: grid; gap: 1.6cqi; }
.app-rocker > small { font-size: 3.3cqi; font-weight: 650; color: var(--ink-2); text-align: center; }
.app-rocker > div { display: flex; align-items: center; justify-content: space-between; height: 12.5cqi; padding: 0 1.4cqi; border-radius: 6.25cqi; }
.app-rocker span { display: grid; place-items: center; width: 10cqi; height: 10cqi; border-radius: 50%; }
.app-level { min-width: 9cqi; padding: 1.2cqi 1.6cqi; border-radius: 2.4cqi; background: var(--ink); color: var(--ground); font-weight: 800; font-stretch: 112%; font-variant-numeric: tabular-nums; text-align: center; font-size: 4.2cqi; }

.app-tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.6cqi; }
.app-tools > div { display: grid; justify-items: center; gap: 1.4cqi; font-size: 3.1cqi; font-weight: 600; color: var(--ink-2); text-align: center; }
.app-tools > div > span:first-child { display: grid; place-items: center; width: 100%; height: 11cqi; border-radius: 3.6cqi; color: var(--ink); }
.app-shelf { display: flex; gap: 4cqi; padding-top: 1cqi; }
.app-shelf > div { display: grid; justify-items: center; gap: 1.2cqi; font-size: 3cqi; font-weight: 600; color: var(--ink-2); }
.app-shelf i { display: grid; place-items: center; width: 11cqi; height: 11cqi; border-radius: 50%; font-style: normal; font-weight: 800; font-stretch: 115%; color: #fff; }

/* Sheets and pairing screens */
.app-title { font-size: 6.4cqi; font-weight: 800; font-stretch: 118%; letter-spacing: -0.02em; line-height: 1.1; }
.app-note { margin: 0; font-size: 3.8cqi; color: var(--ink-2); line-height: 1.4; }
.app-back { display: flex; align-items: center; gap: 2cqi; font-weight: 650; color: var(--ink-2); font-size: 3.9cqi; }
.app-card { padding: 4.4cqi; border-radius: 4.4cqi; }
.app-tvrow { display: flex; align-items: center; gap: 3.4cqi; }
.app-tvrow > span:first-child { display: grid; place-items: center; width: 11cqi; height: 11cqi; border-radius: 3cqi; background: var(--ground-2); }
.app-tvrow b { display: block; font-weight: 750; font-stretch: 110%; }
.app-tvrow small { color: var(--ink-2); font-size: 3.4cqi; }
.app-code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.8cqi; }
.app-code span { display: grid; place-items: center; height: 14cqi; border-radius: 2.8cqi; font-size: 6.4cqi; font-weight: 800; font-stretch: 112%; background: var(--key); box-shadow: inset 0 0 0 1.5px var(--line); }
.app-code span.cur { box-shadow: inset 0 0 0 2px var(--green); color: var(--ink-2); }
.app-go { display: grid; place-items: center; height: 12.5cqi; border-radius: 3.6cqi; background: var(--green); color: var(--green-ink); font-weight: 750; font-stretch: 112%; box-shadow: 0 .8cqi 0 color-mix(in srgb, var(--green) 50%, #000); }
.app-list { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.app-list li { display: flex; align-items: center; gap: 3.4cqi; padding: 2.8cqi 0; border-bottom: 1px solid var(--line); }
.app-list li:last-child { border-bottom: 0; }
.app-list i { display: grid; place-items: center; flex: none; width: 10.5cqi; height: 10.5cqi; border-radius: 3cqi; font-style: normal; font-weight: 800; color: #fff; }
.app-list b { flex: 1; font-weight: 650; }
.app-pin { padding: 1.6cqi 3cqi; border-radius: 2.6cqi; font-size: 3.4cqi; font-weight: 700; }
.app-pin.on { background: color-mix(in srgb, var(--green) 16%, transparent); color: var(--green-text); }
.app-pin:not(.on) { box-shadow: inset 0 0 0 1.5px var(--line); color: var(--ink); }
.app-sheet { margin: auto -5.5cqi -5cqi; padding: 6cqi 5.5cqi 7cqi; border-radius: 6cqi 6cqi 0 0; background: var(--key); box-shadow: 0 -2cqi 8cqi -4cqi var(--key-shadow); display: grid; gap: 3cqi; }
.app-scrim { position: absolute; inset: 0; background: rgb(14 17 22 / 28%); pointer-events: none; }
.app.rtl { direction: rtl; font-family: var(--arabic); }
.app.rtl .app-tv b, .app.rtl .app-title { font-stretch: 100%; letter-spacing: 0; }
/* Physical directions never mirror */
.app-dpad, .app-rocker > div { direction: ltr; }
/* Brand colours stand in for app icons the TV supplies */
.c-n { background: #b8231c; } .c-p { background: #1f6fb2; } .c-d { background: #1b2a6b; } .c-s { background: #1a8f4a; } .c-y { background: #c4201b; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 46rem; }
.section-head p { margin: 20px 0 0; font-size: 1.1875rem; color: var(--ink-2); max-width: 38rem; }
.band { background: var(--ground-2); }

/* Feature: words on one side, the remote on the other. Every feature uses the same order. */
.feature .wrap { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(40px, 7vw, 104px); align-items: center; }
.feature + .feature { padding-top: 0; }
.points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 0; max-width: 34rem; }
.points li { padding: 18px 0; border-top: 1.5px solid var(--line); }
.points li:last-child { border-bottom: 1.5px solid var(--line); }
.points h3 { margin-bottom: 4px; }
.points p { margin: 0; color: var(--ink-2); }
.feature .phone { max-width: 290px; }
@media (max-width: 820px) {
  .feature .wrap { grid-template-columns: 1fr; }
  .feature .phone { max-width: 270px; }
}

/* Privacy: the rating plate from the back of a TV */
.privacy .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: start; }
.plate { border: 2px solid var(--ink); border-radius: 8px; padding: 6px 22px 10px; background: var(--ground); font-size: .9375rem; }
.plate-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0 12px; border-bottom: 2px solid var(--ink); }
.plate-head b { font-weight: 800; font-stretch: 125%; font-size: 1.125rem; letter-spacing: -0.01em; }
.plate-head span { color: var(--ink-2); font-weight: 600; }
.plate dl { margin: 0; }
.plate dl > div { display: grid; grid-template-columns: 11.5rem 1fr; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.plate dt { font-weight: 700; font-stretch: 108%; }
.plate dd { margin: 0; color: var(--ink-2); }
.plate .absent { padding: 14px 0 6px; }
.plate .absent b { display: block; margin-bottom: 8px; font-weight: 700; font-stretch: 108%; }
.plate .absent ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.plate .absent li { padding: 4px 10px; border: 1.5px solid var(--line); border-radius: 6px; color: var(--ink-2); font-weight: 600; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.privacy .note { margin-top: 28px; color: var(--ink-2); max-width: 36rem; }
@media (max-width: 860px) { .privacy .wrap { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .plate dl > div { grid-template-columns: 1fr; gap: 2px; } .plate { padding-inline: 16px; } }

/* Compatibility: the TV's own input menu */
.menu { margin-top: clamp(36px, 5vw, 56px); padding: 12px; border-radius: 22px; background: var(--bezel); box-shadow: inset 0 0 0 1px var(--bezel-rim); }
.menu-screen { border-radius: 10px; background: var(--glass); color: var(--glass-ink); padding: clamp(8px, 2vw, 18px) clamp(16px, 3vw, 36px); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list > li { display: grid; grid-template-columns: 14rem minmax(0, 1fr) auto; gap: 8px 28px; align-items: start; padding: 22px 0; border-bottom: 1px solid #262c35; }
.menu-list > li:last-child { border-bottom: 0; }
.menu-list h3 { font-size: 1.25rem; font-weight: 800; font-stretch: 118%; }
.menu-list p { margin: 0; color: var(--glass-muted); max-width: 40rem; }
.status { display: inline-flex; align-items: center; gap: 9px; white-space: nowrap; font-weight: 650; font-size: .9375rem; }
.status .ck { width: 20px; height: 10px; }
.menu-foot { margin: 0; padding: 18px 0 8px; border-top: 1px solid #262c35; color: var(--glass-muted); }
.menu-foot a { color: #b9cdf8; }
@media (max-width: 760px) {
  .menu-list > li { grid-template-columns: 1fr; gap: 6px; }
  .menu-list .status { order: -1; }
}

/* FAQ */
.faq { max-width: 50rem; margin-top: clamp(32px, 5vw, 48px); border-top: 1.5px solid var(--line); }
.faq details { border-bottom: 1.5px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-weight: 700; font-stretch: 108%; font-size: 1.125rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; margin-top: 6px; border-inline-end: 2.5px solid var(--ink-2); border-bottom: 2.5px solid var(--ink-2); rotate: 45deg; transition: rotate .2s ease; }
.faq details[open] summary::after { rotate: 225deg; margin-top: 12px; }
.faq details > div { padding: 0 0 22px; color: var(--ink-2); max-width: 42rem; }
.faq details > div p:last-child { margin: 0; }

/* Closing */
.closing .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px 64px; align-items: end; }
.closing p { margin: 20px 0 0; max-width: 36rem; color: var(--ink-2); font-size: 1.125rem; }
@media (max-width: 760px) { .closing .wrap { grid-template-columns: 1fr; align-items: start; } }

/* Footer */
.site-footer { padding: 32px 0 52px; color: var(--ink-2); font-size: .9375rem; border-top: 1.5px solid var(--line); }
.site-footer .wrap { display: grid; gap: 16px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.footer-links a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 8px 0; }
.footer-links a:hover { text-decoration: underline; }
.disclaimer { max-width: 72ch; margin: 0; }

/* ---------- Long-form documents (help, privacy) ---------- */
.doc { padding: clamp(40px, 7vw, 80px) 0 72px; }
.doc .wrap { max-width: 46rem; }
.doc .doc-icon { width: 56px; height: 56px; border-radius: 14px; margin-bottom: 24px; }
.doc h1 { font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 850; font-stretch: 125%; line-height: 1; letter-spacing: -0.03em; margin-bottom: 16px; }
.doc h2 { font-size: 1.75rem; font-weight: 800; font-stretch: 118%; letter-spacing: -0.015em; margin: 2.2em 0 .6em; scroll-margin-top: 88px; }
.doc h3 { margin: 1.6em 0 .4em; scroll-margin-top: 88px; }
.doc ul, .doc ol { padding-inline-start: 1.3em; }
.doc li { margin-bottom: .45em; }
.doc .meta { color: var(--ink-2); font-size: 1.1875rem; }
.doc .callout { border-inline-start: 4px solid var(--blue); background: var(--ground-2); border-radius: 0 10px 10px 0; padding: 16px 20px; margin: 1.4em 0; }
[dir="rtl"] .doc .callout { border-radius: 10px 0 0 10px; }
.doc .callout.limited { border-inline-start-color: var(--yellow); }
.doc .callout p:last-child { margin: 0; }
.toc { border-top: 2px solid var(--ink); border-bottom: 1.5px solid var(--line); padding: 16px 0 12px; margin: 32px 0 8px; }
.toc ol { margin: 0; columns: 2; column-gap: 32px; }
.toc li { margin-bottom: .35em; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.path { font-weight: 650; }
code { font-size: .92em; background: var(--ground-2); padding: 1px 6px; border-radius: 5px; }

/* ---------- Arabic ---------- */
body[lang="ar"] { font-family: var(--arabic); line-height: 1.75; }
body[lang="ar"] :is(h1, h2, h3, .brand, .key-btn, .legend, .plate-head b, .plate dt, .faq summary, .status) { font-family: var(--arabic); font-stretch: 100%; letter-spacing: 0; }
body[lang="ar"] .screen h1 { line-height: 1.2; font-weight: 800; }
body[lang="ar"] h2 { line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Add TV list behind the pairing sheet */
.app-section { font-size: 3.5cqi; font-weight: 650; color: var(--ink-2); }
.app-tvlist { display: grid; gap: 2.4cqi; }
.app-tvlist .app-card { padding: 3.4cqi 4cqi; }
.app-tvlist .sel { box-shadow: inset 0 0 0 2px var(--green), 0 .7cqi 0 var(--key-edge); }
.app-tvlist em { margin-inline-start: auto; font-style: normal; font-size: 3.2cqi; font-weight: 650; color: var(--ink-2); }
