/* Let's Change! platform prototype
   Brand tokens from DesignSystem/tokens (Merino, Outer Space, Orange, Cinnamon, Mango, Sea Green, Silver Tree)
   Deliberately single-theme: the brand is a warm light ground with a deep forest chrome, like lets-change.life. */

@font-face { font-family: "Ivy Presto Display"; src: url("assets/fonts/Ivy-Presto-Display-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ivy Presto Headline"; src: url("assets/fonts/Ivy-Presto-Headline-Light.otf") format("opentype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Ivy Presto Headline"; src: url("assets/fonts/Ivy-Presto-Headline-Semi-Bold.otf") format("opentype"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Light.ttf") format("truetype"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Regular.ttf") format("truetype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("assets/fonts/Poppins-Bold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  color-scheme: light;
  --orange: #FF6D3A;
  --cinnamon: #D74D1F;
  --mango: #F8BC5C;
  --sea: #2B8464;
  --silver: #70BFA0;
  --merino: #F4ECE1;
  --space: #2C3834;
  --forest: #1E2925;          /* deeper than Outer Space, for the hero gradient */
  --paper: #FBF7F1;           /* card surface, warmer than white */
  --sand: #E9DFD1;            /* secondary band, as on the site's "Who I am" strip */
  --ink: #2C3834;
  --ink-soft: #5B655F;
  --ink-faint: #8A928C;
  --line: rgba(44, 56, 52, .14);
  --line-strong: rgba(44, 56, 52, .28);
  --ok: #2B8464;
  --warn: #C98A1A;
  --crit: #C2411B;

  --display: "Ivy Presto Headline", "Ivy Presto Display", "Iowan Old Style", "Palatino", Georgia, serif;
  --serif-light: "Ivy Presto Display", "Iowan Old Style", Georgia, serif;
  --sans: "Poppins", "Helvetica Neue", Arial, sans-serif;

  --r-sm: 10px; --r-md: 16px; --r-lg: 26px;
  --shadow: 0 1px 2px rgba(30, 41, 37, .05), 0 8px 28px -12px rgba(30, 41, 37, .18);
  --ease: cubic-bezier(.3, .7, .2, 1);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--merino); color: var(--ink);
  font: 300 15px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(34px, 5vw, 58px); }
h2 { font-size: clamp(26px, 3.4vw, 38px); }
h3 { font-size: 22px; }
h4 { font-size: 18px; }
p { margin: 0; }
a { color: var(--cinnamon); }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.eyebrow { font: 400 11.5px/1.2 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--cinnamon); }
.eyebrow.on-dark { color: var(--mango); }
.num { font-variant-numeric: tabular-nums; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.grain { position: relative; isolation: isolate; }
.grain::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='.55'/></svg>");
}

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px; padding: 11px 22px; cursor: pointer;
  font-weight: 400; font-size: 14px; letter-spacing: .02em; text-decoration: none;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--cinnamon); }
.btn-green { background: var(--sea); color: #fff; }
.btn-green:hover { background: #226c52; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: var(--merino); color: var(--space); }
.btn-light:hover { background: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cinnamon); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 13.5px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 12.5px; font-weight: 400; color: var(--ink-soft); letter-spacing: .02em; }
.input, .textarea, .select {
  width: 100%; background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  padding: 11px 14px; font-size: 15px; font-weight: 300; transition: border-color .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(43, 132, 100, .14); }
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.form-note { font-size: 13px; color: var(--ink-soft); }
.form-error { font-size: 13px; color: var(--crit); }

/* ---------- Auth screens ---------- */
.auth {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr;
}
.auth-art {
  background: radial-gradient(120% 90% at 85% 0%, #4a3a2a 0%, transparent 55%), linear-gradient(170deg, #34403a 0%, var(--forest) 70%);
  color: var(--merino); padding: 48px clamp(24px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; gap: 40px; overflow: hidden;
}
.auth-art h1 { font-weight: 300; font-family: var(--serif-light); font-size: clamp(40px, 5.4vw, 76px); line-height: 1.02; color: #F1E6D6; }
.auth-art h1 em { font-style: normal; color: var(--mango); }
.auth-art .belief { max-width: 34ch; color: rgba(244, 236, 225, .78); font-size: 15px; }
.auth-art img.logo { width: 150px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.auth-card { width: min(420px, 100%); display: flex; flex-direction: column; gap: 22px; }
.auth-card h2 { font-size: 34px; }
.auth.admin .auth-art { background: linear-gradient(170deg, #26302c 0%, #141b18 80%); }
.lock-badge { display: inline-flex; gap: 8px; align-items: center; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mango); }

/* ---------- Portal shell ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100%; }
.side {
  background: linear-gradient(180deg, #2E3A35 0%, var(--forest) 100%); color: var(--merino);
  padding: 26px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side .logo { width: 132px; margin-left: 8px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px;
  color: rgba(244, 236, 225, .78); text-decoration: none; font-size: 14px; transition: background .15s, color .15s;
}
.nav a:hover { background: rgba(244, 236, 225, .07); color: #fff; }
.nav a.active { background: rgba(244, 236, 225, .11); color: #fff; }
.nav a .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .5; flex: none; }
.nav a.active .dot { background: var(--orange); opacity: 1; }
.nav .count { margin-left: auto; background: var(--crit); color: #fff; font-size: 11px; border-radius: 999px; padding: 1px 8px; }
.nav-label { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: rgba(244, 236, 225, .42); padding: 0 12px; margin-bottom: 6px; }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(244, 236, 225, .6); padding: 0 8px; }
.side-foot .who { color: var(--merino); }
.side-foot button { background: none; border: 0; color: rgba(244, 236, 225, .6); text-align: left; padding: 0; cursor: pointer; font-size: 13px; }
.side-foot button:hover { color: #fff; }

.main { min-width: 0; }
.page { max-width: 1120px; margin: 0 auto; padding: 40px clamp(16px, 4vw, 48px) 96px; display: flex; flex-direction: column; gap: 34px; }
.page-head { display: flex; flex-direction: column; gap: 10px; }
.page-head p { max-width: 62ch; color: var(--ink-soft); }
.crumbs { font-size: 13px; color: var(--ink-faint); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cinnamon); }

.mobile-bar { display: none; }

/* ---------- Home hero ---------- */
.hero {
  border-radius: var(--r-lg); color: var(--merino); padding: clamp(28px, 4vw, 52px);
  background: radial-gradient(90% 120% at 100% 0%, #5a4330 0%, transparent 52%), linear-gradient(165deg, #34413b 0%, var(--forest) 75%);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end; overflow: hidden;
}
.hero h1 { font-family: var(--serif-light); font-weight: 300; color: #F1E6D6; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--mango); }
.hero p { color: rgba(244, 236, 225, .78); max-width: 46ch; }
.hero-next { background: rgba(244, 236, 225, .08); border: 1px solid rgba(244, 236, 225, .14); border-radius: var(--r-md); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.hero-next h4 { color: #fff; font-family: var(--display); }
.hero-next .bar { background: rgba(244, 236, 225, .14); }

/* ---------- Bricks grid (home) ---------- */
.bricks { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.brick {
  grid-column: span 2; background: var(--paper); border-radius: var(--r-md); padding: 24px; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; gap: 10px; border-top: 3px solid var(--sea); box-shadow: var(--shadow);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease); min-height: 196px; position: relative; overflow: hidden;
}
.brick:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(30,41,37,.06), 0 18px 36px -16px rgba(30,41,37,.28); }
.brick.orange { border-top-color: var(--orange); }
.brick.mango { border-top-color: var(--mango); }
.brick.cinnamon { border-top-color: var(--cinnamon); }
.brick.wide { grid-column: span 3; }
.brick.feature { grid-column: span 3; background: var(--space); color: var(--merino); border-top-color: var(--orange); }
.brick.feature .muted { color: rgba(244, 236, 225, .72); }
.brick h3 { font-size: 26px; }
.brick .go { margin-top: auto; font-size: 13px; color: var(--cinnamon); letter-spacing: .03em; }
.brick.feature .go { color: var(--mango); }
.brick .deco { position: absolute; right: -24px; bottom: -30px; width: 130px; opacity: .22; pointer-events: none; }

/* ---------- Cards / lists ---------- */
.card { background: var(--paper); border-radius: var(--r-md); padding: 22px; box-shadow: var(--shadow); }
.card.flat { box-shadow: none; border: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.list { display: flex; flex-direction: column; }
.list-item { display: flex; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; background: rgba(44,56,52,.07); color: var(--ink-soft); white-space: nowrap; font-weight: 400; }
.pill.green { background: rgba(43,132,100,.12); color: #1f6a4f; }
.pill.orange { background: rgba(255,109,58,.13); color: #b8431a; }
.pill.mango { background: rgba(248,188,92,.25); color: #8a5a0c; }
.pill.red { background: rgba(194,65,27,.12); color: var(--crit); }
.pill.dark { background: var(--space); color: var(--merino); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 400; color: #fff; flex: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tab { border: 1px solid var(--line-strong); background: transparent; border-radius: 999px; padding: 7px 16px; cursor: pointer; font-size: 13.5px; }
.tab.active { background: var(--space); color: var(--merino); border-color: var(--space); }

.bar { height: 6px; border-radius: 99px; background: rgba(44,56,52,.1); overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--orange); border-radius: 99px; }
.bar.green > span { background: var(--sea); }

/* ---------- Programs ---------- */
.product {
  display: grid; grid-template-columns: 300px 1fr; border-radius: var(--r-lg); overflow: hidden; background: var(--paper); box-shadow: var(--shadow);
}
.product-cover { background: linear-gradient(160deg, #3a473f, var(--forest)); color: var(--merino); padding: 28px; display: flex; flex-direction: column; justify-content: space-between; gap: 30px; min-height: 240px; position: relative; overflow: hidden; }
.product-cover.warm { background: linear-gradient(160deg, var(--orange), var(--cinnamon)); }
.product-cover h3 { font-family: var(--serif-light); font-weight: 300; font-size: 34px; line-height: 1.02; color: #fff; }
.product-body { padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.locked-note { display: flex; gap: 10px; align-items: center; font-size: 13.5px; color: var(--ink-soft); }

.path { display: flex; flex-direction: column; gap: 0; position: relative; }
.step {
  display: grid; grid-template-columns: 44px 1fr auto; gap: 16px; align-items: center; padding: 14px 0; position: relative; text-decoration: none; color: var(--ink);
}
.step::before { content: ""; position: absolute; left: 21px; top: 0; bottom: 0; width: 2px; background: var(--line); z-index: 0; }
.step:first-child::before { top: 50%; }
.step:last-child::before { bottom: 50%; }
.step .node { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--merino); border: 2px solid var(--line-strong); font-size: 13px; z-index: 1; font-weight: 400; }
.step.done .node { background: var(--sea); border-color: var(--sea); color: #fff; }
.step.current .node { background: var(--orange); border-color: var(--orange); color: #fff; box-shadow: 0 0 0 6px rgba(255,109,58,.16); }
.step.locked { color: var(--ink-faint); }
.step.locked .node { border-style: dashed; }
.step .t { display: flex; flex-direction: column; gap: 2px; }
.step .t strong { font-family: var(--display); font-weight: 600; font-size: 19px; }
.step.locked .t strong { font-weight: 300; }
.step .t span { font-size: 13px; color: var(--ink-soft); }
a.step:hover .t strong { color: var(--cinnamon); }
.movement { font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sea); padding: 18px 0 2px 60px; }

/* ---------- Lesson ---------- */
.lesson { display: grid; grid-template-columns: 1fr 300px; gap: 32px; align-items: start; }
.video {
  aspect-ratio: 16 / 9; max-width: 100%; border-radius: var(--r-md); overflow: hidden; position: relative;
  background: radial-gradient(70% 90% at 70% 20%, #5a4330, transparent 60%), linear-gradient(160deg, #3a473f, var(--forest));
  display: grid; place-items: center; color: var(--merino);
}
.video .play { width: 74px; height: 74px; border-radius: 50%; background: var(--orange); display: grid; place-items: center; border: 0; cursor: pointer; }
.video .meta { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; justify-content: space-between; font-size: 12.5px; color: rgba(244,236,225,.8); gap: 10px; flex-wrap: wrap; }
.video .title { position: absolute; left: 22px; top: 20px; font-family: var(--serif-light); font-size: clamp(20px, 2.6vw, 30px); color: #fff; max-width: 70%; line-height: 1.1; }
.workbook { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 26px; box-shadow: var(--shadow); }
.workbook-head { display: flex; flex-direction: column; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 20px; }
.q { display: flex; flex-direction: column; gap: 10px; }
.q-label { display: flex; gap: 14px; align-items: baseline; }
.q-label .n { font-family: var(--display); color: var(--orange); font-size: 22px; font-weight: 600; min-width: 18px; }
.q-label p { font-weight: 400; }
.q-help { font-size: 13px; color: var(--ink-soft); padding-left: 32px; }
.answer { position: relative; padding-left: 32px; }
.answer .textarea { padding-right: 58px; background: #fff; }
.mic {
  position: absolute; right: 10px; top: 10px; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-strong); background: var(--merino); cursor: pointer; display: grid; place-items: center; transition: background .15s;
}
.mic:hover { background: #fff; }
.mic.rec { background: var(--crit); border-color: var(--crit); color: #fff; animation: pulse 1.3s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(194,65,27,.45); } 100% { box-shadow: 0 0 0 12px rgba(194,65,27,0); } }
.saved { font-size: 12px; color: var(--ok); padding-left: 32px; min-height: 16px; }
.aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 24px; }
.next-reveal { border: 1.5px dashed var(--line-strong); border-radius: var(--r-md); padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.next-reveal.open { border-style: solid; border-color: var(--sea); background: rgba(43,132,100,.06); }
.upsell { border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); background: linear-gradient(160deg, #34413b, var(--forest)); color: var(--merino); display: flex; flex-direction: column; gap: 14px; }
.upsell h2 { color: #fff; font-family: var(--serif-light); font-weight: 300; }
.upsell p { color: rgba(244,236,225,.8); max-width: 58ch; }

/* ---------- Test ---------- */
.test-wrap { max-width: 720px; margin: 0 auto; width: 100%; display: flex; flex-direction: column; gap: 26px; }
.test-q { font-family: var(--serif-light); font-size: clamp(24px, 3.2vw, 34px); line-height: 1.2; min-height: 3.6em; }
.scale { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.scale button { padding: 18px 12px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; font-size: 14.5px; transition: all .15s; }
.scale button:hover { border-color: var(--sea); }
.scale button.sel { background: var(--sea); color: #fff; border-color: var(--sea); }
.root-progress { display: flex; gap: 5px; }
.root-progress span { flex: 1; height: 4px; border-radius: 3px; background: rgba(44,56,52,.12); }
.root-progress span.on { background: var(--sea); }
.mix { display: flex; flex-direction: column; gap: 12px; }
.mix-row { display: grid; grid-template-columns: 1fr 2fr 36px; gap: 14px; align-items: center; font-size: 14px; }
.mix-row .track { height: 12px; border-radius: 99px; background: rgba(44,56,52,.09); overflow: hidden; }
.mix-row .track span { display: block; height: 100%; background: var(--silver); border-radius: 99px; }
.mix-row.top .track span { background: var(--orange); }
.mix-row.second .track span { background: var(--mango); }
.mix-row.top { font-weight: 400; }
.result-hero { background: var(--space); color: var(--merino); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 12px; }
.result-hero .pill.mango { background: var(--mango); color: var(--space); }
.result-hero h1 { color: #fff; font-family: var(--serif-light); font-weight: 300; font-size: clamp(32px, 4.4vw, 52px); }
.sales-bridge { border-top: 1px solid var(--line); padding-top: 28px; display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }

/* ---------- Sales & checkout ---------- */
.sales-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; }
.sales-hero h1 { font-family: var(--serif-light); font-weight: 300; }
.price-card { background: var(--paper); border-radius: var(--r-lg); padding: 30px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 16px; border-top: 4px solid var(--orange); }
.price { font-family: var(--display); font-size: 52px; font-weight: 600; line-height: 1; }
.checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.checklist li { padding-left: 28px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 7px; width: 14px; height: 8px; border-left: 2px solid var(--sea); border-bottom: 2px solid var(--sea); transform: rotate(-45deg); }
.stripe {
  max-width: 460px; margin: 0 auto; width: 100%; background: #fff; border-radius: 14px; padding: 28px; box-shadow: 0 10px 40px -10px rgba(0,0,0,.25);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; font-weight: 400; color: #30313d; display: flex; flex-direction: column; gap: 16px;
}
.stripe .s-input { border: 1px solid #e0e0e6; border-radius: 6px; padding: 10px 12px; font-size: 15px; width: 100%; font-family: inherit; }
.stripe .s-pay { background: #635bff; color: #fff; border: 0; border-radius: 6px; padding: 13px; font-size: 15px; font-weight: 500; cursor: pointer; }
.stripe-note { text-align: center; font-size: 12.5px; color: var(--ink-faint); }

/* ---------- Community ---------- */
.thread { display: grid; grid-template-columns: 38px 1fr auto; gap: 14px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.thread:hover h4 { color: var(--cinnamon); }
.thread h4 { font-size: 19px; margin-bottom: 4px; }
.post { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.room { display: flex; flex-direction: column; gap: 12px; }
.room .members { display: flex; }
.room .members .avatar { width: 30px; height: 30px; font-size: 11px; margin-left: -8px; border: 2px solid var(--paper); }
.room .members .avatar:first-child { margin-left: 0; }
.chat { display: flex; flex-direction: column; gap: 12px; max-height: 380px; overflow-y: auto; padding: 4px; }
.bubble { max-width: 78%; padding: 10px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); font-size: 14px; }
.bubble.me { align-self: flex-end; background: var(--sea); color: #fff; border-color: var(--sea); }
.bubble small { display: block; font-size: 11px; opacity: .7; margin-bottom: 2px; }

/* ---------- Resources & events ---------- */
.res { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.res-thumb { aspect-ratio: 16/10; max-width: 100%; border-radius: var(--r-sm); display: grid; place-items: center; color: #fff; font-family: var(--serif-light); font-size: 22px; padding: 16px; text-align: center; line-height: 1.1; }
.event { display: grid; grid-template-columns: 76px 1fr auto; gap: 18px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.date-tile { width: 76px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); text-align: center; padding: 8px 0; }
.date-tile b { display: block; font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.date-tile span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--cinnamon); }

/* ---------- Admin ---------- */
.admin .side { background: linear-gradient(180deg, #252f2b, #151c19); }
.admin .page { max-width: 1280px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--paper); border-radius: var(--r-md); padding: 18px 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px; }
.kpi .v { font-family: var(--display); font-size: 36px; font-weight: 600; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi .l { font-size: 12.5px; color: var(--ink-soft); }
.kpi .d { font-size: 12px; }
.kpi .d.up { color: var(--ok); }
.kpi .d.down { color: var(--crit); }
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--r-md); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); padding: 14px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(244,236,225,.6); }
td .sub { font-size: 12px; color: var(--ink-faint); }
.temp { display: inline-flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.temp i { width: 44px; height: 6px; border-radius: 3px; background: rgba(44,56,52,.1); overflow: hidden; display: inline-block; }
.temp i b { display: block; height: 100%; }
.alert-row { display: grid; grid-template-columns: 6px 1fr auto; gap: 16px; align-items: center; background: var(--paper); border-radius: var(--r-md); padding: 16px 18px 16px 0; box-shadow: var(--shadow); overflow: hidden; }
.alert-row .sev { align-self: stretch; }
.sev.warn { background: var(--warn); }
.sev.crit { background: var(--crit); }
.sev.ok { background: var(--sea); }
.funnel { display: flex; flex-direction: column; gap: 10px; }
.f-row { display: grid; grid-template-columns: 210px 1fr 120px; gap: 16px; align-items: center; font-size: 14px; }
.f-bar { height: 34px; border-radius: 8px; background: rgba(44,56,52,.06); overflow: hidden; }
.f-bar span { display: flex; align-items: center; padding-left: 12px; height: 100%; color: #fff; font-size: 13px; font-variant-numeric: tabular-nums; border-radius: 8px; min-width: 42px; }
.f-rate { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.demo-flag { font-size: 12px; background: rgba(248,188,92,.25); color: #7a4f08; border-radius: 8px; padding: 8px 12px; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: var(--sans); fill: var(--ink-faint); font-size: 11px; }
.idea { display: flex; flex-direction: column; gap: 6px; }
.idea h4 { font-size: 18px; }

/* ---------- Modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,27,24,.55); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal { background: var(--merino); border-radius: var(--r-lg); width: min(640px, 100%); max-height: 90vh; overflow-y: auto; padding: 30px; display: flex; flex-direction: column; gap: 16px; }
.email-preview { background: #fff; border: 1px solid var(--line); border-radius: var(--r-sm); padding: 20px; font-size: 14px; white-space: pre-wrap; line-height: 1.6; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--space); color: var(--merino); padding: 12px 20px; border-radius: 999px; font-size: 14px; z-index: 60; box-shadow: var(--shadow); }

/* ---------- Demo toolbar ---------- */
.demo-bar {
  position: fixed; right: 16px; bottom: 16px; z-index: 40; background: #fff; border: 1px solid var(--line-strong); border-radius: 16px;
  padding: 10px 12px; display: flex; gap: 8px; align-items: center; box-shadow: var(--shadow); font-size: 12.5px; flex-wrap: wrap; max-width: calc(100% - 32px);
}
.demo-bar b { font-weight: 400; color: var(--cinnamon); letter-spacing: .1em; text-transform: uppercase; font-size: 10.5px; }
.demo-bar button { border: 1px solid var(--line); background: var(--merino); border-radius: 999px; padding: 5px 10px; cursor: pointer; font-size: 12px; }
.demo-bar button:hover { border-color: var(--ink); }


/* ---------- V1.1: locks ---------- */
.nav a.is-locked { color: rgba(244, 236, 225, .42); }
.nav-lock { margin-left: auto; opacity: .7; display: inline-flex; }
.lock-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; letter-spacing: .06em; padding: 3px 10px; border-radius: 999px; background: rgba(44,56,52,.08); color: var(--ink-soft); white-space: nowrap; }
.brick.locked { background: repeating-linear-gradient(135deg, #F1E9DD 0 10px, #EEE5D8 10px 20px); box-shadow: none; border-top-color: var(--line-strong); }
.brick.locked h3, .brick.locked .muted { color: var(--ink-faint); }
.brick.locked .go { color: var(--ink-soft); }
.brick.locked .deco { opacity: .08; filter: grayscale(1); }
.brick.feature.locked { background: repeating-linear-gradient(135deg, #3a4540 0 10px, #36413c 10px 20px); }
.brick.feature.locked h3, .brick.feature.locked .muted { color: rgba(244,236,225,.5); }
.brick.feature.locked .lock-chip { background: rgba(244,236,225,.12); color: rgba(244,236,225,.75); }
.locked-page { border-radius: var(--r-lg); padding: clamp(28px, 5vw, 64px); color: var(--merino); display: flex; flex-direction: column; gap: 14px; align-items: flex-start;
  background: radial-gradient(90% 120% at 100% 0%, #5a4330 0%, transparent 52%), linear-gradient(165deg, #34413b 0%, var(--forest) 75%); }
.locked-page h1 { color: #fff; font-family: var(--serif-light); font-weight: 300; }
.locked-page p { color: rgba(244,236,225,.8); max-width: 52ch; }
.lock-big { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: rgba(244,236,225,.1); color: var(--mango); }
.lock-big svg { width: 24px; height: 24px; }

/* ---------- V1.1: journey ---------- */
.journey { background: var(--paper); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 32px); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 20px; }
.j-stat { display: flex; flex-direction: column; }
.j-stat b { font-family: var(--display); font-size: 28px; font-weight: 600; line-height: 1; }
.j-stat span { font-size: 12px; color: var(--ink-soft); }
.j-track { display: flex; flex-direction: column; gap: 12px; }
.j-label { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); display: flex; align-items: center; }
.j-dots { display: flex; align-items: center; }
.j-dot { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--merino); display: grid; place-items: center; color: #fff; flex: none; }
.j-dot.done { background: var(--sea); border-color: var(--sea); }
.j-dot.now { border-color: var(--orange); box-shadow: 0 0 0 5px rgba(255,109,58,.15); }
.j-line { flex: 1; height: 2px; background: var(--line-strong); min-width: 12px; }
.j-line.done { background: var(--sea); }
.j-moves { display: grid; grid-template-columns: .6fr 1.2fr .6fr 1fr 2.4fr 1fr; gap: 8px; }
.j-move { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--ink-soft); min-width: 0; }
.j-move.done { color: var(--sea); }
.j-seg { display: flex; gap: 3px; }
.j-seg span { flex: 1; height: 10px; border-radius: 3px; background: rgba(44,56,52,.1); }
.j-seg span.done { background: var(--sea); }
.j-seg span.now { background: var(--orange); }

/* ---------- V1.1: admin controls ---------- */
.switch { width: 42px; height: 24px; border-radius: 999px; border: 0; background: rgba(44,56,52,.2); position: relative; cursor: pointer; flex: none; margin-top: 2px; transition: background .15s; }
.switch span { position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s var(--ease); }
.switch.on { background: var(--sea); }
.switch.on span { transform: translateX(18px); }
.inline-num { display: inline-block; width: 72px; padding: 4px 8px; font-size: 14px; }
.content-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.content-nav { display: flex; flex-direction: column; gap: 2px; max-height: 78vh; overflow-y: auto; position: sticky; top: 20px; }
.content-item { text-align: left; background: none; border: 0; border-radius: 10px; padding: 8px 10px; cursor: pointer; display: flex; flex-direction: column; }
.content-item:hover { background: rgba(44,56,52,.05); }
.content-item.active { background: var(--space); color: var(--merino); }
.content-item small { font-size: 11.5px; opacity: .65; }
.q-edit { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; }
.q-edit .n { font-family: var(--display); color: var(--orange); font-size: 20px; font-weight: 600; min-width: 18px; }
.q-tools { display: flex; flex-direction: column; gap: 4px; }
.q-tools button { width: 30px; height: 28px; border: 1px solid var(--line); background: var(--merino); border-radius: 8px; cursor: pointer; }
.q-tools button[disabled] { opacity: .35; cursor: default; }
.demo-bar select { border: 1px solid var(--line); background: var(--merino); border-radius: 999px; padding: 5px 10px; font-size: 12px; }
@media (max-width: 980px) { .content-layout { grid-template-columns: 1fr; } .content-nav { position: static; max-height: 260px; } .j-moves { grid-template-columns: repeat(3, 1fr); } }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; z-index: 45; height: 100%; width: 280px; }
  .mobile-bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--forest); color: var(--merino); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; }
  .mobile-bar img { width: 110px; }
  .mobile-bar button { background: none; border: 1px solid rgba(244,236,225,.3); color: var(--merino); border-radius: 999px; padding: 6px 14px; }
  .hero, .sales-hero, .lesson, .product, .auth { grid-template-columns: 1fr; }
  .aside { position: static; }
  .bricks { grid-template-columns: 1fr 1fr; }
  .brick, .brick.wide, .brick.feature { grid-column: span 1; }
  .grid-3, .kpis { grid-template-columns: 1fr 1fr; }
  .auth-art { min-height: 300px; }
}
@media (max-width: 620px) {
  .bricks, .grid-3, .grid-2, .kpis { grid-template-columns: 1fr; }
  .scale { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; gap: 4px; }
  .event { grid-template-columns: 64px 1fr; }
  .event > :last-child { grid-column: 1 / -1; }
  .sales-bridge { grid-template-columns: 1fr; }
  .mix-row { grid-template-columns: 1fr 1.2fr 30px; }
}

/* ---------- WordPress: public test page header ---------- */
.guest { min-height: 100vh; }
.guest-bar { display: flex; justify-content: space-between; align-items: center; padding: 16px clamp(16px, 4vw, 48px); max-width: 1120px; margin: 0 auto; }
.guest-bar img { width: 130px; }

/* ---------- The Ritual (after Claude Design's room screens) ---------- */
.ritual {
  position: relative; overflow: hidden; border-radius: var(--r-lg); color: var(--merino); padding: clamp(24px, 4vw, 44px);
  display: flex; flex-direction: column; gap: 22px; min-height: 300px;
  background:
    linear-gradient(rgba(244,236,225,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(244,236,225,.045) 1px, transparent 1px) 0 0 / 56px 56px,
    radial-gradient(45% 60% at 12% 0%, rgba(201,160,70,.55), transparent 70%),
    radial-gradient(40% 55% at 88% 12%, rgba(215,77,31,.6), transparent 70%),
    radial-gradient(60% 60% at 60% 110%, rgba(43,132,100,.55), transparent 70%),
    linear-gradient(180deg, #2a2a22 0%, #16201c 60%, #173a2e 100%);
}
.ritual::before { content: ""; position: absolute; top: 0; left: clamp(24px, 4vw, 44px); width: 64px; height: 5px; background: var(--orange); }
.ritual-top, .ritual-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.ritual-days { font-size: 13px; letter-spacing: .12em; color: rgba(244,236,225,.75); }
.ritual-h { font-family: var(--serif-light); font-weight: 300; font-style: italic; font-size: clamp(38px, 5.6vw, 72px); line-height: 1; color: #F4ECE1; letter-spacing: -.02em; }
.ritual-body { display: flex; flex-direction: column; gap: 14px; }
.ritual-body p { max-width: 36ch; font-size: clamp(16px, 1.6vw, 19px); color: rgba(244,236,225,.86); }
.ritual-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn-ghost-light { background: transparent; color: var(--merino); border-color: rgba(244,236,225,.4); }
.btn-ghost-light:hover { border-color: var(--merino); }
.ritual-more { color: rgba(244,236,225,.75); font-size: 13.5px; }
.ritual-foot { font-size: 11.5px; letter-spacing: .2em; color: rgba(244,236,225,.62); }
.ritual.is-open .ritual-h { color: #fff; }
.ritual-locked { filter: saturate(.55); }
.ritual-locked .ritual-h { color: rgba(244,236,225,.7); }
.ritual-steps {
  border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); display: flex; flex-direction: column; gap: 28px; position: relative;
  background: linear-gradient(rgba(215,77,31,.05) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(215,77,31,.05) 1px, transparent 1px) 0 0 / 56px 56px, var(--merino);
  border: 1px solid var(--line);
}
.ritual-steps::before { content: ""; position: absolute; top: 0; left: clamp(24px, 4vw, 44px); width: 64px; height: 5px; background: var(--orange); }
.ritual-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.ritual-col { border-top: 2px solid var(--orange); padding-top: 18px; display: flex; flex-direction: column; gap: 6px; }
.ritual-n, .ritual-col h3 { font-family: var(--serif-light); font-style: italic; font-weight: 300; font-size: 34px; line-height: 1.05; }
.ritual-col p { color: var(--ink-soft); }
.cal-options { display: flex; flex-direction: column; gap: 10px; }
.cal-opt { display: flex; flex-direction: column; gap: 2px; text-align: left; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: #fff; cursor: pointer; text-decoration: none; color: var(--ink); font-size: 14px; }
.cal-opt:hover { border-color: var(--sea); }
.cal-opt b { font-weight: 400; }
.cal-opt span { font-size: 13px; color: var(--ink-soft); }
.ritual-admin { border-top: 4px solid var(--orange); }
@media (max-width: 760px) { .ritual-cols { grid-template-columns: 1fr; } }

/* ======================================================================
   Aura system (from Claude Design's Ritual screens): orange, green, tricolour.
   Used sparingly on the "moments": hero, Ritual, video covers, results, thresholds.
   ====================================================================== */
:root {
  --aura-grid: linear-gradient(rgba(244,236,225,.045) 1px, transparent 1px) 0 0 / 56px 56px, linear-gradient(90deg, rgba(244,236,225,.045) 1px, transparent 1px) 0 0 / 56px 56px;
  --aura-orange:
    radial-gradient(38% 55% at 86% 8%, rgba(214,98,52,.78), transparent 72%),
    radial-gradient(34% 46% at 4% 88%, rgba(170,72,34,.62), transparent 72%),
    radial-gradient(42% 40% at 58% 112%, rgba(128,104,46,.55), transparent 72%),
    radial-gradient(70% 45% at 38% 46%, rgba(20,28,25,.85), transparent 75%),
    linear-gradient(160deg, #2a1e18 0%, #1a211e 55%, #3a2a1c 100%);
  --aura-green:
    radial-gradient(45% 55% at 92% 4%, rgba(43,132,100,.62), transparent 72%),
    radial-gradient(40% 50% at 18% 104%, rgba(64,146,106,.5), transparent 72%),
    radial-gradient(35% 40% at 52% 52%, rgba(120,62,34,.38), transparent 75%),
    linear-gradient(170deg, #17231f 0%, #121a17 60%, #183529 100%);
  --aura-tri:
    radial-gradient(45% 60% at 12% 0%, rgba(201,160,70,.55), transparent 70%),
    radial-gradient(40% 55% at 88% 12%, rgba(215,77,31,.6), transparent 70%),
    radial-gradient(60% 60% at 60% 110%, rgba(43,132,100,.55), transparent 70%),
    linear-gradient(180deg, #2a2a22 0%, #16201c 60%, #173a2e 100%);
}
.aura-orange { background: var(--aura-grid), var(--aura-orange); color: var(--merino); }
.aura-green  { background: var(--aura-grid), var(--aura-green);  color: var(--merino); }
.aura-tri    { background: var(--aura-grid), var(--aura-tri);    color: var(--merino); }
.aura-title { font-family: var(--serif-light); font-weight: 300; font-style: italic; letter-spacing: -.02em; line-height: 1; color: #F4ECE1; }

/* Where each aura lives */
.hero { background: var(--aura-grid), var(--aura-tri); }
.hero h1 { font-style: italic; }
.auth-art { background: var(--aura-grid), var(--aura-green); }
.auth-art h1 { font-style: italic; }
.auth.admin .auth-art { background: var(--aura-grid), var(--aura-orange); }
.locked-page { background: var(--aura-grid), var(--aura-orange); }
.locked-page h1 { font-style: italic; text-transform: lowercase; }
.video { background: var(--aura-grid), var(--aura-green); }
.video .title { font-style: italic; font-weight: 300; }
.upsell { background: var(--aura-grid), var(--aura-orange); }
.upsell h2 { font-style: italic; }
.result-hero { background: var(--aura-grid), var(--aura-orange); }
.result-hero h1 { font-style: italic; }
.product-cover { background: var(--aura-grid), var(--aura-green); }
.product-cover.warm { background: var(--aura-grid), var(--aura-orange); }
.product-cover h3 { font-style: italic; }
.brick.feature:not(.locked) { background: var(--aura-grid), var(--aura-green); border-top-color: var(--orange); }
.brick.feature h3 { font-family: var(--serif-light); font-weight: 300; font-style: italic; font-size: 30px; }
.ritual { background: var(--aura-grid), var(--aura-tri); }
.ritual.ritual-after { background: var(--aura-grid), var(--aura-orange); }
.ritual.ritual-after .ritual-foot span:last-child { color: var(--mango); letter-spacing: .14em; text-transform: none; font-size: 14px; }
.hero::before, .result-hero::before, .upsell::before, .locked-page::before {
  content: ""; position: absolute; top: 0; left: clamp(24px, 4vw, 52px); width: 64px; height: 5px; background: var(--orange);
}
.hero, .result-hero, .upsell, .locked-page { position: relative; overflow: hidden; }
.aura-divider { height: 6px; border-radius: 99px; background: linear-gradient(90deg, #C9A046, #D74D1F 50%, #2B8464); opacity: .8; }
/* Logos are links back home */
.side a:has(> .logo), .mobile-bar a, .guest-bar a:first-child { display: inline-flex; border-radius: 8px; transition: opacity .15s; }
.side a:has(> .logo):hover, .mobile-bar a:hover { opacity: .8; }
.mobile-bar a img { width: 110px; }
