/* Halo Access, shared styles for every page.
   Mobile-first: base rules are the phone (320–400 px); larger screens are
   enhanced with min-width queries at 560, 760, 900 and 1100 px. */

/* Fonts are served from this site (fonts/, latin subset, OFL): no visitor's
   IP goes to a third party. */
@font-face { font-family: Barlow; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/barlow-regular.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/barlow-medium.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-semibold.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-bold.woff2) format("woff2"); }
@font-face { font-family: Barlow; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-extrabold.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/barlow-condensed-semibold.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/barlow-condensed-bold.woff2) format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url(fonts/barlow-condensed-extrabold.woff2) format("woff2"); }

:root {
  /* Day: pale concrete, night ink, the amber of the door lamp */
  --ground: #EDF0F5;
  --ground-2: #E1E6EE;
  --surface: #FFFFFF;
  --ink: #0E1726;
  --muted: #4B5B76;
  --edge: #C8D1DF;
  --signal: #F5A524;
  --signal-ink: #8F5400;
  --on-signal: #0E1726;
  --lane: rgba(14, 23, 38, .16);
  --ph-bg: rgba(245, 165, 36, .14);
  --danger: #C2323A;
  /* The open halo: on light grounds a solid amber that keeps 3:1 against
     them (the gradient's light top washes out); on dark ones, the app's
     gradient (#halo-grad, defined in the header's mark). */
  --mark: #C07600;
  /* The stage is always a garage at night, in both themes */
  --night: #0E1726;
  --night-deep: #09101C;
  --night-surface: #18243C;
  --night-edge: #243352;
  --night-ink: #EEF3FA;
  --night-muted: #8FA2C0;

  --gutter: clamp(16px, 5vw, 72px);
  --pad-l: max(var(--gutter), env(safe-area-inset-left, 0px));
  --pad-r: max(var(--gutter), env(safe-area-inset-right, 0px));
  --max: 1240px;
  --head-h: 60px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --text: Barlow, "Segoe UI", Roboto, system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1726;
    --ground-2: #111C2F;
    --surface: #18243C;
    --ink: #EEF3FA;
    --muted: #93A5C2;
    --edge: #26365A;
    --signal-ink: #F5A524;
  --mark: url(#halo-grad) #F5A524;
    --mark: url(#halo-grad) #F5A524;
    --lane: rgba(238, 243, 250, .14);
    --ph-bg: rgba(245, 165, 36, .12);
    --danger: #FF7A7F;
    --night: #0A1220;
    --night-deep: #070D18;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --ground: #0E1726;
  --ground-2: #111C2F;
  --surface: #18243C;
  --ink: #EEF3FA;
  --muted: #93A5C2;
  --edge: #26365A;
  --signal-ink: #F5A524;
  --lane: rgba(238, 243, 250, .14);
  --ph-bg: rgba(245, 165, 36, .12);
  --danger: #FF7A7F;
  --night: #0A1220;
  --night-deep: #070D18;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: hidden;
  /* No square flash on tap: each control shows its own pressed state below */
  -webkit-tap-highlight-color: transparent;
}
@media (min-width: 900px) { body { font-size: 1.125rem; } }
h1, h2, h3, h4, p, dl, dd, figure, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; touch-action: manipulation; }
img, svg { max-width: 100%; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; }
/* The ring follows each control's own shape; only plain text links get a soft corner */
a:not([class]):focus-visible { border-radius: 4px; }
/* Pressed state with the control's shape, for touch */
.menu-btn, .tab, .faq summary { transition: transform .12s var(--ease-out); }
.menu-btn:active, .tab:active, .copy:active { transform: scale(.96); }
.faq summary:active { transform: scale(.99); }
.skip {
  position: absolute; left: 12px; top: -120px; z-index: 50;
  padding: 12px 18px; border-radius: 12px;
  background: var(--signal); color: var(--on-signal); font-weight: 800; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad-l); padding-right: var(--pad-r); }

.label {
  font: 700 .82rem/1.3 var(--display);
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--signal-ink);
}
h2 {
  font: 800 clamp(2.2rem, 6vw, 4.75rem)/.94 var(--display);
  letter-spacing: -.01em; text-transform: uppercase;
  text-wrap: balance; overflow-wrap: break-word;
}
h3 { font: 700 1.4rem/1.12 var(--display); letter-spacing: .01em; text-transform: uppercase; text-wrap: balance; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 40ch; text-wrap: pretty; }

section { padding-block: clamp(52px, 10vw, 128px); }

/* ---------- Placeholders the owner fills in later ---------- */
.ph {
  display: inline; padding: .08em .5em; border-radius: 6px;
  border: 1.5px dashed var(--signal-ink); background: var(--ph-bg); color: var(--signal-ink);
  font: 600 .86em/1.5 var(--text); letter-spacing: 0; text-transform: none;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  overflow-wrap: anywhere;
}
.ph-block {
  display: block; padding: 16px 18px; border-radius: 14px;
  border: 1.5px dashed var(--signal-ink); background: var(--ph-bg); color: var(--signal-ink);
  font: 500 1rem/1.55 var(--text);
}
.night .ph, .night .ph-block { border-color: var(--signal); color: var(--signal); }

/* ---------- Buttons and links (every target at least 44 px) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px;
  border-radius: 999px; border: 0;
  background: var(--signal); color: var(--on-signal);
  font: 800 1.0625rem/1.15 var(--text); letter-spacing: .01em;
  text-decoration: none; text-align: center;
  box-shadow: 0 10px 30px -14px rgba(245, 165, 36, .8);
  transition: transform .18s var(--ease-spring), box-shadow .3s var(--ease-out);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-quiet { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; opacity: .9; }
.btn-small { min-height: 44px; padding: 0 16px; font-size: .98rem; }
.btn-block { width: 100%; }
@media (min-width: 560px) { .btn-block { width: auto; } }
.btn:focus-visible { box-shadow: 0 0 0 6px rgba(245, 165, 36, .22); }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 0 0 6px rgba(245, 165, 36, .16), 0 16px 34px -14px rgba(245, 165, 36, .9); }
  .btn-quiet:hover { box-shadow: inset 0 0 0 1.5px currentColor, 0 0 0 5px rgba(245,165,36,.14); }
}

.arrow-link { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 700; text-decoration: none; color: var(--ink); }
.arrow-link::after { content: "→"; color: var(--signal-ink); transition: transform .25s var(--ease-spring); }
.arrow-link:focus-visible::after, .arrow-link:active::after { transform: translateX(5px); }
@media (hover: hover) { .arrow-link:hover::after { transform: translateX(5px); } }
.night .arrow-link { color: var(--night-ink); }
.night .arrow-link::after { color: var(--signal); }

/* ---------- Header: compact on phone, menu behind a toggle ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: color-mix(in srgb, var(--ground) 90%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--edge);
}
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; min-height: var(--head-h); padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 1.45rem/1 var(--display); letter-spacing: .04em; text-transform: uppercase; }
/* The open halo (the app's mark): r 38 of 100, round caps, a 14 % gap
   centred at six o'clock */
.mark path { fill: none; stroke: var(--mark); stroke-width: 12; stroke-linecap: round; }
.brand svg { width: 26px; height: 26px; transition: transform .5s var(--ease-spring); }
.top .btn-small { margin-left: auto; }
.menu-btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; min-width: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--edge); background: transparent; color: var(--ink);
  font-weight: 600; font-size: .98rem;
}
.menu-icon { position: relative; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: background .2s; }
.menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .25s var(--ease-out); }
.menu-icon::before { transform: translateY(-6px); }
.menu-icon::after { transform: translateY(6px); }
/* En móvil el logo, «Pide información» y «Menú» no caben en una fila:
   el botón del menú se queda en el icono (el texto sigue para lectores
   de pantalla) y, en los más estrechos, el logo y el botón encogen. */
@media (max-width: 519px) {
  .menu-btn { position: relative; width: 44px; padding: 0; justify-content: center; }
  .menu-btn > span:not(.menu-icon) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .top.menu-ready .wrap { flex-wrap: nowrap; gap: 0 8px; }
  .top.menu-ready.menu-open .wrap { flex-wrap: wrap; }
}
@media (max-width: 399px) {
  .brand { font-size: 1.25rem; gap: 8px; }
  .brand svg { width: 22px; height: 22px; }
  .top .btn-small { padding: 0 12px; font-size: .92rem; }
}
.top.menu-open .menu-icon { background: transparent; }
.top.menu-open .menu-icon::before { transform: rotate(45deg); }
.top.menu-open .menu-icon::after { transform: rotate(-45deg); }
/* Without JS the links stay visible as a row; with JS they fold into the menu */
.top nav { order: 3; width: 100%; display: flex; flex-wrap: wrap; gap: 0 18px; padding-bottom: 4px; }
.top nav a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; color: var(--muted); font-weight: 600; font-size: 1.02rem;
}
.top nav a[aria-current="page"] { color: var(--ink); }
.top nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 3px; border-radius: 2px;
  background: var(--signal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-out);
}
.top nav a[aria-current="page"]::after { transform: scaleX(1); }
.top.menu-ready nav { display: none; }
.top.menu-ready.menu-open nav { display: grid; gap: 0; padding-block: 4px 12px; animation: drop .25s var(--ease-out); }
.top.menu-ready.menu-open nav a { min-height: 52px; border-top: 1px solid var(--edge); font-size: 1.15rem; }
.top.menu-ready.menu-open nav a::after { right: auto; width: 28px; bottom: 10px; }
@keyframes drop { from { opacity: 0; translate: 0 -6px; } to { opacity: 1; translate: 0 0; } }
@media (hover: hover) {
  .top nav a:hover { color: var(--ink); }
  .top nav a:hover::after { transform: scaleX(.5); }
  .brand:hover svg { transform: scale(1.12); }
}
@media (min-width: 1000px) {
  :root { --head-h: 68px; }
  .top .wrap { flex-wrap: nowrap; gap: 28px; }
  .menu-btn { display: none; }
  .top nav, .top.menu-ready nav, .top.menu-ready.menu-open nav { order: 0; width: auto; display: flex; gap: 22px; margin-left: auto; padding: 0; animation: none; }
  .top.menu-ready.menu-open nav a { min-height: 44px; border-top: 0; font-size: 1.02rem; }
  .top .btn-small { margin-left: 0; order: 4; }
}

/* ---------- Motion: reveal on scroll, both ways (visible at rest) ---------- */
/* JS (halo.js, watch) adds .rv only to elements out of view and only when
   motion is allowed; .rv-up marks one waiting above the screen, so it
   arrives from above (scrolling up) instead of from below. */
.rv { opacity: .12; translate: 0 18px; }
.rv.rv-up { translate: 0 -18px; }
.rv-in { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease-out), translate .8s var(--ease-out); }
[data-reveal="group"].rv, [data-reveal="group"].rv-in { opacity: 1; translate: none; }
[data-reveal="group"].rv > * { opacity: .12; translate: 0 18px; }
[data-reveal="group"].rv.rv-up > * { translate: 0 -18px; }
[data-reveal="group"].rv-in > * {
  opacity: 1; translate: 0 0;
  transition: opacity .7s var(--ease-out), translate .7s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
/* Scrolling up, the last item of a group is the first one back */
[data-reveal="group"].rv-in.rv-up > * { transition-delay: calc((var(--n, 1) - 1 - var(--i, 0)) * 90ms); }

/* Cards that arrive as you scroll (halo.js, [data-fx]): only transform and
   opacity move, and only for cards JS has marked .fx-pre. Going up
   (.fx-up) the side is mirrored: a left card comes back from the right. */
[data-fx].fx-pre { opacity: 0; }
/* A section with cards that slide in clips them, so none widens the page */
.fx-clip { overflow-x: clip; }
/* A page can soften it: --fx-dist (how far, 48 px) and --fx-dur (0.8 s) */
[data-fx="left"].fx-pre, [data-fx="right"].fx-pre.fx-up { translate: calc(-1 * var(--fx-dist, 48px)) 0; }
[data-fx="right"].fx-pre, [data-fx="left"].fx-pre.fx-up { translate: var(--fx-dist, 48px) 0; }
[data-fx="rise"].fx-pre { translate: 0 36px; scale: .96; }
[data-fx="rise"].fx-pre.fx-up { translate: 0 -36px; }
[data-fx].fx-in {
  opacity: 1; translate: 0 0; scale: 1;
  transition: opacity .6s var(--ease-out), translate var(--fx-dur, .8s) cubic-bezier(.2, .8, .2, 1), scale var(--fx-dur, .8s) cubic-bezier(.2, .8, .2, 1);
  transition-delay: var(--fx-delay, 0ms);
}
/* Load sequence: text settles in from a visible state */
.intro > * { animation: settle .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes settle { from { opacity: .35; translate: 0 12px; } to { opacity: 1; translate: 0 0; } }

/* ---------- Hero ---------- */
/* Phone: headline, lead and CTA first, the stage right under them, extras after */
.hero { padding-block: 18px 40px; }
.hero .wrap {
  display: grid; gap: 22px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "intro" "stage" "extra";
}
.hero .intro { grid-area: intro; }
.hero .stage { grid-area: stage; }
.hero-extra { grid-area: extra; display: grid; gap: 18px; align-content: start; }
.hero h1 {
  margin-top: 10px;
  font: 800 clamp(3rem, 14vw, 7.6rem)/.86 var(--display);
  letter-spacing: -.015em; text-transform: uppercase;
  text-wrap: balance;
}
.hero h1 em { font-style: normal; color: var(--signal-ink); }
.hero .lead { margin-top: 14px; color: var(--ink); max-width: 32ch; font-size: clamp(1.1rem, 1.8vw, 1.45rem); line-height: 1.45; }
.hero .lead span { color: var(--muted); }
.hero .intro .btn { margin-top: 18px; width: 100%; }
.hero-extra .btn { width: 100%; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 1rem; }
.hero-meta li { display: flex; align-items: center; gap: 8px; }
.hero-meta li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--signal); }
@media (min-width: 560px) {
  .hero .intro .btn, .hero-extra .btn { width: auto; justify-self: start; }
}
@media (min-width: 900px) {
  .hero { padding-block: clamp(28px, 5vw, 64px) clamp(48px, 7vw, 88px); }
  .hero .wrap {
    column-gap: clamp(32px, 5vw, 64px); row-gap: 28px;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    grid-template-areas: "intro stage" "extra stage";
    align-items: center;
  }
  .hero .intro { align-self: end; }
  .hero-extra { align-self: start; }
  .hero h1 { margin-top: 18px; font-size: clamp(3.6rem, 7vw, 7rem); }
  .hero .lead { margin-top: 24px; }
  .hero .intro .btn { margin-top: 30px; }
}

/* Ticker of everyday moments */
.ticker { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 1.05rem; color: var(--ink); min-height: 1.6em; }
.ticker-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--signal); animation: ping 3.2s var(--ease-out) infinite; }
.ticker-track { display: grid; align-items: center; min-width: 0; }
/* One line per moment, and the next one only fades in once the previous has gone */
.ticker-track > span { grid-area: 1 / 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; translate: 0 .5em; transition: opacity .3s var(--ease-out), translate .3s var(--ease-out); }
.ticker-track > span.is-on { opacity: 1; translate: 0 0; transition-duration: .45s; transition-delay: .3s; }
.ticker-track > span.is-off { opacity: 0; translate: 0 -.5em; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.55); } 60%, 100% { box-shadow: 0 0 0 12px rgba(245,165,36,0); } }

/* The stage: a garage at night, a door that rises, a phone in front.
   Phone composition: a taller scene and a larger phone so the Abrir ring is
   thumb-sized; the desktop composition takes over from 900 px. */
.stage {
  --open: 0; --par: 0;
  position: relative;
  aspect-ratio: 1 / .9; max-width: 100%;
  border-radius: 24px;
  background: radial-gradient(120% 70% at 50% 0%, #1B2944 0%, var(--night) 60%, var(--night-deep) 100%);
  color: var(--night-ink);
  overflow: hidden;
  isolation: isolate;
}
.facade { position: absolute; inset: 10% 47% 0 11%; translate: 0 calc(var(--par) * 6px); }
.lintel { position: absolute; left: -6%; right: -6%; top: 0; height: 9%; background: #1D2B47; border-radius: 6px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.25); }
.lamp {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 18px; height: 18px; border-radius: 50%;
  background: #3A2A0F; box-shadow: inset 0 0 0 3px #4A3612;
}
.stage.moving .lamp { animation: blink .9s steps(2, jump-none) infinite; }
@keyframes blink { 0% { background: #3A2A0F; box-shadow: inset 0 0 0 3px #4A3612; } 100% { background: var(--signal); box-shadow: 0 0 18px 6px rgba(245,165,36,.55); } }
/* Halo's own unit, mounted on the wall beside the door */
.unit {
  position: absolute; left: -17%; top: 34%; width: 11%; aspect-ratio: 3 / 4;
  border-radius: 4px; background: #1D2B47; box-shadow: inset 0 0 0 1.5px #2B3C60, 0 4px 10px rgba(0,0,0,.35);
  display: grid; place-items: center;
}
.unit::before { content: ""; width: 38%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #5B4A2A; transition: border-color .3s, box-shadow .3s; }
.stage.sent .unit::before { border-color: var(--signal); box-shadow: 0 0 10px 2px rgba(245,165,36,.6); }
.bay { position: absolute; left: 0; right: 0; top: 9%; bottom: 0; overflow: hidden; background: #060B14; }
.interior { position: absolute; inset: 0; background: linear-gradient(#0B1322, #152139 70%, #1E2C47); }
.bulb { position: absolute; left: 50%; top: 6%; width: 40%; height: 5px; translate: -50% 0; border-radius: 3px; background: #FFE3AE; opacity: calc(.25 + var(--open) * .75); box-shadow: 0 0 calc(var(--open) * 60px) calc(var(--open) * 20px) rgba(255, 214, 140, .45); }
.parked { position: absolute; left: 50%; bottom: 10%; width: 78%; translate: -50% 0; }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 12%; background: #1A2640; }
.floor::before { content: ""; position: absolute; left: 50%; top: 35%; width: 4px; height: 70%; translate: -50% 0; background: repeating-linear-gradient(var(--signal) 0 10px, transparent 10px 20px); opacity: .6; }
.door {
  position: absolute; inset: 0;
  transform: translateY(calc(var(--open) * -92%));
  background:
    repeating-linear-gradient(180deg, #2A3A5C 0 2px, #33466C 2px 4px, #2E4064 4px calc(100% / 6 - 3px), #1B2742 calc(100% / 6 - 3px) calc(100% / 6));
  box-shadow: inset 0 -6px 0 #16213A, 0 8px 18px rgba(0,0,0,.4);
}
.door::after { content: ""; position: absolute; left: 42%; right: 42%; bottom: 7%; height: 3.5%; border-radius: 3px; background: #4A5E86; }

/* Phone */
.phone {
  position: absolute; right: 4%; bottom: -14%; z-index: 2;
  width: 46%; aspect-ratio: 9 / 18;
  border-radius: 30px; padding: 7px;
  background: #05080F;
  box-shadow: 0 0 0 1.5px #2B3A5A, 0 30px 60px -20px rgba(0,0,0,.8);
  rotate: -3deg;
  translate: 0 calc(var(--par) * -18px);
}
.screen {
  height: 100%; border-radius: 24px; overflow: hidden;
  background: var(--night);
  display: flex; flex-direction: column;
  padding: 11% 9% 0;
  container-type: inline-size;
}
.screen .bar { display: flex; justify-content: space-between; font: 600 clamp(10px, 6cqi, 13px)/1 var(--text); color: var(--night-muted); margin-top: -5%; }
.door-name { margin-top: 10%; font: 700 clamp(13px, 9.5cqi, 22px)/1.1 var(--display); letter-spacing: .02em; text-transform: uppercase; }
.status { margin-top: 4%; min-height: 23%; }
.status-head { font: 800 clamp(14px, 10cqi, 24px)/1.05 var(--text); min-height: 1.1em; }
.status-head.signal { color: var(--signal); }
.status-detail { margin-top: 4px; font-size: clamp(11px, 7cqi, 15px); line-height: 1.3; color: var(--night-muted); }
.ring {
  position: relative; align-self: center;
  width: 76%; min-width: 64px; aspect-ratio: 1; border-radius: 50%;
  border: 0; padding: 0; background: transparent; color: var(--night-ink);
  display: grid; place-items: center;
}
/* A larger invisible hit area for the thumb */
.ring::after { content: ""; position: absolute; inset: -14%; border-radius: 50%; }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: clamp(6px, 4.8cqi, 12px) solid var(--night-edge); transition: border-color .3s; }
.ring.working::before { border-color: transparent; border-top-color: var(--signal); animation: spin .8s linear infinite; }
.ring.signal::before { border-color: var(--signal); box-shadow: 0 0 30px rgba(245,165,36,.4); }
.ring-face { font: 800 clamp(16px, 12cqi, 28px)/1 var(--text); }
/* Sits on the ring's lower edge, clear of the status text above */
.ring-hint {
  position: absolute; left: 50%; bottom: 0; translate: -50% 50%; z-index: 1;
  padding: 4px 9px; border-radius: 999px;
  background: var(--signal); color: #0E1726;
  font: 800 clamp(10px, 6cqi, 12px)/1 var(--text); letter-spacing: .04em; text-transform: uppercase;
  white-space: nowrap;
  animation: hint 2.6s var(--ease-out) infinite;
}
@keyframes hint { 50% { translate: -50% 30%; } }
.stage.used .ring-hint { display: none; }
.stage:not(.used) .ring::before { animation: breathe 2.6s var(--ease-out) infinite; }
.ring.pressed { transform: scale(.95); transition: transform .12s; }
.wave { position: absolute; inset: 0; border-radius: 50%; border: 3px solid var(--signal); animation: wave .9s var(--ease-out) forwards; pointer-events: none; }
@keyframes wave { to { transform: scale(1.7); opacity: 0; } }
@keyframes spin { to { transform: rotate(1turn); } }
@keyframes breathe { 50% { border-color: #3B5180; } }
.key { margin-top: auto; padding-block: 7% 16%; border-top: 1px solid var(--night-edge); font-size: clamp(10px, 6cqi, 14px); color: var(--night-muted); display: flex; justify-content: space-between; gap: 6px; }
.key strong { color: var(--night-ink); font-weight: 600; }
@media (min-width: 900px) {
  .stage { aspect-ratio: 5 / 4.2; border-radius: 28px; }
  .facade { inset: 9% 36% 0 12%; }
  .unit { left: -15%; width: 8%; border-radius: 5px; }
  .parked { width: 72%; }
  .lamp { width: 22px; height: 22px; }
  .phone { right: 5%; bottom: -9%; width: 38%; aspect-ratio: 9 / 18.5; border-radius: 34px; padding: 8px; rotate: -4deg; }
  .screen { border-radius: 27px; padding: 12% 9% 0; }
  .ring { width: 72%; }
  .key { padding-block: 8% 12%; }
  .unit { animation: standby 4.8s ease-in-out infinite; }
}
@keyframes standby { 50% { box-shadow: inset 0 0 0 1.5px #3A4E78, 0 4px 10px rgba(0,0,0,.35), 0 0 16px rgba(245,165,36,.12); } }

/* ---------- Strip of three ---------- */
.strip { padding-block: 0; }
.strip ul { display: grid; grid-template-columns: minmax(0, 1fr); border-block: 1px solid var(--edge); }
.strip li { padding: 20px 0; display: grid; gap: 6px; align-content: start; }
.strip li + li { border-top: 1px solid var(--edge); }
.strip strong { font: 700 1.3rem/1.1 var(--display); text-transform: uppercase; letter-spacing: .01em; }
.strip span { color: var(--muted); font-size: 1.02rem; }
@media (min-width: 760px) {
  .strip ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .strip li { padding: 28px 28px 28px 0; }
  .strip li + li { padding-left: 28px; border-top: 0; border-left: 1px solid var(--edge); }
  .strip strong { font-size: 1.35rem; }
}

/* ---------- Steps: a painted lane (vertical on phone) ---------- */
.steps-head { display: grid; gap: 16px; max-width: 760px; }
.lane {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px;
  margin-top: clamp(32px, 6vw, 72px);
}
.lane::before {
  content: ""; position: absolute; left: 30px; top: 0; bottom: 0; width: 4px;
  background: repeating-linear-gradient(180deg, var(--signal) 0 26px, transparent 26px 44px);
}
.lane li { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); column-gap: 18px; row-gap: 6px; align-content: start; }
.lane li .step-no { grid-row: span 2; }
.step-no {
  width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ground); border: 4px solid var(--ink);
  font: 800 2rem/1 var(--display);
}
.lane li:last-child .step-no { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.lane.rv-in li:last-child .step-no { animation: glowOnce 1.2s var(--ease-out) 1.2s both; }
@keyframes glowOnce { 0% { box-shadow: 0 0 0 0 rgba(245,165,36,.6); } 100% { box-shadow: 0 0 0 22px rgba(245,165,36,0); } }
.lane h3 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); margin-top: 12px; }
.lane p { color: var(--muted); max-width: 34ch; }
@media (min-width: 760px) {
  .lane { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
  .lane::before { left: 0; right: 0; top: 38px; bottom: auto; width: auto; height: 4px; background: repeating-linear-gradient(90deg, var(--signal) 0 26px, transparent 26px 44px); }
  .lane li { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .lane li .step-no { grid-row: auto; }
  .step-no { width: 80px; height: 80px; font-size: 2.4rem; }
  .lane h3 { margin-top: 8px; }
}

/* ---------- Devices ---------- */
.band { background: var(--ground-2); }
.split-head { display: grid; gap: 18px; }
.split-head > div { display: grid; gap: 14px; }
@media (min-width: 760px) { .split-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; } }
.devices { display: grid; gap: 24px; grid-template-columns: minmax(0, 1fr); margin-top: clamp(32px, 6vw, 64px); }
.device { display: grid; grid-template-rows: auto 1fr; gap: 14px; }
.device figure {
  border-radius: 20px; background: var(--night); color: var(--night-ink);
  height: clamp(190px, 50vw, 270px); max-width: 100%;
  display: grid; place-items: center; overflow: hidden; position: relative;
}
.device svg { width: auto; height: 82%; max-width: 88%; }
.device h3 { font-size: 1.4rem; }
.device p { color: var(--muted); margin-top: 6px; }
/* The Abrir ring lights up in sequence: phone, car, watch (filter on a tiny SVG shape) */
.devices .device:nth-child(1) .dev-ring { animation: seq 7.2s ease-in-out 1s infinite; }
.devices .device:nth-child(2) .dev-ring { animation: seq 7.2s ease-in-out 3.4s infinite; }
.devices .device:nth-child(3) .dev-ring { animation: seq 7.2s ease-in-out 5.8s infinite; }
@keyframes seq {
  0%, 22%, 100% { stroke: #F5A524; stroke-opacity: 1; }
  6%, 14% { stroke: #FFD27A; stroke-opacity: .55; }
}
@media (min-width: 560px) {
  .devices { grid-template-columns: 1fr 1fr; }
  .device.wide { grid-column: 1 / -1; order: -1; }
  .device figure { height: clamp(200px, 26vw, 270px); }
}
@media (min-width: 900px) {
  .devices { grid-template-columns: 1fr 1.5fr 1fr; gap: 20px; }
  .device.wide { grid-column: auto; order: 0; }
  .device figure { height: clamp(210px, 22vw, 270px); transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out); }
  @keyframes seq {
    0%, 22%, 100% { filter: none; stroke: #F5A524; }
    6%, 14% { filter: drop-shadow(0 0 9px rgba(245,165,36,.95)); stroke: #FFC766; }
  }
}
@media (hover: hover) and (min-width: 900px) {
  .device:hover figure { transform: translateY(-4px); box-shadow: 0 24px 40px -26px rgba(9, 16, 28, .8); }
}

.fits { margin-top: clamp(40px, 7vw, 80px); display: grid; grid-template-columns: minmax(0, 1fr); border-top: 4px solid var(--ink); }
.fits > div { padding: 20px 0; display: grid; gap: 8px; align-content: start; }
.fits > div + div { border-top: 1px solid var(--edge); }
.fits p { color: var(--muted); }
@media (min-width: 760px) {
  .fits { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fits > div { padding: 26px 24px 0 0; }
  .fits > div + div { padding-left: 24px; border-top: 0; border-left: 1px solid var(--edge); }
}

/* ---------- Who: tabs ---------- */
.who .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.who-intro { display: grid; gap: 14px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.tab {
  min-height: 44px; padding: 0 16px; border-radius: 999px;
  border: 1.5px solid var(--edge); background: transparent; color: var(--ink);
  font-weight: 600; font-size: 1rem;
  transition: background .2s, border-color .2s, color .2s, transform .12s var(--ease-out);
}
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: var(--ground); }
@media (hover: hover) { .tab:hover { border-color: var(--muted); } .tab[aria-selected="true"]:hover { border-color: var(--ink); } }
.panel { margin-top: 22px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; padding-top: 22px; border-top: 1px solid var(--edge); }
/* Without JS the panels read stacked, each with its label; halo.js adds .tabs-ready */
.panel-label { margin-bottom: 8px; }
.tabs-ready .panel-label { display: none; }
.tabs-ready .panel:not([hidden]) { animation: panelIn .45s var(--ease-out); }
@keyframes panelIn { from { opacity: .3; translate: 10px 0; } to { opacity: 1; translate: 0 0; } }
.panel svg { width: 72px; height: 72px; color: var(--ink); }
.panel h3 { font-size: clamp(1.75rem, 3.4vw, 2.7rem); line-height: 1; }
.panel p { margin-top: 12px; color: var(--muted); max-width: 46ch; }
.panel ul { margin-top: 16px; display: grid; gap: 10px; }
.panel li { display: flex; gap: 12px; align-items: baseline; }
.panel li::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; border: 2.5px solid var(--signal); translate: 0 -1px; }
@media (min-width: 560px) {
  .panel { grid-template-columns: 120px minmax(0, 1fr); gap: 28px; }
  .panel svg { width: 120px; height: 120px; }
}
@media (min-width: 900px) {
  .who .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 88px); }
  .who-intro { position: sticky; top: 100px; gap: 18px; }
  .panel { grid-template-columns: 150px minmax(0, 1fr); margin-top: 28px; padding-top: 28px; }
  .panel svg { width: 150px; height: 150px; }
}

/* ---------- Night band ---------- */
.night { --mark: url(#halo-grad) #F5A524; background: var(--night); color: var(--night-ink); position: relative; overflow: hidden; isolation: isolate; }
.night .label { color: var(--signal); }
.night .lead { color: var(--night-muted); }
.night::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(60% 80% at 85% 0%, rgba(245,165,36,.10), transparent 60%);
}
/* Two dark sections in a row read as one: only the first carries the glow,
   so no second glow starts at the joint and draws a band edge there. */
.night:not(.bp) + .night:not(.bp)::before { display: none; }
.cols-4 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; }
.cols-4 > div { padding: 20px 0; display: grid; gap: 8px; align-content: start; border-top: 1px solid var(--night-edge); }
.cols-4 p { color: var(--night-muted); }
.cols-4 h3 { color: var(--night-ink); font-size: 1.3rem; }
@media (min-width: 560px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .cols-4 > div { padding-bottom: 0; } }
.stack { display: grid; gap: 16px; align-content: start; }
.stack-lg { display: grid; gap: clamp(28px, 5vw, 56px); }

/* ---------- Explore the rest of the site ---------- */
.explore { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: clamp(28px, 5vw, 56px); }
.explore a {
  position: relative; display: grid; gap: 8px; align-content: start;
  padding: 20px 20px 22px; border-radius: 18px; text-decoration: none;
  background: var(--surface); border: 1px solid var(--edge);
  transition: transform .3s var(--ease-out), border-color .3s;
}
.explore a:active { transform: scale(.99); border-color: var(--signal); }
.explore a:focus-visible { border-color: var(--signal); }
.explore strong { font: 800 1.5rem/1 var(--display); text-transform: uppercase; }
.explore span { color: var(--muted); font-size: 1rem; }
.explore i { font-style: normal; color: var(--signal-ink); font-weight: 700; margin-top: 4px; transition: translate .25s var(--ease-spring); }
@media (hover: hover) {
  .explore a:hover { transform: translateY(-4px); border-color: var(--signal); box-shadow: 0 22px 40px -28px rgba(14,23,38,.55); }
  .explore a:hover i { translate: 5px 0; }
}
@media (min-width: 560px) { .explore { grid-template-columns: 1fr 1fr; gap: 16px; } }
@media (min-width: 1100px) { .explore { grid-template-columns: repeat(4, minmax(0, 1fr)); } .explore a { padding: 24px 22px 26px; border-radius: 20px; } }

/* ---------- FAQ ---------- */
.faq .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }
.faq details { border-bottom: 1px solid var(--edge); }
.faq details:first-child { border-top: 1px solid var(--edge); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  min-height: 56px; padding-block: 16px;
  font-weight: 600; font-size: 1.1rem; line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%;
  border: 3px solid var(--edge);
  transition: border-color .25s, background .25s, transform .35s var(--ease-spring);
}
.faq details[open] summary::after { border-color: var(--signal); background: var(--signal); transform: scale(.8); }
.faq details p { padding-bottom: 20px; color: var(--muted); max-width: 60ch; }
.faq details[open] p { animation: settle .4s var(--ease-out); }
.faq h2 { overflow-wrap: break-word; }
@media (hover: hover) { .faq summary:hover::after { border-color: var(--signal); } }
@media (min-width: 900px) {
  .faq .wrap { grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(32px, 6vw, 88px); }
  .faq summary { font-size: 1.18rem; padding-block: 22px; }
}

/* ---------- Pilot + form ---------- */
.pilot .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
.pilot-copy { display: grid; gap: 18px; align-content: start; }
.big-ring { width: clamp(84px, 16vw, 190px); height: auto; }
.terms { display: grid; gap: 0; margin-top: 4px; }
.terms div { display: grid; grid-template-columns: 8ch minmax(0, 1fr); gap: 14px; padding-block: 14px; border-top: 1px solid var(--edge); }
.terms dt { font: 700 .95rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--signal-ink); }
.terms dd { color: var(--ink); }
.mail { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--muted); }
.mail code { font: 600 1.05rem/1.2 var(--text); color: var(--ink); user-select: all; -webkit-user-select: all; padding: 12px 14px; border-radius: 12px; background: var(--ground-2); overflow-wrap: anywhere; max-width: 100%; }
.copy { min-height: 44px; min-width: 44px; padding: 0 18px; border-radius: 999px; border: 1.5px solid var(--edge); background: transparent; font-size: .98rem; font-weight: 600; transition: border-color .2s, background .2s, transform .12s var(--ease-out); }
.copy:active, .copy:focus-visible { border-color: var(--signal); }
@media (hover: hover) { .copy:hover { border-color: var(--signal); } }

.form {
  background: var(--surface); border: 1px solid var(--edge);
  border-radius: 20px; padding: 20px;
  display: grid; gap: 18px;
}
.form-body { display: grid; gap: 18px; }
.form h3 { font-size: 1.8rem; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
.field input, .field textarea {
  min-height: 52px; padding: 0 14px; border-radius: 12px; width: 100%;
  font-size: 1.0625rem; /* 16 px or more, so phones do not zoom in on focus */
  border: 1.5px solid var(--edge); background: var(--ground);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 104px; padding-block: 12px; resize: vertical; line-height: 1.45; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--signal); box-shadow: 0 0 0 4px rgba(245,165,36,.2); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.check { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 1rem; cursor: pointer; }
.check input { width: 24px; height: 24px; accent-color: var(--signal); flex: none; }
.form .btn { width: 100%; }
.form-legal { font-size: .95rem; color: var(--muted); }
.form-legal a { display: inline-block; padding-block: 10px; }
.form-error { color: var(--danger); font-weight: 600; font-size: 1rem; }
.done { display: grid; gap: 14px; animation: settle .5s var(--ease-out); }
.done:focus { outline: none; }
.done h3 { font-size: 2.2rem; color: var(--signal-ink); }
/* The trap field: off screen for people, still in the form for robots */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form { position: relative; }
.form .btn[disabled] { opacity: .7; cursor: progress; }
.form-fail { display: grid; gap: 12px; padding: 16px; border-radius: 14px; border: 1.5px solid var(--danger); }
.form-fail pre {
  margin: 0; padding: 16px; border-radius: 14px; background: var(--ground);
  border: 1px solid var(--edge);
  font: 500 .98rem/1.5 var(--text); white-space: pre-wrap; overflow-wrap: anywhere;
  user-select: all; -webkit-user-select: all;
}
.row { display: grid; gap: 10px; }
.row .btn { width: 100%; }
@media (min-width: 560px) {
  .row { display: flex; flex-wrap: wrap; }
  .row .btn { width: auto; }
  .form { padding: clamp(24px, 4vw, 40px); border-radius: 24px; }
  .form .btn { width: auto; justify-self: start; }
  .form h3 { font-size: 2rem; }
}
@media (min-width: 900px) {
  .pilot .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 80px); }
  .pilot-copy { gap: 22px; }
}

/* ---------- Sub-page head: a night band with a lane that paints in ---------- */
.page-head { padding-block: 40px 64px; }
.page-head .wrap { display: grid; gap: 16px; }
.page-head h1 {
  font: 800 clamp(2.6rem, 12vw, 6.6rem)/.88 var(--display);
  letter-spacing: -.015em; text-transform: uppercase; text-wrap: balance; max-width: 16ch;
  overflow-wrap: break-word;
}
.page-head h1 em { font-style: normal; color: var(--signal); }
.page-head .lead { max-width: 52ch; }
.page-head::after {
  content: ""; position: absolute; left: var(--pad-l); right: var(--pad-r); bottom: 26px; height: 4px;
  /* One 44 px tile per dash, so a moving pattern has no seam at the edge */
  background: linear-gradient(90deg, var(--signal) 0 26px, transparent 26px) 0 0 / 44px 100% repeat-x;
  opacity: .8; animation: paint 1.5s linear .3s both;
}
/* Road markings passing: the dashes keep their length and gap (one period
   is 44 px) and slide in from the right, brake a little past their place
   and settle back. Only the position moves; nothing is scaled. */
@keyframes paint {
  0% { background-position-x: 616px; opacity: 0; animation-timing-function: cubic-bezier(.25, .55, .3, 1); }
  12% { opacity: .8; }
  78% { background-position-x: -8px; animation-timing-function: cubic-bezier(.45, 0, .35, 1); }
  100% { background-position-x: 0; opacity: .8; }
}
/* When the title comes back into view (halo.js, watch) the dashes slide in
   again: from the right going down, from the left going up (paintBack). */
.page-head.ph-up::after { animation-name: paintBack; }
/* (after .ph-up: while out of view nothing plays) */
.page-head.ph-out::after, .page-head.ph-out .intro > * { animation: none; }
@keyframes paintBack {
  0% { background-position-x: -616px; opacity: 0; animation-timing-function: cubic-bezier(.25, .55, .3, 1); }
  12% { opacity: .8; }
  78% { background-position-x: 8px; animation-timing-function: cubic-bezier(.45, 0, .35, 1); }
  100% { background-position-x: 0; opacity: .8; }
}
@media (min-width: 900px) {
  .page-head { padding-block: clamp(56px, 9vw, 120px) clamp(64px, 9vw, 120px); }
  .page-head .wrap { gap: 22px; }
  .page-head::after { bottom: 34px; }
}

/* ---------- Long-form: heading, then reading column; side by side from 900 px ---------- */
.chapter { border-top: 1px solid var(--edge); }
.band.chapter { border-top: 0; }
.chapter > .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; align-items: start; }
.chapter-aside { display: grid; gap: 14px; }
.chapter-aside h2 { font-size: clamp(2.1rem, 4.6vw, 3.8rem); }
.chapter-aside svg.mark { width: 64px; height: auto; color: var(--ink); }
.prose { max-width: 64ch; display: grid; gap: 1em; }
.prose p { color: var(--ink); text-wrap: pretty; }
.prose h3 { margin-top: .7em; font-size: clamp(1.4rem, 2.2vw, 1.8rem); }
.points { display: grid; gap: 0; margin-top: .3em; }
.points li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; padding-block: 14px; border-top: 1px solid var(--edge); }
.points li:last-child { border-bottom: 1px solid var(--edge); }
.points li::before { content: ""; width: 12px; height: 12px; margin-top: .45em; border-radius: 50%; border: 3px solid var(--signal); }
.points b { font-weight: 600; display: block; }
.points span { color: var(--muted); }
@media (min-width: 900px) {
  .chapter > .wrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 6vw, 96px); }
  .chapter-aside { position: sticky; top: 110px; gap: 18px; }
  .chapter-aside svg.mark { width: clamp(84px, 10vw, 120px); }
  .prose { gap: 1.1em; }
}

/* Requirement checklist on compatibilidades */
.needs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: clamp(28px, 5vw, 48px); }
.needs li { border-radius: 18px; background: var(--surface); border: 1px solid var(--edge); padding: 20px; display: grid; gap: 10px; align-content: start; }
.needs .tick { width: 40px; height: 40px; color: var(--signal-ink); }
.needs p { color: var(--muted); }
@media (min-width: 900px) {
  .needs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .needs li { padding: 24px; border-radius: 20px; }
}

/* ---------- Quién está detrás: fact sheet ---------- */
.sheet { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; border-top: 4px solid var(--ink); margin-top: clamp(28px, 5vw, 56px); }
.sheet > div { padding-block: 16px; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--edge); }
.sheet dt { font: 700 .82rem/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.sheet dd { font: 700 1.35rem/1.2 var(--display); text-transform: uppercase; overflow-wrap: break-word; }
@media (min-width: 560px) { .sheet { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sheet > div { padding-block: 22px; } .sheet dd { font-size: 1.5rem; } }

/* ---------- Shared links (/i/<code>, /c/<code>): the code, big and easy to copy ---------- */
.link-code { display: grid; gap: 12px; max-width: 44rem; }
.link-code-label { font: 700 .95rem/1.4 var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--night-muted); }
.link-code-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.link-code code {
  display: block; max-width: 100%; padding: 14px 18px; border-radius: 14px;
  background: var(--night-surface); color: var(--night-ink);
  font: 800 clamp(2.2rem, 11vw, 3.6rem)/1.05 var(--display); letter-spacing: .08em;
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
.link-code code.long { font: 600 1.15rem/1.45 var(--text); letter-spacing: .02em; word-break: break-all; }
.link-code .copy { border-color: var(--night-edge); }
.link-note { max-width: 52ch; padding: 14px 18px; border-radius: 14px; background: var(--night-surface); color: var(--night-ink); }

/* ---------- Footer ---------- */
/* Footer. Phone: brand, then the pages in two columns, then the legal
   links. From 760 px: brand on the left (never narrower than its tagline
   and the address), the pages in columns on the right, and the legal
   links in a row underneath. */
footer { border-top: 1px solid var(--edge); }
footer .wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); color: var(--muted); font-size: 1rem; }
.foot-brand { display: grid; gap: 8px; align-content: start; }
.foot-brand .brand { color: var(--ink); }
.foot-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
footer nav a { display: flex; align-items: center; min-height: 44px; }
.foot-legal { display: flex; flex-wrap: wrap; gap: 0 24px; padding-top: 12px; border-top: 1px solid var(--edge); font-size: .95rem; }
footer a { text-decoration: none; }
.foot-tm { margin: 0; font-size: .8rem; line-height: 1.5; }
/* The address is one word: it moves whole to the next line, never splits */
.foot-mail { user-select: all; -webkit-user-select: all; color: var(--ink); white-space: nowrap; overflow-wrap: normal; }
@media (hover: hover) { footer a:hover { color: var(--ink); } }
@media (min-width: 760px) {
  footer .wrap { grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr); gap: 24px clamp(32px, 6vw, 96px); padding-block: 48px calc(40px + env(safe-area-inset-bottom, 0px)); }
  .foot-nav { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); column-gap: 24px; align-content: start; }
  .foot-legal { grid-column: 1 / -1; }
  .foot-tm { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, [data-reveal="group"].rv > * { opacity: 1 !important; translate: none !important; }
  [data-fx] { opacity: 1 !important; translate: none !important; scale: none !important; }
  .phone, .facade { translate: none !important; }
}
