/* PPT TV Viewer website. One stylesheet for every page; no external fonts or assets.
   Colors follow the app (app/src/main/res/values/colors.xml). */

:root {
  --bg: #0d0f13;
  --bg-top: #1a1d25;
  --surface: #151920;
  --surface-2: #1c2129;
  --surface-focus: #2c323e;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f5f8;
  --text-2: #b4bac6;
  --muted: #959cab;
  --accent: #fbb405;
  --brand: #d83b01;
  --brand-hover: #c23400;
  --mark-orange: #f44001;
  --mark-amber: #f8a800;
  --radius: 18px;
  --radius-sm: 10px;
  --gutter: clamp(16px, 4vw, 40px);
  --maxw: 1200px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-width: 320px;
  background: linear-gradient(180deg, var(--bg-top) 0, var(--bg) 760px) no-repeat, var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font);
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.wrap { width: min(calc(100% - 2 * var(--gutter)), var(--maxw)); margin-inline: auto; }
.wrap-narrow { --maxw: 50rem; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 16px; top: -120px; z-index: 100;
  padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--accent); color: #121418; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; outline-color: var(--text); }

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Header ---------- */

.site-header {
  position: relative; z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(13, 15, 19, 0.82);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap;
  min-height: 72px; padding-block: 10px;
}
.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--text); text-decoration: none; font-weight: 750; font-size: 1.125rem; letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: auto; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  display: block; padding: 8px 14px; border-radius: 999px;
  color: var(--text-2); font-size: 0.9375rem; font-weight: 550; text-decoration: none;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.site-nav a[aria-current="page"] { color: var(--text); background: var(--surface-2); }

@media (min-width: 860px) {
  .site-header { position: sticky; top: 0; }
  @supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
    .site-header { background: rgba(13, 15, 19, 0.72); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
  }
  [id] { scroll-margin-top: 88px; }
}

@media (max-width: 859px) {
  .header-inner { justify-content: flex-start; padding-block: 12px 8px; }
  .site-nav { width: 100%; margin-inline: -10px; }
  .site-nav a { padding: 6px 10px; }
}
@media (max-width: 479px) {
  .site-nav .nav-optional { display: none; }
}

/* ---------- Buttons and store call to action ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border-radius: 999px;
  font-weight: 650; font-size: 1rem; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 16px; margin-top: 32px; }
.cta-center { justify-content: center; }

.store-soon {
  display: inline-flex; align-items: center; gap: 14px;
  margin: 0; padding: 10px 22px 10px 14px; min-height: 64px;
  border: 1px solid rgba(251, 180, 5, 0.38); border-radius: 16px;
  background: linear-gradient(135deg, rgba(216, 59, 1, 0.22), rgba(251, 180, 5, 0.08));
}
.store-soon svg { flex: none; width: 34px; height: 34px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store-soon-text { display: flex; flex-direction: column; line-height: 1.25; }
.store-soon-label { color: var(--accent); font-size: 0.75rem; font-weight: 750; letter-spacing: 0.14em; text-transform: uppercase; }
.store-soon-name { color: var(--text); font-size: 1.0625rem; font-weight: 700; }

.play-badge { display: inline-block; line-height: 0; border-radius: 12px; }
.play-badge img { width: auto; height: 82px; }

/* ---------- Hero ---------- */

.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40rem 26rem at 80% 32%, rgba(244, 64, 1, 0.15), transparent 70%),
    radial-gradient(30rem 18rem at 98% 58%, rgba(248, 168, 0, 0.09), transparent 70%),
    radial-gradient(30rem 22rem at 0% 0%, rgba(255, 255, 255, 0.035), transparent 70%);
}
.hero-grid {
  display: grid; gap: 56px; align-items: center;
  padding-block: clamp(40px, 6vw, 88px) clamp(48px, 5vw, 72px);
}
@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 64px; }
}
.hero-title {
  display: flex; align-items: center; gap: clamp(14px, 2vw, 22px);
  font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
}
.hero-mark { flex: none; width: clamp(48px, 4vw + 30px, 75px); height: auto; filter: drop-shadow(0 10px 24px rgba(244, 64, 1, 0.35)); }
.tagline {
  margin: 26px 0 0;
  font-size: clamp(1.35rem, 1.05rem + 1.3vw, 1.95rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.015em;
}
.tagline .accent { color: var(--accent); }
.lead { margin: 18px 0 0; max-width: 34em; color: var(--text-2); font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem); }

.facts { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 30px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.9375rem; font-weight: 550; }
.facts li, .ticks li { position: relative; padding-left: 24px; }
.facts li::before, .ticks li::before {
  content: ""; position: absolute; left: 4px; top: 0.36em;
  width: 6px; height: 11px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg);
}

.hero-visual { position: relative; isolation: isolate; padding-bottom: 30px; }
.hero-visual::before {
  content: ""; position: absolute; inset: 6% 4% 14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 64, 1, 0.42), rgba(248, 168, 0, 0.14) 60%, transparent);
  filter: blur(48px);
}

/* TV frame around screenshots */
.tv {
  position: relative; margin: 0;
  padding: clamp(6px, 0.8vw, 11px);
  border-radius: clamp(10px, 1.3vw, 18px);
  background: linear-gradient(180deg, #262a33, #0b0c0f 70%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 2px 0 rgba(255, 255, 255, 0.05) inset, 0 40px 70px -28px rgba(0, 0, 0, 0.9);
}
.tv::after {
  content: ""; position: absolute; left: 50%; top: 100%; width: 30%; height: 26px; transform: translateX(-50%);
  background: linear-gradient(180deg, #15181d, #08090b);
  clip-path: polygon(22% 0, 78% 0, 100% 100%, 0 100%);
}
.tv-screen { overflow: hidden; border-radius: clamp(4px, 0.5vw, 8px); background: #000; }
.tv-screen img { width: 100%; }

/* ---------- Sections ---------- */

.section { padding-block: clamp(56px, 7vw, 96px); }
.section-alt { background: rgba(255, 255, 255, 0.02); border-block: 1px solid var(--line); }
.section-head { max-width: 46rem; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head h2 { font-size: clamp(1.75rem, 1.25rem + 2vw, 2.6rem); font-weight: 780; letter-spacing: -0.02em; }
.section-lead { margin: 16px auto 0; max-width: 38em; color: var(--text-2); font-size: 1.125rem; }

.card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: linear-gradient(180deg, #181c24, #12151b);
  padding: clamp(22px, 3vw, 32px);
}
.card h3 { font-size: 1.25rem; font-weight: 720; letter-spacing: -0.01em; }

/* Features */
.feature-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); margin: 0; padding: 0; list-style: none; }
.feature h3 { margin: 20px 0 10px; }
.feature p { color: var(--text-2); }
.feature-icon {
  width: 48px; height: 48px; padding: 11px; border-radius: 14px;
  background: rgba(251, 180, 5, 0.1); box-shadow: inset 0 0 0 1px rgba(251, 180, 5, 0.22);
  fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
}
.feature-icon .fill { fill: var(--accent); }

.key-inline {
  display: inline-block; min-width: 1.6em; padding: 0 0.35em; border-radius: 6px;
  background: var(--surface-focus); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: var(--text); font-size: 0.85em; line-height: 1.6; text-align: center; white-space: nowrap;
}

/* Steps */
.steps { display: grid; gap: 20px; margin: 0; padding: 0; list-style: none; counter-reset: none; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative; padding: clamp(24px, 3vw, 32px);
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 20px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: 1.25rem; font-weight: 800;
  box-shadow: 0 8px 20px -6px rgba(216, 59, 1, 0.6);
}
.step h3 { margin-bottom: 10px; font-size: 1.25rem; font-weight: 720; }
.step p { color: var(--text-2); }
.step strong { color: var(--text); font-weight: 650; }
.step-note { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line-strong); color: var(--muted); font-size: 0.9375rem; }
.step .step-note { color: var(--muted); }

/* Remote cheat sheet */
.keys-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .keys-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.keys-card h3 { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.keys-icon { width: 28px; height: 28px; fill: none; stroke: var(--accent); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.keys { margin: 0; }
.keys > div {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: center;
  padding: 14px 0; border-bottom: 1px solid var(--line);
}
@media (min-width: 520px) { .keys > div { grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 16px; } }
.keys dt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 0.9375rem; }
.keys dd { margin: 0; color: var(--text); }
kbd {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 2.3em; height: 2.1em; padding: 0 0.65em; border-radius: 8px;
  background: linear-gradient(180deg, #303744, #232832);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, 0.45), 0 1px 0 rgba(0, 0, 0, 0.3);
  color: var(--text); font: 650 0.9375rem/1 var(--font); white-space: nowrap;
}
.keys-note { margin-top: 16px; color: var(--muted); font-size: 0.9375rem; }

/* Gallery */
.gallery { display: grid; gap: clamp(24px, 3vw, 36px); margin: 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 760px) { .gallery-wide-first > li:first-child { grid-column: 1 / -1; } }
.gallery figure { margin: 0; }
.shot {
  display: block; overflow: hidden; border-radius: 12px; background: #000;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09), 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}
a.shot:hover { box-shadow: 0 0 0 2px var(--accent), 0 24px 48px -24px rgba(0, 0, 0, 0.9); }
.shot img { width: 100%; }
.gallery figcaption { margin-top: 14px; color: var(--text-2); font-size: 0.9375rem; }
.gallery figcaption strong { display: block; margin-bottom: 2px; color: var(--text); font-size: 1.0625rem; font-weight: 680; }

.shot-placeholder {
  display: grid; place-items: center; aspect-ratio: 16 / 9; padding: 16px;
  border: 2px dashed rgba(251, 180, 5, 0.5); border-radius: 12px;
  background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 14px, transparent 14px 28px), #11141a;
  color: var(--text-2); text-align: center;
}
.shot-placeholder .ph-tag {
  display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px;
  background: rgba(251, 180, 5, 0.16); color: var(--accent);
  font-size: 0.75rem; font-weight: 750; letter-spacing: 0.12em; text-transform: uppercase;
}
.shot-placeholder .ph-name { display: block; color: var(--text); font-weight: 650; }
.tv .shot-placeholder { border-radius: 6px; }

/* Formats and requirements */
.formats-grid { display: grid; gap: 20px; }
@media (min-width: 900px) { .formats-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); } }
.formats-grid h3 { margin-bottom: 18px; }
.formats-grid p { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; list-style: none; }
.chips li {
  padding: 5px 13px; border-radius: 999px;
  background: rgba(251, 180, 5, 0.1); border: 1px solid rgba(251, 180, 5, 0.3);
  color: var(--accent); font-weight: 650; font-size: 0.9375rem;
}
.ticks { margin: 20px 0 0; padding: 0; list-style: none; color: var(--text-2); }
.ticks li + li { margin-top: 10px; }
.reqs { margin: 0; }
.reqs > div { display: grid; gap: 2px; padding: 14px 0; border-top: 1px solid var(--line); }
.reqs > div:first-child { border-top: 0; padding-top: 0; }
.reqs dt { color: var(--muted); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.reqs dd { margin: 0; color: var(--text); }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative; display: block; padding: 22px 52px 22px 4px; cursor: pointer;
  font-size: 1.125rem; font-weight: 650; line-height: 1.4; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before,
.faq summary::after {
  content: ""; position: absolute; right: 14px; top: 50%; width: 16px; height: 2px; margin-top: -1px;
  border-radius: 2px; background: var(--accent); transition: transform 0.2s ease;
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq summary:hover { color: var(--accent); }
.faq details > p { margin: 0 4px 0; padding-bottom: 14px; color: var(--text-2); max-width: 44em; }
.faq details > p:last-child { padding-bottom: 24px; }

/* Closing call to action */
.cta-band {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 24px; align-items: center;
  background: linear-gradient(135deg, #1f1a1a, #14171d 55%);
  border-color: rgba(251, 180, 5, 0.22);
}
.cta-band::before {
  content: ""; position: absolute; inset: auto -10% -60% auto; width: 60%; height: 160%; z-index: -1;
  background: radial-gradient(closest-side, rgba(244, 64, 1, 0.22), transparent);
}
@media (min-width: 900px) { .cta-band { grid-template-columns: auto minmax(0, 1fr) auto; gap: 32px; padding: 40px 44px; } }
.cta-mark { width: 56px; height: auto; }
.cta-copy h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); font-weight: 780; letter-spacing: -0.02em; margin-bottom: 8px; }
.cta-copy p { color: var(--text-2); }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); background: #0a0c0f; color: var(--muted); font-size: 0.9375rem; }
.footer-inner { display: grid; gap: 28px; padding-block: 48px 56px; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .footer-legal { grid-column: 1 / -1; }
}
.footer-brand { display: flex; gap: 14px; align-items: flex-start; }
.footer-brand img { width: 29px; margin-top: 3px; }
.footer-name { margin: 0; color: var(--text); font-weight: 700; }
.footer-tag { margin: 2px 0 0; }
.footer-links ul { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0; padding: 0; list-style: none; }
.footer-links a, .link-button { color: var(--text-2); }
.footer-links a:hover, .link-button:hover { color: var(--text); }
.link-button {
  margin: 0; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.link-button:hover { text-decoration-thickness: 2px; }
.footer-legal { padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.875rem; }
.footer-legal p { margin: 0 0 4px; }

/* ---------- Privacy policy ---------- */

.policy { padding-block: clamp(40px, 6vw, 72px) clamp(64px, 8vw, 104px); }
.policy-head { padding-bottom: 24px; margin-bottom: 32px; border-bottom: 1px solid var(--line); }
.policy-head h1 { margin-bottom: 14px; font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); font-weight: 800; letter-spacing: -0.025em; }
.policy .meta { margin: 0; color: var(--text-2); }
.policy h2 { margin: 52px 0 14px; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.6rem); font-weight: 750; letter-spacing: -0.01em; }
.policy h3 { margin: 30px 0 8px; font-size: 1.125rem; font-weight: 700; }
.policy p, .policy li, .policy dd { color: #d5d9e0; }
.policy ul, .policy ol { margin: 0 0 1em; padding-left: 1.4em; }
.policy li { margin-bottom: 8px; }
.policy li > ul { margin-top: 8px; }
.policy strong { color: var(--text); }
.policy .summary {
  margin: 0 0 28px; padding: 22px 24px;
  border: 1px solid rgba(251, 180, 5, 0.25); border-left: 4px solid var(--accent); border-radius: 14px;
  background: linear-gradient(135deg, rgba(216, 59, 1, 0.12), rgba(251, 180, 5, 0.04));
}
.policy .summary h2 { margin: 0 0 10px; font-size: 1.2rem; }
.policy .summary ul { margin: 0; }
.policy nav {
  margin: 0 0 8px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.policy nav h2 { margin: 0 0 8px; font-size: 1.05rem; }
.policy nav ol { margin: 0; columns: 2 16rem; column-gap: 32px; }
.policy nav li { margin-bottom: 4px; break-inside: avoid; }
.policy .note {
  margin: 0 0 1em; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: 14px; background: var(--surface-2);
}
.policy dl.perms { display: grid; gap: 12px; margin: 0 0 1em; }
.policy dl.perms > div { padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.policy dl.perms dt { color: var(--text); font-weight: 650; }
.policy dl.perms dt code { font-weight: 400; }
.policy dl.perms dd { margin: 6px 0 0; }
.policy .policy-pointer { margin: 14px 0 0; color: var(--text-2); font-size: 0.9375rem; }
.site-notice {
  margin-top: clamp(48px, 7vw, 72px); padding: clamp(22px, 3vw, 30px) clamp(20px, 3vw, 30px);
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface);
}
.policy .site-notice h2 { margin: 0 0 14px; }
.policy .site-notice .eyebrow { margin-bottom: 8px; color: var(--accent); }
.site-notice > :last-child { margin-bottom: 0; }
.policy code {
  padding: 1px 6px; border-radius: 6px; background: var(--surface-focus);
  font-family: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.86em;
  overflow-wrap: anywhere;
}

/* ---------- Consent banner (src/js/consent.js) ---------- */

/* Non-modal and fixed to the bottom of the screen; first in the page's tab order. While it is open,
   the page gets room at the bottom (--consent-h, set by the script) so that nothing ends up behind it. */
.consent {
  position: fixed; z-index: 50; left: 12px; right: 12px; bottom: 12px;
  max-height: calc(100vh - 24px); overflow: auto; overscroll-behavior: contain;
  padding: 18px 18px 16px;
  border: 1px solid rgba(251, 180, 5, 0.32); border-radius: 16px;
  background: linear-gradient(180deg, #1d212a, #14171d);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(0, 0, 0, 0.5);
  color: var(--text-2); font-size: 0.9375rem; line-height: 1.55;
}
@media (min-width: 640px) {
  .consent { left: auto; right: 24px; bottom: 24px; width: 27rem; padding: 22px 24px 20px; }
}
.consent:focus { outline: none; }
.consent:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 16px; }
.consent-title { margin: 0 0 8px; color: var(--text); font-size: 1.0625rem; font-weight: 720; letter-spacing: -0.005em; }
.consent p { margin: 0 0 6px; }
.consent-current { color: var(--text); font-weight: 600; }
.consent-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.btn-choice {
  min-height: 44px; padding: 0 18px; cursor: pointer;
  border: 1px solid var(--line-strong); background: var(--surface-focus); color: var(--text); font-family: inherit;
}
.btn-choice:hover { background: #363d4b; border-color: rgba(255, 255, 255, 0.3); }
.btn-choice:focus-visible { border-radius: 999px; }
html.consent-open { scroll-padding-bottom: calc(var(--consent-h, 0px) + 36px); }
html.consent-open body { padding-bottom: calc(var(--consent-h, 0px) + 24px); }
@media (prefers-reduced-motion: no-preference) {
  .consent { animation: consent-in 0.25s ease-out; }
  @keyframes consent-in { from { opacity: 0; transform: translateY(16px); } }
}
.policy .site-notice h3 { margin-top: 36px; }
.site-notice .note { margin-top: 1em; }

/* ---------- 404 ---------- */

.notfound { padding-block: clamp(72px, 12vw, 160px); text-align: center; }
.notfound-inner { display: flex; flex-direction: column; align-items: center; }
.notfound-mark { width: 75px; margin-bottom: 28px; filter: drop-shadow(0 10px 24px rgba(244, 64, 1, 0.35)); }
.notfound h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; }
.notfound .lead { margin-inline: auto; }

/* ---------- Motion and print ---------- */

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

@media print {
  html, body { background: #fff; }
  * { color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
  .site-header, .skip-link, .hero-visual, .cta-band, .policy nav, .consent, [data-consent-settings] { display: none; }
  .card, .step, .section-alt, .site-footer, .policy .summary, .policy .note, .policy dl.perms > div, .site-notice,
  .policy code, kbd, .key-inline { background: none; border-color: #999; }
}
