/* Netfly — evening palette
   The whole site feels like a living room at night: night-purple walls, warm lamp light, and Netfly red on the TV.
   Red is reserved for buttons and the brand mark; warm amber is the light that says someone is home.
   Home tells the story of an evening; Download gets the app installed; Updates records every change. */

:root {
  --night: #1d1730;      /* walls, page background */
  --dusk: #2a2142;       /* raised surfaces: panels, plans */
  --deep: #151027;       /* deeper night: footer, outside the window */
  --lamp: #f6b860;       /* lamp light: times, accents */
  --red: #ea2625;        /* Netfly red: buttons and brand mark only */
  --red-hover: #f2433f;
  --linen: #fbf1e6;      /* body text */
  --haze: #b9aecb;       /* secondary text */
  --line: rgba(251, 241, 230, 0.12);
  --display: "Bricolage Grotesque", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", "Helvetica Neue", system-ui, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--night);
  color: var(--linen);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.nav-open { overflow: hidden; }

/* The header lives in chrome.css (shared with Premium). Here we only switch its background to night purple. */
.site-header {
  background: rgba(29, 23, 48, 0.84);
  border-bottom-color: var(--line);
}
.site-header .logo { font-family: var(--display); font-size: 18px; letter-spacing: -0.01em; }
/* Header and content share one width so the logo lines up with the headings */
.site-header .wrap { width: min(var(--max), calc(100% - 96px)); }
@media (max-width: 900px) {
  .site-header .wrap { width: calc(100% - 40px); }
}
.nav a { color: rgba(251, 241, 230, 0.66); }
.nav a:hover,
.nav a[aria-current="page"] { color: var(--linen); }
@media (max-width: 900px) {
  .nav { background: var(--night); }
}

.icon-set { position: absolute; width: 0; height: 0; overflow: hidden; }

a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--linen);
  color: var(--night);
  padding: 8px 12px;
  border-radius: 8px;
  z-index: 40;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 96px));
  margin: 0 auto;
}

h1, h2, h3 {
  text-wrap: balance;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}

h1 { font-size: clamp(44px, 6.4vw, 92px); line-height: 0.98; }
h2 { font-size: clamp(32px, 4vw, 52px); }
h3 { font-size: 24px; letter-spacing: -0.01em; }

p { margin: 0; }

.lead {
  margin-top: 18px;
  max-width: 36rem;
  color: var(--haze);
  font-size: 20px;
  line-height: 1.55;
}

/* Buttons: red for the primary action only. Secondary actions are text links, not competing buttons. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  border: 0;
  background: var(--red);
  color: #fff;
  text-decoration: none;
  font: inherit;
  font-size: 17px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(234, 38, 37, 0.32);
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--red-hover); transform: translateY(-1px); }

.text-link {
  color: var(--linen);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--lamp);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--lamp); }

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
  margin-top: 36px;
}

.note {
  margin-top: 16px;
  color: var(--haze);
  font-size: 15px;
}
.note a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }

section[id] { scroll-margin-top: 88px; }

.section { padding: 128px 0; }

/* ───────── Home ───────── */

.home-hero { padding: 96px 0 120px; overflow: hidden; }

.home-hero .lead { max-width: 40rem; }

.room {
  display: block;
  width: min(var(--max), calc(100% - 96px));
  height: auto;
  margin: 64px auto 0;
  border-radius: 32px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--line), 0 40px 80px rgba(8, 5, 20, 0.5);
}

/* TV glow gently flickers across the room, as if something is playing. */
.room .tv-glow { animation: tv-flicker 7s ease-in-out infinite; transform-origin: 600px 290px; }
@keyframes tv-flicker {
  0%, 100% { opacity: 0.9; }
  18% { opacity: 1; }
  36% { opacity: 0.72; }
  52% { opacity: 0.95; }
  70% { opacity: 0.8; }
}

/* One evening: the background darkens from dusk to midnight. The moments are a real sequence, so time is the scale. */
.evening {
  padding: 120px 0 128px;
  background:
    linear-gradient(90deg, #3e2d60 0%, #2c2149 40%, #1b1533 72%, #120e22 100%);
  border-top: 1px solid var(--line);
}

.evening-head { max-width: 40rem; }

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  margin: 72px 0 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 11px;
  height: 2px;
  background: linear-gradient(90deg, var(--lamp), rgba(251, 241, 230, 0.25));
}

.timeline li { position: relative; padding-top: 40px; }

.timeline li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--night);
  border: 3px solid var(--lamp);
}

.time {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 17px;
  color: var(--lamp);
  font-variant-numeric: tabular-nums;
}

.scene {
  display: block;
  width: 100%;
  max-width: 220px;
  height: auto;
  margin: 18px 0 20px;
}

.timeline h3 { margin-bottom: 10px; }
.timeline p { color: var(--haze); font-size: 17px; }

/* Carry on with another screen */
.handoff {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: 72px;
  align-items: center;
}
.handoff .lead { color: rgba(251, 241, 230, 0.86); }
.handoff .lead + .lead { margin-top: 16px; }
.handoff svg { width: 100%; height: auto; display: block; }

/* Free / Premium: asymmetric columns. The Premium column is lit, like a lamp is on. */
.plans-head { max-width: 40rem; }

.plans {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  margin-top: 56px;
  border: 1px solid var(--line);
  border-radius: 28px;
  overflow: hidden;
}

.plan { padding: 44px 44px 48px; }

.plan h3 { font-size: 28px; }
.plan .plan-sub { margin-top: 6px; color: var(--haze); font-size: 16px; }

.plan ul { margin: 28px 0 0; padding: 0; list-style: none; }

.plan li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-top: 1px solid var(--line);
}

.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 21px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid var(--haze);
}

.plan-free { color: rgba(251, 241, 230, 0.82); }

.plan-premium {
  background:
    radial-gradient(ellipse 70% 60% at 100% 0%, rgba(246, 184, 96, 0.22), transparent 70%),
    var(--dusk);
}
.plan-premium li::before { background: var(--lamp); border-color: var(--lamp); }
.plan-premium .actions { margin-top: 32px; }

/* Devices */
.devices { border-top: 1px solid var(--line); }

.device-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 40px;
}

.device-row a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 22px;
  border: 1px solid rgba(251, 241, 230, 0.2);
  border-radius: 999px;
  color: var(--linen);
  text-decoration: none;
  font-size: 17px;
  font-weight: 500;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.device-row a:hover { border-color: var(--lamp); background: rgba(246, 184, 96, 0.08); }
.device-row svg { width: 20px; height: 20px; display: block; pointer-events: none; }

/* Closer: one line, one button, one lamp */
.closer {
  position: relative;
  padding: 136px 0 144px;
  background:
    radial-gradient(ellipse 50% 70% at 88% 100%, rgba(246, 184, 96, 0.28), transparent 70%),
    var(--deep);
  overflow: hidden;
}
.closer h2 { font-size: clamp(44px, 6vw, 84px); }
.closer .lead { color: rgba(251, 241, 230, 0.82); }

/* ───────── Download ───────── */

.download {
  padding: 88px 0 96px;
  background: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(246, 184, 96, 0.14), transparent 65%);
}

.kicker {
  margin: 0 0 14px;
  color: var(--lamp);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
}

.download h1 { font-size: clamp(40px, 5vw, 68px); max-width: 14em; }

.download .actions { margin-top: 32px; }

.backup {
  margin-top: 18px;
  color: var(--haze);
  font-size: 15px;
  max-width: 40rem;
}
.backup a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }

.tabs-label { margin-top: 72px; color: var(--haze); font-size: 16px; }

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid rgba(251, 241, 230, 0.2);
  border-radius: 999px;
  background: transparent;
  color: rgba(251, 241, 230, 0.78);
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
}
.tabs button:hover { border-color: var(--lamp); }
.tabs svg { width: 18px; height: 18px; display: block; pointer-events: none; }
.tabs button[aria-selected="true"] {
  background: var(--linen);
  color: var(--night);
  border-color: var(--linen);
}

.guide {
  margin-top: 24px;
  padding: 44px 48px 48px;
  background: var(--dusk);
  border-radius: 28px;
}

.panel h2 { font-size: 30px; }
.panel .meta { margin-top: 10px; color: var(--haze); max-width: 40rem; }

.steps { margin: 24px 0 0; padding: 0; list-style: none; }

.steps li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 14px;
  align-items: start;
  padding: 18px 0;
  border-top: 1px solid var(--line);
}

.num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(246, 184, 96, 0.16);
  color: var(--lamp);
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
}

.ways {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  margin-top: 32px;
}

.way-label { color: var(--lamp); font-family: var(--display); font-weight: 600; font-size: 16px; }
.way h3 { margin: 6px 0 14px; font-size: 24px; }
.way .btn { margin-top: 18px; }

.downloader {
  margin-top: 8px;
  padding: 20px 24px;
  border-radius: 18px;
  background: var(--night);
}
.downloader p { color: var(--haze); font-size: 15px; }
.downloader .code {
  margin-top: 4px;
  color: var(--lamp);
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
  user-select: all;
}

/* FAQ */
.faq-section { border-top: 1px solid var(--line); }
.faq { margin-top: 40px; max-width: 52rem; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  font-family: var(--display);
  font-size: 21px;
  font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--lamp);
  border-bottom: 2px solid var(--lamp);
  transform: rotate(45deg);
  flex: none;
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 6px; }
.faq details p { margin: 0 0 28px; max-width: 42rem; color: var(--haze); }
.faq details a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }

/* ───────── Updates ───────── */

.page-head {
  padding: 88px 0 32px;
  background: radial-gradient(ellipse 50% 90% at 100% 0%, rgba(246, 184, 96, 0.14), transparent 65%);
}
.page-head h1 { font-size: clamp(40px, 5vw, 68px); }

#releases { padding-top: 24px; }

.release {
  display: grid;
  grid-template-columns: 200px 1fr;
  grid-template-rows: auto auto auto 1fr;
  gap: 8px 48px;
  padding: 48px 0;
  border-top: 1px solid var(--line);
}
.release:last-child { border-bottom: 1px solid var(--line); }
.release > * { grid-column: 2; }
.release h2,
.release .release-flag,
.release .release-meta { grid-column: 1; }
.release h2 { grid-row: 1; font-size: 36px; }
.release .release-flag { grid-row: 2; }
.release .release-meta { grid-row: 3; }
.release .release-body { grid-row: 1; align-self: end; }
.release .files { grid-row: 2 / span 3; align-self: start; margin-top: 4px; }

.release-flag {
  justify-self: start;
  padding: 2px 10px;
  border-radius: 999px;
  background: rgba(246, 184, 96, 0.16);
  color: var(--lamp);
  font-size: 14px;
  font-weight: 600;
}
.release-meta { color: var(--haze); font-size: 15px; }
.release-body { font-size: 19px; max-width: 40rem; }
.release-origin { color: var(--haze); font-size: 15px; white-space: pre-wrap; max-width: 40rem; }

.files { margin: 12px 0 0; padding: 0; list-style: none; }
.files li { margin-top: 6px; font-size: 16px; }
.files a { color: var(--linen); text-decoration-color: rgba(246, 184, 96, 0.6); text-underline-offset: 4px; }
.files a:hover { color: var(--lamp); }

/* ───────── Footer ───────── */

.site-footer {
  padding: 32px 0 48px;
  background: var(--deep);
  border-top: 1px solid var(--line);
  color: var(--haze);
  font-size: 15px;
}
.site-footer .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 24px; }
.footer-link { color: var(--linen); text-decoration: none; }
.footer-link:hover { color: var(--lamp); }

:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .room .tv-glow { animation: none; }
  .btn, .device-row a, .faq summary::after { transition: none; }
}

@media (max-width: 960px) {
  .timeline { grid-template-columns: 1fr 1fr; row-gap: 56px; }
  .timeline::before { display: none; }
  .handoff { grid-template-columns: 1fr; gap: 48px; }
  .plans { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .wrap { width: min(var(--max), calc(100% - 40px)); }
  body { font-size: 17px; }
  .lead { font-size: 18px; }
  .section { padding: 80px 0; }
  .home-hero { padding: 48px 0 72px; }
  .room { margin-top: 36px; width: calc(100% - 40px); border-radius: 22px; }
  .evening { padding: 80px 0; background: linear-gradient(180deg, #3e2d60 0%, #2c2149 40%, #1b1533 72%, #120e22 100%); }
  .timeline { grid-template-columns: 1fr; gap: 0; margin-top: 48px; }
  .timeline::before { display: block; left: 7px; right: auto; top: 8px; bottom: 8px; width: 2px; height: auto; background: linear-gradient(180deg, var(--lamp), rgba(251, 241, 230, 0.25)); }
  .timeline li { padding: 0 0 48px 40px; }
  .timeline li:last-child { padding-bottom: 0; }
  .timeline li::before { top: 4px; }
  .scene { max-width: 180px; margin: 12px 0 14px; }
  .plan { padding: 32px 24px 36px; }
  .closer { padding: 88px 0 96px; }
  .download { padding: 40px 0 72px; }
  .actions .btn { width: 100%; }
  .tabs-label { margin-top: 48px; }
  .guide { padding: 28px 22px 32px; border-radius: 22px; }
  .ways { grid-template-columns: 1fr; gap: 40px; }
  .page-head { padding: 48px 0 16px; }
  .release { grid-template-columns: 1fr; grid-template-rows: none; padding: 36px 0; }
  .release > *,
  .release h2,
  .release .release-flag,
  .release .release-meta,
  .release .release-body,
  .release .files { grid-column: 1; grid-row: auto; }
  .release .release-flag { order: -1; }
}

/* Plans follow straight after the screens section; same topic, so no extra gap. */
#plans { padding-top: 0; }

/* ───────── Arabic: font and right-to-left ───────── */
html[lang="ar"] {
  --display: "Noto Sans Arabic", system-ui, sans-serif;
  --sans: "Noto Sans Arabic", system-ui, sans-serif;
}
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3 { letter-spacing: 0; line-height: 1.25; }
html[lang="ar"] h1 { line-height: 1.2; }

/* Timeline: dusk on the right to night on the left; dots and line switch sides */
[dir="rtl"] .evening {
  background: linear-gradient(270deg, #3e2d60 0%, #2c2149 40%, #1b1533 72%, #120e22 100%);
}
[dir="rtl"] .timeline::before { background: linear-gradient(270deg, var(--lamp), rgba(251, 241, 230, 0.25)); }
[dir="rtl"] .timeline li::before { left: auto; right: 0; }
[dir="rtl"] .plan li { padding: 12px 30px 12px 0; }
[dir="rtl"] .plan li::before { left: auto; right: 2px; }
[dir="rtl"] .nav a.nav-tg { margin-left: 0; margin-right: -6px; }

@media (max-width: 900px) {
  [dir="rtl"] .evening { background: linear-gradient(180deg, #3e2d60 0%, #2c2149 40%, #1b1533 72%, #120e22 100%); }
  [dir="rtl"] .timeline::before { left: auto; right: 7px; background: linear-gradient(180deg, var(--lamp), rgba(251, 241, 230, 0.25)); }
  [dir="rtl"] .timeline li { padding: 0 40px 48px 0; }
  [dir="rtl"] .timeline li:last-child { padding-bottom: 0; }
}

/* ───────── Living-room animation (js/room.js) ───────── */
.room-hint {
  margin-top: 14px;
  color: var(--haze);
  font-size: 15px;
}

.room .hit { cursor: pointer; outline: none; }
.room .hit:focus-visible { outline: 2px solid var(--lamp); outline-offset: 4px; }
.room text { user-select: none; }

/* All transforms use view-box coordinates for their origin */
.room .arm,
.room .person-kid,
.room .person-left,
.room .cat-tail,
.room .cat-body,
.room .cat-ears,
.room .goal-text,
.room .z { transform-box: view-box; }

/* Stars outside the window */
.room .star { animation: room-twinkle 3.2s ease-in-out infinite alternate; }
@keyframes room-twinkle { from { opacity: 0.25; } to { opacity: 0.95; } }
.room .cw { transition: opacity 0.6s ease; }

/* Live indicator dot */
.room .live-dot { animation: room-live 1.6s ease-in-out infinite; }
@keyframes room-live { 50% { opacity: 0.35; } }

/* Lamp: when off, the shade dims, the warm glow fades and the picture darkens */
.room .lamp-glow,
.room .lamp-shade,
.room .lamp-rim,
.room .art-lit { transition: opacity 0.5s ease, fill 0.5s ease; }
.room.lamp-off .lamp-glow { opacity: 0.05; }
.room.lamp-off .lamp-shade { fill: #7a5c3a; }
.room.lamp-off .lamp-rim { fill: #8f6d45; }
.room.lamp-off .art-lit { opacity: 0.18; }

/* Goal: screen flashes, GOAL pops up; middle figure raises an arm, kid jumps, left figure leans in */
.room .goal-flash { opacity: 0; pointer-events: none; }
.room .goal-text {
  opacity: 0;
  fill: #fff;
  font-family: var(--display);
  font-size: 54px;
  font-weight: 800;
  letter-spacing: 0.02em;
  paint-order: stroke;
  stroke: #ea2625;
  stroke-width: 10px;
  stroke-linejoin: round;
  transform-origin: 600px 285px;
  pointer-events: none;
}
.room .arm {
  transform-origin: 716px 462px;
  transform: rotate(118deg);
  transition: transform 0.45s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.room .person-left { transform-origin: 420px 520px; transition: transform 0.4s ease; }

.room.cheer .arm { transform: rotate(0deg); }
.room.cheer .person-left { transform: rotate(-4deg) translateY(-6px); }
.room.cheer .person-kid { animation: room-jump 0.5s ease-out 3; }
.room.cheer .goal-flash { animation: room-flash 0.5s ease-out; }
.room.cheer .goal-text { animation: room-goal 2.6s cubic-bezier(0.2, 1.4, 0.4, 1) forwards; }
@keyframes room-jump { 40% { transform: translateY(-18px); } }
@keyframes room-flash { 0% { opacity: 0.55; } 100% { opacity: 0; } }
@keyframes room-goal {
  0% { opacity: 0; transform: scale(0.4); }
  15% { opacity: 1; transform: scale(1.08); }
  25% { transform: scale(1); }
  85% { opacity: 1; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.05); }
}
/* New match after full time: the TV flickers */
.room.flick .goal-flash { animation: room-flash 0.4s ease-out; }

/* Cat: breathes, slow tail swish, snores; when woken, eyes open, ears perk up, tail speeds up */
.room .cat-body { transform-origin: 248px 540px; animation: room-breathe 3.4s ease-in-out infinite; }
.room .cat-tail { transform-origin: 290px 528px; animation: room-tail 4.5s ease-in-out infinite; }
.room .cat-ears { transform-origin: 210px 494px; }
.room .cat-eyes-open { opacity: 0; transition: opacity 0.15s; }
.room .cat-eyes-closed { transition: opacity 0.15s; }
.room .z { opacity: 0; animation: room-z 3.6s ease-out infinite; }
.room .z2 { animation-delay: 1.2s; }
.room .z3 { animation-delay: 2.4s; }
@keyframes room-breathe { 50% { transform: scaleY(1.05); } }
@keyframes room-tail { 50% { transform: rotate(-14deg); } }
@keyframes room-z {
  0% { opacity: 0; transform: translate(0, 8px); }
  30% { opacity: 0.9; }
  100% { opacity: 0; transform: translate(-10px, -18px); }
}
.room.cat-awake .cat-eyes-open { opacity: 1; }
.room.cat-awake .cat-eyes-closed { opacity: 0; }
.room.cat-awake .cat-ears { animation: room-ears 0.5s ease-in-out 2; }
.room.cat-awake .cat-tail { animation-duration: 0.9s; }
.room.cat-awake .zzz { opacity: 0; }
@keyframes room-ears { 50% { transform: rotate(-8deg) translateY(-3px); } }

/* Reduced motion: static scene with the arm raised; clicks give instant changes only */
@media (prefers-reduced-motion: reduce) {
  .room *,
  .room *::before { animation: none !important; transition: none !important; }
  .room .z { opacity: 0; }
}
.room.still .arm { transform: rotate(0deg); }

/* ---------- Guide pages (generated by tools/build-i18n.js): install guides, Downloader code, help, MyTV ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; color: var(--haze); font-size: 15px; }
.crumbs li + li::before { content: "/"; margin-inline-end: 8px; color: rgba(251, 241, 230, 0.35); }
.crumbs a { color: var(--haze); text-decoration: none; }
.crumbs a:hover { color: var(--lamp); }
.guide-hero h1 { max-width: 16em; }
.guide-hero .lead { max-width: 42rem; }
.guide-hero .lead a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }
.guide-code { margin-top: 40px; max-width: 30rem; }
.guide-body { padding: 24px 0 96px; }
.article > * { max-width: 46rem; }
.article h2 { margin-top: 64px; font-size: clamp(26px, 3vw, 34px); }
.article h2:first-child { margin-top: 0; }
.article p { margin-top: 16px; color: rgba(251, 241, 230, 0.86); }
.article a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }
.article a:hover { color: var(--lamp); }
.article .steps { margin-top: 20px; }
.checks { margin: 20px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding: 8px 0 8px 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 10px; border-radius: 50%; background: var(--lamp); }
[dir="rtl"] .checks li { padding: 8px 30px 8px 0; }
[dir="rtl"] .checks li::before { left: auto; right: 2px; }
.related { border-top: 1px solid var(--line); padding: 96px 0; }
.related .device-row { margin-top: 28px; }
.footer-guides { display: flex; flex-wrap: wrap; gap: 8px 20px; width: 100%; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 15px; }
.footer-guides a { color: var(--haze); text-decoration: none; }
.footer-guides a:hover { color: var(--lamp); }
/* Download page: links from each device panel to its full guide */
.guide-link { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 16px; }
.guide-link a { color: var(--linen); text-underline-offset: 3px; text-decoration-color: var(--lamp); }
.guide-link a:hover { color: var(--lamp); }
.faq-section .guide-link { margin-top: 32px; }

/* Downloader code with a copy button */
.code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.code-copy {
  padding: 8px 16px;
  border: 1px solid rgba(251, 241, 230, 0.25);
  border-radius: 999px;
  background: transparent;
  color: var(--linen);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}
.code-copy:hover { border-color: var(--lamp); }
.code-copy.done { border-color: var(--lamp); color: var(--lamp); }
