/* Myolith website. Colours, shapes and type follow the iPhone app's theme. */
:root {
  --bg: #0B0D10;
  --bg-2: #0E1115;
  --surface: #14181D;
  --surface-hi: #1C2128;
  --line: rgba(255, 255, 255, .08);
  --fg: #EEF1F5;
  --fg-2: #A7B0BD;
  --prime: #FF5634;
  --syn: #FFAD33;
  --stab: #48B6EA;
  --heat: linear-gradient(90deg, #FF4A2B, #FF8A33);
  --display: Archivo, Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1160px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p { margin: 0; }
a { color: var(--fg-2); text-decoration: none; }
a:hover { color: var(--fg); }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--stab); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.display { font-family: var(--display); font-stretch: 125%; font-weight: 800; letter-spacing: -0.012em; line-height: 1.02; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--syn); }
.eyebrow--quiet { color: var(--fg-2); }
.eyebrow--cool { color: var(--stab); }
.lead { font-size: clamp(17px, 1.6vw, 19px); color: var(--fg-2); max-width: 640px; }
.h2 { font-size: clamp(34px, 4.6vw, 64px); margin-top: 14px; max-width: 860px; }
.section { padding: 96px 0; }
.center { text-align: center; }
.center .h2, .center .lead { margin-left: auto; margin-right: auto; }

.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; color: var(--bg); }

/* Buttons */
.cta { display: inline-block; background: var(--heat); color: #fff; font-size: 19px; font-weight: 700; line-height: 1.2; padding: 18px 34px; border-radius: 999px; box-shadow: 0 8px 28px rgba(255, 86, 52, .35); transition: transform .2s ease, box-shadow .2s ease; }
.cta:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 86, 52, .45); }
.cta--small { padding: 11px 22px; box-shadow: none; }
.cta--block { display: block; text-align: center; padding: 16px 20px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.cta-row--center { justify-content: center; }
.cta-note { font-size: 15px; color: var(--fg-2); }

/* Sticky pieces: the reading-progress line and the header stay at the top while the page scrolls. */
.progress { position: fixed; left: 0; top: 0; z-index: 60; width: 100%; height: 3px; background: var(--heat); transform: scaleX(0); transform-origin: 0 50%; }
.site-header { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; transition: background .25s ease, border-color .25s ease; }
.site-header.is-stuck { background: rgba(11, 13, 16, .78); -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px); border-bottom-color: var(--line); }
.site-header__in { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--fg); }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-size: 20px; }

/* Hero */
.hero { position: relative; padding: 64px 0 40px; text-align: center; }
.hero__glow { position: absolute; left: 50%; top: -160px; width: 900px; height: 700px; margin-left: -450px; background: radial-gradient(closest-side, rgba(255, 86, 52, .22), rgba(255, 173, 51, .06) 55%, transparent); pointer-events: none; }
.hero > .wrap { position: relative; }
.hero h1 { font-size: clamp(40px, 7.2vw, 100px); line-height: .98; margin: 18px auto 0; max-width: 1040px; }
.hero .lead { margin: 26px auto 0; font-size: clamp(17px, 1.6vw, 21px); }
.hero .cta-row { margin-top: 34px; }

/* The figure explorer */
.explorer { border: 1px solid var(--line); border-radius: 32px; background: radial-gradient(circle at 30% 38%, #252D37, #12161B 55%, var(--bg)); padding: 28px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.explorer__stage { flex: 1 1 380px; min-width: 0; }
.explorer__info { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 22px; }
.explorer__info h2 { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.05; }

.stage { position: relative; width: 100%; aspect-ratio: 1 / 1; max-height: 560px; border-radius: 24px; overflow: hidden; }
.stage__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s ease; }
.stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; opacity: 0; transition: opacity .5s ease; color-scheme: dark; }
.stage.is-live iframe { opacity: 1; }
.stage.is-live .stage__poster { opacity: 0; }
.stage__hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: none; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: rgba(11, 13, 16, .7); border: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--fg); white-space: nowrap; pointer-events: none; transition: opacity .4s ease; }
.stage.is-live .stage__hint { display: flex; }
.stage.is-touched .stage__hint { opacity: 0; }
.stage--avatar { aspect-ratio: 4 / 5; max-height: 380px; background: radial-gradient(closest-side, rgba(255, 86, 52, .28), transparent); }

.tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.seg button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--fg-2); font-size: 15px; font-weight: 700; }
.seg button[aria-pressed="true"] { background: var(--fg); color: var(--bg); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-hi); color: var(--fg-2); font-size: 15px; font-weight: 600; transition: transform .15s ease; }
.chip:hover { transform: translateY(-1px); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--heat); border-color: transparent; color: #fff; }

.tiers { display: flex; flex-direction: column; gap: 12px; font-size: 16px; margin: 0; }
.tiers div { display: flex; gap: 12px; align-items: baseline; }
.tiers dt { width: 132px; flex: none; color: var(--fg-2); display: flex; align-items: center; gap: 10px; }
.tiers dt::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); flex: none; }
.tiers dd { margin: 0; font-weight: 600; }
.cue { background: rgba(255, 173, 51, .1); border: 1px solid rgba(255, 173, 51, .28); border-radius: 16px; padding: 14px 16px; min-height: 96px; }
.cue p:last-child { margin-top: 6px; font-size: 16px; line-height: 1.5; }

/* Feature tiles */
.tiles { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.tile { flex: 1 1 300px; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 28px; transition: transform .25s ease, border-color .25s ease; }
.tile:hover { transform: translateY(-4px); border-color: rgba(255, 86, 52, .5); }
.tile--wide { flex: 2 1 520px; }
.tile--col { display: flex; flex-direction: column; }
.tile h3 { font-size: 26px; line-height: 1.2; margin-top: 10px; }
.tile p:not(.eyebrow) { color: var(--fg-2); margin-top: 10px; }
.stills { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 22px; }
.stills img { width: 100%; border-radius: 20px; background: radial-gradient(circle at 50% 38%, #252D37, #12161B 70%); }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin: 18px 0 0; padding: 0; list-style: none; text-align: center; font-size: 11px; font-weight: 700; color: var(--fg-2); }
.week li::after { content: ""; display: block; height: 44px; margin-top: 6px; border-radius: 10px; background: rgba(28, 33, 40, .6); }
.week .is-a::after { background: rgba(255, 86, 52, .25); }
.week .is-b::after { background: rgba(72, 182, 234, .25); }

/* Coach */
.rules { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 44px; }
.rule { flex: 1 1 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px; transition: transform .25s ease, border-color .25s ease; }
.rule:hover { transform: translateY(-4px); border-color: rgba(255, 86, 52, .5); }
.rule h3 { font-size: 21px; margin: 18px 0 8px; }
.rule p { color: var(--fg-2); }

/* Private */
.band { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.points { display: flex; flex-wrap: wrap; gap: 44px 56px; margin-top: 56px; }
.point { flex: 1 1 420px; min-width: 0; display: flex; gap: 18px; align-items: flex-start; }
.point__icon { width: 52px; height: 52px; flex: none; border-radius: 50%; background: rgba(72, 182, 234, .14); display: flex; align-items: center; justify-content: center; color: var(--stab); }
.point h3 { font-size: 23px; line-height: 1.25; }
.point p { margin-top: 10px; color: var(--fg-2); }

/* Hold to commit */
.commit { max-width: 760px; margin: 0 auto; }
.pledge { font-size: clamp(22px, 2.4vw, 30px); font-weight: 600; margin-top: 40px; }
.hold { position: relative; width: 168px; height: 168px; margin: 36px auto 0; }
.hold__ripple { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--prime); animation: ripple 2.2s ease-out infinite; }
.hold__btn { position: absolute; inset: 0; border: 0; border-radius: 50%; background: var(--surface-hi); color: #fff; display: flex; align-items: center; justify-content: center; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .25s ease, background .4s ease, box-shadow .4s ease; }
.hold__btn svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.hold__ring { stroke-dasharray: 490; stroke-dashoffset: 490; transition: stroke-dashoffset .3s ease-out; }
.hold__word { position: relative; font-size: 15px; font-weight: 700; letter-spacing: .14em; }
.hold.is-holding .hold__btn { background: #C7401F; box-shadow: 0 0 60px rgba(255, 86, 52, .5); transform: scale(.94); }
.hold.is-holding .hold__ring { stroke-dashoffset: 0; transition: stroke-dashoffset 1.6s linear; }
.hold.is-holding .hold__ripple, .hold.is-done .hold__ripple { animation: none; opacity: 0; }
.hold.is-done .hold__btn { background: var(--heat); box-shadow: 0 0 70px rgba(255, 86, 52, .6); transform: scale(1.04); }
.hold.is-done .hold__ring { stroke-dashoffset: 0; }
.hold__label { font-size: 16px; font-weight: 700; color: var(--fg-2); margin-top: 20px; }

/* Pricing */
.pricing { padding: 24px 0 96px; animation: reveal .6s ease-out; }
.plans { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 48px; align-items: stretch; text-align: left; }
.plan { flex: 1 1 280px; background: var(--surface); border: 1px solid var(--line); border-radius: 28px; padding: 32px; }
.plan--main { flex: 1.2 1 320px; background: var(--surface-hi); border: 2px solid var(--prime); box-shadow: 0 18px 60px rgba(255, 86, 52, .18); }
.plan h3 { font-size: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.badge { background: var(--heat); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.price { font-size: 48px; margin-top: 14px; }
.price small { font-family: var(--body); font-stretch: 100%; font-size: 17px; font-weight: 500; letter-spacing: 0; color: var(--fg-2); }
.plan__week { color: var(--syn); font-weight: 600; margin-top: 8px; }
.plan p.plan__text { color: var(--fg-2); margin: 14px 0 22px; }
.plan__fine { margin-top: 12px; text-align: center; font-size: 14px; color: var(--fg-2); }

/* Questions */
.faq { max-width: 820px; margin: 0 auto; }
.faq h2 { font-size: clamp(28px, 3.4vw, 44px); }
.faq__list { margin-top: 32px; display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; }
.faq summary { min-height: 60px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; font-size: 18px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--prime); font-size: 24px; font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { padding: 0 22px 20px; color: var(--fg-2); }

/* Closing and footer */
.closing { position: relative; padding: 24px 0 110px; text-align: center; overflow: hidden; }
.closing__glow { position: absolute; left: 50%; bottom: 0; width: 800px; height: 420px; margin-left: -400px; background: radial-gradient(closest-side, rgba(255, 86, 52, .2), transparent); pointer-events: none; }
.closing > .wrap { position: relative; }
.closing h2 { font-size: clamp(34px, 5.2vw, 76px); line-height: 1; }
.closing .lead { margin: 22px auto 0; max-width: 520px; }
.closing .cta { margin-top: 34px; }
.closing .cta-note { display: block; margin-top: 16px; }
.site-footer { border-top: 1px solid var(--line); font-size: 15px; }
.site-footer__in { padding-top: 36px; padding-bottom: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 26px; }
.site-footer p { color: var(--fg-2); }

/* Legal pages */
.legal { max-width: 760px; margin: 0 auto; padding: 56px 24px 96px; }
.legal h1 { font-size: clamp(34px, 5vw, 56px); margin-top: 14px; }
.legal .updated { color: var(--fg-2); margin-top: 16px; }
.legal .summary { margin-top: 32px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px; }
.legal .summary p + p { margin-top: 10px; }
.legal h2 { font-family: var(--body); font-size: 23px; line-height: 1.3; margin-top: 44px; }
.legal h3 { font-size: 18px; margin-top: 26px; }
.legal p, .legal li { color: var(--fg-2); }
.legal p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 22px; }
.legal li { margin-top: 8px; }
.legal strong { color: var(--fg); font-weight: 600; }
.legal a { color: var(--fg); text-decoration: underline; text-decoration-color: var(--prime); text-underline-offset: 3px; }

/* Things that slide up as they come into view */
.rise { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.rise.is-in { opacity: 1; transform: none; }
.no-js .rise { opacity: 1; transform: none; }

@keyframes ripple { 0% { transform: scale(1); opacity: .55; } 100% { transform: scale(1.5); opacity: 0; } }
@keyframes reveal { 0% { opacity: 0; transform: translateY(24px); } 100% { opacity: 1; transform: none; } }

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .section { padding: 72px 0; }
  .wrap { padding: 0 18px; }
  .explorer { padding: 16px; border-radius: 24px; gap: 20px; }
  .cta { font-size: 19px; padding: 16px 26px; }
  .cta--small { padding: 10px 18px; }
  .tile, .plan { padding: 22px; border-radius: 24px; }
  .tiers dt { width: 118px; }
  .site-footer__in { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
}
