/* YOURS - editorial athletic design system.
   Display: Anton (condensed). Accent: Instrument Serif italic. Captions: DM Mono. Body: Inter. Wordmark: Archivo Expanded Black. */

:root {
  --bg: #F9F7F4;
  --surface: #FFFFFF;
  --surface-2: #EFEAE3;
  --text: #2F3720;
  --muted: #666153;
  --line: #E4DDD3;
  --accent: #D4845C;
  --accent-soft: #F3E2D6;
  --accent-text: #1E2412;
  --accent-ink: #9C5230; /* peach for text: readable on cream and white (WCAG AA) */
  --green: #2F3720;
  --green-soft: #E6E8DA;
  --lime: #D8E0A2;
  --danger: #B3472F;
  --menstrual: #A65A43;
  --follicular: #7A8A4E;
  --ovulation: #D4845C;
  --luteal: #9A8466;
  --radius: 24px;
  --nav-h: 92px;
  --display: 'Anton', 'Oswald', 'Impact', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #12130E; --surface: #1B1D16; --surface-2: #24271D; --text: #EEEAE2; --muted: #A39E90;
    --line: #2E3127; --accent: #E0956E; --accent-soft: #3A2A20; --accent-text: #1A1A14; --accent-ink: #E0956E; --green: #EEEAE2; --green-soft: #283020;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #12130E; --surface: #1B1D16; --surface-2: #24271D; --text: #EEEAE2; --muted: #A39E90;
  --line: #2E3127; --accent: #E0956E; --accent-soft: #3A2A20; --accent-text: #1A1A14; --accent-ink: #E0956E; --green: #EEEAE2; --green-soft: #283020;
  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
/* Whole-app film grain. */
body::after { content: ''; position: fixed; inset: 0; background-image: var(--grain); opacity: 0.07; pointer-events: none; z-index: 100; mix-blend-mode: multiply; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }
svg { flex-shrink: 0; }

.app { max-width: 480px; margin: 0 auto; min-height: 100vh; position: relative; }
.screen { padding: 22px 16px calc(var(--nav-h) + 28px); }
.screen.no-nav { padding-bottom: 32px; }

/* ---------- type ---------- */
.wordmark { font-family: 'Archivo', var(--sans); font-weight: 900; font-stretch: 125%; letter-spacing: -0.045em; line-height: 0.85; color: var(--green); }
.wordmark.xl { font-size: 96px; }
.wordmark.sm { font-size: 24px; }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 0.86; }
.serif { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.mono, .eyebrow, .tagline { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 500; }
.eyebrow { color: var(--muted); }
.tagline { color: var(--muted); letter-spacing: 0.34em; }
h1 { font-family: var(--serif); font-weight: 400; font-size: 36px; line-height: 1.02; letter-spacing: -0.02em; }
h2 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: 16px; font-weight: 600; }
.masthead { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 56px; line-height: 0.85; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }
.tiny { font-size: 11.5px; }
.center { text-align: center; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 34px 0 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.section-title > .link, .section-title > .small, .section-title > span:not(.tag) { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card.flat { background: transparent; }
.card.soft { background: var(--surface-2); border-color: transparent; }
.card.accent { background: var(--accent-soft); border-color: transparent; }
.card + .card { margin-top: 12px; }
.divider { height: 1px; background: var(--line); margin: 14px 0; }

/* ---------- motion art (stand-in for campaign photography) ---------- */
.art { position: absolute; inset: -12%; z-index: 0; filter: blur(24px) saturate(1.05); transform: rotate(-4deg); }
.art::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(98deg, rgba(255, 255, 255, 0.10) 0 3px, transparent 3px 22px); filter: blur(3px); transform: skewX(-18deg); }
.art::after { content: ''; position: absolute; left: 18%; top: 22%; width: 70%; height: 46%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 244, 228, 0.5), transparent); transform: rotate(-24deg) scaleX(1.6); }
.art-menstrual { background: radial-gradient(45% 55% at 25% 30%, #C9765A, transparent 70%), radial-gradient(50% 60% at 80% 75%, #3A2620, transparent 70%), linear-gradient(160deg, #6E3A2C, #2A1C17); }
.art-follicular { background: radial-gradient(45% 50% at 30% 28%, #D3DC94, transparent 70%), radial-gradient(55% 60% at 78% 72%, #4E5A30, transparent 70%), linear-gradient(160deg, #6F7D45, #2C331D); }
.art-ovulation { background: radial-gradient(45% 55% at 70% 25%, #FFD6A8, transparent 70%), radial-gradient(55% 60% at 25% 75%, #C2602E, transparent 70%), linear-gradient(160deg, #E89A5F, #8E4524); }
.art-luteal { background: radial-gradient(45% 55% at 30% 30%, #CDB89A, transparent 70%), radial-gradient(55% 60% at 75% 75%, #4A3A2E, transparent 70%), linear-gradient(160deg, #9A8466, #3E3127); }
.art-steady { background: radial-gradient(45% 55% at 30% 25%, #EDE6DA, transparent 70%), radial-gradient(55% 60% at 78% 78%, #7E7264, transparent 70%), linear-gradient(160deg, #B9AD9C, #5C5145); }
.art-session { background: radial-gradient(40% 50% at 72% 30%, #6A7A48, transparent 70%), radial-gradient(55% 60% at 22% 80%, #15170F, transparent 70%), linear-gradient(160deg, #2F3720, #121409); }
.art-welcome { background: radial-gradient(40% 45% at 68% 30%, #F2DCC2, transparent 70%), radial-gradient(55% 60% at 25% 78%, #6B5646, transparent 70%), radial-gradient(35% 40% at 30% 30%, #D4845C, transparent 70%), linear-gradient(165deg, #B8A48F, #4A3A2E); }

/* ---------- posters ---------- */
.poster { position: relative; overflow: hidden; isolation: isolate; border-radius: 28px; color: #F7F2EA; padding: 18px 18px 20px; display: flex; flex-direction: column; min-height: 440px; background: #2F3720; }
.poster::after, .welcome::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.4; mix-blend-mode: overlay; pointer-events: none; z-index: 2; }
.poster.short { min-height: 320px; }
.poster.mini { min-height: 230px; border-radius: 22px; padding: 14px; text-align: left; }
.poster .poster-img, .welcome .poster-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.poster .shade, .welcome .shade { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0) 28%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.45)); }
.poster > :not(.art):not(.poster-img):not(.shade) { position: relative; z-index: 3; }
.p-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.92; }
.p-body { margin-top: auto; }
.p-serif { font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 1; letter-spacing: -0.01em; }
.p-title { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 76px; line-height: 0.84; margin-top: 6px; color: #D8E0A2; overflow-wrap: anywhere; }
.p-title.cream { color: #F7F2EA; }
.poster.mini .p-title { font-size: 34px; color: #F7F2EA; }
.poster.short .p-title { font-size: 54px; }
.p-cap { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.32em; text-transform: uppercase; opacity: 0.85; margin-top: 14px; }
.poster .btn.cream, .welcome .btn.cream { background: #F7F2EA; color: #1E2114; }
.poster .btn.outline { border: 1px solid rgba(247, 242, 234, 0.45); color: #F7F2EA; }
.poster .muted { color: #F7F2EA; opacity: 0.75; }
.poster .ring text { fill: #F7F2EA; }

/* Newspaper (plan reveal) */
.paper { background: #F4F0E8; color: #1F1F1A; border-radius: 6px; padding: 18px 16px 20px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04), 0 24px 40px -24px rgba(40, 30, 20, 0.4); position: relative; overflow: hidden; }
.paper::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.25; mix-blend-mode: multiply; pointer-events: none; }
.paper .extra { font-family: var(--display); font-size: 16px; letter-spacing: 0; color: #3B3A33; display: flex; justify-content: space-between; }
.paper .rule { border-top: 2px solid #1F1F1A; border-bottom: 1px solid #1F1F1A; height: 5px; margin: 8px 0; }
.paper .headline { font-family: var(--display); font-weight: 400; font-size: 66px; line-height: 0.86; text-transform: uppercase; }
.paper .dek { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; text-align: center; margin: 8px 0; }
.paper .cols { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #1F1F1A; margin-top: 10px; }
.paper .cols > div { padding: 10px 10px 6px 0; }
.paper .cols > div:nth-child(2n) { border-left: 1px solid #1F1F1A; padding-left: 10px; }
.paper .cols > div:nth-child(n+3) { border-top: 1px solid #1F1F1A; }
.paper .k { font-family: var(--mono); font-size: 9px; letter-spacing: 0.16em; text-transform: uppercase; color: #5C5A50; }
.paper .v { font-family: var(--display); font-size: 30px; line-height: 1; margin-top: 4px; text-transform: uppercase; }
.paper .v small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; margin-left: 3px; }
.paper .lede { font-family: var(--serif); font-size: 19px; line-height: 1.2; margin-top: 10px; }
.paper .stamp { display: inline-block; position: relative; transform: rotate(-3deg); margin: 10px 0 2px; border: 1.5px solid #B3472F; color: #B3472F; font-family: var(--mono); font-size: 9px; letter-spacing: 0.18em; padding: 4px 8px; text-transform: uppercase; z-index: 1; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 52px; padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; transition: transform 0.1s ease, opacity 0.15s ease; white-space: nowrap; }
.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn.primary { background: var(--green); color: var(--bg); }
.btn.accent { background: var(--accent); color: var(--accent-text); }
.btn.ghost { background: transparent; border: 1px solid var(--line); }
.btn.soft { background: var(--surface-2); }
.btn.block { width: 100%; }
.btn.sm { height: 40px; padding: 0 18px; font-size: 11px; }
.btn.xs { height: 30px; padding: 0 12px; font-size: 10px; letter-spacing: 0.08em; }
.link { color: var(--accent-ink); font-weight: 600; font-size: 14px; }
.icon-btn { width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); }

/* ---------- forms ---------- */
.field { display: block; }
.field + .field { margin-top: 14px; }
.label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.input, .textarea, .select { width: 100%; height: 52px; padding: 0 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); outline: none; transition: border-color 0.15s; }
.textarea { height: auto; min-height: 90px; padding: 14px 16px; resize: vertical; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--text); }
.error { color: var(--danger); font-size: 13px; }
.input-row { display: flex; gap: 10px; }
.input-row > * { flex: 1; }

.options { display: grid; gap: 10px; }
.option { text-align: left; padding: 18px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); width: 100%; transition: border-color 0.15s, background 0.15s; }
.option strong { display: block; font-family: var(--serif); font-weight: 400; font-size: 23px; line-height: 1.1; }
.option span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.option.selected { border-color: var(--green); background: var(--green); color: var(--bg); }
.option.selected span { color: var(--bg); opacity: 0.7; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.chip.selected { background: var(--green); color: var(--bg); border-color: var(--green); }
.chip.avoid.selected { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }

.segment { display: flex; padding: 4px; background: var(--surface-2); border-radius: 999px; }
.segment button { flex: 1; height: 40px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.segment button.active { background: var(--green); color: var(--bg); }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; background: var(--surface-2); color: var(--text); }
.card.soft .tag { background: var(--bg); }
.tag.accent { background: var(--accent-soft); color: var(--accent-ink); }
.tag.glass { background: rgba(247, 242, 234, 0.16); color: #F7F2EA; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }

/* ---------- welcome ---------- */
.welcome { min-height: 100vh; display: flex; flex-direction: column; padding: 22px 22px 28px; color: #F7F2EA; position: relative; overflow: hidden; isolation: isolate; background: #4A3A2E; }
.welcome > :not(.art):not(.poster-img):not(.shade) { position: relative; z-index: 3; }
.welcome .hero { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 30px; }
.welcome .wordmark { color: #F7F2EA; }
.welcome .tagline { color: #F7F2EA; opacity: 0.85; margin-top: 12px; padding-left: 4px; }
.welcome .lead { font-family: var(--serif); font-style: italic; font-size: 31px; line-height: 1.04; max-width: 330px; margin-bottom: 22px; }
.welcome .btn.ghost { border-color: rgba(247, 242, 234, 0.5); color: #F7F2EA; }
.welcome .btn.soft { background: rgba(247, 242, 234, 0.14); color: #F7F2EA; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.welcome .muted { color: #F7F2EA; opacity: 0.7; }

/* ---------- onboarding ---------- */
.progress-bar { height: 3px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.progress-bar > div { height: 100%; background: var(--text); border-radius: 999px; transition: width 0.3s ease; }
.ob-head { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.ob-head .progress-bar { flex: 1; }
.ob-head .small { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.ob-foot { position: sticky; bottom: 0; padding: 16px 0 8px; background: linear-gradient(transparent, var(--bg) 30%); margin-top: 24px; }
.range { width: 100%; accent-color: var(--text); }
.big-number { font-family: var(--display); font-size: 64px; line-height: 0.9; }

/* ---------- header ---------- */
.top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-weight: 500; font-size: 13px; letter-spacing: 0.04em; flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: 11px; }
.avatar.alt { background: var(--accent); color: var(--accent-text); }

.banner { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--accent-soft); font-size: 13px; margin-bottom: 14px; }
.banner .grow { line-height: 1.4; }

/* ---------- phase content ---------- */
.phase-name { font-family: var(--display); text-transform: uppercase; font-size: 40px; line-height: 0.9; }
.phase-list { list-style: none; margin-top: 12px; counter-reset: tip; }
.phase-list li { display: flex; gap: 12px; font-size: 14px; padding: 9px 0; border-top: 1px solid var(--line); }
.phase-list li:first-child { border-top: none; }
.phase-list li::before { content: counter(tip, decimal-leading-zero); counter-increment: tip; font-family: var(--mono); font-size: 10.5px; color: var(--muted); margin-top: 3px; letter-spacing: 0.06em; flex-shrink: 0; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stat { background: var(--surface-2); border-radius: 20px; padding: 14px; }
.stat .value { font-family: var(--display); font-size: 36px; line-height: 1; margin-top: 8px; }
.stat .value small { font-family: var(--mono); font-size: 10.5px; font-weight: 500; color: var(--muted); margin-left: 4px; letter-spacing: 0.06em; }
.stat .icon-btn { background: var(--bg); border-color: transparent; }
.meter { height: 4px; background: rgba(120, 110, 95, 0.18); border-radius: 999px; overflow: hidden; margin-top: 12px; }
.meter > div { height: 100%; background: var(--accent); border-radius: 999px; transition: width 0.3s; }
.meter.green > div { background: var(--follicular); }

/* ---------- workouts ---------- */
.workout-hero { background: #2F3720; color: #F9F7F4; border: none; }
.workout-hero .muted { color: #F9F7F4; opacity: 0.7; }
.ex-list { list-style: none; }
.ex-list li { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.ex-list li:last-child { border-bottom: none; }
.ex-num { width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; flex-shrink: 0; }
.week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week .day { text-align: center; padding: 10px 0 8px; border-radius: 16px; background: var(--surface-2); }
.week .day .d { font-family: var(--mono); font-size: 10px; color: var(--muted); letter-spacing: 0.1em; }
.week .day .n { font-family: var(--display); font-size: 22px; margin-top: 2px; line-height: 1.1; }
.week .day .mk { width: 6px; height: 6px; border-radius: 50%; margin: 4px auto 0; background: transparent; }
.week .day.done .mk { background: var(--accent); }
.week .day.today { background: var(--green); color: var(--bg); }
.week .day.today .d { color: var(--bg); opacity: 0.7; }
.list-item { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.h-scroll { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -16px; padding: 2px 16px 6px; scrollbar-width: none; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll > * { scroll-snap-align: start; flex: 0 0 62%; }

.set-row { display: grid; grid-template-columns: 36px 1fr 1fr 44px; gap: 8px; align-items: center; margin-top: 8px; }
.set-row .input { height: 44px; padding: 0 10px; text-align: center; border-radius: 12px; font-family: var(--mono); }
.check { width: 42px; height: 42px; border-radius: 14px; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; background: var(--surface); }
.check.on { background: var(--green); border-color: var(--green); color: var(--bg); }

/* ---------- meals ---------- */
.meal { display: flex; flex-direction: column; gap: 6px; }
.meal h3 { font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.05; letter-spacing: -0.01em; }
.meal .macro { display: flex; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.meal .macro strong { color: var(--text); font-weight: 500; }
.why { font-size: 13px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); margin-top: 6px; }
.slot { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 32px; line-height: 0.9; }

/* ---------- chat ---------- */
.chat { display: flex; flex-direction: column; gap: 12px; padding-bottom: 8px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 22px; font-size: 14.5px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; }
.bubble.user { align-self: flex-end; background: var(--green); color: var(--bg); border-bottom-right-radius: 6px; }
.bubble.coach { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble .actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; white-space: normal; }
.composer { position: fixed; left: 0; right: 0; bottom: var(--nav-h); z-index: 20; background: linear-gradient(transparent, var(--bg) 26%); padding: 14px 16px 6px; }
.composer-inner { max-width: 448px; margin: 0 auto; display: flex; gap: 8px; align-items: flex-end; }
.composer textarea { flex: 1; min-height: 50px; max-height: 120px; padding: 14px 18px; border-radius: 26px; border: 1px solid var(--line); background: var(--surface); resize: none; outline: none; }
.composer textarea:focus { border-color: var(--text); }
.send { width: 50px; height: 50px; border-radius: 50%; background: var(--green); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.typing span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); margin-right: 4px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: 0.2s; }
.typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 80%, 100% { opacity: 0.25; } 40% { opacity: 1; } }
.prompts { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
.prompts::-webkit-scrollbar { display: none; }
.prompts .chip { flex-shrink: 0; }

/* ---------- progress photos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 16px; overflow: hidden; background: var(--surface-2); border: 2px solid transparent; }
.photo img { width: 100%; height: 100%; object-fit: cover; transition: filter 0.2s; }
.photo.blur img { filter: blur(16px) saturate(0.6); transform: scale(1.1); }
.photo .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 6px 8px; font-family: var(--mono); font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); }
.photo.selected { border-color: var(--accent); }
.photo .sel { position: absolute; top: 6px; right: 6px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; }
.verdict { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.verdict.on_track { background: var(--green-soft); color: var(--follicular); }
.verdict.progressing { background: var(--accent-soft); color: var(--accent); }
.verdict.adjust { background: var(--surface-2); color: var(--danger); }
.lock { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 32px 16px; }
.pin-input { letter-spacing: 0.6em; text-align: center; font-size: 22px; font-weight: 700; max-width: 200px; }
.rich p + p, .rich p + ul, .rich ul + p { margin-top: 8px; }
.rich ul { padding-left: 18px; margin-top: 4px; }
.rich h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; font-weight: 500; margin-top: 14px; color: var(--muted); }

/* ---------- community ---------- */
.post .head { display: flex; gap: 10px; align-items: center; }
.post .body { margin-top: 12px; font-family: var(--serif); font-size: 21px; line-height: 1.22; white-space: pre-wrap; word-wrap: break-word; }
.post .foot { display: flex; gap: 18px; margin-top: 14px; color: var(--muted); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.post .foot button { display: inline-flex; align-items: center; gap: 6px; color: inherit; }
.post .foot button.on { color: var(--accent); }
.comment { display: flex; gap: 8px; margin-top: 10px; font-size: 14px; }
.comment .c { background: var(--surface-2); padding: 8px 12px; border-radius: 14px; }

/* ---------- floating nav ---------- */
.nav { position: fixed; bottom: calc(14px + env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: calc(100% - 28px); max-width: 452px; z-index: 30; height: 66px; border-radius: 999px; background: rgba(27, 29, 20, 0.9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 18px 40px -18px rgba(20, 20, 10, 0.55); }
.nav-inner { height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; }
.nav button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 999px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(247, 242, 234, 0.62); }
.nav button.active { background: #F7F2EA; color: #1E2114; }
.nav button svg { width: 21px; height: 21px; }

/* ---------- sheets ---------- */
.overlay { position: fixed; inset: 0; z-index: 50; background: rgba(18, 19, 14, 0.5); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease; }
.sheet { width: 100%; max-width: 480px; max-height: 92vh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 12px 16px 28px; animation: up 0.25s ease; }
.sheet.full { max-height: 100vh; height: 100vh; border-radius: 0; }
.sheet .grab { width: 40px; height: 4px; border-radius: 999px; background: var(--line); margin: 0 auto 14px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }

.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 70px); transform: translateX(-50%); z-index: 60; background: var(--green); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600; animation: fade 0.2s ease; max-width: calc(100% - 32px); text-align: center; }

.empty { text-align: center; padding: 28px 12px; color: var(--muted); font-size: 14px; }
.spark { width: 100%; height: 70px; }
.ring { flex-shrink: 0; }

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

@media (max-width: 360px) {
  .wordmark.xl { font-size: 76px; }
  h1 { font-size: 30px; }
  .p-title { font-size: 60px; }
  .masthead { font-size: 46px; }
}

/* ---------- studio palette (second moodboard) ---------- */
:root { --script: 'Mrs Saint Delafield', 'Snell Roundhand', cursive; --studio: #E8E2DA; --mocha: #4E3729; --ink: #1E1E19; }

.script { font-family: var(--script); font-weight: 400; text-transform: none; letter-spacing: 0; line-height: 1; }
.serif-tight { font-family: var(--serif); font-weight: 400; font-style: normal; text-transform: lowercase; letter-spacing: -0.045em; line-height: 0.78; }
.stack-caps { font-family: var(--sans); font-weight: 900; text-transform: uppercase; letter-spacing: -0.035em; line-height: 0.92; }

/* Light studio sweep: bright wall, soft floor shadow, a tint of the phase colour. */
.art-studio { background: radial-gradient(60% 45% at 50% 18%, rgba(255, 255, 255, 0.95), transparent 70%), linear-gradient(180deg, #EFEAE3 0%, #E6DFD6 62%, #D3CABE 100%); filter: blur(10px); transform: none; }
.art-studio::before { display: none; }
.art-studio::after { left: 8%; top: auto; bottom: 6%; width: 84%; height: 16%; background: radial-gradient(closest-side, rgba(70, 55, 40, 0.28), transparent); transform: none; }
.tint { position: absolute; z-index: 0; width: 70%; height: 55%; right: -12%; top: 10%; border-radius: 50%; filter: blur(46px); opacity: 0.55; }
.tint-menstrual { background: #C97A62; } .tint-follicular { background: #B9C77E; } .tint-ovulation { background: #F0A36C; } .tint-luteal { background: #B89D7C; } .tint-steady { background: #CFC4B4; }

.poster.light { color: var(--ink); background: var(--studio); }
.poster.light::after { mix-blend-mode: multiply; opacity: 0.22; }
.poster.light .shade { display: none; }
.poster.light .tag.glass { background: rgba(30, 30, 25, 0.07); color: var(--ink); }
.poster.light .ring text { fill: var(--ink); }
.ph-menstrual { color: #8E4634; } .ph-follicular { color: #55642F; } .ph-ovulation { color: #B65D2E; } .ph-luteal { color: #6B533D; } .ph-steady { color: #4E4438; }

/* Four-corner micro captions */
.corners { position: absolute; inset: 16px 18px; z-index: 3; pointer-events: none; font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase; }
.corners span { position: absolute; opacity: 0.8; }
.corners .tl { top: 0; left: 0; } .corners .tr { top: 0; right: 0; text-align: right; } .corners .bl { bottom: 0; left: 0; } .corners .br { bottom: 0; right: 0; text-align: right; }

/* Script word over a bold title, like a marker note on a poster */
.over { position: relative; display: inline-block; }
.over .script { position: absolute; left: -4px; top: -0.62em; font-size: 0.72em; transform: rotate(-8deg); color: #F7F2EA; z-index: 1; text-shadow: 0 2px 12px rgba(0, 0, 0, 0.25); }
.light .over .script { color: var(--accent); text-shadow: none; }

/* Taped index card */
.taped { position: relative; background: #2F3720; color: #EFEAE0; border-radius: 4px; padding: 26px 20px 20px; transform: rotate(-1.2deg); margin: 26px 6px 6px; box-shadow: 0 18px 30px -22px rgba(30, 30, 20, 0.6); }
.taped::before { content: ''; position: absolute; top: -13px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(3deg); background: rgba(225, 220, 205, 0.72); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 96% 100%, 2% 96%, 0 50%); }
.taped .eyebrow { color: #D8E0A2; }
.taped .link { color: #D8E0A2; }
.taped .serif { font-size: 21px; line-height: 1.22; }

/* Curved caption around a badge */
.orbit { position: relative; width: 74px; height: 74px; flex-shrink: 0; }
.orbit svg.ring-text { position: absolute; inset: 0; animation: spin 24s linear infinite; }
.orbit .core { position: absolute; inset: 17px; border-radius: 50%; background: var(--accent); color: var(--accent-text); display: flex; align-items: center; justify-content: center; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Contact-sheet photo grid */
.photo-grid { gap: 3px; border-radius: 14px; overflow: hidden; }
.photo { border-radius: 2px; }

/* Light welcome (studio) */
.welcome.light { background: var(--studio); color: var(--ink); }
.welcome.light::after { mix-blend-mode: multiply; opacity: 0.2; }
.welcome.light .shade { display: none; }
.welcome.light .wordmark { color: var(--green); }
.welcome.light .tagline, .welcome.light .muted { color: var(--ink); }
.welcome.light .btn.ghost { border-color: rgba(30, 30, 25, 0.25); color: var(--ink); }
.welcome.light .btn.soft { background: rgba(30, 30, 25, 0.06); color: var(--ink); }
.welcome.light .lead { color: var(--ink); }
.welcome .script-sig { font-family: var(--script); font-size: 64px; color: var(--accent); transform: rotate(-6deg); margin: -18px 0 0 36%; line-height: 1; }
:root[data-theme="dark"] .welcome.light, :root[data-theme="dark"] .poster.light { --studio: #2A2620; --ink: #F1ECE3; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .welcome.light, :root:not([data-theme="light"]) .poster.light { --studio: #2A2620; --ink: #F1ECE3; } }
:root[data-theme="dark"] .art-studio { background: radial-gradient(60% 45% at 50% 18%, rgba(255, 240, 220, 0.10), transparent 70%), linear-gradient(180deg, #2E2A23 0%, #26221C 62%, #1B1814 100%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .art-studio { background: radial-gradient(60% 45% at 50% 18%, rgba(255, 240, 220, 0.10), transparent 70%), linear-gradient(180deg, #2E2A23 0%, #26221C 62%, #1B1814 100%); } }
:root[data-theme="dark"] .ph-menstrual, :root[data-theme="dark"] .ph-follicular, :root[data-theme="dark"] .ph-ovulation, :root[data-theme="dark"] .ph-luteal, :root[data-theme="dark"] .ph-steady { filter: brightness(1.9) saturate(0.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [class*="ph-"] { filter: brightness(1.9) saturate(0.9); } }
.poster > .corners, .poster > .tint, .welcome > .tint { position: absolute !important; }
.over .script { font-size: 0.95em; top: -0.72em; color: #D8E0A2; }

/* ---------- barcode scanner ---------- */
.scanner-sheet { background: #15160F; color: #F7F2EA; }
.scanner-sheet .icon-btn { background: rgba(247, 242, 234, 0.1); border-color: transparent; color: #F7F2EA; }
.scanner-sheet .btn.outline { border: 1px solid rgba(247, 242, 234, 0.4); color: #F7F2EA; }
.scanner-sheet .btn.cream { background: #F7F2EA; color: #1E2114; }
.scanner-sheet .input::placeholder { color: rgba(247, 242, 234, 0.5); }
.scan-frame { position: relative; aspect-ratio: 4 / 5; border-radius: 26px; overflow: hidden; background: #0B0C08; }
.scan-frame video { width: 100%; height: 100%; object-fit: cover; }
.scan-box { position: absolute; left: 12%; right: 12%; top: 34%; height: 30%; }
.scan-box::before, .scan-box::after { content: ''; position: absolute; inset: 0; border: 2px solid #D8E0A2; border-radius: 14px; -webkit-mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat; mask: linear-gradient(#000 0 0) top left / 28px 28px no-repeat, linear-gradient(#000 0 0) top right / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom left / 28px 28px no-repeat, linear-gradient(#000 0 0) bottom right / 28px 28px no-repeat; }
.scan-box::after { display: none; }
.scan-box span { position: absolute; left: 6%; right: 6%; height: 2px; background: #D4845C; box-shadow: 0 0 12px #D4845C; top: 10%; animation: sweep 1.8s ease-in-out infinite alternate; }
@keyframes sweep { to { top: 88%; } }

/* ---------- menopause ---------- */
:root { --menopause: #8B7A8C; }
.art-menopause { background: radial-gradient(45% 55% at 30% 28%, #D9C6D3, transparent 70%), radial-gradient(55% 60% at 78% 75%, #4A3B4B, transparent 70%), linear-gradient(160deg, #8B7A8C, #3A2F3B); }
.tint-menopause { background: #C3A9BC; }
.ph-menopause { color: #6A4F66; }
.scan-tools { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; color: #F7F2EA; font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase; }
.scan-tools .icon-btn { background: rgba(20, 20, 15, 0.55); border: none; color: #F7F2EA; backdrop-filter: blur(6px); }
.scan-tools .icon-btn.on { background: #F7F2EA; color: #1E2114; }
.scan-tools [hidden] { display: none; }
.still { animation: none !important; }
a.btn { text-decoration: none; color: inherit; }

/* ---------- opening splash ---------- */
.splash { position: fixed; inset: 0; z-index: 1000; background: #F9F7F4; display: flex; align-items: center; justify-content: center; transition: opacity 0.8s ease, visibility 0.8s; }
.splash::after { content: ''; position: absolute; inset: 0; background-image: var(--grain); opacity: 0.18; mix-blend-mode: multiply; pointer-events: none; }
.splash img { width: min(78vw, 420px); height: auto; opacity: 0; transform: scale(0.96); animation: splash-in 1s cubic-bezier(.2, .7, .2, 1) 0.1s forwards; }
.splash.out { opacity: 0; visibility: hidden; }
.splash.out img { transform: scale(1.03); transition: transform 0.8s ease; }
@keyframes splash-in { to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .splash img { animation: none; opacity: 1; transform: none; }
  .splash { transition: opacity 0.25s linear; }
}
a.link { text-decoration: none; overflow-wrap: anywhere; }
/* Keyboard focus: a clear ring for keyboard and switch users only (not on tap). */
:focus-visible { outline: 2px solid var(--accent-ink); outline-offset: 2px; }
.input:focus-visible, .textarea:focus-visible, .select:focus-visible, .composer textarea:focus-visible { outline: none; }

/* Workout logger: rest timer and plate math */
.rest-bar { position: sticky; bottom: 12px; display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 12px 14px; border-radius: 20px; background: var(--green); color: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.18); z-index: 2; }
.rest-time { font-family: var(--display, inherit); font-size: 30px; line-height: 1; font-variant-numeric: tabular-nums; }
.rest-bar .btn.outline { border-color: currentColor; color: inherit; }
.plates-box { margin-top: 10px; padding: 12px; border-radius: 16px; background: var(--surface-2); }
.plates-row { display: flex; align-items: center; gap: 3px; margin-top: 8px; }
.plate { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 0 3px; border-radius: 4px; background: var(--green); color: var(--bg); font-family: var(--mono); font-size: 10px; }
.plate-bar { flex: 1; height: 8px; border-radius: 4px; background: var(--muted); opacity: .5; }
.rest-bar .btn.cream { background: var(--bg); color: var(--text); }

/* Add to Home Screen guide */
.install-steps { list-style: none; counter-reset: none; }
.install-step { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.4; }
.install-step:first-child { border-top: none; }
.install-n { width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: var(--bg); display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 13px; flex: none; }
.install-pic { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); display: inline-flex; align-items: center; justify-content: center; color: #0A84FF; flex: none; }

/* Before and after photo slider */
.cmp-slider { position: relative; aspect-ratio: 3 / 4; border-radius: 18px; overflow: hidden; background: var(--surface-2, #222); touch-action: pan-y; }
.cmp-slider img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cmp-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.cmp-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 6px rgba(0,0,0,.35); pointer-events: none; }
.cmp-line span { position: absolute; top: 50%; left: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; border-radius: 50%; background: #fff; color: #1E2412; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.cmp-tag { position: absolute; top: 10px; padding: 4px 9px; border-radius: 999px; background: rgba(20,22,16,.62); color: #fff; font: 600 10px/1.2 var(--mono, monospace); letter-spacing: 1.5px; text-transform: uppercase; pointer-events: none; }
.cmp-tag.l { left: 10px; } .cmp-tag.r { right: 10px; }
.cmp-slider input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.cmp-slider input[type=range]:focus-visible { opacity: .01; }
.cmp-slider:has(input:focus-visible) { outline: 3px solid var(--accent-ink); outline-offset: 2px; }
.cmp-reveal { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; gap: 8px; align-items: center; padding: 12px 18px; border-radius: 999px; background: rgba(20,22,16,.72); color: #fff; font-weight: 600; font-size: 14px; }

/* Badges */
.badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.badge-cell { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 6px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; color: inherit; }
.badge-cell.locked { border-style: dashed; }
.badge-cell.locked strong { color: var(--muted); }
.badge-medal { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2); color: var(--muted); flex: none; }
.badge-medal.earned { background: var(--accent); color: var(--accent-text, #1E2412); }
.badge-meter { width: 70%; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; margin-top: 2px; }
.badge-meter span { display: block; height: 100%; background: var(--accent-ink); }

/* Invite friends */
.invite-code { margin-top: 12px; padding: 12px; border-radius: 14px; border: 1.5px dashed var(--line); text-align: center; font: 500 26px/1 var(--mono); letter-spacing: 8px; color: var(--text); }
.stat-bar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 5px; }
.stat-bar span { display: block; height: 100%; background: var(--accent-ink); border-radius: 4px; }

/* Landing page (first visit in a browser) */
.app.wide { max-width: none; }
.lp { padding-bottom: 24px; }
.lp-wrap { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
.lp-top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; max-width: 1080px; margin: 0 auto; padding: calc(12px + env(safe-area-inset-top)) 16px 12px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.lp-hero { display: grid; gap: 28px; align-items: center; padding-top: 18px; padding-bottom: 8px; }
.lp-h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: clamp(46px, 11vw, 84px); line-height: 0.95; letter-spacing: 0.005em; margin-top: 10px; color: var(--text); }
.lp-lead { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 4.6vw, 27px); line-height: 1.2; margin-top: 16px; max-width: 34ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-cta .btn { flex: 1 1 220px; }
.lp-hero-phone { display: flex; justify-content: center; }
.lp-phone { width: min(300px, 78vw); border-radius: 38px; padding: 9px; background: #1B1D14; box-shadow: 0 30px 60px -28px rgba(20, 20, 10, .55); flex: none; }
.lp-phone img { border-radius: 30px; width: 100%; height: auto; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }
.lp-sec { margin-top: 56px; }
.lp-h2 { font-size: clamp(30px, 6vw, 44px); line-height: 1.05; }
.lp-sec h3 { font-size: 16px; font-weight: 700; margin-top: 8px; }
.lp-phases { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.lp-phase { padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-phase h3 { margin-top: 10px; }
.lp-dot { display: block; width: 14px; height: 14px; border-radius: 50%; }
.lp-screens { display: flex; gap: 18px; overflow-x: auto; padding: 18px 16px 6px; scroll-snap-type: x mandatory; max-width: 1080px; margin: 0 auto; }
.lp-screens figure { scroll-snap-align: center; flex: none; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-screens .lp-phone { width: min(250px, 66vw); }
.lp-steps { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.lp-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-steps h3 { margin-top: 0; }
.lp-num { font-family: var(--mono); font-size: 13px; color: var(--accent-ink); padding-top: 2px; }
.lp-features { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 18px; }
.lp-feature { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); color: var(--text); }
.lp-feature svg { color: var(--accent-ink); }
.lp-quotes { display: grid; gap: 12px; margin-top: 18px; }
.lp-quote { margin: 0; padding: 20px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-quote blockquote { margin: 0; font-size: 22px; line-height: 1.2; }
.lp-quote figcaption { margin-top: 10px; }
.lp-prices { display: grid; gap: 10px; margin-top: 18px; }
.lp-price { padding: 18px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.lp-price h3 { margin-top: 0; }
.lp-amount { font-size: 34px; margin-top: 6px; }
.lp-faq { margin-top: 14px; }
.lp-faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.lp-faq summary { cursor: pointer; font-weight: 600; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font-family: var(--mono); color: var(--accent-ink); }
.lp-faq details[open] summary::after { content: '−'; }
.lp-faq details p { margin-top: 8px; }
.lp-final { padding-top: 40px; padding-bottom: 40px; border-radius: 28px; background: #2F3720; color: #F7F2EA; text-align: left; max-width: calc(1080px - 32px); width: calc(100% - 32px); }
.lp-final .wordmark { font-size: clamp(64px, 18vw, 110px); }
.lp-final .btn { width: 100%; max-width: 360px; }
.lp-foot { margin-top: 36px; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (min-width: 760px) {
  .lp-hero { grid-template-columns: 1.15fr 0.85fr; padding-top: 40px; }
  .lp-phases { grid-template-columns: repeat(4, 1fr); }
  .lp-features { grid-template-columns: repeat(2, 1fr); }
  .lp-steps { grid-template-columns: repeat(3, 1fr); }
  .lp-steps li { flex-direction: column; }
  .lp-prices { grid-template-columns: 1fr 1fr; max-width: 720px; }
  .lp-quotes { grid-template-columns: repeat(2, 1fr); }
  .lp-screens { justify-content: center; }
  .lp-final { padding-left: 40px; padding-right: 40px; }
}
@media (min-width: 1000px) { .lp-features { grid-template-columns: repeat(4, 1fr); } }
.lp-final .btn.cream { background: #F7F2EA; color: #1E2114; }
#pricing .btn.block { max-width: 420px; }

/* Exercise library and exercise pages */
:root { --bm-body: #E4DDD3; --bm-off: #CFC6B9; --bm-sec: #EDB89A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --bm-body: #2E3127; --bm-off: #45493B; --bm-sec: #8A5A43; } }
:root[data-theme="dark"] { --bm-body: #2E3127; --bm-off: #45493B; --bm-sec: #8A5A43; }
.bodymap-card { display: flex; flex-direction: column; align-items: center; padding: 14px; }
.bodymap { width: 100%; max-width: 300px; height: auto; }
.bm-label { font: 500 8px var(--mono); fill: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.bm-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; vertical-align: -1px; margin-right: 4px; }
.ex-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.ex-actions .btn.sm { height: 40px; padding: 0 14px; }
.guide-list { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 14px; line-height: 1.45; }
.ex-link { color: inherit; font: inherit; text-align: left; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; padding: 0; }
.lib-entry { width: 100%; text-align: left; color: inherit; margin-top: 12px; }
.lib-entry svg { color: var(--accent-ink); flex: none; }
.journey { background: #2F3720; color: #F7F2EA; border: none; }
.journey-big { font-family: var(--display); font-size: 64px; line-height: 1; margin-top: 10px; color: #D8E0A2; }
.journey-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.journey-row div { display: flex; flex-direction: column; gap: 2px; }
.journey-row strong { font-size: 22px; }
.journey-row span { font: 500 10px var(--mono); letter-spacing: 1.2px; text-transform: uppercase; opacity: .75; }
.journey .btn.cream { background: #F7F2EA; color: #1E2114; }

/* Warm-ups and effort */
.warmup { margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: var(--surface-2); }
.effort { display: flex; align-items: center; gap: 6px; margin: 2px 0 8px 46px; flex-wrap: wrap; }
.effort-btn { width: 34px; height: 30px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font: 600 13px var(--mono); color: var(--text); }
.effort-btn.on { background: var(--green); color: var(--bg); border-color: var(--green); }
.effort-done { margin: 0 0 6px 46px; }
/* Strength level */
.level-track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.level-track span { height: 8px; border-radius: 4px; background: var(--surface-2); }
.level-track span.on { background: var(--accent); }
/* Builder */
.builder-ex { margin: 8px 0 0; padding: 12px 14px; }
.builder-fields { display: grid; grid-template-columns: 0.8fr 1fr 1.2fr; gap: 8px; margin-top: 8px; }
.builder-fields label { display: flex; flex-direction: column; gap: 4px; }
.builder-fields .input, .builder-fields .select { height: 42px; }
.icon-btn.sm { width: 32px; height: 32px; }
.icon-btn.flip svg { transform: rotate(180deg); }
.icon-btn:disabled { opacity: .35; }
.mini-spark { width: 72px; height: 30px; flex: none; } .mini-spark svg { width: 100%; height: 30px; }
