/* ============================================================
   ORIZN — shared stylesheet
   One file, three looks: <body data-brand="orizn | sober | fitness">
   swaps the token set below. Components only ever use tokens.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* Raw palettes (reference only — components use the semantic tokens) */
  --orizn-bg: #0F0C12;
  --sober-bg: #18121F;
  --fitness-bg: #000000;
  --crisis: #C0392B;      /* reserved for crisis / helpline content only */

  --sunrise-1: #FFF1DE;
  --sunrise-2: #F6B98C;
  --sunrise-3: #E39AA6;
  --sunrise-4: #B57AD8;

  --font-brand: "Playfair Display", Georgia, serif;   /* ORIZN wordmark only — matches the app */
  --font-display: var(--font-body);
  --font-body: "Manrope", system-ui, -apple-system, sans-serif;
  --font-editorial: var(--font-body);

  --maxw: 1140px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --tint-duration: 0.45s;
  --header-h: 75px;        /* .nav 74px + 1px border */
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.7);
  --shadow-soft: 0 12px 36px -18px rgba(0, 0, 0, 0.55);
}

/* ORIZN — the shared parent layer (home, about, contact, legal). Default. */
:root,
[data-brand="orizn"] {
  --bg: #0F0C12;
  --surface: #1A1520;
  --surface-2: #211A29;
  --ink: #F2EEF4;
  --muted: #A99BB5;        /* 7.44:1 on bg */
  --muted-2: #8A7D96;      /* 5.04:1 on bg, 4.65:1 on surface */
  --accent: #F6B98C;       /* sun peach — 11.31:1 on bg */
  --accent-soft: #FFD2AE;
  --accent-rgb: 246, 185, 140;
  --on-accent: #0F0C12;    /* 11.31:1 on accent */
  --line: rgba(246, 185, 140, 0.18);
  --line-soft: rgba(242, 238, 244, 0.08);
  --header-bg: rgba(15, 12, 18, 0.8);
  --field-bg: #0F0C12;

  --sun-fill: url(#orizn-sun-sunrise);
  --sun-glow: rgba(244, 160, 120, 0.2);

  --heading-weight: 700;
  --heading-tracking: -0.025em;
  --radius: 18px;
  --radius-lg: 26px;
  --btn-radius: 999px;
}

/* ORIZN Sober — Amethyst Sunrise */
[data-brand="sober"] {
  --bg: #18121F;
  --surface: #241830;
  --surface-2: #2B1E39;
  --ink: #F0EAF4;
  --muted: #B9ADC4;        /* 8.59:1 on bg, 7.88:1 on surface */
  --muted-2: #978AA3;      /* 5.66:1 on bg, 5.19:1 on surface */
  --accent: #C089DE;       /* 6.88:1 on bg */
  --accent-soft: #D3A9EA;
  --accent-rgb: 192, 137, 222;
  --on-accent: #18121F;    /* 6.88:1 on accent, 9.29:1 on accent-soft */
  --line: rgba(192, 137, 222, 0.2);
  --line-soft: rgba(240, 234, 244, 0.08);
  --header-bg: rgba(24, 18, 31, 0.8);
  --field-bg: #18121F;

  --sun-fill: url(#orizn-sun-sunrise);
  --sun-glow: rgba(244, 160, 120, 0.2);
}

/* ORIZN Fitness — black & white. No purple anywhere. */
[data-brand="fitness"] {
  --bg: #000000;
  --surface: #111111;
  --surface-2: #181818;
  --ink: #FFFFFF;
  --muted: #9A9A9A;        /* 7.46:1 on bg, 6.71:1 on surface */
  --muted-2: #7F7F7F;      /* 5.24:1 on bg, 4.72:1 on surface */
  --accent: #FFFFFF;
  --accent-soft: #E6E6E6;
  --accent-rgb: 255, 255, 255;
  --on-accent: #000000;    /* 21:1 */
  --line: rgba(255, 255, 255, 0.22);
  --line-soft: rgba(255, 255, 255, 0.1);
  --header-bg: rgba(0, 0, 0, 0.82);
  --field-bg: #000000;

  --sun-fill: #FFFFFF;
  --sun-glow: transparent;

  --heading-weight: 700;
  --heading-tracking: -0.025em;
  --radius: 6px;
  --radius-lg: 10px;
  --btn-radius: 4px;
}

html { color-scheme: dark; }

/* ---------- Focus (every interactive element) ---------- */
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

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

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

/* `hidden` must win over component display rules (forms hide themselves on success) */
[hidden] { display: none !important; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ---------- Typography ---------- */
em, i, cite { font-style: normal; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  line-height: 1.12;
  letter-spacing: var(--heading-tracking);
  color: var(--ink);
}

h1, h2, h3, .door-line { text-wrap: balance; }
p, li { text-wrap: pretty; }

h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.55rem); }

p { color: var(--muted); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  display: inline-block;
}
.eyebrow.--plain { text-transform: uppercase; font-style: normal; letter-spacing: 0.22em; font-family: var(--font-body); font-size: 0.78rem; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--tight { padding: clamp(48px, 6vw, 84px) 0; }

.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 60ch; }

.section-head { max-width: 64ch; margin-bottom: 48px; }
.section-head.--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 18px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  padding: 14px 26px;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}

.btn--primary, .btn--gold {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 12px 30px -12px rgba(var(--accent-rgb), 0.5);
}
.btn--primary:hover, .btn--gold:hover { transform: translateY(-2px); background: var(--accent-soft); box-shadow: 0 18px 38px -12px rgba(var(--accent-rgb), 0.6); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent-soft); transform: translateY(-2px); }

.btn--lg { padding: 17px 32px; font-size: 1.05rem; }

/* App store button (icon + two-line label) */
.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(180deg, var(--accent-soft), var(--accent));
  color: var(--on-accent);
  padding: 12px 24px 12px 20px;
  border-radius: 14px;
  font-family: var(--font-body);
  box-shadow: 0 12px 30px -14px rgba(var(--accent-rgb), 0.6);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.btn-store:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -14px rgba(var(--accent-rgb), 0.7); }
.btn-store svg { width: 26px; height: 26px; flex: none; }
.btn-store .store-label { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.btn-store .store-small { font-size: 0.66rem; letter-spacing: 0.04em; text-transform: uppercase; opacity: 0.8; }
.btn-store .store-big { font-size: 1.02rem; font-weight: 700; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}
.nav-brand { display: inline-flex; align-items: center; gap: 11px; }
.nav-brand .smark { font-size: 1.5rem; }
.nav-brand .wordmark { font-size: 1.3rem; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.96rem;
  color: var(--muted);
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-cta .btn { padding: 11px 20px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  width: 46px;
  height: 44px;
  cursor: pointer;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transform: translateX(-50%);
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-toggle span { top: 50%; margin-top: -1px; }
.nav-toggle span::before { top: -7px; }
.nav-toggle span::after { top: 7px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateX(-50%) translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateX(-50%) translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 9vw, 112px); overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 60% at 78% 18%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    radial-gradient(50% 50% at 10% 80%, rgba(var(--accent-rgb), 0.07), transparent 60%);
  pointer-events: none;
}
.hero .container { position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 5vw, 72px);
}
.hero h1 { margin: 18px 0 0; }
.hero p.lede { margin: 22px 0 32px; }
.hero-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.hero-note { margin-top: 22px; font-size: 0.9rem; color: var(--muted-2); display: flex; align-items: center; gap: 8px; }
.hero-note .dot-i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), 0.18); }

/* ---------- Phone mockup (mirrors the real app — always dark) ---------- */
.phone-stage {
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 2;          /* sit above hero glow/background */
  isolation: isolate;  /* own stacking context — nothing bleeds through */
}
.phone {
  /* The app's Amethyst (dark) palette, so the mockup mirrors ORIZN Sober */
  --p-onyx: #18121F;
  --p-card: #241830;
  --p-ivory: #F0EAF4;
  --p-gold: #C089DE;       /* accent */
  --p-sunrise: linear-gradient(90deg, #F6B98C, #E39AA6, #C089DE);
  --p-muted: #B9ADC4;
  --p-muted-2: #978AA3;
  --p-track: rgba(240, 234, 244, 0.10);
  --p-line: rgba(192, 137, 222, 0.2);

  position: relative;
  z-index: 1;
  width: 312px;
  height: 656px;
  border-radius: 48px;
  background: #2A2033;
  padding: 12px;
  box-shadow:
    0 40px 80px -32px rgba(0, 0, 0, 0.85),
    0 8px 24px -10px rgba(0, 0, 0, 0.6),
    inset 0 0 0 2px rgba(192, 137, 222, 0.18);
}
.phone::after { /* side button */
  content: "";
  position: absolute;
  right: -3px;
  top: 168px;
  width: 3px;
  height: 60px;
  border-radius: 3px;
  background: #2A2033;
}
.phone-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 38px;
  background: var(--p-onyx);   /* fully opaque */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 0;
}

/* status bar */
.app-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--p-ivory);
}
.app-status-icons { display: inline-flex; align-items: center; gap: 5px; color: var(--p-ivory); }
.app-status-icons svg { height: 11px; width: auto; display: block; }

/* greeting */
.app-greet {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 14px;
}
.greet-small { display: block; font-size: 0.82rem; color: var(--p-muted); line-height: 1.2; }
.greet-name { display: block; font-size: 1.18rem; font-weight: 700; color: var(--p-ivory); letter-spacing: -0.01em; }
.app-bell {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--p-line);
  background: var(--p-card);
  color: var(--p-ivory);
  display: inline-flex; align-items: center; justify-content: center;
  flex: none;
}
.app-bell svg { width: 18px; height: 18px; }

/* main card */
.app-card {
  position: relative;
  background: linear-gradient(180deg, #2B1E39, #241830);
  border: 1px solid var(--p-line);
  border-radius: 24px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.app-share {
  position: absolute;
  top: 14px; right: 14px;
  width: 30px; height: 30px;
  border-radius: 9px;
  border: 1px solid var(--p-line);
  background: rgba(192, 137, 222, 0.1);
  color: var(--p-gold);
  display: inline-flex; align-items: center; justify-content: center;
}
.app-share svg { width: 15px; height: 15px; }
.app-card-label {
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-bottom: 3px;
}
.app-card-sub {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: #F6B98C;           /* sunrise text */
  margin-bottom: 12px;
}

/* sunrise progress ring — crisp, no glow */
.app-ring { position: relative; width: 186px; height: 186px; }
.app-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.app-ring .ring-track { fill: none; stroke: var(--p-track); stroke-width: 11; }
.app-ring .ring-progress {
  fill: none;
  stroke: url(#appSunriseRing);
  stroke-width: 11;
  stroke-linecap: round;
  stroke-dasharray: 528;
  stroke-dashoffset: 53;   /* ~90% filled */
}
.app-ring-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.app-days { display: inline-flex; align-items: flex-start; gap: 4px; }
.app-days .num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4rem;
  line-height: 1;
  color: var(--p-ivory);
}
.app-days .flame { width: 17px; height: 17px; color: var(--p-gold); margin-top: 7px; }
.app-days-label {
  font-size: 0.66rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--p-muted);
  margin-top: 4px;
}
.app-pill {
  margin-top: 14px;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #18121F;           /* onSunrise, >= 6.88:1 on every stop */
  background: var(--p-sunrise);
  padding: 6px 16px;
  border-radius: 999px;
}
.app-quote {
  margin: 16px 4px 2px;
  font-family: var(--font-editorial);
  font-style: normal;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--p-muted);
}

/* track another recovery */
.app-track {
  margin-top: 14px;
  width: 100%;
  border: 1px solid rgba(192, 137, 222, 0.55);
  background: transparent;
  color: var(--p-gold);
  border-radius: 14px;
  padding: 12px;
  font-family: var(--font-body);
  font-size: 0.86rem;
  font-weight: 600;
}

/* next milestone */
.app-milestone { margin-top: 16px; padding: 0 2px; }
.app-milestone-label {
  display: block;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--p-muted-2);
  margin-bottom: 9px;
}
.app-bar {
  height: 8px;
  border-radius: 999px;
  background: var(--p-track);
  overflow: hidden;
}
.app-bar > span {
  display: block;
  height: 100%;
  width: 62%;
  border-radius: 999px;
  background: var(--p-sunrise);
}

/* bottom nav pinned */
.app-nav {
  margin-top: auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
  padding: 9px 4px calc(9px + env(safe-area-inset-bottom, 14px));
  border-top: 1px solid rgba(244, 239, 230, 0.07);
  background: #140F1A;
  margin-left: -16px;
  margin-right: -16px;
}
.app-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.58rem;
  letter-spacing: 0.02em;
  color: var(--p-muted-2);
}
.app-nav-item svg { width: 19px; height: 19px; }
.app-nav-item.active { color: var(--p-gold); }

/* ---------- Generic cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--line); box-shadow: var(--shadow-soft); }
.card h3 { margin-bottom: 12px; }
.card p { font-size: 0.98rem; }

.card-step .step-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--accent);
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 20px;
}
.card-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h3 { margin: 0; }

/* coming soon badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-body);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--line);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
/* Filled variant to mark newly-shipped ("New") features, distinct from the
   outline "Coming soon" badge. */
.badge--new { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.badge--new::before { background: var(--on-accent); opacity: 0.6; }

/* feature icon */
.f-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  color: var(--accent);
}
.f-icon svg { width: 26px; height: 26px; }

.sublist { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.sublist li {
  position: relative;
  padding-left: 26px;
  font-size: 0.94rem;
  color: var(--muted);
}
.sublist li::before {
  content: "";
  position: absolute;
  left: 0; top: 9px;
  width: 14px; height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.sublist li em { font-style: normal; color: var(--muted-2); }

/* ---------- Founder ---------- */
.founder-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.founder-photo {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 30% 20%, rgba(var(--accent-rgb), 0.16), transparent 55%),
    linear-gradient(160deg, var(--surface-2), var(--bg));
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}
.founder-photo .smark { font-size: 3.6rem; opacity: 0.5; }
.founder-photo .photo-tag {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.founder-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.founder-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,0.35));
  pointer-events: none;
}
.founder-quote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  line-height: 1.45;
  color: var(--ink);
  font-weight: 500;
  margin: 18px 0 0;
}
.founder-body { margin-top: 22px; font-size: 1.05rem; }
.founder-sign { margin-top: 24px; display: flex; align-items: center; gap: 12px; }
.founder-sign .line { width: 40px; height: 1px; background: var(--accent); }
.founder-sign span { font-family: var(--font-editorial); font-style: normal; color: var(--accent); }
.founder-social {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
.founder-social:hover { color: var(--accent-soft); text-decoration: underline; }
.founder-social:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* ---------- Value block (Free to start) ---------- */
.value-block {
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(var(--accent-rgb), 0.1), transparent 55%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(34px, 5vw, 60px);
}
.value-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.value-list { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; margin-top: 8px; }
.value-list li {
  position: relative;
  padding-left: 30px;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}
.value-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.14);
  border: 1px solid var(--line);
}
.value-list li::after {
  content: "";
  position: absolute;
  left: 6px; top: 8px;
  width: 8px; height: 5px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
.value-sub { margin-top: 24px; font-size: 0.98rem; color: var(--muted); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 22px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex;
  gap: 0;
  white-space: nowrap;
  animation: marquee 32s linear infinite;
}
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--muted);
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
}
.marquee-track span::after { content: "•"; color: var(--accent); }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- FAQ / Accordion ---------- */
.faq-list { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.3s var(--ease);
}
.faq-item[open] { border-color: var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-family: var(--font-display);
  font-size: 1.12rem;
  color: var(--ink);
  font-weight: 600;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q-text { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.faq-icon { flex: none; width: 26px; height: 26px; position: relative; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; background: var(--accent);
  border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.faq-icon::before { top: 12px; left: 4px; width: 18px; height: 2px; }
.faq-icon::after { top: 4px; left: 12px; width: 2px; height: 18px; }
.faq-item[open] .faq-icon::after { transform: rotate(90deg); opacity: 0; }
.faq-answer { padding: 0 26px 24px; }
.faq-answer p { color: var(--muted); font-size: 1rem; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.04em; color: var(--muted); text-transform: uppercase; }
.field input, .field textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.contact-card { display: flex; flex-direction: column; gap: 22px; }
.contact-line { display: flex; align-items: flex-start; gap: 16px; }
.contact-line .ci {
  flex: none; width: 46px; height: 46px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(var(--accent-rgb), 0.1); border: 1px solid var(--line);
  color: var(--accent);
}
.contact-line .ci svg { width: 22px; height: 22px; }
.contact-line a { color: var(--accent-soft); }
.contact-line a:hover { color: var(--accent); }
.contact-line .label { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }

/* ---------- Email capture / signup ---------- */
.signup-band { text-align: center; }
.signup-inner {
  max-width: 720px;
  margin: 0 auto;
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(var(--accent-rgb), 0.12), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 72px) clamp(24px, 5vw, 56px);
  box-shadow: var(--shadow-soft);
}
.signup-inner .eyebrow { margin-bottom: 16px; }
.signup-inner h2 { margin-bottom: 14px; }
.signup-inner > p { max-width: 46ch; margin: 0 auto; }

.signup { max-width: 480px; margin: 26px auto 0; }
.signup-form { display: flex; gap: 12px; }
.signup-form input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  padding: 14px 22px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.signup-form input[type="email"]::placeholder { color: var(--muted-2); }
.signup-form input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.signup-form .btn { flex: none; }

/* form result messages */
.form-success { margin-top: 16px; color: var(--accent); font-weight: 600; }
.form-error { margin-top: 16px; color: var(--crisis); font-weight: 500; }
.form-error a { color: var(--crisis); text-decoration: underline; }

/* honeypot (anti-spam) — visually hidden */
.hp-field { position: absolute !important; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* compact footer signup */
.footer-signup-label { font-size: 0.9rem; color: var(--muted-2); margin-top: 20px; margin-bottom: 10px; }
.footer-signup { display: flex; gap: 8px; max-width: 340px; }
.footer-signup input[type="email"] {
  flex: 1; min-width: 0;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--ink);
  background: var(--field-bg);
  border: 1px solid var(--line);
  border-radius: var(--btn-radius);
  padding: 11px 16px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.footer-signup input[type="email"]::placeholder { color: var(--muted-2); }
.footer-signup input[type="email"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.16);
}
.footer-signup .btn { flex: none; padding: 11px 18px; font-size: 0.88rem; }

@media (max-width: 520px) {
  .signup-form, .footer-signup { flex-direction: column; }
  .signup-form .btn, .signup-form input[type="email"],
  .footer-signup .btn, .footer-signup input[type="email"] { width: 100%; }
}

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band-inner {
  background:
    radial-gradient(80% 140% at 50% 0%, rgba(var(--accent-rgb), 0.16), transparent 60%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(48px, 7vw, 88px) clamp(24px, 5vw, 64px);
  box-shadow: var(--shadow-soft);
}
.cta-band h2 { max-width: 18ch; margin: 0 auto 28px; }
.cta-band .eyebrow { margin-bottom: 18px; }

/* ---------- Legal pages ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0; }
.legal-wrap { max-width: 760px; margin: 0 auto; }
.legal .updated {
  font-size: 0.85rem;
  color: var(--muted-2);
  letter-spacing: 0.04em;
  margin: 10px 0 28px;
}
.legal h1 { margin-bottom: 8px; }
.legal .operated-by { margin: -18px 0 28px; font-size: 0.9rem; color: var(--muted); }
.legal h4, .legal-wrap h2 {
  font-size: 1.2rem;
  margin: 36px 0 12px;
  color: var(--ink);
}
.legal-wrap h2 { font-size: 1.35rem; }
.legal p { margin-bottom: 16px; color: var(--muted); font-size: 1.02rem; }
.legal a { color: var(--accent-soft); border-bottom: 1px solid var(--line); }
.legal a:hover { color: var(--accent); }
.legal .crisis-note {
  background: rgba(192, 57, 43, 0.08);
  border: 1px solid rgba(192, 57, 43, 0.35);
  border-left: 3px solid var(--crisis);
  border-radius: 12px;
  padding: 16px 20px;
}
.legal .crisis-note p { margin: 0; color: var(--ink); }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 36px;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.25));
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand { max-width: 340px; }
.footer-brand .wordmark { font-size: 1.5rem; }
.footer-brand p { margin-top: 14px; font-size: 0.95rem; color: var(--muted-2); }
.footer-nav { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title, .footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; }
.footer-col a { display: block; color: var(--muted); font-size: 0.96rem; padding: 5px 0; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--accent); }
.footer-social {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 18px; color: var(--muted);
}
.footer-social a {
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--accent); transition: all 0.25s var(--ease);
}
.footer-social a:hover { background: rgba(var(--accent-rgb), 0.1); transform: translateY(-2px); }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  padding-top: 28px;
  font-size: 0.86rem; color: var(--muted-2);
}
.footer-bottom .legal-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-bottom a:hover { color: var(--accent); }

/* medical / crisis disclaimer */
.footer-disclaimer {
  max-width: 880px;
  margin: 26px 0 0;
  font-size: 0.82rem;
  line-height: 1.6;
  color: var(--muted);
}
.footer-disclaimer a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.footer-disclaimer a:hover { color: var(--accent); }

/* ---------- Page hero (interior) ---------- */
.page-hero { padding: clamp(56px, 8vw, 100px) 0 clamp(32px, 5vw, 56px); position: relative; }
.page-hero::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(50% 60% at 70% 0%, rgba(var(--accent-rgb), 0.1), transparent 60%);
  pointer-events: none;
}
.page-hero .container { position: relative; }
.page-hero h1 { margin: 16px 0 0; }
.page-hero p.lede { margin: 20px 0 0; }
.page-hero .hero-actions { margin-top: 30px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.divider { height: 1px; background: var(--line-soft); border: 0; }

/* skip link */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--accent); color: var(--on-accent); padding: 10px 16px; border-radius: 0 0 10px 0;
  font-weight: 600; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { margin-top: 12px; }
  .phone { transform: none; }
  .phone:hover { transform: none; }
  .founder-grid { grid-template-columns: 1fr; }
  .founder-photo { max-width: 380px; margin: 0 auto; }
  .value-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .grid--3 { grid-template-columns: 1fr 1fr; }
}

/* Nav collapses to the burger below 1025px: "ORIZN Sober" + five links +
   two buttons need ~1000px. */
@media (max-width: 1024px) {
  /* mobile nav */
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .mobile-menu {
    position: fixed;
    inset: 74px 0 0;
    background: var(--bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
    display: flex;
    flex-direction: column;
    padding: 28px 24px 40px;
    gap: 6px;
    overflow-y: auto;
  }
  .mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .mobile-menu a.m-link {
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--ink);
    padding: 16px 4px;
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-menu a.m-link.active { color: var(--accent); }
  .mobile-menu .btn-store { margin-top: 24px; align-self: flex-start; }
  body.menu-open { overflow: hidden; }

}

@media (max-width: 760px) {
  .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .value-list { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-nav { gap: 36px; }
  .streak-number { font-size: 3.6rem; }
  body { font-size: 16px; }
}

@media (max-width: 420px) {
  .container { padding: 0 18px; }
  .phone { width: 270px; height: 552px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn, .hero-actions .btn-store { width: 100%; justify-content: center; }
}

/* hide desktop-only mobile menu container on large screens */
@media (min-width: 1025px) { .mobile-menu { display: none; } }

/* ============================================================
   ORIZN components
   ============================================================ */

/* ---------- Wordmark ---------- */
.wordmark {
  font-family: var(--font-brand);
  font-weight: 600;
  font-size: 1.3rem;
  letter-spacing: 0.16em;
  color: var(--ink);
  line-height: 1;
  white-space: nowrap;
}
.wordmark .wm-sub { letter-spacing: 0.04em; color: var(--accent); margin-left: 0.15em; }
.nav-brand { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- The ORIZN sun ----------
   <svg class="sun …"><circle cx="512" cy="1104" r="571" clip-path="url(#orizn-sun-bands)"/></svg>
   Needs the sun-defs partial once per page. Fill comes from the brand. */
.sun-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sun { display: block; overflow: visible; }
.sun circle { fill: var(--sun-fill); }
.sun--mark { width: 40px; height: auto; aspect-ratio: 1024 / 491; overflow: hidden; }
.sun--sober { --sun-fill: url(#orizn-sun-sunrise); }
.sun--fitness { --sun-fill: #FFFFFF; }

/* Horizon: full-bleed, stripes run off both edges like the app icon.
   Put it inside an element with .sun-horizon (clips overflow, adds glow). */
.sun-horizon {
  position: relative;
  overflow: clip;
  isolation: isolate;
}
.sun-horizon::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 120%;
  aspect-ratio: 2 / 1;
  transform: translate(-50%, 35%);
  background: radial-gradient(closest-side, var(--sun-glow), transparent);
  pointer-events: none;
  z-index: -1;
}
.sun--horizon { width: 100%; height: auto; aspect-ratio: 1024 / 491; }

/* ---------- Header extras ---------- */
.nav-links a[aria-current] { color: var(--accent); }
.mobile-menu a.m-link[aria-current] { color: var(--accent); }
.mobile-menu .m-cta { margin-top: 24px; align-self: flex-start; }

/* ---------- Footer extras ---------- */
.footer-brand .wordmark { font-size: 1.35rem; }
.footer-tagline {
  font-family: var(--font-display);
  font-style: normal;
  font-size: 1.1rem;
  color: var(--ink) !important;
}
.footer-nav { gap: 44px; }

/* ---------- Fitness: sharper, heavier ---------- */
[data-brand="fitness"] .eyebrow { letter-spacing: 0.26em; }
[data-brand="fitness"] .btn { text-transform: uppercase; letter-spacing: 0.08em; font-weight: 700; }

/* ============================================================
   Home (/)
   ============================================================ */

/* Hero: text on top, the whole sun anchored to the bottom of the first
   screen. On wide screens the sun's width comes from the height left over
   after the header and text, so the lowest stripe never drops below the
   fold; it is still wide enough for the stripes to run off the edges. */
.o-hero { display: flex; flex-direction: column; --hero-text-h: 160px; }
.o-hero-text {
  position: relative;
  text-align: center;
  padding: clamp(48px, 12vw, 72px) 24px 32px;
}
.o-hero h1 {
  font-size: clamp(2.7rem, 11vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.o-hero .lede { margin: 14px auto 0; }
.o-hero-sun { width: 100vw; flex: none; align-self: center; }

@media (min-width: 900px) {
  .o-hero { min-height: calc(100svh - var(--header-h)); }
  .o-hero-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 24px 16px;
  }
  .o-hero h1 { font-size: clamp(2.7rem, min(8vw, 8svh), 4.4rem); }
  .o-hero .lede { max-width: none; }
  .o-hero-sun {
    width: min(100vw, calc((100svh - var(--header-h) - var(--hero-text-h)) * 1024 / 491));
  }
}

/* Doors: two equal cards, each rendered in its own brand's tokens */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.door {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 48px);
  transition: border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.door:hover, .door:focus-within {
  border-color: rgba(var(--accent-rgb), 0.55);
  box-shadow: var(--shadow-soft);
}
.door-sun { width: 132px; height: auto; aspect-ratio: 1024 / 491; overflow: hidden; margin-bottom: 8px; }
.door-title .wordmark { font-size: clamp(1.45rem, 2.4vw, 1.8rem); }
.door-line {
  font-family: var(--font-display);
  font-weight: var(--heading-weight);
  letter-spacing: var(--heading-tracking);
  font-size: clamp(1.3rem, 2.2vw, 1.6rem);
  line-height: 1.25;
  color: var(--ink);
}
.door-body { color: var(--muted); }
.door-actions { margin-top: auto; padding-top: 12px; display: flex; flex-wrap: wrap; gap: 12px; }
.btn-icon { width: 18px; height: 18px; flex: none; }

/* Why ORIZN */
.why-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px 40px; }
.why-list li { border-top: 1px solid var(--line); padding-top: 22px; }
.why-list h3 { margin-bottom: 10px; }

/* Founder strip */
.founder-strip-inner {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  max-width: 860px;
}
.founder-strip-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}
.founder-strip h2 { margin: 12px 0 14px; }
.text-link {
  display: inline-block;
  margin-top: 16px;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.text-link:hover { color: var(--accent-soft); }

@media (max-width: 860px) {
  .doors, .why-list { grid-template-columns: 1fr; }
  .founder-strip-inner { grid-template-columns: 1fr; }
  .founder-strip-photo { max-width: 200px; }
}

/* ============================================================
   ORIZN Sober (/sober)
   ============================================================ */
.formerly { margin-top: 10px; font-size: 0.92rem; color: var(--muted-2); }
.premium-note {
  margin-top: 16px;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

/* The sun rises behind the phone mockup; the hero clips its lower stripes. */
.phone-sun {
  position: absolute;
  left: 50%;
  bottom: -14%;
  width: min(150%, 720px);
  height: auto;
  aspect-ratio: 1024 / 491;
  transform: translateX(-50%);
  z-index: 0;
  filter: drop-shadow(0 0 60px var(--sun-glow));
}

/* ============================================================
   ORIZN Fitness (/fitness)
   ============================================================ */
.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;
}
.fit-waitlist { scroll-margin-top: var(--header-h); }
.fit-waitlist-inner { max-width: 560px; margin: 0 auto; text-align: center; }
.fit-waitlist-inner h2 { margin: 12px 0 10px; }
.fit-waitlist .signup-form { margin-top: 26px; }
.waitlist-note { margin-top: 16px; font-size: 0.88rem; color: var(--muted-2); }
.waitlist-note a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }

.fit-founder h2 { max-width: 22ch; margin: 12px 0 6px; }
.before-after { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; max-width: 720px; }
.before-after img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border: 1px solid var(--line); border-radius: var(--radius); }
.before-after figcaption { margin-top: 8px; font-size: 0.8rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }

/* ============================================================
   About (/about)
   ============================================================ */
.name-letters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.name-letters li {
  display: flex; flex-direction: column; gap: 6px;
  border-top: 1px solid var(--line); padding-top: 18px;
}
.name-letter {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
}
.name-word { font-weight: 600; color: var(--ink); }
.name-app { font-size: 0.9rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.name-app:hover { color: var(--accent); }
@media (max-width: 760px) {
  .name-letters { grid-template-columns: 1fr; gap: 0; }
  .name-letters li { flex-direction: row; align-items: baseline; gap: 16px; padding: 14px 0; }
  .name-letter { width: 1.2em; font-size: 2rem; }
}

/* ---------- Brand tint: a home door being hovered/focused nudges the page ---------- */
body { transition: background-color var(--tint-duration) var(--ease); }
body[data-tint="sober"] { background-color: var(--sober-bg); }
body[data-tint="fitness"] { background-color: var(--fitness-bg); }

/* ---------- Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Legacy markup (removed slice by slice) ----------
   Legal pages keep their old header until slice 6. */
.theme-toggle, .m-theme { display: none !important; }
.smark { font-family: var(--font-brand); font-weight: 700; color: var(--ink); }
.smark .dot { color: var(--accent); }
.wordmark .w-sober { color: var(--ink); letter-spacing: 0; }
.wordmark .w-streak { color: var(--accent); letter-spacing: 0; }
