/* The Gym Physique: prototype design system (Direction C, decision 33).
   Ground #F4F7FB, surface #FFF, ink #12161C, blue #1565C0 (buttons, links),
   highlight #4DA3FF (fills, bars, borders only; never text on light ground). */
:root {
  --ground: #F4F7FB; --surface: #FFFFFF; --ink: #12161C; --ink-2: #4A5463; --ink-3: #6B7686;
  --blue: #1565C0; --blue-dark: #0F4F99; --hi: #4DA3FF; --tint: #E4EBF5; --tint-2: #EEF3FA;
  --line: #DDE4EE; --line-2: #C5CFDC; --warn-bg: #FFF4E8; --warn-line: #E0A15A; --warn: #B4540A;
  --ok: #1B7F3B; --orange: #B4540A;
  --head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --max: 1240px; --gut: clamp(16px, 4vw, 40px); --r: 8px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 16px/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 { font-family: var(--head); font-weight: 700; line-height: 1; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(38px, 5vw, 56px); text-transform: uppercase; }
h2 { font-size: 28px; text-transform: uppercase; }
h3 { font-size: 24px; }
p { margin: 0 0 12px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.page { padding: 44px 0 64px; }
.eyebrow { font: 600 15px/1 var(--head); letter-spacing: .16em; text-transform: uppercase; color: var(--blue); margin: 0 0 8px; }
.on-dark .eyebrow, .eyebrow.light { color: var(--hi); }
.lead { color: var(--ink-2); font-size: 17px; margin: 10px 0 0; }
.muted { color: var(--ink-3); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.note { font-size: 14px; color: var(--ink-3); margin-top: 28px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.between { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.stack > * + * { margin-top: 20px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.mt { margin-top: 24px; } .mt-s { margin-top: 12px; } .mt-l { margin-top: 40px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px;
  font: 600 17px/1 var(--head); letter-spacing: .07em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  background: var(--blue); color: #fff; border: 2px solid var(--blue); border-radius: 6px; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn.ghost { background: transparent; color: var(--blue); }
.btn.ghost:hover { background: var(--tint-2); color: var(--blue-dark); }
.btn.dark { background: var(--ink); border-color: var(--ink); }
.btn.white { background: #fff; border-color: #fff; color: var(--blue); }
.btn.ghost-light { background: transparent; border-color: #fff; color: #fff; }
.btn.lg { min-height: 56px; font-size: 21px; padding: 0 28px; }
.btn.sm { min-height: 36px; font-size: 15px; padding: 0 14px; }
.btn.block { width: 100%; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--hi); outline-offset: 2px; }
.link-row { font-size: 14px; }
.link-row a + a::before { content: "·"; color: var(--ink-3); margin: 0 6px; text-decoration: none; display: inline-block; }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px; }
.card.tight { padding: 20px; }
.card.feature { border: 2px solid var(--blue); }
.card.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.card h2 { font-size: 26px; margin-bottom: 14px; }
.card h3 { margin-bottom: 8px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-head h2 { margin: 0; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.stat .label { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.stat .val { font: 700 36px/1.1 var(--head); margin-top: 6px; }
.tile { background: var(--tint-2); border-radius: 6px; padding: 12px 14px; }
.tile .label { font-size: 13px; color: var(--ink-2); }
.tile .val { font: 700 26px/1.1 var(--head); }
.banner { background: var(--tint); border-left: 4px solid var(--blue); border-radius: 6px; padding: 16px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.banner.warn { background: var(--warn-bg); border: 1px solid var(--warn-line); border-left-width: 4px; }
.infobox { background: var(--tint); border-radius: 6px; padding: 14px 16px; font-size: 15px; }
.ph { background: var(--tint); border-radius: 6px; display: grid; place-items: center; text-align: center; color: var(--ink-2); font-size: 14px; padding: 12px; min-height: 120px; }
.chip { display: inline-flex; align-items: center; background: var(--tint); border-radius: 999px; padding: 3px 12px; font-size: 14px; font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip.outline { background: transparent; border: 1px solid rgba(255,255,255,.5); color: #fff; }
.chip.ok { background: #E3F3E8; color: var(--ok); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.blue { background: var(--blue); color: #fff; }
.pill-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 2px solid var(--blue); border-radius: 6px; color: var(--blue);
  font: 600 16px/1 var(--head); letter-spacing: .05em; background: #fff; cursor: pointer; text-decoration: none; }
.pill-btn.on { background: var(--blue); color: #fff; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff; display: inline-grid; place-items: center; font: 600 15px/1 var(--body); flex: none; text-decoration: none; }
.avatar.lg { width: 132px; height: 132px; font: 700 48px/1 var(--head); border: 4px solid var(--hi); }
.bar { height: 10px; border-radius: 99px; background: var(--tint); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--hi); border-radius: 99px; }
.bar.blue > i { background: var(--blue); } .bar.orange > i { background: var(--orange); }
.steps { display: flex; gap: 8px; } .steps i { flex: 1; height: 8px; border-radius: 99px; background: #3A424E; } .steps i.on { background: var(--hi); }

/* Forms */
label.f { display: block; font-weight: 600; font-size: 15px; margin-bottom: 6px; }
.field { margin-bottom: 18px; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], input[type=date], select, textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: 16px/1.3 var(--body); color: var(--ink);
  background: #fff; border: 1.5px solid var(--line-2); border-radius: 6px; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(255,170,0,.3); }
.hint { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); flex: none; }
.radio-row { display: flex; gap: 22px; flex-wrap: wrap; }
.drop { border: 2px dashed var(--blue); border-radius: 6px; padding: 26px; text-align: center; color: var(--ink-2); }
.choice { border: 1.5px solid var(--line-2); border-radius: 6px; padding: 18px 20px; display: flex; gap: 12px; cursor: pointer; background: #fff; }
.choice:has(input:checked) { border: 2px solid var(--blue); }
.choice input { accent-color: var(--blue); width: 18px; height: 18px; margin-top: 4px; }
.num-pick { display: flex; gap: 10px; flex-wrap: wrap; }
.num-pick label { width: 60px; height: 60px; border: 1.5px solid var(--line-2); border-radius: 6px; display: grid; place-items: center; font: 700 26px/1 var(--head); cursor: pointer; background: #fff; }
.num-pick input { position: absolute; opacity: 0; pointer-events: none; }
.num-pick label:has(input:checked) { border: 2px solid var(--blue); background: var(--tint); }
.seg { display: inline-flex; gap: 8px; }
.seg label { border: 2px solid var(--blue); border-radius: 6px; padding: 6px 16px; color: var(--blue); cursor: pointer; font-size: 15px; }
.seg input { position: absolute; opacity: 0; }
.seg label:has(input:checked) { background: var(--blue); color: #fff; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; cursor: pointer; }
.switch input { position: absolute; opacity: 0; }
.switch i { width: 44px; height: 24px; border-radius: 99px; background: #AAB3C0; position: relative; transition: background .15s; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input:checked + i { background: var(--blue); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch .t-on { display: none; } .switch input:checked ~ .t-on { display: inline; } .switch input:checked ~ .t-off { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; }
/* Text for screen readers only (e.g. a table column header for icon buttons). */
.sr-only { position: absolute; left: 0; top: 0; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-size: 13px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.t td { padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
.yes { color: var(--blue); font-weight: 600; } .no { color: var(--ink-3); }

/* Header */
.proto-bar { background: #FFF7D6; color: #5B4A00; font-size: 13px; border-bottom: 1px solid #EBD98A; }
.proto-bar .wrap { display: flex; align-items: center; gap: 10px 18px; min-height: 38px; flex-wrap: wrap; padding-top: 4px; padding-bottom: 4px; }
.proto-bar b { font-weight: 700; }
.proto-bar .seg label { border-color: #8A7400; color: #5B4A00; padding: 1px 10px; font-size: 13px; }
.proto-bar .seg label:has(input:checked) { background: #5B4A00; color: #fff; }
.proto-bar a { color: #5B4A00; }
.site-head { background: var(--ink); color: #fff; position: relative; z-index: 20; }
.site-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 76px; }
.logo img { width: 104px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 26px; }
.nav a { color: #fff; text-decoration: none; font-size: 16px; }
.nav a:hover { color: var(--hi); }
.nav a.active { color: var(--hi); }
.nav .login { color: var(--hi); }
.nav .avatar { color: #fff; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1.5px solid rgba(255,255,255,.6); color: #fff; border-radius: 6px; padding: 8px 16px; font: 500 16px var(--body); cursor: pointer; }
.subnav { background: #fff; border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 36px; overflow-x: auto; }
.subnav a { font: 600 19px/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); text-decoration: none; padding: 20px 4px 16px; border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a.active { color: var(--blue); border-bottom-color: var(--blue); }
.pattern { background-color: var(--ink); color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132' viewBox='0 0 132 132' fill='none' stroke='%232A3340' stroke-width='3'%3E%3Cpath d='M8 30h40M14 22v16M42 22v16M8 26v8M48 26v8'/%3E%3Cpath d='M74 34c10-12 34-12 44 0c-10 12-34 12-44 0z'/%3E%3Ccircle cx='28' cy='96' r='14'/%3E%3Ccircle cx='28' cy='96' r='5'/%3E%3Cpath d='M74 96h40M80 88v16M108 88v16M74 92v8M114 92v8'/%3E%3C/svg%3E"); }
.profile-hero { padding: 44px 0; }
.profile-hero .wrap { display: flex; gap: 32px; align-items: center; }
.profile-hero .ph { width: 160px; height: 160px; min-height: 0; background: #1C232D; color: #AEB8C6; border: 2px solid var(--hi); flex: none; }
.profile-hero .ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.profile-hero h1 { color: #fff; font-size: clamp(40px, 5vw, 60px); margin: 2px 0 12px; }
.profile-hero .meta { color: #C9D3E0; margin-top: 12px; }
.statband { background: var(--blue); color: #fff; }
.statband .wrap { display: flex; gap: 28px 40px; align-items: center; flex-wrap: wrap; padding-top: 18px; padding-bottom: 18px; }
.statband .k { font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #D6E6FA; }
.statband .v { font: 700 30px/1.1 var(--head); }
.statband .v a { color: #fff; font: 400 14px var(--body); margin-left: 4px; }

/* Footer */
.site-foot { background: var(--ink); color: #AEB8C6; font-size: 14px; }
.site-foot .wrap { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 32px 48px; padding-top: 44px; padding-bottom: 44px; align-items: start; }
.site-foot img { width: 104px; }
.site-foot nav { display: flex; gap: 20px; flex-wrap: wrap; }
.site-foot nav a { color: var(--hi); }
.app-foot { font-size: 14px; color: var(--ink-3); padding: 0 0 40px; }

/* Exercise cards and library */
.ex-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
.ex-card .thumb { aspect-ratio: 16 / 10; background: var(--tint); overflow: hidden; }
.ex-card .thumb img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.ex-card .body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ex-card h3 { font-size: 22px; margin: 0; cursor: pointer; }
.ex-card .foot { display: flex; justify-content: space-between; align-items: center; margin-top: auto; }
.muscle-fig { background: #fff; border-radius: 6px; display: grid; place-items: center; padding: 10px; }
.muscle-fig img { max-height: 100%; width: auto; }

/* Diary */
.diary-head { display: flex; flex-wrap: wrap; gap: 18px 40px; align-items: center; }
.diary-head .k { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.diary-head .v { font: 700 22px/1.2 var(--head); }
.diary-head .v a { font: 400 13px var(--body); margin-left: 4px; }
.sets { width: 100%; border-collapse: collapse; }
.sets th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 4px 4px 8px; text-align: center; }
.sets th:nth-child(2) { text-align: left; }
.sets td { border-top: 1px solid var(--line); padding: 10px 4px; text-align: center; }
.sets td.ex { text-align: left; width: 34%; }
.sets td.ex b { font: 700 21px/1.1 var(--head); display: block; }
.sets td.mv { width: 28px; color: var(--blue); font-size: 14px; line-height: 1; }
.sets input { width: 64px; min-height: 44px; text-align: center; padding: 6px; }
.sets input::placeholder { color: #A3ADBA; }
.set-head { font-size: 12px; font-weight: 700; letter-spacing: .1em; }
.ex-thumb { width: 56px; height: 42px; border-radius: 4px; object-fit: cover; float: left; margin: 2px 12px 0 0; }
.phone-sets { display: none; }
.daystrip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.daystrip a { background: #fff; border: 1px solid var(--line); border-radius: 6px; text-align: center; padding: 10px 4px; text-decoration: none; color: var(--ink); }
.daystrip a b { font: 700 20px/1 var(--head); display: block; }
.daystrip a span { font-size: 12px; color: var(--ink-2); }
.daystrip a.on { border: 2px solid var(--blue); background: var(--tint); }
.foods { width: 100%; border-collapse: collapse; font-size: 15px; }
.foods th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; padding: 6px; text-align: center; }
.foods th:nth-child(2) { text-align: left; }
.foods td { border-top: 1px solid var(--line); padding: 10px 6px; text-align: center; }
.foods td.fd { text-align: left; } .foods td.fd b { font: 700 20px/1.1 var(--head); display: block; }
.foods input { width: 72px; min-height: 40px; text-align: center; padding: 4px; }
.macro { display: grid; grid-template-columns: 80px minmax(0,1fr) 120px; gap: 14px; align-items: center; font-size: 15px; margin: 6px 0; }
.macro span:last-child { text-align: right; color: var(--ink-2); }
.week { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.week .d { border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; background: #fff; font-size: 14px; }
.week .d.rest { background: var(--tint-2); }
.week .d.today { border: 2px solid var(--blue); background: var(--tint); }
.week .d b { font: 700 20px/1.2 var(--head); display: block; }
.icon-tile { display: flex; gap: 16px; align-items: center; text-decoration: none; color: var(--ink); }
.icon-tile .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--blue); display: grid; place-items: center; flex: none; }
.icon-tile .ic svg { width: 24px; height: 24px; stroke: #fff; fill: none; stroke-width: 2; }
.icon-tile b { font: 700 24px/1.1 var(--head); display: block; }
.icon-tile span { color: var(--ink-2); font-size: 15px; }
.icon-tile:hover b { color: var(--blue); }
.today-card { background: var(--ink); color: #fff; border-radius: var(--r); padding: 36px; }
.today-card h2 { font-size: clamp(40px, 5vw, 60px); color: #fff; margin: 4px 0 10px; }
.chart { width: 100%; height: auto; }
.map { background: #E3EAF3; border-radius: 6px; position: relative; overflow: hidden; min-height: 420px; }
.map .pin { position: absolute; width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; border: 2px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.result { display: grid; grid-template-columns: 32px 80px minmax(0,1fr); gap: 16px; padding: 22px 0; border-top: 1px solid var(--line); }
.result .n { width: 30px; height: 30px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.result img, .result .ph { width: 80px; height: 80px; min-height: 0; border-radius: 6px; object-fit: cover; }
.result h3 { font-size: 26px; margin-bottom: 6px; }
.list-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.list-rows > div:first-child { border-top: 0; }
.modal-bg { position: fixed; inset: 0; background: rgba(18,22,28,.55); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: #fff; border-radius: 10px; max-width: 980px; width: 100%; max-height: 92vh; overflow: auto; padding: 28px; position: relative; }
.modal .x { position: absolute; top: 12px; right: 12px; background: none; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: var(--ink-2); }
.split-img { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.price { font: 700 40px/1 var(--head); }

/* Homepage */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: clamp(560px, calc(100vh - 114px), 820px); }
.hero .copy { align-self: center; padding: 64px clamp(28px, 5vw, 72px) 64px max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); }
.hero h1 { font-size: clamp(50px, 6vw, 88px); line-height: .95; }
.hero .media { position: relative; overflow: hidden; background: #2A2F36; }
.hero .media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.feature-card { border-top: 4px solid var(--hi); }
.how-n { font: 700 56px/1 var(--head); color: var(--blue); }
.band { background: var(--blue); color: var(--on-blue, #14171A); }
.photo-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 0; }
.photo-split img { width: 100%; height: 100%; object-fit: cover; }

/* Responsive */
@media (max-width: 1100px) {
  .nav { gap: 18px; } .nav a { font-size: 15px; }
}
@media (max-width: 980px) {
  .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--ink); flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gut) 18px; border-top: 1px solid #2A3340; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; font-size: 17px; border-bottom: 1px solid #222A35; }
  .nav .btn { margin-top: 12px; }
  .nav .avatar { display: none; }
  .menu-btn { display: block; }
  .side { grid-template-columns: minmax(0,1fr); }
  .g4, .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .hero .media { order: -1; height: 44vh; min-height: 280px; }
  .hero .copy { padding: 36px var(--gut) 48px; }
  .week { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .site-foot .wrap { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 720px) {
  .desk-sets { display: none; }
  .phone-sets { display: block; }
  .daystrip { display: flex; overflow-x: auto; } .daystrip a { min-width: 64px; }
  .foods .opt { display: none; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: minmax(0, 1fr); } /* minmax(0, …) lets a wide table scroll in its box instead of widening the page */
  .g6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 20px; }
  .page { padding: 28px 0 48px; }
  .profile-hero .wrap { flex-direction: column; align-items: flex-start; }
  .week { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .result { grid-template-columns: 30px minmax(0,1fr); } .result img, .result .ph.p { display: none; }
  .today-card { padding: 24px; }
  .logo img { width: 84px; }
  .site-head .wrap { min-height: 64px; }
  .macro { grid-template-columns: 60px minmax(0,1fr) 100px; }
}
@media print { .proto-bar, .site-head, .site-foot, .btn, .menu-btn { display: none !important; } body { background: #fff; } }

/* Sign-up progress */
.prog { height: 8px; border-radius: 99px; background: var(--tint); margin: 10px 0 30px; overflow: hidden; }
.prog i { display: block; height: 100%; background: var(--hi); border-radius: 99px; }
.form-col { max-width: 760px; margin: 0 auto; }
.form-col .card { margin-top: 24px; }
.actions { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 12px; margin-top: 24px; }
.q { font-weight: 600; margin: 18px 0 6px; }
.radio-row label { display: flex; gap: 8px; align-items: center; cursor: pointer; }
.radio-row input, .stack-radios input { width: 20px; height: 20px; accent-color: var(--blue); margin: 0; }
.stack-radios label { display: flex; gap: 10px; align-items: center; margin: 10px 0; cursor: pointer; font-size: 17px; }
.warnbox { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 6px; padding: 16px 20px; margin-top: 20px; }
.week { grid-template-columns: repeat(7, minmax(0, 1fr)); }
@media (max-width: 980px) { .week { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 600px) { .week { grid-template-columns: repeat(2, minmax(0, 1fr)); } .actions { grid-template-columns: minmax(0,1fr); } }
.ph-ex { border-top: 1px solid var(--line); padding: 12px 0; }
.ph-ex summary { cursor: pointer; list-style: none; display: block; overflow: hidden; }
.ph-ex summary::-webkit-details-marker { display: none; }
.ph-ex summary b { font: 700 20px/1.1 var(--head); display: block; }
.ph-ex .sets td { text-align: center; }
.ph-ex .sets input { width: 100%; }
[hidden] { display: none !important; }
input::placeholder, textarea::placeholder { color: #9AA5B4; opacity: 1; }
@media (max-width: 720px) {
  .foods .mv, .foods td.fd .tiny { display: none; }
  .foods th, .foods td { padding: 8px 3px; }
  .foods input { width: 58px; }
}
@media (max-width: 600px) {
  .grid.g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .stat { padding: 14px 16px; } .stat .val { font-size: 26px; }
}
.split-img img { max-height: 340px; width: auto; margin: 0 auto; }

/* Phones: any side-by-side layout set inline on a page stacks into one column */
@media (max-width: 760px) {
  [style*="grid-template-columns"]:not(.keep-cols) { grid-template-columns: minmax(0, 1fr) !important; }
  .muscle-fig { padding: 12px; }
  .muscle-fig img { max-height: 170px !important; }
  .card [style*="grid-template-columns"] > .muscle-fig { justify-self: stretch; }
  .modal { padding: 20px; }
}
/* Pairs that stay two across on phones (goal numbers, before and after photos) */
.grid.two-up { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
@media (max-width: 600px) {
  .two-up figcaption { font-size: 14px !important; padding: 8px 10px !important; flex-wrap: wrap; gap: 2px 8px; }
  .two-up .tile .val { font-size: 20px !important; }
}

/* ---------- Featured / call-to-action sections (photo-led) ---------- */
.promo { position: relative; overflow: hidden; color: #fff; background: #15181B; min-height: 280px; display: flex; align-items: flex-end; border-radius: var(--r); text-decoration: none; }
.promo > img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; transition: transform .4s ease; }
.promo:hover > img.bg { transform: scale(1.03); }
.promo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,16,18,.05) 0%, rgba(14,16,18,.55) 45%, rgba(14,16,18,.94) 100%); }
.promo .in { position: relative; z-index: 1; padding: 24px; width: 100%; }
.promo h3 { color: #fff; font-size: 24px; margin: 8px 0 4px; }
.promo p { color: #C9CED4; margin: 0 0 16px; font-size: 14.5px; line-height: 1.5; }
.promo .chips { margin: 0 0 16px; }
.promo-tag { display: inline-block; font: 600 11px/1 var(--body); letter-spacing: .2em; text-transform: uppercase; color: var(--hi); }
.promo.wide { min-height: 240px; align-items: center; }
.promo.wide::after { background: linear-gradient(90deg, rgba(14,16,18,.97) 0%, rgba(14,16,18,.86) 42%, rgba(14,16,18,.1) 100%); }
.promo.wide .in { max-width: 560px; padding: 36px; }
.promo.wide h3 { font-size: 30px; }
.promo .muscle-mini { position: absolute; z-index: 1; top: 14px; right: 14px; width: 64px; background: #fff; padding: 6px; }
.feat-band { background: #15181B; color: #fff; padding: 72px 0; }
.feat-band h2 { color: #fff; }
.feat-band .lead { color: #B9BEC4; }
.person-card { display: flex; gap: 16px; align-items: center; }
.person-card img { width: 72px; height: 72px; object-fit: cover; flex: none; }
.person-card b { display: block; font-size: 17px; }
@media (max-width: 760px) { .promo.wide::after { background: linear-gradient(180deg, rgba(14,16,18,.3) 0%, rgba(14,16,18,.95) 70%); } .promo.wide { align-items: flex-end; min-height: 320px; } .promo.wide .in { padding: 24px; } }
