/* moviecode.app – built on the swissqrinvoice.app layout, dark only like the app. */
:root {
  color-scheme: dark;
  --accent: #a873ff;
  --accent-soft: rgba(168,115,255,.14);
  --green: #12c280;
  --red: #ee5c5c;
  --ink: #f4f3f7;
  --muted: #9d9aa8;
  --line: #262431;
  --bg: #000;
  --band: #121117;
  --bg-soft: #13121a;
  --card: #1c1a24;
  --header-bg: rgba(0,0,0,.72);
  --shadow: 0 30px 70px -30px rgba(0,0,0,.85);
  --shadow-sm: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.7);
  --device: #232129;
  --fade: #16131f;
  --icon-filter: drop-shadow(0 0 34px rgba(168,115,255,.35)) drop-shadow(0 0 8px rgba(168,115,255,.2));
  --radius: 20px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Helvetica Neue", "Inter", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.accent { color: var(--accent); }
.center { text-align: center; }

/* Nav */
header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
}
nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; min-width: 0; gap: 10px; font-weight: 650; font-size: 15px; line-height: 1.1; letter-spacing: -0.01em; }
.logo { width: 26px; height: 26px; display: block; flex-shrink: 0; border-radius: 22.5%; overflow: hidden; }
.logo img { width: 100%; height: 100%; display: block; }
.nav-links { display: flex; gap: 26px; font-size: 13.5px; color: var(--muted); white-space: nowrap; }
.nav-links a { transition: color .15s ease; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); }
.nav-toggle { display: none; appearance: none; border: 0; background: transparent; color: var(--muted); width: 34px; height: 34px; border-radius: 9px; cursor: pointer; place-items: center; }
.nav-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.nav-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-toggle:hover { color: var(--ink); }
@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .nav-links { position: absolute; left: 0; right: 0; top: 60px; flex-direction: column; gap: 0; padding: 8px 24px 16px;
    background: rgba(0,0,0,.94); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 600; color: var(--ink); display: none; }
  .nav-links.is-open { display: flex; animation: rise .25s ease-out; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); }
  .nav-links a:last-child { border-bottom: 0; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--accent); color: #fff; border: 1px solid transparent;
  padding: 11px 20px; border-radius: 12px; font-weight: 600; font-size: 14px; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, #000 14%); }
.btn:active { transform: scale(.98); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--card); border-color: color-mix(in srgb, var(--line) 50%, var(--ink) 50%); }
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-actions > .btn { min-height: 34px; padding: 0 16px; border-radius: 9px; font-size: 12.5px; font-weight: 750; }
.btn:focus-visible, .appstore:focus-visible, .shot-open:focus-visible, summary:focus-visible, .guess-options button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 3px;
}

/* Hero */
.hero { padding: 76px 0 40px; text-align: center; overflow-x: clip; background: linear-gradient(180deg, var(--fade), var(--bg) 85%); }
h1, h2 { font-family: var(--font-display); }
.app-icon { display: block; border-radius: 22.5%; filter: var(--icon-filter); }
.hero .app-icon { width: 124px; height: 124px; margin: 0 auto 18px; }
.hero h1 { font-size: clamp(40px, 7.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 650; text-wrap: balance; }
/* Lead in two sentences, one per line on wider screens */
.hero .lead span { display: block; text-wrap: balance; }
.hero .lead { font-size: clamp(16px, 2.1vw, 19px); color: var(--muted); max-width: 700px; margin: 26px auto 32px; text-wrap: balance; }
.cta-row { display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.cta-row .btn { min-height: 50px; }
/* App Store badge and "Try it!" side by side at the same width */
.cta-row > .appstore, .cta-row > .btn { width: 172px; justify-content: center; }
.trust { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font-size: 13px; color: var(--muted); font-weight: 500; }
.trust li { display: flex; align-items: flex-start; gap: 7px; }
.trust svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* "Try it!": same width as the App Store badge. A streak in the colours of the
   headline runs around the border like a snake. */
@property --snake { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.btn-try { position: relative; isolation: isolate; }
.btn-try::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--snake), transparent 0deg 190deg, #8b7bff 240deg, #c86bff 285deg, #ff5f9e 325deg, #ff9a4d 358deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: snake 3.5s linear infinite;
}
/* On hover the whole border lights up in those colours, still turning */
.btn-try:hover { border-color: transparent; }
.btn-try:hover::before { background: conic-gradient(from var(--snake), #8b7bff, #c86bff, #ff5f9e, #ff9a4d, #8b7bff); }
@keyframes snake { to { --snake: 360deg; } }

/* Headline accent in movie-code colours, as on benwie.ch/moviecode */
.hero h1 .accent { background: linear-gradient(90deg, #8b7bff, #c86bff 30%, #ff5f9e 60%, #ff9a4d); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Hero stage: iPhone in front, the open Duo behind it, the iPad at the back (as in the ad) */
.hero-stage { position: relative; isolation: isolate; display: flex; align-items: flex-end; justify-content: center; max-width: 1040px; margin: 40px auto 24px; padding: 64px 0; }
/* Movie-code colours glowing behind the devices */
.hero-stage::before {
  content: ""; position: absolute; z-index: -1; inset: 0 -6%; border-radius: 40px; filter: blur(80px); opacity: .45;
  background:
    radial-gradient(40% 55% at 22% 60%, #7c3aed, transparent 70%),
    radial-gradient(35% 50% at 50% 35%, #e4387a, transparent 70%),
    radial-gradient(40% 55% at 78% 55%, #3d6bff, transparent 70%);
}
.hero-stage > * { flex-shrink: 0; }
.hero-phone { width: 17%; z-index: 3; margin-right: -4%; }
.hero-duo { width: 31%; z-index: 2; margin-right: -5%; }
.hero-tablet { width: 40%; z-index: 1; }

/* Devices */
.phone, .tablet, .tv { display: block; background: var(--device); box-shadow: var(--shadow), 0 0 0 1px rgba(255,255,255,.06) inset, 0 0 0 1px rgba(0,0,0,.25); }
.phone { padding: 7px; border-radius: 40px; }
.phone img { display: block; width: 100%; height: auto; border-radius: 33px; }
.tablet { padding: 10px; border-radius: 34px; }
.tablet img { display: block; width: 100%; height: auto; border-radius: 24px; }
/* Television: thin black bezel with a metal rim, the screen's colours glowing on
   the wall behind it, and a slim stand like a living-room set */
.tv-set { position: relative; isolation: isolate; }
.tv-set::before {
  content: ""; position: absolute; z-index: -1; inset: 4% 6% 18%;
  background: var(--screen) center / cover; filter: blur(80px) saturate(1.5); opacity: .6;
}
.tv { padding: .9%; border-radius: 12px; background: #050506;
  box-shadow: 0 0 0 1.5px #3a3940, 0 0 0 3px #121216, 0 50px 90px -40px rgba(0,0,0,.95); }
.tv img { display: block; width: 100%; height: auto; border-radius: 3px; }
.tv-neck { width: 9%; height: clamp(22px, 4vw, 44px); margin: 0 auto; background: linear-gradient(90deg, #2a2a30, #4a4a52 45%, #2a2a30); }
.tv-foot { width: 34%; height: clamp(7px, 1vw, 11px); margin: 0 auto; border-radius: 3px 3px 6px 6px;
  background: linear-gradient(#55545c, #25252b); box-shadow: 0 18px 30px -8px rgba(0,0,0,.9); }
.hero-phone.phone { padding: 5px; border-radius: 28px; }
.hero-phone.phone img { border-radius: 23px; }
.hero-tablet.tablet { padding: 7px; border-radius: 24px; }
.hero-tablet.tablet img { border-radius: 17px; }
.hero-duo.tablet { padding: 7px; border-radius: 22px; }
.hero-duo.tablet img { border-radius: 15px; }
/* Devices in front cast their shadow onto the ones behind them */
.hero-phone.phone, .hero-duo.tablet { box-shadow: 0 0 0 1px rgba(0,0,0,.25), 18px 30px 50px -10px rgba(0,0,0,.85), 6px 10px 18px -6px rgba(0,0,0,.8); }

/* Sections */
section { padding: 96px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.kicker { color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.section-head h2, .final h2 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.08; letter-spacing: -0.035em; font-weight: 650; text-wrap: balance; }
.section-head > p:not(.kicker) { color: var(--muted); margin-top: 16px; font-size: 17px; text-wrap: balance; }

/* Try it: the code edge to edge like in the app, answers in the column below */
.guess-code { height: clamp(200px, 30vw, 460px); background-color: #000; }
.guess-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 920px; margin: 28px auto 0; }
.guess-options button {
  position: relative; appearance: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 52px 16px 18px; min-height: 72px;
  font-weight: 600; font-size: 16px; line-height: 1.3; display: flex; align-items: center;
  transition: border-color .2s ease, background .2s ease, box-shadow .3s ease, opacity .3s ease, transform .15s ease;
}
.guess-options button > span:not(.mark) { display: flex; flex-direction: column; gap: 3px; }
.guess-options button small { color: var(--muted); font-weight: 500; font-size: 13px; }
.guess-options button:hover:not(:disabled) { border-color: color-mix(in srgb, var(--accent) 60%, var(--line)); }
.guess-options button:active:not(:disabled) { transform: scale(.98); }
.guess-options button:disabled { cursor: default; }
.guess-options button:disabled:not(.is-right):not(.is-wrong) { opacity: .45; }
.guess-options button.is-right { border-color: var(--green); background: color-mix(in srgb, var(--green) 16%, var(--card)); animation: glow .9s ease-out; }
.guess-options button.is-wrong { border-color: var(--red); background: color-mix(in srgb, var(--red) 14%, var(--card)); animation: shake .4s ease; }
@keyframes glow { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--green) 55%, transparent); } 100% { box-shadow: 0 0 0 14px transparent; } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ✓ / ✗ as in the app, popping in on the scored answer */
.mark { position: absolute; right: 16px; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; display: grid; place-items: center; opacity: 0; transform: scale(.4); }
.mark svg { display: none; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.is-right .mark, .is-wrong .mark { opacity: 1; transform: scale(1); animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
.is-right .mark { background: var(--green); }
.is-wrong .mark { background: var(--red); }
.is-right .mark-yes, .is-wrong .mark-no { display: block; }
@keyframes pop { from { opacity: 0; transform: scale(.4); } }

/* The next code sweeps in from the left, like film through a projector */
.guess-round.is-entering .guess-code { animation: sweep .8s cubic-bezier(.65,0,.35,1); }
.guess-round.is-entering .guess-options { animation: rise .5s .25s ease-out both; }
@keyframes sweep { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Progress: one strip per code, green for a hit, red for a miss (as in the app's duel result) */
.guess-strips { display: flex; justify-content: center; gap: 6px; margin: 28px auto 0; }
.guess-strips i { width: 34px; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s ease; }
.guess-strips i.is-current { background: color-mix(in srgb, var(--accent) 70%, var(--line)); }
.guess-strips i.is-hit { background: var(--green); }
.guess-strips i.is-miss { background: var(--red); }

/* After the last code: all six codes side by side, the score, then the download */
.guess-end { text-align: center; }
.guess-end:not([hidden]) { animation: rise .5s ease-out; }
.guess-end-code { display: flex; height: clamp(120px, 16vw, 220px); }
.guess-end-code i { flex: 1; background-size: 100% 100%; }
.guess-end-code i + i { margin-left: 4px; }
.guess-end:not([hidden]) .guess-end-code { animation: sweep 1s cubic-bezier(.65,0,.35,1); }
.guess-score { margin-top: 36px; font-family: var(--font-display); font-size: clamp(22px, 3vw, 30px); font-weight: 650; color: var(--muted); letter-spacing: -0.02em; }
.guess-score b { display: block; font-size: clamp(72px, 9vw, 112px); line-height: 1; letter-spacing: -0.05em; background: linear-gradient(180deg, #fff, var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.guess-verdict { font-family: var(--font-display); font-size: clamp(22px, 2.6vw, 28px); font-weight: 650; letter-spacing: -0.02em; margin: 14px 0 28px; }
.guess-end .hint { margin-top: 16px; }
.guess-end .cta-row > .btn { width: 172px; min-height: 50px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hint { font-size: 13px; color: var(--muted); margin-top: 18px; }

/* Four modes side by side on wide screens, two by two on phones */
@media (max-width: 1000px) and (min-width: 761px) { .modes { grid-template-columns: repeat(2, 1fr); } }

/* Sections alternate between black and a dark band, edge to edge, as on apple.com */
.band { background: var(--band); }

/* How it works: three steps in play order */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 56px); max-width: 980px; margin: 0 auto; text-align: center; }
.step .phone { max-width: 280px; margin: 0 auto; }
.step-number { display: inline-grid; place-items: center; width: 30px; height: 30px; margin: 30px 0 12px; border-radius: 50%; border: 1px solid var(--line); color: var(--accent); font-size: 14px; font-weight: 700; }
.step h3 { font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.step p { color: var(--muted); font-size: 15.5px; margin-top: 4px; }

/* Game modes: one tile per mode, each with its colour from the app */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 1120px; margin: 0 auto; }
/* Square cards in the look of the app's mode picker: tinted glass, a light rim
   fading from the top, title, the mode's line in its colour, then the symbol */
.mode {
  aspect-ratio: 1; display: flex; flex-direction: column; padding: 24px; border-radius: 24px; border: 1px solid transparent;
  background:
    linear-gradient(color-mix(in srgb, var(--tint) 17%, #24252b), color-mix(in srgb, var(--tint) 11%, #1d1e23)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.32), rgba(255,255,255,.04)) border-box;
  transition: transform .2s ease;
}
.mode:hover { transform: translateY(-3px); }
.mode h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mode-line { color: var(--tint); font-size: 17px; font-weight: 550; margin-top: 2px; }
.mode-text { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin-top: 8px; }
.mode-big { margin-top: auto; font-family: var(--font-display); font-size: clamp(48px, 5vw, 64px); line-height: 1.2; height: 1.2em; font-weight: 700; letter-spacing: -0.05em;
  display: flex; align-items: center; color: var(--tint); filter: drop-shadow(0 0 16px color-mix(in srgb, var(--tint) 45%, transparent)); }
.hearts { display: flex; gap: .08em; height: 1em; align-items: center; }
.hearts svg { width: .62em; height: .58em; fill: var(--tint); }
/* Every mode's symbol glows in its colour; the infinity sign sits a little larger to match the digits */
.infinity { display: inline-block; font-size: 1.3em; line-height: .77; }


/* Device tabs: the icons switch the example below, as on apple.com */
.device-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px clamp(12px, 3vw, 36px); margin: 0 auto 56px; }
.device-row button {
  appearance: none; border: 0; background: transparent; font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 10px 14px 12px; border-radius: 16px;
  color: var(--muted); font-size: 14px; font-weight: 600; transition: color .15s ease, background .15s ease;
}
.device-row svg { width: 44px; height: 44px; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.device-row button:hover { color: var(--ink); }
.device-row button[aria-selected="true"] { color: var(--ink); background: var(--card); }
.device-row button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Device and text side by side, alternating sides from tab to tab. The pair is
   centred with a fixed gap, so text and device are equally far apart on every
   device. Every device sits in a stage of the same height. */
.device-panel { --stage: clamp(300px, 34vw, 440px); --gap: 64px; margin: 0 auto; display: flex; justify-content: center; align-items: center; gap: var(--gap); }
.device-panel[hidden] { display: none; }
.device-panel.flip .device-stage { order: 2; }
.device-panel figcaption { flex: 0 0 340px; text-align: left; }
/* Text next to the device is aligned to the device, so the visible gap stays the same */
.device-panel.flip figcaption { text-align: right; }
.device-panel.flip figcaption p { margin-left: auto; }
.device-stage { flex: 0 1 auto; min-width: 0; height: var(--stage); display: flex; align-items: center; justify-content: center; }
.device-stage > .shot-open { height: 100%; width: auto; }
.device-stage > .shot-open img { height: 100%; width: auto; }
.device-stage .tv-set { width: min(560px, calc((var(--stage) - 48px) * 16 / 9)); }
.device-panel h3 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -0.025em; font-weight: 650; }
.device-panel figcaption p { color: var(--muted); font-size: 17px; margin-top: 12px; max-width: 380px; }

/* Home FAQ */
.faq-wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; font-size: clamp(17px, 2vw, 20px); font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 26px; font-weight: 300; line-height: 1; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); font-size: 16px; padding: 0 0 22px; max-width: 680px; }
.text-link { color: var(--accent); }
.text-link:hover { text-decoration: underline; }

.tablet.duo-shot { padding: 8px; border-radius: 26px; }
.duo-shot img { border-radius: 19px; }
.shot-open { display: block; width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; font: inherit; color: inherit; text-align: inherit; }
.phone.shot-open { background: var(--device); padding: 7px; }
.tablet.shot-open { background: var(--device); padding: 10px; }
.tv.shot-open { background: #050506; }

/* Final CTA */
.final { text-align: center; padding: 112px 0; background: radial-gradient(60% 80% at 50% 0%, rgba(168,115,255,.2), transparent 70%), var(--bg); }
.final .app-icon { width: 128px; height: 128px; margin: 0 auto 18px; }
.final p:not(.hint) { color: var(--muted); font-size: 17px; margin: 14px 0 28px; }

/* Scroll reveal (only when JS is active) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  section { padding: 72px 0; }
  .hero { padding-top: 52px; }
  .hero-stage { margin-left: -12px; margin-right: -12px; }
  .hero-phone.phone { padding: 3px; border-radius: 16px; }
  .hero-phone.phone img { border-radius: 13px; }
  .hero-duo.tablet, .hero-tablet.tablet { padding: 4px; border-radius: 14px; }
  .hero-duo.tablet img, .hero-tablet.tablet img { border-radius: 10px; }
  .guess-options { grid-template-columns: 1fr; }
  /* How it works on phones: smaller phones, so a step fits on screen with its text */
  .steps { grid-template-columns: 1fr; max-width: 280px; gap: 48px; }
  .step .phone { max-width: 190px; }
  .step .phone.shot-open { padding: 5px; border-radius: 30px; }
  .step .phone img { border-radius: 25px; }
  .step-number { margin-top: 20px; }
  .text-steps { max-width: 420px; gap: 32px; }
  .modes { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .device-panel { flex-direction: column; gap: 32px; --stage: 340px; }
  .device-panel.flip .device-stage { order: 0; }
  .device-panel figcaption { flex: none; }
  .device-stage { width: 100%; height: auto; max-height: var(--stage); }
  .device-stage .tv-set { width: 100%; }
  .device-stage > .shot-open { height: var(--stage); }
  .device-panel figcaption, .device-panel.flip figcaption { text-align: center; }
  .device-panel figcaption p { margin-left: auto; margin-right: auto; }
  /* Phones: the four device tabs stay in one row */
  .device-row { flex-wrap: nowrap; gap: 2px; margin-bottom: 40px; }
  .device-row button { flex: 1 1 0; min-width: 0; padding: 8px 4px 10px; gap: 6px; font-size: 12px; white-space: nowrap; }
  .device-row svg { width: 32px; height: 32px; }
  /* Phones: the cards keep their look but grow with their text instead of staying square */
  .mode { aspect-ratio: auto; min-height: 220px; padding: 18px; }
  .mode-big { padding-top: 14px; }
  .mode-text { font-size: 13.5px; }
}

/* Footer */
footer { border-top: 1px solid var(--line); padding: 40px 0; color: var(--muted); font-size: 13px; background: var(--bg); }
main.home + footer { border-top: 0; }
main.home + footer .foot-row > .appstore { display: none; }
.foot-row { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 18px 28px; }
.foot-main { display: flex; flex-direction: column; gap: 9px; }
.footer-brand { font-size: 14px; }
.footer-logo { width: 22px; height: 22px; }
.made-line { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; gap: 5px; }
.heart-icon, .swiss-icon { display: block; }
.foot-links { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; }
.foot-links a:hover, .foot-links a[aria-current] { color: var(--ink); }
@media (max-width: 760px) {
  footer { text-align: center; }
  .foot-row, .foot-main { align-items: center; justify-content: center; gap: 10px; }
  .foot-row > .appstore { display: none; }
  .made-line { font-size: 12px; justify-content: center; }
  .foot-links { justify-content: center; }
}

/* App Store badge */
.appstore {
  display: inline-flex; align-items: center; gap: 11px; min-height: 50px;
  background: var(--ink); color: var(--bg);
  padding: 9px 18px 9px 16px; border-radius: 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.10) inset;
  transition: background .15s ease;
}
.appstore:hover { background: color-mix(in srgb, var(--ink) 92%, var(--accent) 8%); }
.appstore svg { width: 26px; height: 26px; }
.appstore .t { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.appstore .t small { font-size: 10px; opacity: .8; }
.appstore .t b { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 28px; background: rgba(0,0,0,.82); }
.lightbox[hidden] { display: none; }
.lightbox-frame { margin: 0; border-radius: 14px; overflow: hidden; background: var(--card); box-shadow: 0 28px 90px rgba(0,0,0,.45); max-width: 96vw; }
.lightbox-frame img { display: block; width: auto; max-width: 96vw; height: auto; max-height: calc(100vh - 116px); object-fit: contain; background: var(--bg); }
.lightbox-frame figcaption { padding: 11px 14px; color: var(--muted); font-size: 13px; font-weight: 650; }
.lightbox-close { position: fixed; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.22); border-radius: 10px; background: rgba(16,16,18,.82); color: #fff; cursor: pointer; font-size: 0; }
.lightbox-close::before, .lightbox-close::after { content: ""; position: absolute; left: 11px; top: 18px; width: 16px; height: 2px; border-radius: 999px; background: currentColor; }
.lightbox-close::before { transform: rotate(45deg); }
.lightbox-close::after { transform: rotate(-45deg); }

/* Subpages share the home page's building blocks: a hero, bands, the FAQ */
.page-hero .app-icon { width: 112px; height: 112px; margin: 0 auto 18px; }
.page-hero .kicker { margin-bottom: 6px; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.page-hero .lead { margin-bottom: 0; }
.text-steps { grid-template-columns: repeat(4, 1fr); max-width: 1080px; }
/* Quick start: the same numbered circles as on the home page, larger */
.text-steps .step-number { width: 56px; height: 56px; margin: 0 0 16px; font-size: 24px; }
.release-notes { list-style: none; max-width: 640px; margin: 0 auto; display: grid; gap: 12px; }
.release-notes li { position: relative; padding-left: 26px; font-size: 17px; color: var(--muted); }
.release-notes li::before { content: ""; position: absolute; left: 4px; top: .62em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.contact-text { max-width: 620px; margin-left: auto !important; margin-right: auto !important; }
.contact-text span { display: block; text-wrap: balance; }
.contact-text span + span { margin-top: 6px; }
.contact-btn { min-height: 50px; padding: 0 26px; font-size: 16px; }
@media (max-width: 960px) { .text-steps { grid-template-columns: repeat(2, 1fr); } }

/* 404: a movie code that never resolves */
.not-found { min-height: calc(100vh - 160px); display: grid; align-content: center; }
.not-found-code { height: 120px; max-width: 520px; margin: 0 auto 40px; border-radius: 6px; opacity: .7;
  background: repeating-linear-gradient(90deg, #1a1924 0 6px, #2a2838 6px 9px, #121119 9px 15px, #3a3550 15px 17px);
  animation: static-drift 2.5s linear infinite; }
@keyframes static-drift { to { background-position: 170px 0; } }
.not-found h1 { font-size: clamp(36px, 6vw, 60px); }

/* Subpages: support and legal */
.legal-page { padding: 72px 0 112px; background: linear-gradient(180deg, var(--fade), var(--bg) 460px); }
.legal-wrap { max-width: 760px; }
.eyebrow { text-align: center; color: var(--accent); font-size: 15px; font-weight: 600; margin-bottom: 10px; }
.legal-page h1 { text-align: center; font-size: clamp(36px, 5.4vw, 58px); line-height: 1.05; letter-spacing: -0.04em; font-weight: 650; margin-bottom: 40px; }
/* Legal text as on Apple's legal pages: plain sections divided by thin lines, no cards */
.legal-block { padding: 30px 0; border-top: 1px solid var(--line); }
.legal-block:last-child { border-bottom: 1px solid var(--line); }
.legal-block h2 { font-size: 22px; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.legal-block p { color: var(--muted); font-size: 17px; margin-top: 8px; }
.legal-block p:first-of-type { margin-top: 0; }
.legal-block strong { color: var(--ink); }
.legal-block a { color: var(--ink); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 60%, transparent); text-underline-offset: 3px; }
.legal-block ul, .legal-block ol { color: var(--muted); font-size: 15px; padding-left: 22px; margin-top: 8px; }
.legal-block li + li { margin-top: 6px; }
.muted { color: var(--muted); }
.support-heading .app-icon { width: 112px; height: 112px; margin: 0 auto 18px; }
.support-page h1 { margin-bottom: 0; }
.support-intro { margin: 16px auto 32px; max-width: 600px; text-align: center; font-size: 17px; }
.release + .release { margin-top: 20px; }
.release { margin-top: 16px; }
.release h3 { font-size: 15px; font-weight: 650; margin-bottom: 4px; }
.release time { margin-left: 8px; color: var(--muted); font-weight: 400; font-size: 13px; }
.support-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.support-faq details:last-child { border-bottom: 0; padding-bottom: 0; }
.support-faq summary { cursor: pointer; font-size: 15px; font-weight: 600; }
.support-faq details p { padding: 4px 0 8px; }
.support-page h2[id] { scroll-margin-top: 100px; }


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