/* Amble Baby website. Built 1:1 from Figma "WEB · Home v2 — critique fixes" (WP4iQmEaVzJdjP7VF8sWrt).
   Mobile layout (Figma 390) below 900px; desktop layout (Figma 1440) from 900px, scaling down with --u. */

/* ---------- Tokens (Figma variables: Storybook/Color/*) ---------- */
:root {
  --accent-primary: #8a6d6d;
  --accent-primary-pressed: #745a5a;
  --paper: #eae6e0;
  --paper-raised: #f8f4ee;
  --paper-deep: #f1ede7;
  --ink: #171717;
  --ink-secondary: #666159;
  --on-ink: #ffffff;
  --line: #d6d3cb;
  --night: #161513;
  --badge-black: #000000;
  --badge-stroke: #a6a6a6;

  --font-serif: "Sorts Mill Goudy", "Iowan Old Style", Georgia, serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --shadow-phone: 0 24px 48px -12px rgba(23, 18, 15, 0.16);
  --shadow-note: 0 12px 32px rgba(23, 18, 13, 0.16);
  --shadow-page: 0 24px 60px rgba(0, 0, 0, 0.45);

  --radius-phone: 48px;
  --focus: var(--accent-primary);

  /* Mobile unit: 1px at Figma's 390 width, up to 1.333px on large phones and small tablets. */
  --m: min(1.333px, calc(100vw / 390));
  /* Mobile content column: 342px at Figma's 390, centered, up to 472px wide on small tablets. */
  --px: max(24px, calc((100vw - 472px) / 2));
}
@media (min-width: 900px) {
  /* Desktop unit: 1px at Figma's 1440 width, scaling down to 0.625px at 900. */
  /* --x0 centers the 1440 composition on wider screens. */
  :root { --u: min(1px, calc(100vw / 1440)); --x0: max(0px, calc((100vw - 1440px) / 2)); }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--paper-raised); color: var(--ink); font-family: var(--font-sans); font-size: 17px; line-height: 1.5; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, figure, blockquote { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--paper-raised); color: var(--ink); padding: 10px 16px; border-radius: 6px; font-weight: 600; }
.skip:focus { top: 12px; }
.skip:focus-visible { outline-color: var(--ink); }

/* ---------- Nav ---------- */
.nav { --focus: var(--paper-raised); position: absolute; top: 0; left: 0; right: 0; z-index: 3; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 calc(var(--px) - 4px); color: var(--on-ink); }
.page-text .nav { position: relative; background: var(--accent-primary); }
.nav__logo img { width: 60px; height: auto; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.nav__link { display: none; font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; }
.nav__download { display: inline-flex; align-items: center; height: 44px; padding: 12px 20px; border-radius: 6px; background: var(--paper-raised); color: var(--ink); font-size: 15px; line-height: 20px; font-weight: 600; text-decoration: none; }
.lang { display: flex; align-items: center; }
.lang__opt { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 15px; line-height: 20px; font-weight: 500; text-decoration: none; }
.lang__opt[aria-current] { text-decoration: underline; text-underline-offset: 3px; }
.lang__div { font-size: 15px; font-weight: 500; }

/* ---------- Hero ---------- */
.hero { --focus: var(--paper-raised); position: relative; overflow: hidden; background: var(--accent-primary); color: var(--on-ink); padding: 100px var(--px) 40px; }
/* Layered drift: the Figma star layer (32%) floats slowly; a fainter, larger copy behind it drifts the other way for depth. */
.hero__stars { position: absolute; inset: -80px; background: url("/assets/img/star-ground.webp") center top / auto calc(100% + 160px) repeat-x; opacity: 0.32; animation: stars-drift 40s ease-in-out infinite alternate; will-change: transform; }
.hero__stars--far { inset: -160px; background-size: auto calc(100% + 320px); background-position: 30% 40%; opacity: 0.12; animation: stars-drift-far 56s ease-in-out infinite alternate; }
.hero.is-paused .hero__stars { animation-play-state: paused; }
@keyframes stars-drift { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-56px, -28px, 0); } }
@keyframes stars-drift-far { from { transform: translate3d(0, 0, 0) scale(1.15); } to { transform: translate3d(40px, 20px, 0) scale(1.15); } }
.hero__fade { position: absolute; inset: 0; background:
  linear-gradient(to bottom, var(--accent-primary) 0, rgba(138, 109, 109, 0.95) 60px, rgba(138, 109, 109, 0) 120px),
  radial-gradient(350px 450px at 90px 390px, var(--accent-primary) 62%, rgba(138, 109, 109, 0) 100%),
  radial-gradient(210px 100px at 50% calc(100% - 58px), var(--accent-primary) 55%, rgba(138, 109, 109, 0) 100%); }
.hero__copy { position: relative; z-index: 1; }
.hero__title { font-family: var(--font-serif); font-weight: 400; font-size: 48px; line-height: 1.02; letter-spacing: -0.02em; color: var(--paper-raised); }
:lang(es) .hero__title { font-size: 44px; }
.hero__sub { margin-top: 24px; max-width: 330px; font-size: 17px; line-height: 30px; }
.hero__ctas { display: flex; align-items: center; gap: 20px; margin-top: 28px; }
.hero__link { font-size: 15px; line-height: 20px; font-weight: 600; padding: 12px 0; text-underline-offset: 3px; }
.hero__lang { margin-top: 24px; font-size: 13px; line-height: 30px; }
.hero__media { position: relative; z-index: 1; margin: 36px -24px 0; padding-top: calc(70 * var(--m)); }
.hero__art { position: absolute; left: calc(-8 * var(--m)); top: 0; width: calc(300 * var(--m)); height: calc(274 * var(--m)); transform-origin: 0 0; transform: rotate(7deg); }
.hero__phone { position: relative; margin-left: calc(136 * var(--m)); width: calc(230 * var(--m)); }
.hero__phone img { width: 100%; border-radius: calc(37 * var(--m)); box-shadow: var(--shadow-phone); }
.hero__phone figcaption { margin: 12px -10px 0; font-size: 13px; line-height: 18px; text-align: center; }
.hero__pause { position: absolute; left: calc(24 * var(--m)); top: calc(512 * var(--m)); width: 44px; height: 44px; border: 1px solid var(--on-ink); border-radius: 50%; display: grid; place-items: center; background: var(--accent-primary); }
.hero__pause span { width: 12px; height: 14px; background: linear-gradient(to right, var(--on-ink) 0 4px, transparent 4px 8px, var(--on-ink) 8px 12px); }
.hero__pause[aria-pressed="true"] span { width: 12px; height: 14px; margin-left: 3px; background: var(--on-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }

/* ---------- App Store badge (placeholder until the official artwork is added, see HANDOFF.md) ---------- */
.badge { display: inline-flex; flex-direction: column; justify-content: center; height: 68px; padding: 10px 22px 10px 18px; border: 1px solid var(--badge-stroke); border-radius: 12px; background: var(--badge-black); color: #fff; text-decoration: none; white-space: nowrap; }
.badge__small { font-size: 13px; line-height: 18px; }
.badge__big { font-size: 24px; line-height: 28px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- How it works ---------- */
.hiw { --focus: var(--accent-primary); background: var(--paper); padding: 72px var(--px) 64px; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "seg" "stabs" "media" "panel" "art"; max-width: none; }
.hiw > * , .hiw__copy > * { min-width: 0; }
.hiw__copy { display: contents; }
.hiw__title { grid-area: title; font-family: var(--font-serif); font-weight: 400; font-size: 32px; line-height: 36px; color: var(--ink); }
.seg { grid-area: seg; display: flex; margin-top: 40px; padding: 4px; border-radius: 8px; background: var(--paper-deep); }
.seg__btn { flex: 1; height: 44px; border-radius: 6px; border: 1px solid transparent; font-size: 15px; line-height: 20px; font-weight: 600; color: var(--ink-secondary); }
.seg__btn[aria-selected="true"] { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--on-ink); }
.steps { display: none; }
.stabs { grid-area: stabs; display: flex; margin-top: 24px; }
.stab { position: relative; flex: 1; height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 20px; }
.stab[aria-selected="true"] { border-bottom: 2px solid var(--accent-primary); }
.stab__num { font-weight: 600; color: var(--accent-primary-pressed); }
.stab__label { font-weight: 500; color: var(--ink-secondary); }
.stab[aria-selected="true"] .stab__label { color: var(--ink); }
.hiw__media { grid-area: media; position: relative; margin-top: 24px; }
.hiw__phone { width: 280px; max-width: 82%; margin: 0 auto; }
.hiw__phone img { width: 100%; border-radius: 37px; box-shadow: var(--shadow-phone); }
.hiw__phone figcaption { margin: 12px -40px 0; font-size: 13px; line-height: 18px; color: var(--ink-secondary); text-align: center; }
.note { position: absolute; left: -14px; top: 6px; z-index: 1; display: flex; align-items: center; gap: 10px; max-width: 340px; padding: 9px 14px 9px 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper-raised); box-shadow: var(--shadow-note); }
.note__avatar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-primary); color: var(--on-ink); font-size: 11px; font-weight: 600; }
.note__text { display: flex; flex-direction: column; gap: 1px; }
.note__title { font-size: 13px; line-height: 16px; font-weight: 600; color: var(--ink); }
.note__body { font-size: 12px; line-height: 15px; color: var(--ink-secondary); }
.panel { grid-area: panel; margin-top: 24px; }
.panel__title { font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 26px; color: var(--ink); }
.panel__body { margin-top: 8px; font-size: 17px; line-height: 26px; color: var(--ink-secondary); }
.hiw__art { grid-area: art; justify-self: end; }
.hiw__art img[data-kind="step-basket"] { width: 150px; }
.hiw__art img[data-kind="step-mouse"] { width: 170px; }
.hiw__art img[data-kind="step-moon"] { width: 250px; }

/* Auto-cycle (while nobody has touched the section): the rose line under the active step fills as a timer. */
.hiw__media img, .note, .hiw__art img { transition: opacity 180ms ease-out; }
.hiw.is-swapping .hiw__media img, .hiw.is-swapping .note, .hiw.is-swapping .hiw__art img { opacity: 0; }
.hiw.is-cycling .stab[aria-selected="true"] { border-bottom-color: rgba(138, 109, 109, 0.25); }
.hiw.is-cycling .stab[aria-selected="true"]::after,
.hiw.is-cycling .step[aria-selected="true"] .step__rule::after { content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 2px; background: var(--accent-primary); transform-origin: left; animation: hiw-timer var(--cycle, 6s) linear forwards; }
.hiw.is-cycling .step[aria-selected="true"] .step__rule { position: relative; background: rgba(138, 109, 109, 0.25); }
.hiw.is-cycling .stab[aria-selected="true"]::after { bottom: -2px; }
@keyframes hiw-timer { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Sendoff band ---------- */
.band { --focus: var(--paper-raised); background: var(--night); color: var(--paper-raised); padding: 48px var(--px) 72px; overflow: hidden; }
.band__reader { width: 80px; height: 80px; margin-left: 21px; }
.band__title { margin-top: 16px; max-width: 300px; font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.05; }
.band__body { margin-top: 24px; font-size: 17px; line-height: 1.5; opacity: 0.82; }
.band__pages { position: relative; width: 320px; max-width: calc(100% - 21px); margin: 48px auto 0; aspect-ratio: 500 / 880; }
.band__page, .band__sheet { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 13px; }
.band__page { box-shadow: 0 15px 38px rgba(0, 0, 0, 0.45); }
.band__sheet { background: var(--paper-deep); transform-origin: 0 0; }
.band__sheet--back { opacity: 0.35; transform: translate(-2%, 1.25%) rotate(-4deg); }
.band__sheet--mid { opacity: 0.6; transform: translate(0, 0.2%) rotate(2.5deg); }

/* ---------- Closing CTA ---------- */
.cta { --focus: var(--accent-primary); background: var(--paper-raised); padding: 48px var(--px) 64px; }
.cta__art { width: 250px; margin: 0 auto; }
.cta__copy { margin-top: 36px; }
.cta__title { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.05; color: var(--ink); }
.cta__founder { margin-top: 24px; }
.cta__founder blockquote p { font-family: var(--font-serif); font-style: italic; font-size: 20px; line-height: 1.35; color: var(--ink); }
.cta__founder figcaption { margin-top: 10px; font-size: 15px; line-height: 1.2; color: var(--ink-secondary); }
.cta__row { display: flex; align-items: center; gap: 24px; margin-top: 24px; }
.cta__qr { display: none; width: 96px; height: 96px; border-radius: 8px; }
.cta__note { margin-top: 24px; font-size: 13px; line-height: 1.25; color: var(--ink-secondary); }

/* ---------- Footer ---------- */
.footer { --focus: var(--paper-raised); background: var(--accent-primary); color: var(--on-ink); }
.footer__inner { padding: 40px var(--px) 40px; display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo logo" "rule rule" "links links" "lang copy"; }
.footer__logo { grid-area: logo; width: 105px; height: auto; }
.footer__rule { grid-area: rule; width: 100%; margin: 32px 0 16px; border: 0; border-top: 1px solid var(--on-ink); }
.footer__links { grid-area: links; display: flex; flex-direction: column; align-items: flex-start; }
.footer__links a { font-size: 15px; line-height: 44px; font-weight: 500; text-decoration: none; }
.footer__links .footer__email { text-decoration: underline; text-underline-offset: 3px; }
.footer__copy { grid-area: copy; align-self: center; font-size: 13px; line-height: 18px; }
.footer .lang { grid-area: lang; margin-left: -12px; margin-top: 8px; }

/* ---------- Text pages (privacy, terms, support, join, 404) ---------- */
.text { background: var(--paper-raised); }
.text__inner { max-width: 720px; margin: 0 auto; padding: 56px 24px 96px; }
.text__title { font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.1; color: var(--ink); margin-bottom: 24px; }
.text__inner h2 { font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.2; margin: 40px 0 12px; }
.text__inner h3 { font-size: 17px; font-weight: 600; margin: 24px 0 8px; }
.text__inner p, .text__inner li { font-size: 17px; line-height: 1.6; }
.text__inner p + p { margin-top: 12px; }
.text__inner ul { padding-left: 22px; margin: 12px 0; }
.text__inner li + li { margin-top: 6px; }
.text__inner a { text-underline-offset: 3px; }
.placeholder { background: var(--paper-deep); outline: 1px dashed var(--accent-primary); padding: 0 4px; border-radius: 3px; color: var(--ink); }
.join__code { margin-top: 24px !important; font-size: 17px; }
.join__code strong { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 22px; letter-spacing: 0.08em; }

/* ---------- Desktop (Figma 1440) ---------- */
@media (min-width: 900px) {
  .nav { height: calc(80 * var(--u)); min-height: 64px; padding: 0 calc(var(--x0) + 96 * var(--u)); }
  .nav__logo img { width: calc(75 * var(--u)); min-width: 56px; }
  .nav__actions { gap: calc(32 * var(--u)); }
  .nav__link { display: inline-flex; align-items: center; min-height: 44px; }

  .hero { height: calc(960 * var(--u)); padding: 0; }
  .hero__stars { background-size: cover; background-position: center; background-repeat: no-repeat; }
  .hero__stars--far { background-position: 30% 40%; }
  .hero__fade { background:
    linear-gradient(to bottom, var(--accent-primary) 0, rgba(138, 109, 109, 0.95) calc(75 * var(--u)), rgba(138, 109, 109, 0) calc(150 * var(--u))),
    radial-gradient(calc(700 * var(--u)) calc(530 * var(--u)) at calc(var(--x0) + 320 * var(--u)) calc(490 * var(--u)), var(--accent-primary) 62%, rgba(138, 109, 109, 0) 100%),
    radial-gradient(calc(360 * var(--u)) calc(100 * var(--u)) at calc(var(--x0) + 1054 * var(--u)) calc(898 * var(--u)), var(--accent-primary) 55%, rgba(138, 109, 109, 0) 100%); }
  .hero__copy { position: absolute; left: calc(var(--x0) + 96 * var(--u)); top: calc(226 * var(--u)); width: calc(600 * var(--u)); }
  .hero__title { font-size: calc(92 * var(--u)); }
  :lang(es) .hero__title { font-size: calc(84 * var(--u)); }
  :lang(es) .hero__copy { width: calc(660 * var(--u)); }
  .hero__sub { margin-top: calc(24 * var(--u)); max-width: calc(520 * var(--u)); font-size: 20px; line-height: 1.5; }
  .hero__ctas { gap: calc(28 * var(--u)); margin-top: calc(40 * var(--u)); }
  .hero__lang { margin-top: calc(24 * var(--u)); font-size: max(13px, calc(15 * var(--u))); line-height: 2; }
  .hero__media { position: absolute; inset: 0; height: auto; margin: 0; z-index: 1; pointer-events: none; }
  .hero__media > * { pointer-events: auto; }
  .hero__art { left: calc(var(--x0) + 700 * var(--u)); top: calc(96 * var(--u)); width: calc(560 * var(--u)); height: calc(512 * var(--u)); }
  .hero__media { padding-top: 0; }
  .hero__phone { position: absolute; margin: 0; left: calc(var(--x0) + 1060 * var(--u)); top: calc(232 * var(--u)); width: calc(295 * var(--u)); }
  .hero__phone img { border-radius: calc(39.4 * var(--u)); }
  .hero__phone figcaption { margin: calc(16 * var(--u)) -40px 0; }
  .hero__pause { left: calc(var(--x0) + 96 * var(--u)); top: calc(876 * var(--u)); }

  .hiw { min-height: calc(1000 * var(--u)); padding: calc(120 * var(--u)) 0 calc(21 * var(--u));
    grid-template-columns: calc(var(--x0) + 206 * var(--u)) calc(360 * var(--u)) calc(218 * var(--u)) calc(560 * var(--u)) 1fr;
    grid-template-rows: auto auto auto 1fr;
    grid-template-areas: ". media . title ." ". media . seg ." ". media . steps ." ". media . art ."; align-content: start; }
  .hiw__title { font-size: calc(52 * var(--u)); line-height: 1.077; }
  .seg { margin-top: calc(40 * var(--u)); }
  .stabs, .panel { display: none; }
  .steps { grid-area: steps; display: flex; flex-direction: column; gap: calc(8 * var(--u)); margin-top: calc(24 * var(--u)); }
  .step { display: grid; grid-template-columns: calc(40 * var(--u)) 1fr; align-items: start; text-align: left; padding: calc(24 * var(--u)) calc(32 * var(--u)); border: 1px solid transparent; border-radius: 12px; }
  .step__num { padding-top: calc(8 * var(--u)); font-size: 15px; line-height: 20px; font-weight: 600; color: var(--accent-primary-pressed); }
  .step__title { font-family: var(--font-serif); font-size: max(22px, calc(28 * var(--u))); line-height: 1.143; color: var(--ink); }
  .step__body, .step__rule { display: none; grid-column: 2; }
  .step[aria-selected="true"] { padding: calc(32 * var(--u)); background: var(--paper-raised); border-color: var(--line); }
  .step[aria-selected="true"] .step__body { display: block; margin-top: calc(12 * var(--u)); font-size: 20px; line-height: 1.5; color: var(--ink-secondary); }
  .step[aria-selected="true"] .step__rule { display: block; width: calc(40 * var(--u)); height: 2px; margin-top: calc(24 * var(--u)); border-radius: 1px; background: var(--accent-primary); }
  .hiw__media { margin-top: 0; align-self: start; }
  .hiw__phone { width: 100%; max-width: none; }
  .hiw__phone img { border-radius: calc(48 * var(--u)); }
  .hiw__phone figcaption { margin: calc(16 * var(--u)) -40px 0; }
  .note { left: calc(-120 * var(--u)); top: calc(92 * var(--u)); max-width: none; gap: calc(12 * var(--u)); padding: calc(12 * var(--u)) calc(18 * var(--u)) calc(12 * var(--u)) calc(14 * var(--u)); border-radius: 16px; }
  .note__avatar { width: calc(36 * var(--u)); height: calc(36 * var(--u)); min-width: 30px; min-height: 30px; font-size: max(11px, calc(13 * var(--u))); }
  .note__text { gap: calc(2 * var(--u)); }
  .note__title { font-size: max(13px, calc(15 * var(--u))); line-height: 1.2; white-space: nowrap; }
  .note__body { font-size: max(12px, calc(13 * var(--u))); line-height: 1.23; white-space: nowrap; }
  .hiw__art { margin-top: calc(28 * var(--u)); }
  .hiw__art:has(img[data-kind="step-basket"]) { margin-top: calc(11 * var(--u)); }
  .hiw__art img[data-kind="step-basket"] { width: calc(250 * var(--u)); }
  .hiw__art img[data-kind="step-mouse"] { width: calc(280 * var(--u)); }
  .hiw__art img[data-kind="step-moon"] { width: calc(380 * var(--u)); }

  .band { position: relative; height: calc(1000 * var(--u)); padding: 0; }
  .band__copy { position: absolute; left: calc(var(--x0) + 96 * var(--u)); top: calc(367 * var(--u)); width: calc(600 * var(--u)); }
  .band__reader { position: absolute; left: calc(-9 * var(--u)); top: calc(-176 * var(--u)); width: calc(154 * var(--u)); height: calc(154 * var(--u)); margin: 0; }
  .band__title { margin-top: 0; max-width: none; font-size: calc(60 * var(--u)); }
  .band__body { margin-top: calc(24 * var(--u)); max-width: calc(500 * var(--u)); font-size: 19px; }
  .band__pages { position: absolute; left: calc(var(--x0) + 730 * var(--u)); top: calc(60 * var(--u)); width: calc(500 * var(--u)); max-width: none; margin: 0; }
  .band__page, .band__sheet { border-radius: 20px; }
  .band__page { box-shadow: var(--shadow-page); }

  .cta { position: relative; height: calc(680 * var(--u)); padding: 0; }
  .cta__art { position: absolute; left: calc(var(--x0) + 150 * var(--u)); top: calc(108 * var(--u)); width: calc(460 * var(--u)); margin: 0; }
  .cta__copy { position: absolute; left: calc(var(--x0) + 744 * var(--u)); top: calc(132 * var(--u)); width: calc(560 * var(--u)); margin: 0; }
  .cta__title { font-size: calc(60 * var(--u)); }
  .cta__founder { margin-top: calc(28 * var(--u)); max-width: calc(520 * var(--u)); }
  .cta__founder blockquote p { font-size: 24px; }
  .cta__row { gap: calc(24 * var(--u)); margin-top: calc(28 * var(--u)); }
  .cta__qr { display: block; }
  .cta__note { margin-top: calc(28 * var(--u)); font-size: max(13px, calc(15 * var(--u))); }

  .footer__inner { max-width: 1440px; margin: 0 auto; padding: calc(56 * var(--u)) calc(96 * var(--u)) calc(25 * var(--u)); grid-template-columns: 1fr auto auto; grid-template-areas: "logo logo logo" "rule rule rule" "links copy lang"; align-items: center; column-gap: calc(35 * var(--u)); }
  .footer__logo { width: calc(105 * var(--u)); min-width: 78px; }
  .footer__rule { margin: calc(31 * var(--u)) 0 calc(40 * var(--u)); }
  .footer__links { flex-direction: row; align-items: center; gap: calc(28 * var(--u)); }
  .footer__links a { line-height: 20px; padding-block: 12px; margin-block: -12px; }
  .footer .lang { margin: 0 -12px 0 0; }

  .text__inner { padding: 72px 24px 120px; }
  .text__title { font-size: 52px; line-height: 1.08; margin-bottom: 32px; }
  .text__inner h2 { font-size: 28px; margin-top: 48px; }
}

/* Spanish headline: a step smaller on small laptops so it clears the star art. */
@media (min-width: 900px) and (max-width: 1000px) {
  :lang(es) .hero__title { font-size: calc(76 * var(--u)); }
}

@media (prefers-reduced-motion: reduce) {
  .hero__stars { animation: none; }
  .hiw__media img, .note, .hiw__art img { transition: none; }
  .hero__pause { display: none; }
}
