/* HTV landing page. Colours are the app's own (lib/core/theme/tokens.dart): the logo's ribbon,
   deep red → coral → amber, on near-black. The product mocks stay dark in light mode, as the app is. */

:root {
  color-scheme: dark light;
  --ground: #08080b;
  --sunken: #0e0e13;
  --surface: #15151c;
  --line: #24242e;
  --ink: #f4f2ef;
  --body: #c9c7cf;
  --dim: #8d8b96;
  --deep: #e52e3e;
  --accent: #f8584b;
  --warm: #f78652;
  --peach: #f9bd8e;
  --accent-text: #ff7a63;
  --grad: linear-gradient(100deg, var(--deep), var(--accent) 45%, var(--warm));
  --radius: 20px;
  --font: "Alan Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #f6f3ef;
    --sunken: #efeae4;
    --surface: #ffffff;
    --line: #e2dcd4;
    --ink: #16141a;
    --body: #3d3a44;
    --dim: #6f6b78;
    --accent-text: #d0322f;
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--body); font: 17px/1.6 var(--font); overflow-x: hidden; }
a { color: var(--accent-text); }
img { display: block; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; background: var(--surface); padding: 8px 12px; border-radius: 8px; z-index: 10; }
.display { font-weight: 800; color: var(--ink); letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.dim { color: var(--dim); }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px;
  font: 600 17px/1 var(--font); text-decoration: none; transition: transform .2s, box-shadow .2s, background .2s; }
.btn svg { width: 20px; height: 20px; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(248, 88, 75, .7); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(248, 88, 75, .8); }
.btn--ghost { color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: var(--surface); }
.btn--small { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; }
.top nav { display: flex; align-items: center; gap: 26px; }
.top nav a:not(.btn) { color: var(--body); text-decoration: none; font-size: 15px; }
.top nav a:not(.btn):hover { color: var(--ink); }

/* Hero */
.hero { padding: clamp(24px, 5vw, 64px) 0 24px; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.9rem); }
.hero h1 .grad { display: block; }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); max-width: 44ch; margin: 24px 0 0; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.meta { margin: 18px 0 0; font-size: 14px; color: var(--dim); }
.meta span + span::before { content: "·"; margin: 0 8px; }
.caption { margin-top: 28px; font-size: 13px; color: var(--dim); }
.hero__copy { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } }

/* Demo art: the app's own idea, a seeded gradient when a title has no picture. */
.art { background: var(--a, #333); }
.art--orchard { --a: radial-gradient(circle at 70% 30%, #f3c0d0 0 22%, transparent 23%), radial-gradient(circle at 30% 26%, #b77aa0 0 18%, transparent 19%), linear-gradient(160deg, #5c2b4a, #b5527a 55%, #2a1020); }
.art--harbor { --a: radial-gradient(circle at 72% 40%, #ffd39b 0 26%, transparent 27%), linear-gradient(170deg, #c45a1c, #e68a3a 50%, #3b1a0c); }
.art--north { --a: radial-gradient(circle at 75% 25%, #9ad1e0 0 20%, transparent 21%), linear-gradient(170deg, #12384a, #2b6f86 60%, #071a22); }
.art--paper { --a: radial-gradient(circle at 35% 35%, #e9b8f5 0 20%, transparent 21%), linear-gradient(160deg, #3a2a7a, #7a5bd0 55%, #1a1238); }
.art--bloom { --a: radial-gradient(circle at 60% 40%, #9be0b8 0 22%, transparent 23%), linear-gradient(165deg, #134a36, #2a8a63 60%, #08241a); }
.art--shift { --a: radial-gradient(circle at 78% 35%, #ffd9a0 0 16%, transparent 17%), linear-gradient(165deg, #1d4a52, #4f8a96 55%, #0c2228); }
.art--quiet { --a: radial-gradient(circle at 40% 30%, #f4e6a4 0 20%, transparent 21%), linear-gradient(165deg, #6a5a1a, #b39a36 55%, #2a220a); }

/* Pictures from site/img (scripts/site_images.mjs). Each fills its slot over the gradient art, which is
   what shows until it loads, or if it was never built. Whatever the slot draws on top stays on top. */
.has-img { position: relative; }
.pic { position: absolute; inset: 0; z-index: 0; }
.pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ph-cards em, .tv-still em { z-index: 1; }

/* Phone */
.phone { justify-self: center; width: min(330px, 80vw); aspect-ratio: 9 / 19; padding: 11px; border-radius: 46px;
  background: #1a1a20; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6), inset 0 0 0 1px #2c2c36; animation: rise 1s .15s both; }
.phone__screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; background: #000; color: #fff; padding: 14px 12px 64px; }
.ph-bill { position: relative; height: 47%; margin: -14px -12px 0; padding: 0 16px 16px; display: flex; flex-direction: column; justify-content: flex-end; }
.ph-bill .art { position: absolute; inset: 0; z-index: 0; mask: linear-gradient(#000 55%, transparent); -webkit-mask: linear-gradient(#000 55%, transparent); animation: drift 14s ease-in-out infinite alternate; }
.ph-bill > *:not(.art) { position: relative; z-index: 1; }
/* A scrim under the title, so it reads on any billboard: clear above the middle, near black at the bottom. */
.ph-bill::after { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, .55) 62%, rgba(0, 0, 0, .9) 85%); }
.ph-bill b { font-size: 25px; font-weight: 800; line-height: 1.05; }
.ph-bill small { font-size: 11px; opacity: .7; margin: 4px 0 10px; }
.badge { align-self: flex-start; font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: rgba(255, 255, 255, .18); margin-bottom: 8px; }
.ph-play { align-self: flex-start; font-size: 12px; font-weight: 700; padding: 7px 18px; border-radius: 999px; background: var(--grad); }
.ph-row { margin: 14px 0 6px; font-size: 12px; font-weight: 700; }
/* Rows run past the right edge, as in the app: the last card is cut by the screen, never followed by
   empty space. Static: a phone row only moves under a finger. */
.ph-cards { display: flex; gap: 7px; margin-right: -12px; }
.ph-cards i { flex: none; border-radius: 9px; position: relative; overflow: hidden; }
.ph-cards--still i { width: 46%; aspect-ratio: 16 / 9; }
.ph-cards--poster i { width: 29%; aspect-ratio: 2 / 3; }
.ph-cards em, .tv-still em { position: absolute; left: 8%; right: 8%; bottom: 8%; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.ph-cards em::after, .tv-still em::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); border-radius: 3px; background: var(--accent); }
.ph-tabs { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: space-around; padding: 10px 6px; border-radius: 22px;
  background: rgba(40, 40, 48, .8); backdrop-filter: blur(10px); font-size: 10px; color: rgba(255, 255, 255, .6); }
.ph-tabs .on { color: #fff; font-weight: 700; }
@keyframes drift { to { transform: scale(1.08) translateX(-3%); } }

/* Platform strip: the official App Store badge where HTV is available, plain words where it is coming. */
.store-badge { display: inline-block; line-height: 0; border-radius: 10px; }
.store-badge img { height: 50px; width: auto; }
.store-badge:focus-visible { outline: 2px solid var(--warm); outline-offset: 3px; }
.platforms { padding: 26px 0; border-block: 1px solid var(--line); background: var(--sunken); }
.platforms__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 36px; font-size: 15px; color: var(--dim); }
.platforms__item { display: inline-flex; align-items: center; gap: 12px; }
.platforms__item b { color: var(--ink); font-weight: 700; }
.platforms__item .store-badge img { height: 40px; }
.platforms__item.is-soon b { font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--sunken { background: var(--sunken); }
.section__title { font-size: clamp(2rem, 4.2vw, 3.4rem); max-width: 18ch; }
.section__lede { max-width: 56ch; font-size: 1.12rem; margin: 20px 0 0; }

/* TV */
.tv { margin: 48px auto 0; max-width: 980px; }
.tv__screen { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: #0a0c12; color: #fff;
  box-shadow: 0 0 0 10px #16161c, 0 0 0 11px #2a2a34, 0 50px 90px -40px rgba(0, 0, 0, .8); font-size: clamp(6px, 1.05vw, 11px); }
.tv__stand { width: 22%; height: 14px; margin: 18px auto 0; border-radius: 0 0 10px 10px; background: linear-gradient(#2a2a34, #16161c); }
.tv-bar { position: absolute; z-index: 3; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: .3em; padding: 3% 4% 2%;
  background: linear-gradient(#0a0c12ee, #0a0c1200); font-size: 1.25em; }
.tv-logo { font-weight: 800; margin-right: 2em; letter-spacing: .05em; }
.tv-logo::first-letter { color: var(--accent); }
.tv-tab { padding: .45em 1.1em; border-radius: 999px; color: rgba(235, 235, 245, .6); position: relative; transition: background .3s, color .3s, transform .3s; }
.tv-tab.sel { color: var(--warm); font-weight: 700; }
.tv-tab.sel::after { content: ""; position: absolute; left: 50%; bottom: -.5em; width: .4em; height: .4em; margin-left: -.2em; border-radius: 50%; background: var(--accent); }
.tv-tab.focus { background: #fff; color: #111114; transform: scale(1.06); }
.tv-icons { margin-left: auto; display: flex; gap: .6em; }
.tv-icons i { width: 2.4em; height: 2.4em; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.tv-page { position: absolute; inset: 0; padding: 12% 4% 0; transition: opacity .5s; }
.tv-page--live { opacity: 0; }
.tv[data-view="live"] .tv-page--movies { opacity: 0; }
.tv[data-view="live"] .tv-page--live { opacity: 1; }
.tv-bill { position: relative; height: 53%; border-radius: 1.6em; overflow: hidden; border: 1px solid rgba(255, 255, 255, .1); }
.tv-bill .art { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; animation: drift 16s ease-in-out infinite alternate; }
.tv-bill .art.on { opacity: 1; }
.tv-bill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .7), transparent 60%), linear-gradient(transparent 40%, rgba(10, 12, 18, .85)); }
.tv-bill__copy { position: absolute; z-index: 1; left: 4%; bottom: 9%; display: flex; flex-direction: column; }
.tv-bill__copy b { font-size: 3.4em; font-weight: 800; line-height: 1; }
.tv-bill__copy small { opacity: .7; margin: .5em 0 1.2em; font-size: 1.1em; }
.tv-btns { display: flex; gap: .7em; align-items: center; }
.tv-play { padding: .7em 2em; border-radius: 999px; background: rgba(255, 255, 255, .16); font-weight: 700; font-size: 1.1em; transition: transform .3s, background .3s; }
.tv-play.focus { background: var(--grad); transform: scale(1.08); box-shadow: 0 .6em 1.6em -.4em rgba(248, 88, 75, .8); }
.tv-round { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .16); }
.tv-count { position: absolute; z-index: 1; right: 4%; bottom: 10%; font-size: 1em; color: rgba(235, 235, 245, .6); text-align: right; }
.tv-segs { display: flex; gap: .3em; margin-top: .5em; }
.tv-segs i { width: 1.4em; height: .3em; border-radius: 1em; background: rgba(255, 255, 255, .28); transition: background .4s; }
.tv-segs i.on { background: var(--accent); }
.tv-row { display: flex; align-items: center; gap: .6em; margin: 1.6em 0 .8em; font-size: 1.35em; font-weight: 700; }
.tv-row i { width: .3em; height: 1em; border-radius: 1em; background: var(--accent); }
.tv-row small { font-size: .7em; color: rgba(235, 235, 245, .35); }
.tv-cards { display: flex; gap: 1.4em; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
/* A TV row: from the safe-area gutter past the screen's right edge, clipped only sideways, with room above
   and below (and before the first card) for the focused card to grow. */
/* The room before the first card is less than the gap between cards, so a card scrolled off to the left
   never leaves a sliver behind. */
.tv-rowview { overflow-x: clip; overflow-y: visible; margin: -1.6em -4.35% -1.6em -1.2em; padding: 1.6em 0 1.6em 1.2em; }
.tv-still { flex: none; width: 22%; aspect-ratio: 16 / 9; border-radius: 1em; position: relative; overflow: hidden; transition: transform .35s, box-shadow .35s; }
.tv-still.focus, .tv-ch.focus { transform: scale(1.1); box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, .9), 0 0 2em -.6em rgba(248, 120, 80, .7); z-index: 2; }
.tv-chips { display: flex; gap: .7em; margin-top: 1em; font-size: 1.1em; }
.tv-chips span { padding: .45em 1.1em; border-radius: 999px; background: rgba(255, 255, 255, .1); }
.tv-chips .on { background: #fff; color: #111; font-weight: 700; }
.tv-ch { flex: none; width: 25%; aspect-ratio: 16 / 9; border-radius: 1em; position: relative; overflow: hidden; display: grid; place-items: center;
  background: linear-gradient(#252a36, #181b24); transition: transform .35s, box-shadow .35s; }
.tv-ch::before { content: "● LIVE"; position: absolute; top: .7em; left: .8em; font-size: .75em; font-weight: 800; letter-spacing: .05em; color: rgba(255, 255, 255, .85); }
.tv-ch::first-letter { color: #ff375f; }
.tv-ch em { position: absolute; left: 0; right: 0; bottom: 0; padding: .55em .9em; font-style: normal; font-weight: 600; background: rgba(0, 0, 0, .35); }
.tv-ch__mark { position: relative; width: 4.2em; height: 4.2em; margin-bottom: 1.6em; display: grid; place-items: center; }
.tv-ch__mark .lg { margin: 0; }
.tv-ch__mark.has-img .lg { visibility: hidden; }
.tv-ch__mark .pic img { object-fit: contain; }
.lg { width: 3.4em; height: 3.4em; margin-bottom: 1.6em; display: grid; place-items: center; border-radius: .4em; font-size: 1.1em; }
.lg--a { background: linear-gradient(135deg, #f8584b, #f78652); }
.lg--b { background: linear-gradient(135deg, #3a7bd5, #6fb1fc); }
.lg--c { background: linear-gradient(135deg, #f7971e, #ffd200); color: #3a2400; }
.lg--d { background: linear-gradient(135deg, #8e2de2, #e94057); }
.lg--e { background: linear-gradient(135deg, #11998e, #38ef7d); color: #04261c; }
.tv-notes { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.tv-notes b { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* QR */
.qr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.qr__demo { position: relative; display: flex; align-items: flex-end; justify-content: center; gap: 0; min-height: 300px; }
.qr-tv { width: 72%; aspect-ratio: 16 / 10; border-radius: 16px; background: #0a0c12; color: #fff; display: grid; place-items: center; align-content: center; gap: 8px;
  box-shadow: 0 0 0 8px #16161c, 0 30px 60px -30px rgba(0, 0, 0, .7); position: relative; }
.qr-tv p { margin: 0; font-weight: 700; font-size: 14px; }
.qr-tv b { font: 700 18px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.qr-code { width: 96px; height: 96px; border-radius: 8px; background: #fff; padding: 4px; }
.qr-photo { display: none; }
.qr-done { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 16px; background: #0a0c12; font-weight: 800; font-size: 22px; color: #7be0a0; opacity: 0; transition: opacity .5s; }
.qr-phone { position: relative; z-index: 1; width: 30%; aspect-ratio: 9 / 18; margin-left: -10%; margin-bottom: -20px; border-radius: 26px; background: #000; color: #fff; padding: 18px 10px;
  display: flex; flex-direction: column; align-items: center; gap: 12px; box-shadow: 0 0 0 6px #1a1a20, 0 30px 50px -20px rgba(0, 0, 0, .7); font-size: 11px; }
.qr-phone p { margin: 0; font-weight: 700; }
.qr-scan { width: 70%; aspect-ratio: 1; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .5); position: relative; overflow: hidden; }
.qr-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 2px; background: var(--accent); top: 0; }
.qr-approve { padding: 7px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; transition: background .3s, transform .3s; }
.qr__demo[data-step="scan"] .qr-scan::after { animation: scan 1.2s ease-in-out infinite alternate; }
.qr__demo[data-step="approve"] .qr-approve { background: var(--grad); transform: scale(1.06); }
.qr__demo[data-step="done"] .qr-done { opacity: 1; }
@keyframes scan { to { top: calc(100% - 2px); } }

/* Steps and cards */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 40px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.steps li { counter-increment: step; padding-top: 20px; border-top: 1px solid var(--line); }
.steps li::before { content: "0" counter(step); display: block; font-weight: 800; font-size: 14px; color: var(--accent-text); margin-bottom: 8px; }
.steps h3, .cards h3 { margin: 0 0 6px; color: var(--ink); font-size: 1.25rem; }
.steps p, .cards p { margin: 0; }
.cards { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cards article { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }

/* Positioning, privacy, FAQ */
.byo h2 { font-size: clamp(1.9rem, 4vw, 3.2rem); max-width: 22ch; }
.byo h2 .dim { display: block; }
.byo p { max-width: 62ch; font-size: 1.1rem; margin: 22px 0 0; }
.privacy ul { list-style: none; padding: 0; margin: 32px 0 20px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 32px; max-width: 900px; }
.privacy b { color: var(--ink); }
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq details:first-of-type { margin-top: 28px; }
.faq summary { cursor: pointer; list-style: none; color: var(--ink); font-weight: 700; font-size: 1.12rem; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; color: var(--accent-text); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 10px 0 0; }

.closing { padding: clamp(64px, 9vw, 112px) 0; text-align: center; background: radial-gradient(60% 80% at 50% 100%, rgba(248, 88, 75, .18), transparent); }
.closing .wrap { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.closing h2 { font-size: clamp(2rem, 4.4vw, 3.6rem); max-width: 16ch; }
.foot { padding: 32px 0 48px; border-top: 1px solid var(--line); font-size: 14px; color: var(--dim); }
.foot p { margin: 4px 0; }
.foot a { color: var(--body); }

/* Tablet */
@media (max-width: 900px) {
  .top nav a:not(.btn) { display: none; }
  .hero__grid, .qr { grid-template-columns: 1fr; }
  .phone { width: min(300px, 76vw); }
  .cards, .tv-notes { grid-template-columns: repeat(2, 1fr); }
  .tv__screen { box-shadow: 0 0 0 6px #16161c, 0 0 0 7px #2a2a34, 0 40px 70px -40px rgba(0, 0, 0, .8); }
}
/* Phone */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .steps, .cards, .tv-notes, .privacy ul { grid-template-columns: 1fr; }
  .tv-icons, .tv-tab[data-tab="browse"] { display: none; }
  .tv-bill .badge, .tv-count { display: none; }
  .hero__actions .btn { width: 100%; justify-content: center; }
  .qr-tv { width: 80%; }
  .qr-phone { width: 36%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* Legal and support pages: a reading column in the same design. */
.prose { max-width: 720px; padding: clamp(24px, 5vw, 56px) 0 80px; }
.prose h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin-bottom: 24px; }
.prose h2 { margin: 40px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
.prose h3 { margin: 28px 0 4px; color: var(--ink); font-size: 1.2rem; }
.prose p, .prose li { color: var(--body); }
.prose strong { color: var(--ink); }
.prose ol, .prose ul { padding-left: 22px; }

/* The sign-in scene on the living-room photo: the photo fills the frame, and the TV and phone screens are
   drawn where the photo has them: centre, size and turn, measured by site_images.mjs into the manifest. */
.qr__demo.has-photo { display: block; min-height: 0; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.qr__demo.has-photo .qr-photo { display: block; position: absolute; inset: 0; }
.qr__demo.has-photo .qr-tv, .qr__demo.has-photo .qr-phone { position: absolute; margin: 0; padding: 0; box-shadow: none; aspect-ratio: auto;
  container-type: size; justify-content: center; }
.qr__demo.has-photo .qr-tv { left: var(--tv-x); top: var(--tv-y); width: var(--tv-w); height: var(--tv-h); border-radius: 3px; gap: 0;
  transform: translate(-50%, -50%) rotate(var(--tv-r, 0deg)); }
/* Drawn onto the photo's own dark screens, not over them: their slight perspective and the phone's tilt
   stay the photo's, and only the content is ours. */
.qr__demo.has-photo .qr-tv, .qr__demo.has-photo .qr-phone, .qr__demo.has-photo .qr-done { background: none; }
.qr__demo.has-photo[data-step="done"] .qr-tv > :not(.qr-done) { opacity: 0; }
.qr__demo.has-photo .qr-tv > * { transition: opacity .4s; }
/* Container units size what is inside a screen; on the screen itself they would measure the page. */
.qr__demo.has-photo .qr-tv > *, .qr__demo.has-photo .qr-phone > * { line-height: 1; margin: 0; }
.qr__demo.has-photo .qr-tv p { font-size: 7cqh; margin-bottom: 5cqh; }
.qr__demo.has-photo .qr-code { width: 48cqh; height: 48cqh; border-radius: 3cqh; padding: 1.5cqh; }
.qr__demo.has-photo .qr-tv b { font-size: 8cqh; margin-top: 5cqh; }
.qr__demo.has-photo .qr-done { border-radius: 3px; font-size: 11cqh; }
.qr__demo.has-photo .qr-phone { left: var(--ph-x); top: var(--ph-y); width: var(--ph-w); height: var(--ph-h); border-radius: 12% / 6%; gap: 0;
  transform: translate(-50%, -50%) rotate(var(--ph-r, 0deg)); }
.qr__demo.has-photo .qr-phone p { font-size: 6cqh; margin-bottom: 7cqh; }
.qr__demo.has-photo .qr-scan { width: 72cqw; border-width: 1px; margin-bottom: 7cqh; }
.qr__demo.has-photo .qr-approve { font-size: 5cqh; padding: 3cqh 7cqw; white-space: nowrap; }
