/* Mindling marketing — tokens from app Theme */

:root {
  --color-bg: #fdfaf4;
  --color-bg-alt: #eae4d6;
  --color-surface: #ffffff;
  --color-border: #ddd8cc;
  --color-text: #1c2233;
  --color-text-mid: #6aada8;
  --color-text-soft: #9a9080;
  --color-teal: #28b0a5;
  --color-teal-light: #86e4da;
  --color-teal-dark: #1a9890;
  --color-teal-pale: #cef0ec;
  --color-gold: #ffd966;
  --color-coral: #ff8fa3;
  --color-lavender: #c8a8e8;
  --color-lav-pale: #f0e8fc;

  --font-display: 'Fredoka One', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  --radius-lg: 28px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --shadow-soft: 0 24px 64px rgba(28, 34, 51, 0.12);
  --shadow-card: 0 2px 8px rgba(28, 34, 51, 0.06);

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

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

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md) var(--space-xl);
  min-height: var(--header-h);
  background: rgba(253, 250, 244, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(221, 216, 204, 0.5);
  transition: background 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out);
  isolation: isolate;
  overflow: hidden;
}

.site-header.is-scrolled {
  background: rgba(253, 250, 244, 0.92);
  box-shadow: var(--shadow-card);
}

/* App icon + wordmark (header link / footer static) */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
  overflow: visible;
}

.brand-lockup--footer {
  pointer-events: none;
}

.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  flex-shrink: 0;
  display: block;
  object-fit: contain;
}

.brand-lockup--footer .brand-icon {
  width: 2rem;
  height: 2rem;
}

/**
 * Canonical logotype — Fredoka One "Mindling" in teal + coral dot above the first i
 * (same geometry as app MindlingLogo.tsx). Header dot uses mindling-logo-dot-hop; app splash animates in RN.
 */
.logo-lockup {
  --logo-fs: 1.35rem;
  position: relative;
  display: inline-block;
  text-decoration: none;
  overflow: visible;
  line-height: 1;
}

.brand-lockup .logo-lockup {
  text-decoration: none;
}

.logo-lockup--footer {
  pointer-events: none;
}

.logo-wordmark {
  font-family: var(--font-display);
  font-size: var(--logo-fs);
  font-weight: 400;
  color: var(--color-teal);
  letter-spacing: 0.02em;
}

.logo-dot {
  position: absolute;
  /* Nudge above cap height so the tittle clears the i stem (Fredoka One in browsers) */
  top: calc(var(--logo-fs) * -0.04);
  left: calc(var(--logo-fs) * 0.85);
  width: calc(var(--logo-fs) * 0.32);
  height: calc(var(--logo-fs) * 0.32);
  border-radius: 50%;
  background-color: var(--color-coral);
  pointer-events: none;
}

/**
 * Header wordmark only — mirrors app MindlingLogo.tsx hop sequence (i→n→g→…→i + settle).
 * Hop duration ~2.15s; keyframes compressed to 43% so the full loop is 5s; footer stays static.
 */
@keyframes mindling-logo-dot-hop {
  0%,
  8% {
    transform: translate(0, 0);
  }
  9.6% {
    transform: translate(calc(0.23 * var(--logo-fs)), calc(var(--logo-fs) * -0.9));
  }
  12% {
    transform: translate(calc(0.46 * var(--logo-fs)), 0);
  }
  14.48% {
    transform: translate(calc(1.74 * var(--logo-fs)), calc(var(--logo-fs) * -1.7));
  }
  18.2% {
    transform: translate(calc(3.02 * var(--logo-fs)), 0);
  }
  20.68% {
    transform: translate(calc(2.42 * var(--logo-fs)), calc(var(--logo-fs) * -1.4));
  }
  24.4% {
    transform: translate(calc(1.82 * var(--logo-fs)), 0);
  }
  26.48% {
    transform: translate(calc(1.325 * var(--logo-fs)), calc(var(--logo-fs) * -1.2));
  }
  29.6% {
    transform: translate(calc(0.83 * var(--logo-fs)), 0);
  }
  31.36% {
    transform: translate(calc(0.415 * var(--logo-fs)), calc(var(--logo-fs) * -0.7));
  }
  34% {
    transform: translate(0, 0);
  }
  35.5% {
    transform: translate(0, calc(var(--logo-fs) * -0.22));
  }
  38% {
    transform: translate(0, calc(var(--logo-fs) * -0.03));
  }
  43%,
  100% {
    transform: translate(0, 0);
  }
}

.site-header .logo-dot {
  animation: mindling-logo-dot-hop 5s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-dot {
    animation: none;
  }
}

.logo--sm {
  --logo-fs: 1.15rem;
}

.site-nav {
  display: none;
  align-items: center;
  gap: var(--space-lg);
}

.site-nav a {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-text-soft);
  text-decoration: none;
  transition: color 0.25s var(--ease-out);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--color-teal-dark);
}

.site-nav__cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--color-text);
  color: var(--color-surface) !important;
}

.site-nav__cta:hover,
.site-nav__cta:focus-visible {
  color: var(--color-teal-light) !important;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  width: 44px;
  height: 44px;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform 0.25s var(--ease-out), opacity 0.2s;
}

.menu-toggle[aria-expanded='true'] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.menu-toggle[aria-expanded='true'] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--space-xl);
  gap: var(--space-md);
  background: rgba(253, 250, 244, 0.97);
  border-bottom: 1px solid var(--color-border);
  backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none !important;
}

.mobile-nav:not([hidden]) {
  display: flex;
}

.mobile-nav a {
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--color-text);
  text-decoration: none;
}

@media (min-width: 900px) {
  .site-nav {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
}

/* Section nav dots */
.section-dots {
  position: fixed;
  right: var(--space-md);
  top: 50%;
  transform: translateY(-50%);
  z-index: 30;
  display: none;
  flex-direction: column;
  gap: 10px;
}

.section-dots a {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(28, 34, 51, 0.18);
  border: 1px solid rgba(28, 34, 51, 0.08);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}

.section-dots a:hover,
.section-dots a:focus-visible {
  transform: scale(1.25);
  background: var(--color-teal);
}

.section-dots a.is-active {
  background: var(--color-teal-dark);
  transform: scale(1.35);
}

@media (min-width: 1100px) {
  .section-dots {
    display: flex;
  }
}

/* Sections */
main {
  position: relative;
  z-index: 1;
}

main section[id] {
  scroll-margin-top: calc(var(--header-h) + var(--space-md));
}

.section {
  padding: var(--space-3xl) var(--space-xl);
  padding-top: calc(var(--header-h) + var(--space-2xl));
}

.section__inner {
  max-width: 1180px;
  margin: 0 auto;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
}

.section--hero {
  min-height: min(92vh, 980px);
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
  padding-bottom: var(--space-3xl);
}

@media (min-width: 960px) {
  .section--hero {
    grid-template-columns: 1fr minmax(0, 1.15fr);
    gap: var(--space-3xl);
    align-items: start;
  }
}

/* Interactive hero — React bundle from interactive/ */
.hero-demo-column {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
  height: 100%;
  justify-content: space-around;
}

.hero-demo-root {
  width: 100%;
  min-height: 420px;
  display: flex;
  justify-content: center;
  /* Always visible — do not use .reveal on this column or RN content stays opacity:0 */
  opacity: 1;
}

.hero-demo-caption {
  margin: 0;
  max-width: 36rem;
  text-align: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--color-text-soft);
  line-height: 1.45;
}

.section--band {
  background: linear-gradient(135deg, var(--color-teal-dark) 0%, #0f6b64 48%, var(--color-teal) 100%);
  color: var(--color-surface);
  clip-path: inset(0);
}

.section--band .headline,
.section--band .body-lg,
.section--band h3 {
  color: var(--color-surface);
}

.section--band-alt {
  background: linear-gradient(160deg, #1c2233 0%, #2a3349 40%, var(--color-teal-dark) 100%);
}

.section--narrow .section__inner {
  max-width: 720px;
}

.section__header {
  margin-bottom: var(--space-2xl);
  max-width: 720px;
}

.section__sub {
  margin-top: var(--space-md);
  color: var(--color-text-soft);
}

.section--split {
  display: grid;
  gap: var(--space-2xl);
  align-items: center;
}

@media (min-width: 900px) {
  .section--split {
    grid-template-columns: 1fr 1.1fr;
  }
  .section--band .section--split {
    grid-template-columns: 0.95fr 1.05fr;
  }
}

.section--closing {
  text-align: center;
  padding-bottom: var(--space-3xl);
}

.section--closing .section__inner {
  max-width: 640px;
}

/* Typography */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin: 0 0 var(--space-md);
}

.eyebrow--on-dark {
  color: var(--color-teal-light);
}

.display {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin: 0 0 var(--space-lg);
  letter-spacing: 0.01em;
}

.display--sm {
  font-size: clamp(2rem, 4vw, 3rem);
}

.headline {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.08;
  margin: 0 0 var(--space-md);
}

.lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--color-text-soft);
  max-width: 36rem;
  margin: 0 0 var(--space-xl);
}

.body-lg {
  margin: 0 0 var(--space-lg);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--color-text-soft);
}

.section--band .body-lg {
  color: rgba(255, 255, 255, 0.88);
}

.body-muted {
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.body-muted code {
  font-size: 0.88em;
  padding: 0.15em 0.35em;
  background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}

.fineprint {
  font-size: 0.82rem;
  color: var(--color-text-soft);
  margin-top: var(--space-lg);
}

/* Buttons */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s, background 0.2s, color 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--color-teal);
  color: var(--color-surface);
  box-shadow: 0 12px 32px rgba(40, 176, 165, 0.35);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--color-teal-dark);
  box-shadow: 0 14px 40px rgba(26, 152, 144, 0.45);
}

.btn--ghost {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(28, 34, 51, 0.15);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--color-teal);
  color: var(--color-teal-dark);
}

.btn--large {
  padding: 1rem 2rem;
  font-size: 1.05rem;
}

/* Device frames */
.device-stage {
  margin: 0;
  text-align: center;
}

.device-caption {
  margin-top: var(--space-md);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.section--band .device-caption {
  color: rgba(255, 255, 255, 0.7);
}

.device-frame {
  border-radius: 42px;
  padding: 12px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.65), rgba(234, 228, 214, 0.4));
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(28, 34, 51, 0.06) inset;
  max-width: 320px;
  margin: 0 auto;
}

.section--band .device-frame {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.04));
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}

.device-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 390 / 844;
  object-fit: cover;
  border-radius: 32px;
}

.device-stage--small .device-frame {
  max-width: 220px;
  padding: 10px;
}

.device-stage--small .device-frame img {
  border-radius: 26px;
}

.device-duo {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xl);
  justify-content: center;
}

.device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-lg);
  align-items: end;
}

@media (min-width: 600px) {
  .device-grid {
    gap: var(--space-xl);
  }
}

.device-stage--span {
  grid-column: 1 / -1;
  justify-self: center;
}

/* Mood horizontal rail */
.mood-rail {
  display: flex;
  gap: var(--space-xl);
  overflow-x: auto;
  padding: var(--space-md) 0 var(--space-xl);
  scroll-snap-type: x mandatory;
  scroll-padding: var(--space-xl);
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.mood-rail:focus-visible {
  outline: 3px solid var(--color-teal-light);
  outline-offset: 4px;
}

.mood-card {
  flex: 0 0 min(210px, 72vw);
  scroll-snap-align: center;
  padding: var(--space-lg);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border);
}

.mood-card__preview {
  height: 132px;
  border-radius: var(--radius-md);
  margin-bottom: var(--space-md);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.72) 0%, var(--mood) 92%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), 0 8px 24px rgba(28, 34, 51, 0.08);
}

.mood-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 var(--space-sm);
  color: var(--color-text);
}

.mood-card p {
  margin: 0;
  font-weight: 600;
  color: var(--color-text-soft);
  font-size: 0.92rem;
  line-height: 1.45;
}

/* Age stages under Stakes */
.age-stages {
  margin-top: var(--space-3xl);
  padding-top: var(--space-2xl);
  border-top: 1px solid var(--color-border);
}

.subhead {
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 2rem);
  margin: 0 0 var(--space-md);
  color: var(--color-text);
}

.age-stages__lede {
  max-width: 40rem;
  margin-bottom: var(--space-xl);
}

.age-stages__lede strong {
  color: var(--color-teal-dark);
  font-weight: 800;
}

.age-stages__grid {
  display: grid;
  gap: var(--space-lg);
}

@media (min-width: 768px) {
  .age-stages__grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
  }
}

.stage-card {
  padding: var(--space-xl);
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
}

.stage-card__label {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-teal-dark);
  margin-bottom: var(--space-sm);
}

.stage-card__title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 var(--space-xs);
  color: var(--color-text);
}

.stage-card__meta {
  margin: 0 0 var(--space-md);
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--color-text-mid);
}

.stage-card__copy {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-text-soft);
  line-height: 1.5;
}

.section--create {
  background: linear-gradient(180deg, rgba(206, 240, 236, 0.35) 0%, transparent 55%);
}

.inline-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  list-style: none;
  padding: 0;
  margin: var(--space-lg) 0 0;
}

.inline-list li {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-surface);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.reveal--delay {
  transition-delay: 0.12s;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Stagger mood cards (seven states) */
.mood-card.reveal.in-view:nth-child(1) {
  transition-delay: 0s;
}
.mood-card.reveal.in-view:nth-child(2) {
  transition-delay: 0.05s;
}
.mood-card.reveal.in-view:nth-child(3) {
  transition-delay: 0.1s;
}
.mood-card.reveal.in-view:nth-child(4) {
  transition-delay: 0.15s;
}
.mood-card.reveal.in-view:nth-child(5) {
  transition-delay: 0.2s;
}
.mood-card.reveal.in-view:nth-child(6) {
  transition-delay: 0.25s;
}
.mood-card.reveal.in-view:nth-child(7) {
  transition-delay: 0.3s;
}

/* Footer */
.site-footer {
  padding: var(--space-2xl) var(--space-xl);
  border-top: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.55);
}

.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 720px) {
  .site-footer__grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr);
    gap: var(--space-2xl);
  }
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.site-footer__heading {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
}

.site-footer__links a {
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  text-decoration: none;
}

.site-footer__links a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.site-footer__contact {
  margin: 0;
  max-width: 22rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--color-text-soft);
}

.site-footer__contact a {
  font-weight: 700;
  color: var(--color-teal-dark);
  text-decoration: none;
}

.site-footer__contact a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

/* Legal documents (Privacy / Terms) */
.page-legal-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-main {
  flex: 1;
  padding: var(--space-lg) var(--space-xl) var(--space-3xl);
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
}

.legal-doc h1 {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.1rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

.legal-doc .legal-meta {
  margin: 0 0 var(--space-2xl);
  font-size: 0.95rem;
  color: var(--color-text-soft);
}

.legal-doc h2 {
  margin: var(--space-xl) 0 var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-text);
}

.legal-doc h2:first-of-type {
  margin-top: 0;
}

.legal-doc p {
  margin: 0 0 var(--space-md);
}

.legal-doc ul {
  margin: 0 0 var(--space-md);
  padding-left: 1.35rem;
}

.legal-doc li {
  margin-bottom: var(--space-xs);
}

.legal-doc a {
  font-weight: 700;
  color: var(--color-teal-dark);
  text-decoration: none;
}

.legal-doc a:hover {
  color: var(--color-teal);
  text-decoration: underline;
}

.site-footer__inner--legal-note {
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  margin-top: var(--space-xl);
}

.site-footer__inner--legal-note .fineprint {
  margin: 0;
  text-align: center;
}

.site-footer__inner--legal-note a {
  font-weight: 700;
  color: var(--color-teal-dark);
  text-decoration: none;
}

.site-footer__inner--legal-note a:hover {
  text-decoration: underline;
}

/* ─── 404 (lost-page) ─────────────────────────────────────────────────── */
.page-404-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-404-header {
  position: relative;
  flex-shrink: 0;
}

.page-404-home-link {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-teal-dark);
  text-decoration: none;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.page-404-home-link:hover {
  border-color: var(--color-teal-light);
  color: var(--color-teal);
}

.page-404 {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(var(--header-h) + var(--space-xl)) var(--space-xl) var(--space-3xl);
  max-width: 40rem;
  margin: 0 auto;
}

.page-404-card {
  margin-bottom: var(--space-lg);
  padding: var(--space-xl) var(--space-2xl);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-soft);
}

.page-404-mascot {
  display: block;
  margin: 0 auto;
  width: min(300px, 85vw);
  max-width: 100%;
  height: auto;
}

.page-404-kicker {
  margin: 0 0 var(--space-sm);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-text-soft);
}

.page-404-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
}

.page-404-lead {
  margin: 0 0 var(--space-xl);
  color: var(--color-text-soft);
  font-size: 1.05rem;
  line-height: 1.6;
}

.page-404-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-teal-light);
  border: 2px solid var(--color-teal);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out);
}

.page-404-cta:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

@media (prefers-reduced-motion: reduce) {
  .page-404-cta:hover {
    transform: none;
  }
}
