/* APEX — shared styles for the marketing site (index, pricing, coaches,
   features-*). Same tokens as the app and the old landing page. */
:root {
  --bg: #08080a; --surface: #0f0f13; --surface2: #16161c; --surface3: #1d1d25;
  --border: rgba(255,255,255,0.06); --border2: rgba(255,255,255,0.1);
  --text: #eeecf0; --muted: #8a8794; --muted2: #7c8599;
  --accent: #c8f135; --accent2: #a5cc22;
  --red: #ff5252; --amber: #ffb547; --blue: #5b9fff; --purple: #b197fc; --teal: #2dd4bf;
  --display: 'Syne', sans-serif; --mono: 'DM Mono', monospace; --ui: 'Space Grotesk', sans-serif;
}
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 76px; } /* anchors land below the sticky nav */
body { background: var(--bg); color: var(--text); font-family: var(--ui); font-size: 15px; line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.accent { color: var(--accent); }
.dim { color: var(--muted); }

/* layout */
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 84px 0; }
.section.tight { padding: 56px 0; }
.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(28px, 4vw, 44px); line-height: 1.08; letter-spacing: -1px; }
.section-sub { color: var(--muted); font-size: 15px; line-height: 1.75; max-width: 640px; margin-top: 14px; }
.center { text-align: center; }
.center .section-sub { margin-left: auto; margin-right: auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 56px; text-align: center; }
.hero::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 900px; height: 520px; background: radial-gradient(ellipse, rgba(200,241,53,0.08) 0%, transparent 68%); pointer-events: none; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: #b0b7c3; margin-bottom: 16px; }
.hero h1 { font-family: var(--display); font-weight: 900; font-size: clamp(40px, 7vw, 84px); line-height: 1.02; letter-spacing: -2px; position: relative; }
.lead { font-size: clamp(15px, 2vw, 18px); color: #a9a6b2; line-height: 1.7; max-width: 640px; margin: 20px auto 0; position: relative; }
.lead strong { color: var(--text); }
.actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 15px 26px; border-radius: 10px; font-family: var(--display); font-weight: 800; font-size: 15px; text-decoration: none; cursor: pointer; border: 1px solid var(--border2); background: none; color: var(--text); transition: background .15s, border-color .15s, opacity .15s; }
.btn:hover { border-color: rgba(255,255,255,0.35); }
.btn-primary { background: var(--accent); color: #000; border-color: transparent; }
.btn-primary:hover { background: var(--accent2); }
.btn-ghost { border-color: rgba(200,241,53,0.45); color: var(--accent); background: rgba(200,241,53,0.06); }
.btn:disabled { opacity: .6; cursor: default; }
.hero-note { font-size: 12px; color: var(--muted2); margin-top: 14px; position: relative; }

/* "I train / I coach" split */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 36px auto 0; position: relative; }
.split a { display: block; text-align: left; text-decoration: none; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--border2); background: var(--surface); transition: border-color .15s, transform .15s; }
.split a:hover { border-color: rgba(200,241,53,0.5); transform: translateY(-2px); }
.split a.on { border-color: rgba(200,241,53,0.45); background: linear-gradient(135deg, rgba(200,241,53,0.09), rgba(200,241,53,0.02)); }
.split b { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 4px; }
.split span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* phones */
.phone-stack { position: relative; width: min(440px, 92%); margin: 44px auto 0; aspect-ratio: 1 / 0.92; }
.phone-stack img { position: absolute; border-radius: 26px; border: 1px solid var(--border2); box-shadow: 0 30px 80px rgba(0,0,0,0.6); }
.phone-stack .main { width: 46%; left: 27%; top: 0; z-index: 2; }
.phone-stack .side { width: 38%; top: 9%; opacity: .55; }
.phone-stack .left { left: 0; transform: rotate(-7deg); }
.phone-stack .right { right: 0; transform: rotate(7deg); }
.shot { border-radius: 24px; border: 1px solid var(--border2); box-shadow: 0 24px 60px rgba(0,0,0,0.55); max-width: 300px; margin: 0 auto; }
.caption { font-size: 11px; color: var(--muted2); letter-spacing: .05em; margin-top: 12px; text-align: center; }

/* HTML phone mockups (crisp at any size; illustrations with demo data) */
.hm-phone { width: 290px; max-width: 100%; margin: 0 auto; padding: 9px; border-radius: 40px; background: linear-gradient(160deg, #24242c, #121216); border: 1px solid var(--border2); box-shadow: 0 24px 60px rgba(0,0,0,0.55), inset 0 0 0 1px rgba(255,255,255,0.04); text-align: left; }
.hm-screen { border-radius: 32px; background: var(--bg); overflow: hidden; display: flex; flex-direction: column; min-height: 560px; font-size: 11.5px; line-height: 1.45; color: var(--text); }
.hm-status { display: flex; justify-content: space-between; padding: 10px 22px 4px; font-size: 11px; font-weight: 700; }
.hm-body { flex: 1; padding: 8px 14px 12px; display: flex; flex-direction: column; gap: 7px; }
.hm-hi { font-family: var(--display); font-size: 17px; font-weight: 800; letter-spacing: -.3px; line-height: 1.2; }
.hm-sub { color: var(--muted); margin-top: -4px; }
.hm-title { font-family: var(--display); font-size: 16px; font-weight: 800; }
.hm-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.hm-tiles > div { background: var(--surface2); border: 1px solid var(--border); border-radius: 9px; padding: 6px 7px; min-width: 0; }
.hm-tiles span { display: block; font-size: 9px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-tiles b { display: block; font-family: var(--display); font-size: 15px; }
.hm-tiles i { display: block; font-style: normal; font-size: 8.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-phone .a { color: var(--accent); } .hm-phone .r { color: #ff5c5c; }
.hm-h { font-size: 10px; font-weight: 800; color: var(--muted); letter-spacing: .04em; margin-top: 4px; }
.hm-ag { display: grid; grid-template-columns: 50px 50px 1fr; gap: 6px; padding: 6px 0; border-top: 1px solid var(--border); align-items: baseline; }
.hm-ag b { font-size: 10px; } .hm-ag span { font-size: 9.5px; color: var(--muted); font-weight: 700; }
.hm-ag em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hm-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.hm-chips span { font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid rgba(200,241,53,0.35); color: var(--muted); }
.hm-chips span.on { background: rgba(200,241,53,0.14); color: var(--accent); }
.hm-card { background: var(--surface2); border: 1px solid var(--border); border-radius: 11px; padding: 8px 9px; }
.hm-who { font-size: 10px; font-weight: 700; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.hm-who i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.hm-fact { margin: 3px 0 6px; font-weight: 600; }
.hm-btns { display: flex; gap: 5px; justify-content: flex-end; }
.hm-btns span { font-size: 10px; font-weight: 800; padding: 4px 9px; border-radius: 7px; border: 1px solid var(--border2); }
.hm-btns span.p { background: var(--accent); color: #000; border-color: transparent; }
.hm-map { width: 100%; height: auto; border: 1px solid var(--border); border-radius: 11px; background: radial-gradient(circle at 50% 50%, rgba(200,241,53,0.08), transparent 65%); }
.hm-doc { font-size: 10.5px; color: var(--muted); padding: 6px 8px; border: 1px dashed var(--border2); border-radius: 8px; }
.hm-msg { padding: 8px 10px; border-radius: 12px; max-width: 92%; }
.hm-msg.me { align-self: flex-end; background: rgba(200,241,53,0.12); border: 1px solid rgba(200,241,53,0.3); }
.hm-msg.ai { background: var(--surface2); border: 1px solid var(--border); }
.hm-rem { margin-top: 6px; padding: 5px 7px; border-radius: 8px; background: rgba(200,241,53,0.08); font-size: 10px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.hm-rem span { border: 1px solid rgba(200,241,53,0.4); color: var(--accent); border-radius: 999px; padding: 1px 7px; }
.hm-input { margin-top: auto; display: flex; align-items: center; gap: 6px; }
.hm-input span { flex: 1; color: var(--muted2); border: 1px solid var(--border2); border-radius: 9px; padding: 7px 9px; }
.hm-input i { font-style: normal; width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--border2); display: flex; align-items: center; justify-content: center; }
.hm-input b { width: 30px; height: 28px; border-radius: 8px; background: var(--accent); color: #000; display: flex; align-items: center; justify-content: center; }
.hm-nav { display: flex; justify-content: space-around; border-top: 1px solid var(--border); padding: 9px 4px 14px; font-size: 9.5px; color: var(--muted); }
.hm-nav .on { color: var(--accent); font-weight: 700; }

/* coaches showcase */
.partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 220px)); justify-content: center; gap: 14px; margin-top: 32px; }
.partner { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface2); text-decoration: none; color: inherit; }
.partner img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: top; margin-bottom: 8px; box-shadow: 0 0 0 3px rgba(200,241,53,0.45); }
.partner b { font-family: var(--display); font-size: 16px; }
.partner span { font-size: 13px; color: var(--muted); }
.partner-join { border-style: dashed; justify-content: center; transition: border-color .15s; }
.partner-join:hover { border-color: var(--accent); }
.partner-plus { width: 96px; height: 96px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 34px !important; color: var(--accent) !important; background: rgba(200,241,53,0.08); margin-bottom: 8px; }

/* cards */
.grid { display: grid; gap: 14px; margin-top: 36px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; position: relative; }
.card .ic { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-family: var(--display); font-size: 17px; font-weight: 700; margin-bottom: 6px; line-height: 1.25; }
.card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.card .more { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--accent); text-decoration: none; }
a.card { text-decoration: none; color: inherit; transition: border-color .15s, transform .15s; }
a.card:hover { border-color: rgba(200,241,53,0.4); transform: translateY(-2px); }
.card .tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; margin-bottom: 10px; background: rgba(200,241,53,0.1); color: var(--accent); }

/* feature showcase (visual + copy) */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; margin-top: 64px; }
.show.flip > .visual { order: 2; }
.show h3 { font-family: var(--display); font-size: clamp(22px, 2.8vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -.5px; margin: 8px 0 12px; }
.show p { color: var(--muted); line-height: 1.75; }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.points { list-style: none; margin-top: 16px; display: grid; gap: 9px; }
.points li { font-size: 14px; color: #b6b3bf; display: flex; gap: 10px; align-items: flex-start; line-height: 1.5; }
.points li::before { content: '✓'; color: var(--accent); font-weight: 800; flex-shrink: 0; }

/* illustration panels — simplified app UI drawn in HTML */
.mock { background: var(--surface); border: 1px solid var(--border2); border-radius: 18px; padding: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.45); max-width: 440px; margin: 0 auto; width: 100%; }
.mock-h { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.mock-h::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.mock-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.mock-row:last-child { border-bottom: none; }
.mock-row .t { font-weight: 700; }
.mock-row .s { font-size: 12px; color: var(--muted); }
.mock-row .r { margin-left: auto; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.pill.ok { background: rgba(200,241,53,0.12); color: var(--accent); }
.pill.warn { background: rgba(255,181,71,0.12); color: var(--amber); }
.pill.bad { background: rgba(255,82,82,0.12); color: var(--red); }
.pill.info { background: rgba(91,159,255,0.12); color: var(--blue); }
.mock-note { font-size: 11px; color: var(--muted2); margin-top: 10px; }
.gtiles { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; }
.gtile { display: flex; gap: 9px; align-items: center; padding: 8px; border-radius: 10px; background: var(--surface2); font-size: 12px; font-weight: 700; }
.gtile i { font-style: normal; width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 800; font-size: 14px; flex-shrink: 0; }
.gA i { background: rgba(200,241,53,0.16); color: var(--accent); }
.gB i { background: rgba(34,197,94,0.14); color: #22c55e; }
.gC i { background: rgba(234,179,8,0.15); color: #eab308; }
.gD i { background: rgba(249,115,22,0.15); color: #f97316; }
.bar { height: 6px; border-radius: 3px; background: var(--surface3); overflow: hidden; flex: 1; }
.bar span { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.chat { display: grid; gap: 8px; font-size: 13px; }
.chat .me { justify-self: end; background: var(--surface3); padding: 9px 12px; border-radius: 12px 12px 4px 12px; max-width: 85%; }
.chat .ai { background: rgba(200,241,53,0.07); border: 1px solid rgba(200,241,53,0.18); padding: 10px 12px; border-radius: 12px 12px 12px 4px; max-width: 92%; color: #cfccd6; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.chips span { font-size: 11px; font-weight: 700; padding: 5px 9px; border-radius: 14px; border: 1px solid rgba(200,241,53,0.35); color: var(--accent); }

/* steps */
.steps { counter-reset: step; display: grid; gap: 14px; margin-top: 36px; grid-template-columns: repeat(3, 1fr); }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 22px; }
.step::before { counter-increment: step; content: counter(step); display: inline-flex; width: 28px; height: 28px; border-radius: 50%; align-items: center; justify-content: center; background: var(--accent); color: #000; font-family: var(--display); font-weight: 800; font-size: 13px; margin-bottom: 12px; }
.step h3 { font-family: var(--display); font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 13.5px; color: var(--muted); line-height: 1.6; }

/* pricing */
.toggle { display: flex; gap: 4px; width: max-content; margin: 28px auto 0; padding: 4px; border-radius: 12px; border: 1px solid var(--border2); background: rgba(255,255,255,0.03); }
.toggle button { border: none; background: none; color: var(--muted); font: 700 14px/1 var(--ui); padding: 10px 18px; border-radius: 9px; cursor: pointer; }
.toggle button.on { background: var(--accent); color: #000; }
.toggle button span { font-size: 11px; font-weight: 600; opacity: .8; margin-left: 4px; }
.prices { display: grid; gap: 14px; margin-top: 28px; align-items: start; }
.p3 { grid-template-columns: repeat(3, 1fr); }
.p4 { grid-template-columns: repeat(4, 1fr); }
.price { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 22px; position: relative; }
.price.hot { border-color: rgba(200,241,53,0.45); background: linear-gradient(180deg, rgba(200,241,53,0.06), var(--surface) 40%); }
.price .badge { position: absolute; top: -11px; left: 22px; background: var(--accent); color: #000; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 6px; }
.price .name { font-family: var(--display); font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.price .limit { font-size: 13px; color: var(--muted); margin-top: 2px; }
.price .amt { font-family: var(--display); font-size: 46px; font-weight: 900; letter-spacing: -2px; line-height: 1; margin-top: 14px; }
.price .amt sup { font-size: 20px; vertical-align: super; letter-spacing: 0; }
.price .amt small { font-size: 15px; letter-spacing: 0; color: var(--muted); font-weight: 600; }
.price .per { font-size: 12px; color: var(--muted); margin: 6px 0 18px; min-height: 18px; }
.price ul { list-style: none; margin: 0 0 20px; }
.price li { font-size: 13px; color: #b6b3bf; padding: 7px 0; border-bottom: 1px solid var(--border); display: flex; gap: 8px; }
.price li::before { content: '✓'; color: var(--accent); font-weight: 800; }
.price .btn { width: 100%; }
.note { max-width: 620px; margin: 22px auto 0; padding: 12px 16px; border-radius: 10px; background: rgba(200,241,53,0.05); border: 1px solid rgba(200,241,53,0.2); color: #9ca3af; font-size: 13px; line-height: 1.6; text-align: center; }
.note strong { color: var(--text); }
.note a { color: var(--accent); font-weight: 600; }
.promo { max-width: 360px; margin: 22px auto 0; text-align: center; }
.promo button.link { background: none; border: none; color: var(--muted2); font-size: 13px; text-decoration: underline; cursor: pointer; font-family: var(--ui); }
.promo-form { display: none; gap: 8px; }
.promo-form input { flex: 1; background: var(--surface2); border: 1px solid var(--border2); border-radius: 8px; padding: 10px 12px; color: var(--text); font: 14px var(--ui); text-transform: uppercase; outline: none; }
.promo-form button { padding: 10px 16px; border-radius: 8px; background: var(--accent); color: #000; border: none; font-family: var(--display); font-weight: 700; cursor: pointer; }
#promo-result { font-size: 13px; margin-top: 8px; }

/* comparison table */
.compare { width: 100%; border-collapse: collapse; margin-top: 30px; font-size: 14px; }
.compare th, .compare td { padding: 12px 10px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare th { font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; width: 22%; }
.compare .y { color: var(--accent); font-weight: 800; }
.compare .n { color: var(--muted2); }
.compare tr.grp td { font-family: var(--display); font-weight: 800; color: var(--text); padding-top: 22px; font-size: 13px; letter-spacing: .04em; }
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* FAQ */
.faq { max-width: 760px; margin: 30px auto 0; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--accent); font-weight: 800; font-size: 18px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq p { color: var(--muted); margin-top: 10px; line-height: 1.7; font-size: 14px; }

/* founder */
.founder { display: grid; grid-template-columns: 0.8fr 1fr; gap: 48px; align-items: center; }
.founder img { border-radius: 18px; border: 1px solid var(--border2); width: 100%; max-width: 380px; aspect-ratio: 4 / 5; object-fit: cover; object-position: top center; }
.founder p { color: var(--muted); line-height: 1.8; margin-top: 14px; }
.chiprow { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.chiprow span { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 20px; border: 1px solid var(--border2); color: #c9c6d1; }

/* related / next links */
.next { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 28px; }
.next a { display: block; padding: 16px 18px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); text-decoration: none; font-weight: 700; font-size: 14px; }
.next a span { display: block; font-size: 12px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.next a:hover { border-color: rgba(200,241,53,0.4); }

/* closing CTA */
.cta { text-align: center; padding: 96px 24px; background: radial-gradient(ellipse at center, rgba(200,241,53,0.08) 0%, transparent 65%); border-top: 1px solid var(--border); }
.cta h2 { font-family: var(--display); font-size: clamp(30px, 5vw, 52px); font-weight: 900; letter-spacing: -1.5px; line-height: 1.05; }
.cta p { color: var(--muted); margin-top: 14px; }

@media (max-width: 900px) {
  .g4, .p4 { grid-template-columns: repeat(2, 1fr); }
  .g3, .p3, .steps, .next { grid-template-columns: 1fr 1fr; }
  .show, .founder { grid-template-columns: 1fr; gap: 28px; }
  .show.flip > .visual { order: 0; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero { padding: 48px 0 40px; }
  .split, .g2, .g3, .g4, .p3, .p4, .steps, .next { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
  .compare { font-size: 13px; }
  .compare th, .compare td { padding: 10px 6px; }
}
