/* Stonewall Fitness marketing site. Static: no scripts and no inline styles (the CSP
   forbids both). The Prism palette as literals — this site has one theme. */
@font-face {
  font-family: 'Bricolage Grotesque';
  src: url('/fonts/bricolage-grotesque-latin-standard-normal.woff2') format('woff2-variations');
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face {
  font-family: 'Figtree';
  src: url('/fonts/figtree-latin-wght-normal.woff2') format('woff2-variations');
  font-weight: 300 900; font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #08080f; --surface: #101020; --surface-2: #18182c; --line: #2a2a40; --edge: #7c7ca6;
  --text: #f1f1fa; --muted: #b9b9d2; --accent: #9a9cff; --on-accent: #06060c; --link: #7fe9c9; --focus: #ffd166;
  --strength: #ff6fa5; --cardio: #ffb547; --mobility: #4fe0a7; --flexibility: #7cb8ff;
  --spectrum: linear-gradient(90deg, #74d7ee, #ffafc8, #ffffff, #ffafc8, #74d7ee, #8b5a3c, #3a2a2a, #e40303, #ff8c00, #ffed00, #00a03a, #004dff, #750787, #c13fb5, #74d7ee);
  --spectrum-text: linear-gradient(100deg, #ff9ec3 0%, #ffd166 28%, #7ff0c4 52%, #8ec5ff 74%, #c7a6ff 100%);
  --gutter: clamp(20px, 6vw, 80px);
  --display: 'Bricolage Grotesque', 'Arial Narrow', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 1.0625rem/1.6 'Figtree', system-ui, sans-serif; overflow-x: hidden; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.06; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 8.6vw, 6.25rem); font-weight: 700; }
h3 { font-size: 1.3rem; letter-spacing: -0.005em; line-height: 1.2; }
em { font-style: normal; }
h1 em, h2 em { background: var(--spectrum-text); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; }
p { margin: 0; }
a { color: var(--link); text-underline-offset: 0.18em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: 12px; top: -80px; padding: 12px 16px; border-radius: 12px; background: var(--accent); color: var(--on-accent); font-weight: 700; z-index: 10; }
.skip:focus { top: 12px; }
.prism { height: 6px; background: var(--spectrum); background-size: 200% 100%; box-shadow: 0 0 18px 2px rgba(255, 140, 200, 0.35); }
body::before {
  content: ''; position: fixed; inset: -20vmax; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38vmax 30vmax at 12% 8%, rgba(255, 92, 168, 0.18), transparent 70%),
    radial-gradient(34vmax 28vmax at 88% 14%, rgba(118, 120, 237, 0.20), transparent 70%),
    radial-gradient(40vmax 30vmax at 50% 96%, rgba(6, 214, 160, 0.10), transparent 70%),
    radial-gradient(30vmax 26vmax at 96% 70%, rgba(255, 196, 0, 0.08), transparent 70%);
  filter: blur(20px);
}

.wordmark { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 700 1.5rem var(--display); letter-spacing: -0.015em; color: var(--text); text-decoration: none; }
.mark { flex: none; filter: drop-shadow(0 4px 14px rgba(154, 156, 255, 0.35)); }

header.site, main, footer.site { padding-inline: var(--gutter); }
header.site { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 18px; max-width: 1280px; margin: 0 auto; }
header.site nav { display: flex; align-items: center; gap: 4px; }
header.site nav a:not(.button) { color: var(--muted); text-decoration: none; font-weight: 600; padding: 12px 12px; }
header.site nav a:not(.button):hover { color: var(--text); }
@media (max-width: 720px) { header.site nav a:not(.button) { display: none; } }

.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; border-radius: 999px;
  border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font-weight: 800; text-decoration: none;
  transition: box-shadow 200ms ease, transform 200ms ease;
}
.button:hover { box-shadow: 0 0 0 3px rgba(154, 156, 255, 0.35), 0 10px 30px -8px rgba(154, 156, 255, 0.75); }
.button.quiet { background: transparent; color: var(--text); border-color: var(--edge); }
.button.quiet:hover { border-color: var(--text); box-shadow: none; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: conic-gradient(#ff5470, #ff9f1c, #ffd60a, #2ec27e, #3a86ff, #a855f7, #ff5470); }
.lead { font-size: clamp(1.15rem, 2vw, 1.35rem); color: var(--muted); max-width: 36ch; }
.fine { font-size: 0.9375rem; color: var(--muted); }

/* Hero: the headline runs huge and left; a phone shows the real product. */
main { max-width: 1280px; margin: 0 auto; }
.hero { display: grid; gap: 48px; padding-block: clamp(32px, 7vh, 96px) clamp(40px, 8vh, 96px); align-items: center; }
.hero-copy { display: grid; gap: 26px; }
@media (min-width: 980px) { .hero { grid-template-columns: 1.25fr 0.75fr; } }

.phone { justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #2a2846, #0d0c18); box-shadow: 0 40px 120px -30px rgba(118, 120, 237, 0.55), inset 0 0 0 1.5px #3a3858;
  transform: rotate(3deg); }
.phone-screen { height: 100%; border-radius: 34px; overflow: hidden; background: #08080f; display: flex; flex-direction: column; gap: 10px; padding: 0 16px 0; position: relative; }
.ph-band { height: 5px; margin: 0 -16px 12px; background: var(--spectrum); background-size: 200% 100%; }
.ph-eyebrow, .ph-label { font-size: 0.6875rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.ph-label { margin-top: 6px; }
.ph-title { font: 700 1.7rem/1.1 var(--display); letter-spacing: -0.01em; }
.ph-title em { background: var(--spectrum-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-card { display: grid; gap: 4px; padding: 12px 14px; border-radius: 14px; background: #101020; border: 1px solid #2a2a40; border-left-width: 4px; font-size: 0.75rem; color: var(--muted); }
.ph-card b { color: var(--text); font: 700 0.95rem var(--display); letter-spacing: -0.01em; }
.ph-strength { border-left-color: var(--strength); } .ph-cardio { border-left-color: var(--cardio); } .ph-mobility { border-left-color: var(--mobility); }
.ph-goal { grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; border-left-color: var(--accent); }
.ph-goal span b { display: block; margin-bottom: 2px; }
.ph-ring { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-style: normal;
  background: conic-gradient(var(--accent) 0 67%, #2a2a40 67% 100%); }
.ph-ring::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #101020; }
.ph-ring em { position: relative; font: 800 0.6875rem var(--display); font-style: normal; color: var(--text); }
.ph-dots { display: flex; gap: 3px; margin-top: 4px; }
.ph-dots u { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); text-decoration: none; }
.ph-dots u.now { background: transparent; box-shadow: inset 0 0 0 1.5px var(--text); }
.ph-dots u.off { background: #2a2a40; }
.ph-button { justify-self: start; margin-top: 4px; font-style: normal; font-weight: 800; color: var(--on-accent); background: var(--accent); padding: 5px 14px; border-radius: 999px; }
.ph-cheer { margin-top: auto; padding: 10px 12px; border-radius: 14px; font-size: 0.75rem; color: var(--text);
  background: linear-gradient(#101020, #101020) padding-box, var(--spectrum-text) border-box; border: 1.5px solid transparent; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); margin: 4px -16px 0; padding: 12px 0 18px; border-top: 1px solid #2a2a40; text-align: center; font-size: 0.6875rem; color: var(--muted); font-weight: 600; }
.ph-tabs .on { color: var(--text); font-weight: 800; }

.marquee { overflow: hidden; border-block: 1px solid var(--line); background: #0c0c18; margin-inline: calc(-1 * var(--gutter)); }
.marquee-track { display: flex; gap: 0; width: max-content; padding: 18px 0; }
.marquee span { font: 700 1.45rem var(--display); letter-spacing: 0; padding: 0 28px; white-space: nowrap; color: var(--muted); }
.marquee span:nth-child(3n + 1) { color: var(--text); }
.marquee span::after { content: '✦'; margin-left: 56px; font-size: 1rem; color: var(--accent); vertical-align: middle; }

.section { padding-block: clamp(64px, 12vh, 140px) 0; display: grid; gap: 28px; }
.section-title { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; max-width: 20ch; }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.feature { display: grid; gap: 10px; align-content: start; padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform 200ms ease, border-color 200ms ease; }
.feature::before { content: ''; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.feature:hover { transform: translateY(-3px); border-color: var(--edge); }
.feature b { font-size: 0.75rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--c); }
.feature p { color: var(--muted); }
.f-strength { --c: var(--strength); } .f-cardio { --c: var(--cardio); } .f-mobility { --c: var(--mobility); } .f-flexibility { --c: var(--flexibility); }

.split { align-items: start; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 60px; } }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.steps li > span { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; font: 800 1.5rem var(--display);
  background: linear-gradient(var(--surface), var(--surface)) padding-box, conic-gradient(#ff5470, #ff9f1c, #ffd60a, #2ec27e, #3a86ff, #a855f7, #ff5470) border-box; border: 3px solid transparent; }
.steps p { color: var(--muted); margin-top: 6px; }

.pillars { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pillars div { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pillars p { color: var(--muted); }

.promise { padding: clamp(32px, 6vw, 64px); margin-top: clamp(64px, 12vh, 140px); border-radius: 32px; justify-items: start;
  background: radial-gradient(60% 80% at 100% 0%, rgba(154, 156, 255, 0.18), transparent 70%), var(--surface); border: 1px solid var(--line); }
.promise-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: 1.15rem; }
.promise-list li { display: flex; gap: 12px; }
.promise-list li::before { content: '✦'; color: var(--accent); }

.cta { justify-items: center; text-align: center; padding-bottom: clamp(64px, 12vh, 140px); }
.cta h2 { font-size: clamp(2.5rem, 7.5vw, 5.25rem); font-weight: 700; }

.page { display: grid; gap: 22px; padding-block: clamp(32px, 7vh, 80px) clamp(64px, 10vh, 120px); max-width: 860px; }
.page h1 { font-size: clamp(2.4rem, 7.5vw, 4.5rem); }
.card { padding: 26px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 14px; justify-items: start; }
.card h2 { font-size: 1.6rem; }
.card ul { margin: 0; padding-left: 1.2em; display: grid; gap: 8px; color: var(--muted); }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); padding: 0 22px; }
.faq summary { min-height: 60px; display: flex; align-items: center; gap: 12px; font: 700 1.15rem var(--display); letter-spacing: -0.01em; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 1.5rem; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details p { padding-bottom: 20px; color: var(--muted); }

footer.site { max-width: 1280px; margin: 0 auto; padding-block: 48px 64px; border-top: 1px solid var(--line); display: grid; gap: 36px; color: var(--muted); }
@media (min-width: 860px) { footer.site { grid-template-columns: 1fr 1.4fr; } }
.foot-brand { display: grid; gap: 12px; align-content: start; }
footer.site nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; }
footer.site nav div { display: grid; gap: 6px; align-content: start; }
footer.site nav h2 { font: 800 0.8125rem 'Figtree', sans-serif; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text); margin-bottom: 6px; }
footer.site nav a { color: var(--muted); text-decoration: none; padding-block: 8px; }
footer.site nav a:hover { color: var(--text); text-decoration: underline; }

@media (prefers-reduced-motion: no-preference) {
  .prism { animation: drift 14s linear infinite; }
  h1 em, h2 em { animation: drift 9s ease-in-out infinite alternate; }
  .marquee-track { animation: marquee 40s linear infinite; }
  .hero-copy > * { animation: rise 700ms cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-copy > *:nth-child(2) { animation-delay: 80ms; }
  .hero-copy > *:nth-child(3) { animation-delay: 160ms; }
  .hero-copy > *:nth-child(4) { animation-delay: 240ms; }
  .phone { animation: float 7s ease-in-out infinite; }
}
@keyframes drift { from { background-position: 0% 50%; } to { background-position: 200% 50%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }
@keyframes float { 0%, 100% { transform: rotate(3deg) translateY(0); } 50% { transform: rotate(2deg) translateY(-10px); } }

/* ── The mark ─────────────────────────────────────────────────────────────
   Ten chevrons. They march in once wherever the mark appears; on the sign-in
   hero, and under the pointer anywhere else, a slow wave keeps travelling
   left to right. Still under reduced motion. Each chevron's place in line is
   --d; the delays are multiples of it. */
.mark polyline { transform-box: fill-box; }
.mark polyline:nth-child(1) { --d: 0s; } .mark polyline:nth-child(2) { --d: 0.05s; } .mark polyline:nth-child(3) { --d: 0.1s; }
.mark polyline:nth-child(4) { --d: 0.15s; } .mark polyline:nth-child(5) { --d: 0.2s; } .mark polyline:nth-child(6) { --d: 0.25s; }
.mark polyline:nth-child(7) { --d: 0.3s; } .mark polyline:nth-child(8) { --d: 0.35s; } .mark polyline:nth-child(9) { --d: 0.4s; }
.mark polyline:nth-child(10) { --d: 0.45s; }
@keyframes mark-in { from { opacity: 0; transform: translateX(-7px); } to { opacity: 1; transform: none; } }
@keyframes mark-wave { 0%, 55%, 100% { opacity: 1; } 28% { opacity: 0.42; } }
@media (prefers-reduced-motion: no-preference) {
  .mark polyline { animation: mark-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; animation-delay: var(--d); }
  header.site .mark polyline, .wordmark:hover .mark polyline, .wordmark:focus-visible .mark polyline {
    animation: mark-in 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both, mark-wave 3.2s ease-in-out infinite;
    animation-delay: var(--d), calc(0.9s + var(--d) * 4);
  }
}
