/* ═══════════════════════════════════════════════════════════════
   Everbloom Demo — Styles (Editorial Warm)
   ═══════════════════════════════════════════════════════════════ */

:root {
  --cream:      #faf7f2;
  --paper:      #f5f0e8;
  --paper-2:    #eee8dd;
  --ink:        #1a1714;
  --ink-2:      #4a443d;
  --ink-3:      #8a8278;
  --ink-4:      #b5ada3;
  --terra:      #c06238;
  --terra-deep: #a04e28;
  --terra-soft: rgba(192, 98, 56, 0.10);
  --sage:       #6b8f71;
  --sage-soft:  rgba(107, 143, 113, 0.12);
  --line:       #ddd6cb;
  --line-2:     #cfc7bb;
  --soft-shadow: 0 2px 12px rgba(40, 30, 16, 0.06);
}

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

html { background: #e8e4de; }

body {
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  font-family: "Geist", sans-serif;
  color: var(--ink);
}

/* ── iPhone frame ── */
.phone-frame {
  width: 393px;
  height: 852px;
  background: var(--cream);
  border-radius: 48px;
  border: 6px solid #1a1714;
  box-shadow:
    0 0 0 2px #3a3530,
    0 24px 80px -12px rgba(30, 24, 16, 0.35),
    inset 0 0 0 1px rgba(255,255,255,0.08);
  position: relative;
  overflow: hidden;
}

/* notch */
.phone-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 126px;
  height: 34px;
  background: #1a1714;
  border-radius: 0 0 20px 20px;
  z-index: 100;
}

/* home indicator */
.phone-frame::after {
  content: "";
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 134px;
  height: 5px;
  background: rgba(26, 23, 20, 0.25);
  border-radius: 3px;
  z-index: 100;
}

#app {
  width: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 48px 20px 28px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
#app::-webkit-scrollbar { display: none; }

/* ── responsive: shrink frame on small viewports ── */
@media (max-height: 920px) {
  .phone-frame {
    height: min(852px, calc(100dvh - 40px));
  }
}
@media (max-width: 440px) {
  body { padding: 0; }
  .phone-frame {
    width: 100%;
    height: 100dvh;
    border-radius: 0;
    border: none;
    box-shadow: none;
  }
  .phone-frame::before,
  .phone-frame::after { display: none; }
}

/* ── screen transitions ── */
.screen {
  animation: screenIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
@keyframes screenIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── typography ── */
.serif {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 48;
}
.serif em {
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
}
.mono {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-3);
}

/* ── shared components ── */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
}
.topbar .brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-logo {
  width: auto;
  height: 32px;
  flex-shrink: 0;
  object-fit: contain;
  transform: translateY(1px);
  margin-right: -5px;
}
.topbar .day-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}
.topbar-reset {
  background: none;
  border: none;
  padding: 4px 6px;
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-4, var(--ink-3));
  opacity: 0.55;
  transition: opacity 0.15s, color 0.15s;
}
.topbar-reset:hover {
  opacity: 1;
  color: var(--terra);
}
.welcome-logo {
  display: block;
  width: auto;
  height: 58px;
  object-fit: contain;
  margin: 0 auto 8px;
}

h1 {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  font-variation-settings: "SOFT" 100, "WONK" 0, "opsz" 72;
}
h1 em {
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 72;
}

h2 {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 48;
}
h2 em {
  font-style: italic;
  color: var(--terra);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 48;
}

.sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 38ch;
}

.eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}

/* ── buttons ── */
.btn {
  display: block;
  width: 100%;
  padding: 16px;
  border-radius: 999px;
  border: none;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}
.btn:active { transform: scale(0.97); }
.btn:disabled {
  cursor: not-allowed;
  opacity: 0.48;
  box-shadow: none;
  transform: none;
}
.btn:disabled:hover {
  background: var(--terra);
  transform: none;
}

.btn-primary {
  background: var(--terra);
  color: var(--cream);
  border: 1px solid var(--terra-deep);
  box-shadow: 0 12px 28px -10px rgba(192, 98, 56, 0.45), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-primary:hover { background: var(--terra-deep); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--ink-3);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: var(--paper); color: var(--ink-2); }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
  flex-shrink: 0;
}

.inline-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink-3);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  text-align: center;
}

.icon-btn {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--cream);
  color: var(--ink-2);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  padding: 18px 18px 24px;
  background: rgba(26, 23, 20, 0.62);
  overscroll-behavior: contain;
}

.modal-panel {
  width: 100%;
  max-height: calc(100% - 42px);
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 24px 70px rgba(30, 24, 16, 0.28);
  overscroll-behavior: contain;
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.modal-copy {
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-3);
  margin: -4px 0 14px;
}
.refusal-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.refusal-choice {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  color: var(--ink);
  padding: 14px 16px;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.15s;
}
.refusal-choice:hover {
  border-color: var(--terra);
  background: var(--terra-soft);
  transform: translateY(-1px);
}
.refusal-choice span {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.upload-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 14px;
  border: 1.5px dashed var(--line-2);
  border-radius: 14px;
  background: var(--paper);
  text-align: center;
  cursor: pointer;
}

.upload-box input { display: none; }

.upload-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1px solid rgba(107,143,113,0.28);
  color: var(--sage);
  font-size: 22px;
}

.upload-title {
  font-size: 14px;
  color: var(--ink);
}

.upload-copy {
  max-width: 28ch;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.detected-panel {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,0.42);
  transition: opacity 0.2s ease;
}

.detected-panel.is-muted { opacity: 0.72; }

.object-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.object-check {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink-2);
  font-size: 14px;
}

.object-check input {
  width: 16px;
  height: 16px;
  accent-color: var(--terra);
}

.modal-actions {
  position: sticky;
  bottom: 0;
  margin-top: 16px;
  padding-top: 12px;
  padding-bottom: 2px;
  background: var(--cream);
}

/* ── chips ── */
.chip {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  color: var(--ink-3);
  background: var(--cream);
}
.chip.terra { background: var(--terra-soft); color: var(--terra); border-color: rgba(192,98,56,0.2); }
.chip.sage  { background: var(--sage-soft);  color: var(--sage);  border-color: rgba(107,143,113,0.2); }

/* material chips with a substitution: tap to reveal the swap */
.chip-swap {
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.chip-swap:hover { border-color: var(--ink-4); }
.chip-swap.active {
  border-color: var(--terra);
  background: var(--terra-soft);
  color: var(--terra);
}
.swap-mark {
  margin-left: 6px;
  font-size: 10px;
  color: var(--ink-4);
  letter-spacing: 0;
}
.chip-swap.active .swap-mark { color: var(--terra); }
.material-sub {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--ink-4);
  transition: color 0.15s;
}
.material-sub.has-swap { color: var(--ink-2); }
.material-sub em {
  font-family: "Fraunces", serif;
  font-style: italic;
  color: var(--terra);
}

/* ── card ── */
.card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 24px;
  box-shadow: var(--soft-shadow);
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--line-2);
  border-radius: 12px;
  pointer-events: none;
  opacity: 0.6;
}
.card.phase-during {
  background: linear-gradient(180deg, var(--cream), #f8f2e8);
  border-color: rgba(192, 98, 56, 0.35);
  box-shadow: inset 0 0 0 1px rgba(192, 98, 56, 0.08), var(--soft-shadow);
}
.card.phase-during::before {
  border-style: solid;
  border-color: rgba(192, 98, 56, 0.22);
  opacity: 0.8;
}

/* ── form fields ── */
.field { margin-bottom: 18px; }
.field label {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  font-family: "Geist", sans-serif;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--terra);
  box-shadow: 0 0 0 4px rgba(192, 98, 56, 0.12);
}
.field input::placeholder, .field textarea::placeholder { color: var(--ink-4); }
.field textarea { resize: none; min-height: 80px; }
.field-error {
  min-height: 18px;
  padding-top: 6px;
  color: var(--terra-deep);
  font-size: 12px;
}

/* ── taps (reflection) ── */
.tap-group { margin-bottom: 22px; }
.tap-group-label {
  display: flex;
  justify-content: space-between;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 10px;
}
.taps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.tap {
  width: 100%;
  font-family: inherit;
  padding: 14px 8px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--cream);
  text-align: center;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tap:hover { border-color: var(--ink-4); }
.tap.selected {
  border-color: var(--terra);
  background: var(--terra-soft);
  color: var(--terra);
  font-weight: 500;
}
.tap .glyph {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 1.5px solid currentColor;
  margin: 0 auto 8px;
  transition: all 0.2s ease;
}
.tap.selected .glyph {
  background: var(--terra);
  border-color: var(--terra);
}

/* ── activity card specifics ── */
.activity-header {
  margin-bottom: 16px;
}
.activity-title {
  font-family: "Fraunces", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 8px 0;
  font-variation-settings: "SOFT" 80, "WONK" 0, "opsz" 36;
}
.activity-title--during {
  font-size: 18px;
  margin: 2px 0 0;
}
.phase-during .section-label {
  margin: 14px 0 6px;
}
.phase-during .card-list {
  line-height: 1.45;
}
.phase-during .card-list li {
  margin-bottom: 4px;
}
.phase-during .principle-line {
  margin-top: 16px;
  padding-top: 10px;
  font-size: 12px;
}
.activity-hook {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.45;
  color: var(--ink-2);
  margin: 6px 0 14px;
  letter-spacing: -0.005em;
}
.phase-eyebrow {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 2px;
}
.activity-meta {
  display: flex;
  gap: 16px;
  font-family: "Geist Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: var(--ink-3);
  margin-top: 6px;
}
.activity-meta span { color: var(--ink-2); }

.section-label {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 20px 0 8px;
}

.materials-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.no-material-note,
.why-card {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 14px;
  color: var(--ink-2);
}
.no-material-note {
  padding: 13px 14px;
  font-size: 14px;
  line-height: 1.45;
  margin: 18px 0 4px;
}
.why-card {
  padding: 12px 14px;
  margin: 16px 0 2px;
  font-size: 13px;
  line-height: 1.45;
}
.why-card span {
  display: block;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 4px;
}

.principle-box {
  margin-top: 20px;
  padding: 16px;
  background: var(--paper);
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-2);
}
.principle-box b { color: var(--ink); font-weight: 500; }

/* ── letter ── */
.letter-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 32px 28px;
  box-shadow: var(--soft-shadow);
  position: relative;
}
.letter-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px dashed var(--line-2);
  border-radius: 2px;
  pointer-events: none;
  opacity: 0.6;
}
.letter-body {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 24;
}
.letter-body p { margin-bottom: 16px; }
/* first open: paragraphs arrive one at a time, like mail being read */
.letter-body p.reveal {
  opacity: 0;
  animation: letterIn 1s ease forwards;
  animation-delay: calc(var(--i, 0) * 0.55s);
}
@keyframes letterIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── grew moment ── */
.grew-dot {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--sage-soft);
  border: 1.5px solid var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(107, 143, 113, 0.3); }
  50% { box-shadow: 0 0 0 12px rgba(107, 143, 113, 0); }
}
/* Grew screen: celebratory content centers in the space above the buttons.
   .grew-content uses auto block margins so it centers when short and collapses
   to a normal scroll (no clipped top) when the rich variant overflows. */
.grew-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  display: flex;
  flex-direction: column;
}
.grew-body::-webkit-scrollbar { display: none; }
.grew-content {
  margin: auto 0;
  width: 100%;
  text-align: center;
  padding: 12px 0;
}
.screen--grew .btn-row { margin-top: 0; }

.grew-dot svg { color: var(--sage); }
/* the sprout draws itself in */
.grew-dot svg path {
  stroke-dasharray: 90;
  stroke-dashoffset: 90;
  animation: sproutDraw 1.1s ease 0.15s forwards;
}
@keyframes sproutDraw {
  to { stroke-dashoffset: 0; }
}

.grew-line {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  text-align: center;
  color: var(--ink);
  max-width: 28ch;
  margin: 0 auto 24px;
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
}
.arc-added {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 18px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-family: "Fraunces", serif;
  font-size: 15px;
  color: var(--ink);
}
.arc-added span {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage);
}

/* the parent's own words, echoed back */
.note-echo {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 30ch;
  margin: 14px auto 0;
  text-align: center;
}
.note-echo em {
  font-style: italic;
  color: var(--ink-2);
}

/* keep-this-one → rhythms */
.rhythm-keep {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border: 1.5px dashed var(--terra);
  border-radius: 999px;
  background: transparent;
  color: var(--terra);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s, border-style 0.2s, transform 0.2s;
}
.rhythm-keep:hover { background: var(--terra-soft); }
.rhythm-keep:active { transform: scale(0.96); }
.rhythm-kept {
  display: inline-block;
  margin-top: 14px;
  padding: 11px 18px;
  border: 1.5px solid rgba(192, 98, 56, 0.35);
  border-radius: 999px;
  background: var(--terra-soft);
  color: var(--terra);
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  animation: keptIn 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes keptIn {
  from { opacity: 0; transform: scale(0.9); }
  to   { opacity: 1; transform: scale(1); }
}

/* tomorrow teaser on grew / day-complete */
.tomorrow-tease {
  margin: 20px auto 0;
  padding: 14px 16px;
  max-width: 34ch;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-2);
  text-align: center;
}
.tomorrow-tease span {
  display: block;
  font-family: "Geist Mono", monospace;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-bottom: 5px;
}

/* ── meet summary ── */
.meet-card {
  background: var(--paper);
  border-radius: 18px;
  padding: 32px 24px;
  margin-top: 24px;
}
.meet-prose {
  font-family: "Fraunces", serif;
  font-weight: 300;
  font-style: italic;
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink);
  font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 36;
}

/* ── nav dots ── */
.nav-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.nav-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line-2);
  cursor: pointer;
  transition: all 0.2s;
}
.nav-dot.active { background: var(--terra); width: 20px; border-radius: 3px; }

/* ── bottom nav ── */
.bottom-nav {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  margin-top: auto;
  flex-shrink: 0;
}
.nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--ink-4);
  transition: color 0.2s;
  background: none;
  border: none;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.nav-tab.active { color: var(--terra); }
.nav-tab.locked { opacity: 0.4; }
.nav-tab svg { width: 20px; height: 20px; }

/* ── history list ── */
.history-item {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  transition: opacity 0.2s;
}
.history-item:hover { opacity: 0.7; }
.history-item .title {
  font-family: "Fraunces", serif;
  font-size: 17px;
  font-weight: 400;
  color: var(--ink);
}
.history-item .meta {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 4px;
}
.history-item .reflection-chips {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}

/* ── activity card prose & lists ── */
.card-prose {
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0;
}
.card-prose--invitation {
  color: var(--ink);
}
.invitation-say {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 16px;
  letter-spacing: -0.004em;
}
.invitation-then {
  color: var(--ink-2);
}
.card-prose--muted {
  color: var(--ink-3);
  font-size: 13px;
}
.card-list {
  margin: 0;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.card-list li {
  margin-bottom: 6px;
}
.card-list--sideways li b {
  color: var(--ink);
  font-weight: 500;
}

.principle-line {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-3);
}
.principle-line em {
  color: var(--ink-2);
  font-family: "Fraunces", serif;
  font-style: italic;
}

.more-fold {
  margin-top: 14px;
}
.more-fold > summary {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  cursor: pointer;
  list-style: none;
}
.more-fold > summary::-webkit-details-marker { display: none; }
.more-row {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-2);
  margin: 10px 0 0;
}
.more-tag {
  display: inline-block;
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
  margin-right: 6px;
}
.more-source {
  color: var(--ink-3);
  font-style: italic;
  margin-top: 12px;
}

.other-options {
  width: 100%;
}
.other-options > summary {
  list-style: none;
  cursor: pointer;
  text-align: center;
  padding: 8px 0;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: color 0.15s;
}
.other-options > summary::-webkit-details-marker { display: none; }
.other-options > summary:hover { color: var(--ink-2); }
.other-options[open] > summary { color: var(--ink-2); }
.other-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

/* ── Today layout: pinned material control + scrolling card + sticky foot ── */
.seg {
  display: flex;
  gap: 4px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 8px;
  flex-shrink: 0;
}
.seg-btn {
  flex: 1;
  padding: 9px 4px;
  border: none;
  background: none;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  transition: background 0.18s, color 0.18s, box-shadow 0.18s;
}
.seg-btn:hover { color: var(--ink-2); }
.seg-btn.active {
  background: var(--cream);
  color: var(--terra);
  box-shadow: 0 1px 5px rgba(40, 30, 16, 0.12);
}
.seg-hint {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-3);
  text-align: center;
  margin: 0 0 12px;
  min-height: 1.4em;
  flex-shrink: 0;
}
.today-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 2px 2px 18px;
  margin: 0 -2px;
  scroll-padding-bottom: 18px;
}
.today-scroll::-webkit-scrollbar { display: none; }
.today-foot {
  flex-shrink: 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 2;
}
.foot-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 0 4px;
}
.today-foot .bottom-nav {
  margin-top: 0;
  border-top: none;
}
.btn-text {
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-3);
  padding: 6px;
  transition: color 0.15s;
}
.btn-text:hover { color: var(--terra); }

.today-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100%;
  padding: 20px 0;
}
.today-done .eyebrow { margin-bottom: 16px; }
.today-done-meta {
  font-size: 13px;
  color: var(--ink-3);
  margin: -8px 0 12px;
}

/* ── Reflection: scrolling choices + persistent completion action ── */
.reflect-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: none;
  padding: 0 2px 18px;
  margin: 0 -2px;
  scroll-padding-bottom: 18px;
}
.reflect-scroll::-webkit-scrollbar { display: none; }
.reflect-intro { margin-bottom: 24px; }
.reflect-activity {
  font-family: "Fraunces", serif;
  font-style: italic;
  font-weight: 300;
  font-size: 15px;
  color: var(--ink-3);
  margin: -2px 0 10px;
}
.reflection-foot {
  flex-shrink: 0;
  padding-top: 14px;
  background: var(--cream);
  border-top: 1px solid var(--line);
}

/* ── Arc: child-model card + skill ladders ── */
.model-card {
  margin-top: 18px;
  padding: 20px 18px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  position: relative;
}
.model-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px dashed var(--line-2);
  border-radius: 11px;
  pointer-events: none;
  opacity: 0.55;
}
.model-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.model-count {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
  white-space: nowrap;
}
.model-signals {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
}
.model-signals li {
  display: flex;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-2);
}
.model-dot {
  flex: 0 0 6px;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--sage);
}
.model-foot {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 13px;
  color: var(--ink-3);
}

.ladders {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.ladder-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.ladder-name {
  font-family: "Fraunces", serif;
  font-size: 16px;
  color: var(--ink);
  text-transform: capitalize;
}
.ladder-now {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terra);
}
.ladder-pos {
  font-family: "Geist Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.rungs {
  display: flex;
  gap: 6px;
  align-items: center;
}
.rung {
  flex: 1;
  height: 6px;
  border-radius: 3px;
  background: var(--line-2);
  transition: background 0.2s;
}
.rung.done { background: var(--sage); }
.rung.current {
  background: var(--terra);
  box-shadow: 0 0 0 3px var(--terra-soft);
}
/* filled rungs grow in left-to-right, staggered per rung */
.rung.done, .rung.current {
  transform-origin: left center;
  animation: rungIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--i, 0) * 70ms);
}
@keyframes rungIn {
  from { transform: scaleX(0.15); opacity: 0.3; }
  to   { transform: scaleX(1); opacity: 1; }
}

/* ── rhythms in the Arc ── */
.rhythm-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rhythm-item {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.rhythm-star {
  color: var(--terra);
  font-size: 13px;
  flex: 0 0 auto;
}
.rhythm-title {
  font-family: "Fraunces", serif;
  font-size: 16px;
  color: var(--ink);
}
.rhythm-meta {
  font-family: "Geist Mono", monospace;
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-top: 3px;
}

/* ── toast ── */
.toast {
  position: absolute;
  left: 50%;
  bottom: 40px;
  transform: translate(-50%, 12px);
  z-index: 120;
  max-width: 80%;
  padding: 12px 18px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--cream);
  font-family: "Geist", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  box-shadow: 0 12px 32px -8px rgba(26, 23, 20, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
  pointer-events: none;
}
.toast.in {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ── responsive ── */
@media (max-width: 480px) {
  body { padding: 12px; }
  h1 { font-size: 28px; }
  .card { padding: 22px 18px; }
}

/* ── reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .screen,
  .rung.done, .rung.current,
  .grew-dot,
  .grew-dot svg path,
  .letter-body p.reveal,
  .rhythm-kept {
    animation: none;
  }
  .grew-dot svg path { stroke-dashoffset: 0; }
  .letter-body p.reveal { opacity: 1; }
}
