:root {
  color-scheme: light;
  font-family: "Inter", system-ui, sans-serif;
  color: #211d2c;
  background: #f5f3f8;
  --ink: #211d2c;
  --muted: #5d566b;
  --purple: #382554;
  --lime: #d5f37a;
  --line: #ded9e7;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
p { margin: 0; line-height: 1.6; }
h1, h2, h3, h4 { margin: 0; letter-spacing: -.035em; line-height: 1.13; }
h1 { font-size: clamp(1.6rem, 13cqi, 3.5rem); overflow-wrap: anywhere; }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: 1.55rem; }
h4 { font-size: 1.25rem; margin: 1.5rem 0 .85rem; }
:focus-visible { outline: 3px solid #7951be; outline-offset: 3px; }
h2:focus { outline: none; }

.layout {
  width: min(1160px, calc(100% - 64px));
  margin: clamp(32px, 7vw, 96px) auto;
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.2fr);
  gap: clamp(28px, 5.4vw, 76px);
  align-items: start;
}
.intro {
  container-type: inline-size;
  padding: clamp(28px, 4vw, 48px);
  border-radius: 28px;
  background: #261937;
  color: #faf8fd;
}
.mark { display: flex; align-items: end; gap: 5px; height: 29px; margin-bottom: 40px; }
.mark span { display: block; width: 8px; background: var(--lime); border-radius: 2px; transform: skew(-12deg); }
.mark span:nth-child(1) { height: 13px; }
.mark span:nth-child(2) { height: 21px; }
.mark span:nth-child(3) { height: 29px; }
.eyebrow {
  margin: 0 0 12px;
  font-size: .72rem;
  font-weight: 780;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #6b498f;
}
.intro .eyebrow { color: var(--lime); }
.intro-copy { color: #e0d7ed; margin-top: 22px; max-width: 34ch; }
.progress {
  list-style: none;
  margin: 36px 0 0;
  padding: 25px 0 0;
  display: grid;
  gap: 13px;
  border-top: 1px solid #544464;
}
.progress li { display: flex; gap: 12px; align-items: center; font-size: .9rem; color: #dacfe8; }
.progress .indicator {
  width: 26px;
  height: 26px;
  display: grid;
  place-content: center;
  flex: none;
  border-radius: 50%;
  border: 1px solid #837293;
  font-weight: 700;
  font-size: .75rem;
}
.progress li[aria-current="step"] { color: white; font-weight: 700; }
.progress li[aria-current="step"] .indicator { background: var(--lime); border-color: var(--lime); color: #231832; }
.progress .passed .indicator { border-color: #acc660; color: var(--lime); }

.agent {
  min-width: 0;
  background: #fff;
  border: 1px solid #e8e2ef;
  border-radius: 28px;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 18px 60px #34204b0c;
}
.card-header { margin-bottom: 26px; overflow-wrap: anywhere; }
.card-header p:last-child:not(.eyebrow) { color: var(--muted); margin-top: 12px; }
.fields { display: grid; gap: 20px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field > span, legend { font-size: .94rem; font-weight: 690; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
legend { margin-bottom: 8px; padding: 0; }
.field input, .field select {
  color: var(--ink);
  background: #fcfbfd;
  border: 1px solid #cbc3d7;
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
  min-height: 45px;
}
.field input::placeholder { color: #716a7d; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choices { display: flex; gap: 8px; flex-wrap: wrap; }
.choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: .87rem;
  line-height: 1.3;
  min-height: 42px;
  cursor: pointer;
}
.choice:hover { border-color: #836c9f; }
.choice:has(input:checked) { background: #f1eafa; border-color: #8c70ac; }
.choice input { accent-color: #594079; width: 15px; height: 15px; margin: 0; flex: none; }
.hint { color: var(--muted); font-size: .85rem; line-height: 1.55; }
.fields > .hint { margin-top: -10px; }
#exclusions .hint { margin-top: 8px; }
.consent { width: fit-content; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 22px; }
.actions button { border-radius: 10px; padding: 10px 15px; min-height: 44px; font-weight: 700; border: 1px solid transparent; }
.primary { color: #fff; background: var(--purple); }
.primary:hover { background: #4f3475; }
.secondary { color: var(--purple); background: #fff; }
.actions .secondary { border-color: #cbbddc; }
.secondary:hover, .quiet:hover { background: #f2edf7; }
.quiet { color: #59436c; background: transparent; }
.error { color: #8c2043; background: #fff0f5; border-radius: 8px; padding: 9px 12px; margin-top: 12px; font-size: .92rem; }

.result-section { border-top: 1px solid var(--line); padding-top: 21px; margin-top: 22px; }
.result-section > p { margin-top: 10px; }
.panels { display: grid; gap: 8px; margin-top: 13px; }
.panel { background: #fcfbfd; border: 1px solid var(--line); border-radius: 11px; }
.panel summary {
  cursor: pointer;
  padding: 12px 14px;
  display: flex;
  gap: 10px;
  align-items: baseline;
  font-weight: 680;
  list-style: none;
}
.panel summary::-webkit-details-marker { display: none; }
.panel summary::before { content: '+'; color: #61417e; font-weight: 800; }
.panel[open] summary::before { content: '−'; }
.panel summary small { margin-left: auto; color: var(--muted); white-space: nowrap; }
.panel ul { padding: 0 14px 4px; margin: 0; list-style: none; }
.panel li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 8px 0;
  font-size: .92rem;
}
.panel li strong { color: var(--purple); white-space: nowrap; }
.weight { display: block; color: var(--muted); }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin: 13px 0 0;
}
.metrics div { padding: 9px; border-radius: 9px; background: #f3eff8; }
.metrics dt { font-size: .78rem; color: var(--muted); }
.metrics dd { margin: 4px 0 0; font-weight: 780; font-size: 1.2rem; letter-spacing: -.04em; }
.metrics small { font-size: .74rem; font-weight: 620; }
.menu-total { display: flex; flex-wrap: wrap; gap: 3px 16px; justify-content: space-between; }
.offer { padding: clamp(22px, 4vw, 30px); margin-top: 30px; background: #261937; color: #fff; border: 1px solid #463355; border-radius: 18px; }
.offer h3 { font-size: clamp(1.65rem, 3vw, 2rem); line-height: 1.15; }
.offer p { margin-top: 9px; }
.offer .actions { margin-top: 20px; flex-direction: column; align-items: stretch; }
.offer .booking-button { background: var(--lime); color: #21182e; font-size: 1.05rem; line-height: 1.35; padding: 16px 18px; min-height: 58px; box-shadow: 0 5px 20px #0003; }
.offer .booking-button:hover { background: #e2ff95; }
.offer .booking-button:focus-visible { outline-color: #fff; }
.offer .quiet { color: #e0d7ed; }
.offer .quiet:hover { background: #463355; }

@media (max-width: 850px) {
  .layout { width: min(680px, calc(100% - 32px)); margin: 18px auto 40px; grid-template-columns: 1fr; gap: 15px; }
  .intro, .agent { border-radius: 19px; }
  .mark { display: none; }
  .intro-copy { margin-top: 12px; max-width: none; }
  .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; padding-top: 14px; gap: 10px 8px; }
  .progress li { gap: 6px; font-size: .8rem; }
  .progress .indicator { width: 22px; height: 22px; }
}

@media (max-width: 380px) {
  .columns { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent, .intro { padding: 18px; }
}

.field textarea {
  font: inherit;
  color: var(--ink);
  background: #fcfbfd;
  border: 1px solid #cbc3d7;
  border-radius: 10px;
  padding: 11px 12px;
  width: 100%;
  resize: vertical;
}
.field textarea::placeholder { color: #716a7d; }
.preset-choices { margin-top: 8px; }
.preset-choices button { color: var(--purple); background: #f5f0fa; }
.selected-foods { padding: 14px; border-radius: 10px; background: #f3eff8; font-size: .92rem; }
.selected-foods:empty { display: none; }
.food-edit > summary { cursor: pointer; font-weight: 680; color: var(--purple); }
.food-edit > .fields { margin: 14px 0 0; }
.training-prep {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr));
  gap: 8px;
  margin: 14px 0;
}
.training-prep > div, .nutrition-actions { padding: 13px 14px; border-radius: 10px; background: #f3eff8; }
.training-prep p, .nutrition-actions p { font-size: .9rem; margin-top: 6px; }
.panel .exercises { margin: 0; padding: 0 14px 4px; list-style: none; counter-reset: exercises; }
.panel .exercises li { display: block; padding: 12px 0; counter-increment: exercises; }
.exercises h4 { margin: 0; font-size: 1rem; letter-spacing: -.01em; }
.exercises h4::before { content: counter(exercises) ". "; }
.exercise-dose { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 5px 0; }
.exercise-dose > span, .exercises p { color: var(--muted); }
.load-guide { margin-top: 13px; }
.load-guide > div { padding: 0 14px 12px; }
.load-guide p + p { margin-top: 8px; }
.nutrition-actions { margin-top: 14px; }
.nutrition-actions h4 { margin: 0 0 6px; }

.plan-export .actions { margin-top: 0; }
.export-status { margin-top: 6px; }
.export-status:empty { display: none; }
.export-link { display: inline-block; margin-top: 6px; color: var(--purple); font-size: .88rem; }
.export-text {
  display: block;
  width: 100%;
  margin-top: 8px;
  padding: 9px;
  color: var(--ink);
  background: #fcfbfd;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  resize: vertical;
}

.routine-summary { padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; font-size: .9rem; }
.routine-summary p { margin-top: 4px; white-space: pre-wrap; overflow-wrap: anywhere; }

.training-prep .warmup { grid-column: 1 / -1; }
.weight-note { margin: 10px 0 14px; padding: 12px 14px; background: #f3eff8; border-left: 3px solid #66517d; border-radius: 6px; font-size: .9rem; }

.week-schedule { list-style: none; padding: 0; margin: 14px 0; border: 1px solid var(--line); border-radius: 10px; }
.week-schedule li { display: flex; gap: 12px; padding: 9px 12px; font-size: .9rem; line-height: 1.45; }
.week-schedule li + li { border-top: 1px solid var(--line); }
.week-schedule strong { min-width: 24px; color: var(--purple); }
.plan-notice { padding: 16px; border: 1px solid #d8b26d; border-radius: 12px; background: #fff8e9; margin-top: 16px; }
.plan-notice h4 { margin: 0 0 9px; }
.plan-notice ul { padding-left: 20px; line-height: 1.5; }
.plan-notice p { margin: 8px 0; font-size: .9rem; }
.plan-notice button { padding: 10px 14px; border-radius: 8px; border: 1px solid #bba2d0; font-weight: 650; margin-top: 7px; }
.activity-description { padding: 0 14px 14px; }
