/* Circle TV: light, calm, one warm accent. Readable from a sofa, usable with a TV remote. */
:root {
  --bg: #ffffff;
  --soft: #f7f6f3;
  --soft-2: #efede8;
  --line: #e6e3dc;
  --ink: #17181c;
  --text-2: #4b505a;
  --text-3: #767b86;
  --accent: #ef5a3c;
  --accent-soft: #fdeee9;
  --ok: #1f8a5b;
  --ok-soft: #e8f5ee;
  --radius: 18px;
  --max: 1080px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Sans Arabic", Tahoma, sans-serif;
}
[dir="rtl"] body { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 2px; }
code, .mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 10; }

/* Focus must be obvious: these pages are often used with a TV remote. */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 4px solid var(--accent);
  outline-offset: 3px;
  border-radius: 12px;
}

/* ---------------------------------------------------------------- header */
.top { background: rgba(255, 255, 255, .94); position: sticky; top: 0; z-index: 5; backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 18px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.brand img { width: 32px; height: 32px; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; flex-wrap: wrap; }
.nav a, .langs a { color: var(--text-2); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; }
.nav a:hover, .langs a:hover { color: var(--ink); background: var(--soft); }
.nav a[aria-current="page"] { color: var(--ink); }
.langs { display: flex; gap: 2px; }
.langs a { font-size: 14px; padding: 6px 10px; }
.langs a[aria-current="true"] { color: var(--ink); background: var(--soft-2); }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 12px 24px; border-radius: 999px;
  font-weight: 700; font-size: 17px; text-decoration: none; border: 1.5px solid var(--line); cursor: pointer;
  background: #fff; color: var(--ink);
}
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.primary:hover { background: #2c2e35; }
.btn.whatsapp { background: #1faa59; border-color: #1faa59; color: #fff; }
.btn.whatsapp:hover { background: #178f4a; }
.btn svg { width: 22px; height: 22px; flex: none; }
.btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* ---------------------------------------------------------------- type */
.kicker { color: var(--accent); font-weight: 700; font-size: 15px; margin: 0 0 12px; }
h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; margin: 0 0 18px; letter-spacing: -.025em; }
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.3; }
h2 { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -.015em; }
[dir="rtl"] h2 { letter-spacing: 0; }
h3 { font-size: 19px; margin: 0 0 6px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 620px; margin: 0; }
.muted { color: var(--text-2); }
.small { font-size: 14px; color: var(--text-3); }
.center { text-align: center; }
.ltr { direction: ltr; unicode-bidi: isolate; white-space: nowrap; }
.center .lead { margin-inline: auto; }

section { padding: 72px 0; }
.band { background: var(--soft); }

/* ---------------------------------------------------------------- hero */
.hero { padding: 64px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: center; }
.app-chip { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 18px; color: var(--ink); text-decoration: none; }
.app-chip img { width: 40px; height: 40px; border-radius: 10px; }
.devices { margin-top: 20px; color: var(--text-3); font-size: 15px; }
.tv img { border-radius: 14px; box-shadow: 0 30px 60px -20px rgba(23, 24, 28, .35), 0 0 0 10px var(--ink); aspect-ratio: 16 / 9; object-fit: cover; width: 100%; }
.tv::after { content: ""; display: block; width: 28%; height: 10px; margin: 18px auto 0; border-radius: 0 0 10px 10px; background: var(--soft-2); }
.detected { display: none; margin-top: 18px; font-size: 15px; color: var(--text-2); }
.detected.show { display: block; }

/* ---------------------------------------------------------------- steps */
.steps3 { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps3 li { counter-increment: step; background: var(--soft); border-radius: var(--radius); padding: 26px; }
.steps3 li::before {
  content: counter(step); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: 14px;
}
.steps3 p { margin: 0; color: var(--text-2); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps > li { counter-increment: step; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 20px 72px; }
[dir="rtl"] .steps > li { padding: 20px 72px 20px 22px; }
.steps > li::before {
  content: counter(step); position: absolute; inset-inline-start: 20px; top: 18px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
  font-weight: 800; display: grid; place-items: center;
}
.steps h3 { font-size: 18px; margin: 4px 0 4px; }
.steps p { margin: 4px 0 0; color: var(--text-2); }
.path { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 1px 8px; color: var(--ink); font-weight: 600; }
.url { font-size: 20px; font-weight: 800; color: var(--ink); background: var(--accent-soft); border-radius: 10px; padding: 6px 14px; display: inline-block; direction: ltr; unicode-bidi: isolate; }

/* ---------------------------------------------------------------- plans */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 32px; }
.plan { background: #fff; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; }
.plan.best { border-color: var(--ink); }
.plan h3 { margin: 0; font-size: 18px; }
.plan .tag { align-self: flex-start; }
.price { font-size: 38px; font-weight: 800; margin-top: 8px; letter-spacing: -.02em; }
.price small { font-size: 16px; color: var(--text-3); font-weight: 600; letter-spacing: 0; }
.plan .btns { margin-top: auto; padding-top: 18px; }
.plan .btn { width: 100%; }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 999px; padding: 3px 10px; margin-top: 8px; }
.assure { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 22px; color: var(--text-2); font-size: 15px; }
.assure span::before { content: "✓"; color: var(--ok); font-weight: 800; margin-inline-end: 8px; }

/* ---------------------------------------------------------------- app page */
.shots { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 62%); gap: 18px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x mandatory; }
.shots figure { margin: 0; scroll-snap-align: start; }
.shots img { border-radius: 14px; aspect-ratio: 16 / 9; object-fit: cover; width: 100%; box-shadow: 0 0 0 1px var(--line); }
.shots figcaption { color: var(--text-3); font-size: 14px; margin-top: 8px; }

.features { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 14px 28px; }
.features li { color: var(--text-2); padding-inline-start: 30px; position: relative; }
.features li::before { content: "✓"; position: absolute; inset-inline-start: 0; color: var(--ok); font-weight: 800; }
.features li b { color: var(--ink); }

.download { display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center; background: var(--soft); border-radius: 24px; padding: 34px; }
.download p { margin: 0 0 10px; color: var(--text-2); }
.qr { text-align: center; }
.qr img { width: 148px; height: 148px; background: #fff; border-radius: 14px; padding: 10px; margin: 0 auto; }
.qr p { font-size: 14px; color: var(--text-3); max-width: 180px; margin: 10px auto 0; }

.list { padding-inline-start: 1.2em; margin: 8px 0 0; }
.list li { margin: 6px 0; color: var(--text-2); }
.list li b { color: var(--ink); }

.verify { display: grid; gap: 10px; margin-top: 8px; }
.hash { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.hash b { min-width: 170px; color: var(--text-2); font-size: 14px; font-weight: 600; }
.hash code { word-break: break-all; font-size: 13px; flex: 1 1 360px; direction: ltr; text-align: start; color: var(--text-2); }
.copy { background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 8px; padding: 5px 12px; font-weight: 700; cursor: pointer; font-size: 14px; }
.copy.done { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); }

/* ---------------------------------------------------------------- notes, cards */
.note { background: var(--soft); padding: 14px 18px; border-radius: 12px; color: var(--text-2); margin-top: 18px; }
.note.ok { background: var(--ok-soft); }
.note b { color: var(--ink); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card p { margin: 6px 0 0; color: var(--text-2); }
.app-card { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; text-decoration: none; color: inherit; }
.app-card img { width: 72px; height: 72px; border-radius: 16px; }
.app-card p { margin: 2px 0 0; }

/* ---------------------------------------------------------------- tabs (install guide) */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 26px; }
.tabs button { background: #fff; color: var(--text-2); border: 1.5px solid var(--line); border-radius: 999px; padding: 10px 20px; font: inherit; font-weight: 700; cursor: pointer; min-height: 50px; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs { display: none; }
.js .tabs { display: flex; }
.js .panel[hidden] { display: none; }
.panel + .panel { margin-top: 40px; }
.js .panel + .panel { margin-top: 0; }

/* ---------------------------------------------------------------- FAQ / details */
.faq { max-width: 760px; margin: 28px auto 0; }
details { border-bottom: 1px solid var(--line); }
details:first-child { border-top: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; padding: 18px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--text-3); font-weight: 400; font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details > :not(summary) { color: var(--text-2); margin-top: 0; }
details > p:last-child, details > div:last-child, details > ul:last-child { margin-bottom: 18px; }
.more { max-width: none; margin-top: 8px; }

footer { border-top: 1px solid var(--line); padding: 34px 0 52px; color: var(--text-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer p { margin: 0; }
footer a { color: var(--text-2); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps3 { grid-template-columns: 1fr; }
  .download { grid-template-columns: 1fr; }
  .qr { display: none; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .top { position: static; }
  .top .wrap { gap: 4px 10px; padding-top: 10px; padding-bottom: 10px; }
  .nav { margin-inline-start: 0; order: 3; width: 100%; }
  .langs { margin-inline-start: auto; }
  .nav a { padding: 6px 10px; font-size: 15px; }
  .hero { padding: 36px 0 48px; }
  section { padding: 52px 0; }
  .btn { width: 100%; }
  .shots { grid-auto-columns: 86%; }
  .download { padding: 24px; }
}

/* Big screens seen from the sofa */
@media (min-width: 1600px) {
  body { font-size: 20px; }
  :root { --max: 1320px; }
}

/* ---------------------------------------------------------------- download started panel */
.dl-panel { position: fixed; inset: 0; background: rgba(23, 24, 28, .55); display: grid; place-items: center; z-index: 20; padding: 16px; }
.dl-panel[hidden] { display: none; }
.dl-box { background: #fff; border-radius: 24px; padding: 30px; max-width: 560px; width: 100%; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .4); }
.dl-box h2 { font-size: 26px; }
.dl-box p { color: var(--text-2); }
.dl-tv { display: none; }
html[data-device="tv"] .dl-tv, html[data-device="fire"] .dl-tv { display: block; }
html[data-device="tv"] .dl-phone, html[data-device="fire"] .dl-phone { display: none; }
.btn.busy { opacity: .85; }
.btn.busy svg { animation: dl-bounce 1s ease-in-out infinite; }
@keyframes dl-bounce { 50% { transform: translateY(3px); } }
