@font-face { font-family: "Figtree"; src: url("/assets/fonts/Figtree-Variable.ttf") format("truetype"); font-weight: 300 900; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/assets/fonts/BigShouldersDisplay-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

/* Day: a chalk wall with window light. Night: one lamp on a dark wall. Same names as the app's palette. */
:root {
  --bg: #E6E4DE;
  --ink: #15120F;
  --ink2: rgba(21, 18, 15, .66);
  --ink3: rgba(21, 18, 15, .4);
  --line: rgba(21, 18, 15, .14);
  --glass: rgba(255, 255, 255, .62);
  --glass-edge: rgba(255, 255, 255, .75);
  --shadow: rgba(21, 18, 15, .16);
  --accent: #EC3013;
  --accent-hi: #FF5A3C;
  --accent-ink: #B2210B;
  --stage: #1B1816;
  --stage-ink: #F4EFE9;
  --stage-ink2: rgba(244, 239, 233, .66);
  --window: rgba(255, 244, 214, .9);
  --lamp: rgba(255, 170, 80, 0);
  --bezel: #0b0a09;
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0E0C0B; --ink: #F4EFE9; --ink2: rgba(244, 239, 233, .64); --ink3: rgba(244, 239, 233, .38);
    --line: rgba(255, 236, 210, .16); --glass: rgba(255, 236, 210, .06); --glass-edge: rgba(255, 236, 210, .12);
    --shadow: rgba(0, 0, 0, .5); --accent-ink: #FF8A72; --stage: #1A1715; --window: rgba(255, 244, 214, 0); --lamp: rgba(255, 170, 80, .22);
    --bezel: #1c1917; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0E0C0B; --ink: #F4EFE9; --ink2: rgba(244, 239, 233, .64); --ink3: rgba(244, 239, 233, .38);
  --line: rgba(255, 236, 210, .16); --glass: rgba(255, 236, 210, .06); --glass-edge: rgba(255, 236, 210, .12);
  --shadow: rgba(0, 0, 0, .5); --accent-ink: #FF8A72; --stage: #1A1715; --window: rgba(255, 244, 214, 0); --lamp: rgba(255, 170, 80, .22);
  --bezel: #1c1917; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .35s ease, color .35s ease;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }

/* ── the room ── */
.room { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.room .window {
  position: absolute; inset: -10% -10% auto -10%; height: 90%;
  background:
    radial-gradient(60% 70% at 18% 8%, var(--window), transparent 70%),
    repeating-linear-gradient(100deg, transparent 0 140px, rgba(21, 18, 15, .035) 140px 200px);
  filter: blur(6px);
}
.room .lamp {
  position: absolute; width: 90vmax; height: 90vmax; left: 50%; top: -30vmax; translate: -50% 0;
  background: radial-gradient(closest-side, var(--lamp), transparent);
}

/* ── header ── */
.bar {
  position: sticky; top: 12px; z-index: 20; width: min(1160px, 100% - 24px); margin: 12px auto 0;
  display: flex; align-items: center; gap: 20px; padding: 10px 12px 10px 22px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 10px 30px -14px var(--shadow);
}
.brand { font: 900 30px/1 var(--display); letter-spacing: .01em; text-decoration: none; text-transform: uppercase; }
.brand b { color: var(--accent); }
.bar nav { display: flex; gap: 6px; margin-left: auto; }
.cta { text-decoration: none; font-weight: 700; font-size: 15px; color: #fff; background: var(--accent); padding: 11px 20px; border-radius: 999px; box-shadow: 0 8px 20px -8px rgba(236, 48, 19, .7); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s; white-space: nowrap; }
.cta:hover { background: var(--accent-hi); transform: translateY(-1px); }
.cta:active { transform: scale(.96); }
.bar nav a { text-decoration: none; font-weight: 600; font-size: 15px; color: var(--ink2); padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.bar nav a:hover { color: var(--ink); background: var(--line); }
.bulb {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--glass-edge); background: var(--glass); color: var(--ink);
  display: grid; place-items: center; cursor: pointer; transition: transform .25s cubic-bezier(.3, 1.6, .5, 1);
}
.bulb:hover { transform: scale(1.08); }
.bulb:active { transform: scale(.92); }
.bulb .dot { fill: var(--accent); }
.bulb:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ── type ── */
.kicker { margin: 0 0 14px; font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink2); }
.kicker.on-dark { color: var(--accent-hi); }
h1, h2, h3, h4 { font-family: var(--display); text-transform: uppercase; font-weight: 900; margin: 0; letter-spacing: .005em; text-wrap: balance; }
h1 { font-size: clamp(64px, 11vw, 148px); line-height: .88; }
h1 b, .stage h2 b { color: var(--accent); }
h2 { font-size: clamp(38px, 5.4vw, 68px); line-height: .95; }
h3 { font-size: clamp(32px, 4vw, 48px); line-height: .98; }
h4 { font-size: 24px; line-height: 1; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink2); max-width: 34em; margin: 24px 0 0; }
.section-title { max-width: 14em; margin-bottom: 56px; }

/* ── hero ── */
.hero { display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px; padding-block: clamp(36px, 7vw, 90px) clamp(40px, 6vw, 80px); }
.stores { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store {
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 16px; border-radius: 18px;
  background: var(--stage); color: var(--stage-ink); font: 700 20px/1.05 var(--body); border: 1px solid var(--line);
  box-shadow: 0 12px 28px -14px var(--shadow);
}
.store small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.store svg { opacity: .95; }
.stores.on-dark .store { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.hero-art { position: relative; height: clamp(440px, 52vw, 640px); }
.hero-art .phone { position: absolute; width: clamp(200px, 22vw, 290px); }
.hero-art .front { left: 50%; top: 0; translate: -4% 0; rotate: 3deg; z-index: 2; }
.hero-art .back { left: 50%; top: 6%; translate: -96% 0; rotate: -5deg; opacity: .96; }

/* ── phone mockup ── */
.phone {
  position: relative; width: 100%; aspect-ratio: 1080 / 2400; border-radius: 15% / 6.6%; padding: 2.8%;
  background: var(--bezel); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .08) inset, 0 40px 70px -28px var(--shadow), 0 14px 24px -12px var(--shadow);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.phone .screen { position: relative; width: 100%; height: 100%; border-radius: 12.4% / 5.3%; overflow: hidden; background: var(--bg); }
.phone img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.phone img.d { display: none; }
:root[data-theme="dark"] .phone img.l { display: none; }
:root[data-theme="dark"] .phone img.d { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone img.l { display: none; }
  :root:not([data-theme="light"]) .phone img.d { display: block; }
}

/* ── contact strip under the hero ── */
.strip-wrap { padding-block: 0 clamp(8px, 2vw, 24px); }
.strip {
  display: flex; align-items: center; justify-content: space-between; gap: 16px 28px; flex-wrap: wrap;
  padding: 20px 26px; border-radius: 28px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 16px 36px -22px var(--shadow);
}
.strip p { margin: 0; font-size: 18px; color: var(--ink2); }
.strip p b { color: var(--ink); font-weight: 700; }
.strip-mail {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 900 30px/1 var(--display); letter-spacing: .02em;
  color: #fff; background: var(--accent); padding: 14px 24px; border-radius: 999px; box-shadow: 0 12px 26px -12px rgba(236, 48, 19, .8);
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), background .2s;
}
.strip-mail:hover { background: var(--accent-hi); transform: translateY(-2px); }
.strip-mail:focus-visible, .cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

/* ── the dark stage card (the app's hero card) ── */
.stage {
  position: relative; overflow: hidden; border-radius: 40px; padding: clamp(32px, 6vw, 80px); color: var(--stage-ink);
  background: radial-gradient(70% 90% at 85% 0%, rgba(236, 48, 19, .32), transparent 60%), var(--stage);
  box-shadow: 0 40px 80px -40px var(--shadow); border: 1px solid rgba(255, 255, 255, .06);
}
.stage h2 { max-width: 15em; }
.stage-lead { font-size: clamp(18px, 2vw, 22px); color: var(--stage-ink2); max-width: 34em; margin: 24px 0 0; }
.stage.center { text-align: center; }
.stage.center h2, .stage.center .stage-lead { margin-inline: auto; }
.stage.center .stores { justify-content: center; }
.mission { padding-block: clamp(20px, 4vw, 40px); }
.pillars { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pillars li { padding: 22px; border-radius: 24px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.pillars b { display: block; font: 900 34px/1 var(--display); text-transform: uppercase; color: var(--stage-ink); margin-bottom: 8px; }
.pillars span { color: var(--stage-ink2); font-size: 16px; }

/* the loaded bar */
.bar-art { position: relative; height: 56px; margin-top: 44px; display: flex; align-items: center; justify-content: center; gap: 0; }
.bar-art i { display: block; }
.bar-art .shaft { position: absolute; left: 0; right: 0; top: 50%; height: 8px; margin-top: -4px; border-radius: 4px; background: linear-gradient(#8f8b86, #5d5955); }
.bar-art .gap { flex: 0 0 min(30%, 280px); }
.bar-art .collar { width: 7px; height: 26px; background: #a9a39b; border-radius: 2px; position: relative; }
.bar-art .plate { position: relative; width: 14px; border-radius: 4px; margin-inline: 1px; box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.bar-art .p1 { height: 56px; background: linear-gradient(90deg, #d8281a, #ec3013 60%, #b3200d); }
.bar-art .p2 { height: 44px; background: linear-gradient(90deg, #f2c62d, #ffd84a 60%, #c9a01c); }

/* ── features ── */
.features { padding-block: clamp(60px, 9vw, 120px) 20px; }
.feature { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(28px, 6vw, 90px); padding-block: clamp(36px, 6vw, 80px); }
.feature.flip .copy { order: 2; }
.feature .copy p { color: var(--ink2); margin: 18px 0 0; max-width: 30em; }
.feature .copy .kicker { color: var(--accent-ink); margin: 0 0 14px; }
.feature .art { display: grid; place-items: center; }
.feature .art .phone { width: min(300px, 68vw); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 500; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-6.5' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ── coaches ── */
.coaches { padding-block: clamp(40px, 6vw, 90px); }
.coach-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(16px, 3vw, 40px); align-items: center; }
.coach-grid .art .phone { width: 100%; max-width: 280px; margin-inline: auto; }
.coach-grid .art:nth-child(2) { margin-top: 56px; }
.coach-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.coach-list li {
  padding: 18px 20px; border-radius: 22px; background: var(--glass); border: 1px solid var(--glass-edge);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 14px 30px -20px var(--shadow);
}
.coach-list b { display: block; font-weight: 700; font-size: 17px; }
.coach-list span { display: block; color: var(--ink2); font-size: 15px; margin-top: 2px; line-height: 1.5; }

/* ── details ── */
.details { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: clamp(30px, 5vw, 70px); }
.detail { padding: 22px; border-radius: 24px; background: var(--glass); border: 1px solid var(--glass-edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.detail h4 { margin-bottom: 8px; }
.detail p { margin: 0; color: var(--ink2); font-size: 15px; line-height: 1.55; }

.soon { padding-block: clamp(20px, 4vw, 40px) clamp(50px, 8vw, 100px); }

.contact { margin-top: clamp(40px, 6vw, 72px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid rgba(255, 255, 255, .1); }
.contact .stage-lead { margin-top: 14px; font-size: 17px; }
.mail {
  display: inline-block; font: 900 clamp(34px, 6vw, 72px)/1 var(--display); letter-spacing: .01em; color: var(--stage-ink);
  text-decoration: none; border-bottom: 4px solid var(--accent); padding-bottom: 4px; transition: color .2s;
  overflow-wrap: anywhere;
}
.mail:hover { color: var(--accent-hi); }
.mail:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.foot-mail { font-weight: 600; color: var(--ink); text-decoration-color: var(--accent); text-underline-offset: 3px; }

/* ── footer ── */
.foot { padding-block: 28px 56px; display: grid; gap: 8px; border-top: 1px solid var(--line); }
.foot p { margin: 0; color: var(--ink2); font-size: 15px; }
.foot .fine { color: var(--ink3); font-size: 13px; max-width: 46em; }

/* ── motion: only when JS is on, and everything is visible at rest otherwise ── */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .8s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .phone, .bulb { transition: none; }
}

/* the circle of light when the switch is flipped */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ── responsive ── */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; text-align: left; }
  .hero-art { height: clamp(420px, 96vw, 560px); order: 2; }
  .hero-art .phone { width: clamp(170px, 42vw, 250px); }
  .coach-grid { grid-template-columns: 1fr 1fr; }
  .coach-list { grid-column: 1 / -1; }
  .coach-grid .art:nth-child(2) { margin-top: 0; }
  .details { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .bar nav { display: none; }
  .bar { padding-left: 18px; }
  .cta { margin-left: auto; padding: 10px 16px; }
  .strip { padding: 18px; }
  .strip-mail { width: 100%; justify-content: center; font-size: 28px; }
  .feature { grid-template-columns: 1fr; gap: 24px; }
  .feature.flip .copy { order: 0; }
  .pillars { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .stage { border-radius: 30px; }
}
