/* tvbox case study - shared by the English (/) and Hebrew (/he/) pages.
   Always dark: it is a TV story. Colours come from tokens.css (--ds-*). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ds-canvas); color: var(--ds-body);
  font: 17px/1.65 var(--ds-font-ui); -webkit-font-smoothing: antialiased;   /* Inter: Atkinson's slashed zero read oddly in numbers */
  background:
    radial-gradient(1100px 700px at 85% -10%, rgba(159, 220, 198, .10), transparent 60%),
    radial-gradient(900px 650px at -10% 30%, rgba(185, 178, 232, .08), transparent 60%),
    var(--ds-canvas);
}
html[lang="he"] body { font-family: "Heebo", var(--ds-font-body); }
img { max-width: 100%; display: block; }
a { color: var(--ds-accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { color: var(--ds-ink); font-family: var(--ds-font-display); letter-spacing: -.02em; margin: 0; }
html[lang="he"] h1, html[lang="he"] h2, html[lang="he"] h3 { font-family: "Heebo", var(--ds-font-display); letter-spacing: 0; }

/* ---------- top bar ---------- */
.top { display: flex; align-items: center; gap: 12px; padding: 24px 0; }
.top .me { display: flex; align-items: center; gap: 10px; color: var(--ds-ink); font-weight: 650; }
.top .me img { width: 38px; height: 38px; border-radius: 50%; }
.top .me small { display: block; font-weight: 400; color: var(--ds-muted); font-size: 12.5px; }
.top .lang { margin-inline-start: auto; padding: 7px 14px; border-radius: var(--ds-radius-pill); border: 1px solid var(--ds-hairline);
             color: var(--ds-body); font-size: 14px; }
.top .lang:hover { text-decoration: none; border-color: var(--ds-btn-edge); }

/* ---------- hero ---------- */
.hero { text-align: center; padding: 40px 0 10px; }
.kicker { display: inline-flex; gap: 8px; align-items: center; padding: 7px 14px; border-radius: var(--ds-radius-pill);
          background: rgba(159, 220, 198, .1); border: 1px solid rgba(159, 220, 198, .25); color: var(--ds-accent);
          font: 600 12.5px/1 var(--ds-font-ui); letter-spacing: .08em; text-transform: uppercase; }
html[lang="he"] .kicker { letter-spacing: 0; font-family: "Heebo", var(--ds-font-ui); font-size: 14px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); line-height: 1.02; margin: 22px auto 18px; max-width: 900px; }
.hero h1 em { font-style: normal; background: linear-gradient(100deg, var(--ds-accent), var(--ds-accent-alt));
              -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(18px, 2.3vw, 21px); color: var(--ds-muted); max-width: 700px; margin: 0 auto; }

/* ---------- the stage: TV + phone + remote ---------- */
.stage { position: relative; margin: 56px auto 0; max-width: 1040px; padding-bottom: 70px; }
.tv { position: relative; width: 84%; margin: 0 auto; }
.tv .bezel { position: relative; padding: 1.6%; border-radius: 18px; background: linear-gradient(#262a2e, #121416);
             box-shadow: 0 50px 90px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.tv .screen { position: relative; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: #000; }
.tv .screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s; }
.tv .screen img.on { opacity: 1; }
.tv .screen::after { content: ""; position: absolute; inset: 0; pointer-events: none;
                     background: linear-gradient(115deg, rgba(255, 255, 255, .07), transparent 38%); }
.tv .stand { width: 26%; height: 18px; margin: 0 auto; background: linear-gradient(#1b1e21, #0c0d0f);
             clip-path: polygon(12% 0, 88% 0, 100% 100%, 0 100%); }
.tv .box { position: absolute; bottom: -2px; inset-inline-start: 12%; width: 72px; height: 22px; border-radius: 9px;
           background: linear-gradient(#2a2d30, #141618); box-shadow: 0 10px 20px rgba(0, 0, 0, .5); }
.tv .box::after { content: ""; position: absolute; top: 9px; inset-inline-end: 12px; width: 4px; height: 4px; border-radius: 50%; background: #9fdcc6; }
.phone { position: absolute; width: 19%; bottom: 0; inset-inline-end: 1%; transform: rotate(4deg); z-index: 2; container-type: inline-size; }
html[dir="rtl"] .phone { transform: rotate(-4deg); }
.remote { position: absolute; width: 7%; bottom: 6px; inset-inline-start: 3%; z-index: 2; transform: rotate(-14deg); filter: drop-shadow(0 22px 26px rgba(0, 0, 0, .55)); }
html[dir="rtl"] .remote { transform: rotate(14deg); }

/* phone frame (also used in the gallery): a thin, even black bezel sized in container units, so the
   frame keeps the same proportions at any width, a punch-hole camera over the screen, side keys. */
.device { position: relative; border-radius: 15cqw; padding: 2.6cqw;
          background: #0a0b0c;
          box-shadow: 0 0 0 0.9cqw #2b2f33, 0 0 0 1.2cqw #4a5056, 0 40px 70px rgba(0, 0, 0, .55); }
.device img { width: 100%; border-radius: 12.5cqw; }
.device::before { content: ""; position: absolute; z-index: 2; top: 5.4cqw; left: 50%; width: 3.6cqw; height: 3.6cqw;
                  border-radius: 50%; transform: translateX(-50%); background: #000; box-shadow: 0 0 0 0.6cqw #111; }
.device::after { content: ""; position: absolute; top: 22%; right: -2.4cqw; width: 1.2cqw; height: 16%;
                 border-radius: 0 1cqw 1cqw 0; background: linear-gradient(90deg, #3a3f44, #24282b);
                 box-shadow: 0 calc(16cqw + 18%) 0 0 transparent; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.eyebrow { color: var(--ds-accent); font: 700 12px/1 var(--ds-font-ui); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 14px; }
html[lang="he"] .eyebrow { letter-spacing: 0; font-family: "Heebo", var(--ds-font-ui); font-size: 14px; }
section h2 { font-size: clamp(30px, 4.4vw, 46px); line-height: 1.08; max-width: 780px; }
section .intro { color: var(--ds-muted); font-size: 19px; max-width: 700px; margin: 16px 0 0; }

/* the film */
section.film { padding-top: 40px; }
video.demo { display: block; width: 100%; margin-top: 34px; border-radius: 22px; background: #000; aspect-ratio: 16 / 9;
             box-shadow: 0 40px 80px rgba(0, 0, 0, .5); border: 1px solid var(--ds-hairline); }

/* three things */
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.card { padding: 28px; border-radius: 22px; background: var(--ds-surface-card); border: 1px solid var(--ds-hairline); }
.card .ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px;
             background: rgba(159, 220, 198, .12); color: var(--ds-accent); }
.card .ico.alt { background: rgba(185, 178, 232, .14); color: var(--ds-accent-alt); }
.card .ico svg { width: 24px; height: 24px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ds-muted); font-size: 16px; }

/* TV channel switcher */
.channels { display: grid; grid-template-columns: 1fr 260px; gap: 34px; align-items: center; margin-top: 44px; }
.channels .tv { width: 100%; }
.chlist { display: flex; flex-direction: column; gap: 8px; }
.chlist button { display: flex; gap: 14px; align-items: flex-start; text-align: start; padding: 14px 16px; border-radius: 16px;
                 border: 1px solid transparent; background: none; color: var(--ds-muted); font: inherit; cursor: pointer; }
.chlist button b { display: block; color: var(--ds-ink); font-size: 16px; }
.chlist button span { font-size: 14px; line-height: 1.45; }
.chlist button i { flex: none; font-style: normal; font: 700 13px/1 var(--ds-font-code); color: var(--ds-muted-soft); padding-top: 4px; }
.chlist button.on { background: var(--ds-surface-card); border-color: var(--ds-hairline); }
.chlist button.on i { color: var(--ds-accent); }

/* phones row */
.phones { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: 50px; align-items: start; }
.phones figure { margin: 0; container-type: inline-size; }
.phones figure:nth-child(2) { margin-top: 50px; }
.phones figcaption { margin-top: 22px; text-align: center; }
.phones figcaption b { display: block; color: var(--ds-ink); font-size: 18px; }
.phones figcaption span { color: var(--ds-muted); font-size: 15px; }

/* flow diagram */
.flow { margin-top: 44px; padding: 30px; border-radius: 26px; background: var(--ds-surface-soft); border: 1px solid var(--ds-hairline); }
.flow svg { width: 100%; height: auto; display: block; }
.flow text { font-family: var(--ds-font-ui); }
html[lang="he"] .flow text { font-family: "Heebo", var(--ds-font-ui); }

/* hard parts */
.parts { display: grid; gap: 18px; margin-top: 44px; }
.part { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 28px; padding: 30px; border-radius: 24px;
        background: var(--ds-surface-card); border: 1px solid var(--ds-hairline); }
.part .n { font: 700 34px/1 var(--ds-font-code); color: var(--ds-accent-alt); }
.part h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.part p { margin: 0; color: var(--ds-muted); }
.part .fix { padding: 18px 20px; border-radius: 16px; background: rgba(159, 220, 198, .07); border: 1px solid rgba(159, 220, 198, .18); }
.part .fix b { display: block; color: var(--ds-accent); font: 700 12px/1 var(--ds-font-ui); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; }
html[lang="he"] .part .fix b { letter-spacing: 0; font-family: "Heebo", var(--ds-font-ui); font-size: 13px; }
.part .fix p { color: var(--ds-body); font-size: 16px; }

/* quote */
.quote { margin: 46px 0 0; padding: 34px 38px; border-radius: 26px; background: linear-gradient(135deg, rgba(185, 178, 232, .12), rgba(159, 220, 198, .08));
         border: 1px solid var(--ds-hairline); }
.quote .q { font-size: clamp(21px, 2.8vw, 28px); line-height: 1.4; color: var(--ds-ink); font-weight: 600; margin: 0; }
.quote .who { margin-top: 14px; color: var(--ds-muted); font-size: 15px; }

/* stack + privacy */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { padding: 7px 13px; border-radius: var(--ds-radius-pill); border: 1px solid var(--ds-hairline); font-size: 14px; color: var(--ds-body); }
ul.tidy { margin: 14px 0 0; padding-inline-start: 20px; color: var(--ds-muted); }
ul.tidy li { margin: 6px 0; }

footer { padding: 70px 0 60px; color: var(--ds-muted); text-align: center; font-size: 15px; border-top: 1px solid var(--ds-hairline); }
footer .credit { margin-top: 10px; font-size: 12.5px; color: var(--ds-muted-soft); }
footer .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 22px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: 14px; font-weight: 650;
       background: var(--ds-btn-bg); color: #0d1a16; }
.btn.ghost { background: none; color: var(--ds-ink); border: 1px solid var(--ds-hairline); }
.btn:hover { text-decoration: none; filter: brightness(1.06); }

@media (max-width: 860px) {
  .three, .split { grid-template-columns: 1fr; }
  .channels { grid-template-columns: 1fr; }
  .chlist { flex-direction: row; overflow-x: auto; }
  .chlist button { flex: none; width: 210px; }
  .part { grid-template-columns: 1fr; gap: 14px; }
  .phones { grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
  .phones figure:nth-child(2) { margin-top: 24px; }
  .phones figcaption span { display: none; }
  .phone { width: 25%; }
  .remote { width: 10%; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .tv { width: 92%; }
  .stage { padding-bottom: 46px; }
  .phones figcaption b { font-size: 14px; }
  .card, .part { padding: 22px; }
}
