/*
 * Hotsite redesign, phase 1: English home only (loaded by templates/homeHead.mjs, not by other locales).
 * World: the Audio Blackbox brand pieces (YouTube banner, Patreon cover, store ads): near-black ground
 * with a faint instrument grid, "+" registration marks, a flight-orange glow, orange/slate waveform bars,
 * the flight-recorder icon as hero. Colours come from the :root tokens in tokens.css (design/index.html).
 * shell.css loads after this file, so shell overrides below are prefixed with `body` for specificity.
 */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: dark; scrollbar-color: #334155 var(--color-cockpit-bg); scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
body {
  min-height: 100vh;
  background-color: var(--color-cockpit-bg);
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 64px 64px;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
a { color: inherit; }
img { max-width: 100%; }
::selection { background: var(--color-flight-orange); color: var(--color-cockpit-bg); }
:focus-visible { outline: 2px solid var(--color-flight-orange-light); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
code { font-family: var(--font-mono); font-size: 0.88em; padding: 0.1em 0.38em; border-radius: var(--radius-rivet); background: var(--color-cockpit-panel-raised); color: var(--color-flight-orange-light); }
strong { color: var(--color-text-stencil); font-weight: 700; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 88px 0; }
@media (max-width: 700px) { section { padding: 56px 0; } }

/* ---- Buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 700 1rem/1.25 var(--font-sans); text-decoration: none; text-align: center; cursor: pointer; transition: background-color .18s var(--ease-out), border-color .18s var(--ease-out), color .18s var(--ease-out); }
.btn-primary { background: var(--color-flight-orange); color: var(--color-cockpit-bg); }   /* dark ink on orange: 6.1:1 (white is 3.0:1) */
.btn-primary:hover { background: var(--color-flight-orange-light); }
.btn-secondary { background: transparent; color: var(--color-text-stencil); border-color: rgba(255,255,255,0.28); }
.btn-secondary:hover { border-color: var(--color-flight-orange-light); color: var(--color-flight-orange-light); }

/* ---- Hero ---- */
.hero {
  position: relative; padding: 0; overflow: hidden;
  background: radial-gradient(60% 75% at 80% 48%, rgba(255,87,34,0.30), rgba(255,87,34,0.06) 55%, transparent 75%);
}
.reg { position: absolute; width: 18px; height: 18px; pointer-events: none; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--reg); }
.reg::before { left: 8px; top: 0; width: 2px; height: 18px; }
.reg::after { left: 0; top: 8px; width: 18px; height: 2px; }
.reg-tl { left: 20px; top: 20px; } .reg-tr { right: 20px; top: 20px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { min-width: 0; }
.badge-pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px; margin-bottom: 28px; border: 1px solid rgba(255,138,80,0.4); border-radius: var(--radius-rivet); background: rgba(255,87,34,0.09); color: var(--color-flight-orange-light); font: 500 0.8rem/1.35 var(--font-mono); letter-spacing: 0.02em; }
.badge-pill .dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--color-nvis-green); box-shadow: 0 0 8px var(--color-nvis-green-glow); }
h1 { font-size: clamp(2.5rem, 1.1rem + 4.6vw, 4.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; color: var(--color-text-stencil); text-wrap: balance; }
.lead { max-width: 58ch; margin-top: 24px; font-size: 1.15rem; color: var(--ink); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 36px; padding: 0; list-style: none; font: 500 0.8rem/1.3 var(--font-mono); color: var(--color-text-muted); }
.hero-badges li { display: inline-flex; align-items: center; gap: 8px; }
.tick { color: var(--color-nvis-green); flex: none; }

.stage { position: relative; min-height: 620px; }
.stage-icon { position: absolute; left: 6px; bottom: 4%; z-index: 2; width: 300px; filter: drop-shadow(0 28px 36px rgba(0,0,0,0.55)) drop-shadow(0 0 48px rgba(255,87,34,0.35)); }
.stage-icon img, .download-icon img { display: block; width: 100%; height: auto; }
.phone { padding: 8px; border: 1px solid #334155; border-radius: 38px; background: #05080D; box-shadow: 0 36px 70px -24px rgba(0,0,0,0.8); }
.phone img { display: block; width: 100%; height: auto; border-radius: 30px; }
.stage .phone { position: absolute; right: 0; top: 0; width: 280px; }
@media (prefers-reduced-motion: no-preference) {
  /* The icon is the LCP element: slide only, no fade, or its paint (and LCP) waits for the opacity to start (+350 ms measured). */
  .stage-icon { animation: rise-icon 0.9s var(--ease-out) both; }
  .stage .phone { animation: rise 1s 0.12s var(--ease-out) both; }
  @keyframes rise-icon { from { transform: translateY(18px); } to { transform: none; } }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
}

/* ---- Instrument strip: the live simulator, recomposed ---- */
.band { padding: 0 0 24px; }
.wave { display: block; width: 100%; height: auto; margin: 0 0 28px; }
.panel { position: relative; padding: 24px; background: var(--color-cockpit-panel); border: 1px solid var(--color-cockpit-border-strong); border-radius: var(--radius-lg); }
.panel::before, .panel::after { content: "+" / ""; position: absolute; top: 4px; font: 400 0.9rem/1 var(--font-mono); color: var(--reg); }
.panel::before { left: 8px; } .panel::after { right: 8px; }
.instrument { display: grid; grid-template-columns: 1.1fr 1.1fr minmax(240px, 0.8fr); gap: 20px; align-items: stretch; }
.gauge { min-width: 0; display: flex; flex-direction: column; }
.buffer-readout { margin: 18px 0 20px; font: 600 clamp(1.5rem, 1.1rem + 1.2vw, 2rem)/1.15 var(--font-mono); color: var(--color-text-stencil); font-variant-numeric: tabular-nums; }
.buffer-track { margin-top: auto; }
.nb { display: inline-block; white-space: nowrap; }
.demo-actions button { display: inline-flex; align-items: center; gap: 10px; }

.gauge-state { font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-flight-orange-light); }
.gauge-title { margin: 4px 0 16px; font-size: 1.1rem; font-weight: 700; color: var(--color-text-stencil); }
.vu-meter-header, .buffer-label-row { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; font: 500 0.78rem/1.4 var(--font-mono); letter-spacing: 0.04em; color: var(--color-text-muted); }
#vu-db-text, #buffer-stat-text { color: var(--color-text-stencil); font-variant-numeric: tabular-nums; }
.vu-meter-bars { display: flex; align-items: flex-end; gap: 3px; height: 48px; margin-top: 12px; }
.vu-bar { flex: 1; min-width: 0; height: 15%; background: var(--color-cockpit-panel-raised); border-radius: 2px; transition: height 0.1s linear; }
.vu-bar.active-low { background: var(--color-nvis-green); }
.vu-bar.active-mid { background: #34D399; }
.vu-bar.active-high { background: var(--color-caution-amber); }
.vu-bar.active-peak { background: var(--color-warning-red); }
.buffer-track { position: relative; height: 16px; margin-top: 14px; border-radius: 3px; overflow: hidden; background: var(--color-cockpit-panel-raised); }
.buffer-progress { position: absolute; inset: 0 auto 0 0; width: 99.5%; background: linear-gradient(90deg, var(--color-flight-orange-dark), var(--color-flight-orange) 60%, var(--color-flight-orange-light)); }
.buffer-track::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(5% - 1px), rgba(10,14,23,0.55) calc(5% - 1px) 5%); }
.demo-actions { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.demo-actions button { min-height: 52px; padding: 12px 18px; border-radius: var(--radius-sm); font: 700 0.95rem/1.3 var(--font-sans); text-align: left; cursor: pointer; }
.phone-btn-save { background: var(--color-flight-orange); color: var(--color-cockpit-bg); border: 1px solid transparent; transition: background-color .18s var(--ease-out); }
.phone-btn-save:hover { background: var(--color-flight-orange-light); }
.phone-btn-live { background: var(--color-cockpit-panel); color: var(--color-text-stencil); border: 1px solid rgba(255,255,255,0.28); }
.phone-btn-live:hover { border-color: var(--color-flight-orange-light); }

/* ---- Slogan, collapsible details, inline link in feature cards ---- */
.slogan { margin-top: 14px; font: 400 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.35 var(--font-sans); color: #CBD5E1; }
.more { margin-top: 20px; border-top: 1px solid var(--color-cockpit-border-strong); }
.more summary { display: flex; align-items: center; gap: 10px; min-height: 48px; cursor: pointer; list-style: none; font-weight: 500; color: var(--color-flight-orange-light); }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "+"; display: grid; place-items: center; flex: none; width: 22px; height: 22px; border: 1px solid currentColor; border-radius: var(--radius-rivet); font: 600 0.95rem/1 var(--font-mono); }
.more[open] summary::before { content: "\2212"; }
.more summary:hover { color: var(--color-text-stencil); }
.more p { padding-bottom: 8px; }
.feature p a { color: var(--color-flight-orange-light); text-underline-offset: 3px; }
.feature p a:hover { color: var(--color-text-stencil); }

/* ---- Section scaffolding ---- */
.rule { display: flex; align-items: center; gap: 16px; margin-bottom: 36px; }
.rule::before { content: ""; width: 8px; height: 8px; background: var(--color-flight-orange); }
.rule::after { content: ""; flex: 1; height: 1px; background: var(--color-cockpit-border-strong); }
.rule-label { font: 600 0.78rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-text-muted); }
.section-title { font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.8rem); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; color: var(--color-text-stencil); text-wrap: balance; }
.section-desc { margin-top: 16px; max-width: 62ch; color: var(--color-text-muted); }
.section-header { max-width: 780px; margin-bottom: 44px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.prose { max-width: 68ch; }
.prose p + p { margin-top: 1.1em; }
.note { margin-top: 28px; font-size: 0.88rem; color: var(--color-text-muted); max-width: 80ch; }
.fine { margin-top: 12px; font-size: 0.85rem; line-height: 1.55; color: var(--color-text-muted); }

.ledger { padding: 0; list-style: none; border-bottom: 1px solid var(--color-cockpit-border-strong); }
.ledger li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 28px; padding: 20px 0; border-top: 1px solid var(--color-cockpit-border-strong); }
.ledger h3, .ledger h2 { font-size: 1.05rem; font-weight: 700; color: var(--color-text-stencil); }
.ledger p { color: var(--color-text-muted); }

.feature-lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: 36px; }
.feature-lead h3, .feature-lead h2 { margin-bottom: 14px; font-size: 1.6rem; font-weight: 700; letter-spacing: -0.01em; color: var(--color-text-stencil); }
.feature-lead p { max-width: 68ch; }
.phone-small { width: 240px; }
.features-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 32px; margin-top: 56px; }
.feature { grid-column: span 2; padding-top: 18px; border-top: 1px solid var(--color-cockpit-border-strong); position: relative; }
.feature:nth-child(n+4) { grid-column: span 3; }
.feature::before { content: ""; position: absolute; left: 0; top: -2px; width: 28px; height: 3px; background: var(--color-flight-orange); }
.feature h3, .feature h2 { margin-bottom: 8px; font-size: 1.1rem; font-weight: 700; color: var(--color-text-stencil); }
.feature p { color: var(--color-text-muted); font-size: 0.98rem; }
.design-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; margin-top: 64px; padding: 32px; background: linear-gradient(135deg, rgba(255,87,34,0.13), var(--color-cockpit-panel) 65%); border-color: rgba(255,87,34,0.35); }
.design-banner > div { flex: 1 1 380px; min-width: 0; }
.design-banner h3, .design-banner h2 { margin: 6px 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--color-text-stencil); }
.design-banner p { max-width: 62ch; color: var(--color-text-muted); }
.panel-label { font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-flight-orange-light); }

/* ---- Memory calculator (ids and behaviour unchanged) ---- */
.calc-card { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 40px; padding: 36px; }
.calc-control { margin-bottom: 26px; }
.calc-label { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 10px; font-weight: 500; color: var(--color-text-stencil); }
.calc-label span:last-child { font: 500 0.85rem/1.4 var(--font-mono); color: var(--color-text-muted); }
.calc-value, .calc-label .calc-value { font: 600 0.95rem/1.4 var(--font-mono) !important; color: var(--color-flight-orange-light) !important; }
.calc-slider { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; }
.calc-slider::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: var(--color-cockpit-panel-raised); border: 1px solid var(--color-cockpit-border-strong); }
.calc-slider::-moz-range-track { height: 6px; border-radius: 3px; background: var(--color-cockpit-panel-raised); border: 1px solid var(--color-cockpit-border-strong); }
.calc-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--color-flight-orange); border: 3px solid var(--color-cockpit-bg); box-shadow: 0 0 0 1px var(--color-flight-orange); }
.calc-slider::-moz-range-thumb { width: 16px; height: 16px; border-radius: 50%; background: var(--color-flight-orange); border: 3px solid var(--color-cockpit-bg); box-shadow: 0 0 0 1px var(--color-flight-orange); }
#calc-rate-select { width: 100%; padding: 12px; border-radius: var(--radius-sm); background: var(--color-cockpit-panel-raised); color: var(--color-text-stencil); border: 1px solid rgba(255,255,255,0.28); font: 400 0.95rem/1.4 var(--font-sans); }
.calc-result-box { align-self: start; padding: 28px; background: var(--ground-deep); border: 1px solid var(--color-cockpit-border-strong); border-radius: var(--radius-md); }
.calc-result-sub { color: var(--color-text-muted); font-size: 0.9rem; }
.calc-result-label { margin-bottom: 8px; font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; }
.calc-result-num { margin-bottom: 4px; font: 600 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1.1 var(--font-mono); color: var(--color-flight-orange); font-variant-numeric: tabular-nums; }

/* ---- Screenshots, privacy, steps, download, FAQ ---- */
.shots { display: flex; align-items: flex-start; gap: 28px; justify-content: center; }
.shots .phone { flex: 0 1 260px; min-width: 0; }
.shots .phone:nth-child(2) { margin-top: 56px; }
.privacy-banner { display: flex; align-items: center; gap: 32px; padding: 36px; border-color: rgba(16,185,129,0.4); }
.privacy-icon { flex: none; display: grid; place-items: center; width: 84px; height: 84px; border: 1px solid rgba(16,185,129,0.45); border-radius: var(--radius-md); background: rgba(16,185,129,0.1); color: var(--color-nvis-green); }
.privacy-banner h3, .privacy-banner h2 { margin-bottom: 8px; font-size: 1.5rem; font-weight: 700; color: var(--color-text-stencil); }
.privacy-banner p { max-width: 70ch; }
.steps { counter-reset: step; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding: 20px 0 20px 68px; border-top: 1px solid var(--color-cockpit-border-strong); }
.steps li:last-child { border-bottom: 1px solid var(--color-cockpit-border-strong); }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 22px; font: 600 1.1rem/1.5 var(--font-mono); color: var(--color-flight-orange); }
.download { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 48px; align-items: center; padding: 48px; background: radial-gradient(70% 120% at 12% 50%, rgba(255,87,34,0.22), var(--color-cockpit-panel) 65%); }
.download-icon { width: 160px; filter: drop-shadow(0 18px 28px rgba(0,0,0,0.5)); }
.download h3, .download h2 { margin: 28px 0 6px; font-size: 1.15rem; font-weight: 700; color: var(--color-text-stencil); }
.download p { max-width: 62ch; }
.download .section-desc { margin-top: 14px; }
.download .btn { margin-top: 20px; }
.faq-list { max-width: 880px; margin-top: 36px; border-bottom: 1px solid var(--color-cockpit-border-strong); }
.faq-item { padding: 24px 0; border-top: 1px solid var(--color-cockpit-border-strong); }
.faq-item h3, .faq-item h2 { font-size: 1.12rem; font-weight: 700; line-height: 1.35; color: var(--color-text-stencil); }
.faq-item p { margin-top: 8px; max-width: 78ch; color: var(--color-text-muted); }

/* ---- Inner pages (#528): page head, breadcrumb, summary cards, use-case links, Pro, Shorts ---- */
.page-head { padding: 56px 0 0; }
.page-head .rule { margin-bottom: 28px; }
.crumbs { margin-bottom: 28px; }
.crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; margin: 0; padding: 0; list-style: none; font: 500 0.82rem/1.4 var(--font-mono); letter-spacing: 0.02em; color: var(--color-text-muted); }
.crumbs li { display: flex; align-items: center; gap: 10px; }
.crumbs li:not(:last-child)::after { content: "/"; content: "/" / ""; color: var(--reg); }  /* plain value first: browsers without alt-text syntax (Safari <17.4, Firefox <128) keep the "/" */  /* trailing, so a wrapped line never starts with a separator */
.crumbs a, .crumbs [aria-current] { display: block; padding: 8px 0; }
.crumbs a { color: var(--color-text-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-flight-orange-light); }
.crumbs [aria-current] { color: var(--color-text-stencil); }
.page-title { font-size: clamp(2.1rem, 1.4rem + 3vw, 3.5rem); max-width: 22ch; }
.page-head .lead { max-width: 64ch; color: var(--color-text-muted); }
.page-head .prose { margin-top: 24px; }
.page-head + section { padding-top: 56px; }
@media (max-width: 700px) { .page-head { padding-top: 32px; } .page-head + section { padding-top: 40px; } }
.cta-band { padding: 40px 0 24px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; padding: 32px; background: linear-gradient(135deg, rgba(255,87,34,0.13), var(--color-cockpit-panel) 65%); border-color: rgba(255,87,34,0.35); }
.cta > div { flex: 1 1 340px; min-width: 0; }
.cta h2 { margin-bottom: 6px; font-size: 1.5rem; font-weight: 700; color: var(--color-text-stencil); }
.cta p { color: var(--color-text-muted); }
.text-link { color: var(--color-flight-orange-light); text-underline-offset: 3px; }
.text-link:hover { color: var(--color-text-stencil); }

/* Home: one card per page. The title link is stretched over the whole card, so the card is one target. */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 36px 0 0; padding: 0; list-style: none; }
.card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px 26px; background: var(--color-cockpit-panel); border: 1px solid var(--color-cockpit-border-strong); border-radius: var(--radius-lg); transition: border-color .18s var(--ease-out), background-color .18s var(--ease-out); }
.card::before { content: ""; position: absolute; left: 24px; top: -2px; width: 28px; height: 3px; background: var(--color-flight-orange); }
.card:hover, .card:focus-within { border-color: rgba(255,138,80,0.55); background: var(--color-cockpit-panel-raised); }
.card-tag { font: 600 0.75rem/1.2 var(--font-mono); letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-flight-orange-light); }
.card h3 { font-size: 1.2rem; font-weight: 700; line-height: 1.25; color: var(--color-text-stencil); text-wrap: balance; }
.card-link { text-decoration: none; }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link:focus-visible { outline: none; }
.card:has(.card-link:focus-visible) { outline: 2px solid var(--color-flight-orange-light); outline-offset: 3px; }
.card p:last-child { color: var(--color-text-muted); font-size: 0.98rem; }
#explore + #download { padding-top: 24px; }

/* Use cases: the one case with its own page is a link; the others stay plain. */
.ledger-link { color: inherit; text-decoration: underline; text-decoration-color: var(--color-flight-orange); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.ledger-link:hover { color: var(--color-flight-orange-light); }

/* Tick lists and the free/Pro columns */
.ticks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 10px; height: 10px; background: var(--color-flight-orange); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.plan { padding: 32px; }
.plan h2 { margin-bottom: 20px; font-size: 1.5rem; font-weight: 700; color: var(--color-text-stencil); }
.plan-pro { border-color: rgba(255,87,34,0.45); background: linear-gradient(135deg, rgba(255,87,34,0.10), var(--color-cockpit-panel) 70%); }
.plans + .note { margin-top: 20px; }

/* Shorts: a 9:16 stage is reserved before anything loads, so the player (created by a tiny inline script) never shifts the page. */
.head-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: start; }
.head-text, .head-aside { min-width: 0; }
.shorts-note { margin-top: 14px; font-size: 0.85rem; color: var(--color-text-muted); max-width: 280px; }
.privacy-line { max-width: 64ch; margin-top: 24px; padding: 14px 18px; border-left: 3px solid var(--color-flight-orange); background: var(--color-cockpit-panel); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 1rem; line-height: 1.5; color: var(--color-text-stencil); }
.shorts { display: grid; grid-template-columns: repeat(2, minmax(0, 260px)); gap: 28px; margin: 0; padding: 0; list-style: none; }
#shorts-slot { grid-template-columns: minmax(0, 280px); }
.short-stage { position: relative; width: 100%; aspect-ratio: 9 / 16; }
.short-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: var(--radius-md); background: #000; }
.short-caption { margin-top: 10px; font-size: 0.9rem; line-height: 1.35; overflow-wrap: anywhere; color: var(--color-text-muted); }

/* Opening block and the featured Short side by side from 1100px: the 280px Short column leaves the longest locale (DE) a text column of about 800px. */
@media (min-width: 1101px) { .head-split { grid-template-columns: minmax(0, 1fr) 280px; gap: 56px; } }

/* ---- Responsive ---- */
@media (max-width: 1000px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plans { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 56px; padding-bottom: 48px; }
  .stage { display: flex; flex-direction: column; align-items: center; width: min(100%, 460px); margin: 0 auto; min-height: 0; }
  .stage-icon, .stage .phone { position: relative; left: auto; right: auto; top: auto; bottom: auto; }
  .stage-icon { align-self: flex-start; width: 190px; margin-bottom: -52px; }
  .stage .phone { width: 260px; }
  .instrument { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .demo-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .demo-actions button { flex: 1 1 260px; }
  .split, .calc-card { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .shots { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature:nth-child(n+4) { grid-column: span 1; }
  .feature:last-child { grid-column: 1 / -1; }
}
@media (max-width: 700px) {
  .cards { grid-template-columns: minmax(0, 1fr); }
  .plan, .cta { padding: 24px; }
  .container { padding: 0 20px; }
  .hero-grid { padding: 40px 20px 56px; }   /* .container above would otherwise zero the vertical padding */
  .stage-icon { width: 150px; margin-bottom: -40px; }
  .stage .phone { width: min(250px, 80%); }
  .instrument { grid-template-columns: minmax(0, 1fr); }
  .feature-lead { grid-template-columns: minmax(0, 1fr); padding: 24px; gap: 28px; }
  .phone-small { width: min(240px, 70%); justify-self: center; }
  .features-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .feature:last-child { grid-column: auto; }
  .ledger li { grid-template-columns: minmax(0, 1fr); }
  .calc-card, .download { padding: 24px; }
  .download { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .download-icon { width: 120px; }
  .privacy-banner { flex-direction: column; align-items: flex-start; padding: 24px; gap: 20px; }
  .design-banner { padding: 24px; }
  .shots { gap: 16px; }
  .shots .phone { flex-basis: 0; }
  .shots .phone:nth-child(2) { margin-top: 32px; }
  .steps li { padding-left: 52px; }
  .btn { width: 100%; }
}

/* Long translated words (DE/FR) must wrap rather than widen the page. */
h1, h2, h3, h4, p, li, .btn, .badge-pill, .rule-label, .calc-label span { overflow-wrap: anywhere; }
@media (max-width: 520px) { .shorts { grid-template-columns: minmax(0, 260px); gap: 24px; } #shorts-slot { grid-template-columns: minmax(0, 240px); } }
