/* ─────────────────────────────────────────────────────────────
   SMOOV Founding 500 — Design system
   Aesop / Erewhon / Function Health register
   Restrained, editorial, photographic.
   ───────────────────────────────────────────────────────────── */

/* Defensive: native [hidden] must always win against page-specific display:flex/grid rules */
[hidden] { display: none !important; }

:root {
  --ink:        #0F0F0F;     /* primary text & UI */
  --ink-soft:   #2A2A2A;     /* secondary body text */
  --ink-muted:  #6B6B6B;     /* tertiary, captions */
  --ink-mute:   #6B6B6B;     /* alias matching homepage token */
  --ink-faint:  #A8A8A8;     /* placeholders, inactive */

  --bronze:     #8B6F47;     /* accent — selective emphasis */
  --bronze-d:   #6F5836;     /* hover */
  --bronze-l:   #B89A78;     /* dimmed */

  --bg:         #F0EBE0;     /* warm cream — page default */
  --bg-warm:    #F0EBE0;     /* legacy alias, kept for older pages */
  --bg-deep:    #C4B49A;     /* warm sand for image overlays */
  --bg-night:   #0F0F0F;     /* deep ink panels */
  --paper:      #FFFFFF;     /* card surfaces */

  --yellow:     #D6E11F;     /* hairline accent only — never a fill */
  --hair:       rgba(15,15,15,0.10);
  --hair-paper: rgba(255,255,255,0.18);

  --status-good:  #4A7C59;
  --status-mid:   #C99A3D;
  --status-low:   #A04545;

  /* Type scale — editorial, restrained */
  --text-xs:    0.75rem;     /* 12px caption */
  --text-sm:    0.875rem;    /* 14px small body */
  --text-base:  1rem;        /* 16px body */
  --text-md:    1.125rem;    /* 18px lead */
  --text-lg:    1.375rem;    /* 22px sub-heading */
  --text-xl:    1.75rem;     /* 28px section heading */
  --text-2xl:   2.5rem;      /* 40px page heading */
  --text-3xl:   3.75rem;     /* 60px hero (mobile clamps down) */
  --text-hero:  clamp(2.75rem, 7vw, 5.5rem);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;
  --space-10: 8rem;

  --container: 1180px;
  --measure: 60ch;        /* readable line length */

  --serif: 'Cormorant Garamond', 'Tiempos', 'Playfair Display', Georgia, serif;
  --sans:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --mono:  ui-monospace, 'SF Mono', 'JetBrains Mono', monospace;

  --border: 1px solid rgba(15, 15, 15, 0.10);
  --border-soft: 1px solid rgba(15, 15, 15, 0.10);
}

/* ─── Reset + base ─── */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.55;
  font-feature-settings: 'ss01', 'cv11', 'tnum';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: opacity 160ms ease;
}
a:hover { opacity: 0.65; }

button { font: inherit; cursor: pointer; }

::selection { background: var(--ink); color: var(--bg); }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

h1 { font-size: var(--text-hero); }
h2 { font-size: clamp(2rem, 4vw, var(--text-2xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0; }

.eyebrow {
  font-family: var(--sans);
  font-size: var(--text-xs);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--bronze);
  margin: 0;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.625rem);
  line-height: 1.4;
  font-style: italic;
  font-weight: 400;
  color: var(--ink-soft);
  max-width: var(--measure);
}

.tabular { font-feature-settings: 'tnum' 1, 'lnum' 1; }

/* ─── Layout primitives ─── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--space-5);
  padding-right: var(--space-5);
}
.container--narrow { max-width: 880px; }
.container--text   { max-width: 720px; }

.section { padding: var(--space-9) 0; }
.section--tight { padding: var(--space-7) 0; }
.section--loose { padding: var(--space-10) 0; }

@media (max-width: 720px) {
  .section { padding: var(--space-7) 0; }
  .section--loose { padding: var(--space-8) 0; }
}

/* ─── Header + nav ─── */
/* Three-column editorial header — matches the homepage exactly:
   MENU left · brand center · action right.                       */
/* Compensate for fixed header on form-style pages */
main#main { padding-top: 88px; }

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 24px 32px;
  background: rgba(240, 235, 224, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
  transition: background 220ms ease;
}

.site-header__inner {
  /* legacy wrapper — kept as a plain flex row for non-dashboard pages */
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-5);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--space-5);
}

.menu-trigger {
  justify-self: start;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 6px 0;
  cursor: pointer;
}

.brand {
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: 0;
}
.brand-crest {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--bronze);
}
.brand-mark {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--ink);
}

.header-action {
  justify-self: end;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  border: 0;
  background: none;
  font-family: var(--sans);
  font-weight: 400;
  cursor: pointer;
  padding: 0;
}
.header-action span {
  display: inline-block;
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
}
.header-action:hover { opacity: 0.6; }

/* Legacy image wordmark used by some pages — dashboard uses the text variant above */
.brand-mark__img {
  display: block;
  height: 26px;
  width: auto;
  /* Fixed height keeps wordmark visually consistent across pages */
}

@media (max-width: 414px) {
  .brand-mark__img { height: 22px; }
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  font-size: var(--text-sm);
}

.site-nav a {
  border: 0;
  color: var(--ink-soft);
  font-weight: 500;
}

.site-nav a:hover { color: var(--ink); opacity: 1; }

.site-nav__login {
  border: 1px solid var(--ink);
  padding: var(--space-2) var(--space-4);
  border-radius: 0;
  color: var(--ink);
}
.site-nav__login:hover { background: var(--ink); color: var(--bg); opacity: 1; }

@media (max-width: 720px) {
  .site-nav { gap: var(--space-4); }
  .site-nav__link--howit { display: none; }
}

/* ─── CTA buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  font-family: var(--sans);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 0;
  border-radius: 0;
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.btn--primary:hover { background: var(--bronze-d); color: var(--bg); opacity: 1; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--bg); opacity: 1; }

.btn--lg { padding: var(--space-5) var(--space-7); font-size: var(--text-md); }

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

/* ─── Counter ─── */
.counter {
  font-family: var(--serif);
  font-feature-settings: 'tnum' 1, 'lnum' 1;
  display: inline-flex;
  align-items: baseline;
  gap: var(--space-2);
}

.counter__taken {
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  transition: color 600ms ease;
}

.counter__divider { color: var(--ink-faint); font-weight: 400; }

.counter__total {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--ink-faint);
  font-weight: 400;
}

.counter__caption {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--sans);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

.counter--inline .counter__taken { font-size: inherit; }
.counter--inline .counter__total { font-size: inherit; }

/* ─── Footer ─── */
.site-footer {
  margin-top: 0;
  padding: var(--space-7) 0 var(--space-6);
  border-top: var(--border-soft);
  background: var(--bg);
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.site-footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--space-5);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  justify-content: space-between;
  align-items: baseline;
}

.site-footer__links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.site-footer a { color: var(--ink-muted); border: 0; }
.site-footer a:hover { color: var(--ink); opacity: 1; }

.site-footer__partnership {
  font-style: italic;
  font-family: var(--serif);
  font-size: var(--text-base);
  color: var(--ink-soft);
}

.site-footer__cities {
  font-style: italic;
  font-family: var(--serif);
  font-size: var(--text-sm, 14px);
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 8px auto 0;
  line-height: 1.6;
}

/* ─── Forms ─── */
.field { margin-bottom: var(--space-5); }
.field__label {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: var(--space-2);
}

.field__input,
.field__select,
.field__textarea {
  display: block;
  width: 100%;
  padding: var(--space-4);
  background: var(--paper);
  border: 1px solid rgba(15, 15, 15, 0.15);
  border-radius: 0;
  font-family: var(--sans);
  font-size: var(--text-base);
  color: var(--ink);
  transition: border-color 160ms ease;
}

.field__input:focus,
.field__select:focus,
.field__textarea:focus {
  outline: none;
  border-color: var(--ink);
}

.field__textarea { min-height: 140px; resize: vertical; }

.field__hint {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

.field__error {
  display: block;
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--status-low);
}

.field--check {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-4);
  background: var(--paper);
  border: var(--border-soft);
}
.field--check input[type="checkbox"] { margin-top: 4px; }
.field--check label { font-size: var(--text-sm); color: var(--ink-soft); cursor: pointer; }

/* ─── Cards ─── */
.card {
  background: var(--paper);
  border: var(--border-soft);
  padding: var(--space-6);
}

.card--accent { border-left: 3px solid var(--bronze); }

/* ─── Utility ─── */
.text-muted { color: var(--ink-muted); }
.text-soft { color: var(--ink-soft); }
.text-bronze { color: var(--bronze); }
.italic { font-style: italic; font-family: var(--serif); }
.center { text-align: center; }
.ctr { display: flex; justify-content: center; }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); }
.mb-6 { margin-bottom: var(--space-6); }
.mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); }
.mt-6 { margin-top: var(--space-6); }

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