:root {
  --mist: #EEF2EC;       /* page */
  --paper: #FBFCFA;      /* raised surfaces */
  --ink: #1C2B25;        /* text */
  --ink-soft: #52635B;   /* secondary text */
  --sage: #4A6B5B;       /* brand, figures */
  --moss: #C9D8CC;       /* quiet lines, far limbs */
  --turmeric: #D9A23A;   /* the highlighted body area */
  --focus: #2F6FD6;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --mist: #121A16; --paper: #18231E; --ink: #E7EEE9; --ink-soft: #A3B4AB;
    --sage: #8DB5A2; --moss: #33473D; --turmeric: #E8B85A; --focus: #8AB4FF;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font: 400 17px/1.6 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--sage); text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.12; margin: 0; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: 18px; }
b { font-weight: 600; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* Header */
.top {
  max-width: 1120px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 18px; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 15px; }
.top nav a:hover, .top nav a[aria-current="page"] { color: var(--ink); }

/* Store button: a pill that is muted until the Play Store link exists */
.store {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--sage); color: var(--paper); text-decoration: none;
  font-weight: 600; padding: 14px 22px; border-radius: 999px;
}
.store.small { padding: 9px 16px; font-size: 14px; }
.store.soon { background: transparent; color: var(--sage); box-shadow: inset 0 0 0 1.5px var(--sage); cursor: default; }
.store:not(.soon):hover { filter: brightness(1.08); }

/* Figures (same drawing style as the app) */
.fig, .mark, .body-map { display: block; color: var(--sage); }
.limb { fill: none; stroke: var(--sage); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.limb.far { stroke: var(--moss); }
.head { fill: var(--sage); }
.mat { stroke: var(--moss); stroke-width: 5; stroke-linecap: round; }
.prop { stroke: var(--moss); stroke-width: 3; stroke-linecap: round; }
.mark { width: 34px; height: 34px; }
.mark .mat, .mark .prop { display: none; }

/* Hero */
main { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.hero {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center;
  padding: 56px 0 72px;
}
.lede { font-size: 20px; color: var(--ink-soft); max-width: 30em; margin: 22px 0 30px; }
.cta-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cta-note { color: var(--ink-soft); font-size: 15px; }

.map-wrap {
  background: var(--paper); border-radius: 40px 40px 40px 8px;
  padding: 28px 28px 24px; display: grid; grid-template-columns: 170px 1fr; gap: 8px 24px;
  grid-template-areas: "map tabs" "map panel";
}
.body-map { grid-area: map; width: 170px; height: 221px; align-self: center; overflow: visible; }
.body-map .limb { stroke-width: 6; }
.body-map .zone {
  fill: var(--turmeric); fill-opacity: 0; stroke: var(--turmeric); stroke-opacity: .35; stroke-width: .8;
  stroke-dasharray: 2.5 2; stroke-width: 1; cursor: pointer; transition: fill-opacity .25s ease;
}
.body-map .zone:hover { fill-opacity: .18; }
.body-map .zone.on { fill-opacity: .45; stroke-opacity: 1; stroke-dasharray: none; }
.zone-tabs { grid-area: tabs; display: flex; gap: 6px; align-self: end; }
.zone-tabs button {
  font: inherit; font-weight: 600; font-size: 15px; color: var(--ink-soft);
  background: none; border: 0; padding: 8px 14px; border-radius: 999px; cursor: pointer;
}
.zone-tabs button[aria-selected="true"] { background: var(--turmeric); color: #2A1F08; }
.panel { grid-area: panel; }
.panel-flow { margin: 8px 0 14px; color: var(--ink-soft); font-size: 15px; }
.panel-flow b { display: block; color: var(--ink); font-size: 17px; }
.pose-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pose-list li { display: flex; align-items: center; gap: 12px; }
.pose-list .fig.sm { width: 52px; height: 52px; flex: none; }
.pose-list small { display: block; color: var(--ink-soft); font-size: 13px; }

/* Bands */
.band { padding: 64px 0; border-top: 1px solid var(--moss); }
.section-lede { color: var(--ink-soft); margin: -6px 0 28px; max-width: 36em; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { counter-increment: s; color: var(--ink-soft); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1.5px solid var(--sage); color: var(--sage); font-weight: 600; margin-bottom: 14px;
}
.steps b { color: var(--ink); display: block; font-size: 18px; margin-bottom: 4px; }

.strip { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 16px; }
.strip li { text-align: center; font-size: 14px; color: var(--ink-soft); }
.strip .fig { width: 100%; max-width: 120px; aspect-ratio: 1; margin: 0 auto 6px; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; color: var(--ink-soft); }
.plain b { color: var(--ink); }

/* Text pages */
.doc { max-width: 680px; padding: 48px 0 72px; }
.doc h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 16px; }
.doc h2 { font-size: 1.35rem; font-weight: 600; letter-spacing: 0; margin: 36px 0 8px; }
.doc p, .doc li { color: var(--ink-soft); }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc .lede { margin-top: 0; }
.updated { font-size: 15px; }

/* Footer */
.foot { border-top: 1px solid var(--moss); }
.foot-inner { max-width: 1120px; margin: 0 auto; padding: 28px 24px 40px; font-size: 14px; color: var(--ink-soft); }
.foot .note { max-width: 46em; margin: 0 0 14px; }
.foot .links { display: flex; flex-wrap: wrap; gap: 18px; margin: 0 0 8px; }
.foot .copy { margin: 0; }

/* Small screens */
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 28px; gap: 32px; }
  .steps, .two-col { grid-template-columns: 1fr; gap: 28px; }
  .strip { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 560px) {
  .top { flex-wrap: wrap; gap: 10px 18px; padding: 14px 16px; }
  .top nav { order: 3; width: 100%; margin-left: 0; }
  .top .store.small { margin-left: auto; }
  main, .foot-inner { padding-left: 16px; padding-right: 16px; }
  .map-wrap { grid-template-columns: 110px 1fr; padding: 20px 16px; border-radius: 28px 28px 28px 8px; }
  .body-map { width: 110px; height: 143px; }
  .zone-tabs button { padding: 7px 10px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .lede { font-size: 18px; }
}

/* One orchestrated moment: on load, the three areas light up in turn, then "Back" stays selected. */
@media (prefers-reduced-motion: no-preference) {
  .body-map.intro .zone { animation: glow 2.4s ease both; }
  .body-map.intro .zone[data-zone="neck"] { animation-delay: .3s; }
  .body-map.intro .zone[data-zone="back"] { animation-delay: .9s; }
  .body-map.intro .zone[data-zone="hips"] { animation-delay: 1.5s; }
}
@keyframes glow {
  0% { fill-opacity: 0; } 25% { fill-opacity: .5; } 60%, 100% { fill-opacity: 0; }
}
