/* Bodimet — stacked story panels, giant pills, moss on cream */
:root {
  --moss: #5B913B;
  --sprout: #77B254;
  --cream: #FFE8B6;
  --clay: #D99D81;
  --ink: #26401A;
  --deep: #1F3314;
  --paper: #FFF4DC;
  --clay-ink: #6B4231;
  --pill: 40px;
  --head: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", system-ui, -apple-system, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 500;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
}
a { color: var(--deep); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, .pill:focus-visible, .rail a:focus-visible { outline: 3px solid var(--deep); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--head); font-weight: 900; line-height: 1.1; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 11vw, 4.6rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.8rem, 7vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 14px; border-radius: var(--pill); z-index: 10; }

/* Vertical rail, like the app's segment indicator */
.rail {
  position: fixed; top: 18px; right: 8px; z-index: 5;
  display: flex; flex-direction: column; gap: 6px;
  list-style: none; margin: 0; padding: 0;
}
.rail a {
  display: block; width: 26px; height: 34px; position: relative;
}
.rail a::before {
  content: ""; position: absolute; left: 10px; top: 2px; width: 6px; height: 30px;
  border-radius: 3px; background: rgba(217, 157, 129, .7);
}
.rail a[aria-current="true"]::before, .rail a:hover::before { background: var(--deep); }
.rail span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Story panels */
.panel {
  min-height: 100vh;
  padding: 72px 48px 40px 22px;
  display: flex; flex-direction: column; justify-content: center;
}
.panel > .inner { max-width: 640px; width: 100%; margin: 0 auto; }
.panel.p-height { background: #E6F0D9; }
.panel.p-bmi { background: #F3DCCF; }
.panel.p-log { background: var(--cream); }
.panel.p-reach { background: #DDE8D3; }
.kicker {
  font-family: var(--head); font-weight: 900; font-size: .85rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--clay-ink); margin: 0 0 .6em;
}
.lede { font-size: 1.15rem; }
.next {
  align-self: center; margin-top: 28px;
  font-family: var(--head); font-weight: 900; font-size: .9rem; text-decoration: none;
  background: rgba(119, 178, 84, .3); padding: 8px 18px; border-radius: var(--pill);
}

.card {
  background: var(--paper); border-radius: var(--pill);
  padding: 22px 24px; margin: 14px 0;
}
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding-left: 52px; margin: 0 0 14px; }
.steps li::before {
  content: counter(s); position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--deep); color: var(--cream);
  font-family: var(--head); font-weight: 900; display: grid; place-items: center;
}
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 58px; padding: 0 28px; border-radius: var(--pill);
  background: var(--deep); color: var(--cream); text-decoration: none;
  font-family: var(--head); font-weight: 900; font-size: 1.05rem;
}
.pill.soft { background: rgba(119, 178, 84, .32); color: var(--ink); }
.gauge { display: flex; gap: 4px; margin: 18px 0 6px; }
.gauge i { height: 16px; border-radius: 8px; border: 1px solid rgba(91, 145, 59, .35); }
.gauge i:nth-child(1) { flex: 4.5; background: var(--cream); }
.gauge i:nth-child(2) { flex: 6.5; background: var(--sprout); }
.gauge i:nth-child(3) { flex: 5; background: var(--clay); }
.gauge i:nth-child(4) { flex: 10; background: rgba(217, 157, 129, .6); }

details { background: var(--paper); border-radius: 28px; margin: 10px 0; padding: 4px 22px; }
summary { cursor: pointer; font-family: var(--head); font-weight: 900; padding: 14px 0; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: " ↓"; color: var(--moss); }
details[open] summary::after { content: " ↑"; }
details p { margin: 0 0 16px; }

.hero-art { width: 180px; height: 180px; margin: 0 0 18px; }
footer { padding: 28px 48px 40px 22px; font-size: .9rem; }
footer .inner { max-width: 640px; margin: 0 auto; }

/* Privacy page: a weigh-in ticket */
.ticket {
  max-width: 680px; margin: 0 auto; padding: 64px 40px 48px 18px;
}
.ticket header { margin-bottom: 18px; }
.stub {
  display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; list-style: none;
}
.stub li { background: var(--paper); border-radius: var(--pill); padding: 6px 16px; font-size: .92rem; }
.entry {
  background: var(--paper); border-radius: var(--pill); padding: 22px 26px; margin: 16px 0;
  border-left: 10px solid var(--sprout);
}
.entry.warm { border-left-color: var(--clay); }
.entry h2 { font-size: 1.45rem; }
.entry .tag { font-family: var(--head); font-weight: 900; color: var(--clay-ink); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.yes-no { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.yes-no th, .yes-no td { text-align: left; padding: 8px 12px; vertical-align: top; }
.yes-no th { font-family: var(--head); font-weight: 900; }
.yes-no tr td:first-child { border-radius: 20px 0 0 20px; background: rgba(119, 178, 84, .22); }
.yes-no tr td:last-child { border-radius: 0 20px 20px 0; background: rgba(119, 178, 84, .22); }

@media (min-width: 760px) {
  .panel { padding: 90px 80px 50px 40px; }
  .rail { right: 18px; top: 28px; }
}
