/* Roofloop website: the layout of the pages, on top of the design system (roofloop.css).
 * The app's scale is made for a dense app; the website goes bigger, with its own tokens here. */

/* One typeface per rotating word in the hero (all SIL Open Font License, files in /fonts). */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/jetbrains-mono-latin-500.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/fredoka-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/caveat-latin-700.woff2") format("woff2"); }

:root {
  --web-wrap: 1080px;
  --web-gutter: var(--s-6);
  --web-section: 96px;
  --web-body: 17px;
  --web-lead: 19px;
  --web-h1: clamp(40px, 6.2vw, 60px);
  --web-h2: clamp(26px, 3.4vw, 34px);
  --web-h3: var(--text-xl);
  --web-brand: 22px;
  --web-logo: 36px;
  --web-hero: clamp(32px, 4.8vw, 60px);
  --web-hero-lead: clamp(18px, 1.8vw, 22px);
  --font-word-steady: "JetBrains Mono", var(--font-mono);
  --font-word-playful: "Fredoka", var(--font);
  --font-word-hand: "Caveat", cursive;
  --web-panel-r: 20px;
  --web-head: 168px; /* room for the site header over a dark section */
  --on-dark-muted: color-mix(in srgb, var(--white) 82%, transparent);
  --on-dark-tint: color-mix(in srgb, var(--white) 12%, transparent);
}

html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body { font-size: var(--web-body); line-height: 1.55; }
.wrap { max-width: var(--web-wrap); margin: 0 auto; padding: 0 var(--web-gutter); }

/* ==== Helpers ==== */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: var(--s-4); top: var(--s-4); z-index: 10; padding: var(--s-2) var(--s-4); border-radius: var(--r-md); background: var(--surface); color: var(--text); font-weight: 600; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-6); }

/* ==== The site header: on top of the page's dark opening section ==== */
.site-header { --logo-petal: var(--white); --logo-accent: var(--highlight); position: fixed; top: 0; left: 0; right: 0; z-index: 15; isolation: isolate; padding: var(--s-5) 0; color: var(--white); }
/* Sticky: a see-through deep purple over the dark opening section, nearly solid once the page scrolls (nav.js). */
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--side-2); box-shadow: 0 10px 30px -14px rgba(3, 2, 20, 0.7); opacity: 0.45; transition: opacity 0.25s var(--ease); }
.site-header.is-scrolled::before { opacity: 0.97; }
/* The logo: larger at the top of the page, back to its normal size once the page scrolls. */
.site-header .brand { transform-origin: 0 50%; scale: 1.35; transition: scale 0.3s var(--ease); }
.site-header.is-scrolled .brand { scale: 1; }
.site-header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-header .brand, .footer .brand { color: var(--white); width: fit-content; }
.site-header .brand { font-size: var(--web-brand); }
.site-header .logo-mark { width: var(--web-logo); height: var(--web-logo); }
.site-header nav a { color: var(--white); font-size: var(--text-md); font-weight: 550; }
/* Sign in is a quiet link; Get started is the one filled button. */
.site-header .nav-signin { display: inline-flex; align-items: center; height: var(--control); padding: 0 var(--s-2); border-radius: var(--r-md); color: var(--on-dark-muted); }
.site-header .nav-signin:hover { color: var(--white); }
.site-header .nav-cta { height: var(--control-lg); padding: 0 var(--s-6); color: var(--on-accent); font-weight: 600; }
.site-header a:focus-visible, .on-dark a:focus-visible, .on-dark button:focus-visible { outline-color: var(--highlight); }

/* The language switch: both languages, peach on the one you are reading. */
.lang-switch { list-style: none; margin: 0; padding: var(--s-px); display: flex; gap: var(--s-px); border-radius: var(--r-full); background: var(--on-dark-tint); }
.lang-switch a { display: block; color: var(--white); padding: var(--s-1) var(--s-2h); border-radius: var(--r-full); font-size: var(--text-sm); font-weight: 600; line-height: 1.4; }
.lang-switch a:hover { text-decoration: none; background: var(--on-dark-tint); }
.footer .lang-switch a { text-decoration: none; }
.lang-switch a[aria-current] { background: var(--highlight); color: var(--highlight-ink); }

/* ==== Hero, on the deep purple ==== */
.hero { padding: var(--web-head) 0 var(--web-section); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-8); text-align: left; }
.hero-lead { margin: 0; max-width: 30ch; font-size: var(--web-hero-lead); font-weight: 500; line-height: 1.35; color: var(--on-dark-muted); text-wrap: balance; }
.hero h1 { display: flex; flex-direction: column; align-items: flex-start; gap: 0.18em; margin: 0; font-size: var(--web-hero); font-weight: 700; letter-spacing: -0.035em; line-height: 1.15; color: var(--white); }
.hero .actions { margin: 0; }

/* The word that changes, typed like on a typewriter (typewriter.js): letter by letter on a peach
   pill that grows with it, a pause, then backspaced before the next word, each in a typeface that
   fits it. Without JavaScript, or with reduced motion, the first word stays as it is. */
.rotator { --word-h: 1.3em; display: flex; letter-spacing: 0; }
.word {
  display: flex; align-items: center; height: var(--word-h); padding: 0 0.38em;
  border-radius: 0.24em; background: var(--highlight); color: var(--highlight-ink); line-height: 1; white-space: nowrap;
}
.word + .word { display: none; }
/* Sizes are tuned so the five typefaces look equally big. */
.word-1 { font-family: var(--font-word-steady); font-weight: 500; font-size: 0.74em; letter-spacing: -0.03em; --word-h: 1.757em; }
.word-2 { font-family: var(--font-word-playful); font-weight: 600; }
.word-3 { font-family: var(--font-word-hand); font-weight: 700; font-size: 1.22em; --word-h: 1.066em; }
.word-4 { font-family: var(--font); font-weight: 200; letter-spacing: -0.02em; }
.word-5 { font-family: var(--font-brand); font-weight: 400; letter-spacing: -0.02em; }
/* The cursor: blinks while it waits, stays on while it types. */
.caret { flex: none; width: max(2px, 0.06em); height: 0.9em; margin-left: 0.05em; border-radius: 1px; background: currentColor; animation: caret-blink 1s steps(1) infinite; }
.is-typing .caret { animation: none; }
@keyframes caret-blink { 50% { opacity: 0; } }
/* The household title's word still fades and slides (word-turn). */
@keyframes word-turn {
  0% { opacity: 0; transform: translateY(45%); }
  3%, 19% { opacity: 1; transform: none; }
  22%, 100% { opacity: 0; transform: translateY(-45%); }
}
}

/* Loops behind the hero: four thin rings that each turn very slowly, some one way, some the other.
   Each ring is its own element and only its transform moves, so the browser turns a finished
   picture of it on the graphics card and repaints nothing. */
.loops { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.loop {
  --tilt: 0deg;
  position: absolute; left: 72%; top: 54%; width: var(--w); aspect-ratio: 1.61; margin: calc(var(--w) / -3.22) 0 0 calc(var(--w) / -2);
  border: 1.5px solid var(--brand-2); border-radius: 50%; opacity: 0.12;
  will-change: transform; animation: loop-turn 140s linear infinite;
}
.loop-1 { --w: max(1050px, 82vw); }
.loop-2 { --w: max(910px, 71vw); --tilt: 28deg; opacity: 0.09; animation-duration: 190s; animation-direction: reverse; }
.loop-3 { --w: max(770px, 60vw); --tilt: 56deg; border-color: var(--brand-5); opacity: 0.14; animation-duration: 240s; }
.loop-4 { --w: max(630px, 49vw); --tilt: 84deg; opacity: 0.08; animation-duration: 170s; animation-direction: reverse; }
@keyframes loop-turn { from { transform: rotate(var(--tilt)); } to { transform: rotate(calc(var(--tilt) + 360deg)); } }
@media (prefers-reduced-motion: reduce) {
  .loop { animation: none; transform: rotate(var(--tilt)); }
}

.lost h1, .page-head h1 { font-size: var(--web-h1); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08; margin: 0 0 var(--s-5); color: var(--white); text-wrap: balance; }
.lead { font-size: var(--web-lead); color: var(--on-dark-muted); max-width: 44ch; margin: 0; text-wrap: balance; }

.actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin: var(--s-8) 0 0; }
.button.cta { height: var(--control-xl); padding: 0 var(--s-8); font-size: var(--text-lg); }
/* "free" on the main button: a small peach badge. */
.cta-badge { margin-left: var(--s-1); padding: var(--s-px) var(--s-2); border-radius: var(--r-full); background: var(--highlight); color: var(--highlight-ink); font-size: var(--text-xs); font-weight: 650; line-height: 18px; text-transform: uppercase; letter-spacing: 0.04em; }

/* ==== Sections ==== */
.section { padding-top: var(--web-section); padding-bottom: var(--web-section); }
.title { font-size: var(--web-h2); font-weight: 650; letter-spacing: -0.025em; line-height: 1.15; margin: var(--s-2) 0 0; text-wrap: balance; }
.overline { margin: 0; }

.apps-label { margin: var(--s-10) 0 0; }
/* The apps in a quadrant: four boxes of one height, a screen of the app peeking up from the bottom of each. */
.apps { list-style: none; margin: var(--s-4) 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 440px; gap: var(--s-5); }
.app { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); gap: var(--s-5); align-items: start; padding: var(--s-8) var(--s-8) 0; border: 1px solid var(--border); border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-sm); }
.app-body { min-width: 0; }
.app-more { grid-template-rows: auto; align-content: center; background: transparent; border-style: dashed; border-color: var(--border-strong); box-shadow: none; padding-bottom: var(--s-8); }
.app-icon-more { background: var(--surface-2); color: var(--muted); border: 1px solid var(--border); }
.app-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: var(--r-lg); }
.app-icon .icon { width: 24px; height: 24px; }
.app-icon-1 { background: var(--brand-1); color: var(--white); }
.app-icon-2 { background: var(--brand-5); color: var(--highlight-ink); }
.app-icon-3 { background: var(--brand-2); color: var(--highlight-ink); }
.app h3 { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); font-size: var(--web-h3); font-weight: 650; letter-spacing: -0.02em; margin: var(--s-1) 0 var(--s-2); }
.app h3 .badge { letter-spacing: 0; }
.app-body p { margin: 0; color: var(--muted); font-size: var(--text-md); line-height: 1.55; }

/* A screen of the app in each box, standing on the bottom edge like a phone peeking up. */
.shot { grid-column: 1 / -1; align-self: stretch; width: min(100%, 340px); justify-self: center; margin-top: var(--s-2); padding: var(--s-3); border: 1px solid var(--border); border-bottom: 0; border-radius: var(--r-xl) var(--r-xl) 0 0; background: var(--bg); box-shadow: var(--shadow-md); font-size: var(--text-sm); color: var(--text); }
.shot-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2); padding: var(--s-1) var(--s-1) var(--s-3); }
.shot-head b { font-weight: 650; }
.shot-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-1h); }
.shot-rows li { display: flex; align-items: center; gap: var(--s-2h); min-height: 34px; padding: 0 var(--s-2h); border: 1px solid var(--border); border-radius: var(--r-md); background: var(--surface); }
.shot-box { width: 16px; height: 16px; flex: none; border: 1.5px solid var(--border-strong); border-radius: var(--r-sm); }
.shot-check { display: grid; place-items: center; width: 16px; height: 16px; flex: none; border-radius: var(--r-sm); background: var(--success-solid); color: var(--white); }
.shot-check .icon { width: 12px; height: 12px; }
.shot-rows .is-done { color: var(--subtle); text-decoration: line-through; }
.shot-subject { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.shot-subject, .shot-subject small, .shot-rows li { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-subject small { color: var(--subtle); font-size: var(--text-2xs); }
.shot-due { font-size: var(--text-2xs); font-weight: 600; color: var(--plum); background: var(--plum-soft); padding: 1px var(--s-2); border-radius: var(--r-full); }
.shot-answer { min-width: 40px; height: 24px; display: grid; place-items: center; border-radius: var(--r-sm); border: 1px dashed var(--border-strong); font-weight: 600; font-variant-numeric: tabular-nums; }
.shot-answer.is-right { border: 0; background: var(--success-soft); color: var(--success); }
.shot-sums .shot-subject { font-variant-numeric: tabular-nums; }
.shot-amount { font-weight: 600; font-variant-numeric: tabular-nums; }
.shot-balance { margin: var(--s-2) 0 0; padding: var(--s-2) var(--s-2h); border-radius: var(--r-md); background: var(--success-soft); color: var(--success); font-weight: 600; }
.dots { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2h); color: var(--muted); font-size: var(--text-lg); line-height: 1.5; }
.dots li { position: relative; padding-left: var(--s-5); }
.dots li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: var(--s-1h); height: var(--s-1h); border-radius: var(--r-full); background: var(--brand-1); }

/* The core, under the apps: who lives under one roof, as a small organigram that changes
   (built by household.js). Only transform, scale and opacity move. */
/* The core, under the apps, the whole width of the page: who lives under one roof, with the word
   for them rotating in the title, and a small organigram that changes (household.js). */
.core { padding: calc(var(--web-section) * 1.25) 0; }
.core-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s-10) 64px; align-items: center; }
.core .overline { color: var(--highlight); }
.core-title { display: flex; flex-direction: column; align-items: flex-start; font-size: var(--web-h2); font-weight: 650; letter-spacing: -0.025em; line-height: 1.2; margin: var(--s-2) 0 0; color: var(--white); }
.swap { display: grid; justify-items: start; }
.swap-word { grid-area: 1 / 1; color: var(--highlight); opacity: 0; animation: word-turn 12.5s var(--ease) infinite backwards; }
.swap-word:nth-child(2) { animation-delay: 2.5s; } .swap-word:nth-child(3) { animation-delay: 5s; }
.swap-word:nth-child(4) { animation-delay: 7.5s; } .swap-word:nth-child(5) { animation-delay: 10s; }
@media (prefers-reduced-motion: reduce) {
  .swap-word { animation: none; }
  .swap-word:first-child { opacity: 1; }
}
.core-lead { margin: var(--s-4) 0 var(--s-6); max-width: 46ch; font-size: var(--text-lg); line-height: 1.6; color: var(--on-dark-muted); }
.core .dots { gap: var(--s-3); color: var(--white); }
.core .dots li::before { background: var(--highlight); }

.household {
  --slot: 132px; --avatar: min(60px, calc(var(--slot) - 22px)); --line: color-mix(in srgb, var(--brand-2) 38%, transparent);
  --home-h: 44px; --stem: var(--s-10); --drop: var(--s-8); --move: 0.9s var(--ease);
  position: relative; height: 300px;
}
/* The home: a glass pill with a peach house. */
.hh-home {
  position: absolute; left: 50%; top: 0; translate: -50% 0; display: flex; align-items: center; gap: var(--s-2h);
  height: var(--home-h); padding: 0 var(--s-5) 0 var(--s-1h); border-radius: var(--r-full); white-space: nowrap;
  background: var(--on-dark-tint); border: 1px solid color-mix(in srgb, var(--white) 18%, transparent);
  color: var(--white); font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em;
}
.hh-home-icon { display: grid; place-items: center; width: var(--s-8); height: var(--s-8); border-radius: var(--r-full); background: var(--highlight); color: var(--highlight-ink); }
.hh-home-icon .icon { width: var(--s-4); height: var(--s-4); }
/* The lines: thin lavender, with a small dot where each one meets the bar. */
.hh-stem { position: absolute; left: 50%; top: var(--home-h); width: 1.5px; height: var(--stem); margin-left: -0.75px; background: var(--line); }
.hh-bar { position: absolute; left: 0; top: calc(var(--home-h) + var(--stem)); width: 100%; height: 1.5px; background: var(--line); transform-origin: 0 50%; transition: transform var(--move); }
.hh-people { position: absolute; left: 0; right: 0; top: calc(var(--home-h) + var(--stem)); bottom: 0; }
.hh-person {
  position: absolute; left: 0; top: 0; width: var(--slot); display: flex; flex-direction: column; align-items: center; padding-top: var(--drop);
  transition: transform var(--move), scale 0.6s var(--ease), opacity 0.5s var(--ease); transform-origin: 50% 0;
}
.hh-person::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: var(--drop); margin-left: -0.75px; background: var(--line); }
.hh-person::after { content: ""; position: absolute; left: 50%; top: -2.25px; width: var(--s-1h); height: var(--s-1h); margin-left: calc(var(--s-1h) / -2); border-radius: var(--r-full); background: var(--brand-2); }
.hh-person.is-out { opacity: 0; scale: 0.6; }
/* The people: the brand's pastels with deep purple initials; kids a size smaller. */
.hh-avatar {
  display: grid; place-items: center; width: var(--avatar); height: var(--avatar); border-radius: var(--r-full);
  color: var(--highlight-ink); font-size: calc(var(--avatar) * 0.36); font-weight: 650; letter-spacing: -0.02em;
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--white) 8%, transparent), var(--shadow-float);
  transition: scale 0.6s var(--ease);
}
.is-kid .hh-avatar { scale: 0.8; }
.hh-b1 { background: var(--brand-1); } .hh-b2 { background: var(--brand-2); } .hh-b3 { background: var(--brand-3); }
.hh-b4 { background: var(--brand-4); } .hh-b5 { background: var(--brand-5); }
.hh-name { margin-top: var(--s-3); font-size: var(--text-md); font-weight: 600; letter-spacing: -0.01em; color: var(--white); }
.hh-role { margin-top: var(--s-1h); padding: var(--s-px) var(--s-2h); border-radius: var(--r-full); background: var(--on-dark-tint); font-size: var(--text-2xs); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--on-dark-muted); }
.hh-home-name, .hh-role { transition: opacity 0.25s var(--ease); }
.is-fading { opacity: 0; }

/* The closing call: a quiet panel. */
.closing { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); padding: var(--s-10); margin: var(--web-section) 0; border-radius: var(--web-panel-r); background: var(--surface-2); border: 1px solid var(--border); }
.closing .title { margin: 0 0 var(--s-2); }
.closing p { margin: 0; color: var(--muted); }

/* ==== Other pages: a dark band with the title, then text ==== */
.page-head { padding: var(--web-head) 0 64px; }
.page-head h1 { margin-bottom: var(--s-3); }
.prose > * { max-width: 720px; }
.prose h2 { font-size: var(--web-h3); font-weight: 650; letter-spacing: -0.02em; margin: var(--s-10) 0 var(--s-3); }
.prose h2:first-child { margin-top: 0; }
.prose dt { font-weight: 600; margin-top: var(--s-4); }
.prose dd { margin: var(--s-1) 0 0; color: var(--muted); }
.prose address { font-style: normal; color: var(--muted); }
.prose a { text-decoration: underline; text-underline-offset: 2px; }
.prose code { font-size: var(--text-md); }

/* ==== Footer ==== */
.footer { padding: var(--s-10) 0; font-size: var(--text-md); }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-6); }
.footer p { margin: var(--s-2) 0 0; color: var(--on-dark-muted); }
.footer nav a, .footer-button { color: var(--white); text-decoration: underline; text-underline-offset: 3px; }
.footer-legal { flex-basis: 100%; padding-top: var(--s-5); border-top: 1px solid var(--on-dark-tint); font-size: var(--text-sm); }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.footer-button { appearance: none; border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }

/* ==== Page not found ==== */
.lost { min-height: 70vh; display: grid; align-items: center; padding: var(--web-head) 0 var(--web-section); }

/* ==== Cookie notice (built by consent.js) ==== */
.consent { position: fixed; left: var(--s-4); right: var(--s-4); bottom: var(--s-4); z-index: 20; max-width: 520px; margin: 0; padding: var(--s-5); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); font-size: var(--text-md); }
.consent h2, .consent-dialog h2 { font-size: var(--text-lg); margin-bottom: var(--s-2); }
.consent p { margin: 0; color: var(--muted); }
.consent a { text-decoration: underline; text-underline-offset: 2px; }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); margin-top: var(--s-4); }
.consent .button { flex: 1; }
.consent .link-button { font-size: inherit; padding: var(--s-2); }
.consent-dialog { width: min(480px, calc(100vw - var(--s-8))); padding: var(--s-6); border: 1px solid var(--border); border-radius: var(--web-panel-r); background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg); font-size: var(--text-md); }
.consent-dialog::backdrop { background: var(--backdrop); }
.consent-dialog .consent-actions { justify-content: flex-end; margin-top: var(--s-6); }
.consent-option { display: flex; align-items: flex-start; gap: var(--s-3); padding: var(--s-4) 0; border-top: 1px solid var(--border); color: var(--muted); }
.consent-option input { margin-top: 0.3em; width: var(--s-4); height: var(--s-4); flex: none; }
.consent-option strong { display: block; color: var(--text); font-weight: 600; }

/* ==== Smaller screens ==== */
@media (max-width: 900px) {
  :root { --web-section: 64px; --web-gutter: var(--s-5); --web-head: 136px; }
  .apps { grid-template-columns: minmax(0, 1fr); grid-auto-rows: auto; }
  .app { padding: var(--s-6) var(--s-6) 0; }
  .shot { height: 180px; }
  .app-more { padding-bottom: var(--s-6); }
  .core-inner { grid-template-columns: minmax(0, 1fr); }
  .loop { left: 60%; }
}
@media (max-width: 480px) {
  :root { --web-brand: 20px; --web-logo: 32px; --web-head: 120px; }
  .site-header { padding: var(--s-3) 0; }
  .site-header nav a { font-size: var(--text-md); }
  .nav-list { gap: var(--s-2) var(--s-4); }
  .site-header-row { flex-wrap: nowrap; gap: var(--s-2); }
  .site-header .nav-list { flex-wrap: nowrap; gap: var(--s-2); }
  .site-header .nav-signin { padding: 0 var(--s-1); font-size: var(--text-sm); }
  .site-header .nav-cta { height: var(--control-sm); padding: 0 var(--s-3); font-size: var(--text-sm); }
  .site-header .brand { gap: var(--s-2); scale: 1; }
  /* The header stays on one line: the hero's second button goes to the same place. */
  .site-header .nav-list > li:first-child { display: none; }
  .closing, .core { padding: var(--s-6); }
  .app { padding: var(--s-5) var(--s-5) 0; gap: var(--s-4); }
  .app-more { padding-bottom: var(--s-5); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
