/* GymFrame website: dark "glass" look from website/design/Main.dc.html */
:root {
  --bg: #07070a;
  --ink: #ffffff;
  --mute: rgba(255, 255, 255, 0.66);
  --faint: rgba(255, 255, 255, 0.55);
  --line: rgba(255, 255, 255, 0.14);
  --accent: #ff6a3d;
  --accent-ink: #160801;
  --accent-soft: #ff8a5c;
  --scan: #4f8cff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-snap-type: y proximity; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: #fff; text-decoration: none; }
a:hover { color: #ffc3a8; }
img, video { max-width: 100%; }
:focus-visible { outline: 3px solid var(--scan); outline-offset: 3px; border-radius: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* glass */
.g { background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(170%); -webkit-backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 24px 70px rgba(0, 0, 0, 0.4); }

/* motion */
@keyframes fl { 50% { transform: translateY(-14px); } }
@keyframes dr { 50% { transform: translate(70px, -50px) scale(1.15); } }
@keyframes pin { from { opacity: 0; transform: translateY(10px) scale(0.85); } }
@keyframes up { from { opacity: 0; transform: translateY(28px); } }
@keyframes sh { 0% { transform: translateX(-120%); } 60%, 100% { transform: translateX(220%); } }
.fl { animation: fl 7s ease-in-out infinite; }
.dr { animation: dr 18s ease-in-out infinite; }
.pin { animation: pin 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) both; }
.up { animation: up 1s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.lift { transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.4s; }
.lift:hover { transform: translateY(-8px); border-color: rgba(255, 255, 255, 0.32); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font: 700 16px Inter, system-ui, sans-serif; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s; }
.btn:hover { color: var(--accent-ink); transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 106, 61, 0.5); }
.btn:disabled { opacity: 0.6; cursor: wait; transform: none; box-shadow: none; }
.shine { position: relative; overflow: hidden; }
.shine::after { content: ""; position: absolute; inset: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent); animation: sh 5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::after { animation: none !important; transition: none !important; } html { scroll-behavior: auto; scroll-snap-type: none; } .rv { opacity: 1; transform: none; } }

/* layout */
.page { position: relative; overflow: clip; min-height: 100vh; }
.blob { position: absolute; border-radius: 50%; filter: blur(30px); pointer-events: none; }
.wrap { position: relative; max-width: 1200px; margin: 0 auto; padding: 22px 24px 0; }
.nav { position: fixed; top: 16px; left: 50%; width: min(1152px, calc(100% - 48px)); transform: translateX(-50%); transition: opacity 0.4s, transform 0.4s; z-index: 20; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 10px 10px 22px; border-radius: 999px; }
.logo { display: flex; align-items: center; gap: 10px; min-height: 44px; }
.logo img { display: block; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-size: 15px; font-weight: 500; }
.nav-links a:not(.btn) { padding: 12px 14px; color: rgba(255, 255, 255, 0.8); }
.nav-links .btn { min-height: 44px; padding: 0 20px; font-size: 15px; }
h1, h2, h3 { margin: 0; }
.h-xl { font-size: clamp(44px, 7vw, 88px); line-height: 0.98; font-weight: 800; letter-spacing: -0.045em; }
.h-l { font-size: clamp(34px, 5vw, 56px); line-height: 1.02; font-weight: 800; letter-spacing: -0.04em; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: rgba(255, 255, 255, 0.72); }
.kicker { margin: 0; font-size: 14px; font-weight: 700; color: var(--accent); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, 0.85); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--scan); box-shadow: 0 0 12px var(--scan); flex: none; }
section { scroll-margin-top: 100px; }

/* scroll stories: a tall section with a stage that sticks while you scroll through it */
.nav.away { opacity: 0; transform: translate(-50%, -12px); pointer-events: none; }
.scrolly { position: relative; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; display: block; }

/* intro */
.intro { height: 260vh; background: #000; }
/* resting points: scrolling settles here, then carries on if you keep going */
.snap { position: absolute; left: 0; width: 1px; height: 1px; scroll-snap-align: start; pointer-events: none; }
.snap.hold { top: calc(0.72 * 160vh); }
.intro .stage { display: grid; place-items: center; background: radial-gradient(60% 50% at 50% 55%, rgba(255, 106, 61, 0.16), transparent 70%), #000; }
.device { position: absolute; left: 50%; top: 50%; width: 300px; height: 648px; margin: -324px 0 0 -150px; padding: 11px; --s: 1; }
.bezel { position: absolute; inset: 0; border-radius: 54px; background: linear-gradient(160deg, #2c2c33, #0b0b0e); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.65), 0 0 120px rgba(255, 106, 61, 0.12); opacity: 0; }
.device .screen { position: relative; width: 278px; height: 626px; overflow: hidden; border-radius: 44px; background: #000; transform: translateZ(0); }
.splash { display: grid; place-items: center; background: #000; }
.splash img { width: 72%; height: auto; }
.device .tag, .device .built { opacity: 0; transform: scale(0.85); transition: opacity 0.35s, transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3); font-size: calc(14px / var(--s)); padding: calc(9px / var(--s)) calc(14px / var(--s)); white-space: nowrap; }
.device .tag .dot { width: calc(8px / var(--s)); height: calc(8px / var(--s)); }
.device .tag.on, .device .built.on { opacity: 1; transform: none; }
.device .tag:nth-of-type(2) { transition-delay: 0.15s; }
.device .tag:nth-of-type(3) { transition-delay: 0.3s; }
.t1 { top: 24%; right: calc(100% + 18px); } .t2 { top: 36%; left: calc(100% + 18px); } .t3 { top: 50%; right: calc(100% + 18px); }
.device .tag, .device .built { background: rgba(14, 14, 18, 0.92); border: 1px solid rgba(255, 255, 255, 0.18); color: #fff; box-shadow: 0 12px 34px rgba(0, 0, 0, 0.45); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tag { position: absolute; display: flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; }
.built { position: absolute; bottom: 18%; left: calc(100% + 18px); padding: 12px 16px; border-radius: 20px; font-size: 13px; color: rgba(255, 255, 255, 0.75); }
.device .built { font-size: calc(13px / var(--s)); border-radius: calc(20px / var(--s)); }
.built b { display: block; font-size: 1.7em; color: #fff; letter-spacing: -0.02em; }
.device .built { color: rgba(255, 255, 255, 0.75); }
.device .built b { color: var(--accent-soft); }
.intro-logo { position: absolute; z-index: 2; left: 50%; top: 50%; width: min(62vw, 760px); height: auto; transform: translate(-50%, -50%); pointer-events: none; }
.intro-tag { z-index: 3; position: absolute; left: 0; right: 0; bottom: 15vh; text-align: center; padding: 0 20px; }
.intro-tag p { margin: 0; font-size: clamp(22px, 3vw, 34px); font-weight: 800; letter-spacing: -0.03em; }
.intro-tag span { color: rgba(255, 255, 255, 0.5); }
.hint { z-index: 3; position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.55); }
.hint span { width: 24px; height: 38px; border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 14px; position: relative; }
.hint span::after { content: ""; position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }
.copy { position: absolute; z-index: 3; left: max(24px, calc((100vw - 1152px) / 2)); top: 50%; width: min(520px, 40vw); transform: translateY(-50%); opacity: 0; }
.beat-stack { display: grid; }
.beat { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity 0.5s, transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1); }
.beat.on { opacity: 1; transform: none; }
.beat .lead { margin: 20px 0 0; }
.beat .kicker { margin-bottom: 14px; }
.beat-bars { display: flex; gap: 8px; margin-top: 28px; }
.beat-bars span { position: relative; width: 46px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.beat-bars span::after { content: ""; position: absolute; inset: 0; width: calc(var(--f, 0) * 100%); background: var(--accent); border-radius: 4px; }
.cta-btn { margin-top: 30px; }

/* how it works */
.how { height: 330vh; }
.how .stage { display: flex; align-items: center; justify-content: center; gap: clamp(30px, 7vw, 110px); padding-top: 70px; }
.how-phone { flex: none; }
.phone { box-sizing: border-box; width: 300px; height: 648px; padding: 10px; border-radius: 54px; background: linear-gradient(160deg, #2a2a30, #0b0b0e); border: 1px solid rgba(255, 255, 255, 0.2); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.6); }
.phone .screen { position: relative; width: 278px; height: 626px; overflow: hidden; border-radius: 44px; background: #000; transform: translateZ(0); }
.phone .screen .layer { opacity: 0; transition: opacity 0.5s; }
.phone .screen .layer.on { opacity: 1; }
.how-copy { flex: 0 1 480px; min-width: 0; position: relative; }
.how-steps { list-style: none; margin: 34px 0 0; padding: 0 0 0 26px; }
.how-steps li { padding: 16px 0; opacity: 0.32; transition: opacity 0.4s, transform 0.4s; transform: translateX(0); }
.how-steps li.on { opacity: 1; transform: translateX(8px); }
.how-steps h3 { margin-top: 6px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.how-steps li p:not(.kicker) { margin: 8px 0 0; color: var(--mute); }
.how-steps { position: relative; --hp: 0; }
.how-steps::before, .how-steps::after { content: ""; position: absolute; left: 0; top: 16px; width: 3px; border-radius: 3px; }
.how-steps::before { bottom: 16px; background: rgba(255, 255, 255, 0.12); }
.how-steps::after { height: calc((100% - 32px) * var(--hp)); background: var(--accent); }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(40px); transition: opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
.feats .rv:nth-child(2), .prices .rv:nth-child(2) { transition-delay: 0.1s; }
.feats .rv:nth-child(3), .prices .rv:nth-child(3) { transition-delay: 0.2s; }
.feats .rv:nth-child(4) { transition-delay: 0.3s; }
.lift.rv.in:hover { transform: translateY(-8px); }
#features { padding-top: 120px !important; }

/* forms */
.signup { display: flex; flex-wrap: wrap; gap: 10px; max-width: 520px; }
.signup input { flex: 1 1 240px; min-width: 0; min-height: 56px; padding: 0 22px; border-radius: 999px; color: #fff; font: 500 16px Inter, system-ui, sans-serif; outline: none; }
.signup input::placeholder { color: rgba(255, 255, 255, 0.5); }
.signup .btn { min-height: 56px; padding: 0 28px; }
.form-msg { min-height: 22px; margin: 12px 0 0; font-size: 14px; color: var(--faint); }
.form-msg.ok { color: #8ff0b4; }
.form-msg.err { color: #ff9aa9; }

/* cards */
.cards { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 48px; }
.step { flex: 1 1 300px; min-width: 0; border-radius: 32px; padding: 26px 26px 0; overflow: hidden; }
.step h3 { margin-top: 8px; font-size: 26px; font-weight: 700; letter-spacing: -0.02em; }
.step p.body { margin: 10px 0 0; font-size: 16px; color: var(--mute); }
.step img { display: block; width: 78%; margin: 26px auto 0; aspect-ratio: 390 / 430; object-fit: cover; object-position: top; border-radius: 28px 28px 0 0; border: 1px solid var(--line); border-bottom: 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; margin-top: 46px; }
.feat { border-radius: 28px; padding: 22px; }
.feat h3 { margin-top: 14px; font-size: 20px; font-weight: 700; }
.feat p { margin: 8px 0 0; font-size: 15px; color: var(--mute); }
.shots { display: flex; flex-wrap: wrap; justify-content: center; gap: 22px; margin-top: 56px; }
.shots img { width: 230px; max-width: 44%; border-radius: 34px; border: 8px solid #141418; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
.shots img:nth-child(even) { margin-top: 40px; }
.panel { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; border-radius: 40px; padding: clamp(28px, 5vw, 64px); margin-bottom: 120px; }
.story { position: relative; width: 300px; max-width: 100%; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; border: 8px solid #141418; box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55); }
.story img { position: absolute; }
.prices { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; margin-top: 46px; }
.price { position: relative; flex: 1 1 280px; max-width: 360px; border-radius: 32px; padding: 30px; }
.price.best { border-color: rgba(255, 138, 92, 0.6); background: rgba(255, 110, 60, 0.1); }
.price h3 { font-size: 20px; font-weight: 700; }
.price .amt { margin: 14px 0 0; font-size: 46px; font-weight: 800; letter-spacing: -0.03em; }
.price .amt small { font-size: 17px; font-weight: 600; color: rgba(255, 255, 255, 0.6); }
.price .sub { margin: 4px 0 0; font-size: 15px; color: rgba(255, 255, 255, 0.65); }
.price ul { margin: 22px 0 0; padding: 0 0 0 18px; font-size: 15px; line-height: 2; color: rgba(255, 255, 255, 0.82); }
.badge { position: absolute; top: -13px; left: 30px; padding: 5px 12px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 700; }
.cta { border-radius: 40px; padding: clamp(32px, 6vw, 72px); text-align: center; margin-bottom: 60px; }
.cta .signup { justify-content: center; margin: 30px auto 0; }

/* footer */
.foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 0 40px; border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 14px; color: var(--faint); }
.foot nav { display: flex; flex-wrap: wrap; gap: 2px; }
.foot nav a { padding: 12px; color: rgba(255, 255, 255, 0.72); }

/* text pages (privacy, support, terms) */
.doc { max-width: 760px; margin: 0 auto; padding: 140px 0 90px; }
.doc h1 { font-size: clamp(36px, 5vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.04em; }
.doc h2 { margin: 44px 0 12px; font-size: 24px; font-weight: 700; letter-spacing: -0.02em; }
.doc h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; }
.doc h1, .doc h2, .doc h3 { scroll-margin-top: 100px; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.8); font-size: 16px; }
.doc a { color: var(--accent-soft); text-decoration: underline; text-underline-offset: 3px; }
.doc strong { color: #fff; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .table { overflow-x: auto; margin: 16px 0; border-radius: 18px; border: 1px solid var(--line); }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.doc th { color: #fff; background: rgba(255, 255, 255, 0.05); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }
.card { border-radius: 24px; padding: 22px 24px; margin: 18px 0; }
.faq details { border-radius: 20px; padding: 4px 20px; margin: 12px 0; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; font-size: 17px; color: #fff; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--accent-soft); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.steps-list { counter-reset: s; list-style: none; padding: 0; }
.steps-list li { counter-increment: s; position: relative; padding-left: 44px; margin: 14px 0; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; display: grid; place-items: center; font-size: 15px; }

@media (max-width: 860px) {
  .intro-logo { width: 80vw; }
  .nav-links a:not(.btn) { display: none; }
  /* phones: copy at the top of the stage, phone below it */
  .copy { left: 16px; right: 16px; width: auto; top: 84px; transform: none; text-align: center; }
  .beat .h-xl { font-size: clamp(30px, 8.6vw, 44px); }
  .beat .lead { margin-top: 8px; font-size: 15px; line-height: 1.45; }
  .beat .kicker { margin-bottom: 6px; }
  .beat-bars { justify-content: center; margin-top: 14px; }
  .cta-btn { display: none; }
  /* tags overlap the phone's edge a little so they stay on screen */
  .t1, .t3 { right: auto; left: -46px; } .t2 { left: auto; right: -46px; }
  .built { left: auto; right: -30px; bottom: 10%; }
  .device .built { font-size: calc(11px / var(--s)); }
  .how { height: 300vh; }
  .how .stage { flex-direction: column; justify-content: flex-start; padding-top: 96px; gap: 22px; }
  .how-phone { order: 2; transform-origin: top center; }
  .how-copy { order: 1; text-align: center; padding: 0 20px; }
  .how-copy .h-l { font-size: 30px; }
  .how-steps { margin: 14px 0 0; padding: 0; position: relative; min-height: 128px; }
  .how-steps li p:not(.kicker) { font-size: 15px; }
  .how-steps li { position: absolute; inset: 0 0 auto 0; padding: 0; transform: translateY(10px); opacity: 0; }
  .how-steps li.on { opacity: 1; transform: none; }
  .how-steps::before, .how-steps::after { display: none; }
}
@media (max-width: 560px) {
  .wide-only { display: none; }
  .logo { gap: 8px; }
  .logo img:first-child { height: 17px !important; }
  .logo img:last-child { height: 18px !important; }
  .nav-links .btn { padding: 0 16px; font-size: 14.5px; min-height: 42px; }
  .wrap { padding: 16px 16px 0; }
  .nav { padding: 8px 8px 8px 16px; width: calc(100% - 32px); }
  .shots img { max-width: 46%; border-width: 6px; border-radius: 26px; }
  .doc { padding: 110px 0 70px; }
}
