:root {
  --ice: #7dd3fc;
  --ice-2: #dff7ff;
  --navy: #07111f;
  --blue: #1d7ed0;
  --orange: #ff7a18;
  --panel: rgba(248, 250, 252, 0.94);
  --muted: #94a3b8;
  --line: rgba(125, 211, 252, 0.25);
  --shadow: 0 24px 80px rgba(2, 8, 23, 0.35);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 0%, rgba(125, 211, 252, 0.18), transparent 35%), var(--navy);
  color: #f8fafc;
  overflow-x: hidden;
}

.ice-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(125, 211, 252, 0.08) 50%, transparent 50.2%),
    radial-gradient(circle at 50% 28%, transparent 0 88px, rgba(125, 211, 252, 0.08) 89px 91px, transparent 92px),
    linear-gradient(180deg, rgba(255,255,255,0.03), transparent 35%);
  opacity: 0.9;
}

a { color: inherit; }
.hero, main, footer { position: relative; z-index: 1; }
.hero { z-index: 40; overflow: visible; }
main, footer { z-index: 1; }

.topbar {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  justify-items: center;
  gap: 22px;
  margin-bottom: 30px;
}
.brand-mark, .nav-pills { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.brand-mark { color: #f8fafc; font-weight: 800; letter-spacing: 0.02em; text-decoration: none; }
.puck {
  width: 26px;
  height: 26px;
  display: inline-block;
  border-radius: 999px;
  background: linear-gradient(145deg, #0f172a, #020617);
  border: 2px solid rgba(125, 211, 252, 0.5);
  box-shadow: inset 0 0 12px rgba(125, 211, 252, 0.18), 0 6px 18px rgba(0,0,0,0.4);
}
.nav-group { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; width: 100%; }
.site-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(125, 211, 252, 0.42);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: #e0f2fe;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(2, 8, 23, 0.18);
}
.site-share-button:hover,
.site-share-button:focus-visible {
  background: rgba(125, 211, 252, 0.16);
  border-color: rgba(186, 230, 253, 0.7);
  color: #ffffff;
  outline: none;
}
.site-share-button svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.site-share-button .share-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.site-share-button[data-share-state="copied"] {
  background: rgba(34, 197, 94, 0.18);
  border-color: rgba(134, 239, 172, 0.58);
  color: #bbf7d0;
}
.nav-pills span {
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--ice-2);
  background: rgba(255,255,255,0.06);
  font-size: 0.82rem;
  font-weight: 700;
}
details.tool-menu { position: relative; display: inline-flex; align-items: center; z-index: 100000; margin: 0; padding: 0; border-top: 0; line-height: 1; }
.tool-menu[open] { z-index: 100001; }
.tool-menu summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  list-style: none;
  cursor: pointer;
  border: 1px solid rgba(125, 211, 252, 0.46);
  border-radius: 999px;
  min-height: 0;
  padding: 7px 13px;
  color: #03101d;
  background: linear-gradient(135deg, var(--ice), #38bdf8);
  font-size: 0.82rem;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(56, 189, 248, 0.18);
}
.tool-menu summary::-webkit-details-marker { display: none; }
.tool-menu summary::after { content: ' ▾'; font-size: 0.78em; }
.tool-menu[open] summary::after { content: ' ▴'; }
.tool-menu-panel {
  position: absolute;
  z-index: 100002;
  left: 50%;
  right: auto;
  top: calc(100% + 10px);
  transform: translateX(-50%);
  width: min(340px, calc(100vw - 44px));
  padding: 10px;
  border: 1px solid rgba(125, 211, 252, 0.28);
  border-radius: 20px;
  background: rgba(3, 16, 29, 0.96);
  box-shadow: 0 24px 70px rgba(2, 8, 23, 0.52);
  backdrop-filter: blur(14px);
}
.tool-menu-panel a { display: grid; gap: 2px; padding: 12px 13px; border-radius: 14px; color: #f8fafc; text-decoration: none; }
.tool-menu-panel a:hover { background: rgba(125, 211, 252, 0.13); }
.tool-menu-panel strong { font-size: 0.98rem; }
.tool-menu-panel span { color: #bae6fd; font-size: 0.82rem; font-weight: 700; }

.hero {
  padding: 26px 20px 22px;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 22px 34px;
  align-items: start;
}
.topbar { grid-column: 1 / -1; }
.hero-copy { min-width: 0; grid-column: 1; }
.hero h1 { margin: 4px 0 8px; font-size: clamp(2.1rem, 6vw, 4.1rem); letter-spacing: -0.06em; line-height: 0.94; max-width: 700px; }
.lede { font-size: 1.08rem; color: #dbeafe; max-width: 680px; margin: 0; line-height: 1.45; }
.eyebrow { color: var(--ice); text-transform: uppercase; letter-spacing: .14em; font-weight: 900; font-size: .74rem; margin: 0 0 5px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.primary-link, .secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 900;
  text-decoration: none;
}
.primary-link { background: linear-gradient(135deg, var(--blue), #0c4f96); color: #fff; box-shadow: 0 14px 24px rgba(29,126,208,.18); }
.secondary-link { background: #fff; color: var(--blue); border: 1px solid #b9dcf7; }
.primary-link:focus, .secondary-link:focus, .primary-link:hover, .secondary-link:hover { outline: 3px solid rgba(29,126,208,.18); outline-offset: 2px; }
.hero-card {
  position: static;
  width: 100%;
  min-height: 156px;
  grid-column: 2;
  grid-row: 2;
  align-self: start;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(7, 24, 39, .08);
  background: linear-gradient(135deg, #071827, #16415f);
  color: #fff;
  box-shadow: 0 18px 40px rgba(7, 24, 39, .17);
}
.hero-card strong { font-size: 1.05rem; line-height: 1.05; }
.hero-card span { color: #d8edff; font-size: .82rem; line-height: 1.32; }

main { max-width: 1120px; margin: 0 auto; padding: 0 20px 38px; display: grid; gap: 18px; }
.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 0;
}
.trust-strip span {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px;
  color: #e0f2fe;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 28px rgba(7, 24, 39, 0.07);
}
.panel { background: rgba(15, 23, 42, 0.72); border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.section-intro { margin-bottom: 14px; }
h2 { margin: 0 0 14px; font-size: 1.45rem; }
.section-intro h2 { margin-bottom: 6px; }

.access-card {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(240px, .8fr);
  gap: 14px;
  align-items: end;
  margin: 0 0 18px;
  padding: 14px;
  border: 1px solid rgba(125, 211, 252, 0.25);
  border-radius: 18px;
  background: rgba(7, 24, 39, 0.52);
}
.access-card strong { display: block; color: #f8fafc; font-size: 1.05rem; margin-bottom: 4px; }
.access-card span { display: block; color: #cfefff; line-height: 1.4; font-size: .92rem; }
.access-card label { color: #f8fafc; }
.access-lock-note { display: block; margin-top: 8px; color: #cbd5e1; font-size: .88rem; line-height: 1.35; }
.access-lock-note a { color: #bfdbfe; font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
.access-card option:disabled { color: #94a3b8; }

.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.onboarding-grid { align-items: end; }
.wide-field { grid-column: span 3; }
label { font-weight: 750; font-size: .94rem; color: #e0f2fe; }
select { width: 100%; margin-top: 7px; border: 1px solid rgba(186, 230, 253, 0.26); border-radius: 12px; padding: 12px; font: inherit; background: rgba(15, 23, 42, 0.82); color: #f8fafc; }
fieldset { border: 0; padding: 0; margin: 18px 0 0; }
legend { font-weight: 850; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips label { display: inline-flex; align-items: center; gap: 7px; padding: 10px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); border-radius: 999px; cursor: pointer; }
.chips input { accent-color: var(--blue); }
button { border: 0; border-radius: 14px; font: inherit; font-weight: 850; cursor: pointer; }
.primary { margin-top: 20px; background: linear-gradient(135deg, var(--blue), #0c4f96); color: #fff; padding: 14px 18px; width: 100%; box-shadow: 0 14px 24px rgba(29,126,208,.22); }
.form-note { color: var(--muted); font-size: .9rem; line-height: 1.4; margin: 10px 0 0; }
.ghost { background: #edf5fc; color: #07111f; padding: 10px 12px; }
.section-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.mini-note { color: var(--muted); margin: 0; font-size: .88rem; }
code { background: #eef5fb; padding: 2px 5px; border-radius: 5px; }

.plan-output { display: grid; gap: 14px; }
.plan-summary-card {
  border: 1px solid #cfe4f5;
  border-radius: 20px;
  padding: 16px;
  background: linear-gradient(135deg, #f8fcff 0%, #eaf6ff 100%);
  color: #0f172a;
  display: grid;
  gap: 12px;
}
.plan-summary-card h3 { margin: 0 0 6px; font-size: 1.25rem; }
.plan-summary-card p { margin: 0; color: #334155; line-height: 1.4; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.summary-grid div { background: rgba(255,255,255,.82); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.summary-grid strong { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .09em; color: #475569; margin-bottom: 3px; }
.summary-grid span { color: #0f172a; font-weight: 850; }
.focus-row { display: flex; flex-wrap: wrap; gap: 7px; }
.week-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.week-list li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid rgba(7,24,39,.08); color: #0f172a; padding-bottom: 7px; }
.week-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.inline-demo-link { width: fit-content; }
.save-options-card {
  border: 1px solid #b9dcf7;
  border-radius: 18px;
  padding: 14px;
  background: rgba(255,255,255,.86);
  display: grid;
  gap: 8px;
}
.save-options-card h3 { margin: 0; color: #0f172a; }
.save-options-card p { margin: 0; color: #334155; }
.save-options-details { margin-top: 4px; }
.save-options-details > summary { list-style: none; width: fit-content; }
.save-options-details > summary::-webkit-details-marker { display: none; }
.save-options-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.save-email-form,
.save-member-explainer { border: 1px solid #dbeafe; border-radius: 16px; padding: 13px; background: #fff; display: grid; gap: 9px; }
.save-email-form h4,
.save-member-explainer h4 { margin: 0; color: #0f172a; }
.save-email-form label { color: #0f172a; }
.save-email-form input[type="email"] { width: 100%; margin-top: 7px; border: 1px solid #cbd5e1; border-radius: 12px; padding: 11px 12px; font: inherit; color: #0f172a; background: #fff; }
.save-email-form .primary { margin-top: 0; }
.save-member-explainer ul { margin: 0; padding-left: 18px; color: #334155; }
.save-member-button { border: 1px solid #b9dcf7; }
.day-card { border: 1px solid var(--line); border-radius: 18px; padding: 0; background: linear-gradient(180deg, #fff, #f9fcff); color: #0f172a; overflow: hidden; }
.day-card,
.day-card summary,
.day-card p,
.day-card li,
.activity-detail,
.activity-detail p { color: #1e293b; }
.day-card summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 16px; font-weight: 900; }
.day-card summary::-webkit-details-marker { display: none; }
.day-card summary::after { content: '+'; width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; background: #edf5fc; color: var(--blue); flex: 0 0 auto; }
.day-card[open] summary::after { content: '–'; }
.day-card summary em { font-style: normal; color: #475569; font-weight: 750; font-size: .86rem; margin-left: auto; }
.block { margin: 0 16px 14px; padding-left: 12px; border-left: 4px solid var(--blue); }
.block h4 { margin: 0 0 7px; font-size: 1rem; }
.block ul { margin: 0; padding-left: 18px; color: #25394a; }
.block li { margin: 5px 0; }
.plan-item-topline { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.plan-item-topline span { min-width: 0; }
.demo-jump {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #e8f4ff;
  color: var(--blue);
  border: 1px solid #b9dcf7;
  font-size: .78rem;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(29,126,208,.12);
}
.demo-jump::before { content: '✓'; font-size: .72rem; margin-right: 5px; }
.demo-jump:focus, .demo-jump:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.activity-detail { margin-bottom: 12px; }
.activity-detail p { margin: 4px 0 0; color: #334155; line-height: 1.35; }
.activity-detail b { color: var(--navy); }
.safety { border-radius: 14px; background: #fff7ed; color: #7a3d00; padding: 12px; border: 1px solid #ffd6a8; font-weight: 700; }

.workout-ai-panel {
  display: grid;
  gap: 12px;
  border-color: rgba(125, 211, 252, 0.28);
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.82), rgba(7, 24, 39, 0.76));
}
.workout-ai-panel label { color: #f8fafc; }
.workout-ai-panel textarea {
  width: 100%;
  min-height: 92px;
  resize: vertical;
  border: 1px solid rgba(186, 230, 253, 0.26);
  border-radius: 14px;
  padding: 12px;
  font: inherit;
  background: rgba(248, 252, 255, 0.96);
  color: #0f172a;
}
.workout-ai-panel textarea::placeholder { color: #64748b; }
.workout-ai-panel .primary { margin-top: 0; }
.workout-ai-answer {
  min-height: 56px;
  border: 1px solid rgba(186, 230, 253, 0.24);
  border-radius: 16px;
  padding: 13px;
  background: rgba(248, 252, 255, 0.94);
  color: #1e293b;
  line-height: 1.45;
  white-space: pre-wrap;
}
.workout-ai-answer.loading { color: #0c4f96; font-weight: 850; }
.workout-ai-answer.error { background: #fff7ed; color: #7a3d00; border-color: #ffd6a8; }

.exercise-library { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.exercise-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; color: #0f172a; scroll-margin-top: 16px; transition: box-shadow .2s ease, border-color .2s ease, transform .2s ease; }
.exercise-card:focus { outline: none; }
.exercise-card.demo-highlight { border-color: var(--orange); box-shadow: 0 0 0 4px rgba(255, 122, 24, .18), var(--shadow); transform: translateY(-2px); }
.guide-slot { min-height: 168px; background: linear-gradient(135deg, #071827, #16415f); display: grid; place-items: center; color: #d8edff; padding: 18px; text-align: center; position: relative; }
.guide-slot:not(.has-demo)::after { content: 'Movement guide'; position: absolute; bottom: 10px; right: 10px; font-size: .7rem; opacity: .7; }
.guide-slot.has-demo { padding: 0; background: #071827; display: block; }
.guide-slot video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #f4f6f8; }
.demo-caption { position: absolute; left: 10px; bottom: 10px; margin: 0; padding: 4px 8px; border-radius: 999px; background: rgba(7, 24, 39, .78); color: #fff; font-size: .72rem; }
.guide-icon { width: 56px; height: 56px; border-radius: 50%; background: rgba(255,255,255,.16); display: grid; place-items: center; margin: 0 auto 8px; border: 1px solid rgba(255,255,255,.25); color: #fff; font-weight: 900; }
.guide-slot:not(.has-demo) p { margin: 6px 0 0; color: #d8edff; font-size: .84rem; line-height: 1.35; max-width: 260px; }
.exercise-body { padding: 14px; color: #0f172a; }
.exercise-body h3 { margin: 0 0 8px; color: #07111f; }
.purpose { color: #334155; margin: 0 0 10px; }
.detail-grid { display: grid; gap: 10px; }
.detail-grid div { color: #1e293b; }
.detail-grid li { color: #334155; }
.source-note { background: #f8fcff; border: 1px dashed #b9dcf7; border-radius: 12px; padding: 10px; color: #334155; }
.back-to-plan { display: inline-flex; margin-top: 12px; color: var(--blue); font-weight: 900; text-decoration: none; }
.back-to-plan:focus, .back-to-plan:hover { text-decoration: underline; }
.detail-grid strong { display: block; margin-bottom: 3px; color: var(--navy); }
.detail-grid ul { margin: 0; padding-left: 18px; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.badge { background: var(--ice); color: #16415f; padding: 5px 8px; border-radius: 999px; font-size: .76rem; font-weight: 800; }

footer { max-width: 1120px; margin: 0 auto; padding: 0 20px 30px; color: var(--muted); font-size: .9rem; }
footer a { color: var(--blue); font-weight: 900; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; }
  .hero-card { grid-column: 1; grid-row: auto; }
}

@media (max-width: 760px) {
  .hero { padding: 24px 16px 18px; gap: 12px; align-items: start; }
  .topbar { grid-template-columns: 1fr; gap: 12px; margin-bottom: 18px; }
  .brand-mark { max-width: 100%; }
  .nav-group { justify-content: flex-start; gap: 10px; width: 100%; }
  .tool-menu { width: 100%; margin-right: 0; }
  .tool-menu summary { width: 100%; text-align: center; }
  .tool-menu-panel {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 66px;
    width: auto;
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 88px);
    overflow: auto;
    transform: none;
    box-sizing: border-box;
  }
  .tool-menu-panel a,
  .tool-menu-panel strong,
  .tool-menu-panel span { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
  .nav-pills { width: 100%; gap: 8px; display: grid; grid-template-columns: 1fr; }
  .nav-pills span { width: 100%; text-align: center; }
  .hero-copy { grid-column: 1; }
  .hero h1 { font-size: clamp(2.05rem, 10vw, 2.8rem); max-width: 100%; }
  .hero-card { position: static; width: 100%; min-height: auto; grid-column: 1; }
  .hero-actions { gap: 8px; }
  .primary-link, .secondary-link { width: 100%; }
  .trust-strip { grid-template-columns: 1fr; }
  .trust-strip span { font-size: .82rem; padding: 10px 8px; }
  .access-card, .grid, .exercise-library, .summary-grid, .save-options-grid { grid-template-columns: 1fr; }
  .wide-field { grid-column: auto; }
  .section-head { flex-direction: column; }
  .panel { border-radius: 18px; padding: 16px; }
  .day-card summary { align-items: flex-start; }
  .day-card summary span { min-width: 0; }
  .day-card summary em { display: block; margin-left: 0; margin-top: 3px; }
  .plan-item-topline { align-items: flex-start; }
  .demo-jump { min-height: 38px; padding: 8px 12px; }
  .exercise-card { scroll-margin-top: 10px; }
}

@media (max-width: 430px) {
  body { width: 100%; max-width: 100%; }
  main { padding-left: 12px; padding-right: 12px; }
  .hero { padding-left: 12px; padding-right: 12px; overflow: hidden; }
  .hero *, main * { min-width: 0; max-width: 100%; }
  .nav-pills { display: grid; grid-template-columns: 1fr; }
  .nav-pills span { width: 100%; }
  .hero h1 { font-size: clamp(2.05rem, 11vw, 2.7rem); overflow-wrap: normal; }
  .trust-strip { grid-template-columns: 1fr; }
  .chips label { width: 100%; }
  .week-list li, .plan-item-topline { flex-direction: column; align-items: flex-start; }
  .demo-jump { width: 100%; }
}
