/* Aspen coaching page by DapsStudioCo
   Colors for each theme are at the top. Change a hex value to recolor everything that uses it. */

:root,
[data-theme="chalk"] {
  --page: #f4f2ee;
  --ink: #121212;
  --muted: #5b5b57;
  --line: #dcd8d0;
  --soft: #e9e6df;
  --accent: #ff5a1f;       /* buttons, highlights */
  --accent-ink: #ffffff;
  --band: #121212;         /* footer */
  --band-ink: #f4f2ee;
  color-scheme: light;
}
[data-theme="iron"] {
  --page: #0f1011;
  --ink: #f1f1ee;
  --muted: #9a9c97;
  --line: #2a2c2e;
  --soft: #18191b;
  --accent: #d4ff3a;
  --accent-ink: #0f1011;
  --band: #d4ff3a;
  --band-ink: #0f1011;
  color-scheme: dark;
}
[data-theme="coastal"] {
  --page: #f3f6f8;
  --ink: #0f2747;
  --muted: #4f6077;
  --line: #d4dde6;
  --soft: #e4ecf2;
  --accent: #ff6b57;
  --accent-ink: #ffffff;
  --band: #0f2747;
  --band-ink: #f3f6f8;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font: 400 1.0625rem/1.6 "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
body.has-sticky { padding-bottom: 92px; }
h1, h2, h3 { font-family: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif; font-weight: 800; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--page); padding: 10px 16px; border-radius: 8px; z-index: 60; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding-left: max(22px, env(safe-area-inset-left)); padding-right: max(22px, env(safe-area-inset-right)); }
.wrap.narrow { max-width: 820px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 10px; border: 2px solid transparent; background: none; color: inherit; font: 700 1rem/1.2 "Barlow", system-ui, sans-serif; letter-spacing: .02em; text-decoration: none; cursor: pointer; transition: transform .15s ease, filter .15s ease, background .15s ease; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn.ghost { border-color: currentColor; }
.btn.ghost:hover { background: color-mix(in srgb, currentColor 8%, transparent); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); min-height: min(92vh, 860px); padding-top: env(safe-area-inset-top); }
.hero-photo { order: 2; margin: 0; background: var(--soft); position: relative; overflow: hidden; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 55%; }
.hero-photo.missing img { visibility: hidden; }
.hero-body { order: 1; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; max-width: 640px; margin-left: auto; margin-right: 0; }
/* The signature: the role sits on a strip of slanted "gym tape" */
.role { align-self: flex-start; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; padding: 7px 14px 6px; transform: rotate(-2.5deg); margin: 0 0 22px 4px; box-shadow: 4px 4px 0 var(--ink); }
.hero h1 { font-size: clamp(3.4rem, 7.4vw, 6.4rem); font-weight: 900; line-height: .9; text-transform: uppercase; overflow-wrap: break-word; hyphens: manual; }
.intro { margin-top: 22px; font-size: 1.2rem; color: var(--muted); max-width: 34ch; }
.hero .actions { margin-top: 30px; }
.stats { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats li { border-top: 4px solid var(--ink); padding-top: 10px; }
.stats b { display: block; font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; font-size: clamp(2.2rem, 4vw, 3rem); line-height: 1; }
.stats span { color: var(--muted); font-size: .95rem; font-weight: 500; }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 96px) 0; }
.section + .section { border-top: 1px solid var(--line); }
.section h2 { font-size: clamp(2.4rem, 5vw, 3.6rem); font-weight: 900; line-height: .95; text-transform: uppercase; margin-bottom: 30px; }
.kicker { color: var(--accent); font-weight: 700; letter-spacing: .04em; margin-bottom: 8px; }
[data-theme="chalk"] .kicker, [data-theme="coastal"] .kicker { color: color-mix(in srgb, var(--accent) 80%, var(--ink)); }

/* Quiz */
.quiz-wrap { background: var(--soft); }
.quiz { background: var(--page); border: 2px solid var(--ink); border-radius: 18px; padding: clamp(22px, 4vw, 36px); box-shadow: 8px 8px 0 var(--ink); }
.quiz-bar { height: 8px; border-radius: 8px; background: var(--line); overflow: hidden; margin-bottom: 18px; }
.quiz-bar span { display: block; height: 100%; background: var(--accent); transition: width .35s ease; }
.quiz-count { color: var(--muted); font-weight: 600; font-size: .95rem; }
.quiz-q, .quiz-result { font-size: clamp(1.9rem, 4vw, 2.5rem); text-transform: uppercase; line-height: 1; margin: 6px 0 20px; }
.quiz-result { color: var(--ink); outline: none; }
.quiz-why { color: var(--muted); margin: -8px 0 22px; font-size: 1.1rem; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { text-align: left; min-height: 56px; padding: 14px 18px; border: 2px solid var(--line); border-radius: 12px; background: none; color: var(--ink); font: 600 1.08rem/1.3 "Barlow", system-ui, sans-serif; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.quiz-opt:hover { border-color: var(--accent); transform: translateX(3px); }

/* Programs */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px 24px; border: 2px solid var(--line); border-radius: 18px; background: var(--page); transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.plan.featured { border-color: var(--ink); box-shadow: 8px 8px 0 var(--accent); }
.plan.match { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 30%, transparent); transform: translateY(-4px); }
.flag { position: absolute; top: -14px; left: 22px; background: var(--ink); color: var(--page); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 5px 12px; border-radius: 6px; }
.plan h3 { font-size: 1.9rem; text-transform: uppercase; line-height: 1; }
.plan-note { color: var(--muted); }
.plan-price b { font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; font-size: 3rem; line-height: 1; }
.plan-price span { color: var(--muted); font-weight: 600; }
.plan ul { list-style: none; margin: 6px 0 14px; padding: 0; flex: 1; }
.plan li { padding: 8px 0 8px 28px; border-bottom: 1px solid var(--line); position: relative; }
.plan li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 14px; height: 8px; border-left: 3px solid var(--accent); border-bottom: 3px solid var(--accent); transform: rotate(-45deg); }
.plan .btn { width: 100%; }

/* Schedule */
.week { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.day { background: var(--soft); border-radius: 14px; padding: 14px; border: 2px solid transparent; }
.day.today { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--page)); }
.day h3 { display: flex; align-items: center; justify-content: space-between; font-size: 1.6rem; text-transform: uppercase; margin-bottom: 8px; }
.day h3 em { font: 700 .75rem/1 "Barlow", sans-serif; font-style: normal; letter-spacing: .06em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); padding: 5px 8px; border-radius: 6px; }
.class { background: var(--page); border-radius: 10px; padding: 10px 12px; margin-top: 8px; }
.c-time { font-weight: 700; }
.c-name { font-weight: 500; }
.c-spots { font-size: .88rem; color: var(--muted); font-weight: 600; }
.class.full { opacity: .55; }
.class.full .c-name { text-decoration: line-through; }

/* Results */
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.result { margin: 0; padding: 26px 24px; border-radius: 18px; background: var(--soft); display: flex; flex-direction: column; gap: 8px; }
.r-big { font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 900; font-size: 2.1rem; line-height: 1; text-transform: uppercase; }
.r-time { color: var(--muted); font-weight: 600; margin-top: -4px; }
.result blockquote { margin: 8px 0 12px; font-size: 1.05rem; flex: 1; }
.result figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.r-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.r-photo.ini { display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); font-size: .9rem; }

/* About */
.about { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.about-photo { margin: 0; border-radius: 18px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); box-shadow: 10px 10px 0 var(--accent); }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }
.prose p { font-size: 1.15rem; }
.prose p + p { margin-top: 1em; }
.creds { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.creds li { border: 2px solid var(--ink); border-radius: 999px; padding: 6px 14px; font-weight: 600; font-size: .92rem; }

/* FAQ */
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; position: relative; font-weight: 700; font-size: 1.12rem; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-family: "Big Shoulders Display", Impact, sans-serif; font-size: 2rem; font-weight: 800; color: var(--accent); }
.faq-list details[open] summary::after { content: "\2212"; }
.faq-list details p { padding: 0 0 18px; color: var(--muted); }

/* Footer */
.footer { background: var(--band); color: var(--band-ink); padding: 72px 0 calc(64px + env(safe-area-inset-bottom)); }
.footer h2 { font-size: clamp(2.8rem, 7vw, 5rem); font-weight: 900; line-height: .9; text-transform: uppercase; }
.footer-sub { margin: 16px 0 28px; font-size: 1.15rem; opacity: .8; max-width: 40ch; }
.footer .btn.primary { background: var(--accent); color: var(--accent-ink); }
[data-theme="iron"] .footer .btn.primary { background: var(--band-ink); color: var(--band); }
.place { margin-top: 30px; opacity: .7; }
.theme-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; font-size: .92rem; }
.theme-picker button { min-height: 36px; padding: 0 14px; border: 2px solid currentColor; border-radius: 8px; background: none; color: inherit; font: 700 .9rem/1 "Barlow", sans-serif; cursor: pointer; }
.theme-picker button[aria-pressed="true"] { background: var(--band-ink); color: var(--band); }

/* Sticky */
.sticky { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 560px; margin: 0 auto; padding: 10px 10px 10px 18px; background: var(--page); color: var(--ink); border: 2px solid var(--ink); border-radius: 14px; box-shadow: 6px 6px 0 var(--ink); }
.sticky span { font-family: "Big Shoulders Display", Impact, sans-serif; font-weight: 800; font-size: 1.3rem; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky .btn { flex-shrink: 0; }
@media (min-width: 861px) { .sticky { display: none !important; } body.has-sticky { padding-bottom: 0; } }

/* ---------- Phones ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-photo { order: 1; height: 56vh; min-height: 320px; }
  .hero-body { order: 2; margin: 0; max-width: none; padding-top: 34px; }
  .about { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .about-photo { max-width: 420px; }
  .week { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
  .day { flex: 0 0 72%; scroll-snap-align: start; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .hero .actions .btn, .footer .actions .btn { flex: 1 1 100%; }
  .stats { gap: 10px; }
  .quiz { box-shadow: 5px 5px 0 var(--ink); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
