:root {
  --ink: #1e1526;
  --ink-2: #5f5570;
  --ink-3: #8b839a;
  --plum: #4c2a85;
  --plum-deep: #241640;
  --plum-mid: #5e35a8;
  --plum-tint: #ede7f5;
  --plum-tint-2: #e4daf2;
  --paper: #f7f5fa;
  --card: #ffffff;
  --line: #e7e2ee;
  --line-2: #f0ecf6;
  --ochre: #b5651d;
  --ochre-ink: #8f4e15;
  --ochre-tint: #f6e9dc;
  --green: #2e7d5b;
  --warm: #e8ded2;
  --warm-ink: #6b4a28;
  --r-lg: 18px;
  --r-md: 14px;
  --r-sm: 10px;
  --shell: 390px;
  --bar: 84px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: #efecf4;
  color: var(--ink);
  font-family: 'Hanken Grotesk', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body { display: flex; align-items: center; justify-content: center; }

button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }
a { color: var(--plum); text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

/* ---------- shell ---------- */

#shell {
  position: relative;
  width: 100%;
  max-width: var(--shell);
  height: 100%;
  max-height: 860px;
  background: var(--paper);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (min-width: 520px) and (min-height: 760px) {
  #shell {
    border-radius: 34px;
    box-shadow: 0 28px 70px rgba(30, 21, 38, 0.22);
    height: 844px;
  }
}

@media (max-width: 519px) {
  #shell { max-height: none; }
}

.screen {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

.scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: 0 20px calc(var(--bar) + 28px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.scroll::-webkit-scrollbar { width: 0; }

/* In a scrolling flex column, children must not shrink — otherwise a block
   with overflow:hidden (the .stack) collapses instead of making the page scroll. */
.scroll > * { flex-shrink: 0; }

/* ---------- headers ---------- */

.top {
  padding: 24px 20px 14px;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.top > .back { align-self: flex-start; }
.top.row {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.wordmark {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 27px;
  color: var(--plum);
  letter-spacing: -0.01em;
}

.page-title { font-size: 25px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.page-sub { font-size: 15px; color: var(--ink-2); margin-top: 3px; }

.hero {
  background: linear-gradient(160deg, var(--plum) 0%, var(--plum-mid) 100%);
  color: #fff;
  padding: 20px 20px 22px;
  flex-shrink: 0;
}
.hero-name { font-family: 'Instrument Serif', Georgia, serif; font-size: 30px; line-height: 1.1; }
.hero-sub { font-size: 14px; color: #d3bfec; margin-top: 3px; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.hero .back { color: #c4a8e8; }

/* ---------- avatars, chips, labels ---------- */

.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 600;
  flex-shrink: 0;
  background: var(--plum-tint-2);
  color: var(--plum);
}
.avatar.warm { background: var(--warm); color: var(--warm-ink); }
.avatar.sm { width: 28px; height: 28px; font-size: 12px; }
.avatar.lg { width: 58px; height: 58px; font-size: 22px; }

.label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
}

.chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--plum-tint);
  color: var(--plum);
  white-space: nowrap;
}
.chip.warn { background: var(--ochre-tint); color: var(--ochre-ink); }
.chip.quiet { background: #edeaf3; color: var(--ink-2); font-weight: 500; }

.pill {
  font-size: 12px;
  color: var(--ink-2);
  background: #edeaf3;
  padding: 6px 11px;
  border-radius: 999px;
}
.hero .pill { color: #e6daf5; background: none; border: 1px solid #8e6bc2; }

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border-radius: var(--r-md);
  padding: 13px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card.pad { border-radius: 16px; padding: 15px; }
.card.col { flex-direction: column; align-items: stretch; gap: 10px; }
.card.attn { box-shadow: inset 3px 0 0 var(--ochre); }
.card.outline { border: 1px solid #d8c9ec; }
.card.tint { background: var(--plum-tint); }

.card-title { font-size: 15px; font-weight: 600; }
.card-detail { font-size: 13px; color: var(--ink-2); margin-top: 1px; line-height: 1.4; }
.card-detail.warn { color: var(--ochre-ink); }
.grow { flex: 1; min-width: 0; }
.truncate { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sq {
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  background: var(--plum-tint);
  display: grid; place-items: center;
  flex-shrink: 0;
  color: var(--plum);
}
.sq.warn { background: var(--ochre-tint); color: var(--ochre-ink); }

.stack { background: var(--card); border-radius: 16px; overflow: hidden; }
.stack > * + * { border-top: 1px solid var(--line-2); }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  color: inherit;
  width: 100%;
  text-align: left;
}

.group { display: flex; flex-direction: column; gap: 8px; }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}

/* ---------- the needs-you hero card ---------- */

.decide {
  display: block;
  border-radius: var(--r-lg);
  padding: 18px;
  background: linear-gradient(142deg, #3d1f6b 0%, #5e35a8 62%, #7b4bc4 100%);
  color: #fff;
}
.decide-eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #c4a8e8;
}
.decide-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin-top: 9px; letter-spacing: -0.01em; }
.decide-detail { font-size: 14px; color: #d3bfec; margin-top: 7px; line-height: 1.45; }
.decide-actions { display: flex; gap: 8px; margin-top: 15px; flex-wrap: wrap; }
.btn {
  font-size: 13px; font-weight: 600;
  padding: 9px 15px; border-radius: 999px;
  background: #fff; color: var(--plum);
}
.btn.ghost { background: none; border: 1px solid #8e6bc2; color: #e6daf5; font-weight: 500; }

/* ---------- the module shelf: the ideology, made visible ---------- */

.whytab { display: block; }
.whytab .eyebrow {
  display: flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--plum);
}
.whytab .t { font-size: 15px; font-weight: 600; margin-top: 9px; }
.whytab .d { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.45; }

.shelf { display: flex; gap: 8px; flex-wrap: wrap; }
.shelf a {
  display: flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 500;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 8px 13px;
  border-radius: 999px;
  color: var(--ink-2);
}

/* ---------- trend ---------- */

.trend { display: flex; align-items: flex-end; gap: 14px; margin-top: 10px; }
.trend .big { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.trend .unit { font-size: 14px; color: var(--ink-2); margin-left: 4px; }

/* ---------- meal plan ---------- */

.day { display: flex; gap: 13px; }
.day .d { width: 38px; flex-shrink: 0; }
.day .dow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.day .dow.on { color: var(--ochre-ink); }
.day .num { font-size: 16px; font-weight: 700; line-height: 1.2; }
.day .meals { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.day .meal { font-size: 14px; line-height: 1.4; }
.day .meal span { color: var(--ink-3); }

/* ---------- brief ---------- */

.brief-title { font-family: 'Instrument Serif', Georgia, serif; font-size: 32px; line-height: 1.12; }
.brief-decide { background: var(--plum); border-radius: var(--r-lg); padding: 17px; color: #fff; }
.brief-decide .t { font-size: 16px; line-height: 1.5; margin-top: 9px; }
.ticks { background: var(--card); border-radius: 16px; padding: 4px 15px; }
.ticks li { display: flex; gap: 12px; padding: 12px 0; font-size: 15px; line-height: 1.45; }
.ticks li + li { border-top: 1px solid var(--line-2); }
.ticks svg { flex-shrink: 0; margin-top: 2px; }

/* ---------- chat ---------- */

.thread {
  flex: 1; min-height: 0; overflow-y: auto;
  padding: 16px 14px;
  display: flex; flex-direction: column; gap: 11px;
  background: #f0edf6;
}
.thread::-webkit-scrollbar { width: 0; }
.daymark {
  align-self: center;
  font-size: 11px; font-weight: 600;
  color: #7a7189; background: #e5e0ee;
  padding: 5px 12px; border-radius: 999px;
}
.bubble { max-width: 282px; padding: 11px 13px; border-radius: 16px; font-size: 15px; line-height: 1.45; }
.bubble.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 5px; }
.bubble.me { align-self: flex-end; background: var(--plum); color: #fff; border-bottom-right-radius: 5px; }
.bubble .at { font-size: 11px; text-align: right; margin-top: 4px; color: var(--ink-3); }
.bubble.me .at { color: #c4a8e8; }
.sys {
  align-self: flex-start; max-width: 300px;
  background: #fff; border: 1px solid var(--plum-tint-2);
  border-radius: 16px; padding: 13px;
}
.sys .foot {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; padding-top: 10px;
  border-top: 1px solid var(--line-2);
  font-size: 12px; color: var(--ink-2);
}
.composer {
  background: #fff; border-top: 1px solid var(--line);
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.composer input {
  flex: 1; min-width: 0;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 15px;
  font-size: 15px;
  background: #fbfafd;
}
.round {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  background: var(--plum); color: #fff;
}
.round.quiet { width: 36px; height: 36px; background: var(--line-2); color: var(--ink-2); }

/* ---------- floating action + nav ---------- */

.top .round.quiet {
  background: var(--plum-tint);
  color: var(--plum);
}

nav {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: var(--bar);
  padding: 11px 8px calc(0px + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  z-index: 3;
}
nav a {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--ink-2);
  font-size: 11px; font-weight: 500;
  padding-top: 2px;
}
nav a[aria-current='page'] { color: var(--plum); font-weight: 600; }
nav a .new {
  position: absolute;
  margin-left: 26px; margin-top: -4px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ochre);
}

/* ---------- misc ---------- */

.note { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.quiet { color: var(--ink-2); }
.dashed {
  border: 1px dashed #c3bad3;
  border-radius: var(--r-md);
  padding: 13px;
  font-size: 14px; font-weight: 500;
  color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; gap: 7px;
  width: 100%;
}
.big-btn {
  background: var(--plum); color: #fff;
  border-radius: var(--r-md); padding: 15px;
  font-size: 15px; font-weight: 600;
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
}
.toast {
  position: absolute;
  left: 20px; right: 20px;
  bottom: calc(var(--bar) + 16px);
  background: var(--plum-deep);
  color: #fff;
  border-radius: var(--r-md);
  padding: 13px 15px;
  font-size: 14px;
  line-height: 1.4;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(30, 21, 38, 0.28);
  animation: rise 0.22s ease-out;
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

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

/* ===================== onboarding, agent and account ===================== */

/* layout atoms used by the newer screens */
.col { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row.baseline { align-items: baseline; }
.row.between, .between { justify-content: space-between; }
.row.centre, .centre { justify-content: center; }
.gap-xs.gap-xs { gap: 7px; }
.gap-sm.gap-sm { gap: 10px; }
.gap-md.gap-md { gap: 13px; }
.gap-lg.gap-lg { gap: 15px; }
.mt { margin-top: 14px; } .mt-xs { margin-top: 7px; } .mt-sm { margin-top: 10px; }
.mb { margin-bottom: 9px; } .mb-xs { margin-bottom: 5px; }
.right { text-align: right; }
.centred { text-align: center; }
.rule { height: 1px; background: var(--line-2); margin: 13px 0; }
.rule.thin { margin: 11px 0; }
.rule.ochre-rule { background: #e8d5c0; }

/* type */
.display { font-family: 'Instrument Serif', Georgia, serif; font-size: 32px; font-weight: 400; line-height: 1.15; margin: 0; letter-spacing: -0.005em; }
.display.xl { font-size: 42px; line-height: 1.12; }
.lede { font-size: 17px; line-height: 1.55; color: #d3bfec; margin: 14px 0 0; }
.lede.dark-text { color: var(--ink); margin: 0; }
.lede.light { color: #fff; }
.body { font-size: 15px; line-height: 1.5; margin: 0; }
.body.light { color: #e6daf5; }
.sub { font-size: 15px; color: var(--ink-2); margin: 7px 0 0; line-height: 1.5; }
.sub.sm { font-size: 13px; }
.faint { color: var(--ink-3); }
.faint.sm, .sm { font-size: 13px; }
.strong { font-weight: 600; }
.muted { color: var(--ink-2); }
.dark-text { color: var(--ink); }
.plum { color: var(--plum); }
.green { color: var(--green); }
.ochre { color: var(--ochre-ink); }
.ochre-ink { color: #6b3d12; }
.eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--plum); }
.eyebrow.light { color: #c4a8e8; }
.eyebrow.ochre { color: var(--ochre-ink); }
.row-label { font-size: 15px; font-weight: 500; }

/* dark screens */
.screen.dark {
  background: linear-gradient(158deg, #1b1030 0%, #3d1f6b 57%, #5e35a8 100%);
  color: #fff;
}
.screen.pad-lg { padding: 56px 28px 36px; }
.screen.spread { justify-content: space-between; }
.wordmark.lg { font-family: 'Instrument Serif', Georgia, serif; font-size: 34px; }
.orb {
  width: 62px; height: 62px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: 1px solid #8e6bc2;
  display: grid; place-items: center;
}
.orb.sm { width: 38px; height: 38px; border: none; background: rgba(255,255,255,0.14); }
.orb.tiny { width: 36px; height: 36px; border: none; background: var(--plum); }
.glass { background: rgba(255,255,255,0.08); border: 1px solid #6b4ba0; border-radius: 16px; padding: 15px; }
.note.light { color: #d3bfec; }
.scarcity { display: flex; align-items: center; gap: 9px; font-size: 13px; color: #a98bd4; }
.scarcity .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--ochre); flex-shrink: 0; }

/* buttons */
.btn {
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px; padding: 16px; font-size: 16px; font-weight: 600;
  text-align: center; border: none;
}
.btn.solid { background: #fff; color: var(--plum-deep); }
.btn.outline { background: none; border: 1px solid #8e6bc2; color: #e6daf5; font-weight: 500; }
.btn.plum { background: var(--plum); color: #fff; }
.btn.ghost { background: #fff; border: 1px solid var(--line); color: var(--plum); gap: 8px; }
.btn.sm { padding: 10px 16px; font-size: 14px; }
.btn.grow { flex: 1; }
.foot { padding: 16px 20px 30px; flex-shrink: 0; display: flex; flex-direction: column; gap: 10px; }
.foot.row { flex-direction: row; }

/* step indicator */
.top.thin { flex-direction: row; align-items: center; padding: 22px 20px 12px; gap: 12px; }
.steps { flex: 1; display: flex; align-items: center; gap: 10px; }
.segs { flex: 1; display: flex; gap: 5px; }
.seg { flex: 1; height: 4px; border-radius: 2px; background: var(--plum-tint-2); }
.seg.on { background: var(--plum); }
.step-n { font-size: 12px; color: var(--ink-3); }

/* choices and chips */
.choice {
  display: flex; align-items: center; gap: 13px; text-align: left; width: 100%;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 15px;
}
.choice.picked { background: var(--plum); border-color: var(--plum); color: #fff; }
.choice .radio { width: 20px; height: 20px; border-radius: 10px; border: 2px solid #c3bad3; flex-shrink: 0; }
.choice-title { display: block; font-size: 16px; font-weight: 600; }
.choice-detail { display: block; font-size: 13px; margin-top: 2px; color: var(--ink-2); }
.choice.picked .choice-detail { color: #d3bfec; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.pick { font-size: 14px; font-weight: 500; color: var(--ink-2); background: var(--card); border: 1px solid var(--line); padding: 9px 15px; border-radius: 999px; }
.pick.on { background: var(--plum); border-color: var(--plum); color: #fff; font-weight: 600; }
.tag { font-size: 12px; font-weight: 500; color: var(--plum); background: var(--plum-tint); padding: 6px 10px; border-radius: 999px; }

/* fields */
.field { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.field .cc { font-size: 17px; font-weight: 600; color: var(--ink-2); }
.field .divider { width: 1px; height: 22px; background: var(--line); }
.field input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: 17px; font-weight: 600; }
.otp { display: flex; gap: 10px; }
.otp .box { flex: 1; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 0; text-align: center; font-size: 22px; font-weight: 700; color: #c3bad3; }
.otp .box.filled { border-color: var(--plum); color: var(--ink); }

/* plan */
.card.tier { border: 2px solid var(--plum); border-radius: var(--r-lg); padding: 18px; }
.tier-name { font-size: 20px; font-weight: 600; }
.tier-name.sm { font-size: 17px; }
.price { display: flex; align-items: baseline; gap: 6px; margin-top: 8px; }
.price .big { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; }
.price .per { font-size: 15px; color: var(--ink-2); }
.amount { font-size: 20px; font-weight: 700; }
.ticks.tight li { padding: 0; border: none; gap: 10px; font-size: 14px; align-items: flex-start; }
.ticks.tight { background: none; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks.tight svg { margin-top: 2px; }
.ticks .warn-li { color: var(--ochre-ink); }

/* intake */
.thread.plain { background: none; }
.building { flex-shrink: 0; padding: 14px 20px 0; }
.card.outline { border: 1px solid #d8c9ec; }
.bubble.voice { display: flex; align-items: center; gap: 11px; color: #c4a8e8; }
.bubble.voice .dur { font-size: 12px; flex-shrink: 0; }
.composer .fake-input {
  flex: 1; min-width: 0; text-align: left;
  border: 1px solid var(--line); border-radius: 999px; padding: 13px 16px;
  font-size: 15px; color: var(--ink-3); background: var(--card);
}
.answer { min-height: 118px; }
.answer-text { font-size: 15px; line-height: 1.5; margin: 0; }

/* hero + slots */
.hero.tall { padding: 44px 24px 26px; }
.slot { display: flex; align-items: center; gap: 13px; background: var(--card); border-radius: var(--r-md); padding: 14px; }
.slot.picked { background: var(--plum); color: #fff; }
.slot.picked .card-detail { color: #d3bfec; }
.when { width: 44px; text-align: center; flex-shrink: 0; }
.when.wide { width: 54px; text-align: left; }
.when .dow { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: var(--ink-3); }
.slot.picked .dow { color: #c4a8e8; }
.when .num { font-size: 18px; font-weight: 700; line-height: 1.1; }
.card.gradient { background: linear-gradient(142deg, #3d1f6b 0%, #5e35a8 70%, #7b4bc4 100%); color: #fff; }
.card.gradient .card-detail, .card.gradient .dow { color: #d3bfec; }
.card.gradient .faint { color: #a98bd4; }
.card.ochre-tint { background: var(--ochre-tint); }
.card.warn-edge { box-shadow: inset 3px 0 0 var(--ochre); }
.card.plain { background: var(--paper); }
.pad-row { padding: 14px; }
.scroll.tight { gap: 13px; }

/* who does what */
.who { font-size: 18px; font-weight: 600; color: #fff; }
.who.dark-text { color: var(--ink); }
.who-sub { font-size: 13px; color: #c4a8e8; }
.who-sub.muted { color: var(--ink-2); }

/* activity */
.stat { flex: 1; padding: 15px; }
.stat-n { font-size: 30px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.stat.warn { box-shadow: inset 3px 0 0 var(--ochre); }
.stat.warn .stat-n { color: var(--ochre-ink); }
.stat-l { font-size: 13px; color: var(--ink-2); margin-top: 4px; line-height: 1.35; }
.at { width: 44px; font-size: 12px; font-weight: 700; color: var(--plum); flex-shrink: 0; align-self: flex-start; padding-top: 1px; }
.by { font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 999px; flex-shrink: 0; align-self: flex-start; }
.by.mj { color: var(--plum); background: var(--plum-tint); }
.by.anjali { color: var(--warm-ink); background: #f0e8de; }

/* autonomy */
.switch { width: 48px; height: 28px; border-radius: 14px; background: var(--plum-tint-2); display: flex; align-items: center; padding: 3px; flex-shrink: 0; }
.switch.on { background: var(--plum); justify-content: flex-end; }
.switch span { width: 22px; height: 22px; border-radius: 11px; background: #fff; display: block; }
.cap { font-size: 20px; font-weight: 700; color: var(--plum); }
.slider { height: 6px; border-radius: 3px; background: var(--plum-tint); position: relative; margin: 4px 0 2px; }
.slider-fill { height: 6px; border-radius: 3px; background: var(--plum); }
.slider .knob { position: absolute; top: -7px; width: 20px; height: 20px; border-radius: 10px; background: var(--plum); border: 3px solid #fff; transform: translateX(-10px); }

/* record */
.bar { height: 6px; border-radius: 3px; background: var(--plum-tint); }
.bar-fill { height: 6px; border-radius: 3px; background: var(--plum); }
.sq.sm { width: 34px; height: 34px; }
.sq.lg { width: 48px; height: 48px; border-radius: var(--r-md); }
.balance { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; }
.avatar.muted-av { background: #edeaf3; color: var(--ink-2); font-size: 12px; }
.chip.green-chip { background: #e3f0e9; color: var(--green); }

/* attendance dots */
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots .d { width: 9px; height: 9px; border-radius: 2px; background: var(--green); }
.dots .d.l { background: var(--ochre); }
.dots .d.h { background: #e8c9a8; }
.dots .d.o { background: #d8d2e4; }
.dots .d.f { background: var(--line); }

/* Kamla's side — deliberately not our app */
.wa-screen { background: #ece5dd; }
.wa-top { background: #fff; border-bottom: 1px solid #dad3c8; padding: 16px; display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.wa-thread { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; }
.wa-thread::-webkit-scrollbar { width: 0; }
.wa { max-width: 300px; padding: 11px 13px; border-radius: 14px; font-size: 15px; line-height: 1.5; }
.wa.them { align-self: flex-start; background: #fff; border-bottom-left-radius: 4px; }
.wa.me { align-self: flex-end; background: #d9f2c9; border-bottom-right-radius: 4px; }
.wa .at { width: auto; font-size: 11px; color: #8b8378; text-align: right; margin-top: 4px; font-weight: 400; padding: 0; }
.wa.me .at { color: #6e8b5e; }
.wa-actions { align-self: flex-start; display: flex; gap: 8px; }
.wa-btn { font-size: 14px; font-weight: 500; color: var(--ink-2); background: #fff; border: 1px solid #dad3c8; padding: 10px 16px; border-radius: 999px; }
.wa-btn.yes { color: var(--green); border-color: #bfd9cb; font-weight: 600; }
.wa-card { align-self: flex-start; max-width: 300px; background: #fff; border-radius: 14px; padding: 13px; border-left: 3px solid var(--plum); }
.wa-card .rule { background: #f0ece4; }
.wa-composer { background: #fff; border-top: 1px solid #dad3c8; padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.wa-composer .fake-input { border: 1px solid #dad3c8; border-radius: 999px; padding: 11px 15px; font-size: 15px; color: #8b8378; }
.green-round { background: var(--green); }
.daymark { align-self: center; font-size: 11px; font-weight: 600; color: #6e675e; background: #ddd6ca; padding: 5px 12px; border-radius: 999px; }

/* coach overlay + module sheet */
.scrim { position: absolute; inset: 0; background: rgba(21, 14, 32, 0.74); z-index: 2; }
.scrim.light { background: rgba(21, 14, 32, 0.6); }
.coach {
  position: absolute; left: 20px; right: 20px; bottom: calc(var(--bar) + 26px); z-index: 4;
  background: #fff; border-radius: var(--r-lg); padding: 20px;
}
.coach-title { font-size: 18px; font-weight: 600; line-height: 1.35; margin: 11px 0 8px; letter-spacing: -0.01em; }
.coach-arrow {
  position: absolute; left: 50%; bottom: calc(var(--bar) + 15px); transform: translateX(-50%); z-index: 4;
  width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 11px solid #fff;
}
.sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 4;
  background: #fff; border-radius: 26px 26px 0 0;
  padding: 10px 22px calc(30px + env(safe-area-inset-bottom));
  animation: slide 0.24s ease-out;
}
.grabber { width: 38px; height: 4px; border-radius: 2px; background: var(--line); margin: 0 auto 20px; }
.sheet-title { font-size: 20px; font-weight: 600; margin-top: 3px; letter-spacing: -0.01em; }
@keyframes slide { from { transform: translateY(100%); } }

/* dark screens inherit light-theme link and muted colours — override them */
.screen.dark .wordmark { color: #fff; }
.screen.dark a:not(.btn) { color: #c4a8e8; }
.screen.dark a:not(.btn):hover { color: #fff; }
.screen.dark .faint { color: #a98bd4; }

.orb + .display { margin-top: 22px; }

/* ---------- before you're in: the public site ----------
 * The one long-scrolling page in the app. Everything else is a fixed
 * viewport; this one is a document, so it gets its own scroll container.
 */

.page {
  flex-grow: 1; overflow-y: auto; -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; scroll-behavior: smooth;
}
.page > * { flex-shrink: 0; }
.page::-webkit-scrollbar { width: 0; }

.mk-nav { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 0; }
.mk-signin { font-size: 14px; font-weight: 600; color: var(--ink-2); }

.mk-hero { padding: 44px 20px 0; }
.mk-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--plum-tint); border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; color: #3b2a52;
}
.mk-pill .dot { width: 6px; height: 6px; border-radius: 3px; background: var(--green); flex-shrink: 0; }
.mk-h1 {
  font-size: 38px; line-height: 1.08; font-weight: 600;
  letter-spacing: -0.03em; margin: 18px 0 0;
}
.mk-lede { font-size: 17px; line-height: 1.5; color: #4a4256; margin: 16px 0 0; }
.mk-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; }

.mk-sec { padding: 54px 20px 0; }
.mk-h2 { font-size: 26px; line-height: 1.2; font-weight: 600; letter-spacing: -0.02em; margin: 10px 0 0; }
.mk-body { font-size: 16px; line-height: 1.55; color: #4a4256; margin: 14px 0 0; }
.mk-name { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* the cropped product shot — the argument, not decoration */
.mk-shot { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 14px; margin-top: 18px; }
.mk-shot-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 2px 12px; }
.mk-shot .decide { margin: 0; }

.mk-quote {
  background: var(--card); border-left: 3px solid var(--plum);
  border-radius: 0 16px 16px 0; padding: 18px; margin: 20px 0 0;
}
.mk-quote p {
  font-family: 'Instrument Serif', Georgia, serif; font-style: italic;
  font-size: 18px; line-height: 1.5; margin: 0; color: var(--ink);
}
.mk-quote cite { display: block; font-size: 13px; font-style: normal; color: var(--ink-3); margin-top: 12px; }

.mk-price {
  background: linear-gradient(142deg, #3d1f6b 0%, #5e35a8 100%);
  border-radius: 20px; padding: 22px; color: #fff;
}
.mk-price .rule { height: 1px; background: #6b4a9e; margin: 16px 0; }
.mk-price .ticks li { color: #fff; }
.mk-amount { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.mk-hold {
  background: rgba(255, 255, 255, 0.1); border-radius: 11px;
  padding: 11px 13px; margin-top: 16px; font-size: 13px; line-height: 1.45; color: #e6daf5;
}
.mk-close { padding-bottom: 36px; margin-top: auto; }
.mk-rank { font-size: 76px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.mk-link {
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(0, 0, 0, 0.22); border-radius: 11px; padding: 12px 14px; font-size: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.04em; color: #e6daf5;
}
.strong-light { font-weight: 600; color: #fff; font-family: 'Hanken Grotesk', system-ui, sans-serif; }

/* code entry, shared by the invite code and the OTP */
.boxes { display: flex; gap: 8px; }
.box {
  flex: 1; height: 58px; background: var(--card); border: 1px solid var(--line);
  border-radius: 13px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 600; color: var(--ink);
}
.boxes.tall .box { height: 62px; border-radius: 14px; font-size: 26px; }
.box.on { border: 2px solid var(--plum); }
.box.here { border-color: var(--plum); }
.caret { width: 2px; height: 26px; background: var(--plum); display: inline-block; }

/* plain text fields, for screens that only show state */
.field {
  background: var(--card); border: 1px solid var(--line); border-radius: 13px;
  padding: 14px; font-size: 15px; display: flex; align-items: center; gap: 6px;
}
.field.flat { flex: 0 0 auto; font-size: 17px; font-weight: 500; color: var(--ink-2); padding: 17px 15px; }
.field.live { border: 2px solid var(--plum); font-size: 17px; padding: 16px 15px; }

.avatar.lg { width: 64px; height: 64px; border-radius: 32px; font-size: 25px; }
.avatar.green { background: #d9e8df; color: var(--green); }
.sq.ghost { background: rgba(255, 255, 255, 0.14); }
.round.sm-round { width: 38px; height: 38px; background: var(--plum-tint); color: var(--plum); font-size: 15px; font-weight: 700; }
.btn.quiet { background: none; color: var(--ink-2); font-weight: 500; font-size: 15px; padding: 6px; }
.row.between { justify-content: space-between; }
.card-title.light { color: #fff; }
.page-title.lg { font-size: 30px; letter-spacing: -0.025em; }
