:root {
  --ink: #07110d;
  --ink-2: #0d2118;
  --green: #173b2b;
  --green-soft: #2e6748;
  --gold: #cdaa5d;
  --gold-light: #efd98e;
  --cream: #f5efe3;
  --paper: #fbf8f1;
  --muted: #69726b;
  --line: #d8d1c3;
  --blue: #3f88cf;
  --pink: #d75b91;
  --danger: #9d3e3e;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
body[data-audience="men"] { --audience: var(--blue); }
body[data-audience="women"] { --audience: var(--pink); }
button, input, select, textarea { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.skip-link { position: fixed; z-index: 1000; top: -100px; left: 18px; padding: 12px 18px; background: var(--gold-light); color: var(--ink); font-weight: 900; }
.skip-link:focus { top: 18px; }

.platform-header {
  position: sticky;
  z-index: 80;
  top: 0;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 76px);
  border-bottom: 1px solid rgba(255,255,255,.11);
  background: rgba(7,17,13,.95);
  color: #fff;
  backdrop-filter: blur(18px);
}
.platform-brand { display: flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.platform-brand > span { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(205,170,93,.64); color: var(--gold-light); font: 18px var(--serif); }
.platform-brand strong { display: block; color: #fff8ea; font: 16px/1.05 var(--serif); }
.platform-brand small { display: block; margin-top: 4px; color: #858d87; font: 800 7px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.platform-header nav { display: flex; align-items: center; justify-content: flex-end; gap: clamp(14px, 2vw, 30px); }
.platform-header nav a { color: #b8bcb8; font-size: .875rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; white-space: nowrap; }
.platform-header nav a:hover, .platform-header nav a[aria-current="page"] { color: var(--gold-light); }
.platform-header nav .nav-command { padding: 11px 14px; border: 1px solid rgba(239,217,142,.5); color: var(--gold-light); }

.platform-hero {
  min-height: 710px;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 18%, rgba(52,105,76,.36), transparent 40%),
    linear-gradient(135deg, #0b2218 0%, #07110d 56%, #030806 100%);
  color: #fff;
}
.platform-hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(90deg, #000, transparent 70%); }
.platform-hero.command-hero { min-height: 760px; grid-template-columns: minmax(0, .96fr) minmax(420px, 1.04fr); }
.platform-hero.men-hero { background: radial-gradient(circle at 15% 18%, rgba(37,88,135,.44), transparent 42%), linear-gradient(135deg, #07182a, #070d12 60%, #020405); }
.platform-hero.women-hero { background: radial-gradient(circle at 16% 18%, rgba(160,53,102,.38), transparent 43%), linear-gradient(135deg, #2c0c1d, #130911 60%, #050204); }
.hero-copy { position: relative; z-index: 3; align-self: center; padding: clamp(72px, 10vw, 142px) clamp(26px, 7vw, 112px); }
.eyebrow, .section-kicker { margin: 0; color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 11px; }
.eyebrow span { width: 30px; height: 1px; background: var(--gold); }
.platform-hero h1 { max-width: 950px; margin: 25px 0 25px; color: #fff9ec; font-family: var(--serif); font-size: clamp(58px, 7vw, 104px); font-weight: 400; letter-spacing: -.055em; line-height: .88; }
.platform-hero h1 em { color: var(--gold-light); font-weight: 400; }
.men-hero h1 em { color: #8ec7ff; }
.women-hero h1 em { color: #ff9ec9; }
.hero-lede { max-width: 780px; margin: 0; color: #b8bdb8; font-size: clamp(15px, 1.2vw, 19px); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; margin-top: 35px; }
.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 22px;
  border: 1px solid transparent;
  background: transparent;
  font-size: .875rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-1px); }
.button-gold { background: var(--gold-light); color: #172116; box-shadow: 0 14px 35px rgba(0,0,0,.17); }
.button-gold:hover { background: #f8e9b1; }
.button-green { background: var(--green); color: #fff; }
.button-blue { background: var(--blue); color: #fff; }
.button-pink { background: var(--pink); color: #fff; }
.button-outline { border-color: rgba(239,217,142,.45); color: var(--gold-light); }
.button-outline:hover { border-color: var(--gold-light); background: rgba(239,217,142,.08); }
.button-quiet { border-color: #bdb5a6; color: #39433c; }
.button-danger { border-color: rgba(157,62,62,.55); color: #7f2e2e; }
.hero-metrics { max-width: 760px; display: grid; grid-template-columns: repeat(3, 1fr); margin: 42px 0 0; border-block: 1px solid rgba(255,255,255,.12); }
.hero-metrics div { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 11px; padding: 16px 13px; }
.hero-metrics div + div { border-left: 1px solid rgba(255,255,255,.12); }
.hero-metrics dt { color: var(--gold-light); font: 34px/1 var(--serif); }
.hero-metrics dd { margin: 0; color: #7f8881; font-size: .875rem; font-weight: 900; letter-spacing: .1em; line-height: 1.45; text-transform: uppercase; }

.hero-visual { min-height: 710px; position: relative; overflow: hidden; background: #07100c; }
.hero-visual > img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.hero-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #07110d 0%, transparent 25%), linear-gradient(180deg, transparent 45%, rgba(3,8,5,.92)); }
.hero-visual .hero-stamp { position: absolute; z-index: 2; right: clamp(22px, 4vw, 55px); bottom: 38px; max-width: 330px; padding: 23px; border: 1px solid rgba(239,217,142,.55); background: rgba(2,8,5,.72); backdrop-filter: blur(10px); }
.hero-stamp strong { display: block; color: #fff8e9; font: 32px/1 var(--serif); }
.hero-stamp span { display: block; margin-top: 8px; color: #aab0ab; font-size: .875rem; line-height: 1.6; }
.command-console { min-height: 100%; display: grid; align-content: center; padding: clamp(35px, 6vw, 80px); background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.01)); }
.console-shell { position: relative; z-index: 2; padding: clamp(28px, 4vw, 48px); border: 1px solid rgba(239,217,142,.25); background: rgba(3,10,6,.68); box-shadow: 0 35px 100px rgba(0,0,0,.32); backdrop-filter: blur(14px); }
.console-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-bottom: 20px; border-bottom: 1px solid rgba(255,255,255,.1); }
.console-top span { color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.status-dot { width: 10px; height: 10px; border-radius: 50%; background: #73c899; box-shadow: 0 0 20px #73c899; }
.console-grid { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 22px; border: 1px solid rgba(255,255,255,.1); }
.console-grid a { min-height: 145px; padding: 24px; border-right: 1px solid rgba(255,255,255,.1); border-bottom: 1px solid rgba(255,255,255,.1); }
.console-grid a:nth-child(2n) { border-right: 0; }
.console-grid a:nth-last-child(-n+2) { border-bottom: 0; }
.console-grid a:hover { background: rgba(239,217,142,.06); }
.console-grid span { color: var(--gold); font: 21px var(--serif); }
.console-grid strong { display: block; margin: 22px 0 6px; color: #fff; font: 21px var(--serif); }
.console-grid small { color: #89918b; font-size: .875rem; line-height: 1.55; }

.audience-gateway { display: grid; grid-template-columns: repeat(2, 1fr); background: #07110d; color: #fff; }
.audience-gateway a { min-height: 220px; position: relative; display: grid; align-content: center; padding: clamp(35px, 6vw, 80px); overflow: hidden; border-right: 1px solid rgba(255,255,255,.1); }
.audience-gateway a:last-child { border-right: 0; }
.audience-gateway a::after { content: attr(data-mark); position: absolute; right: 2vw; bottom: -50px; color: rgba(255,255,255,.035); font: 190px var(--serif); }
.audience-gateway a:first-child:hover { background: #0c2136; }
.audience-gateway a:last-child:hover { background: #2c0c1d; }
.audience-gateway span { color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.audience-gateway strong { margin-top: 10px; color: #fff9ec; font: clamp(32px, 4vw, 58px) var(--serif); }
.audience-gateway small { margin-top: 11px; color: #8d948e; font-size: .875rem; line-height: 1.7; }

.tool-jump {
  position: sticky;
  z-index: 45;
  top: 78px;
  display: flex;
  align-items: stretch;
  overflow-x: auto;
  border-bottom: 1px solid #d6cebf;
  background: rgba(251,248,241,.96);
  backdrop-filter: blur(12px);
  scrollbar-width: thin;
}
.tool-jump a { flex: 1 0 155px; display: grid; grid-template-columns: auto 1fr; gap: 9px; align-content: center; min-height: 68px; padding: 11px 17px; border-right: 1px solid #ded7ca; color: #4c554e; }
.tool-jump a:hover { background: #efe7d8; color: var(--ink); }
.tool-jump span { grid-row: 1 / 3; color: #9b793d; font: 18px var(--serif); }
.tool-jump strong { font-size: .875rem; letter-spacing: .08em; text-transform: uppercase; }
.tool-jump small { color: #858a85; font-size: .875rem; }

.tool-section { padding: clamp(80px, 9vw, 135px) clamp(20px, 6vw, 92px); background: var(--paper); scroll-margin-top: 150px; }
.tool-section:nth-of-type(even) { background: #efe7d8; }
.tool-section.dark { background: #0c2017; color: #fff; }
.section-heading { max-width: 1450px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(35px, 7vw, 100px); align-items: end; margin: 0 auto 54px; }
.section-heading .section-kicker { color: #8b672f; }
.dark .section-heading .section-kicker { color: var(--gold-light); }
.section-heading h2 { max-width: 950px; margin: 15px 0 0; font: 400 clamp(43px, 5vw, 76px)/.98 var(--serif); letter-spacing: -.045em; }
.section-heading h2 em { color: #8b672f; font-weight: 400; }
.dark .section-heading h2 em { color: var(--gold-light); }
.section-heading > p { margin: 0; color: #626a63; font-size: .875rem; line-height: 1.8; }
.dark .section-heading > p { color: #929d95; }
.section-actions { max-width: 1450px; display: flex; flex-wrap: wrap; gap: 12px; margin: -26px auto 36px; }

.tool-panel { max-width: 1450px; margin: 0 auto; border: 1px solid var(--line); background: #fff; box-shadow: 0 18px 55px rgba(18,31,23,.07); }
.tool-panel + .tool-panel { margin-top: 28px; }
.panel-grid { display: grid; grid-template-columns: minmax(310px, .72fr) minmax(0, 1.28fr); }
.panel-form { padding: clamp(25px, 4vw, 48px); border-right: 1px solid var(--line); background: #f7f2e8; }
.panel-result { min-height: 500px; padding: clamp(25px, 4vw, 52px); }
.panel-form h3, .panel-result h3, .tool-card h3 { margin: 0 0 10px; font: 400 clamp(27px, 3vw, 40px)/1.05 var(--serif); }
.panel-form > p, .panel-result > p { color: #687069; font-size: .875rem; line-height: 1.7; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 28px; }
.form-grid label, .stack-form label { display: grid; gap: 7px; color: #525b54; font-size: .875rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.form-grid label.full, .stack-form label.full { grid-column: 1 / -1; }
.form-grid input, .form-grid select, .form-grid textarea, .stack-form input, .stack-form select, .stack-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  border: 1px solid #cfc6b8;
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  outline: 0;
  font-size: .875rem;
  text-transform: none;
}
.form-grid textarea, .stack-form textarea { min-height: 92px; resize: vertical; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus, .stack-form input:focus, .stack-form select:focus, .stack-form textarea:focus { border-color: var(--green); box-shadow: 0 0 0 2px rgba(23,59,43,.1); }
.check-label { grid-column: 1 / -1; display: flex !important; grid-template-columns: none !important; align-items: flex-start; gap: 10px !important; padding: 15px; border: 1px solid #d8d1c4; background: #fff; font-size: .875rem !important; line-height: 1.55; letter-spacing: .02em !important; text-transform: none !important; }
.check-label input { width: 18px; min-height: 18px; margin: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.status-line { min-height: 18px; margin: 13px 0 0; color: #557160; font-size: .875rem; font-weight: 750; }

.plan-summary { display: grid; grid-template-columns: repeat(4, 1fr); margin: 24px 0; border: 1px solid var(--line); }
.plan-summary div { padding: 17px; border-right: 1px solid var(--line); }
.plan-summary div:last-child { border-right: 0; }
.plan-summary strong { display: block; color: #8b672f; font: 27px var(--serif); }
.plan-summary span { color: #737a74; font-size: .875rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.plan-days { display: grid; gap: 16px; }
.plan-day { border: 1px solid var(--line); background: #fff; }
.plan-day header { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; background: #10261b; color: #fff; }
.plan-day header span { color: var(--gold-light); font: 19px var(--serif); }
.plan-day header strong { font: 400 19px var(--serif); }
.plan-day ol { margin: 0; padding: 0; list-style: none; }
.plan-day li { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(160px, .8fr) auto; gap: 15px; align-items: center; padding: 15px 20px; border-top: 1px solid #e6e0d6; }
.plan-day li:first-child { border-top: 0; }
.plan-day li strong { font: 400 16px var(--serif); }
.plan-day li span { color: #6d746e; font-size: .875rem; }
.plan-day li a { color: #8b672f; font-size: .875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.plan-day footer { min-height: 0; display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 10px; padding: 17px 20px; border-top: 1px solid var(--line); background: #f5f0e7; }

.lab-controls { max-width: 1450px; display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; margin: 0 auto 26px; }
.lab-controls input, .lab-controls select { min-height: 46px; padding: 10px 13px; border: 1px solid #cbc3b5; background: #fff; color: var(--ink); }
.exercise-count { max-width: 1450px; min-height: 22px; margin: 0 auto 13px; color: #6e756f; font-size: .875rem; }
.exercise-grid { max-width: 1450px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin: 0 auto; }
.exercise-card { display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 42px rgba(18,31,23,.06); }
.exercise-card header { position: relative; min-height: 150px; display: grid; align-content: end; padding: 25px; overflow: hidden; background: linear-gradient(145deg, #183d2c, #07110d); color: #fff; }
.exercise-card header::after { content: attr(data-area); position: absolute; right: -8px; bottom: -16px; color: rgba(255,255,255,.06); font: 64px var(--serif); text-transform: uppercase; }
.exercise-card header span { position: relative; z-index: 1; color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.exercise-card header h3 { position: relative; z-index: 1; margin: 8px 0 0; font: 400 28px/1 var(--serif); }
.exercise-card .exercise-body { flex: 1; padding: 23px; }
.exercise-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.exercise-tags span { padding: 6px 8px; border: 1px solid #ded7cb; color: #6b716c; font-size: .875rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.exercise-card h4 { margin: 22px 0 9px; color: #8b672f; font-size: .875rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.exercise-card ol, .exercise-card ul { margin: 0; padding-left: 19px; color: #525a54; font-size: .875rem; line-height: 1.7; }
.exercise-card .prescription { margin: 20px 0 0; padding: 13px; border-left: 3px solid var(--gold); background: #f5f0e8; color: #29352d; font-size: .875rem; font-weight: 850; }
.exercise-card footer { min-height: 0; display: flex; justify-content: space-between; gap: 12px; padding: 17px 22px; border-top: 1px solid var(--line); background: #faf7f1; }
.exercise-card footer button, .exercise-card footer a { border: 0; background: none; color: #73592d; font-size: .875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.stat-card { min-height: 150px; padding: 25px; border-right: 1px solid var(--line); background: #fff; }
.stat-card:last-child { border-right: 0; }
.stat-card span { color: #8b672f; font: 35px/1 var(--serif); }
.stat-card strong { display: block; margin-top: 20px; font: 400 17px var(--serif); }
.stat-card small { color: #727973; font-size: .875rem; }
.progress-layout { max-width: 1450px; display: grid; grid-template-columns: minmax(310px, .68fr) minmax(0, 1.32fr); gap: 26px; margin: 25px auto 0; }
.progress-column { display: grid; gap: 25px; align-content: start; }
.tool-card { padding: clamp(24px, 4vw, 42px); border: 1px solid var(--line); background: #fff; box-shadow: 0 14px 45px rgba(18,31,23,.06); }
.stack-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin-top: 23px; }
.log-table { width: 100%; border-collapse: collapse; margin-top: 20px; }
.log-table th, .log-table td { padding: 12px 10px; border-bottom: 1px solid #e4ddd2; text-align: left; font-size: .875rem; vertical-align: top; }
.log-table th { color: #7e6740; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.log-table button { border: 0; background: none; color: var(--danger); font-size: .875rem; font-weight: 900; cursor: pointer; }
.chart-shell { position: relative; min-height: 290px; margin-top: 22px; border: 1px solid #e0d9cd; background: linear-gradient(#fff, #faf7f1); }
.chart-shell canvas { width: 100%; height: 290px; display: block; }
.empty-state { min-height: 270px; display: grid; place-items: center; padding: 40px; border: 1px dashed #c9c0b3; color: #727971; text-align: center; font-size: .875rem; line-height: 1.7; }

.nutrition-layout { max-width: 1450px; display: grid; grid-template-columns: minmax(330px, .75fr) minmax(0, 1.25fr); gap: 25px; margin: 0 auto; }
.meal-plan { display: grid; gap: 13px; margin-top: 21px; }
.meal-day { padding: 19px; border: 1px solid #ded6ca; background: #fff; }
.meal-day h4 { margin: 0 0 12px; font: 400 21px var(--serif); }
.meal-day dl { display: grid; gap: 10px; margin: 0; }
.meal-day dl div { display: grid; grid-template-columns: 88px 1fr; gap: 10px; }
.meal-day dt { color: #8b672f; font-size: .875rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.meal-day dd { margin: 0; color: #555e57; font-size: .875rem; line-height: 1.5; }
.grocery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 11px; margin-top: 21px; }
.grocery-grid section { padding: 15px; border: 1px solid #ddd6ca; background: #faf7f1; }
.grocery-grid h4 { margin: 0 0 10px; color: #8b672f; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.grocery-grid ul { margin: 0; padding-left: 16px; color: #59615b; font-size: .875rem; line-height: 1.6; }
.hydration-card { padding: 28px; border: 1px solid rgba(255,255,255,.13); background: #0a1b2b; color: #fff; }
.hydration-card h3 { color: #fff; }
.hydration-card > p { color: #9bacba; font-size: .875rem; line-height: 1.7; }
.cup-grid { display: grid; grid-template-columns: repeat(8, minmax(35px, 1fr)); gap: 8px; margin-top: 22px; }
.cup-grid button { aspect-ratio: .75; position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.cup-grid button::before { content: ""; position: absolute; inset: auto 0 0; height: 0; background: #4aa4d8; transition: height .25s ease; }
.cup-grid button.checked::before { height: 78%; }
.cup-grid button span { position: relative; z-index: 1; font-size: .875rem; font-weight: 900; }
.hydration-summary { margin-top: 14px; color: #b9ddf1; font-size: .875rem; font-weight: 850; }
.book-strip { max-width: 1450px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; margin: 25px auto 0; }
.book-strip a { min-height: 190px; position: relative; display: flex; flex-direction: column; justify-content: flex-end; padding: 24px; overflow: hidden; background: linear-gradient(145deg, #173b2b, #07110d); color: #fff; }
.book-strip a::after { content: "RESTORE"; position: absolute; top: 8px; right: -18px; color: rgba(255,255,255,.07); font: 44px var(--serif); transform: rotate(90deg); }
.book-strip span { color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.book-strip strong { max-width: 250px; margin-top: 8px; font: 400 21px/1.08 var(--serif); }

.challenge-grid { max-width: 1450px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 auto; }
.challenge-card { --accent: var(--gold); display: flex; flex-direction: column; min-height: 390px; border: 1px solid rgba(255,255,255,.12); background: #10261b; color: #fff; }
.challenge-card header { min-height: 150px; display: flex; flex-direction: column; justify-content: space-between; padding: 25px; border-top: 4px solid var(--accent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 22%, #10261b), #0b1811); }
.challenge-card header span { color: color-mix(in srgb, var(--accent) 65%, white); font-size: .875rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.challenge-card header h3 { margin: 20px 0 0; font: 400 30px/1 var(--serif); }
.challenge-card .challenge-body { flex: 1; padding: 25px; }
.challenge-card p { color: #9ca89f; font-size: .875rem; line-height: 1.7; }
.challenge-card blockquote { margin: 18px 0 0; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.1); color: #d9d5c8; font: italic 15px/1.45 var(--serif); }
.challenge-card footer { min-height: 0; display: flex; gap: 10px; justify-content: flex-start; padding: 19px 25px; border-top: 1px solid rgba(255,255,255,.1); background: #0b1811; }
.challenge-card footer button { min-height: 43px; padding: 0 15px; border: 1px solid rgba(255,255,255,.22); background: transparent; color: #fff; font-size: .875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; cursor: pointer; }
.challenge-card footer button.primary { border-color: var(--accent); background: var(--accent); color: #08110d; }
.active-challenge { max-width: 1450px; margin: 30px auto 0; padding: clamp(28px, 5vw, 55px); border: 1px solid rgba(239,217,142,.35); background: #07110d; color: #fff; }
.active-challenge header { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.active-challenge h3 { margin: 7px 0; font: 400 clamp(30px, 4vw, 54px) var(--serif); }
.active-challenge p { max-width: 760px; color: #939e96; font-size: .875rem; line-height: 1.75; }
.challenge-progress { min-width: 210px; text-align: right; }
.challenge-progress strong { color: var(--gold-light); font: 42px var(--serif); }
.challenge-progress div { height: 5px; margin-top: 8px; overflow: hidden; background: rgba(255,255,255,.12); }
.challenge-progress i { display: block; width: 0; height: 100%; background: var(--gold-light); }
.day-grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 7px; margin-top: 25px; }
.day-grid span { aspect-ratio: 1; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.14); color: #78827b; font-size: .875rem; }
.day-grid span.complete { border-color: var(--gold); background: var(--gold); color: #07110d; font-weight: 900; }
.today-prompt { margin-top: 24px; padding: 20px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.045); }
.today-prompt small { color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.today-prompt strong { display: block; margin-top: 8px; color: #fff; font: 400 20px/1.35 var(--serif); }
.challenge-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 21px; }
.achievement-preview { max-width: 1450px; display: grid; grid-template-columns: minmax(300px, .7fr) minmax(0, 1.3fr); gap: 28px; align-items: center; margin: 30px auto 0; padding: 28px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.035); }
.achievement-preview canvas { width: 100%; height: auto; border: 1px solid rgba(239,217,142,.35); background: #07110d; }
.achievement-preview h3 { margin: 0 0 10px; font: 400 36px var(--serif); }
.achievement-preview p { color: #919c94; font-size: .875rem; line-height: 1.7; }

.hub-intro { padding: clamp(78px, 9vw, 135px) clamp(20px, 6vw, 92px); background: var(--paper); }
.hub-intro-grid { max-width: 1450px; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin: 0 auto; }
.hub-intro-grid article { min-height: 250px; padding: 32px; border-right: 1px solid var(--line); background: #fff; }
.hub-intro-grid article:last-child { border-right: 0; }
.hub-intro-grid span { color: var(--audience); font: 24px var(--serif); }
.hub-intro-grid h2 { margin: 42px 0 12px; font: 400 28px/1 var(--serif); }
.hub-intro-grid p { color: #687069; font-size: .875rem; line-height: 1.75; }
.hub-paths { padding: clamp(80px, 9vw, 135px) clamp(20px, 6vw, 92px); background: #efe7d8; }
.path-card-grid { max-width: 1450px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; margin: 0 auto; }
.path-card { min-height: 370px; position: relative; display: flex; flex-direction: column; padding: clamp(27px, 4vw, 46px); overflow: hidden; border: 1px solid #d0c7b9; background: #fff; }
.path-card::after { content: attr(data-number); position: absolute; right: -10px; bottom: -45px; color: color-mix(in srgb, var(--audience) 10%, transparent); font: 180px var(--serif); }
.path-card > * { position: relative; z-index: 1; }
.path-card span { color: var(--audience); font-size: .875rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.path-card h3 { max-width: 590px; margin: 28px 0 13px; font: 400 clamp(30px, 3.5vw, 50px)/.98 var(--serif); }
.path-card p { max-width: 650px; color: #626a63; font-size: .875rem; line-height: 1.75; }
.path-card ul { display: grid; gap: 8px; margin: 17px 0 25px; padding: 0; list-style: none; }
.path-card li { position: relative; padding-left: 18px; color: #3e4b42; font-size: .875rem; font-weight: 800; }
.path-card li::before { content: "+"; position: absolute; left: 0; color: var(--audience); }
.path-card .button { align-self: flex-start; margin-top: auto; }
.visual-preview-strip { padding: clamp(80px, 9vw, 135px) clamp(20px, 6vw, 92px); background: #07110d; color: #fff; }
.poster-grid { max-width: 1450px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 auto; }
.poster-grid a { position: relative; overflow: hidden; border: 1px solid rgba(255,255,255,.12); background: #0e1913; }
.poster-grid img { width: 100%; aspect-ratio: .78; object-fit: cover; transition: transform .25s ease; }
.poster-grid a:hover img { transform: scale(1.02); }
.poster-grid span { position: absolute; right: 0; bottom: 0; left: 0; padding: 16px; background: linear-gradient(transparent, rgba(0,0,0,.9)); color: #fff; font: 18px var(--serif); }

.safety-banner { display: grid; grid-template-columns: auto 1fr; gap: 28px; padding: clamp(55px, 7vw, 95px) clamp(20px, 7vw, 110px); background: #f5efe4; color: var(--ink); }
.safety-banner > span { width: 72px; height: 72px; display: grid; place-items: center; border: 1px solid #c5b489; border-radius: 50%; color: #8b672f; font: 34px var(--serif); }
.safety-banner h2 { margin: 9px 0 12px; font: 400 clamp(27px, 3.5vw, 46px) var(--serif); }
.safety-banner p { max-width: 1100px; margin: 0; color: #626a63; font-size: .875rem; line-height: 1.8; }
.source-list { max-width: 1450px; display: flex; flex-wrap: wrap; gap: 10px; margin: 22px auto 0; }
.source-list a { padding: 10px 12px; border: 1px solid #d2c9bb; color: #596159; font-size: .875rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

.platform-footer { min-height: 145px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px clamp(20px, 6vw, 90px); border-top: 1px solid rgba(255,255,255,.1); background: #050c08; color: #fff; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand > span { width: 45px; height: 45px; display: grid; place-items: center; border: 1px solid rgba(205,170,93,.5); color: var(--gold-light); font: 16px var(--serif); }
.footer-brand strong { display: block; font: 15px var(--serif); }
.footer-brand small { display: block; margin-top: 4px; color: #717a73; font-size: .875rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.platform-footer > p, .platform-footer > a { color: #687169; font-size: .875rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.platform-footer > a:hover { color: var(--gold-light); }

.guide-dialog, .workout-dialog {
  width: min(100% - 26px, 900px);
  max-height: calc(100svh - 26px);
  padding: 0;
  border: 1px solid rgba(205,170,93,.55);
  background: #f8f3e9;
  color: var(--ink);
  box-shadow: 0 40px 120px rgba(0,0,0,.55);
}
.workout-dialog { width: min(100% - 26px, 760px); background: #07110d; color: #fff; }
.guide-dialog::backdrop, .workout-dialog::backdrop { background: rgba(0,8,4,.86); backdrop-filter: blur(8px); }
.dialog-shell { position: relative; padding: clamp(30px, 6vw, 64px); }
.dialog-close { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border: 1px solid rgba(205,170,93,.35); background: transparent; color: inherit; font-size: 24px; cursor: pointer; }
.guide-dialog h2, .workout-dialog h2 { max-width: 690px; margin: 15px 0; font: 400 clamp(34px, 5vw, 58px)/1 var(--serif); }
.guide-dialog h3 { margin: 26px 0 10px; color: #8b672f; font-size: .875rem; letter-spacing: .1em; text-transform: uppercase; }
.guide-dialog ol, .guide-dialog ul { color: #515a53; font-size: .875rem; line-height: 1.75; }
.workout-progress { height: 6px; margin: 25px 0; overflow: hidden; background: rgba(255,255,255,.12); }
.workout-progress span { display: block; width: 0; height: 100%; background: var(--gold-light); transition: width .25s ease; }
.workout-stage { min-height: 300px; display: grid; place-items: center; padding: 35px; border: 1px solid rgba(255,255,255,.12); background: #0b1b13; text-align: center; }
.workout-stage small { color: var(--gold-light); font-size: .875rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.workout-stage strong { display: block; margin: 14px 0 9px; color: #fff; font: 400 clamp(35px, 6vw, 66px)/1 var(--serif); }
.workout-stage p { max-width: 560px; margin: 0; color: #9aa59d; font-size: .875rem; line-height: 1.7; }
.timer-display { margin-top: 17px; color: var(--gold-light); font: 55px/1 var(--serif); }
.workout-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

@media (max-width: 1100px) {
  .platform-header { align-items: flex-start; flex-direction: column; gap: 10px; }
  .platform-header nav { width: 100%; justify-content: flex-start; overflow-x: auto; padding-bottom: 5px; }
  .tool-jump { top: 104px; }
  .platform-hero, .platform-hero.command-hero { grid-template-columns: 1fr; }
  .hero-visual { min-height: 620px; }
  .command-console { min-height: 620px; }
  .exercise-grid { grid-template-columns: repeat(2, 1fr); }
  .challenge-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid, .progress-layout, .nutrition-layout { grid-template-columns: 1fr; }
  .panel-form { border-right: 0; border-bottom: 1px solid var(--line); }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 760px) {
  .platform-header { min-height: 98px; padding: 10px 16px; }
  .platform-brand > span { width: 39px; height: 39px; }
  .platform-header nav { gap: 18px; }
  .tool-jump { top: 98px; }
  .platform-hero { min-height: auto; }
  .hero-copy { padding: 70px 22px; }
  .platform-hero h1 { font-size: clamp(50px, 15vw, 75px); }
  .hero-metrics { grid-template-columns: 1fr; }
  .hero-metrics div + div { border-top: 1px solid rgba(255,255,255,.12); border-left: 0; }
  .hero-visual { min-height: 520px; }
  .command-console { min-height: auto; padding: 22px; }
  .console-shell { padding: 20px; }
  .console-grid { grid-template-columns: 1fr; }
  .console-grid a { min-height: 115px; border-right: 0; }
  .console-grid a:nth-last-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.1); }
  .console-grid a:last-child { border-bottom: 0; }
  .audience-gateway { grid-template-columns: 1fr; }
  .audience-gateway a { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .form-grid, .stack-form { grid-template-columns: 1fr; }
  .form-grid label.full, .stack-form label.full, .check-label { grid-column: auto; }
  .lab-controls { grid-template-columns: 1fr 1fr; }
  .lab-controls input { grid-column: 1 / -1; }
  .exercise-grid, .challenge-grid { grid-template-columns: 1fr; }
  .plan-summary, .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-summary div:nth-child(2) { border-right: 0; }
  .plan-summary div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat-card:nth-child(2) { border-right: 0; }
  .stat-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .plan-day li { grid-template-columns: 1fr; }
  .plan-day li a { justify-self: start; }
  .log-table { display: block; overflow-x: auto; }
  .grocery-grid { grid-template-columns: 1fr; }
  .book-strip { grid-template-columns: repeat(2, 1fr); }
  .challenge-progress { min-width: 0; text-align: left; }
  .active-challenge header { flex-direction: column; }
  .day-grid { grid-template-columns: repeat(6, 1fr); }
  .achievement-preview { grid-template-columns: 1fr; }
  .hub-intro-grid { grid-template-columns: 1fr; }
  .hub-intro-grid article { border-right: 0; border-bottom: 1px solid var(--line); }
  .hub-intro-grid article:last-child { border-bottom: 0; }
  .path-card-grid { grid-template-columns: 1fr; }
  .poster-grid { grid-template-columns: repeat(2, 1fr); }
  .safety-banner { grid-template-columns: 1fr; }
  .platform-footer { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .hero-actions .button, .section-actions .button, .form-actions .button, .challenge-actions .button { width: 100%; }
  .tool-section, .hub-intro, .hub-paths, .visual-preview-strip { padding-inline: 16px; }
  .panel-form, .panel-result, .tool-card { padding: 22px 18px; }
  .lab-controls { grid-template-columns: 1fr; }
  .lab-controls input { grid-column: auto; }
  .plan-summary, .stats-grid, .book-strip { grid-template-columns: 1fr; }
  .plan-summary div, .stat-card { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-summary div:last-child, .stat-card:last-child { border-bottom: 0; }
  .cup-grid { grid-template-columns: repeat(4, 1fr); }
  .poster-grid { grid-template-columns: 1fr; }
  .day-grid { grid-template-columns: repeat(5, 1fr); }
}

@media print {
  .platform-header, .tool-jump, .hero-actions, .form-actions, .section-actions, .platform-footer, .workout-dialog, .guide-dialog, .button, button { display: none !important; }
  body { background: #fff; color: #000; }
  .platform-hero { min-height: auto; display: block; background: #fff; color: #000; }
  .platform-hero .hero-copy { padding: 20px 0; }
  .platform-hero h1, .platform-hero h1 em { color: #000; font-size: 45px; }
  .hero-lede { color: #333; }
  .hero-visual, .command-console, .audience-gateway, .tool-section:not(.print-target), .safety-banner { display: none !important; }
  .tool-section.print-target { padding: 0; background: #fff; }
  .tool-panel, .plan-day, .tool-card { break-inside: avoid; box-shadow: none; }
}
