/* Shared parts of every Fliq page: reset, surfaces, type roles, the bar and dateline, buttons, the sign-up form, the
   bottom join bar, the footer, the draft flag. Phone first; the one breakpoint that changes layout is 56.25rem (900 px).
   Sections add their own files and never edit this one. */

/* ─── Reset ─────────────────────────────────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%;
  /* Purple behind everything: the overscroll above the opening and below the footer is the page's own colour. */
  background: var(--flick); color: var(--text);
  font-family: var(--font-body); font-size: 100%; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-padding-top: calc(var(--bar-top) + 1rem);
  -webkit-tap-highlight-color: transparent;
}
body { min-height: 100svh; font-size: var(--t-body); overflow-x: clip; }
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
p, li, dd, figcaption { text-wrap: pretty; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--select-bg); color: var(--select-fg); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 50;
  padding: 0.6rem 0.9rem; border-radius: 8px; background: var(--lime); color: var(--deep); font-weight: 600; text-decoration: none;
}
.skip:focus { top: 0.75rem; }

/* ─── Languages (17 Nov): Chinese or Portuguese chosen, the page is held back (shell.html sets data-i18n-wait before the
   first paint) until assets/i18n.js has written its words, so no English frame shows first. The purple of <html>
   shows meanwhile. Chinese headlines and captions are set without the Latin faces' negative tracking, and a little
   looser (Han characters are full-height); the faces fall through to the system's Traditional Chinese (tokens.css). */
html[data-i18n-wait] body { visibility: hidden; }
html:lang(zh) { --ls-h1: 0em; --ls-h2: 0em; --ls-h3: 0em; --ls-cap: 0em; --lh-h1: 1.18; --lh-h2: 1.2; --lh-cap: 1.25; }
/* Chinese lines break at punctuation, not between any two characters ("週末" never splits over two lines); a phrase too
   long for its line still breaks rather than overflow. */
html:lang(zh) body { word-break: keep-all; overflow-wrap: break-word; }
/* Russian (18 Nov): Space Grotesk has no Cyrillic, so the captions take Inter at the same weight rather than fall to
   Arial. German, Russian and French run long words: a word too long for a phone's line may break (with a hyphen where
   the browser knows the language) rather than push past the screen's edge. */
html:lang(ru) { --font-caption: "Inter", "Inter Fallback", "Helvetica Neue", Arial, sans-serif; }
html:is(:lang(de), :lang(ru), :lang(fr), :lang(es)) body { overflow-wrap: break-word; }

/* ─── Draft flag ────────────────────────────────────────────────────────────────────────────────────────────
   Unfinished art (Belén's spots, the mission's window scene) carries data-draft and shows only with ?draft in the
   address (site.js adds .draft to <html>). It is hidden by CSS, so without the flag, or before any script runs, nothing
   unfinished shows. data-draft-hide marks the finished stand-in that the draft replaces while the flag is on. */
html:not(.draft) [data-draft] { display: none !important; }
html.draft [data-draft-hide] { display: none !important; }

/* ─── Surfaces (A5) ─────────────────────────────────────────────────────────────────────────────────────────
   One flat brand-colour field per section: no gradient, no grain, no light. Each class sets the field and re-points
   the role tokens (tokens.css), so text, labels, buttons, the form and the focus ring are right on it.
     .surface-flick     PurpleFlick: the opening, sign-up, footer, both bars. White type, lime button.
     .surface-lavender  the scene. Deep type and labels, purple line.
     .surface-ice       catch-up. Navy type and labels, purple line.
     .surface-deep      the mission. White type.
     .surface-paper     off-white, for anything that needs the default. */
.surface-flick, .surface-lavender, .surface-ice, .surface-deep, .surface-paper { background-color: var(--bg); color: var(--text); }
.surface-flick {
  --bg: var(--flick);
  --text: var(--white); --head: var(--white); --label: var(--white);
  --muted: rgb(255 255 255 / 0.8);     /* 6.34:1 */
  --faint: rgb(255 255 255 / 0.7);     /* 5.09:1 */
  --rule: rgb(255 255 255 / 0.24); --rule-strong: rgb(255 255 255 / 0.4);
  --accent: var(--white); --link: var(--white); --focus: var(--white);
  --select-bg: var(--white); --select-fg: var(--flick);
  --btn-bg: var(--lime); --btn-fg: var(--deep); --btn-hover-bg: var(--white); --btn-hover-fg: var(--deep); --btn-edge: transparent;
  --field-edge: transparent;           /* white on purple is 9.42:1: the field needs no outline */
  --error: var(--blush);               /* 7.79:1 */
  --done: var(--white);
  --lime-ring: transparent;            /* lime on purple stands alone (7.85:1) */
  --mine-fg: var(--white); --mine-band: 0.125em; --mine-y: 100%; --mine-pad: 0 0 0.06em;   /* white, lime underline */
}
.surface-lavender {
  --bg: var(--lavender);
  --text: var(--deep); --head: var(--deep); --label: var(--deep);
  --muted: rgb(50 9 101 / 0.78);       /* 6.15:1 */
  --faint: rgb(50 9 101 / 0.7);        /* 4.98:1 */
  --rule: rgb(50 9 101 / 0.2); --rule-strong: rgb(50 9 101 / 0.36);
  --accent: var(--flick);              /* 6.13:1 */
  --link: var(--deep); --focus: var(--deep);
  --select-bg: var(--deep); --select-fg: var(--white);
}
.surface-ice {
  --bg: var(--ice);
  --text: var(--navy); --head: var(--navy); --label: var(--navy);
  --muted: rgb(17 37 106 / 0.78);      /* 6.12:1 */
  --faint: rgb(17 37 106 / 0.72);      /* 5.16:1 */
  --rule: rgb(17 37 106 / 0.2); --rule-strong: rgb(17 37 106 / 0.36);
  --accent: var(--flick);              /* 7.39:1 */
  --link: var(--navy); --focus: var(--navy);
  --select-bg: var(--navy); --select-fg: var(--white);
  --btn-bg: var(--navy); --btn-hover-bg: var(--flick);
}
.surface-deep {
  --bg: var(--deep);
  --text: var(--white); --head: var(--white); --label: var(--white);
  --muted: rgb(255 255 255 / 0.78);    /* 9.63:1 */
  --faint: rgb(255 255 255 / 0.7);
  --rule: rgb(255 255 255 / 0.2); --rule-strong: rgb(255 255 255 / 0.36);
  --accent: var(--white); --link: var(--white); --focus: var(--white);
  --select-bg: var(--white); --select-fg: var(--deep);
  --btn-bg: var(--lime); --btn-fg: var(--deep); --btn-hover-bg: var(--white); --btn-hover-fg: var(--deep);
  --field-edge: transparent;
  --error: var(--blush);               /* 12.74:1 */
  --done: var(--white);
  --lime-ring: transparent;
  --mine-fg: var(--white); --mine-band: 0.125em; --mine-y: 100%; --mine-pad: 0 0 0.06em;
}
/* .surface-paper needs nothing of its own: the defaults are paper's (tokens.css). */

/* ─── Paper: printed things lying on a field (the scene's clipping). Off-white with the shared grain: ink specks on
   transparent, drawn as a background layer with no blend mode, so scrolling stays cheap on a phone. Sections
   themselves are flat .surface-* fields. */
.paper {
  position: relative; isolation: isolate;
  background-color: var(--paper);
}
.paper::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain);
  background-size: var(--grain-size) var(--grain-size);
  opacity: var(--grain-opacity);
}

/* ─── Grain on every field (18 Nov, co-founder: "add the texture to the rest of the page"). The opening's paper
   grain, laid over each flat field as a background layer under its content: dark ink specks on the light fields
   (lavender, ice), white specks on the dark ones (PurpleFlick, deep). One static image layer, no blend mode, so it
   costs nothing on scroll. Sections and the footer become positioned for it; the fixed bars already are. */
.grain { isolation: isolate; }
.grain:where(section, footer) { position: relative; }
.grain::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: var(--grain);
  background-size: var(--grain-size) var(--grain-size);
  opacity: var(--grain-opacity);
}
.grain:is(.surface-flick, .surface-deep)::before { background-image: var(--grain-light); opacity: var(--grain-light-opacity); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)) max(var(--gutter), env(safe-area-inset-right)); }

/* ─── Type roles (3.2). Sentence case everywhere; never tracked capitals. ──────────────────────────────────── */
.h1, .h2, .h3, .num { font-family: var(--font-head); font-weight: 700; color: var(--head); }
.h1 { font-size: var(--t-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-h1); }
.h2 { font-size: var(--t-h2); line-height: var(--lh-h2); letter-spacing: var(--ls-h2); }
.h3 { font-size: var(--t-h3); line-height: var(--lh-h3); letter-spacing: var(--ls-h3); }
/* A scene's caption ("News everywhere. Understanding takes work."): Space Grotesk 600, the logo face. */
.cap { font-family: var(--font-caption); font-weight: 600; font-size: var(--t-cap); line-height: var(--lh-cap); letter-spacing: var(--ls-cap); color: var(--head); text-wrap: balance; }
.lead { font-size: var(--t-lead); line-height: 1.4; color: var(--text); max-width: var(--measure); }
.body { font-size: var(--t-body); line-height: 1.55; max-width: var(--measure); }
.small { font-size: var(--t-small); line-height: 1.45; color: var(--muted); }
.source { font-size: var(--t-tiny); line-height: 1.4; color: var(--muted); }
/* A label on an object ("Work", "You left here", "6 Nov"): Inter 600 in the surface's label colour. */
.label { font-family: var(--font-body); font-size: var(--t-label); font-weight: 600; line-height: 1.3; color: var(--label); }
/* "Illustrative": next to anything staged, on screen whenever it is (honesty rule). The floor size, never fainter. */
.illustrative { font-family: var(--font-body); font-size: var(--t-tiny); font-weight: 500; line-height: 1.3; color: var(--muted); }

/* Editor's marks. .mine is the visitor's own: lime behind it on a light field; on purple and deep, white with a lime
   underline (2.1: "the city in white with a lime underline"), from the surface's --mine-* tokens. here.js wraps the
   visitor's city in it. */
.mark { background-image: linear-gradient(var(--lavender), var(--lavender)); background-repeat: no-repeat; background-size: 100% 0.32em; background-position: 0 88%; }
.mine { color: var(--mine-fg); background-image: linear-gradient(var(--lime), var(--lime)); background-repeat: no-repeat; background-size: 100% var(--mine-band); background-position: 0 var(--mine-y); padding: var(--mine-pad); }
.ul { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 0.09em; text-underline-offset: 0.14em; }
.strike { text-decoration: line-through; text-decoration-color: var(--accent); text-decoration-thickness: 0.08em; color: var(--muted); }

.rule { height: 1px; background: var(--rule); border: 0; }

/* ─── Bar (17 Nov, the co-founder: "the logo on the top bar can be larger and have more things on the top bar"):
   purple, the white pack lockup at 72 × 28 px on phones and 86 × 33 from 900 px, with half its height clear above and
   below (18 and 19 px in the 64 and 72 px bars). Phones: the logo and the language switch. From 900 px: the logo, then
   on the right Fliq's Instagram, LinkedIn and X, the language switch and a lime "Join the waitlist", always on. Every
   control is a 44 px target. ─────────────────────────────────────────────────────────────────────────────────── */
.bar {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--bar-top); padding-top: env(safe-area-inset-top);
}
.bar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bar .logo { display: block; flex: none; padding-block: 8px; border-radius: 4px; }   /* a 44 px target round the lockup */
.bar .logo img { width: 72px; height: 27.8px; }
.bar-tools { display: flex; align-items: center; gap: 0.5rem; min-width: 0; margin-right: -0.625rem; }
.bar .social { display: none; }
.bar .social { align-items: center; }
.bar .social a {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; min-height: 2.75rem;
  border-radius: 6px; color: var(--white); text-decoration: none;
}
.bar .social svg { width: 20px; height: 20px; }
.bar .social a:hover { color: var(--lavender); }
/* The language menu (18 Nov): a globe, the language in use in its own name, and a small chevron, one 44 px target;
   it opens a list of the seven under the bar, deep with white type, the one in use ticked in lime. The list is a
   popover in the top layer, so nothing on the page can cover it; i18n.js sets its top and right edge under the
   button (the fallback below puts it under the bar's right end, where the button is on phones). */
.bar .lang-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; min-height: 2.75rem; padding: 0 0.625rem;
  border: 0; border-radius: 999px; background: transparent; color: var(--white); cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9375rem; line-height: 1;
}
.bar .lang-btn[aria-expanded="true"] { background: rgb(255 255 255 / 0.12); }
@media (hover: hover) { .bar .lang-btn:hover { background: rgb(255 255 255 / 0.12); } }
.bar .lang-cur:lang(zh) { font-family: var(--font-cjk); }
.bar .lang-globe { flex: none; width: 18px; height: 18px; }
.bar .lang-chev { flex: none; width: 10px; height: 10px; opacity: 0.8; transition: transform 160ms ease; }
.bar .lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
/* Browsers without popovers (iOS 16 and its in-app browsers, older WebViews) ignore the attribute and would show the
   list open over the page: hidden there unless i18n.js has opened it (.open). */
@supports not selector(:popover-open) { .lang-menu:not(.open) { display: none; } }
.lang-menu {
  position: fixed; inset: auto; top: var(--bar-top); right: max(0.5rem, calc(var(--gutter) - 0.625rem)); margin: 0;
  min-width: 12rem; padding: 0.375rem; border: 1px solid rgb(255 255 255 / 0.14); border-radius: 12px;
  background: var(--deep); color: var(--white); box-shadow: 0 14px 36px rgb(20 6 31 / 0.34);
}
.lang-menu ul { list-style: none; margin: 0; padding: 0; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.75rem; padding: 0 0.875rem;
  border-radius: 8px; color: var(--white); text-decoration: none;
  font-family: var(--font-body); font-weight: 500; font-size: 1rem; line-height: 1.2;
}
.lang-menu a:lang(zh) { font-family: var(--font-cjk); }
.lang-menu a:hover, .lang-menu a:focus-visible { background: rgb(255 255 255 / 0.1); }
.lang-menu a:focus-visible { outline: 2px solid var(--lime); outline-offset: -2px; }
.lang-menu a[aria-current] { font-weight: 600; }
.lang-menu a[aria-current]::after {
  content: ""; flex: none; width: 0.875rem; height: 0.5rem; margin-top: -0.2rem;
  border: solid var(--lime); border-width: 0 0 2px 2px; transform: rotate(-45deg);
}
.bar .btn { display: none; min-height: 2.75rem; padding-inline: 1.25rem; font-size: 0.9375rem; }
@media (min-width: 56.25rem) {
  .bar .logo { padding-block: 5px; }
  .bar .logo img { width: 86px; height: 33.2px; }
  .bar-tools { gap: 0.75rem; margin-right: 0; }
  .bar .social { display: flex; padding-right: 0.75rem; border-right: 1px solid var(--rule); }
  .bar .btn { display: inline-flex; }
}

/* ─── Dateline: the visitor's own place and time, in a sentence. "Good evening, Tokyo. Friday 13 November, 9:04 pm." */
.dateline { display: flex; align-items: baseline; gap: 0.75rem; font-size: var(--t-small); line-height: 1.4; color: var(--muted); }
.dateline::before { content: ""; flex: none; width: 1.75rem; height: 2px; background: var(--accent); transform: translateY(-0.3em); }
.dateline > span { min-width: 0; }
.dateline [data-here="greeting"] { color: var(--text); font-weight: 600; }
.dateline [data-here="time"] { white-space: nowrap; }   /* "9:04 pm", 下午9:04: never split */
html:lang(zh) .dateline [data-here="date"] { white-space: nowrap; }   /* 11月16日星期一 */
/* The sentence arrives after first paint (here.js) and runs to two lines on a phone; hold that room from the start so
   the headline under it never moves. Two lines are kept wherever its column is narrow enough to wrap a long city and
   weekday (phones, and a left column on laptops); one elsewhere. The box is a hard bound: here.js steps the sentence
   down (to 13 px at least) until it fits these lines, and cuts a city too long even for that at the last line. */
.dateline { min-height: 1.4em; }
@media (max-width: 34rem), (min-width: 56.25rem) and (max-width: 75rem) { .dateline { min-height: calc(2 * 1.4em); } }
.dateline > [data-cut] { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: var(--dateline-lines, 2); line-clamp: var(--dateline-lines, 2); overflow: hidden; }
/* The dateline's words are only known once here.js answers. Until then they are hidden in their reserved box, so
   they appear once, in place, instead of reflowing from the placeholder (which counted as a layout shift). */
html:not([data-here]) .dateline > span { visibility: hidden; }

/* ─── Buttons: the surface's own (lime with deep type on purple and deep; deep with white type on light fields).
   .btn.lime forces the lime button on any field, with the deep edge it needs on a light one. ───────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0 1.4rem; border-radius: var(--pill); border: 0;
  background: var(--btn-bg); color: var(--btn-fg); box-shadow: inset 0 0 0 var(--edge) var(--btn-edge);
  font-family: var(--font-body); font-weight: 600; font-size: 1rem; line-height: 1; white-space: nowrap;
  text-decoration: none; cursor: pointer; touch-action: manipulation;
  transition: background-color var(--fast) var(--ease), color var(--fast) var(--ease), transform var(--fast) var(--ease);
}
/* Hover only where there is a pointer that hovers: on a touch screen :hover sticks after a tap, and the button stayed
   in its hover colour (18 Nov, live QA). */
@media (hover: hover) { .btn:hover { background: var(--btn-hover-bg); color: var(--btn-hover-fg); } }
.btn:active { transform: translateY(1px); }
.btn.lime { --btn-bg: var(--lime); --btn-fg: var(--deep); --btn-hover-bg: var(--white); --btn-hover-fg: var(--deep); --btn-edge: var(--lime-ring); }
.btn.ghost { background: transparent; color: var(--head); box-shadow: inset 0 0 0 1.5px var(--rule-strong); }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--head); background: transparent; }
/* Sending (signup.js marks the button aria-disabled): it keeps its own colours, lime stays lime (dimmed, it turned an
   off-palette tan on purple); the message line says "Sending…". */
.btn[disabled] { opacity: 0.6; }
.btn[aria-disabled="true"] { cursor: progress; }
.btn[aria-disabled="true"]:active { transform: none; }

/* ─── Sign-up form (2.5): a white field and the surface's button beside it, stacked on phones (lime on white is
   1.20:1, so the button never sits inside the field). 17 px input text (iOS does not zoom), email keyboard, autofill,
   the Send key submits. States: idle, sending, done, error (signup.js). Markup:
   <form class="signup" data-signup data-form="join">
     <div class="field"> <label class="sr-only" for="join-email">Email address</label>
       <input id="join-email" name="email" type="email" ...> <button class="btn" type="submit">Join the waitlist</button> </div>
     <p class="signup-msg" role="status" aria-live="polite"></p> </form> */
.signup { position: relative; display: flex; flex-direction: column; gap: 0.75rem; width: 100%; max-width: 34rem; }
.signup .field { display: flex; flex-direction: column; gap: 0.75rem; min-width: 0; }
.signup input {
  width: 100%; min-width: 0; height: 3.5rem; padding: 0 1.25rem; border: 0; border-radius: var(--pill);
  background: var(--field-bg); color: var(--field-text); box-shadow: inset 0 0 0 1.5px var(--field-edge);
  font-family: var(--font-body); font-size: 1.0625rem;
}
.signup input:focus { outline: none; }
.signup input:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.signup input::placeholder { color: var(--placeholder); opacity: 1; }   /* the only visible hint of what the field takes: AA */
.signup .btn { flex: none; min-height: 3.5rem; padding-inline: 1.75rem; }
@media (min-width: 37.5rem) {
  .signup .field { flex-direction: row; }
  .signup input { flex: 1; }
}
.signup-msg { min-height: 1.5em; padding-left: 1.25rem; font-size: var(--t-small); line-height: 1.5; color: var(--muted); }
.signup-msg a { color: inherit; }
/* Every message (invalid, sending, done, the error line with its address) fits two lines at 320 px, but some take
   two on a phone where the idle line takes one: hold two lines from the start so nothing under the form moves. */
@media (max-width: 34rem) { .signup-msg { min-height: 3em; } }
.signup[data-state="error"] .signup-msg, .signup[data-state="invalid"] .signup-msg { color: var(--error); }
/* Done: "You’re on the list" alone, in the lead's size, where the field and button were, on the column's edge (2.5:
   "You're on the list is enough"). The field and button step aside but keep their room, and the message's own line
   keeps its reserved height (::after), so the section, its words and the footer stay exactly where they were. signup.js
   moves focus to the message so a screen reader lands on it; it is not a control, so it draws no ring. */
.signup[data-state="done"] { display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 0.75rem; }
.signup[data-state="done"] .field { grid-area: 1 / 1; visibility: hidden; }
.signup[data-state="done"] .signup-msg {
  grid-area: 1 / 1; align-self: start;
  display: flex; align-items: center; min-height: 3.5rem;   /* centred on the field's row */
  padding-left: 0; font-size: var(--t-lead); line-height: 1.4; font-weight: 400; color: var(--done);   /* .lead's */
}
.signup[data-state="done"]::after { content: ""; grid-area: 2 / 1; font-size: var(--t-small); min-height: 1.5em; }
@media (max-width: 34rem) { .signup[data-state="done"]::after { min-height: 3em; } }
.signup-msg:focus { outline: none; }

/* ─── Bottom join bar (phones): one full-width lime "Join the waitlist" on a purple strip. It comes up once every
   [data-joinbar-trigger] (the opening's button) has gone under the top bar, and is off while any [data-joinbar-hide]
   (the final form, the footer) is on screen, and for good after a sign-up (site.js). 64 px: the 48 px button and 8 px
   of purple above and below (--joinbar-h). Wider screens have the bar's own button instead. */
.joinbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  padding: 0.5rem max(var(--gutter), env(safe-area-inset-right)) calc(0.5rem + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
  transform: translateY(110%); transition: transform var(--mid) var(--ease), visibility 0s linear var(--mid); visibility: hidden;
}
.joinbar[data-on] { transform: none; visibility: visible; transition: transform var(--mid) var(--ease); }
.joinbar .btn { width: 100%; min-height: 3rem; }
@media (min-width: 56.25rem) { .joinbar { display: none; } }

/* ─── Footer (2.5): purple, the white lockup, "Built in Hong Kong", the address, Privacy, the legal line. ────── */
.foot { padding-block: 0 calc(2.5rem + env(safe-area-inset-bottom)); font-size: var(--t-small); color: var(--muted); }
.foot-grid { display: grid; gap: 1.25rem; padding-top: 2.5rem; border-top: 1px solid var(--rule); }
.foot-logo { width: 100px; height: auto; }   /* 100 × 39 px: the Design Pack's working minimum, with room for its clear space */
.foot-built { color: var(--text); font-weight: 500; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; margin-block: -0.7rem; }
.foot-links a { display: inline-block; min-width: 2.75rem; padding-block: 0.7rem; text-align: center; color: var(--link); }   /* 45 px tap targets, "X" too */
.foot .legal { font-size: var(--t-tiny); }
@media (min-width: 56.25rem) {
  .foot-grid { grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 3rem; row-gap: 1rem; }
  .foot-logo { grid-row: 1 / span 2; align-self: start; }
  .foot-built { grid-column: 2; grid-row: 1; }
  .foot .legal { grid-column: 2; grid-row: 2; }
  .foot-links { grid-column: 3; grid-row: 1 / span 2; margin-block: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
