/* ==========================================================================
   Menunir — landing page
   Editorial "typeset menu" aesthetic on the product palette:
   wine #8b2635 · gold #e0a458 · cream #faf7f2 · ink #2b2118
   ========================================================================== */

:root {
  /* Brand palette (the Mannaz tile studies): Iron Slate #2c3038,
     Oxide Red #7a2e25, Aged Bronze #a9803f, Bone/Birch #e7dec9,
     Pine Fjord #26382f. Light: Oxide and Bronze on bone paper with slate
     text. Dark: bone on Iron Slate, the logo tile turned into a page.
     --wine / --gold keep their names: they are the white-label slots the
     hero swatches overwrite (js/main.js applySiteBrand). */
  --wine: #7a2e25;              /* Oxide Red */
  --wine-deep: #5c211b;
  --gold: #a9803f;              /* Aged Bronze */
  --gold-soft: #ecdfc4;
  --cream: #f6f1e6;             /* bone, lightened for reading */
  --paper: #fffcf6;
  --ink: #2c3038;               /* Iron Slate */
  --ink-soft: #5c5f66;
  --border: #e3d9c5;
  --ok: #2f6b4f;

  --font-display: 'Fraunces', 'Literata', Georgia, 'Times New Roman', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 14px;
  --container: 1120px;
  --shadow-soft: 0 2px 6px rgba(44, 48, 56, 0.06), 0 18px 44px rgba(44, 48, 56, 0.09);
  --shadow-phone: 0 8px 16px rgba(44, 48, 56, 0.12), 0 32px 72px rgba(44, 48, 56, 0.22);

  /* Roles on top of the palette, so the dark scheme only swaps values.
     Everything derived from --wine / --gold recomputes when the swatches
     change them.
     --accent: the brand colour as text, outline or line on the page
     (--wine stays the fill behind white text). --logo: the wordmark.
     --band: the dark stripes (footer), dark in both schemes; --band-stats
     the stats stripe. */
  --accent: var(--wine);
  --logo: var(--accent);
  --gold-tint: var(--gold-soft);
  --hero-glow-2: #ebe1cc;
  --band: #2c3038;
  --band-stats: #2c3038;
  --on-band: #e7dec9;
  --bad: #a9483c;
  --swatch-ring: var(--border);
  /* Hero weave: bronze on bone in light, bone on slate in dark (opacity). */
  --hero-pattern: 0.08;
  --hero-pattern-ink: var(--gold);
  /* Bronze as body-size text: 45% keeps every swatch gold at 4.5:1+ on paper. */
  --gold-text: color-mix(in oklab, var(--gold) 45%, var(--ink));
  /* Brand star: four Mannaz marks round a centre (brand master
     star-no-color.svg), as an SVG pattern of 190px tiles tilted 8 degrees.
     One image the size of the box (mask-size 100%, no repeat): a rotated
     pattern has no square tile that repeats seamlessly. */
  --star-mask: url("data:image/svg+xml,%3Csvg%20xmlns=%22http://www.w3.org/2000/svg%22%20width=%22100%25%22%20height=%22100%25%22%3E%3Cdefs%3E%3Cpath%20id=%22m%22%20d=%22m153.7229-580.09317v116.10719h14.51396v-93.35375l37.0349%2016.89443-22.52094%2010.27349v15.95246l40.00488-18.24894%2040.25696%2018.36296v-15.95247l-22.77148-10.3875%2037.28544-17.00845v93.46777h14.51396v-116.10719l-69.28488%2031.6709z%22%20transform=%22translate%28-52.12968%20580.09317%29%22/%3E%3Cpattern%20id=%22p%22%20width=%22190%22%20height=%22190%22%20patternUnits=%22userSpaceOnUse%22%20patternTransform=%22rotate%288%29%22%3E%3Cg%20transform=%22scale%28.55636%29%22%3E%3Cuse%20href=%22%23m%22/%3E%3Cuse%20href=%22%23m%22%20transform=%22rotate%2890%20170.752%20170.752%29%22/%3E%3Cuse%20href=%22%23m%22%20transform=%22rotate%28180%20170.752%20170.752%29%22/%3E%3Cuse%20href=%22%23m%22%20transform=%22rotate%28270%20170.752%20170.752%29%22/%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect%20width=%22100%25%22%20height=%22100%25%22%20fill=%22url%28%23p%29%22/%3E%3C/svg%3E");

  color-scheme: light;
}

/* Dark scheme: follows the OS unless the header toggle chose one
   (js/theme.js sets data-theme on <html> before first paint). The two
   blocks below must stay identical. The phone mockup keeps its light menu
   themes: it shows a restaurant's brand, not ours. A dark scheme of our own
   also keeps Dark Reader away (plus the darkreader-lock meta). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --cream: #22252b;
    --paper: #2c3038;           /* Iron Slate */
    --ink: #e7dec9;             /* Bone */
    --ink-soft: #aaa497;
    --border: #3e434d;
    --ok: #8cc6a4;
    --bad: #ec9a8e;

    --accent: color-mix(in oklab, var(--wine) 38%, #e7dec9);
    --logo: #e7dec9;            /* Bone Mannaz and wordmark, as on the Iron Slate tile */
    --gold-tint: color-mix(in oklab, var(--gold) 24%, var(--paper));
    --hero-glow-2: color-mix(in oklab, var(--wine) 30%, transparent);
    --band: #1b1d22;
    --band-stats: #26382f;      /* Pine Fjord */
    --on-band: #e7dec9;
    --swatch-ring: var(--ink-soft);
    --hero-pattern: 0.03;
    --hero-pattern-ink: currentColor;
    --gold-text: color-mix(in oklab, var(--gold) 78%, var(--ink));

    --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.25), 0 18px 44px rgba(0, 0, 0, 0.3);
    --shadow-phone: 0 0 0 1px #3e434d, 0 8px 16px rgba(0, 0, 0, 0.3), 0 32px 72px rgba(0, 0, 0, 0.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --cream: #22252b;
  --paper: #2c3038;           /* Iron Slate */
  --ink: #e7dec9;             /* Bone */
  --ink-soft: #aaa497;
  --border: #3e434d;
  --ok: #8cc6a4;
  --bad: #ec9a8e;

  --accent: color-mix(in oklab, var(--wine) 38%, #e7dec9);
  --logo: #e7dec9;            /* Bone Mannaz and wordmark, as on the Iron Slate tile */
  --gold-tint: color-mix(in oklab, var(--gold) 24%, var(--paper));
  --hero-glow-2: color-mix(in oklab, var(--wine) 30%, transparent);
  --band: #1b1d22;
  --band-stats: #26382f;      /* Pine Fjord */
  --on-band: #e7dec9;
  --swatch-ring: var(--ink-soft);
  --hero-pattern: 0.03;
  --hero-pattern-ink: currentColor;
  --gold-text: color-mix(in oklab, var(--gold) 78%, var(--ink));

  --shadow-soft: 0 2px 6px rgba(0, 0, 0, 0.25), 0 18px 44px rgba(0, 0, 0, 0.3);
  --shadow-phone: 0 0 0 1px #3e434d, 0 8px 16px rgba(0, 0, 0, 0.3), 0 32px 72px rgba(0, 0, 0, 0.45);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 5rem; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.center { text-align: center; }

/* Config-driven links (js/config.js) toggle the hidden attribute; make sure
   component display rules such as .btn { display: inline-block } never win. */
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--wine); color: #fff;
  padding: 0.6rem 1rem; z-index: 100; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold-tint); }

/* ---------- Typography ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 550;
  line-height: 1.12;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 5.4vw, 4rem);
  letter-spacing: -0.01em;
}
h1 em {
  font-style: italic;
  color: var(--accent);
}

h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.22rem; font-weight: 700; }

p { margin: 0 0 1em; }

.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.9rem;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 1.6rem; height: 2px;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 0.6rem;
}

.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 34em;
}

.section-lead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 44em;
  margin-bottom: 2.5rem;
}
.center .section-lead { margin-inline: auto; }

.micro {
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-block;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 6px 18px color-mix(in srgb, var(--wine) 32%, transparent);
}
.btn-primary:hover { background: var(--wine-deep); box-shadow: 0 8px 24px color-mix(in srgb, var(--wine) 40%, transparent); }

.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn-light {
  background: var(--on-band);
  color: var(--wine);
}
.btn-light:hover { background: #fff; }

.btn-sm { padding: 0.5rem 1.1rem; font-size: 0.9rem; }

/* Final CTA while there is no signup URL and no contact email yet. */
.btn[aria-disabled="true"] { cursor: default; opacity: 0.85; }
.btn[aria-disabled="true"]:hover { background: var(--on-band); }
.btn[aria-disabled="true"]:active { transform: none; }

.header-login {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}
.header-login:hover { color: var(--accent); }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.8rem;
}

.wordmark {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark-dot { color: var(--accent); }

/* Inline wordmark SVG: inherits currentColor, so the header logo is Wine and
   re-skins live with the white-label theme swatches like everything else. */
.wordmark { color: var(--logo); display: inline-flex; align-items: center; transition: color 0.45s ease; }
.wordmark-logo { height: 1.35rem; width: auto; display: block; }
.site-footer .wordmark-logo { height: 1.15rem; }

.site-nav {
  display: flex;
  gap: 1.4rem;
  margin-inline: auto;
  min-width: 0;
}
.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  line-height: 1.2;
  text-wrap: balance;
  font-size: 0.95rem;
  font-weight: 600;
}
.site-nav a:hover { color: var(--accent); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
/* On desktop the nav gives way, never the wordmark or the actions; phones keep
   letting the actions shrink so the signup label can wrap. */
@media (min-width: 1001px) {
  .wordmark, .header-actions { flex-shrink: 0; }
}

/* Language menu: a <details> pill (globe + code) opening a list of links,
   one per language page. Works without JavaScript. */
.lang-menu { position: relative; }
.lang-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  list-style: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  color: var(--ink-soft);
  cursor: pointer;
}
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}
.lang-menu[open] summary,
.lang-menu summary:hover { color: var(--ink); }
.lang-globe { width: 1rem; height: 1rem; }
/* Header icons never give way; on long-label languages the nav does. */
.lang-globe, .lang-menu summary::after, .theme-toggle .ti { flex-shrink: 0; }
.lang-menu-list {
  position: absolute;
  right: 0;
  top: calc(100% + 0.4rem);
  min-width: 11rem;
  max-height: min(70vh, 26rem);
  overflow-y: auto;
  margin: 0;
  padding: 0.35rem;
  list-style: none;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  z-index: 60;
}
.lang-menu-list a {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.92rem;
}
.lang-menu-list a:hover { background: var(--gold-tint); }
.lang-menu-list a[aria-current="page"] { font-weight: 700; color: var(--accent); }
.lang-code { color: var(--ink-soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; }

/* Root page: "this page is also in <your language>" (js/main.js). */
.lang-banner {
  background: var(--gold-tint);
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.lang-banner-inner {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  padding-block: 0.5rem;
}
.lang-banner-inner p { margin: 0; }
.lang-banner-go { color: var(--accent); font-weight: 700; }
.lang-banner-close {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 1.3rem;
  line-height: 1;
  padding: 0.1rem 0.4rem;
  cursor: pointer;
}
.lang-banner-close:hover { color: var(--ink); }

/* Light / dark toggle: same pill as the language switch, icon + label. */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem 0.3rem 0.55rem;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover { color: var(--accent); border-color: var(--accent); }
.theme-toggle .ti { width: 1.05rem; height: 1.05rem; display: none; }
.theme-toggle[data-choice="light"] .ti-light,
.theme-toggle[data-choice="dark"] .ti-dark { display: block; }

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3rem, 7vw, 5rem);
  background:
    radial-gradient(60rem 30rem at 110% -10%, var(--gold-tint) 0%, transparent 60%),
    radial-gradient(40rem 24rem at -20% 110%, var(--hero-glow-2) 0%, transparent 55%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin: 1.8rem 0 1rem;
}

/* ---------- Phone mockup ---------- */

.hero-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

.phone {
  margin: 0;
  width: min(320px, 82vw);
  border-radius: 42px;
  background: #14100c;
  padding: 12px;
  box-shadow: var(--shadow-phone);
  position: relative;
  transform: rotate(1.6deg);
}

.phone-notch {
  position: absolute;
  top: 20px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 22px;
  background: #14100c;
  border-radius: 12px;
  z-index: 3;
}

.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  min-height: 560px;
  background: var(--m-bg, #fdfaf5);
  color: var(--m-ink, #2b2118);
  font-size: 0.82rem;
  line-height: 1.45;
  transition: background 0.35s ease, color 0.35s ease;
}

/* demo menu themes (the white-label pitch, live) */
.phone-screen[data-theme="burdeos"]      { --m-primary: #8b2635; --m-accent: #e0a458; --m-bg: #fdfaf5; --m-ink: #2b2118; --m-soft: #877764; --m-card: #ffffff; --m-line: #ecdfcd; }
.phone-screen[data-theme="mediterraneo"] { --m-primary: #155e8a; --m-accent: #e0b25c; --m-bg: #f6fafc; --m-ink: #14242e; --m-soft: #5a7482; --m-card: #ffffff; --m-line: #d9e7ee; }
.phone-screen[data-theme="oliva"]        { --m-primary: #4a5d23; --m-accent: #c8a24a; --m-bg: #fafaf3; --m-ink: #23281a; --m-soft: #6f7460; --m-card: #ffffff; --m-line: #e3e3cf; }
.phone-screen[data-theme="noche"]        { --m-primary: #e0a458; --m-accent: #e0a458; --m-bg: #1d1a26; --m-ink: #f0ecf4; --m-soft: #a49bb4; --m-card: #292535; --m-line: #3a3549; }

.m-header {
  background: var(--m-primary);
  color: #fff;
  padding: 2.1rem 1rem 0.9rem;
  text-align: center;
  transition: background 0.35s ease;
}
.phone-screen[data-theme="noche"] .m-header { color: #1d1a26; }

.m-name {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: 0.02em;
}
.m-sub {
  margin: 0.15rem 0 0;
  font-size: 0.68rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.m-body { padding: 0.9rem 0.95rem 1.2rem; }

.m-section {
  font-family: var(--font-display);
  color: var(--m-primary);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0.9rem 0 0.45rem;
  padding-bottom: 0.25rem;
  border-bottom: 2px solid var(--m-line);
  transition: color 0.35s ease, border-color 0.35s ease;
}
.m-section:first-child { margin-top: 0; }

.m-item {
  display: flex;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.42rem 0;
}
.m-item + .m-item { border-top: 1px dashed var(--m-line); }

.m-item-main { min-width: 0; }
.m-item-name { font-weight: 650; }
.m-item-desc {
  color: var(--m-soft);
  font-size: 0.72rem;
  margin: 0.08rem 0 0.2rem;
}
.m-price {
  font-weight: 700;
  color: var(--m-primary);
  white-space: nowrap;
  transition: color 0.35s ease;
}

.m-allergens { display: flex; flex-wrap: wrap; gap: 0.25rem; }
.m-allergen {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--m-primary);
  background: color-mix(in srgb, var(--m-primary) 10%, var(--m-card));
  border: 1px solid color-mix(in srgb, var(--m-primary) 28%, transparent);
  padding: 0.08rem 0.4rem;
  border-radius: 999px;
  transition: color 0.35s ease, background 0.35s ease, border-color 0.35s ease;
}

.m-footer {
  text-align: center;
  font-size: 0.62rem;
  color: var(--m-soft);
  padding-bottom: 0.4rem;
}

/* ---------- Demo controls ---------- */

.demo-controls { text-align: center; }

.demo-hint {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.demo-langs {
  display: inline-flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.7rem;
}
.demo-langs button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--paper);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}
.demo-langs button:hover { border-color: var(--accent); color: var(--accent); }
.demo-langs button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
}

.demo-themes {
  display: inline-flex;
  gap: 0.55rem;
}
.demo-themes button {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--paper);
  outline: 1px solid var(--swatch-ring);
  background: var(--dot);
  cursor: pointer;
  transition: transform 0.15s ease, outline-color 0.15s ease;
}
.demo-themes button:hover { transform: scale(1.15); }
.demo-themes button.active {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ---------- Stats ---------- */

.stats {
  background: var(--band-stats);
  color: var(--on-band);
  padding-block: 2.4rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 550;
  color: var(--gold);
  line-height: 1.1;
}
.stat-label {
  display: block;
  font-size: 0.85rem;
  color: color-mix(in srgb, var(--on-band) 78%, transparent);
  margin-top: 0.3rem;
}

/* ---------- Sections ---------- */

.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-alt { background: var(--paper); border-block: 1px solid var(--border); }

/* ---------- Problem / compare ---------- */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
  margin-top: 1rem;
}

.compare-col {
  border-radius: var(--radius);
  padding: 1.6rem 1.7rem;
  background: var(--paper);
  border: 1px solid var(--border);
}
.compare-col h3 { margin-bottom: 0.9rem; }
.compare-col ul { list-style: none; margin: 0; padding: 0; }
.compare-col li {
  padding-left: 1.7rem;
  position: relative;
  margin-bottom: 0.65rem;
}
.compare-col li::before {
  position: absolute;
  left: 0;
  font-weight: 700;
}

.compare-bad { border-style: dashed; }
.compare-bad h3 { color: var(--ink-soft); }
.compare-bad li { color: var(--ink-soft); }
.compare-bad li::before { content: '✕'; color: var(--bad); }

.compare-good {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-soft);
}
.compare-good h3 { color: var(--accent); }
.compare-good li::before { content: '✓'; color: var(--ok); }

/* ---------- Steps ---------- */

.steps {
  list-style: none;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem;
  margin: 2.5rem 0 0;
  padding: 0;
}

.step {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.7rem;
  position: relative;
}

.step-course {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--gold-text);
  font-size: 1.05rem;
  margin-bottom: 1rem;
}
/* Serbian and Macedonian write some italic Cyrillic letters (б г д п т)
   differently from Russian, and Literata has only the Russian forms. Their
   pages set the italic accents upright; the colour still marks them. */
:root:lang(sr) em, :root:lang(mk) em,
:root:lang(sr) .step-course, :root:lang(mk) .step-course {
  font-style: normal;
}
.step-course::after {
  content: '';
  display: block;
  width: 2.2rem; height: 2px;
  background: var(--gold);
  margin-top: 0.35rem;
}

.step-visual {
  color: var(--accent);
  margin-bottom: 1rem;
}

.step p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Features ---------- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.feature {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.feature-icon {
  width: 3rem; height: 3rem;
  display: grid;
  place-items: center;
  background: var(--gold-tint);
  color: var(--accent);
  border-radius: 12px;
  margin-bottom: 1rem;
}

.feature p:last-child { margin-bottom: 0; color: var(--ink-soft); }

/* ---------- Privacy band ---------- */

.privacy-band {
  background: var(--wine);
  color: #fff;
  padding-block: clamp(2.6rem, 6vw, 4rem);
}

.privacy-quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem);
  line-height: 1.4;
  max-width: 30em;
  margin: 0 auto;
  text-align: center;
  text-wrap: balance;
}

/* ---------- Pricing ---------- */

.plans {
  display: grid;
  /* minmax(0, 1fr): the columns share the row instead of growing to fit the
     wide Franchise card's content, which pushed long-label pages (German)
     past the viewport just above the two-column breakpoint. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  align-items: stretch;
  margin-bottom: 1.6rem;
}

.plan {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.8rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
}

.plan-featured {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow-soft);
}

/* Franchise: one wide card under the four-tier grid */
.plan-wide {
  grid-column: 1 / -1;
  display: grid;
  /* fit-content(40%): the head never takes more than 40% of the row, so a
     long tagline wraps instead of squeezing the feature list. */
  grid-template-columns: fit-content(40%) minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.6rem 2rem;
}
.plan-wide-head .plan-tag {
  min-height: 0;
  margin: 0;
}
/* .plan.plan-wide: outweighs the later .plan ul, whose bottom margin would
   leave empty space under the list and lift it off the head's centre line. */
.plan.plan-wide ul {
  margin: 0;
  flex-grow: 0;
}

@media (max-width: 900px) {
  .plan-wide { grid-template-columns: 1fr; justify-items: start; }
  /* Stacked, the list needs the breathing room the other cards have. */
  .plan.plan-wide ul { margin: 0.8rem 0; }
}

.plan-badge {
  position: absolute;
  top: -0.85rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--wine);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.22rem 0.9rem;
  border-radius: 999px;
  white-space: nowrap;
  margin: 0;
}

.plan h3 { margin-bottom: 0.2rem; }

/* "Coming soon" on plans that are not open yet (paidPlansOpen in
   js/config.js): above the plan name on every card, the Franchise card
   included, and after it in the calculator result. */
.plan-soon {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold-tint);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  vertical-align: middle;
  margin: 0;
}
.plan > .plan-soon,
.plan-wide-head > .plan-soon {
  align-self: flex-start;
  margin-bottom: 0.55rem;
  /* A long label (Finnish, Portuguese) wraps inside the pill rather than
     sticking out of a narrow card. */
  white-space: normal;
  max-width: 100%;
  text-wrap: balance;
  /* Slightly tighter than the inline pill so the longest label (Finnish)
     still fits one line of a full-width desktop card. */
  letter-spacing: 0.06em;
}
/* Free's counterpart while paid plans are closed: the plan you can have. */
.plan-soon.plan-now {
  color: var(--accent);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.plan-price {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 550;
  color: var(--accent);
  margin-bottom: 0.1rem;
}
.plan-price span {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan-tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  min-height: 2.6em;
}

.plan ul {
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  flex-grow: 1;
}
.plan li {
  font-size: 0.92rem;
  padding: 0.34rem 0 0.34rem 1.5rem;
  position: relative;
}
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

.plan .btn { text-align: center; max-width: 100%; }

/* Four narrow columns just above the general two-column breakpoint leave no
   room for a one-word CTA (German "benachrichtigen"): the word is wider than
   the pill's text area at every desktop width and only hides in the pill's
   side padding from about 1050px up. Hyphenating or breaking the word would
   split it at every desktop width, so the pricing grid stays at two columns
   until the cards are wide enough. */
@media (min-width: 601px) and (max-width: 1050px) {
  .plans { grid-template-columns: 1fr 1fr; }
}

/* ---------- FAQ ---------- */

.faq-inner { max-width: 780px; }

.faq details {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 0.8rem;
  overflow: hidden;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 1.05rem 1.3rem;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+';
  position: absolute;
  right: 1.3rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--accent);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq summary:hover { color: var(--accent); }

.faq details p {
  padding: 0 1.3rem 1.15rem;
  margin: 0;
  color: var(--ink-soft);
}

/* ---------- Final CTA ---------- */

.cta-final {
  background:
    radial-gradient(50rem 26rem at 50% 120%, rgba(224, 164, 88, 0.28) 0%, transparent 60%),
    var(--wine-deep);
  color: #fff;
  padding-block: clamp(4rem, 9vw, 6.5rem);
}
.cta-final h2 { color: #fff; }
.cta-final .section-lead { color: #eadfd2; margin-bottom: 2rem; }
.cta-final .micro { color: #cbb7a8; margin-top: 1.2rem; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--band);
  color: color-mix(in srgb, var(--on-band) 78%, transparent);
  padding-block: 3rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2rem;
}

.site-footer .wordmark { color: var(--on-band); font-size: 1.3rem; }
.site-footer .micro { color: color-mix(in srgb, var(--on-band) 66%, transparent); }

.site-footer nav, .footer-legal {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.site-footer a {
  color: color-mix(in srgb, var(--on-band) 78%, transparent);
  text-decoration: none;
  font-size: 0.9rem;
}
.site-footer a:hover { color: var(--gold); }

/* Every language as a plain link: proof of the claim and a crawlable path. */
.footer-langs {
  margin-top: 2.2rem;
  padding-top: 1.4rem;
  border-top: 1px solid color-mix(in srgb, var(--on-band) 18%, transparent);
}
.site-footer .footer-lang-list {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.1rem;
}
.footer-lang-list p { margin: 0 0.4rem 0 0; }
.site-footer .footer-lang-list a[aria-current="page"] { color: var(--on-band); font-weight: 700; }
.footer-ai-note { margin-top: 0.9rem; }
.site-footer .footer-ai-note a { font-size: inherit; text-decoration: underline; text-underline-offset: 0.2em; }

/* ---------- Brand star pattern ---------- */
/* Four Mannaz marks rotated around a shared center form an eight-pointed star;
   repeated edge-to-edge, the corner staves of four neighbours close into squares.
   Master SVG lives in the brand art folder (star-no-color.svg). Masked overlay so
   the weave takes currentColor: it stays legible on every white-label re-skin. */

.hero,
.privacy-band,
.cta-final {
  position: relative;
}

.hero::before,
.privacy-band::before,
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background-color: currentColor;
  -webkit-mask-image: var(--star-mask);
  mask-image: var(--star-mask);
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  opacity: 0.045;
  pointer-events: none;
}

.hero .container,
.privacy-band .container,
.cta-final .container {
  position: relative;
}
/* Hero: the weave tilted, bronze on bone (light) or bone on slate (dark),
   the logo tile's material carried across the first screen. Fades out
   towards the bottom so the stats stripe starts clean. */
.hero::before {
  background-color: var(--hero-pattern-ink);
  opacity: var(--hero-pattern);
  -webkit-mask-image: linear-gradient(#000 40%, transparent), var(--star-mask);
  mask-image: linear-gradient(#000 40%, transparent), var(--star-mask);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

/* ---------- Live white-label: whole page re-skins on swatch click ---------- */
/* The brand tokens (--wine / --gold …) are swapped at :root by JS.
   These surfaces ease between brands so the rebrand reads as intentional. */
.btn-primary,
.privacy-band,
.cta-final,
.feature-icon,
.plan-featured,
.compare-good,
.stat-value,
.step-visual,
.eyebrow {
  transition: background-color 0.45s ease, border-color 0.45s ease,
              color 0.45s ease, box-shadow 0.45s ease, transform 0.15s ease;
}

.demo-whitelabel {
  font-size: 0.82rem;
  color: var(--ink-soft);
  max-width: 22rem;
  margin: 0.9rem auto 0;
  line-height: 1.45;
}
.demo-whitelabel strong { color: var(--accent); transition: color 0.45s ease; }

/* ---------- Cost calculator / plan recommender ---------- */

.calc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
  align-items: start;
  margin-top: 1rem;
}

.calc-form {
  display: grid;
  gap: 1.4rem;
  border: 0;
}

.calc-q {
  border: 0;
  margin: 0;
  padding: 0;
  min-inline-size: 0;
}
.calc-q legend {
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 0.6rem;
  padding: 0;
}

.calc-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.calc-options button {
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.calc-options button:hover { border-color: var(--accent); color: var(--accent); }
.calc-options button:active { transform: translateY(1px); }
.calc-options button.active {
  background: var(--wine);
  border-color: var(--wine);
  color: #fff;
  box-shadow: 0 4px 12px color-mix(in srgb, var(--wine) 28%, transparent);
}

/* Result card */
.calc-result {
  position: sticky;
  top: 5.5rem;
  background: var(--paper);
  border: 1px solid var(--border);
  border-left: 5px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.8rem;
  box-shadow: var(--shadow-soft);
  transition: border-color 0.45s ease;
}

.calc-r-kicker {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}

.calc-r-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-bottom: 0.2rem;
}
.calc-r-name {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent);
  margin: 0;
  transition: color 0.45s ease;
}
.calc-r-price {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  color: var(--ink);
  white-space: nowrap;
}
.calc-r-price span { font-family: var(--font-body); font-size: 0.8rem; font-weight: 600; color: var(--ink-soft); }

.calc-r-price-note {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: 0;
}

.calc-r-why {
  color: var(--ink-soft);
  margin: 0.7rem 0 1rem;
  font-size: 0.98rem;
}

.calc-r-list {
  list-style: none;
  margin: 0 0 1.3rem;
  padding: 0;
}
.calc-r-list li {
  font-size: 0.92rem;
  padding: 0.28rem 0 0.28rem 1.5rem;
  position: relative;
}
.calc-r-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
  transition: color 0.45s ease;
}

.calc-r-soon {
  font-size: 0.88rem;
  background: var(--gold-tint);
  border-radius: calc(var(--radius) / 2);
  padding: 0.65rem 0.85rem;
  margin: 0 0 1.1rem;
}

.calc-r-note {
  font-size: 0.82rem;
  color: var(--ink-soft);
  border-top: 1px dashed var(--border);
  padding-top: 0.9rem;
  margin: 1rem 0 0;
}
.calc-r-note strong { color: var(--accent); transition: color 0.45s ease; }

.calc-result .btn { width: 100%; text-align: center; }

.calc-r-swap { animation: calcSwap 0.4s ease; }
@keyframes calcSwap {
  from { opacity: 0.35; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- Reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .phone-screen, .m-header, .m-section, .m-price, .m-allergen { transition: none; }
  .btn, .feature { transition: none; }
  .btn-primary, .privacy-band, .cta-final, .feature-icon, .plan-featured,
  .compare-good, .stat-value, .step-visual, .eyebrow, .calc-options button,
  .calc-result, .calc-r-name, .calc-r-list li::before, .demo-whitelabel strong { transition: none; }
  .calc-r-swap { animation: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { text-align: center; }
  .hero-copy .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phone { transform: none; }

  .steps, .feature-grid { grid-template-columns: 1fr 1fr; }
  .plans { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 2rem 1rem; }
  .site-nav { display: none; }

  .calc-layout { grid-template-columns: 1fr; }
  .calc-result { position: static; }
}

@media (max-width: 600px) {
  .steps, .feature-grid, .plans, .compare { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-inner { gap: 0.8rem; }
}

/* ---------- 404 page (bunnycdn_errors/404.html) ---------- */

.not-found {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: 4rem;
}

/* ---------- Legal pages (privacy/index.html) ---------- */
/* Long-form reading: narrow measure, draft banner, visible placeholders. */

.legal-page {
  max-width: 46rem;
  padding-block: 2.5rem 4rem;
}
.legal-page h1 { font-size: clamp(2rem, 4.6vw, 2.8rem); }
.legal-page h2 { font-size: 1.35rem; margin-top: 2rem; }
.legal-page ul { padding-left: 1.2rem; margin: 0 0 1em; }
.legal-page li { margin-bottom: 0.4em; }
.legal-page a { color: var(--accent); text-underline-offset: 0.2em; }
.legal-page .btn-ghost { color: var(--ink); }
.legal-page article { scroll-margin-top: 5rem; }

.legal-draft {
  background: var(--gold-tint);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

mark.ph {
  background: var(--gold-tint);
  color: var(--ink);
  outline: 1px dashed var(--accent);
  border-radius: 3px;
  padding: 0 0.2em;
  overflow-wrap: anywhere;
}

.legal-divider {
  border: 0;
  border-top: 1px solid var(--border);
  margin-block: 3.5rem;
}
.legal-back { margin-top: 3rem; }

.legal-langs {
  display: flex;
  gap: 1rem;
  margin-left: auto;
}
.legal-langs a {
  color: var(--ink-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.legal-langs a:hover { color: var(--accent); }

/* ---------- Forced colours (Windows contrast themes) ---------- */
/* The browser replaces every colour with the user's system palette. The
   swatches and the phone ARE colour samples, so they keep theirs; selected
   toggles lose their background fill, so they get an outline instead. */

@media (forced-colors: active) {
  .phone, .demo-themes button { forced-color-adjust: none; }
  .lang-menu-list a[aria-current="page"],
  .demo-langs button.active,
  .calc-options button.active {
    outline: 2px solid Highlight;
    outline-offset: 1px;
  }
  .privacy-band::before, .cta-final::before { display: none; }
}

/* ---------- Notice bar (js/config.js notice) ---------- */

.site-notice {
  background: var(--gold-tint);
  color: var(--ink);
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
  padding-block: 0.55rem;
}
.site-notice[data-level="warning"] {
  background: var(--wine);
  border-bottom-color: var(--wine-deep);
  color: #fff;
}
.site-notice a { color: inherit; text-underline-offset: 0.2em; }

/* Narrow phones: keep the header on one line (the CTA used to wrap). */
/* The logo never shrinks and the header CTA stays on one line while it fits;
   the nav and the paddings give way first. A label that still does not fit
   (long languages, e.g. French "Démarrer gratuitement") wraps to two
   balanced lines inside the button instead of pushing the page sideways. */
.wordmark { flex-shrink: 0; }
.header-actions .btn-sm { white-space: nowrap; }
@media (max-width: 760px) {
  .header-actions { min-width: 0; }
  /* Tighter lines for the two-line case; the extra block padding keeps a
     one-line button exactly as tall as before ((1.6 - 1.25) / 2 = 0.175em). */
  .header-actions .btn-sm {
    white-space: normal;
    min-width: 0;
    text-wrap: balance;
    text-align: center;
    line-height: 1.25;
    padding-block: calc(0.5rem + 0.175em);
  }
}
/* Desktop nav sizing. The container stops growing at 1120px, so the header
   has no more room at 1920px than at 1200px: one size for every desktop
   width keeps long labels (Basque, Welsh) at two lines at most. The tight
   band where the toggle loses its label gets a little extra squeeze. */
@media (min-width: 1001px) {
  .header-inner { gap: 0.75rem; }
  .site-nav { gap: 0.65rem; }
  .site-nav a { font-size: 0.84rem; }
}
@media (min-width: 1001px) and (max-width: 1140px) {
  .header-inner { gap: 0.6rem; }
  .header-actions { gap: 0.6rem; }
  .site-nav { gap: 0.5rem; }
  .site-nav a { font-size: 0.8rem; }
}
/* Once the toggle has its label back, the nav takes the room between the
   wordmark and the actions and spreads its links across it, so short-label
   languages (English) do not bunch five small links in the middle. */
@media (min-width: 1141px) {
  .site-nav { flex: 1; justify-content: space-evenly; }
}
/* Up to 1000px the nav is hidden (it no longer fits next to the toggle);
   keep the actions on the right. */
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .header-actions { margin-left: auto; }
}
/* The toggle drops its label where the header is tight (icon + tooltip). */
@media (max-width: 540px), (min-width: 1001px) and (max-width: 1140px) {
  .theme-toggle { padding: 0.32rem; }
  .theme-toggle-label { display: none; }
}
@media (max-width: 460px) {
  .header-inner { gap: 0.6rem; }
  .header-actions { gap: 0.5rem; }
  .wordmark-logo { height: 1.1rem; }
  .lang-menu summary { padding-inline: 0.55rem; }
  .header-actions .btn-sm { padding-inline: 0.85rem; }
}
@media (max-width: 380px) {
  .site-header .container { padding-inline: 1rem; }
  .wordmark-logo { height: 0.95rem; }
  .lang-menu summary { padding-inline: 0.45rem; gap: 0.25rem; }
  .header-actions .btn-sm { padding-inline: 0.7rem; font-size: 0.8rem; }
}
@media (max-width: 400px) {
  .header-inner, .header-actions { gap: 0.35rem; }
  .theme-toggle { padding: 0.25rem; }
  .theme-toggle .ti { width: 0.95rem; height: 0.95rem; }
}
@media (max-width: 340px) {
  .header-inner, .header-actions { gap: 0.3rem; }
  .lang-menu summary { padding-inline: 0.38rem; }
  .lang-globe { display: none; }
  .header-actions .btn-sm { padding-inline: 0.5rem; font-size: 0.74rem; }
}

/* ---------- Waitlist (js/config.js waitlist) ---------- */

.waitlist-inner { max-width: 40rem; }
.waitlist .section-lead { margin-bottom: 1.8rem; }
.waitlist-form {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  align-items: start;
}
.waitlist-form .btn { grid-column: 1 / -1; justify-self: start; }
.waitlist-field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.waitlist-field[hidden] { display: none; }
.waitlist-field label { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.waitlist-field input,
.waitlist-field select {
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0 0.85rem;
  height: 3rem;
  width: 100%;
}
.waitlist-field input::placeholder { color: var(--ink-soft); opacity: 0.8; }
.waitlist-field input:focus-visible,
.waitlist-field select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
  border-color: var(--accent);
}
.waitlist-form .btn:disabled { opacity: 0.7; cursor: progress; }
.waitlist-status { grid-column: 1 / -1; margin: 0; }
/* While empty, the live region stays in the accessibility tree (screen
   readers only announce changes to a live region that already exists) but
   takes no space: visually hidden and out of the grid, so no extra gap. */
.waitlist-status:empty {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.waitlist-status[data-kind]:not(:empty) {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  background: var(--gold-tint);
  color: var(--ink);
  line-height: 1.5;
}
.waitlist-status[data-kind="success"]:not(:empty) { border-left-color: var(--gold); }
.waitlist-field input[aria-invalid="true"] { border-color: var(--accent); }
.waitlist-privacy { margin-top: 1rem; margin-bottom: 0; }
.waitlist-privacy a { color: var(--accent); text-underline-offset: 0.2em; }
@media (max-width: 600px) {
  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-form .btn { justify-self: stretch; text-align: center; }
}
