/* Sedar landing — tokens mirror DESIGN.md / src/theme/tokens.ts.
   Light is the default (linen); dark mirrors one-to-one. */

:root {
  --bg: #FAF6EF;
  --surface: #FFFFFF;
  --surface-alt: #F1EAE0;
  --ink: #1F2B26;
  --ink-muted: #5F6E66;
  --primary: #2E5E4E;
  --on-primary: #F7F3EA;
  --gold: #B8912F;
  --clay: #B4552D;
  --border: #E4DCCE;
  --shadow-card: 0 4px 12px rgba(20, 25, 20, 0.06);
  --shadow-fab: 0 6px 12px rgba(20, 25, 20, 0.18);

  --r-button: 16px;
  --r-card: 24px;
  --r-chip: 999px;

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;

  --measure: 34rem;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #11171A;
  --surface: #1A2226;
  --surface-alt: #232D31;
  --ink: #ECE6D9;
  --ink-muted: #9AA79E;
  --primary: #8FBCA8;
  --on-primary: #122019;
  --gold: #D9B44A;
  --clay: #D97B54;
  --border: #2C373B;
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
  --shadow-fab: 0 6px 12px rgba(0, 0, 0, 0.4);
  color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11171A;
    --surface: #1A2226;
    --surface-alt: #232D31;
    --ink: #ECE6D9;
    --ink-muted: #9AA79E;
    --primary: #8FBCA8;
    --on-primary: #122019;
    --gold: #D9B44A;
    --clay: #D97B54;
    --border: #2C373B;
    --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.25);
    --shadow-fab: 0 6px 12px rgba(0, 0, 0, 0.4);
    color-scheme: dark;
  }
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.4s ease, color 0.4s ease;
}

::selection { background: color-mix(in oklab, var(--gold) 30%, transparent); }

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

.wrap {
  max-width: 68rem;
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

/* ---------- type roles (DESIGN.md scale) ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 6.5vw, 4.25rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 72;
}

.title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.75rem, 3.5vw, 2.375rem);
  line-height: 1.2;
  font-variation-settings: "opsz" 40;
}

.heading {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  line-height: 1.27;
}

.label {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footnote {
  font-size: 0.75rem;
  line-height: 1.42;
  color: var(--ink-muted);
}

.amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.muted { color: var(--ink-muted); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: var(--r-button);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.9375rem 1.5rem;
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.2s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
  font-weight: 500;
  padding: 0.8125rem 1.375rem;
}

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding-block: 0.875rem;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.375rem;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.wordmark:hover { text-decoration: none; }

.mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: inline-grid;
  place-items: center;
  font-size: 0.55rem;
  letter-spacing: 0.08em;
  font-family: var(--font-body);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 1.375rem;
  margin-left: auto;
  align-items: center;
}
.nav-links a:not(.btn) {
  color: var(--ink-muted);
  font-size: 0.875rem;
  font-weight: 500;
}
.nav-links a:not(.btn):hover { color: var(--ink); text-decoration: none; }

.nav .btn { padding: 0.55rem 1.05rem; font-size: 0.875rem; }

.theme-toggle {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  width: 2.1rem;
  height: 2.1rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1;
}
.theme-toggle:hover { color: var(--ink); }

@media (max-width: 40rem) {
  .nav-links a:not(.btn) { display: none; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  padding-block: clamp(3.5rem, 9vw, 7.5rem) clamp(3rem, 7vw, 6rem);
}

.hero-copy .label { margin-bottom: 1.125rem; }

.hero-copy h1 { margin-bottom: 1.5rem; }
.hero-copy h1 em {
  font-style: italic;
  font-weight: 600;
  color: var(--primary);
}

.hero-copy .lede {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-muted);
  max-width: var(--measure);
  margin-bottom: 2rem;
}
.hero-copy .lede strong { color: var(--ink); font-weight: 600; }

.hero-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 1.75rem; }

.hero .footnote { max-width: 26rem; }

@media (max-width: 56rem) {
  .hero { grid-template-columns: 1fr; }
  .hero-phone { justify-self: center; }
}

/* ---------- phone mock ---------- */

.hero-phone { position: relative; }

.phone {
  width: min(20.5rem, 88vw);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 2.6rem;
  box-shadow: var(--shadow-card), 0 24px 48px rgba(20, 25, 20, 0.09);
  padding: 1.15rem 1.05rem 0;
  overflow: hidden;
  rotate: 1.2deg;
}

.phone-greeting { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.85rem; padding-inline: 0.2rem; }
.phone-greeting .g { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.phone-greeting .d { font-size: 0.7rem; color: var(--ink-muted); }

.phone-hero-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 1.15rem 1.2rem 1.05rem;
  margin-bottom: 0.7rem;
}
.phone-hero-card .label { font-size: 0.62rem; margin-bottom: 0.3rem; }
.phone-hero-card .amount {
  font-size: 2rem;
  line-height: 1.15;
  color: var(--primary);
  display: block;
}
.phone-hero-card .equiv { font-size: 0.72rem; color: var(--ink-muted); margin-top: 0.35rem; }

.tba-pill {
  display: inline-block;
  background: var(--gold);
  color: var(--on-primary);
  border-radius: var(--r-chip);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.32rem 0.8rem;
  margin-bottom: 0.7rem;
}

.waiting-card {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  padding: 0.8rem 0.95rem;
  margin-bottom: 0.7rem;
}
.waiting-card .ring { flex-shrink: 0; }
.waiting-card .wc-item { font-weight: 500; font-size: 0.8rem; }
.waiting-card .wc-amt { font-size: 0.8rem; }
.waiting-card .wc-left { font-size: 0.68rem; color: var(--ink-muted); }

.phone-action {
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--r-button);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.8rem;
  margin-bottom: 0.85rem;
}

.phone-tabbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto 1fr 1fr;
  align-items: center;
  border-top: 1px solid var(--border);
  padding: 0.6rem 0.3rem 1.1rem;
  gap: 0.15rem;
}
.phone-tabbar .tab {
  font-size: 0.58rem;
  color: var(--ink-muted);
  text-align: center;
  font-weight: 500;
}
.phone-tabbar .tab.active {
  color: var(--primary);
  background: var(--surface-alt);
  border-radius: 10px;
  padding-block: 0.3rem;
  font-weight: 600;
}
.phone-tabbar .tab .ico { display: block; font-size: 0.85rem; margin-bottom: 0.1rem; }

.fab {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--primary);
  color: var(--on-primary);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-fab);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-inline: 0.4rem;
  translate: 0 -0.9rem;
}

/* ---------- sections ---------- */

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }

.section-head { max-width: 42rem; margin-bottom: clamp(2.25rem, 5vw, 3.5rem); }
.section-head .label { margin-bottom: 0.875rem; }
.section-head .title { margin-bottom: 1rem; }
.section-head p { color: var(--ink-muted); max-width: var(--measure); }

/* the stakes — two versions of the same year, side by side.
   Clay marks the autopilot path (caution, never alarm-red); gold marks kept money. */

.stakes { border-top: 1px solid var(--border); }

.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.path {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface-alt);
  padding: 2rem 2rem 1.75rem;
}
.path-with {
  background: var(--surface);
  box-shadow: var(--shadow-card);
}

.path .tagline {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}
.path-without .tagline { color: var(--clay); }
.path-with .tagline { color: var(--gold); }

.path h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.375rem;
  margin-bottom: 1.125rem;
}

.path ul { list-style: none; display: grid; gap: 0.75rem; }
.path li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
  color: var(--ink-muted);
}
.path li::before {
  content: "—";
  position: absolute;
  left: 0;
}
.path-without li::before { color: color-mix(in oklab, var(--clay) 60%, var(--bg)); }
.path-with li::before { color: var(--gold); }

.path-note {
  margin-top: 1.375rem;
  padding-top: 1.125rem;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 1rem;
  line-height: 1.45;
  color: var(--ink);
}

.stakes .footnote { margin-top: 1.75rem; max-width: 34rem; }

@media (max-width: 56rem) {
  .paths { grid-template-columns: 1fr; }
}

/* philosophy — editorial columns, hairlines not cards */

.philosophy { border-top: 1px solid var(--border); }

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.principle {
  padding: 1.75rem 2rem 0.5rem 0;
}
.principle + .principle {
  border-left: 1px solid var(--border);
  padding-left: 2rem;
}
.principle .num {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.875rem;
}
.principle h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin-bottom: 0.625rem;
}
.principle p { font-size: 0.9375rem; color: var(--ink-muted); }

@media (max-width: 56rem) {
  .principles { grid-template-columns: 1fr; }
  .principle { padding: 1.5rem 0; border-top: 1px solid var(--border); }
  .principle + .principle { border-left: none; padding-left: 0; }
}

/* ritual — timeline */

.ritual { border-top: 1px solid var(--border); }

.ritual-grid {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 6vw, 5rem);
  align-items: start;
}

.steps { list-style: none; counter-reset: step; }

.step {
  position: relative;
  padding: 0 0 2rem 3.1rem;
  counter-increment: step;
}
.step::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0.1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gold);
}
.step::after {
  content: "";
  position: absolute;
  left: 0.72rem;
  top: 1.75rem;
  bottom: 0.4rem;
  width: 1px;
  background: var(--border);
}
.step:last-child { padding-bottom: 0; }
.step:last-child::after { display: none; }

.step h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}
.step p { font-size: 0.9375rem; color: var(--ink-muted); max-width: 30rem; }
.step p strong { color: var(--ink); font-weight: 600; }

/* breathing demo */

.breath-panel {
  position: sticky;
  top: 5.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 2.5rem 2rem;
  text-align: center;
}

.breath-circle {
  width: 9.5rem;
  height: 9.5rem;
  border-radius: 50%;
  border: 2px solid var(--ink-muted);
  margin: 1.75rem auto;
  display: grid;
  place-items: center;
  transition: border-color 0.4s ease;
}
.breath-circle .inner {
  width: 72%;
  height: 72%;
  border-radius: 50%;
  background: color-mix(in oklab, var(--primary) 12%, transparent);
}

.breath-panel.breathing .breath-circle {
  animation: breathe 4s cubic-bezier(0.45, 0, 0.55, 1) 1;
  border-color: var(--primary);
}

@keyframes breathe {
  0% { transform: scale(1); }
  50% { transform: scale(1.16); }
  100% { transform: scale(1); }
}

.breath-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  min-height: 1.6rem;
  color: var(--ink);
}

.breath-panel .btn { margin-top: 1.5rem; }
.breath-panel .footnote { margin-top: 1rem; }

@media (max-width: 56rem) {
  .ritual-grid { grid-template-columns: 1fr; }
  .breath-panel { position: static; }
}

/* the everyday — the money loop as a horizontal cycle */

.everyday { border-top: 1px solid var(--border); }

/* everyday visuals — the Budget and Expenses tabs, rendered in-page.
   Gold marks attention (a low or overspent envelope), never alarm-red. */

.everyday-visuals {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 2.5rem);
  margin-bottom: clamp(2.75rem, 6vw, 4.5rem);
}

.app-panel { margin: 0; }

.panel-screen {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.5rem 1.35rem;
}

.app-panel figcaption {
  margin-top: 1rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
  max-width: 28rem;
  padding-inline: 0.25rem;
}
.app-panel figcaption strong { color: var(--ink); font-weight: 600; }

.ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.ps-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.ps-month { font-size: 0.75rem; color: var(--ink-muted); }

.assigned-pill {
  background: color-mix(in oklab, var(--primary) 14%, transparent);
  color: var(--primary);
  border-radius: var(--r-chip);
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
}

.aom-chip {
  display: inline-block;
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-size: 0.68rem;
  color: var(--ink-muted);
  padding: 0.28rem 0.7rem;
  margin-bottom: 0.6rem;
}

.env-row { padding-block: 0.7rem; }
.env-row + .env-row { border-top: 1px solid var(--border); }

.env-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 0.45rem;
}
.env-name { font-size: 0.85rem; font-weight: 500; }
.env-left { font-size: 0.85rem; }
.env-left em {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--ink-muted);
}

.env-bar {
  height: 6px;
  border-radius: var(--r-chip);
  background: var(--surface-alt);
  overflow: hidden;
}
.env-bar i {
  display: block;
  height: 100%;
  border-radius: var(--r-chip);
  background: var(--primary);
  width: 0;
  transition: width 1.2s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}
.reveal.in .env-bar i { width: var(--fill); }
.env-row.over .env-bar i { background: var(--gold); }
.env-row.over .env-left { color: var(--gold); }

.env-hint {
  margin-top: 0.9rem;
  background: var(--surface-alt);
  border-radius: 12px;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--ink-muted);
  padding: 0.6rem 0.8rem;
}

.chips { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.9rem; }
.chip {
  border: 1px solid var(--border);
  border-radius: var(--r-chip);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--ink-muted);
  padding: 0.28rem 0.75rem;
}
.chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
  font-weight: 600;
}

.day-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding-block: 0.6rem 0.2rem;
}
.day-head .amount { font-size: 0.72rem; letter-spacing: 0; text-transform: none; }
.day-head + .exp-row { border-top: none; }

.exp-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.55rem;
}
.exp-row + .exp-row { border-top: 1px solid var(--border); }
.exp-name { font-size: 0.85rem; font-weight: 500; }
.exp-meta { font-size: 0.68rem; color: var(--ink-muted); margin-top: 0.1rem; }
.exp-meta .mk { color: var(--gold); font-weight: 600; }
.exp-amt { font-size: 0.85rem; }

@media (max-width: 56rem) {
  .everyday-visuals { grid-template-columns: 1fr; }
}

.loop {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.5rem, 3vw, 2.5rem);
  counter-reset: stage;
}

.stage {
  counter-increment: stage;
  position: relative;
  padding-top: 3rem;
}
/* through-line + node: reads as one continuous cycle across the row */
.stage::before {
  content: "";
  position: absolute;
  top: 0.85rem;
  left: 0;
  right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem));
  height: 1px;
  background: var(--border);
}
.stage:last-child::before { right: 0; }
.stage::after {
  content: counter(stage);
  position: absolute;
  top: 0;
  left: 0;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--gold);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
}

.stage .cyc {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.5rem;
}
.stage h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.stage p { font-size: 0.9rem; color: var(--ink-muted); }
.stage em { font-style: italic; color: var(--ink); }

.loop-note {
  margin-top: clamp(2rem, 4vw, 3rem);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.4;
  color: var(--ink);
  max-width: 40rem;
}

@media (max-width: 56rem) {
  .loop { grid-template-columns: 1fr 1fr; }
  .stage::before { right: calc(-1 * clamp(1.5rem, 3vw, 2.5rem)); }
  .stage:nth-child(2n)::before { right: 0; }
}
@media (max-width: 34rem) {
  .loop { grid-template-columns: 1fr; }
  .stage { padding-top: 0; padding-left: 2.6rem; }
  .stage::before {
    top: 0;
    bottom: 0;
    left: 0.85rem;
    right: auto;
    width: 1px;
    height: auto;
  }
  .stage:last-child::before { bottom: auto; height: 1.75rem; }
}

/* more in the app — asymmetric editorial list */

.inside { border-top: 1px solid var(--border); }

.features {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.feature {
  border: 1px solid var(--border);
  border-radius: var(--r-card);
  background: var(--surface);
  padding: 1.75rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.feature h3 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.feature p { font-size: 0.9rem; color: var(--ink-muted); }
.feature .tagline { color: var(--gold); font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; }

.feature.wide { grid-column: span 7; }
.feature.slim { grid-column: span 5; }
.feature.third { grid-column: span 4; }
.feature.full { grid-column: 1 / -1; }

.feature.accent {
  background: var(--primary);
  border-color: var(--primary);
}
.feature.accent h3, .feature.accent .tagline { color: var(--on-primary); }
.feature.accent p { color: color-mix(in oklab, var(--on-primary) 78%, var(--primary)); }

.feature.inset { background: var(--surface-alt); }

@media (max-width: 56rem) {
  .feature.wide, .feature.slim, .feature.third { grid-column: span 12; }
}

/* closing */

.closing {
  border-top: 1px solid var(--border);
  text-align: left;
}
.closing .display { max-width: 46rem; margin-bottom: 1.5rem; }
.closing .display .gold-kept { color: var(--gold); }
.closing p { color: var(--ink-muted); max-width: var(--measure); margin-bottom: 2rem; }
.closing-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.closing .footnote { margin-top: 1.75rem; }

/* footer */

footer {
  border-top: 1px solid var(--border);
  padding-block: 2.25rem 3rem;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: baseline;
  justify-content: space-between;
  color: var(--ink-muted);
  font-size: 0.8125rem;
}
.footer-inner .wordmark { font-size: 1.05rem; }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .env-bar i { transition: none; width: var(--fill); }
  .breath-panel.breathing .breath-circle { animation: none; }
  .btn { transition: none; }
}
