/* ==========================================================================
   Nozzi — Lightweight Official Website Stylesheet (MTZ Labs)
   Palette matched 1:1 with lib/features/onboarding/encounter_style.dart
   ========================================================================== */

/* Self-hosted fonts (zero third-party requests — GDPR / DE LG München I compliant) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("./fonts/fraunces-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 500 600;
  font-display: swap;
  src: url("./fonts/fraunces-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: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("./fonts/instrument-sans-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;
}

:root {
  --bg: #FAF7F0;
  --surface: #FFFFFF;
  --surface-alt: #F2EEE4;
  --sky: #E3F2E7;
  --ink: #1F241F;
  --muted: #535B52;
  --line: #E1E5DC;
  --line-strong: #CBD3C4;

  /* Botanical green primary & tactile 3D button */
  --accent: #1F7A63;
  --accent-soft: #E5F4EC;
  --accent-ink: #124E3E;
  --btn: #1E7E63;
  --btn-hover: #186A53;
  --btn-lip: #145A46;
  --on-btn: #FFFFFF;

  /* Warm amber accent */
  --warm: #E98B38;
  --warm-tint: #FFF4E3;
  --warm-ink: #8E460A;
  --warm-line: #F4D8B0;

  /* Botanical night footer */
  --forest-bg: #15211B;
  --forest-ink: #F5F3EC;
  --forest-muted: #B6C2B9;
  --forest-line: rgba(245, 243, 236, 0.14);

  /* Danger (account deletion callout) */
  --danger: #B9382C;
  --danger-tint: #FDF1EF;
  --danger-line: #F0C9C4;

  /* Typography */
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1120px;
  --gut: 32px;
  --nav-h: 72px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 24px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 140ms var(--ease);
}
.skip-link:focus-visible { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.wrap {
  width: min(100% - 2 * var(--gut), var(--wrap));
  margin-inline: auto;
}

/* Typography */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.025em;
  margin: 0;
  font-variation-settings: "opsz" 72, "SOFT" 40;
}
h1 {
  font-size: clamp(2.4rem, 4vw + 1.1rem, 3.85rem);
  line-height: 1.05;
  text-wrap: balance;
}
h2 {
  font-size: clamp(1.65rem, 2vw + 0.95rem, 2.35rem);
  line-height: 1.14;
  text-wrap: balance;
}
h3 {
  font-size: 1.1875rem;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
p { margin: 0; }
.t-lead {
  font-size: clamp(1.0625rem, 0.35vw + 0.98rem, 1.1875rem);
  line-height: 1.55;
  color: var(--muted);
  max-width: 50ch;
}
.t-muted { color: var(--muted); }
.t-num { font-variant-numeric: tabular-nums; }
.t-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent-ink);
  background: var(--accent-soft);
  padding: 6px 13px;
  border-radius: var(--r-pill);
}
.t-label--warm {
  color: var(--warm-ink);
  background: var(--warm-tint);
}

.text-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: rgba(31, 122, 99, 0.38);
  transition: text-decoration-color 150ms var(--ease), color 150ms var(--ease);
}
.text-link:hover {
  color: var(--btn-lip);
  text-decoration-color: var(--btn-lip);
}

/* Standard buttons (used on subpages & 404) */
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 11px 20px;
  border-radius: var(--r-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 120ms var(--ease), background-color 150ms var(--ease),
    box-shadow 120ms var(--ease), border-color 150ms var(--ease);
}
.btn--sm { min-height: 40px; padding: 9px 16px; font-size: 0.9rem; }
.btn--primary {
  background: var(--btn);
  color: var(--on-btn);
  box-shadow: 0 3.5px 0 var(--btn-lip), 0 8px 18px rgba(30, 126, 99, 0.18);
}
.btn--primary:hover { background: var(--btn-hover); transform: translateY(-1px); }
.btn--primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--btn-lip); }
.btn--secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--secondary:hover { background: var(--surface-alt); border-color: var(--ink); transform: translateY(-1px); }
.btn--danger {
  background: var(--danger);
  color: #FFFFFF;
  box-shadow: 0 3px 0 #8A261D;
}
.btn--danger:hover { background: #A32F24; transform: translateY(-1px); }

/* Store Download Buttons (App Store & Google Play) */
.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  min-width: 204px;
  padding: 10px 22px;
  border-radius: 16px;
  text-decoration: none;
  transition: transform 130ms var(--ease), box-shadow 130ms var(--ease), background-color 150ms var(--ease);
}
.store-btn--primary {
  background: var(--btn);
  color: var(--on-btn);
  box-shadow: 0 3.5px 0 var(--btn-lip), 0 10px 22px rgba(30, 126, 99, 0.2);
}
.store-btn--primary:hover {
  background: var(--btn-hover);
  transform: translateY(-2px);
  box-shadow: 0 5px 0 var(--btn-lip), 0 14px 26px rgba(30, 126, 99, 0.24);
}
.store-btn--primary:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 var(--btn-lip);
}
.store-btn--dark {
  background: var(--ink);
  color: #FFFFFF;
  box-shadow: 0 3.5px 0 #0B0E0B, 0 10px 22px rgba(31, 36, 31, 0.16);
}
.store-btn--dark:hover {
  background: #2C332C;
  transform: translateY(-2px);
  box-shadow: 0 5px 0 #0B0E0B, 0 14px 26px rgba(31, 36, 31, 0.22);
}
.store-btn--dark:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 #0B0E0B;
}
.store-btn__icon { flex: none; }
.store-btn__text {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.15;
}
.store-btn__text small {
  font-size: 0.72rem;
  font-weight: 500;
  opacity: 0.86;
}
.store-btn__text strong {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  height: var(--nav-h);
}
.nav-bar {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex: none;
}
.brand__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid rgba(31, 36, 31, 0.08);
  object-fit: cover;
}
.brand__name {
  font-family: var(--font-display);
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 0;
  transition: color 150ms var(--ease);
}
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms var(--ease);
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ink); }
.nav-link:hover::after,
.nav-link[aria-current="page"]::after { transform: scaleX(1); }

.nav-right { display: flex; align-items: center; gap: 10px; }

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px;
  gap: 2px;
}
.lang-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 600;
  min-width: 34px;
  min-height: 32px;
  padding: 4px 9px;
  border-radius: var(--r-pill);
  cursor: pointer;
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.lang-btn:hover { color: var(--ink); }
.lang-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  cursor: pointer;
}

.mobile-drawer {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  z-index: 49;
  background: var(--bg);
  border-top: 1px solid var(--line);
  padding: 20px var(--gut) 40px;
  overflow-y: auto;
}
.mobile-drawer.is-open { display: flex; flex-direction: column; gap: 16px; }
.mobile-drawer__links { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.mobile-drawer__link {
  display: flex;
  align-items: center;
  min-height: 54px;
  font-size: 1.0625rem;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

/* ==========================================================================
   Hero (Download Focus)
   ========================================================================== */
.hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 76%);
  padding: clamp(40px, 5vw, 72px) 0 clamp(52px, 6vw, 84px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: clamp(32px, 5vw, 64px);
}
.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.hero-facts {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 10px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line-strong);
}
.hero-facts dt { font-size: 0.8125rem; color: var(--muted); margin-bottom: 2px; }
.hero-facts dd { margin: 0; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

.hero-stage {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 12px 12px 8px;
}
.phone-frame {
  width: min(334px, 88vw);
  aspect-ratio: 9 / 19.2;
  padding: 10px;
  border-radius: 44px;
  background: #1B221E;
  box-shadow: 0 26px 60px rgba(21, 33, 27, 0.18), 0 2px 6px rgba(21, 33, 27, 0.1);
}
.phone-frame__screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
}

/* Detailed interactive Meadow park map built with official Nozzi SVGs */
.park-mock {
  position: relative;
  background: #A4D672;
  color: var(--ink);
}
.park-mock__ground {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.park-mock__world {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.park-mock__world img { position: absolute; height: auto; }
.pm-pine-tl       { top: 8.5%; left: -3%; width: 24%; }
.pm-tree-tl       { top: 11%; left: 16%; width: 23%; }
.pm-tree-tr       { top: 9%; right: 2%; width: 24%; }
.pm-bush-tr       { top: 17%; right: 20%; width: 21%; }
.pm-flowers-tr    { top: 21.5%; right: 5%; width: 11%; }

.pm-house         { top: 20.5%; left: -1%; width: 44%; }
.pm-flowers-house { top: 34.5%; left: 2%; width: 15%; }
.pm-pergola       { top: 24%; right: 2%; width: 26%; }
.pm-lantern       { top: 34.5%; right: 21%; width: 14%; }

.pm-picnic        { top: 47.5%; left: 3%; width: 24%; }
.pm-bunny         { top: 46%; left: 24%; width: 17%; }
.pm-birdhouse     { top: 55.5%; left: 30%; width: 13%; }

.pm-fountain      { top: 44.5%; right: 3%; width: 25%; }
.pm-bench         { top: 56%; right: 4%; width: 20%; }
.pm-fox           { top: 57%; right: 22%; width: 18%; }

.pm-pond          { top: 62%; left: 4%; width: 32%; }
.pm-duck          { top: 62.5%; left: 13%; width: 14%; }
.pm-hedgehog      { top: 67.5%; right: 6%; width: 16%; }
.pm-flowers-br    { top: 71.5%; right: 23%; width: 11%; }
.pm-bush-bl       { bottom: 11.5%; left: -2%; width: 24%; }
.pm-tree-br       { bottom: 10.5%; right: -4%; width: 26%; }

/* Clickable Nozzi mascot positioned higher on the plaza + speech popup */
.pm-nozzi-btn {
  position: absolute;
  z-index: 3;
  top: 28.5%;
  left: 54%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.pm-nozzi-img {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 6px 8px rgba(31, 36, 31, 0.18));
  transition: transform 180ms var(--ease);
}
.pm-nozzi-btn:hover .pm-nozzi-img { transform: translateY(-2px) scale(1.04); }
.pm-nozzi-btn.is-bouncing .pm-nozzi-img { animation: nozziHop 340ms var(--ease); }
@keyframes nozziHop {
  0% { transform: translateY(0) scale(1); }
  45% { transform: translateY(-7px) scale(1.06); }
  100% { transform: translateY(0) scale(1); }
}
.pm-speech {
  position: relative;
  background: #FFFFFF;
  color: var(--ink);
  border: 1.5px solid rgba(31, 36, 31, 0.1);
  border-radius: 13px;
  padding: 5px 10px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(31, 36, 31, 0.14);
}
.pm-speech::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 8px;
  height: 8px;
  background: #FFFFFF;
  border-right: 1.5px solid rgba(31, 36, 31, 0.1);
  border-bottom: 1.5px solid rgba(31, 36, 31, 0.1);
  transform: translateX(-50%) rotate(45deg);
}

.park-mock__hud {
  position: relative;
  z-index: 4;
  height: 100%;
  padding: 14px 12px 13px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  pointer-events: none;
}
.park-mock__hud button,
.park-sheet { pointer-events: auto; }

.app-mock__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.app-mock__week {
  flex: 1;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 36, 31, 0.08);
  border-radius: 999px;
  padding: 5px 8px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  box-shadow: 0 4px 12px rgba(31, 36, 31, 0.08);
}
.app-mock__week span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
}
.app-mock__week i {
  font-style: normal;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--accent);
  color: #FFFFFF;
  display: grid;
  place-items: center;
  font-size: 9.5px;
  font-weight: 700;
}
.app-mock__week i.is-mod { background: var(--warm); }
.app-mock__week i.is-today { background: var(--surface-alt); color: var(--muted); border: 1px solid var(--line-strong); }
.app-mock__sos {
  flex: none;
  background: rgba(255, 255, 255, 0.96);
  color: var(--warm-ink);
  border: 1.5px solid var(--warm-line);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 36, 31, 0.08);
  transition: transform 120ms var(--ease), background-color 140ms var(--ease);
}
.app-mock__sos:hover,
.app-mock__sos[aria-expanded="true"] {
  background: var(--warm-tint);
  transform: translateY(-1px);
}

/* Interactive quick bottom sheet inside the phone */
.park-sheet {
  margin-top: auto;
  margin-bottom: 8px;
  background: rgba(250, 247, 240, 0.98);
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  padding: 12px 13px;
  box-shadow: 0 14px 30px rgba(21, 33, 27, 0.22);
  display: flex;
  flex-direction: column;
  gap: 9px;
  animation: sheetUp 190ms var(--ease) both;
}
.park-sheet[hidden] { display: none; }
@keyframes sheetUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.park-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.park-sheet__head strong { font-size: 13px; font-weight: 700; }
.park-sheet__close {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: #FFFFFF;
  font-size: 15px;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.park-sheet__sub { font-size: 11.5px; color: var(--muted); margin-bottom: 6px; }
.park-sheet__hint { font-size: 11px; color: var(--accent-ink); font-weight: 600; margin-top: 7px; }
.park-sheet__choices { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet-chip {
  border: 1.5px solid var(--line-strong);
  background: #FFFFFF;
  color: var(--ink);
  border-radius: 12px;
  padding: 7px 8px;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms var(--ease), border-color 140ms var(--ease);
}
.sheet-chip.is-selected {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.sheet-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.sheet-stats > div {
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 7px 6px;
  text-align: center;
}
.sheet-stats strong { display: block; font-family: var(--font-display); font-size: 14px; font-weight: 600; line-height: 1.1; }
.sheet-stats span { font-size: 10px; color: var(--muted); }
.sheet-bars {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  align-items: end;
  gap: 6px;
  height: 42px;
  margin-top: 8px;
  padding: 4px 4px 0;
}
.sheet-bars span {
  display: block;
  border-radius: 4px 4px 2px 2px;
  background: var(--line-strong);
}
.sheet-bars span.is-good { background: var(--accent); }
.sheet-zones { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.sheet-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1.5px solid var(--line);
  border-radius: 11px;
  padding: 7px 9px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
}
.sheet-zone.is-current { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.sheet-zone i { font-style: normal; font-size: 11px; font-weight: 700; color: var(--accent); }
.sheet-sos { display: flex; align-items: center; gap: 12px; }
.sheet-sos__orb {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 2px solid var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex: none;
  transition: transform 800ms var(--ease), background-color 350ms var(--ease);
}
.sheet-sos__orb[data-phase="inhale"] { transform: scale(1.16); background: #CBEADA; }
.sheet-sos__orb[data-phase="hold"] { transform: scale(1.16); background: var(--warm-tint); border-color: var(--warm); color: var(--warm-ink); }
.sheet-sos__orb[data-phase="exhale"] { transform: scale(0.92); background: var(--accent-soft); }
.sheet-sos__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.sheet-sos__body strong { font-size: 12px; }

.park-mock__bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.park-mock__zone {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 36, 31, 0.08);
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 4px 12px rgba(31, 36, 31, 0.1);
}
.app-mock__dock {
  width: 100%;
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 6px;
}
.app-mock__tab {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(31, 36, 31, 0.08);
  border-radius: 14px;
  padding: 8px 6px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.15;
  text-align: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(31, 36, 31, 0.1);
  transition: transform 120ms var(--ease), background-color 140ms var(--ease);
}
.app-mock__tab:hover { transform: translateY(-1px); }
.app-mock__tab.is-active {
  background: var(--btn);
  border-color: var(--btn-lip);
  color: #FFFFFF;
  box-shadow: 0 2.5px 0 var(--btn-lip), 0 6px 14px rgba(20, 90, 70, 0.25);
}
.app-mock__tab b { font-weight: 700; }
.app-mock__tab small { font-size: 9.5px; opacity: 0.92; font-weight: 500; }

/* ==========================================================================
   Official Links & Privacy Section
   ========================================================================== */
.section { padding: clamp(52px, 6vw, 84px) 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--line); }

.section-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: clamp(28px, 3.5vw, 40px);
  max-width: 66ch;
}

.purpose-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.purpose-card {
  background: var(--sky);
  border: 1px solid #CCE4D3;
  border-radius: var(--r-md);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.purpose-card h3 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}
.purpose-card p {
  font-size: 0.9375rem;
  color: var(--ink);
  opacity: 0.86;
  line-height: 1.5;
}

.quick-links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.quick-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  text-decoration: none;
  transition: transform 150ms var(--ease), border-color 150ms var(--ease);
}
.quick-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}
.quick-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

/* Health notice & helplines */
.health-box {
  margin-top: 32px;
  background: var(--warm-tint);
  border: 1px solid var(--warm-line);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 24px;
  align-items: start;
}
.health-box h3 { font-size: 1.0625rem; margin-bottom: 6px; }
.health-box p { font-size: 0.925rem; }
.helplines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.925rem;
}
.helplines li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(142, 70, 10, 0.16);
}
.helplines li:last-child { border-bottom: 0; padding-bottom: 0; }
.helplines strong { color: var(--warm-ink); }

/* ==========================================================================
   Legal & Support Document Layout (/privacy, /terms, /support, /delete-account)
   ========================================================================== */
.doc-hero {
  background: linear-gradient(180deg, var(--sky) 0%, var(--bg) 100%);
  padding: clamp(36px, 5vw, 64px) 0 32px;
  border-bottom: 1px solid var(--line);
}
.doc-hero__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 72ch;
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.875rem;
  color: var(--muted);
}

.doc-shell {
  padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 88px);
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: clamp(28px, 4vw, 52px);
  align-items: start;
}
.doc-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-right: 16px;
  border-right: 1px solid var(--line);
}
.doc-toc__title { font-size: 0.8125rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.doc-toc a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 0;
  line-height: 1.35;
}
.doc-toc a:hover { color: var(--accent); }

.doc-body { max-width: 72ch; display: flex; flex-direction: column; gap: 30px; }
.doc-section { display: flex; flex-direction: column; gap: 12px; }
.doc-section h2 { font-size: clamp(1.35rem, 1.3vw + 0.9rem, 1.7rem); padding-top: 6px; }
.doc-section h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; margin-top: 4px; }
.doc-section ul, .doc-section ol { margin: 0; padding-left: 20px; display: grid; gap: 8px; }

.doc-callout {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.doc-callout--warm { background: var(--warm-tint); border-color: var(--warm-line); border-left-color: var(--warm); }
.doc-callout--danger { background: var(--danger-tint); border-color: var(--danger-line); border-left-color: var(--danger); }

.doc-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.doc-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; text-align: left; }
.doc-table th, .doc-table td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc-table th { background: var(--surface-alt); font-weight: 600; font-size: 0.875rem; }
.doc-table tr:last-child td { border-bottom: 0; }

.steps-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.step-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* FR visible by default without JS */
[data-lang-block] { display: none; }
html[data-lang="en"] [data-lang-block="en"],
html:not([data-lang]) [data-lang-block="en"] { display: block; }
html[data-lang="fr"] [data-lang-block="fr"] { display: block; }
html[data-lang="de"] [data-lang-block="de"] { display: block; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--forest-bg);
  color: var(--forest-ink);
  padding: 48px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 28px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--forest-line);
}
.footer-brand { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-brand p { color: var(--forest-muted); font-size: 0.925rem; max-width: 34ch; }
.footer-col h3 { font-family: var(--font-sans); font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 0.925rem; color: var(--forest-muted); text-decoration: none; }
.footer-col a:hover { color: var(--forest-ink); text-decoration: underline; text-underline-offset: 4px; }

.footer-bottom {
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 0.875rem;
  color: var(--forest-muted);
}
.footer-bottom__links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-bottom a { color: var(--forest-muted); text-decoration: none; }
.footer-bottom a:hover { color: var(--forest-ink); text-decoration: underline; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .hero-grid, .health-box, .purpose-grid { grid-template-columns: 1fr; }
  .quick-links-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .doc-shell { grid-template-columns: 1fr; }
  .doc-toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0 0 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 14px;
  }
  .doc-toc__title { width: 100%; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
  :root { --gut: 20px; --nav-h: 64px; }
  .quick-links-grid, .steps-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 440px) {
  .store-btn { width: 100%; justify-content: center; }
  .hero-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
