:root {
  --cream: #faf7f0;
  --paper: #fffdf8;
  --green: #275c48;
  --green-dark: #194637;
  --sage: #dce9dc;
  --sage-strong: #bad1be;
  --honey: #d39a2f;
  --honey-soft: #f4e4bd;
  --ink: #24342c;
  --muted: #63746b;
  --danger: #a23b34;
  --line: #dfe5de;
  --shadow: 0 12px 34px rgba(39, 92, 72, 0.10);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { background: var(--cream); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 90% 0%, rgba(217, 166, 66, .14), transparent 32rem),
    var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.5;
}
button, a { -webkit-tap-highlight-color: transparent; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid #b77c11; outline-offset: 3px; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 99; padding: .75rem 1rem; background: white; color: var(--green); }
.skip-link:focus { top: 1rem; }
.app-shell { width: min(100%, 720px); min-height: 100vh; margin: 0 auto; padding: 0 18px 112px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 22px 0 12px; }
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 14px; background: var(--honey-soft); color: var(--green); }
.brand-mark svg { width: 25px; height: 25px; }
.brand strong { display: block; font-family: Georgia, serif; font-size: 1.02rem; line-height: 1.1; }
.eyebrow { margin: 0 0 3px; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.icon-button { width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.8); color: var(--green); }
.page { animation: rise .32s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(7px); } }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-family: Georgia, serif; font-size: clamp(1.75rem, 8vw, 2.5rem); line-height: 1.08; letter-spacing: -.025em; }
h2 { font-size: 1.23rem; line-height: 1.25; }
h3 { font-size: 1.02rem; }
.lede { color: var(--muted); margin-bottom: 24px; }
.muted { color: var(--muted); }
.small { font-size: .88rem; }
.card { margin: 0 0 16px; padding: 20px; border: 1px solid rgba(39,92,72,.08); border-radius: var(--radius); background: rgba(255,253,248,.94); box-shadow: var(--shadow); }
.card.soft { background: var(--sage); box-shadow: none; }
.hero { position: relative; overflow: hidden; padding: 24px; color: white; background: linear-gradient(145deg, var(--green-dark), var(--green)); }
.hero::after { content: ""; position: absolute; width: 170px; height: 170px; right: -70px; top: -75px; border: 30px solid rgba(255,255,255,.07); border-radius: 50%; }
.hero > * { position: relative; z-index: 1; }
.hero .eyebrow, .hero .muted { color: #dce9dc; }
.hero h2 { margin-bottom: 8px; font-family: Georgia, serif; font-size: 1.65rem; }
.pill { display: inline-flex; align-items: center; min-height: 30px; padding: 4px 10px; border-radius: 999px; background: var(--sage); color: var(--green-dark); font-size: .79rem; font-weight: 800; }
.hero .pill { background: rgba(255,255,255,.15); color: white; }
.progress-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; font-size: .9rem; }
.progress-track { height: 10px; overflow: hidden; border-radius: 99px; background: #e6ebe7; }
.progress-fill { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--honey), #e8c46f); transition: width .35s ease; }
.hero .progress-track { background: rgba(255,255,255,.16); }
.hero .progress-fill { background: #f3c65f; }
.ritual-feature { overflow: hidden; padding: 0; }
.ritual-image { display: block; width: 100%; height: 190px; object-fit: cover; }
.ritual-feature-body { padding: 20px; }
.ritual-feature h2 { margin-bottom: 7px; font-family: Georgia, serif; font-size: 1.45rem; }
.ritual-kicker { color: #76520e; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 18px; border: 0; border-radius: 15px; background: var(--green); color: white; font-weight: 800; text-decoration: none; transition: transform .15s, background .15s; }
.button:active { transform: scale(.98); }
.button.honey { background: var(--honey); color: #2c2517; }
.button.light { background: white; color: var(--green); }
.button.ghost { border: 1px solid var(--line); background: transparent; color: var(--green); }
.button.full { width: 100%; }
.button[disabled] { opacity: .52; cursor: not-allowed; }
.button-row { display: flex; flex-wrap: wrap; gap: 10px; }
.section-title { display: flex; align-items: end; justify-content: space-between; gap: 12px; margin: 24px 2px 12px; }
.section-title h2 { margin: 0; }
.link-button { border: 0; padding: 8px; background: none; color: var(--green); font-weight: 800; }
.task-list { display: grid; gap: 10px; margin: 18px 0; padding: 0; list-style: none; }
.task-list li { display: flex; align-items: center; gap: 12px; }
.task-icon { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.7); color: var(--green); font-weight: 900; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.quick-card { min-height: 112px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; }
.quick-card span { display: block; margin-bottom: 9px; color: var(--green); font-size: 1.3rem; }
.quick-card strong { font-size: .9rem; line-height: 1.2; }
.day-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; }
.day-card { min-height: 112px; padding: 14px 10px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); color: var(--ink); text-align: left; }
.day-card strong, .day-card small { display: block; }
.day-card strong { margin: 7px 0 2px; }
.day-card small { color: var(--muted); font-size: .72rem; }
.day-card.done { border-color: var(--sage-strong); background: var(--sage); }
.day-card.current { border: 2px solid var(--honey); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #a8b2ac; }
.done .status-dot { background: var(--green); }
.current .status-dot { background: var(--honey); }
.block-tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.block-tab { flex: 0 0 auto; min-height: 44px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--muted); font-weight: 750; }
.block-tab.active { border-color: var(--green); background: var(--green); color: white; }
.block-tab.done::before { content: "✓ "; }
.steps { padding-left: 1.25rem; }
.steps li { margin-bottom: 10px; }
.ingredient-list { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; list-style: none; }
.ingredient-list li { padding: 7px 10px; border-radius: 10px; background: var(--honey-soft); font-size: .88rem; }
.note { padding: 13px 14px; border-left: 4px solid var(--honey); border-radius: 8px; background: #fff8e8; font-size: .92rem; }
.honey-hero { position: relative; overflow: hidden; min-height: 250px; margin-bottom: 16px; border-radius: var(--radius); background: #5c4420; box-shadow: var(--shadow); }
.honey-hero img { display: block; width: 100%; height: 270px; object-fit: cover; }
.honey-hero::after { content: ""; position: absolute; inset: 35% 0 0; background: linear-gradient(transparent, rgba(24,31,26,.82)); }
.honey-hero-copy { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; color: white; }
.honey-hero-copy h1 { margin-bottom: 4px; font-size: 1.9rem; }
.honey-hero-copy p { margin: 0; }
.step-progress { display: flex; gap: 7px; margin: 16px 0; }
.step-dot { height: 7px; flex: 1; border-radius: 99px; background: var(--line); }
.step-dot.done, .step-dot.active { background: var(--honey); }
.recipe-step { min-height: 190px; padding: 22px; border-radius: 18px; background: linear-gradient(145deg, #fff8e8, var(--honey-soft)); }
.recipe-step-number { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 14px; border-radius: 50%; background: var(--honey); color: #2c2517; font-weight: 900; }
.safety-list { padding-left: 1.2rem; }
.safety-list li { margin-bottom: 9px; }
.completed-banner { border: 1px solid var(--sage-strong); background: var(--sage); }
.exercise-stage { margin: 16px 0; padding: 18px; border-radius: 18px; background: var(--sage); text-align: center; }
.memory-items { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.memory-item { padding: 12px 16px; border-radius: 14px; background: white; font-size: 1.08rem; font-weight: 850; }
.options { display: grid; gap: 9px; margin-top: 14px; }
.option { min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 14px; background: white; color: var(--ink); text-align: left; }
.option.selected { border-color: var(--green); background: var(--sage); }
.feedback { margin-top: 14px; padding: 12px; border-radius: 12px; background: white; color: var(--green-dark); font-weight: 750; }
.timeline { position: relative; padding: 0; list-style: none; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 32px; }
.timeline li::before { content: ""; position: absolute; left: 3px; top: 6px; width: 12px; height: 12px; border: 3px solid var(--cream); border-radius: 50%; background: var(--green); }
.resource-list { display: grid; gap: 12px; }
.resource { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 74px; padding: 14px; border: 1px solid var(--line); border-radius: 17px; background: var(--paper); color: var(--ink); text-align: left; }
.resource-icon { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sage); }
.resource strong, .resource small { display: block; }
.resource small { margin-top: 3px; color: var(--muted); }
.lock { opacity: .66; }
.faq details { padding: 16px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 12px 0 0; color: var(--muted); }
.bottom-nav { position: fixed; z-index: 20; left: 50%; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr); width: min(100%, 720px); padding: 8px max(5px, env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(5px, env(safe-area-inset-left)); border-top: 1px solid var(--line); background: rgba(255,253,248,.96); backdrop-filter: blur(14px); transform: translateX(-50%); }
.nav-item { min-width: 0; min-height: 58px; padding: 5px 2px; border: 0; border-radius: 13px; background: transparent; color: var(--muted); font-size: clamp(.58rem, 2.7vw, .7rem); font-weight: 750; }
.nav-item span { display: block; margin-bottom: 1px; font-size: 1.22rem; line-height: 1; }
.nav-item.active { background: var(--sage); color: var(--green-dark); }
.nav-item.honey-tab { color: #8a6519; }
.nav-item.honey-tab.active { background: var(--honey-soft); color: #5d430f; }
.toast { position: fixed; z-index: 50; left: 50%; bottom: 92px; max-width: calc(100% - 36px); padding: 12px 16px; border-radius: 12px; background: var(--ink); color: white; opacity: 0; pointer-events: none; transform: translate(-50%, 12px); transition: .25s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty { padding: 30px 18px; text-align: center; }
.plan-switch { width: 100%; min-height: 46px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 13px; background: white; color: var(--ink); }
.modal-backdrop { position: fixed; z-index: 40; inset: 0; display: grid; align-items: end; padding: 16px; background: rgba(20,42,33,.42); }
.modal { width: min(100%, 600px); max-height: 88vh; overflow: auto; margin: 0 auto; padding: 22px; border-radius: 24px; background: var(--paper); box-shadow: 0 30px 80px rgba(0,0,0,.24); }
@media (min-width: 560px) {
  .app-shell { padding-inline: 28px; }
  .day-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
