/* Haun Player — haun.app
   A dark room where the screens are the only light. Each screen throws its own colour
   onto the page; the hero screen settles flat as you scroll and the feature screen
   changes with the story. Nothing else moves. */

@property --glow { syntax: "<color>"; inherits: true; initial-value: rgb(255 106 61); }

:root {
  --bg: #000;
  --raise: #0f0e11;
  --panel: #161519;
  --line: rgba(245, 245, 247, 0.12);
  --text: #f5f5f7;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --ember: #ff6a3d;
  --flame: #e8283c;
  --gutter: clamp(20px, 5vw, 64px);
  --wide: 1200px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 4px; border-radius: 8px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--text); color: #000; padding: 8px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }
.wrap { width: min(var(--wide), 100% - 2 * var(--gutter)); margin-inline: auto; }

h1, h2, h3 { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif; font-weight: 700; text-wrap: balance; }
h2 { font-size: clamp(2.5rem, 6vw, 4.75rem); line-height: 1.04; letter-spacing: -0.045em; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; font-weight: 600; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.42; color: var(--muted); letter-spacing: -0.018em; font-weight: 500; }
.intro { text-align: center; max-width: 46rem; margin-inline: auto; }
.intro .lead { margin-top: 22px; }

/* ---------------- Header ---------------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 50; border-bottom: 1px solid transparent; transition: background 0.4s var(--ease), border-color 0.4s var(--ease); }
.site-header.solid { background: rgba(0, 0, 0, 0.72); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 1rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand img { width: 26px; height: 26px; border-radius: 6px; }
.nav { display: flex; gap: 28px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.85rem; transition: color 0.2s; }
.nav a:hover { color: var(--text); }
.lang { display: inline-flex; gap: 2px; font-size: 0.8rem; }
.lang span, .lang a { padding: 3px 9px; border-radius: 999px; text-decoration: none; color: var(--muted); }
.lang span { background: rgba(255, 255, 255, 0.14); color: var(--text); }
.lang a:hover { color: var(--text); }
.get { text-decoration: none; font-size: 0.8rem; font-weight: 600; padding: 5px 13px; border-radius: 999px; background: var(--text); color: #000; white-space: nowrap; }
.menu-button { display: none; margin-left: auto; background: none; border: 0; font-size: 0.95rem; padding: 8px 4px; cursor: pointer; }
@media (max-width: 960px) {
  .menu-button { display: inline-block; }
  .nav { display: none; position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; gap: 0; padding: 6px var(--gutter) 18px; background: rgba(0, 0, 0, 0.94); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { font-size: 1.15rem; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
}
@media (max-width: 420px) { .get { display: none; } }

/* ---------------- Buttons ---------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 999px; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.012em; text-decoration: none; transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s; }
.button:hover { transform: translateY(-1px); }
.button.primary { background: linear-gradient(135deg, var(--ember), var(--flame)); color: #fff; box-shadow: 0 16px 40px -16px rgba(255, 90, 50, 0.75); }
.button.primary:hover { box-shadow: 0 20px 50px -14px rgba(255, 90, 50, 0.85); }
.button.ghost { color: var(--text); background: rgba(255, 255, 255, 0.08); }
.button.ghost:hover { background: rgba(255, 255, 255, 0.14); }
.button svg { width: 19px; height: 19px; margin-top: -2px; }

/* ---------------- Device frames ----------------
   Each frame is a size container; bezels and corners scale with it. */
.device { position: relative; container-type: inline-size; width: 100%; }
.device .bezel { position: relative; background: #050506; }
.device .screen { position: relative; overflow: hidden; background: #000; }
.device .screen img { width: 100%; }
.device picture { display: contents; }

.device.tv .bezel { padding: 0.6cqw; border-radius: 1.1cqw; background: linear-gradient(180deg, #232226, #0a0a0c 70%); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 4cqw 9cqw -3cqw rgba(0, 0, 0, 0.9); }
.device.tv .screen { border-radius: 0.35cqw; }

.device.ipad .bezel { padding: 3cqw; border-radius: 6.4cqw; box-shadow: 0 0 0 0.5cqw #2b2b30, 0 0 0 0.62cqw #4a4a50, 0 6cqw 14cqw -5cqw #000; }
.device.ipad .screen { border-radius: 3.5cqw; }

.device.iphone .bezel { padding: 3.3cqw; border-radius: 17cqw; box-shadow: 0 0 0 0.9cqw #26262a, 0 0 0 1.15cqw #55555b, 0 8cqw 18cqw -6cqw #000; }
.device.iphone .screen { border-radius: 13.6cqw; }
.device.iphone .island { position: absolute; top: 2.3cqw; left: 50%; width: 26.5cqw; height: 7.8cqw; transform: translateX(-50%); border-radius: 99px; background: #000; }
.device.iphone.land .bezel { padding: 1.52cqw; border-radius: 7.8cqw; box-shadow: 0 0 0 0.42cqw #26262a, 0 0 0 0.53cqw #55555b, 0 4cqw 10cqw -4cqw #000; }
.device.iphone.land .screen { border-radius: 6.3cqw; }
.device.iphone.land .island { top: 50%; left: 1.07cqw; width: 3.6cqw; height: 12.2cqw; transform: translateY(-50%); }

.device.window img { width: 100%; filter: drop-shadow(0 2cqw 4cqw rgba(0, 0, 0, 0.8)); }
.device.mac .bezel { padding: 1.5cqw 1.5cqw 2.1cqw; border-radius: 2.4cqw 2.4cqw 0.6cqw 0.6cqw; box-shadow: 0 0 0 0.18cqw #3a3a40, 0 4cqw 9cqw -3cqw #000; }
.device.mac .screen { border-radius: 0.6cqw; background: radial-gradient(120% 90% at 30% 10%, #2a1d26, #0b0a10 70%); }
.device.mac .base { display: block; height: 2.2cqw; margin: 0 -6.5%; border-radius: 0 0 50% 50% / 0 0 100% 100%; background: linear-gradient(180deg, #d4d4d9, #8d8d94 55%, #4d4d53); }

/* ---------------- Hero ---------------- */
.hero { position: relative; padding: clamp(104px, 13vh, 150px) 0 clamp(40px, 6vw, 90px); text-align: center; }
.hero-copy .icon { width: 92px; height: 92px; margin: 0 auto 24px; border-radius: 21px; box-shadow: 0 24px 60px -18px rgba(255, 90, 50, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.hero h1 { margin: 0; }
.hero h1 .wordmark { display: block; font-size: clamp(3.5rem, min(10vw, 14vh), 8rem); line-height: 0.95; letter-spacing: -0.06em; background: linear-gradient(180deg, #fff 35%, #b9b4b2); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 0.06em; }
.hero h1 .tagline { display: block; margin: 14px auto 0; max-width: 22em; font-size: clamp(1.5rem, min(3.2vw, 4.6vh), 2.5rem); line-height: 1.12; letter-spacing: -0.035em; font-weight: 600; color: var(--text); }
.hero .sub { margin: 18px auto 0; max-width: 31em; color: var(--muted); font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.45; }
.hero .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero .deal { display: inline-flex; align-items: center; gap: 10px; margin-top: 26px; padding: 9px 18px 9px 12px; border-radius: 999px; background: rgba(255, 106, 61, 0.12); box-shadow: inset 0 0 0 1px rgba(255, 106, 61, 0.35); color: var(--text); font-size: 1rem; font-weight: 500; text-align: left; }
.hero .deal svg, .included li svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ember); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.hero .note { margin-top: 12px; font-size: 0.9rem; color: var(--faint); }

.hero-stage { position: relative; width: min(1180px, 100% - 2 * var(--gutter)); margin: clamp(44px, 6vh, 72px) auto 0; perspective: 2000px; --p: 0; }
.hero-stage .light { position: absolute; inset: 0 -4% -6%; background: radial-gradient(50% 50% at 50% 55%, var(--glow), transparent 72%); filter: blur(80px); opacity: calc(0.28 + var(--p) * 0.42); pointer-events: none; }
.hero-stage .device { transform-origin: 50% 100%; transform: rotateX(calc((1 - var(--p)) * 24deg)) scale(calc(0.86 + var(--p) * 0.14)); will-change: transform; }
.hero-stage::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -70px; height: 90px; background: radial-gradient(closest-side, var(--glow), transparent); opacity: 0.35; filter: blur(30px); }

/* One moment on arrival: the copy rises in, then the screen. */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
.hero-copy > * { animation: rise 0.9s var(--ease) both; }
.hero-copy > :nth-child(2) { animation-delay: 0.08s; }
.hero-copy > :nth-child(3) { animation-delay: 0.16s; }
.hero-copy > :nth-child(4) { animation-delay: 0.22s; }
.hero-copy > :nth-child(n+5) { animation-delay: 0.3s; }
.hero-stage { animation: rise 1.2s 0.35s var(--ease) both; }

/* ---------------- Story: one screen, many features ---------------- */
.story { padding: clamp(110px, 12vw, 170px) 0 clamp(60px, 8vw, 120px); }
.story .intro { margin-bottom: clamp(40px, 6vw, 80px); }
.story-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); }
.steps { padding-bottom: 6vh; }
.step { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.step h3 { font-size: clamp(2rem, 3.3vw, 3rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 700; }
.step p { color: var(--muted); font-size: clamp(1.1rem, 1.35vw, 1.25rem); line-height: 1.5; max-width: 29rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 4px 0 0; max-width: 30rem; }
.chips li { font-size: 0.88rem; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); color: #d2d2d7; }
.inline-device { display: none; }

.stage { position: sticky; top: 12vh; height: 76vh; align-self: start; display: grid; place-items: center; transition: --glow 1s var(--ease); }
.stage-light { position: absolute; inset: 10% 0; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 70%); filter: blur(70px); opacity: 0.55; }
.stage-devices { position: relative; display: grid; place-items: center; width: 100%; height: 100%; }
.stage .device { grid-area: 1 / 1; opacity: 0; transform: translateY(28px) scale(0.95); transition: opacity 0.7s var(--ease), transform 1s var(--ease); }
.stage .device[data-shown] { opacity: 1; transform: none; }
.stage .device.tv, .stage .device.land { width: 100%; }
.stage .device.ipad { width: min(80%, 53vh); }
.stage .device.iphone:not(.land) { width: min(46%, 33vh); }

@media (min-width: 961px) {
  .step { opacity: 0.25; transition: opacity 0.6s var(--ease); }
  .step.active { opacity: 1; }
}
@media (max-width: 960px) {
  .story-grid { grid-template-columns: 1fr; }
  .stage { display: none; }
  .step { min-height: 0; margin-top: 96px; }
  .inline-device { display: block; margin-top: 26px; }
  .inline-device .device.ipad { width: min(78%, 420px); margin-inline: auto; }
  .inline-device .device.iphone:not(.land) { width: min(58%, 300px); margin-inline: auto; }
}

/* ---------------- Everywhere ---------------- */
.everywhere { padding: clamp(110px, 13vw, 190px) 0; background: radial-gradient(70% 50% at 50% 60%, rgba(255, 106, 61, 0.07), transparent 70%); }
.lineup { position: relative; width: min(1120px, 100%); margin: clamp(60px, 8vw, 110px) auto 0; aspect-ratio: 1120 / 640; }
.lineup::before { content: ""; position: absolute; inset: 8% 6% 4%; background: radial-gradient(50% 50% at 50% 50%, var(--glow), transparent 72%); filter: blur(80px); opacity: 0.4; }
.lineup .device { position: absolute; transition: transform 1.4s var(--ease), opacity 1.2s var(--ease); }
.lineup.waiting [data-slot="ipad"] { transform: translateX(-14%) translateY(6%); opacity: 0; }
.lineup.waiting [data-slot="iphone"] { transform: translateX(24%) translateY(6%); opacity: 0; }
.lineup [data-slot="tv"] { width: 78%; left: 50%; top: 0; transform: translateX(-50%); }
.lineup [data-slot="ipad"] { width: 25%; left: 0; bottom: 0; }
.lineup [data-slot="iphone"] { width: 12.5%; right: 2%; bottom: 0; }
.lineup.with-mac { aspect-ratio: 1120 / 700; }
.lineup.with-mac [data-slot="tv"] { width: 66%; left: 0; transform: none; }
.lineup.with-mac [data-slot="mac"] { width: 54%; right: 0; top: 24%; }
.lineup.with-mac [data-slot="ipad"] { width: 22%; left: 6%; }
@media (max-width: 640px) {
  .lineup [data-slot="ipad"] { width: 31%; }
  .lineup [data-slot="iphone"] { width: 17%; right: 0; }
}
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 36px; margin-top: clamp(70px, 9vw, 120px); }
.platform h3 { font-size: 1.35rem; margin-bottom: 10px; }
.platform p { color: var(--muted); font-size: 1rem; line-height: 1.5; }
.platform .req { margin-top: 12px; color: var(--faint); font-size: 0.88rem; }
@media (max-width: 900px) { .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .platforms { grid-template-columns: 1fr; gap: 28px; } }

/* ---------------- Closer look ---------------- */
.closer { padding: clamp(110px, 13vw, 180px) 0 clamp(90px, 10vw, 140px); }
.segmented { display: flex; width: fit-content; margin: 44px auto 0; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.segmented button { border: 0; background: none; cursor: pointer; padding: 9px 20px; border-radius: 999px; font-size: 0.95rem; font-weight: 500; color: var(--muted); transition: background 0.3s var(--ease), color 0.3s; }
.segmented button[aria-selected="true"] { background: var(--text); color: #000; }
.rail .track { display: flex; align-items: flex-end; gap: clamp(20px, 3vw, 40px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 60px max(var(--gutter), calc((100% - var(--wide)) / 2)) 10px; }
.rail .track::-webkit-scrollbar { display: none; }
.rail figure { flex: 0 0 auto; margin: 0; scroll-snap-align: center; }
.rail[data-kind="tv"] figure, .rail[data-kind="mac"] figure { width: min(80vw, 860px); }
.rail[data-kind="mac"] .track { align-items: center; }
.rail[data-kind="ipad"] figure { width: min(64vw, 380px); }
.rail[data-kind="iphone"] figure { width: min(52vw, 260px); }
.rail figcaption { margin-top: 20px; text-align: center; color: var(--muted); font-size: 0.95rem; }
.rail-nav { display: flex; justify-content: center; gap: 12px; margin-top: 34px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, 0.1); cursor: pointer; display: grid; place-items: center; transition: background 0.2s; }
.rail-nav button:hover { background: rgba(255, 255, 255, 0.18); }
.rail-nav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.credit { margin-top: 34px; text-align: center; color: var(--faint); font-size: 0.85rem; }

/* ---------------- Privacy ---------------- */
.privacy { padding: clamp(120px, 14vw, 200px) 0; text-align: center; }
.shield { width: 64px; margin: 0 auto 34px; }
.shield svg { width: 100%; fill: none; stroke: var(--ember); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.privacy h2 { max-width: 14em; margin-inline: auto; }
.privacy .lead { max-width: 36rem; margin: 22px auto 0; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; margin-top: 72px; text-align: left; }
.points h3 { font-size: 1.25rem; margin-bottom: 10px; }
.points p { color: var(--muted); font-size: 1rem; }
.privacy .more { display: inline-block; margin-top: 56px; color: var(--ember); text-decoration: none; font-weight: 600; }
.privacy .more:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 860px) { .points { grid-template-columns: 1fr; gap: 30px; max-width: 30rem; margin-inline: auto; } }

/* ---------------- Price + start ---------------- */
.price { padding: 0 0 clamp(110px, 12vw, 170px); }
.price .card { position: relative; text-align: center; max-width: 900px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) clamp(24px, 6vw, 80px); border-radius: 40px; background: radial-gradient(90% 70% at 50% 0%, rgba(255, 106, 61, 0.26), transparent 65%), var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.price .card .icon { width: 88px; height: 88px; margin: 0 auto 30px; border-radius: 20px; }
.price .card .lead { max-width: 34rem; margin: 22px auto 0; }
.four { list-style: none; padding: 0; margin: 40px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; max-width: 600px; }
.four li { display: grid; justify-items: center; gap: 10px; padding: 20px 8px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.95rem; font-weight: 600; }
.four svg { width: 40px; height: 40px; fill: none; stroke: var(--text); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 480px) { .four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.included { list-style: none; padding: 0; margin: 34px auto 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px; color: #d2d2d7; }
.included li { display: inline-flex; align-items: center; gap: 9px; }
.included li::before { content: ""; width: 7px; height: 12px; margin-top: -4px; border-right: 2px solid var(--ember); border-bottom: 2px solid var(--ember); transform: rotate(45deg); }
.start { max-width: 900px; margin: clamp(90px, 10vw, 130px) auto 0; }
.start h2 { font-size: clamp(2rem, 4vw, 3rem); text-align: center; }
.start ol { list-style: none; counter-reset: s; padding: 0; margin: 50px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
.start li { counter-increment: s; }
.start li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 18px; border-radius: 50%; background: rgba(255, 255, 255, 0.1); font-weight: 600; font-size: 0.95rem; }
.start h3 { margin-bottom: 8px; }
.start p { color: var(--muted); font-size: 1rem; }
@media (max-width: 760px) { .start ol { grid-template-columns: 1fr; gap: 30px; } }

/* ---------------- FAQ, details, support ---------------- */
.faq, .specs { padding: clamp(80px, 9vw, 120px) 0 0; }
.faq h2, .specs h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 36px; }
.faq .wrap { max-width: 860px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 22px 48px 22px 0; font-size: 1.15rem; font-weight: 600; letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 10px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 46rem; }
.specs dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; }
.specs dl div { padding: 18px 0; border-top: 1px solid var(--line); }
.specs dt { font-weight: 600; margin-bottom: 4px; }
.specs dd { margin: 0; color: var(--muted); font-size: 0.98rem; }
@media (max-width: 760px) { .specs dl { grid-template-columns: 1fr; } }
.support { padding: clamp(120px, 13vw, 190px) 0; text-align: center; }
.support .lead { max-width: 34rem; margin: 22px auto 0; }
.support .mail { display: inline-block; margin-top: 30px; font-size: clamp(1.5rem, 3.4vw, 2.4rem); font-weight: 600; letter-spacing: -0.03em; text-decoration: none; background: linear-gradient(135deg, var(--ember), var(--flame)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------------- Footer ---------------- */
.site-footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 0.8rem; color: var(--faint); }
.site-footer .row { display: flex; flex-wrap: wrap; gap: 12px 26px; align-items: center; margin-bottom: 18px; color: var(--muted); }
.site-footer .row strong { color: var(--text); font-weight: 600; }
.site-footer .row a { color: var(--muted); text-decoration: none; }
.site-footer .row a:hover { color: var(--text); }
.site-footer p { max-width: 64rem; margin-bottom: 8px; line-height: 1.5; }

/* ---------------- Legal pages ---------------- */
.legal { padding: 130px 0 110px; }
.legal .wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 64px; }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.05; }
.legal .updated { color: var(--faint); margin: 14px 0 36px; }
.legal .summary-box { background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); border-radius: 22px; padding: 24px 28px; display: grid; gap: 10px; }
.legal .summary-box p { color: var(--text); }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; line-height: 1.25; margin: 48px 0 14px; scroll-margin-top: 90px; }
.legal p, .legal li { color: var(--muted); max-width: 44rem; margin-bottom: 12px; }
.legal li strong, .legal p strong { color: var(--text); }
.legal a { color: var(--ember); }
.legal .toc { position: sticky; top: 100px; align-self: start; font-size: 0.9rem; }
.legal .toc strong { color: var(--text); font-weight: 600; }
.legal .toc ol { padding-left: 1.7em; margin: 14px 0 0; display: grid; gap: 9px; color: var(--faint); }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--text); }
@media (max-width: 860px) { .legal .wrap { grid-template-columns: 1fr; gap: 24px; } .legal .toc { position: static; } }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-stage { animation: none; }
  .lineup.waiting .device { transform: none; opacity: 1; }
  .hero-stage .device { transform: none; }
  .hero-stage .light { opacity: 0.6; }
  .stage .device { transition: opacity 0.2s; transform: none; }
  .button:hover { transform: none; }
}

/* ---------------- 404 ---------------- */
.notfound { min-height: 82vh; display: grid; align-content: center; text-align: center; padding: 120px 0 80px; }
.notfound .icon { width: 96px; height: 96px; margin: 0 auto 28px; border-radius: 22px; }
.notfound .lead { max-width: 34rem; margin: 18px auto 0; }
.notfound .actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
