/* efirapp.com. Colours from docs/brand/BRAND.md; icons: Lucide (ISC). No web fonts, no scripts, no third-party requests.
   One moving thing on the page: the TV guide under the headline drifts past the On air line. */
:root {
  --ink: #0D0D0F; --surface: #17171B; --overlay: #222227;
  --text: #F6F1E6; --text2: rgba(246, 241, 230, .66); --text3: rgba(246, 241, 230, .42);
  --accent: #F0B35C; --on-accent: #15151A; --live: #E5484D; --hairline: rgba(246, 241, 230, .09);
  --pad: clamp(20px, 6vw, 96px); --max: 1200px;
  --edge: max(var(--pad), calc((100vw - var(--max)) / 2));
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--ink); color: var(--text);
  font: 400 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
svg.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }

/* Header */
.nav { position: absolute; inset: 0 0 auto; z-index: 10; }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 92px; }
.nav .logo img { height: 36px; width: auto; }
.nav nav { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; color: var(--text2); }
.nav nav a:hover { color: var(--text); }
.lang { display: flex; gap: 4px; padding: 5px 11px; border: 1px solid var(--hairline); border-radius: 10px; font-size: 13px; color: var(--text3); }
.lang a[aria-current] { color: var(--text); font-weight: 600; }
.page .nav { position: static; }

/* Type */
h1, h2 { font-weight: 800; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(42px, 10.4vw, 156px); line-height: .9; letter-spacing: -.055em; }
h1 span { display: block; }
h1 .glow { background: linear-gradient(90deg, #F0B35C, #F6D9A8 75%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
h2 { font-size: clamp(38px, 5.6vw, 80px); line-height: .98; letter-spacing: -.045em; }
.lead { font-size: clamp(17px, 1.45vw, 20px); line-height: 1.5; color: var(--text2); max-width: 34em; }
section { padding: clamp(88px, 11vw, 168px) 0 0; }

/* Buttons */
.cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 17px 26px; border-radius: 14px; background: var(--accent); color: var(--on-accent); font-weight: 650; font-size: 16px; white-space: nowrap; }
.btn.soon { cursor: default; }
.note { font-size: 15px; color: var(--text3); }

/* Hero: headline, then the devices */
.hero { position: relative; padding: 0; overflow: hidden; }
.hero .wrap { padding-top: clamp(124px, 13vw, 176px); }
.intro { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px 64px; flex-wrap: wrap; margin-top: clamp(28px, 3.4vw, 48px); }
.intro .lead { max-width: 31em; }

/* Devices, drawn in CSS around the app's own screenshots */
.family { position: relative; max-width: 1200px; margin: clamp(48px, 6vw, 96px) auto 0; aspect-ratio: 1200 / 820; }
.family::before { content: ""; position: absolute; inset: 8% 6% -4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 179, 92, .12), transparent); }
.family .mbp { position: absolute; left: 7%; top: 0; width: 86%; }
.family .ipad { position: absolute; left: -1%; bottom: 0; width: 28%; }
.family .iphone { position: absolute; right: 0; bottom: 0; width: 18.5%; }
.mbp { position: relative; }
.lid { position: relative; margin: 0 4.2%; aspect-ratio: 1.556; border-radius: 3.3% / 5.1%; background: #050506; box-shadow: inset 0 0 0 1.5px #2A2B30, 0 0 0 1px #4C4D53, 0 50px 90px rgba(0, 0, 0, .7); }
.lid img { position: absolute; left: 2.2%; top: 3.4%; width: 95.6%; height: 93%; object-fit: cover; object-position: top; border-radius: .6% / .9%; }
.base { position: relative; height: 0; padding-top: 2.9%; border-radius: 0 0 5% 5% / 0 0 100% 100%; background: linear-gradient(180deg, #6A6B71 0, #3A3B40 18%, #1F2023 70%, #151618); box-shadow: 0 30px 60px rgba(0, 0, 0, .6); }
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 13%; height: 36%; transform: translateX(-50%); border-radius: 0 0 9px 9px / 0 0 6px 6px; background: linear-gradient(180deg, #17181B, #2C2D31); }
.base::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: rgba(255, 255, 255, .45); }
.phone, .ipad { position: relative; background: #050506; box-shadow: inset 0 0 0 1.5px #2A2B30, 0 0 0 1px #55565C, 0 40px 80px rgba(0, 0, 0, .7); }
.phone { aspect-ratio: 1320 / 2868; border-radius: 14.8% / 6.9%; }
.phone img { position: absolute; left: 2.4%; top: 1.1%; width: 95.2%; height: 97.8%; object-fit: cover; border-radius: 13.4% / 6.2%; }
.ipad { aspect-ratio: 2064 / 2752; border-radius: 5.2% / 3.9%; }
.ipad img { position: absolute; left: 3.4%; top: 2.55%; width: 93.2%; height: 94.9%; object-fit: cover; object-position: top; border-radius: 2% / 1.5%; }

/* Live TV: the guide drifts past the On air line */
.live .lead { margin-top: 22px; }
.air {
  --rowh: 72px; --ruler: 48px; --line: 61%; --chan: calc(var(--edge) + 76px);
  position: relative; height: calc(var(--ruler) + 7 * var(--rowh)); margin-top: clamp(40px, 5vw, 72px); overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 58%, transparent); mask-image: linear-gradient(180deg, #000 58%, transparent);
}
.track { position: absolute; inset: 0 auto 0 var(--line); transform: translateX(var(--now)); animation: drift 720s linear infinite; }
@keyframes drift { to { translate: var(--day) 0; } }
.ruler { position: relative; height: var(--ruler); }
.ruler span { position: absolute; top: 14px; padding-left: 10px; border-left: 1px solid var(--hairline); font-size: 13px; line-height: 20px; color: var(--text3); font-variant-numeric: tabular-nums; white-space: nowrap; }
.row { position: relative; height: var(--rowh); }
.prog { position: absolute; top: 5px; bottom: 5px; display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 14px; overflow: hidden; white-space: nowrap; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline); }
.prog b { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.prog time { font-size: 13px; color: var(--text3); font-variant-numeric: tabular-nums; }
.air::before { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--line); z-index: 2; background: rgba(13, 13, 15, .5); }
.air::after { content: ""; position: absolute; inset: 0 0 0 auto; width: 18%; z-index: 2; background: linear-gradient(90deg, transparent, var(--ink)); }
.chans { position: absolute; left: 0; top: var(--ruler); z-index: 3; width: var(--chan); padding: 0 0 0 var(--edge); list-style: none; background: linear-gradient(90deg, var(--ink) 72%, transparent); }
.chans li { height: var(--rowh); display: flex; align-items: center; }
.chans img { width: 56px; height: 56px; border-radius: 12px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--hairline); }
.now { position: absolute; top: 0; bottom: 0; left: var(--line); z-index: 4; width: 2px; margin-left: -1px; background: var(--live); box-shadow: 0 0 24px 2px rgba(229, 72, 77, .45); }
.now span { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); padding: 3px 11px; border-radius: 999px; background: var(--live); color: #fff; font-size: 13px; font-weight: 700; line-height: 22px; white-space: nowrap; }

/* Mac */
.mac .wrap { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 48px 56px; align-items: center; }
.mac-pic { margin-right: calc(-1 * min(var(--pad), 48px)); }
.mac-copy { display: grid; gap: 22px; align-content: start; }
.mac .keys { margin-top: 12px; }
.keys { list-style: none; padding: 0; display: grid; gap: 14px; align-content: start; }
.keys li { display: grid; grid-template-columns: 96px 1fr; align-items: center; gap: 16px; color: var(--text2); font-size: 15px; }
.caps { display: flex; gap: 6px; }
kbd { font: 600 15px/1 system-ui, -apple-system, sans-serif; min-width: 38px; height: 36px; padding: 0 9px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--text); background: linear-gradient(180deg, #2B2B31, #1E1E23); border: 1px solid rgba(246, 241, 230, .14); border-bottom-width: 3px; }
.tv { grid-column: 1 / -1; display: flex; gap: 14px; align-items: flex-start; margin-top: clamp(16px, 3vw, 40px); padding-top: 28px; border-top: 1px solid var(--hairline); color: var(--text2); font-size: 15px; }
.tv svg { color: var(--text3); margin-top: 1px; }

/* Movies: two big phones over a few loose posters */
.movies .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 64px; align-items: center; }
.mov-copy .lead { margin-top: 22px; }
.duo { position: relative; width: 100%; max-width: 700px; justify-self: end; aspect-ratio: 1 / 1.02; }
.duo .phone { position: absolute; width: 46%; }
.duo .back { right: 3%; top: 0; }
.duo .front { left: 10%; top: 9%; z-index: 1; }
.float img { position: absolute; width: 24%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 14px; opacity: .45; box-shadow: 0 20px 40px rgba(0, 0, 0, .6); }

/* Player */
.player .wrap { display: grid; justify-items: center; text-align: center; }
.player .lead { margin-top: 22px; }
.screen { position: relative; width: 100%; max-width: 1120px; margin-top: clamp(40px, 5vw, 72px); aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; border: 1px solid var(--hairline); box-shadow: 0 40px 100px rgba(0, 0, 0, .8); background: #000 center / cover no-repeat; color: #fff; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(14px, 2.6vw, 28px) clamp(16px, 3vw, 32px); text-align: left; }
.screen::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .5), transparent 30%, transparent 60%, rgba(0, 0, 0, .8)); }
.screen > * { position: relative; }
.bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.titles { display: flex; align-items: center; gap: 14px; }
.titles b { display: block; font-size: clamp(13px, 1.4vw, 18px); }
.titles small { font-size: 13px; opacity: .7; }
.glass { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); }
.glass.l { width: 64px; height: 64px; } .glass.xl { width: 88px; height: 88px; }
.glass.xl svg { width: 36px; height: 36px; } .glass.l svg { width: 26px; height: 26px; }
.actions, .transport { display: flex; gap: 12px; }
.transport { justify-content: center; align-items: center; gap: clamp(20px, 4vw, 48px); }
.seek { position: relative; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .25); }
.seek i { position: absolute; inset: 0 62% 0 0; border-radius: 3px; background: var(--accent); }
.seek i::after { content: ""; position: absolute; right: -9px; top: -6px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.times { display: flex; justify-content: space-between; font-size: 13px; opacity: .8; margin-top: 10px; font-variant-numeric: tabular-nums; }

/* Set-up: a real sequence, so it is numbered */
.steps { list-style: none; padding: 0; margin-top: clamp(40px, 5vw, 64px); counter-reset: step; border-top: 1px solid var(--hairline); }
.steps li { counter-increment: step; display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1fr); align-items: baseline; gap: 8px 24px; padding: clamp(22px, 2.6vw, 34px) 0; border-bottom: 1px solid var(--hairline); }
.steps li::before { content: counter(step); font-size: clamp(28px, 2.8vw, 40px); font-weight: 800; color: var(--accent); font-variant-numeric: tabular-nums; line-height: 1; }
.steps b { font-size: clamp(24px, 2.8vw, 40px); font-weight: 750; letter-spacing: -.03em; line-height: 1.1; }
.steps span { color: var(--text2); font-size: clamp(16px, 1.35vw, 19px); }
.fine { margin-top: 28px; color: var(--text3); font-size: 15px; max-width: 46em; }

/* Also */
.also h2 { font-size: clamp(32px, 3.6vw, 52px); letter-spacing: -.035em; }
.also dl { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 48px; margin-top: clamp(40px, 5vw, 64px); }
.also dt { font-size: 19px; font-weight: 650; margin-bottom: 6px; }
.also dd { margin: 0; color: var(--text2); font-size: 15px; max-width: 26em; }

/* Final */
.final { padding-bottom: clamp(88px, 11vw, 160px); }
.final .wrap { display: grid; justify-items: center; text-align: center; gap: 22px; }
.final .mark { width: clamp(88px, 9vw, 120px); height: auto; margin-bottom: 12px; }
.final .cta { justify-content: center; margin-top: 8px; }

/* Footer */
footer { border-top: 1px solid var(--hairline); padding: 56px 0 64px; color: var(--text3); font-size: 14px; }
footer .wrap { display: grid; gap: 32px; }
.ftop { display: flex; justify-content: space-between; align-items: start; gap: 32px; flex-wrap: wrap; }
.ftop img { height: 32px; width: auto; margin-bottom: 16px; }
.ftop p { max-width: 380px; }
.flinks { display: flex; gap: 40px; flex-wrap: wrap; font-size: 15px; font-weight: 500; color: var(--text2); }
.flinks a:hover { color: var(--text); }
.fbot { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }

/* Text pages */
.card { background: var(--surface); border: 1px solid var(--hairline); border-radius: 24px; padding: 36px; }
.doc { max-width: 720px; padding-top: 40px; padding-bottom: 96px; }
.doc h1 { font-size: clamp(36px, 4.4vw, 52px); line-height: 1.05; letter-spacing: -.03em; margin-bottom: 12px; }
.doc .date { color: var(--text3); margin-bottom: 32px; }
.doc h2 { font-size: 22px; line-height: 1.25; letter-spacing: -.01em; font-weight: 700; margin: 40px 0 10px; }
.doc p { color: var(--text2); }
.doc p + p { margin-top: 12px; }
.doc a:not(.btn) { color: var(--accent); }
.summary { display: flex; gap: 16px; align-items: start; padding: 24px; margin: 8px 0 8px; }
.summary svg { color: var(--accent); width: 24px; height: 24px; margin-top: 2px; }
.summary b { display: block; color: var(--text); font-size: 18px; margin-bottom: 4px; }
.faq { display: grid; gap: 12px; margin: 32px 0 48px; }
.faq details { background: var(--surface); border: 1px solid var(--hairline); border-radius: 18px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; font-weight: 600; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--text3); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details > div { padding: 0 24px 22px; color: var(--text2); }
.faq details > div p + p { margin-top: 10px; }
.help { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px; }
.help b { display: block; font-size: 20px; margin-bottom: 4px; }
.help p { color: var(--text2); max-width: 420px; }

/* Smaller screens */
@media (max-width: 900px) {
  .mac .wrap { grid-template-columns: 1fr; }
  .mac-pic { margin-right: 0; }
  .movies .wrap { grid-template-columns: 1fr; }
  .duo { justify-self: center; }
  .also dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 48px minmax(0, 1fr); }
  .steps span { grid-column: 2; }
}
@media (max-width: 640px) {
  .nav .wrap { height: 72px; } .nav .logo img { height: 29px; } .nav nav { gap: 16px; font-size: 14px; }
  .hero .wrap { padding-top: 116px; }
  .intro .cta { width: 100%; } .btn { flex: 1; justify-content: center; }
  .air { --rowh: 60px; --ruler: 44px; --line: 66%; --chan: calc(var(--edge) + 56px); }
  .chans img { width: 44px; height: 44px; border-radius: 10px; }
  .prog { padding: 0 11px; border-radius: 10px; } .prog b { font-size: 14px; } .prog time { font-size: 12px; }
  .keys li { grid-template-columns: 88px 1fr; }
  .also dl { grid-template-columns: 1fr; gap: 28px; }
  .actions .glass:nth-child(-n+2) { display: none; }
  .glass { width: 36px; height: 36px; } .glass.l { width: 44px; height: 44px; } .glass.xl { width: 56px; height: 56px; }
  .glass svg { width: 16px; height: 16px; } .glass.l svg { width: 18px; height: 18px; } .glass.xl svg { width: 24px; height: 24px; }
  .titles small { display: none; }
  .flinks { flex-direction: column; gap: 12px; }
  .card { padding: 24px; }
}
/* Motion. One sequence when the page opens; the rest follows the scroll (Chrome 115+, Safari 26+; elsewhere it stands still). */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span { animation: in-up 1s cubic-bezier(.16, 1, .3, 1) both; }
  .hero h1 .glow { animation-delay: .1s; }
  .intro { animation: in-up 1s .22s cubic-bezier(.16, 1, .3, 1) both; }
  .family::before { animation: fade 2.2s .5s both; }
  .family .mbp { animation: in-up 1.3s .35s cubic-bezier(.16, 1, .3, 1) both; }
  .family .lid img { animation: power-on 1.5s .8s ease-out both; }
  .family .ipad { animation: in-left 1.3s .62s cubic-bezier(.16, 1, .3, 1) both; }
  .family .iphone { animation: in-right 1.3s .74s cubic-bezier(.16, 1, .3, 1) both; }
  .now { animation: on-air 2.4s ease-in-out infinite; }

  @supports (animation-timeline: view()) {
    .duo .front { animation: drift-front linear both; animation-timeline: view(); }
    .duo .back { animation: drift-back linear both; animation-timeline: view(); }
    .float img { animation: drift-far linear both; animation-timeline: view(); }
    .mac-pic { perspective: 1700px; perspective-origin: 50% 100%; }
    .mac-pic .lid { transform-origin: 50% 100%; animation: lid-open linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
    .mac-pic .lid img { animation: screen-up linear both; animation-timeline: view(); animation-range: entry 30% cover 48%; }
    .screen { view-timeline: --film; animation: screen-in linear both; animation-timeline: view(); animation-range: entry 0% cover 40%; }
    .seek i { animation: scrub linear both; animation-timeline: --film; animation-range: cover 20% cover 80%; }
    .steps li { view-timeline: --step; }
    .steps li::before, .steps b { animation: step-on linear both; animation-timeline: --step; animation-range: entry 60% cover 45%; }
  }
}
@keyframes in-up { from { opacity: 0; translate: 0 48px; } }
@keyframes in-left { from { opacity: 0; translate: -90px 40px; rotate: -5deg; } }
@keyframes in-right { from { opacity: 0; translate: 90px 40px; rotate: 5deg; } }
@keyframes fade { from { opacity: 0; } }
@keyframes power-on { 0% { opacity: 0; filter: brightness(2.6) saturate(0); } 35% { opacity: 1; } 100% { filter: none; } }
@keyframes on-air { 50% { box-shadow: 0 0 40px 5px rgba(229, 72, 77, .7); } }
@keyframes drift-front { from { translate: 0 110px; } to { translate: 0 -110px; } }
@keyframes drift-back { from { translate: 0 40px; } to { translate: 0 -40px; } }
@keyframes drift-far { from { translate: 0 -50px; } to { translate: 0 50px; } }
@keyframes lid-open { from { transform: rotateX(-74deg); } to { transform: none; } }
@keyframes screen-up { from { opacity: .1; filter: brightness(.35); } }
@keyframes screen-in { from { scale: .9; opacity: .4; } }
@keyframes scrub { from { right: 94%; } to { right: 28%; } }
@keyframes step-on { from { color: var(--text3); } }
@media (prefers-reduced-motion: reduce) { .track { animation: none; } .faq summary svg { transition: none; } }
