/* ========================================================================
   Mahu Support Site — Complete Stylesheet
   Golden-hour design system with light/dark mode
   ======================================================================== */

/* --- Reset ------------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* --- Custom Properties (Light defaults) ------------------------------- */
:root {
  color-scheme: light dark;

  /* palette */
  --color-primary: #0b7285;
  --color-primary-dark: #095c6b;
  --color-accent: #c83a3f;
  --color-accent-dark: #a73136;

  /* surfaces */
  --color-bg: #fcfbf8;
  --color-surface: #ffffff;
  --color-surface-elevated: #fffefc;
  --color-sand: #f3efe7;
  --color-sunset: #f7e8df;
  --color-ocean-soft: #e4f0f2;

  /* text */
  --color-text: #101418;
  --color-text-secondary: #4b5560;
  --color-text-muted: #6b7682;
  --color-text-on-primary: #ffffff;

  /* borders & dividers */
  --color-border: #d8d2c7;
  --color-border-soft: #e6e0d5;
  --color-divider: #e6e0d5;

  /* focus */
  --color-focus: #0b728566;

  /* golden hour gradient */
  --gradient-golden: linear-gradient(135deg, #ff9f43, #ee5a24);
  --gradient-golden-hover: linear-gradient(135deg, #ffad5c, #f06b38);

  /* shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.06);

  /* layout */
  --content-width: min(1100px, 92vw);
  --nav-height: 64px;

  /* radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  /* typography */
  --font-display: 'New York', 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(255, 255, 255, 0.6);
}

/* --- Dark Mode -------------------------------------------------------- */

/* OS preference (unless user explicitly chose light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --color-primary: #0e7490;
    --color-primary-dark: #0c5d6f;
    --color-accent: #c63c44;
    --color-accent-dark: #a92f36;

    --color-bg: #0b0f12;
    --color-surface: #121a20;
    --color-surface-elevated: #172129;
    --color-sand: #10161b;
    --color-sunset: #2a181a;
    --color-ocean-soft: #172129;

    --color-text: #f5f7fa;
    --color-text-secondary: #c3cbd4;
    --color-text-muted: #97a3ae;
    --color-text-on-primary: #ffffff;

    --color-border: #27313a;
    --color-border-soft: #1f2a33;
    --color-divider: #1f2a33;

    --color-focus: #0e7490b3;

    --gradient-golden: linear-gradient(135deg, #d4842f, #b84a1e);
    --gradient-golden-hover: linear-gradient(135deg, #e0923a, #c45524);

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
    --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.3);

    --glass-bg: rgba(18, 26, 32, 0.82);
    --glass-border: rgba(39, 49, 58, 0.6);
  }
}

/* Explicit dark toggle */
:root[data-theme='dark'] {
  --color-primary: #0e7490;
  --color-primary-dark: #0c5d6f;
  --color-accent: #c63c44;
  --color-accent-dark: #a92f36;

  --color-bg: #0b0f12;
  --color-surface: #121a20;
  --color-surface-elevated: #172129;
  --color-sand: #10161b;
  --color-sunset: #2a181a;
  --color-ocean-soft: #172129;

  --color-text: #f5f7fa;
  --color-text-secondary: #c3cbd4;
  --color-text-muted: #97a3ae;
  --color-text-on-primary: #ffffff;

  --color-border: #27313a;
  --color-border-soft: #1f2a33;
  --color-divider: #1f2a33;

  --color-focus: #0e7490b3;

  --gradient-golden: linear-gradient(135deg, #d4842f, #b84a1e);
  --gradient-golden-hover: linear-gradient(135deg, #e0923a, #c45524);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-nav: 0 1px 12px rgba(0, 0, 0, 0.3);

  --glass-bg: rgba(18, 26, 32, 0.82);
  --glass-border: rgba(39, 49, 58, 0.6);
}

/* --- Base Elements ---------------------------------------------------- */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.0625rem);
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  text-underline-offset: 0.2em;
  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--color-text);
}

/* --- Skip Link -------------------------------------------------------- */
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 2px solid var(--color-primary);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 16px;
  text-decoration: none;
}

/* --- Sticky Glass Nav ------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  padding: 0 clamp(16px, 4vw, 32px);
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: var(--shadow-nav);
}

.site-nav__inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--color-text);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.site-nav__brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-nav__brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.site-nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav__links a {
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  transition:
    color 0.15s ease,
    background-color 0.15s ease;
}

.site-nav__links a:hover {
  color: var(--color-text);
  background: var(--color-border-soft);
  text-decoration: none;
}

.site-nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    background-color 0.15s ease;
  flex-shrink: 0;
}

.site-nav__toggle:hover {
  border-color: var(--color-primary);
  color: var(--color-text);
}

.site-nav__toggle svg {
  width: 20px;
  height: 20px;
}

/* --- Layout: Section / Inner ------------------------------------------ */
.section {
  padding: clamp(48px, 8vw, 96px) 0;
}

.section__inner {
  width: var(--content-width);
  margin: 0 auto;
}

/* --- Hero ------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(480px, 70vh, 720px);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: url('assets/hero.png') center/cover no-repeat;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.35) 50%,
    rgba(0, 0, 0, 0.1) 100%
  );
  z-index: 1;
}

.hero__inner {
  width: var(--content-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #ffffff;
}

.hero__headline {
  margin-top: 20px;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  max-width: 16ch;
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.hero__subhead {
  margin-top: 16px;
  font-family: var(--font-body);
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
  max-width: 48ch;
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__wave {
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  z-index: 3;
  color: var(--color-bg);
}

.hero__wave svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Hero logo */
.hero__logo {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-lg);
  object-fit: cover;
  margin-bottom: 20px;
}

/* Hero tag pills */
.hero__tags {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero__tag {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero__tag--local {
  background: var(--color-primary);
  color: var(--color-text-on-primary);
}

.hero__tag--visitor {
  background: var(--color-accent);
  color: var(--color-text-on-primary);
}

.hero__tag--age {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: rgba(255, 255, 255, 0.85);
}

/* Hero entrance animation */
.hero__logo,
.hero__eyebrow,
.hero__headline,
.hero__subhead,
.hero__tags,
.hero__cta {
  opacity: 0;
  transform: translateY(16px);
  animation: fade-up 0.7s cubic-bezier(0.22, 0.68, 0.32, 1) forwards;
}

.hero__logo {
  animation-delay: 0s;
}

.hero__eyebrow {
  animation-delay: 0.1s;
}

.hero__headline {
  animation-delay: 0.2s;
}

.hero__subhead {
  animation-delay: 0.3s;
}

.hero__tags {
  animation-delay: 0.35s;
}

.hero__cta {
  animation-delay: 0.45s;
}

/* --- Buttons ---------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 24px;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  text-decoration: none;
}

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

.btn--primary {
  color: var(--color-text-on-primary);
  background: var(--color-primary);
  box-shadow: 0 2px 8px rgba(11, 114, 133, 0.25);
}

.btn--primary:hover {
  background: var(--color-primary-dark);
  box-shadow: 0 4px 16px rgba(11, 114, 133, 0.35);
  color: var(--color-text-on-primary);
  filter: brightness(1.04);
}

.btn--ghost {
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  transition:
    filter 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease,
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}

.btn--ghost:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: var(--color-ocean-soft);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* --- Value Cards (3 column) ------------------------------------------- */
.values {
  background: var(--color-sand);
}

.values__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.value-card {
  padding: 28px 24px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.value-card__icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-ocean-soft);
  color: var(--color-primary);
}

.value-card__icon svg {
  width: 24px;
  height: 24px;
}

.value-card__illustration {
  width: 100%;
  max-width: 200px;
  height: auto;
  object-fit: contain;
  margin: 0 auto 16px;
}

.value-card h3 {
  margin-top: 16px;
  font-size: 1.25rem;
}

.value-card p {
  margin-top: 8px;
  color: var(--color-text-secondary);
  font-size: 0.9375rem;
  line-height: 1.55;
}

/* --- Section Headers -------------------------------------------------- */
.section__label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  max-width: 28ch;
}

.section__subtitle {
  margin-top: 12px;
  color: var(--color-text-secondary);
  font-size: clamp(1rem, 1.3vw, 1.125rem);
  max-width: 52ch;
}

/* --- Timeline --------------------------------------------------------- */
.timeline {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}

.timeline__step {
  position: relative;
  padding: 24px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
}

.timeline__badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--color-sand);
  color: var(--color-text-muted);
  border: 1px solid var(--color-border-soft);
}

.timeline__step--done .timeline__badge {
  background: #e6f7f0;
  color: #18794e;
  border-color: #b6e8d4;
}

:root[data-theme='dark'] .timeline__step--done .timeline__badge,
:root:not([data-theme='light']) .timeline__step--done .timeline__badge {
  background: #0d2818;
  color: #4ade80;
  border-color: #1a4028;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme='dark']) .timeline__step--done .timeline__badge {
    background: #e6f7f0;
    color: #18794e;
    border-color: #b6e8d4;
  }
}

.timeline__step--current .timeline__badge {
  background: var(--color-ocean-soft);
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.timeline__step h3 {
  margin-top: 12px;
  font-size: 1.0625rem;
}

.timeline__step p {
  margin-top: 6px;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

/* --- Waitlist Form ---------------------------------------------------- */
.waitlist {
  background: var(--color-sand);
}

.waitlist__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.waitlist__copy h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
}

.waitlist__copy p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.waitlist-form {
  padding: 28px;
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--color-text);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  font: inherit;
  font-size: 0.9375rem;
  transition: border-color 0.15s ease;
}

.form-grid input::placeholder,
.form-grid textarea::placeholder {
  color: var(--color-text-muted);
}

.form-grid input:focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:focus-visible {
  outline: 3px solid var(--color-focus);
  outline-offset: 1px;
  border-color: var(--color-primary);
}

.form-span-2 {
  grid-column: span 2;
}

.hidden-honeypot {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form .btn {
  margin-top: 16px;
  width: 100%;
}

.form-meta {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

.form-meta a {
  color: var(--color-primary);
}

.form-noscript {
  margin-top: 10px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.form-status {
  min-height: 24px;
  margin-top: 8px;
  font-weight: 700;
  font-size: 0.875rem;
}

.form-status.is-success {
  color: #18794e;
}

.form-status.is-error {
  color: var(--color-accent);
}

.form-status.is-loading {
  color: var(--color-primary);
}

.support-fallback {
  margin-top: 12px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

/* --- Legal Links Grid ------------------------------------------------- */
.legal-links__grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.legal-link-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border-soft);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.legal-link-card:hover {
  text-decoration: none;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
  color: var(--color-primary);
}

.legal-link-card svg {
  width: 16px;
  height: 16px;
  opacity: 0.5;
  flex-shrink: 0;
}

.legal-link-card:hover svg {
  opacity: 1;
}

/* --- Footer ----------------------------------------------------------- */
.site-footer {
  padding: clamp(32px, 5vw, 48px) 0;
  border-top: 1px solid var(--color-divider);
}

.site-footer__inner {
  width: var(--content-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.site-footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--color-text);
}

.site-footer__brand:hover {
  text-decoration: none;
  opacity: 0.8;
}

.site-footer__brand img {
  width: 24px;
  height: 24px;
  border-radius: 6px;
}

.site-footer__links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.site-footer__links a {
  padding: 4px 8px;
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  border-radius: var(--radius-sm);
}

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

.site-footer__contact {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
}

.site-footer__contact a {
  color: var(--color-primary);
}

.site-footer__copy {
  width: 100%;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--color-divider);
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- Legal Page Template ---------------------------------------------- */
.legal-hero {
  padding: clamp(32px, 5vw, 48px) 0;
  background: var(--color-sand);
}

.legal-hero__inner {
  width: var(--content-width);
  margin: 0 auto;
}

.legal-hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
}

.legal-hero__back:hover {
  text-decoration: underline;
}

.legal-hero h1 {
  margin-top: 16px;
  font-size: clamp(2rem, 4vw, 3rem);
}

.legal-hero__meta {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.legal-body {
  width: var(--content-width);
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) 0;
  max-width: 72ch;
}

.legal-section + .legal-section {
  margin-top: clamp(28px, 4vw, 40px);
  padding-top: clamp(28px, 4vw, 40px);
  border-top: 1px solid var(--color-divider);
}

.legal-section h2 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
}

.legal-section p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.legal-section ul {
  margin-top: 12px;
  padding-left: 20px;
  color: var(--color-text-secondary);
  line-height: 1.65;
}

.legal-section li + li {
  margin-top: 8px;
}

.legal-section a {
  color: var(--color-primary);
}

/* --- 404 Page --------------------------------------------------------- */
.error-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(48px, 10vw, 96px) 24px;
}

.error-page__code {
  font-family: var(--font-display);
  font-size: clamp(5rem, 12vw, 8rem);
  line-height: 1;
  color: var(--color-border);
  letter-spacing: -0.03em;
}

.error-page h1 {
  margin-top: 16px;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.error-page p {
  margin-top: 12px;
  color: var(--color-text-secondary);
  max-width: 40ch;
}

.error-page__actions {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* --- Scroll Reveal ---------------------------------------------------- */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.6s cubic-bezier(0.22, 0.68, 0.32, 1),
    transform 0.6s cubic-bezier(0.22, 0.68, 0.32, 1);
}

.section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sections that should be visible immediately (no JS fallback) */
.hero,
.legal-hero,
.error-page {
  opacity: 1;
  transform: none;
}

/* --- Keyframes -------------------------------------------------------- */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Responsive: Tablet (640px) --------------------------------------- */
@media (max-width: 1024px) {
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .waitlist__grid {
    grid-template-columns: 1fr;
  }

  .site-nav__links {
    display: none;
  }
}

@media (max-width: 640px) {
  .timeline {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-span-2 {
    grid-column: span 1;
  }

  .hero__cta {
    flex-direction: column;
  }

  .hero__cta .btn {
    width: 100%;
  }

  .site-footer__inner {
    flex-direction: column;
    text-align: center;
  }

  .legal-links__grid {
    grid-template-columns: 1fr;
  }

  .error-page__actions {
    flex-direction: column;
    width: 100%;
  }

  .error-page__actions .btn {
    width: 100%;
  }
}

/* --- Reduced Motion --------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .section {
    opacity: 1;
    transform: none;
  }
}

/* --- Print ------------------------------------------------------------ */
@media print {
  .site-nav,
  .site-nav__toggle,
  .hero__wave,
  .site-footer {
    display: none;
  }

  body {
    background: #ffffff;
    color: #111111;
  }

  .section {
    opacity: 1;
    transform: none;
  }

  .hero {
    min-height: auto;
    padding: 24px 0;
  }

  .value-card,
  .timeline__step,
  .waitlist-form,
  .legal-link-card {
    box-shadow: none;
    border-color: #cccccc;
    background: #ffffff;
  }

  h1,
  h2,
  h3 {
    color: #111111;
  }

  a {
    color: #111111;
  }
}
