/* Repha website, "a walk into the haat" (docs/DESIGN.md §9).
   Every color, radius, shadow and duration comes from tokens.css (generated from design/tokens.json).
   Committed, hand-written CSS: the host has no Node build step. */

/* Same faces as the app (docs/DESIGN.md §4.1, ADR 0033): Manrope (variable 200–800) carries
   Latin; SolaimanLipi takes every Bengali glyph. Self-hosted subsets, never fetched from a
   third party. SolaimanLipi has one weight; bold Bangla is synthesized, as in the app. */
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/site/Manrope-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("../fonts/site/Manrope-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "SolaimanLipi";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/site/SolaimanLipi-bengali.woff2") format("woff2");
  unicode-range: U+0964-0965, U+0980-09FF, U+200C-200D, U+25CC;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--mh-font-body);
  font-size: var(--mh-fs-body);
  line-height: var(--mh-lh-body);
  color: var(--mh-on-surface);
  background: var(--mh-surface-container-low);
}
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--mh-font-display); margin: 0; }
h2 { font-size: var(--mh-fs-h2); font-weight: var(--mh-fw-h2); line-height: var(--mh-lh-h2); }
h3 { font-size: var(--mh-fs-h3); font-weight: 700; line-height: var(--mh-lh-h3); }
p { margin: 0; }
.lead { font-size: var(--mh-fs-lead); line-height: var(--mh-lh-lead); color: var(--mh-on-surface-variant); max-width: var(--mh-measure); }
.small { font-size: var(--mh-fs-small); font-weight: var(--mh-fw-small); line-height: var(--mh-lh-small); }

/* Links: Indigo, 1 px underline offset 3 px; hover thickens to 2 px (§9.4). */
a { color: var(--mh-secondary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
/* Focus: a visible 3 px Emerald ring, 2 px offset, never removed (§12). */
:focus-visible { outline: var(--mh-focus-ring) solid var(--mh-primary); outline-offset: var(--mh-focus-offset); border-radius: var(--mh-r-xs); }

.wrap { width: min(100% - 2 * var(--mh-space-lg), var(--mh-container)); margin-inline: auto; }
.section { padding-block: var(--mh-section-pad); }
.stack { display: grid; gap: var(--mh-space-xl); align-content: start; }
.section__head { display: grid; gap: var(--mh-space-md); margin-bottom: var(--mh-space-xxxl); max-width: var(--mh-measure); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--mh-space-lg); top: var(--mh-space-lg); z-index: 50; background: var(--mh-surface); padding: var(--mh-space-sm) var(--mh-space-lg); }

/* ---------- Buttons (§9.4): 52 px, r-md ---------- */
.mh-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--mh-space-sm);
  min-height: var(--mh-button-h); padding-inline: var(--mh-space-xl);
  border-radius: var(--mh-r-md); border: 1px solid transparent;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform var(--mh-m-instant) var(--mh-ease-instant), background-color var(--mh-m-quick) var(--mh-ease-quick);
}
.mh-btn:active { transform: scale(.98); }
.mh-btn--primary { background: var(--mh-primary); color: var(--mh-on-primary); }
.mh-btn--primary:hover { background: var(--mh-emerald-deep); color: var(--mh-white); }
.mh-btn--marigold { background: var(--mh-highlight-new-bg); color: var(--mh-highlight-new); }
.mh-btn--ghost { background: transparent; color: var(--mh-primary); border-color: var(--mh-outline-variant); }
.mh-btn--light { background: var(--mh-white); color: var(--mh-ink); }
.store-badges { display: flex; flex-wrap: wrap; gap: var(--mh-space-md); align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: var(--mh-space-sm); min-height: var(--mh-button-h);
  padding-inline: var(--mh-space-lg); border-radius: var(--mh-r-md);
  background: var(--mh-ink); color: var(--mh-white); text-decoration: none; font-weight: 600;
}
.mh-icon { width: 1.25em; height: 1.25em; }
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Nav (§9.4): transparent over the gradient, solid after 40 px ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 30; height: var(--mh-nav-h);
  color: var(--mh-white);
  transition: background-color var(--mh-m-quick) var(--mh-ease-quick), box-shadow var(--mh-m-quick) var(--mh-ease-quick);
}
.site-header.is-solid, .page--plain .site-header {
  background: var(--mh-surface); color: var(--mh-on-surface); box-shadow: 0 1px 0 var(--mh-outline-variant);
}
.nav { height: 100%; display: flex; align-items: center; gap: var(--mh-space-lg); }
.brand { display: inline-flex; align-items: center; gap: var(--mh-space-sm); font-family: var(--mh-font-display); font-weight: 700; font-size: 1.35rem; color: inherit; text-decoration: none; }
.brand__mark { width: 32px; height: 32px; border-radius: var(--mh-r-sm); background: url("../img/repha-mark.png") center / cover; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.nav-links { display: flex; align-items: center; gap: var(--mh-space-xl); margin-inline-start: auto; }
.nav-links a:not(.mh-btn) { color: inherit; text-decoration: none; font-weight: 500; opacity: .9; }
.nav-links a:not(.mh-btn):hover { opacity: 1; text-decoration: underline; text-decoration-thickness: 2px; }
.nav-toggle { display: none; margin-inline-start: auto; background: none; border: 0; color: inherit; min-width: var(--mh-touch); min-height: var(--mh-touch); cursor: pointer; }
.nav-toggle svg { width: 24px; height: 24px; }
@media (max-width: 900px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; inset: var(--mh-nav-h) 0 auto; flex-direction: column; align-items: stretch;
    gap: 0; padding: var(--mh-space-sm) var(--mh-space-lg) var(--mh-space-lg);
    background: var(--mh-surface); color: var(--mh-on-surface); box-shadow: var(--mh-e2);
  }
  .nav-links a:not(.mh-btn) { padding-block: var(--mh-space-md); }
  .site-header.is-open .nav-links { display: flex; }
  .site-header.is-open { background: var(--mh-surface); color: var(--mh-on-surface); }
}

/* ---------- Hero (§9.2) ---------- */
.hero { position: relative; color: var(--mh-white); background: var(--mh-gradient-brand); padding-top: calc(var(--mh-nav-h) + var(--mh-space-xxxl)); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--mh-gutter); align-items: center; padding-bottom: calc(var(--mh-space-huge) + var(--mh-space-xxl)); }
.hero__copy { grid-column: span 5; display: grid; gap: var(--mh-space-xl); }
.hero__demo { grid-column: span 7; position: relative; }
.hero h1 {
  font-family: var(--mh-font-display);
  font-size: var(--mh-fs-hero); font-weight: var(--mh-fw-hero); line-height: var(--mh-lh-hero); letter-spacing: var(--mh-tracking-hero);
}
.hero .lead { color: rgba(255, 255, 255, .88); }
.hero__note { color: rgba(255, 255, 255, .8); }
.hero .mh-awning { position: absolute; inset: auto 0 -1px; width: 100%; height: var(--mh-scallop-depth); }
/* Marigold glow behind the demo (§2). */
.hero__demo::before { content: ""; position: absolute; inset: -12% -8%; background: var(--mh-glow-marigold); pointer-events: none; }
@media (max-width: 900px) {
  .hero__copy, .hero__demo, .hero__photo { grid-column: 1 / -1; }
}

/* Hero demo: a paper list → scan → memo → slips → stalls, one 8 s loop (§9.2). */
.demo { position: relative; width: 100%; aspect-ratio: 4 / 3; border-radius: var(--mh-r-xl); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18), var(--mh-e3); }
.demo svg { width: 100%; height: 100%; display: block; }
.demo .d-paper, .demo .d-scan, .demo .d-memo, .demo .d-slip, .demo .d-stall-pulse { animation-duration: var(--mh-hero-loop); animation-iteration-count: infinite; animation-timing-function: var(--mh-ease-standard); animation-fill-mode: both; }
.demo .d-paper { animation-name: d-paper; }
.demo .d-scan { animation-name: d-scan; }
.demo .d-memo { animation-name: d-memo; }
.demo .d-slip { animation-name: d-slip; animation-timing-function: var(--mh-ease-expressive); transform-box: fill-box; transform-origin: center; }
.demo .d-slip--2 { animation-delay: 60ms; }
.demo .d-slip--3 { animation-delay: 120ms; }
.demo .d-stall-pulse { animation-name: d-pulse; transform-box: fill-box; transform-origin: center; }
@keyframes d-paper { 0%, 30% { opacity: 1; } 38%, 100% { opacity: 0; } }
@keyframes d-scan { 0%, 5% { transform: translateY(0); opacity: 0; } 8% { opacity: 1; } 30% { transform: translateY(210px); opacity: 1; } 33%, 100% { opacity: 0; transform: translateY(210px); } }
@keyframes d-memo { 0%, 32% { opacity: 0; transform: translateY(12px); } 40%, 55% { opacity: 1; transform: none; } 60%, 100% { opacity: 0; } }
@keyframes d-slip { 0%, 56% { opacity: 0; transform: translate(0, 0) scale(1); } 60% { opacity: 1; transform: translate(0, 0) scale(1); } 78% { opacity: 1; transform: translate(var(--dx), var(--dy)) scale(.35); } 82%, 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.35); } }
@keyframes d-pulse { 0%, 76% { opacity: 0; transform: scale(.8); } 82% { opacity: .9; transform: scale(1.25); } 92%, 100% { opacity: 0; transform: scale(1.4); } }
.demo .d-final { opacity: 0; }
.demo.is-paused * { animation-play-state: paused !important; }
/* Reduced motion or low-end (data saver): show the final frame, no loop. */
@media (prefers-reduced-motion: reduce) {
  .demo .d-paper, .demo .d-scan, .demo .d-memo, .demo .d-slip, .demo .d-stall-pulse { animation: none; }
  .demo .d-paper, .demo .d-scan, .demo .d-memo, .demo .d-slip { opacity: 0; }
  .demo .d-final { opacity: 1; }
}
.demo.is-static .d-paper, .demo.is-static .d-scan, .demo.is-static .d-memo, .demo.is-static .d-slip, .demo.is-static .d-stall-pulse { animation: none; opacity: 0; }
.demo.is-static .d-final { opacity: 1; }

/* ---------- Memo, stall, status (shared with admin) ---------- */
.mh-memo {
  position: relative; background: var(--mh-memo-paper); border-radius: var(--mh-r-lg); box-shadow: var(--mh-e1);
  padding: calc(var(--mh-space-lg) + 4px) var(--mh-space-lg) var(--mh-space-lg);
  /* Perforated top edge: a row of 6 px half-circle cut-outs. */
  -webkit-mask: radial-gradient(circle 3px at 6px 0, transparent 98%, #000 100%) 0 0 / 12px 100% repeat-x;
          mask: radial-gradient(circle 3px at 6px 0, transparent 98%, #000 100%) 0 0 / 12px 100% repeat-x;
}
.mh-memo__code { position: absolute; top: var(--mh-space-md); inset-inline-end: var(--mh-space-lg); font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: .02em; color: var(--mh-on-surface-variant); }
.mh-stall {
  display: grid; gap: var(--mh-space-xs); align-content: start; min-width: 148px; padding: var(--mh-space-md);
  background: var(--mh-surface); border-radius: var(--mh-r-lg); box-shadow: var(--mh-e1); border-top: 4px solid var(--stall);
}
.mh-stall__avatar { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--stall); color: var(--mh-on-stall); font-weight: 600; margin-bottom: var(--mh-space-xs); }
.mh-stall__name { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mh-stall__rep { display: inline-flex; align-items: center; gap: var(--mh-space-xs); font-size: var(--mh-fs-small); color: var(--mh-on-surface-variant); }
.mh-dot--inline { display: inline-block; margin-inline-end: 6px; vertical-align: middle; }
.mh-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--mh-presence-active); box-shadow: 0 0 0 2px var(--mh-surface); }
.mh-status { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: var(--mh-r-pill); background: var(--bg); color: var(--fg); font-size: .8125rem; font-weight: 600; }
.mh-status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ---------- Before / after strip (§9.3-1) ---------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--mh-r-xl); overflow: hidden; box-shadow: var(--mh-e1); background: var(--mh-surface); }
.ba__side { padding: var(--mh-space-xxl); display: grid; gap: var(--mh-space-lg); align-content: start; }
.ba__side--before { background: var(--mh-surface-container); }
.ba__tag { justify-self: start; padding: 2px var(--mh-space-md); border-radius: var(--mh-r-pill); font-weight: 600; font-size: var(--mh-fs-small); }
.ba__side--before .ba__tag { background: var(--mh-danger-bg); color: var(--mh-danger); }
.ba__side--after .ba__tag { background: var(--mh-success-bg); color: var(--mh-success); }
.ba ul { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--mh-space-sm); }
.ba li { display: flex; gap: var(--mh-space-sm); align-items: flex-start; }
.ba li svg { flex: none; width: 22px; height: 22px; margin-top: 2px; }
.ba__side--before li svg { fill: var(--mh-danger); }
.ba__side--after li svg { fill: var(--mh-success); }
.ba__art { width: 100%; max-width: 280px; height: auto; }
@media (max-width: 720px) { .ba { grid-template-columns: 1fr; } }

/* ---------- How it works: two lanes (§9.3-2) ---------- */
.lane-toggle { display: inline-flex; padding: 4px; gap: 4px; border-radius: var(--mh-r-pill); background: var(--mh-surface); box-shadow: var(--mh-e1); margin-bottom: var(--mh-space-xxl); }
.lane-toggle button { min-height: 44px; padding-inline: var(--mh-space-xl); border: 0; border-radius: var(--mh-r-pill); background: transparent; color: var(--mh-on-surface-variant); font: inherit; font-weight: 600; cursor: pointer; }
.lane-toggle button[aria-selected="true"] { background: var(--mh-primary-container); color: var(--mh-on-primary-container); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--mh-gutter); grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.steps[hidden] { display: none; }
.step { counter-increment: step; display: grid; gap: var(--mh-space-md); align-content: start; }
.step__frame {
  width: 100%; max-width: 220px;
  aspect-ratio: 9 / 16; border-radius: var(--mh-r-xl); padding: 10px; background: var(--mh-ink); box-shadow: var(--mh-e2);
}
.step__screen { height: 100%; border-radius: calc(var(--mh-r-xl) - 8px); background: var(--mh-surface-container-low); overflow: hidden; display: grid; place-items: center; padding: var(--mh-space-md); }
.step__icon { width: 40%; height: auto; color: var(--mh-primary); }
.step__screen img { width: 100%; height: 100%; object-fit: cover; }
.step h3::before { content: counter(step, bengali) ". "; color: var(--mh-primary); }
:lang(en) .step h3::before { content: counter(step) ". "; }
.step p { color: var(--mh-on-surface-variant); }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .steps { gap: var(--mh-space-lg); } .step__frame { padding: 6px; } }

/* ---------- Stall wall (§9.3-3) ---------- */
.stall-wall { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stall-wall__track { display: flex; gap: var(--mh-space-md); width: max-content; padding-block: var(--mh-space-md); animation: wall 60s linear infinite; }
.stall-wall:hover .stall-wall__track { animation-play-state: paused; }
@keyframes wall { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .stall-wall__track { animation: none; flex-wrap: wrap; width: auto; } }
.stall-wall__caption { margin-top: var(--mh-space-xl); font-family: var(--mh-font-display); font-weight: 700; font-size: var(--mh-fs-h3); }

/* ---------- Trust (§9.3-4): calm Indigo tint ---------- */
.trust { background: var(--mh-secondary-container); color: var(--mh-on-secondary-container); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mh-space-xxxl); align-items: center; }
.trust .lead { color: inherit; opacity: .85; }
.trust__line { font-family: var(--mh-font-display); font-weight: 700; font-size: var(--mh-fs-h3); }
.badges { display: grid; gap: var(--mh-space-md); margin: 0; padding: 0; list-style: none; }
.badges li { display: flex; gap: var(--mh-space-md); align-items: flex-start; }
.badges svg { flex: none; width: 24px; height: 24px; fill: var(--mh-info); margin-top: 2px; }
.rep-card { background: var(--mh-surface); color: var(--mh-on-surface); border-radius: var(--mh-r-lg); box-shadow: var(--mh-e2); padding: var(--mh-space-xxl); display: grid; gap: var(--mh-space-md); }
.rep-card__head { display: flex; gap: var(--mh-space-md); align-items: center; }
.rep-card__avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--mh-stall-1); color: var(--mh-on-stall); font-weight: 600; font-size: 1.25rem; }
.rep-card__badges { display: flex; flex-wrap: wrap; gap: var(--mh-space-md); color: var(--mh-info); font-size: var(--mh-fs-small); font-weight: 500; }
.rep-card__badges span { display: inline-flex; gap: 4px; align-items: center; }
.rep-card__badges svg { width: 16px; height: 16px; fill: currentColor; }
@media (max-width: 900px) { .trust__grid { grid-template-columns: 1fr; } }

/* ---------- For companies: the one dark band, Night Haat (§9.3-5) ---------- */
.night { background: var(--mh-night-haat); color: var(--mh-on-surface); }
.night__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--mh-space-xxxl); align-items: start; }
.night .form input, .night .form textarea { background: var(--mh-surface-container); }
@media (max-width: 900px) { .night__grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form { display: grid; gap: var(--mh-space-lg); }
.form label { display: grid; gap: var(--mh-space-xs); font-weight: 600; font-size: .9375rem; }
.form input, .form textarea {
  font: inherit; min-height: 56px; padding: var(--mh-space-md) var(--mh-space-lg); border-radius: var(--mh-r-md);
  border: 1px solid var(--mh-outline-variant); background: var(--mh-surface-container-lowest); color: var(--mh-on-surface);
}
.form input:focus, .form textarea:focus { outline: none; border: 2px solid var(--mh-primary); box-shadow: var(--mh-focus-glow); }
.flash { padding-top: calc(var(--mh-nav-h) + var(--mh-space-xl)); }
.page--plain .flash { padding-top: var(--mh-space-xl); }
.form--narrow { max-width: 480px; margin-top: var(--mh-space-xl); padding-bottom: var(--mh-section-pad); }
.page-head .faq { margin-top: var(--mh-space-xl); padding-bottom: var(--mh-section-pad); }
.alert { padding: var(--mh-space-md) var(--mh-space-lg); border-radius: var(--mh-r-md); margin-bottom: var(--mh-space-lg); }
.alert-ok { background: var(--mh-success-bg); color: var(--mh-success); }
.alert-err { background: var(--mh-danger-bg); color: var(--mh-danger); }

/* ---------- FAQ (§9.3-6) ---------- */
.faq { display: grid; gap: var(--mh-space-md); max-width: 820px; }
.faq details { background: var(--mh-surface); border-radius: var(--mh-r-md); box-shadow: var(--mh-e1); padding: var(--mh-space-lg) var(--mh-space-xl); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: var(--mh-space-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--mh-primary); font-weight: 600; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin-top: var(--mh-space-md); color: var(--mh-on-surface-variant); }

/* ---------- Final CTA (§9.3-7) ---------- */
.final { text-align: center; }
.final__inner { display: grid; justify-items: center; gap: var(--mh-space-xl); }
.qr { width: 140px; height: 140px; padding: var(--mh-space-sm); background: var(--mh-white); border-radius: var(--mh-r-md); box-shadow: var(--mh-e1); }
.qr svg { width: 100%; height: 100%; }

/* ---------- Footer (§9.3-8): Ink ---------- */
.site-footer { background: var(--mh-ink); color: rgba(255, 255, 255, .78); padding-block: var(--mh-space-colossal) var(--mh-space-xxxl); font-size: var(--mh-fs-small); }
.site-footer a { color: var(--mh-white); }
.site-footer .cols { display: grid; gap: var(--mh-space-xxl); grid-template-columns: 2fr 1fr 1fr; }
.site-footer strong { color: var(--mh-white); font-family: var(--mh-font-display); font-size: 1.25rem; }
@media (max-width: 720px) { .site-footer .cols { grid-template-columns: 1fr; } }

/* ---------- Inner pages ---------- */
.page--plain main { padding-top: var(--mh-nav-h); }
.page-head { padding-block: var(--mh-space-giant) var(--mh-space-xxl); display: grid; gap: var(--mh-space-sm); }
.page-head h1 { font-size: var(--mh-fs-h2); font-weight: 700; line-height: var(--mh-lh-h2); }
.legal { display: grid; grid-template-columns: 240px minmax(0, var(--mh-measure)); gap: var(--mh-space-huge); align-items: start; padding-bottom: var(--mh-section-pad); }
.toc { position: sticky; top: calc(var(--mh-nav-h) + var(--mh-space-xl)); display: grid; gap: var(--mh-space-sm); font-size: var(--mh-fs-small); }
.toc a { color: var(--mh-on-surface-variant); text-decoration: none; }
.toc a:hover { color: var(--mh-secondary); text-decoration: underline; }
.prose { max-width: var(--mh-measure); }
.prose h2 { font-size: var(--mh-fs-h3); margin: var(--mh-space-xxxl) 0 var(--mh-space-md); scroll-margin-top: calc(var(--mh-nav-h) + var(--mh-space-lg)); }
.prose p, .prose li { color: var(--mh-on-surface-variant); margin-bottom: var(--mh-space-md); }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; } .toc { display: none; } }

/* ---------- Invite page /i/{code} (GROWTH_AND_CONTROL §1.3) ---------- */
.invite { max-width: 640px; padding-bottom: var(--mh-section-pad); gap: var(--mh-space-lg); }
.invite__card { margin-block: var(--mh-space-md); }
.invite__stores { margin-top: var(--mh-space-sm); }
.store-badge--primary { background: var(--mh-primary); color: var(--mh-on-primary); }
.invite__code { display: grid; gap: var(--mh-space-sm); justify-items: start; padding: var(--mh-space-xl); border-radius: var(--mh-r-lg); background: var(--mh-surface-container-low, var(--mh-surface)); border: 1px dashed var(--mh-outline-variant); }
.invite__code-value { font-family: var(--mh-font-display); font-weight: 700; font-size: var(--mh-fs-h2); letter-spacing: .12em; font-variant-numeric: tabular-nums; }
