/* Bayt's site (the owner's example for its shape, 2026-11-03; docs/plan/website.md): light and airy, a TV on its stand first,
   Bayt's green and its gold objects. Dark follows the visitor's system or the button. */
/* One family for Arabic, English and German (Claude, 2026-11-06, on the owner's wish for "a nice font for all
   languages"): Readex Pro, OFL, subset to Latin and Arabic, weights 300 to 700. */
@font-face { font-family: "Readex Pro"; font-weight: 300 700; font-display: swap; src: url(fonts/readex-pro.woff2) format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f3f8fc; --bg2: #e8f1f8; --panel: #ffffff; --ink: #0f2a33; --soft: #44606b; --line: #d3e1ea;
  --green: #0c5e4d; --on-green: #ffffff; --mark: #7a5a10; --ring: #0c5e4d; --band: #0b2f33; --shadow: 0 18px 50px rgb(15 42 51 / .14);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1a20; --bg2: #0f2229; --panel: #12262d; --ink: #eaf2f5; --soft: #a9bfc8; --line: #24404a;
    --green: #5fc7a8; --on-green: #06231d; --mark: #e0b866; --ring: #e0b866; --shadow: 0 18px 50px rgb(0 0 0 / .45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1a20; --bg2: #0f2229; --panel: #12262d; --ink: #eaf2f5; --soft: #a9bfc8; --line: #24404a;
  --green: #5fc7a8; --on-green: #06231d; --mark: #e0b866; --ring: #e0b866; --shadow: 0 18px 50px rgb(0 0 0 / .45);
}
.for-dark { display: none; }
:root[data-theme="dark"] .for-dark { display: block; } :root[data-theme="dark"] .for-light { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .for-dark { display: block; }
  :root:not([data-theme="light"]) .for-light { display: none; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.65 "Readex Pro", system-ui, sans-serif; }
[dir=rtl] body, body[dir=rtl], [lang=ar] { line-height: 1.85; }
h1, h2, h3 { font-weight: 650; margin: 0; line-height: 1.15; text-wrap: balance; }
[dir=rtl] h1, [dir=rtl] h2, [dir=rtl] h3 { line-height: 1.4; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); letter-spacing: -.015em; }
[dir=rtl] h2, [dir=rtl] h1 { letter-spacing: 0; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 3px; border-radius: 6px; }
img { display: block; max-width: 100%; height: auto; }
.wrap { width: min(1200px, 100% - 2 * clamp(16px, 5vw, 56px)); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--panel); color: var(--ink); padding: 8px 14px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 8px; }
.lead { font-size: clamp(1.1rem, 1.7vw, 1.3rem); color: var(--soft); max-width: 58ch; margin-top: 14px; }

/* The top */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; gap: clamp(12px, 3vw, 32px); min-height: 68px; }
.logo img { height: 40px; width: auto; }
.links { display: flex; gap: clamp(10px, 2vw, 24px); flex: 1; }
.links a, .langs a { text-decoration: none; padding: 6px 2px; color: var(--soft); }
.links a:hover, .langs a:hover { color: var(--ink); }
.tools { display: flex; align-items: center; gap: 14px; margin-inline-start: auto; }
.langs { display: flex; gap: 10px; font-size: .95rem; }
.langs a[aria-current] { color: var(--green); font-weight: 800; }
.theme { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; padding: 0; position: relative; }
.theme::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: linear-gradient(90deg, var(--ink) 50%, transparent 50%); box-shadow: inset 0 0 0 2px var(--ink); }

/* Buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn { display: inline-block; padding: 13px 26px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 800; text-decoration: none; }
.btn.alt { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--line); }
.note { margin-top: 16px; color: var(--soft); font-size: .98rem; }

/* The first screen (Claude, 2026-11-06, owner: "design the hero section better"): a band of Bayt's own green at night,
   the Quran cards' eight-point stars faint in gold, cream words, a gold door to the install steps, and the TV glowing
   like a lit window. Fixed colours on purpose: the same in both site themes, like the Downloader band. */
.hero { position: relative; overflow: hidden; color: #F6EFDC; padding-block: clamp(40px, 7vw, 96px) clamp(40px, 6vw, 80px);
  background: radial-gradient(60% 80% at 72% 40%, rgb(211 166 82 / .20), transparent 70%), radial-gradient(120% 100% at 20% 0, #12584a, #0a3b31 55%, #072b24); }
.hero::before { content: ""; position: absolute; inset: 0; background: url(stars.svg) 0 0 / 96px 96px; opacity: .22;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 95%); mask-image: linear-gradient(to bottom, #000, transparent 95%); }
.hero::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: linear-gradient(90deg, transparent, #D3A652, transparent); opacity: .7; }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(300px, 5fr) 7fr; gap: clamp(28px, 4.5vw, 64px); align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); font-weight: 700; letter-spacing: -.025em; line-height: 1.05; color: #FBF6EA; }
[dir=rtl] .hero h1 { line-height: 1.4; letter-spacing: 0; }
.hero .lead { color: rgb(246 239 220 / .84); }
.hero .btn { background: #D3A652; color: #0A3B31; box-shadow: 0 10px 30px rgb(211 166 82 / .28); }
.hero .btn:hover { background: #E0B866; }
.hero .btn.alt { background: transparent; color: #F6EFDC; box-shadow: inset 0 0 0 2px rgb(246 239 220 / .38); }
.hero .btn.alt:hover { box-shadow: inset 0 0 0 2px #F6EFDC; }
.hero .note { color: #D3A652; }
.hero :focus-visible { outline-color: #F6EFDC; }
.hero .screen { box-shadow: 0 0 0 1px rgb(211 166 82 / .35), 0 30px 80px rgb(0 0 0 / .45), 0 0 120px rgb(211 166 82 / .18); }
.hero .set::before { background: linear-gradient(#24343a, #121b1f); }
.hero .set::after { background: #121b1f; }
.screen { border-radius: 14px; background: #0a0f12; padding: clamp(5px, .8vw, 10px); box-shadow: var(--shadow); }
.screen img, .screen video { border-radius: 7px; }
.screen video { width: 100%; height: auto; }
.slide { margin: 0; }
.set { position: relative; padding-bottom: 34px; }
.set::before { content: ""; position: absolute; bottom: 8px; left: 50%; width: 16%; height: 28px; transform: translateX(-50%); background: linear-gradient(#2b3a41, #182329); clip-path: polygon(30% 0, 70% 0, 100% 100%, 0 100%); }
.set::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 38%; height: 9px; transform: translateX(-50%); border-radius: 9px; background: #182329; }

/* Four facts */
.facts { background: var(--panel); border-block: 1px solid var(--line); }
.facts ul { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; list-style: none; margin-block: 0; padding: 22px 0; }
.facts b { display: block; font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; color: var(--green); line-height: 1.2; }
.facts span { color: var(--soft); font-size: .98rem; }

/* The grid */
.features { padding-block: clamp(48px, 7vw, 88px) clamp(16px, 3vw, 40px); }
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 30px; }
.card { display: block; text-decoration: none; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card:hover { border-color: var(--green); }
.card img { width: 56px; height: 56px; }
.card h3 { font-size: 1.15rem; margin-top: 12px; }
.card p { color: var(--soft); font-size: .98rem; margin-top: 6px; }

/* A feature: words beside its pictures, turn about */
.feature { padding-block: clamp(32px, 5vw, 64px); }
.feature .wrap { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.feature:nth-of-type(odd) .wrap { grid-template-columns: 8fr 4fr; }
.feature:nth-of-type(odd) .words { order: 2; }
.feature h2 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); }
.feature p { color: var(--soft); margin-top: 12px; }
.feature ul { margin: 14px 0 0; padding: 0; list-style: none; }
.feature li { padding-block: 7px; padding-inline-start: 26px; position: relative; }
.feature li::before { content: ""; position: absolute; inset-inline-start: 4px; top: 1em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--mark); }
.carousel { min-width: 0; }
.track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: 7px; }
.track::-webkit-scrollbar { display: none; }
.track .slide { flex: 0 0 100%; scroll-snap-align: start; position: relative; }
figcaption { font-size: .92rem; padding: 10px 6px 4px; color: #cfdde3; }
.ctl { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 12px; }
.ctl[hidden] { display: none; }
.ctl button { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); cursor: pointer; position: relative; }
.ctl button::after { content: ""; position: absolute; inset: 14px 15px; border: solid var(--ink); border-width: 0 0 2.5px 2.5px; transform: rotate(45deg); }
.ctl .next::after { transform: rotate(225deg); }
[dir=rtl] .ctl .prev::after { transform: rotate(225deg); } [dir=rtl] .ctl .next::after { transform: rotate(45deg); }
.count { color: var(--soft); min-width: 54px; text-align: center; direction: ltr; unicode-bidi: isolate; }

/* What it won't do */
.band { background: var(--band); color: #f1eee9; padding-block: clamp(44px, 7vw, 84px); margin-top: clamp(24px, 4vw, 48px); }
.band dl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 28px 0 0; }
.band dt { font-weight: 800; font-size: 1.15rem; color: #e0b866; }
.band dd { margin: 8px 0 0; }

/* Which TV */
.install { padding-block: clamp(48px, 7vw, 88px); }
.notyet { margin-top: 20px; padding: 12px 16px; border-inline-start: 5px solid var(--green); background: var(--bg2); border-radius: 6px; }
.tv-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 28px; }
.tv-card { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.tv-card h3 { font-size: 1.2rem; }
.tv-card p { color: var(--soft); flex: 1; }
.tv-card .btn { padding: 10px 20px; }
.tv-card.off { background: transparent; }

/* Questions */
.faq { padding-block: clamp(24px, 4vw, 48px) clamp(48px, 7vw, 88px); }
.faq .wrap { max-width: 860px; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 20px; margin-top: 12px; }
.faq h2 { margin-bottom: 22px; }
summary { cursor: pointer; padding-block: 15px; font-weight: 800; }
.faq details p { padding-block-end: 16px; color: var(--soft); }

/* Report a mistake: one panel, the address the largest thing in it */
.contact { padding-block-end: clamp(40px, 6vw, 72px); }
.contact .wrap { max-width: 860px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); }
.contact .lead { color: var(--soft); margin-top: 8px; max-width: 64ch; }
.contact .mail { margin-top: 18px; font-weight: 600; }
.contact .mail a { display: inline-block; font-size: clamp(1.15rem, 2.6vw, 1.5rem); font-weight: 800; color: var(--green); overflow-wrap: anywhere; }
.contact ul { list-style: none; padding: 0; margin: 16px 0 0; }
.contact li { position: relative; padding-inline-start: 24px; margin-top: 6px; }
.contact li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .6em; width: 9px; height: 9px; transform: rotate(45deg); background: var(--mark); }
.contact .note { color: var(--soft); margin-top: 16px; font-size: .95rem; }
.contact .updates { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.contact .studio { margin-top: 12px; color: var(--soft); }
.contact .studio a { font-weight: 800; color: var(--green); }

/* The end */
.last { padding-block-end: clamp(48px, 7vw, 88px); }
.last-card { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: clamp(22px, 4vw, 40px); }
.last-card img { width: 56px; height: auto; }
.last-card > div { flex: 1 1 280px; }
.last-card p { color: var(--soft); margin-top: 6px; }

/* The foot and plain pages */
.waqf { padding-block: 56px; text-align: center; }
.waqf .lead { max-width: 60ch; margin-inline: auto; }
.waqf .dua { margin-top: 14px; color: var(--mark); font-size: 1.35em; }
.foot { background: var(--band); color: #f1eee9; padding-block: 36px 48px; font-size: .98rem; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-bottom: 16px; }
.foot details { margin: 0 0 16px; }
.foot summary { font-weight: 500; padding-block: 4px; }
.foot details ul { padding-inline-start: 1.2em; margin: 8px 0 0; }
.foot p { margin-top: 8px; }
.plain { padding-block: clamp(28px, 5vw, 56px); }
.plain .wrap { max-width: 72ch; }
.plain h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-block: 14px 16px; }
.plain h2 { font-size: 1.35rem; margin-top: 30px; margin-bottom: 8px; }
.plain p, .plain ul { margin-block: 10px; }
.plain table { border-collapse: collapse; width: 100%; font-size: 1rem; display: block; overflow-x: auto; }
.plain td, .plain th { border: 1px solid var(--line); padding: 8px 10px; text-align: start; vertical-align: top; }
.steps { padding: 0; margin: 24px 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 4px 0 18px; padding-inline-start: 54px; }
.steps li::before { content: counter(s); position: absolute; inset-inline-start: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--green); color: var(--on-green); font-weight: 800; }
.get { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 8px; }
.get a { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--green); color: var(--on-green); font-weight: 800; text-decoration: none; }
.get small { flex-basis: 100%; color: var(--soft); }
.code { font-weight: 800; }

@media (max-width: 960px) {
  .links { display: none; }
  .hero .wrap, .feature .wrap, .feature:nth-of-type(odd) .wrap { grid-template-columns: 1fr; }
  .feature:nth-of-type(odd) .words { order: 0; }
  .cards, .tv-cards, .band dl, .facts ul { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .cards, .tv-cards, .band dl { grid-template-columns: 1fr; }
  .langs { gap: 8px; font-size: .9rem; }
}

/* The tour video (owner, 2026-11-06): text beside the TV, under it on a phone; the scenes are a sequence, so numbered. */
.tour { padding-block: clamp(40px, 6vw, 80px); }
.tour .wrap { display: grid; gap: clamp(20px, 4vw, 48px); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; }
.tour ol { margin: 18px 0 0; padding-inline-start: 1.4em; }
.tour li { margin-top: 6px; }
.tour li::marker { color: var(--green); font-weight: 800; }
@media (max-width: 860px) { .tour .wrap { grid-template-columns: 1fr; } }

/* The Downloader code (owner, 2026-11-06): a band in the brand's green above the TVs, the digits on cream keys like a
   remote's, so the number can be typed straight off the screen. Fixed brand colours: the same band in light and dark. */
.dl { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px 40px; margin: 28px 0 22px;
  padding: clamp(22px, 3.5vw, 34px) clamp(22px, 4vw, 40px); border-radius: 20px; color: #F1EEE9;
  background: radial-gradient(120% 140% at 0% 0%, #0F6A56 0%, #0C5E4D 45%, #04362B 100%); box-shadow: var(--shadow); }
.dl-say { flex: 1 1 320px; max-width: 54ch; }
.dl-say h3 { color: #F1EEE9; font-size: clamp(1.25rem, 2.2vw, 1.5rem); }
.dl-say p { margin-top: 8px; color: rgba(241, 238, 233, .86); }
.dl-code { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.dl-label { color: #D3A652; font-weight: 700; font-size: .95rem; }
.keys { display: flex; gap: clamp(5px, 1vw, 9px); }
.key { display: grid; place-items: center; width: clamp(36px, 5.2vw, 54px); aspect-ratio: 4 / 5; border-radius: 12px;
  background: linear-gradient(#FBF9F5, #ECE7DF); color: #0C3F33; font-weight: 800; font-size: clamp(1.4rem, 3vw, 2.1rem);
  font-variant-numeric: tabular-nums; box-shadow: inset 0 -4px 0 rgba(12, 63, 51, .18), 0 2px 0 rgba(0, 0, 0, .25); }
