/*
 * hereme.me — the site's styles (the marketing page and /developers).
 * Colours, type, radii and space come from /tokens.css, a copy of
 * web/packages/ui/tokens.css (generated from design/handoff/tokens/tokens.json;
 * a test keeps the copy equal). Tokens by name only: no raw colours here —
 * tints are color-mix() of tokens.
 * Brand: design/brand/brand-guide.md — text on orange is ink, never white.
 * Light and dark follow the device (tokens.css).
 */

/* Source Sans 3 (SIL OFL 1.1, /assets/fonts/OFL.txt), subset and renamed "HereMe Sans Web": the legal pages' copy. */
@font-face { font-family: "HereMe Sans Web"; font-weight: 400; font-display: swap; src: url(/assets/fonts/hereme-sans-web-regular.woff2) format("woff2"); }
@font-face { font-family: "HereMe Sans Web"; font-weight: 600; font-display: swap; src: url(/assets/fonts/hereme-sans-web-semibold.woff2) format("woff2"); }
@font-face { font-family: "HereMe Sans Web"; font-weight: 700; font-display: swap; src: url(/assets/fonts/hereme-sans-web-bold.woff2) format("woff2"); }
@font-face { font-family: "HereMe Sans Web"; font-weight: 900; font-display: swap; src: url(/assets/fonts/hereme-sans-web-black.woff2) format("woff2"); }

/* The token's family is "Source Sans 3"; on the web it is served as the subset above. */
:root {
  --hm-font-family-base: "HereMe Sans Web", "Source Sans 3", system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --bar-h: 68px;
  /* Tints, mixed from tokens. */
  --tint-primary: color-mix(in srgb, var(--hm-primary) 22%, var(--hm-surface));
  --on-moment-muted: var(--hm-color-dark-textMuted);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--bar-h) + var(--hm-space-4));
}

body {
  margin: 0;
  background: var(--hm-bg);
  color: var(--hm-text);
  font: var(--hm-typography-body-mobile);
  font-family: "HereMe Sans Web", "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  overflow-wrap: break-word;
}

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--hm-focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip {
  position: absolute; left: var(--hm-space-4); top: -100px; z-index: 20;
  background: var(--hm-surface); color: var(--hm-text); padding: var(--hm-space-2) var(--hm-space-4);
  border-radius: var(--hm-radius-control); box-shadow: var(--hm-elevation-e2);
}
.skip:focus { top: var(--hm-space-2); }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--hm-space-4); }
@media (min-width: 600px) { .wrap { padding: 0 var(--hm-space-6); } }

.icon { width: 24px; height: 24px; flex: none; fill: currentColor; }

/* ── The top bar ─────────────────────────────────────────────────────────── */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--hm-surface) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--hm-border);
}
.bar .wrap { display: flex; align-items: center; flex-wrap: wrap; gap: 0 var(--hm-space-4); min-height: var(--bar-h); }
.brand {
  display: inline-flex; align-items: center; gap: var(--hm-space-2); text-decoration: none;
  font-weight: var(--hm-font-weight-black); font-size: 23px; letter-spacing: -.01em; min-height: var(--hm-size-tapTarget);
}
.brand img { width: 38px; height: 33px; }
.site-nav { display: flex; gap: var(--hm-space-1); }
.site-nav a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--hm-space-3);
  border-radius: var(--hm-radius-pill); text-decoration: none; font: var(--hm-typography-label-mobile); font-size: 15px;
  color: var(--hm-text); white-space: nowrap;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--hm-surfaceAlt); }
.bar-cta { margin-left: auto; }
/* Narrow: the brand and the call to action, then the links in a row that scrolls sideways. */
@media (max-width: 979px) {
  .bar .wrap { padding-top: var(--hm-space-1); }
  .site-nav {
    order: 3; flex: 1 0 100%; margin: 0 calc(-1 * var(--hm-space-4)); padding: 0 var(--hm-space-3) var(--hm-space-2);
    overflow-x: auto; scrollbar-width: none;
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { min-height: 36px; font-size: 14px; }
}
@media (min-width: 980px) {
  .site-nav { margin-left: auto; }
  .bar-cta { margin-left: var(--hm-space-2); }
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--hm-space-2);
  min-height: var(--hm-size-tapTarget); padding: 0 var(--hm-space-6);
  border-radius: var(--hm-radius-control); font: var(--hm-typography-label-mobile); font-size: 16px;
  text-decoration: none; border: 2px solid currentColor; background: transparent; color: inherit; cursor: pointer;
  transition: background-color var(--hm-motion-press) var(--hm-motion-easing), transform var(--hm-motion-press) var(--hm-motion-easing);
}
.button:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.button:active { transform: translateY(1px); }
/* Primary: orange with ink text (brand guide §2). */
.button.solid { background: var(--hm-primary); color: var(--hm-onPrimary); border-color: var(--hm-primary); }
.button.solid:hover { background: var(--hm-color-brand-orangeDark); border-color: var(--hm-color-brand-orangeDark); }
.button.small { min-height: 40px; padding: 0 var(--hm-space-4); font-size: 15px; }
/* On the orange header, the primary is ink with orange text. */
.hero .button.solid, .home-hero .button.solid, .closing .button.solid {
  background: var(--hm-color-ink); color: var(--hm-color-brand-orange); border-color: var(--hm-color-ink);
}
.hero .button.solid:hover, .home-hero .button.solid:hover, .closing .button.solid:hover {
  background: color-mix(in srgb, var(--hm-color-ink) 86%, var(--hm-color-brand-orange));
}
.actions { display: flex; flex-wrap: wrap; gap: var(--hm-space-3); margin-top: var(--hm-space-6); }
.actions.center { justify-content: center; }

/* ── The developers' header: orange with the big rounded corner (brand guide §5) ── */
.hero {
  background: var(--hm-header); color: var(--hm-onHeader);
  border-bottom-left-radius: var(--hm-radius-header); border-bottom-right-radius: var(--hm-radius-header);
  padding: var(--hm-space-12) 0;
}
.hero h1 { font: var(--hm-typography-display-mobile); margin: 0 0 var(--hm-space-3); max-width: 18ch; letter-spacing: -.01em; }
.hero p { margin: 0 0 var(--hm-space-2); max-width: 60ch; font-size: 18px; line-height: 28px; }
.hero .eyebrow, .eyebrow {
  font: var(--hm-typography-label-mobile); text-transform: uppercase; letter-spacing: .12em; margin: 0 0 var(--hm-space-3);
}

/* ── The home page's hero ───────────────────────────────────────────────── */
.home-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--hm-header); color: var(--hm-onHeader);
  border-bottom-left-radius: 48px; border-bottom-right-radius: 48px;
  padding: var(--hm-space-12) 0 72px;
}
/* The footprints (site.js): ink, faint, behind everything. Without script or with reduced motion, still. */
.footprints { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; color: var(--hm-onHeader); }
.hero-grid { display: grid; gap: var(--hm-space-12); align-items: center; }
.motto { display: flex; flex-wrap: wrap; align-items: center; margin: 0 0 var(--hm-space-4); font-weight: var(--hm-font-weight-bold); font-size: 15px; letter-spacing: .16em; text-transform: uppercase; }
.motto span + span::before { content: ""; display: inline-block; width: 2px; height: 1.1em; margin: 0 .8em; vertical-align: -.18em; background: currentColor; opacity: .55; }
.home-hero h1 {
  font-family: var(--hm-font-family-base); font-weight: var(--hm-font-weight-black);
  font-size: clamp(44px, 7.4vw, 80px); line-height: 1; letter-spacing: -.025em; margin: 0 0 var(--hm-space-6);
}
.hero-lead { font-size: 19px; line-height: 30px; margin: 0; max-width: 36em; }
.hero-note { display: flex; align-items: center; gap: var(--hm-space-2); margin: var(--hm-space-6) 0 0; font: var(--hm-typography-label-mobile); font-size: 15px; }
.hero-note .icon { width: 20px; height: 20px; }

.hero-visual { position: relative; justify-self: center; width: min(100%, 340px); padding: 0 6px 56px var(--hm-space-4); }
.phone {
  width: 100%; max-width: 310px; margin-left: auto; padding: 10px; border-radius: 44px;
  background: var(--hm-color-ink); box-shadow: var(--hm-elevation-e3); transform: rotate(2.5deg);
}
.phone-screen { border-radius: 35px; overflow: hidden; background: var(--hm-surface); color: var(--hm-text); }
.phone-head {
  display: flex; flex-direction: column; padding: 34px 20px 20px; background: var(--hm-color-brand-orange); color: var(--hm-color-ink);
  border-bottom-left-radius: 28px;
}
.phone-place { font-weight: var(--hm-font-weight-black); font-size: 20px; line-height: 24px; }
.phone-sub { font: var(--hm-typography-label-mobile); }
.phone-body { padding: 16px 18px 20px; }
.phone-ask { margin: 0 0 12px; font-size: 14px; line-height: 20px; color: var(--hm-textMuted); }
.phone-items { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 2px; }
.phone-items li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--hm-border); font: var(--hm-typography-label-mobile); font-size: 15px; }
.phone-items li:last-child { border-bottom: 0; }
.phone-items small { display: block; font-weight: var(--hm-font-weight-regular); font-size: 12px; line-height: 16px; color: var(--hm-textMuted); }
.toggle { flex: none; position: relative; width: 38px; height: 22px; border-radius: 11px; background: var(--hm-disabledFill); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--hm-color-white); box-shadow: var(--hm-elevation-e1); }
.toggle.on { background: var(--hm-color-semantic-successText); }
.toggle.on::after { left: 19px; }
.phone-button {
  display: flex; align-items: center; justify-content: center; min-height: 44px; border-radius: var(--hm-radius-control);
  background: var(--hm-color-brand-orange); color: var(--hm-color-ink); font: var(--hm-typography-label-mobile); font-size: 15px;
}
.toast {
  position: absolute; left: 0; bottom: 0; display: flex; align-items: center; gap: 12px; max-width: 290px;
  padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--hm-surface); color: var(--hm-text);
  box-shadow: var(--hm-elevation-e3); font-size: 14px; line-height: 19px; transform: rotate(-1.5deg);
}
.toast strong { font-size: 15px; }
.toast-dot { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--hm-color-semantic-successText); color: var(--hm-color-white); }
.toast-dot .icon { width: 22px; height: 22px; }

@media (min-width: 960px) {
  .home-hero { padding: 72px 0 104px; border-bottom-left-radius: 64px; border-bottom-right-radius: 64px; }
  .hero-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 72px; }
  .hero-visual { justify-self: end; }
}

/* ── Sections ────────────────────────────────────────────────────────────── */
main { display: block; }
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 104px 0; } }
.section-alt { background: var(--hm-surfaceAlt); }
.section-moment { background: var(--hm-moment); color: var(--hm-onMoment); }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .section-moment { background: var(--hm-surface); } }
[data-theme="dark"] .section-moment { background: var(--hm-surface); }
.section-head { max-width: 760px; margin: 0 0 var(--hm-space-12); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section h2, .section-title {
  font-family: var(--hm-font-family-base); font-weight: var(--hm-font-weight-black);
  font-size: clamp(30px, 4.2vw, 46px); line-height: 1.08; letter-spacing: -.02em; margin: 0 0 var(--hm-space-4);
}
.eyebrow { color: var(--hm-textMuted); }
.eyebrow::before { content: ""; display: inline-block; width: 18px; height: 3px; margin-right: 10px; vertical-align: .3em; border-radius: 2px; background: var(--hm-primary); }
.section-head.center .eyebrow::before, .hero .eyebrow::before { display: none; }
.hero .eyebrow { color: var(--hm-onHeader); }
.lead { color: var(--hm-textMuted); margin: 0; max-width: 60ch; font-size: 19px; line-height: 29px; }
.section-head.center .lead { margin: 0 auto; }
.section-moment .eyebrow, .section-moment .lead, .section-moment .fine { color: var(--on-moment-muted); }
.muted { color: var(--hm-textMuted); }
.fine { color: var(--hm-textMuted); font-size: 15px; line-height: 22px; margin: var(--hm-space-4) 0 0; }
.section h3 { font: var(--hm-typography-title-mobile); margin: 0 0 var(--hm-space-2); }

/* Two columns: words and a picture. */
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--hm-space-12); align-items: center; }
.split > * { min-width: 0; }
.split .lead { margin-bottom: var(--hm-space-6); }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 80px; }
  .split.reverse > .split-card { order: -1; }
}
.split-card { justify-self: center; width: min(100%, 440px); }

/* Lists with an icon in a soft orange disc. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-4); }
.ticks li { display: flex; gap: var(--hm-space-3); align-items: flex-start; }
.ticks li > .icon {
  width: 40px; height: 40px; padding: 8px; border-radius: 12px;
  background: var(--tint-primary); color: var(--hm-text);
}
.section-moment .ticks li > .icon { background: color-mix(in srgb, var(--hm-color-brand-orange) 18%, transparent); color: var(--hm-color-brand-orange); }
.ticks li > span { padding-top: 8px; }
.ticks.small { gap: var(--hm-space-2); }
.ticks.small li > .icon { width: 22px; height: 22px; padding: 0; background: none; color: var(--hm-color-semantic-successText); margin-top: 1px; }
.section-moment .ticks a { color: inherit; }
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .ticks.small li > .icon { color: var(--hm-success); } }
.ticks.small li > span { padding-top: 0; }

/* ── Here | Me | Again ───────────────────────────────────────────────────── */
.motto-section { padding-top: 72px; }
.trio { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-8); }
.trio li { position: relative; padding-top: var(--hm-space-4); }
.trio-word { display: block; font-weight: var(--hm-font-weight-black); font-size: clamp(44px, 6vw, 60px); line-height: 1; letter-spacing: -.03em; margin-bottom: var(--hm-space-4); }
.trio-word::after { content: ""; display: block; width: 44px; height: 6px; margin-top: 12px; border-radius: 3px; background: var(--hm-primary); }
.trio p { margin: 0; color: var(--hm-textMuted); max-width: 34ch; }
@media (min-width: 840px) { .trio { grid-template-columns: repeat(3, 1fr); gap: var(--hm-space-12); } }

/* ── How a visit works: five steps on a trail ────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-6); counter-reset: none; }
.steps li { position: relative; padding-left: 76px; min-height: 56px; }
.steps p { margin: 0; color: var(--hm-textMuted); }
.step-mark {
  position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 18px;
  background: var(--hm-primary); color: var(--hm-onPrimary); box-shadow: var(--hm-elevation-e2);
}
.step-n { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-right: 6px; border-radius: 13px; background: var(--hm-text); color: var(--hm-bg); font-size: 14px; vertical-align: 2px; }
/* The trail between the steps: a dotted path. */
.steps li:not(:last-child)::before {
  content: ""; position: absolute; left: 27px; top: 64px; bottom: calc(-1 * var(--hm-space-6) + 8px);
  border-left: 2px dashed color-mix(in srgb, var(--hm-text) 28%, transparent);
}
@media (min-width: 1024px) {
  .steps { grid-template-columns: repeat(5, 1fr); gap: var(--hm-space-6); }
  .steps li { padding: 80px 0 0; }
  .steps li:not(:last-child)::before { left: 68px; right: calc(-1 * var(--hm-space-6) + 4px); top: 27px; bottom: auto; border-left: 0; border-top: 2px dashed color-mix(in srgb, var(--hm-text) 28%, transparent); }
}
.aside-row { display: grid; gap: var(--hm-space-4); margin-top: var(--hm-space-12); }
@media (min-width: 840px) { .aside-row { grid-template-columns: 1fr 1fr; } }
.aside {
  display: flex; gap: var(--hm-space-3); align-items: flex-start; margin: 0; padding: var(--hm-space-4) var(--hm-space-6);
  background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card);
}
.aside .icon { margin-top: 2px; }

/* ── For people: the pass ────────────────────────────────────────────────── */
.pass {
  margin: 0 auto; width: min(100%, 320px); padding: var(--hm-space-6); border-radius: var(--hm-radius-pass);
  background: var(--hm-color-ink); color: var(--hm-color-dark-text); box-shadow: var(--hm-elevation-e3); transform: rotate(-2deg);
  text-align: center;
}
.pass-top { display: flex; align-items: center; justify-content: center; gap: var(--hm-space-2); font: var(--hm-typography-label-mobile); margin-bottom: var(--hm-space-4); }
.pass-top img { width: 30px; height: 26px; }
.pass-qr { margin: 0 auto; width: 200px; padding: 14px; border-radius: 20px; background: var(--hm-color-white); box-shadow: 0 0 0 5px var(--hm-color-semantic-successFill); }
.qr-art { display: block; width: 100%; height: auto; color: var(--hm-color-ink); }
.pass-id { margin-top: var(--hm-space-6); font-family: var(--mono); font-size: 20px; letter-spacing: .06em; color: var(--hm-color-brand-orange); }
.pass-name { font-weight: var(--hm-font-weight-bold); font-size: 18px; margin-top: var(--hm-space-1); }
.card-caption { text-align: center; color: var(--hm-textMuted); font-size: 14px; line-height: 20px; margin: var(--hm-space-8) auto 0; max-width: 32ch; }

/* ── For organisations ───────────────────────────────────────────────────── */
.org-grid, .app-grid { display: grid; gap: var(--hm-space-6); }
@media (min-width: 840px) { .org-grid, .app-grid { grid-template-columns: repeat(3, 1fr); } }
.org-card, .app-card {
  display: flex; flex-direction: column; padding: var(--hm-space-8) var(--hm-space-6); background: var(--hm-surface);
  border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); box-shadow: var(--hm-elevation-e1);
}
.org-icon {
  display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: var(--hm-space-4); border-radius: 16px;
  background: var(--hm-color-brand-orangeLight); color: var(--hm-color-ink);
}
.org-icon .icon { width: 26px; height: 26px; }
.org-where { margin: 0 0 var(--hm-space-4); color: var(--hm-textMuted); font: var(--hm-typography-label-mobile); }
.org-band { display: grid; gap: var(--hm-space-6); margin-top: var(--hm-space-6); }
@media (min-width: 840px) { .org-band { grid-template-columns: 1fr 1fr; } }
.org-band-item { padding: var(--hm-space-8) var(--hm-space-6); border-radius: var(--hm-radius-card); background: var(--hm-surface); border: 1px solid var(--hm-border); border-left: 5px solid var(--hm-primary); }
.org-band-item p { margin: 0; color: var(--hm-textMuted); }
.badge {
  display: inline-block; margin-bottom: var(--hm-space-3); padding: 3px 10px; border-radius: var(--hm-radius-pill);
  background: var(--hm-color-brand-orangeLight); color: var(--hm-color-ink); font: var(--hm-typography-label-mobile); font-size: 12px; letter-spacing: .06em; text-transform: uppercase;
}
.org-grid + .org-band + .actions { margin-top: var(--hm-space-12); }

/* ── The vault ───────────────────────────────────────────────────────────── */
.vault-card {
  padding: var(--hm-space-6); border-radius: var(--hm-radius-card);
  background: var(--hm-color-dark-surface); color: var(--hm-color-dark-text); border: 1px solid var(--hm-color-dark-border); box-shadow: var(--hm-elevation-e3);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .vault-card { background: var(--hm-color-dark-surfaceAlt); } }
.vault-head { display: flex; align-items: center; gap: var(--hm-space-2); font-weight: var(--hm-font-weight-black); font-size: 22px; margin-bottom: var(--hm-space-4); color: var(--hm-color-brand-orange); }
.vault-items { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-2); }
.vault-items li {
  display: flex; align-items: center; gap: var(--hm-space-3); padding: var(--hm-space-3) var(--hm-space-4);
  border-radius: 14px; background: var(--hm-color-dark-bg); font-weight: var(--hm-font-weight-semibold);
}
.vault-items li > span:not(.pill) { flex: 1; min-width: 0; }
.vault-items small { display: block; font-weight: var(--hm-font-weight-regular); font-size: 13px; color: var(--hm-color-dark-textMuted); }
.pill { flex: none; padding: 2px 10px; border-radius: var(--hm-radius-pill); border: 1px solid var(--hm-color-dark-border); font-size: 13px; color: var(--hm-color-dark-textMuted); }
.pill.on { background: var(--hm-color-brand-orange); border-color: var(--hm-color-brand-orange); color: var(--hm-color-ink); }

/* ── Messages ────────────────────────────────────────────────────────────── */
.chat-card {
  display: flex; flex-direction: column; gap: var(--hm-space-2); padding: var(--hm-space-6);
  background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); box-shadow: var(--hm-elevation-e2);
}
.chat-head { display: flex; align-items: center; gap: var(--hm-space-3); padding-bottom: var(--hm-space-3); border-bottom: 1px solid var(--hm-border); }
.chat-head small { display: block; color: var(--hm-textMuted); font-size: 13px; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--hm-color-brand-orange); color: var(--hm-color-ink); font-weight: var(--hm-font-weight-bold); }
.chat-lock { align-self: center; display: inline-flex; align-items: center; gap: 6px; margin: var(--hm-space-2) 0; padding: 4px 12px; border-radius: var(--hm-radius-pill); background: var(--hm-surfaceAlt); color: var(--hm-textMuted); font-size: 13px; }
.chat-lock .icon { width: 16px; height: 16px; }
.bubble { margin: 0; max-width: 80%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 21px; }
.bubble.them { align-self: flex-start; background: var(--hm-surfaceAlt); border-bottom-left-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--hm-color-brand-orange); color: var(--hm-color-ink); border-bottom-right-radius: 6px; }

/* ── Not a social network ────────────────────────────────────────────────── */
.nos { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-4); }
@media (min-width: 600px) { .nos { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nos { grid-template-columns: repeat(4, 1fr); } }
.nos li { padding: var(--hm-space-6); background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); }
.nos li > .icon { width: 32px; height: 32px; margin-bottom: var(--hm-space-3); }
.nos p { margin: 0; color: var(--hm-textMuted); }

/* ── Privacy: retention and what is encrypted ────────────────────────────── */
.privacy-grid { display: grid; gap: var(--hm-space-8); align-items: start; }
@media (min-width: 960px) { .privacy-grid { grid-template-columns: 1fr 1fr; gap: var(--hm-space-12); } }
.retention { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-4); }
.retention li { display: flex; align-items: center; gap: var(--hm-space-4); }
.days {
  display: grid; place-items: center; align-content: center; flex: none; width: 72px; height: 72px; border-radius: 50%;
  background: var(--hm-primary); color: var(--hm-onPrimary); font-weight: var(--hm-font-weight-black); font-size: 26px; line-height: 1;
}
.days small { font-size: 12px; font-weight: var(--hm-font-weight-semibold); letter-spacing: .04em; }
.days-long { background: var(--hm-surfaceAlt); color: var(--hm-text); }
.days-long .icon { width: 30px; height: 30px; }
.enc-table { padding: var(--hm-space-8) var(--hm-space-6); background: var(--hm-surfaceAlt); border-radius: var(--hm-radius-card); }
.enc-table dl { margin: var(--hm-space-4) 0 0; display: grid; gap: 0; }
.enc-row { display: grid; gap: var(--hm-space-1); padding: var(--hm-space-4) 0; border-top: 1px solid var(--hm-border); }
.enc-row dt { font-weight: var(--hm-font-weight-bold); }
.enc-row dd { margin: 0; color: var(--hm-textMuted); }
.enc-tag {
  display: block; width: fit-content; margin: 0 0 var(--hm-space-1); padding: 2px 10px; border-radius: var(--hm-radius-pill);
  background: var(--hm-surface); color: var(--hm-text); border: 1px solid var(--hm-border); font: var(--hm-typography-label-mobile); font-size: 13px;
}
.enc-row.yes .enc-tag { background: var(--hm-color-semantic-successText); border-color: var(--hm-color-semantic-successText); color: var(--hm-color-white); }
@media (min-width: 600px) { .enc-row { grid-template-columns: 11em 1fr; gap: var(--hm-space-4); } }

/* ── Developers teaser: a code card ──────────────────────────────────────── */
.code-card pre {
  margin: 0; padding: var(--hm-space-6); overflow-x: auto; border-radius: var(--hm-radius-card);
  background: var(--hm-color-dark-surface); color: var(--hm-color-dark-text); border: 1px solid var(--hm-color-dark-border);
  font-family: var(--mono); font-size: 13.5px; line-height: 21px; box-shadow: var(--hm-elevation-e3);
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .code-card pre { background: var(--hm-color-dark-bg); } }
.section-moment .button:not(.solid) { color: var(--hm-onMoment); }
.code-card { width: 100%; max-width: 520px; min-width: 0; }

/* ── Get the app ─────────────────────────────────────────────────────────── */
.app-card p { margin: 0 0 var(--hm-space-6); color: var(--hm-textMuted); flex: 1; }
.app-card .button { align-self: flex-start; }

/* ── FAQ: <details> accordions ───────────────────────────────────────────── */
.faq-group { margin: 0 0 var(--hm-space-8); }
.faq-group h3 { font: var(--hm-typography-title-mobile); margin: 0 0 var(--hm-space-3); }
.faq-list { display: grid; gap: var(--hm-space-2); }
.faq {
  background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card);
  box-shadow: var(--hm-elevation-e1);
}
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--hm-space-3);
  min-height: var(--hm-size-tapTarget); padding: var(--hm-space-4) var(--hm-space-6);
  font: var(--hm-typography-label-mobile); font-size: 17px; line-height: 24px; border-radius: var(--hm-radius-card);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; margin-left: auto; width: 10px; height: 10px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); transition: transform var(--hm-motion-enter) var(--hm-motion-easing);
}
.faq[open] summary::after { transform: rotate(-135deg); }
.faq summary:hover { background: var(--hm-surfaceAlt); }
.faq .answer { padding: 0 var(--hm-space-6) var(--hm-space-4); }
.faq .answer p { margin: 0 0 var(--hm-space-3); max-width: 70ch; }
.faq .answer ul, .faq .answer ol { margin: 0 0 var(--hm-space-3); padding-left: var(--hm-space-6); }
.faq .answer li { margin-bottom: var(--hm-space-1); }
.faq .permalink { font: var(--hm-typography-caption-mobile); color: var(--hm-textMuted); }
.faq:target { outline: 3px solid var(--hm-primary); outline-offset: 2px; }
@media (min-width: 1024px) {
  #faq .wrap { display: grid; grid-template-columns: 320px minmax(0, 1fr); column-gap: 72px; }
  #faq .section-head { grid-row: span 4; position: sticky; top: calc(var(--bar-h) + var(--hm-space-8)); align-self: start; }
}

/* ── Contact ─────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; gap: var(--hm-space-6); align-items: start; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.contact-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-4); }
.contact-cards li {
  display: grid; grid-template-columns: auto 1fr; column-gap: var(--hm-space-4); padding: var(--hm-space-6);
  background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card);
}
.contact-cards .org-icon { grid-row: span 3; margin: 0; }
.contact-cards h3 { margin: 0; }
.contact-cards p { margin: var(--hm-space-1) 0 var(--hm-space-2); color: var(--hm-textMuted); }
.mail { font-weight: var(--hm-font-weight-bold); font-size: 18px; }
.composer {
  display: flex; flex-direction: column; padding: var(--hm-space-8) var(--hm-space-6);
  background: var(--hm-surfaceAlt); border-radius: var(--hm-radius-card);
}
.composer[hidden] { display: none; }
.composer h3 { font: var(--hm-typography-title-mobile); margin: 0; }
.composer .fine { margin: var(--hm-space-1) 0 var(--hm-space-4); }
.composer label { font: var(--hm-typography-label-mobile); margin: var(--hm-space-3) 0 var(--hm-space-1); }
.optional { font-weight: var(--hm-font-weight-regular); color: var(--hm-textMuted); }
.composer input, .composer select, .composer textarea {
  width: 100%; min-height: var(--hm-size-tapTarget); padding: 10px 14px; border-radius: var(--hm-radius-control);
  border: 1.5px solid var(--hm-color-grey-400); background: var(--hm-surface); color: var(--hm-text);
  font: inherit; font-size: 16px;
}
.composer textarea { resize: vertical; min-height: 128px; }
.composer input:focus-visible, .composer select:focus-visible, .composer textarea:focus-visible { border-color: var(--hm-focus); outline-offset: 0; }
.composer-to { margin: var(--hm-space-2) 0 var(--hm-space-4); color: var(--hm-textMuted); font-size: 15px; }
.composer .button { align-self: flex-start; }
.urgent { display: grid; gap: var(--hm-space-3); margin-top: var(--hm-space-8); }
@media (min-width: 840px) { .urgent { grid-template-columns: 1fr 1fr; } }
.urgent p { display: flex; gap: var(--hm-space-3); align-items: flex-start; margin: 0; padding: var(--hm-space-4) var(--hm-space-6); border-radius: var(--hm-radius-card); border: 1px dashed var(--hm-color-grey-400); }

/* ── The closing band ────────────────────────────────────────────────────── */
.closing {
  background: var(--hm-header); color: var(--hm-onHeader); text-align: center;
  border-top-left-radius: 48px; border-top-right-radius: 48px; padding: 80px 0 88px; margin-top: var(--hm-space-8);
}
.closing .motto { justify-content: center; }
.closing h2 { font-weight: var(--hm-font-weight-black); font-size: clamp(32px, 5vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0 auto; max-width: 16ch; }

/* ── Footer: ink, after the orange band ──────────────────────────────────── */
.foot { background: var(--hm-color-ink); color: var(--hm-color-dark-text); padding: 64px 0 var(--hm-space-8); font-size: 15px; line-height: 22px; }
.closing + .foot, main + .foot { margin-top: 0; }
.foot-grid { display: grid; gap: var(--hm-space-8); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot-brand { grid-column: 1 / -1; }
.foot-brand p { margin: var(--hm-space-2) 0 0; color: var(--hm-color-dark-textMuted); max-width: 30ch; }
.foot h2 { font: var(--hm-typography-label-mobile); text-transform: uppercase; letter-spacing: .1em; color: var(--hm-color-brand-orange); margin: 0 0 var(--hm-space-3); }
.foot nav, .foot-contact { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hm-space-1); }
.foot nav a, .foot-contact a { display: inline-flex; align-items: center; min-height: 32px; text-decoration: none; color: var(--hm-color-dark-text); }
.foot nav a:hover, .foot-contact a:hover { text-decoration: underline; }
.foot .brand { color: var(--hm-color-dark-text); }
.foot-contact { overflow-wrap: anywhere; }
.foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--hm-space-2) var(--hm-space-6);
  margin-top: var(--hm-space-12); padding-top: var(--hm-space-6); border-top: 1px solid var(--hm-color-dark-border); color: var(--hm-color-dark-textMuted);
}
@media (min-width: 840px) {
  .foot-grid { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .foot-brand { grid-column: auto; }
}
@media (prefers-color-scheme: dark) { :root:not([data-theme]) .foot { background: var(--hm-color-dark-surface); } }
.foot :focus-visible { outline-color: var(--hm-color-dark-focus); }

/* ── Developers: a contents sidebar and the guide ────────────────────────── */
.docs { display: block; padding-top: var(--hm-space-8); padding-bottom: var(--hm-space-12); }
.docs-nav { margin-bottom: var(--hm-space-6); }
.docs-nav details { background: var(--hm-surfaceAlt); border-radius: var(--hm-radius-control); }
.docs-nav summary { cursor: pointer; padding: var(--hm-space-3) var(--hm-space-4); font: var(--hm-typography-label-mobile); min-height: var(--hm-size-tapTarget); display: flex; align-items: center; }
.docs-nav ol { list-style: none; margin: 0; padding: 0 var(--hm-space-2) var(--hm-space-3); }
.docs-nav ol ol { padding: 0 0 0 var(--hm-space-3); }
.docs-nav a { display: block; padding: 6px var(--hm-space-2); border-radius: 8px; text-decoration: none; font-size: 15px; line-height: 20px; }
.docs-nav a:hover { background: var(--hm-surface); }
.docs-nav a[aria-current="true"] { background: var(--hm-surface); font-weight: var(--hm-font-weight-semibold); box-shadow: inset 3px 0 0 var(--hm-primary); }

.doc { min-width: 0; }
.doc h2 { font: var(--hm-typography-headline-mobile); margin: var(--hm-space-12) 0 var(--hm-space-3); padding-top: var(--hm-space-4); border-top: 1px solid var(--hm-border); }
.doc h3 { font: var(--hm-typography-title-mobile); margin: var(--hm-space-8) 0 var(--hm-space-3); }
.doc h2:first-of-type { margin-top: var(--hm-space-6); }
.doc p, .doc li { max-width: 75ch; }
.doc ul, .doc ol { padding-left: var(--hm-space-6); }
.doc li { margin-bottom: var(--hm-space-1); }
.doc li > ul, .doc li > ol { margin-top: var(--hm-space-1); }
.doc :not(pre) > code {
  font-family: var(--mono); font-size: .88em;
  background: var(--hm-surfaceAlt); padding: 1px 5px; border-radius: 6px; overflow-wrap: anywhere;
}
.anchor { margin-left: var(--hm-space-2); text-decoration: none; color: var(--hm-textMuted); opacity: 0; }
h2:hover .anchor, h3:hover .anchor, .anchor:focus { opacity: 1; }

.table-wrap { overflow-x: auto; margin: 0 0 var(--hm-space-4); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-control); }
.table-wrap table { border-collapse: collapse; width: 100%; font-size: 15px; line-height: 22px; }
.table-wrap th, .table-wrap td { text-align: left; vertical-align: top; padding: var(--hm-space-2) var(--hm-space-3); border-bottom: 1px solid var(--hm-border); }
.table-wrap th { background: var(--hm-surfaceAlt); font-weight: var(--hm-font-weight-semibold); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap td:first-child { min-width: 9em; }

/* Code: the moment surface (ink), so it reads the same in both themes. */
.code { position: relative; margin: 0 0 var(--hm-space-4); }
.code pre {
  margin: 0; padding: 44px var(--hm-space-4) var(--hm-space-4); overflow-x: auto;
  background: var(--hm-color-ink); color: var(--hm-color-dark-text);
  border: 1px solid var(--hm-border); border-radius: var(--hm-radius-control); font-size: 13.5px; line-height: 20px; tab-size: 2;
}
/* Without JavaScript there is no copy button: no room kept for it. */
.code:not(:has(.copy)) pre { padding-top: var(--hm-space-4); }
.code code { font-family: var(--mono); }
.copy {
  position: absolute; top: 6px; right: 6px;
  min-height: 32px; padding: 0 var(--hm-space-3); border-radius: var(--hm-radius-pill);
  border: 1px solid var(--hm-color-dark-border); background: var(--hm-color-dark-surface); color: var(--hm-color-dark-text);
  font: var(--hm-typography-label-mobile); cursor: pointer;
}
.copy:hover { background: var(--hm-color-dark-surfaceAlt); }

/* Samples: curl / JavaScript / Python. Without JavaScript all three show, labelled. */
.samples { margin: 0 0 var(--hm-space-4); }
.sample-label { font: var(--hm-typography-label-mobile); margin: var(--hm-space-3) 0 var(--hm-space-2); }
.samples.tabbed .sample-label .lang { display: none; }
.samples.tabbed .sample-label:not(:has(.note)) { display: none; }
.tabs { display: flex; gap: var(--hm-space-1); margin: 0 0 var(--hm-space-2); overflow-x: auto; }
.tabs button {
  min-height: 40px; padding: 0 var(--hm-space-4); border-radius: var(--hm-radius-pill);
  border: 1px solid var(--hm-border); background: var(--hm-surface); color: var(--hm-text);
  font: var(--hm-typography-label-mobile); cursor: pointer; white-space: nowrap;
}
.tabs button[aria-selected="true"] { background: var(--hm-primary); color: var(--hm-onPrimary); border-color: var(--hm-primary); }

.callout {
  background: var(--hm-surfaceAlt); border-left: 4px solid var(--hm-primary); border-radius: var(--hm-radius-control);
  padding: var(--hm-space-3) var(--hm-space-4); margin: 0 0 var(--hm-space-6); max-width: 75ch;
}
.callout p { margin: 0; }
.facts { display: grid; gap: var(--hm-space-2); margin: var(--hm-space-6) 0 0; }
.facts div { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); align-items: baseline; }
.facts dt { font: var(--hm-typography-label-mobile); }
.facts dd { margin: 0; }
.facts code { background: var(--hm-color-brand-orangeLight); color: var(--hm-color-ink); padding: 2px 8px; border-radius: 6px; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }

@media (min-width: 840px) {
  .hero h1 { font: var(--hm-typography-display-console); font-size: 52px; line-height: 58px; }
  .docs { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--hm-space-12); align-items: start; }
  .docs-nav { position: sticky; top: calc(var(--bar-h) + var(--hm-space-4)); max-height: calc(100vh - var(--bar-h) - var(--hm-space-8)); overflow-y: auto; margin: 0; }
  .docs-nav details { background: transparent; }
  .docs-nav summary { display: none; }
  .docs-nav ol { padding: 0; }
}

/* ── Discover: events by place, and an event's page (ADR-0053; hm-web renders them) ── */
.crumbs ol { list-style: none; margin: 0 0 var(--hm-space-6); padding: 0; display: flex; flex-wrap: wrap; gap: var(--hm-space-1) var(--hm-space-2);
  font: var(--hm-typography-label-mobile); color: var(--hm-textMuted); }
.crumbs li + li::before { content: "›"; margin-right: var(--hm-space-2); }
.crumbs a { min-height: 32px; display: inline-flex; align-items: center; }
.place-grid, .event-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--hm-space-4); }
@media (min-width: 600px) { .place-grid { grid-template-columns: repeat(2, 1fr); } .event-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .place-grid { grid-template-columns: repeat(3, 1fr); } .event-grid { grid-template-columns: repeat(3, 1fr); } }
.place-card {
  display: flex; justify-content: space-between; align-items: center; gap: var(--hm-space-4); min-height: var(--hm-size-tapTarget);
  padding: var(--hm-space-4) var(--hm-space-6); background: var(--hm-surface); border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card); text-decoration: none; box-shadow: var(--hm-elevation-e1);
}
.place-card:hover { border-color: var(--hm-primary); }
.place-name { font: var(--hm-typography-title-mobile); }
.place-count { color: var(--hm-textMuted); font: var(--hm-typography-label-mobile); white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); margin: 0 0 var(--hm-space-8); }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--hm-space-4); border-radius: var(--hm-radius-pill);
  border: 1px solid var(--hm-border); background: var(--hm-surface); text-decoration: none; font: var(--hm-typography-label-mobile);
}
.chip[aria-current="page"] { background: var(--hm-primary); color: var(--hm-onPrimary); border-color: var(--hm-primary); }
.event-card {
  display: flex; flex-direction: column; height: 100%; background: var(--hm-surface); border: 1px solid var(--hm-border);
  border-radius: var(--hm-radius-card); overflow: hidden; text-decoration: none; box-shadow: var(--hm-elevation-e1);
}
.event-card:hover { border-color: var(--hm-primary); }
.event-card-poster { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; background: var(--hm-surfaceAlt); }
.event-card-blank { background: var(--tint-primary); }
.event-card-body { display: flex; flex-direction: column; gap: var(--hm-space-1); padding: var(--hm-space-4) var(--hm-space-6) var(--hm-space-6); }
.event-card-when { font: var(--hm-typography-label-mobile); color: var(--hm-textMuted); }
.event-card-title { font: var(--hm-typography-title-mobile); }
.event-card-where { color: var(--hm-textMuted); }
.event-card-meta { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); margin-top: var(--hm-space-2); font: var(--hm-typography-label-mobile); }
.event-price { color: var(--hm-text); }
.event-flag { padding: 0 var(--hm-space-2); border-radius: var(--hm-radius-pill); background: var(--hm-surfaceAlt); }
.event-layout { display: grid; gap: var(--hm-space-8); align-items: start; }
@media (min-width: 900px) { .event-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--hm-space-12); } }
.event-flyer { display: block; width: 100%; height: auto; border-radius: var(--hm-radius-card); box-shadow: var(--hm-elevation-e2); }
.event-info h1 { margin: 0 0 var(--hm-space-4); }
.event-price-line { font: var(--hm-typography-title-mobile); margin: var(--hm-space-6) 0 0; }
.ticket-list { list-style: none; margin: var(--hm-space-6) 0 0; padding: 0; display: grid; gap: var(--hm-space-2); max-width: 32rem; }
.ticket-list li { display: flex; justify-content: space-between; gap: var(--hm-space-4); padding: var(--hm-space-3) var(--hm-space-4);
  background: var(--hm-surfaceAlt); border-radius: var(--hm-radius-control); font: var(--hm-typography-label-mobile); }
.event-description { margin-top: var(--hm-space-6); max-width: 65ch; }

/* "Use my location" (C-315): shown by discover.js only, a card with the brand's pin; the position stays in the browser. */
.locate {
  display: flex; gap: var(--hm-space-4); align-items: flex-start; margin: 0 0 var(--hm-space-8); padding: var(--hm-space-4) var(--hm-space-6);
  background: var(--hm-surface); border: 1px solid var(--hm-border); border-radius: var(--hm-radius-card); box-shadow: var(--hm-elevation-e1);
  max-width: 760px;
}
.locate[hidden] { display: none; }
.locate-icon {
  display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: var(--hm-radius-pill);
  background: var(--hm-color-brand-orange); color: var(--hm-color-ink);
}
.locate-body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hm-space-2); min-width: 0; }
.locate-note { margin: 0; color: var(--hm-textMuted); font-size: 15px; line-height: 22px; }
.locate-status { margin: 0; font: var(--hm-typography-label-mobile); font-size: 15px; }
.locate-status:empty { display: none; }
.locate-last { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: var(--hm-space-2); font: var(--hm-typography-label-mobile); font-size: 15px; }
.locate-forget {
  min-height: 40px; padding: 0 var(--hm-space-3); border: 0; border-radius: var(--hm-radius-pill); background: transparent;
  color: var(--hm-textMuted); font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.locate .button[aria-busy="true"] { cursor: progress; }
@media (max-width: 599px) { .locate { padding: var(--hm-space-4); } .locate-icon { width: 40px; height: 40px; } }

/* More events (C-314): the link is the fallback; discover.js appends the next page in place and says so. */
.more { display: flex; flex-direction: column; align-items: center; gap: var(--hm-space-3); margin-top: var(--hm-space-8); }
.more-status { margin: 0; color: var(--hm-textMuted); font: var(--hm-typography-label-mobile); font-size: 15px; text-align: center; }
.more-status:empty { display: none; }
.more .button.is-loading { pointer-events: none; opacity: .7; }
.more .button.is-loading::before {
  content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .more .button.is-loading::before { animation-duration: 2400ms; } }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  .bar, .docs-nav, .copy, .tabs, .footprints, .composer { display: none !important; }
  .samples.tabbed .sample[hidden] { display: block !important; }
  .home-hero, .closing, .section-moment, .foot { background: none !important; color: inherit !important; }
}

/* ── The contact and feedback forms (ADR-0059; CONFLICTS C-340 – C-343) ───── */
.page-top h1 {
  font-family: var(--hm-font-family-base); font-weight: var(--hm-font-weight-black);
  font-size: clamp(34px, 5vw, 52px); line-height: 1.06; letter-spacing: -.02em; margin: 0 0 var(--hm-space-4);
}
.composer h2.composer-title, .feedback-aside h2 { font: var(--hm-typography-title-mobile); letter-spacing: 0; margin: 0 0 var(--hm-space-2); }
.composer fieldset { border: 0; margin: var(--hm-space-4) 0 0; padding: 0; min-width: 0; }
.composer legend { font: var(--hm-typography-label-mobile); padding: 0; margin: 0 0 var(--hm-space-2); }
.choices { display: flex; flex-wrap: wrap; gap: var(--hm-space-2); }
.composer label.choice { position: relative; display: inline-flex; margin: 0; }
.composer .choice input { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; justify-content: center; min-height: var(--hm-size-tapTarget); padding: 0 var(--hm-space-4);
  border: 1.5px solid var(--hm-color-grey-400); border-radius: var(--hm-radius-pill); background: var(--hm-surface); color: var(--hm-text);
  font: var(--hm-typography-label-mobile); font-size: 15px;
}
.choice input:checked + span { background: var(--hm-primary); border-color: var(--hm-primary); color: var(--hm-onPrimary); }
.choice input:focus-visible + span { outline: 3px solid var(--hm-focus); outline-offset: 2px; }
.rating .choice span { min-width: var(--hm-size-tapTarget); padding: 0; }
.rating-ends {
  display: flex; justify-content: space-between; max-width: calc(5 * var(--hm-size-tapTarget) + 4 * var(--hm-space-2));
  margin: var(--hm-space-1) 0 0; font-size: 13px; line-height: 18px; color: var(--hm-textMuted);
}
.composer label.consent { display: flex; gap: var(--hm-space-3); align-items: flex-start; margin: var(--hm-space-4) 0 0; font: inherit; font-size: 15px; line-height: 22px; }
.composer .consent input { flex: none; width: 22px; height: 22px; min-height: 22px; margin: 0; padding: 0; accent-color: var(--hm-primary); }
/* The honeypot: out of sight and out of the tab order; a person never fills it. */
.hp { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin: var(--hm-space-4) 0 0; }
.turnstile[data-turnstile-sitekey=""] { display: none; }
/* Status: icon + word + colour. */
.form-status { display: flex; gap: var(--hm-space-2); align-items: flex-start; margin: var(--hm-space-4) 0 0; font: var(--hm-typography-label-mobile); font-size: 15px; }
.form-status:empty { display: none; }
.form-status .icon { flex: none; width: 20px; height: 20px; margin-top: 1px; }
.form-status.is-error { color: var(--hm-danger); }
.composer .button[type="submit"] { margin-top: var(--hm-space-4); }
.composer .button[disabled] { opacity: .6; cursor: progress; }
.form-done { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hm-space-3); padding: var(--hm-space-8) var(--hm-space-6); background: var(--hm-surfaceAlt); border-radius: var(--hm-radius-card); }
.form-done[hidden] { display: none; }
.form-done h3 { margin: 0; }
.form-done p { margin: 0; color: var(--hm-textMuted); }
.result-icon, .form-done .result-icon {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--hm-surfaceAlt); color: var(--hm-danger);
}
.result-icon.ok { background: var(--hm-color-semantic-successText); color: var(--hm-color-white); }
.result-icon .icon { width: 28px; height: 28px; }
.form-result .wrap { display: flex; flex-direction: column; align-items: flex-start; gap: var(--hm-space-4); }
.form-result .lead, .form-result h1 { margin: 0; }
.feedback-aside { padding: var(--hm-space-6) 0; }
.feedback-aside h2 + .store-badges { margin-top: var(--hm-space-2); }
.feedback-aside .ticks { margin: 0 0 var(--hm-space-8); }

/* ── The stores' badges: as supplied, never recoloured; 48 px high (above both stores' minimum) with clear space ── */
.store-badges { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--hm-space-4) var(--hm-space-6); margin-top: var(--hm-space-6); }
.section-head.center .store-badges { justify-content: center; }
.store-badge { display: inline-flex; flex-direction: column; align-items: center; gap: var(--hm-space-1); text-decoration: none; color: inherit; }
.store-badge img { display: block; width: auto; height: 48px; }
.store-badge-soon { cursor: default; }
.store-soon { font: var(--hm-typography-caption-mobile); font-weight: var(--hm-font-weight-bold); letter-spacing: .04em; text-transform: uppercase; }
.foot .store-badges { margin-top: var(--hm-space-4); }
