/* Matly website. Same palette as the app: near-black, off-white, one gold accent. */
:root {
  --bg: #0b0b0c;
  --card: #141416;
  --card-2: #1a1a1d;
  --border: #232326;
  --divider: #1c1c1f;
  --text: #f2f2f0;
  --secondary: #b4b4ba;
  --muted: #8e8e94;
  --faint: #6e6e74;
  --gold: #d4b483;
  --link: #8ab4ff;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  --max: 1120px;
  --r: 20px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
h1 { font-size: clamp(44px, 7vw, 84px); }
h2 { font-size: clamp(34px, 4.6vw, 56px); }
h3 { font-size: 22px; letter-spacing: -0.015em; line-height: 1.2; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.secondary { color: var(--secondary); }
.gold { color: var(--gold); }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--secondary); max-width: 620px; }

/* Wordmark: "matly." with the gold dot */
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -0.045em; line-height: 1; color: var(--text); }
.wordmark i { font-style: normal; color: var(--gold); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(11, 11, 12, 0.82); backdrop-filter: saturate(160%) blur(16px); -webkit-backdrop-filter: saturate(160%) blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--divider); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav .wordmark { font-size: 26px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--secondary); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); }
.nav .btn { height: 40px; padding: 0 18px; font-size: 15px; }
.nav-cta { display: flex; gap: 10px; }
.mobile-menu .btn + .btn { margin-top: 10px; }
.menu-btn { display: none; margin-left: auto; width: 40px; height: 40px; border-radius: 20px; border: 1px solid var(--border); background: transparent; color: var(--text); align-items: center; justify-content: center; cursor: pointer; padding: 0; -webkit-appearance: none; appearance: none; }
.menu-btn svg { width: 22px; height: 22px; flex: none; display: block; }
.mobile-menu { display: none; }
@media (max-width: 820px) {
  .nav-links, .nav .btn-desktop { display: none; }
  .menu-btn { display: inline-flex; }
  .mobile-menu.open { display: block; border-top: 1px solid var(--divider); padding: 8px 24px 24px; }
  .mobile-menu a { display: block; padding: 14px 0; font-size: 20px; border-bottom: 1px solid var(--divider); }
  .mobile-menu .btn { display: flex; margin-top: 20px; width: 100%; height: 50px; padding: 0 20px; font-size: 16px; border: 1px solid var(--text); }
  .mobile-menu .btn.ghost { border-color: var(--border); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 24px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; border: 1px solid var(--text); cursor: pointer; transition: transform .15s, opacity .15s; white-space: nowrap; }
.btn:hover { opacity: .9; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn.ghost:hover { border-color: var(--muted); opacity: 1; }
.btn svg { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Store badges (pre-launch) */
.store { display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); }
.store svg { width: 24px; height: 24px; }
.store small { display: block; font-size: 11px; color: var(--muted); line-height: 1.1; }
.store b { display: block; font-size: 17px; font-weight: 600; line-height: 1.2; }

/* Sections */
section { padding: 112px 0; }
section.tight { padding: 72px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head h2 + p { margin-top: 18px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.rule { border: 0; border-top: 1px solid var(--divider); margin: 0; }

/* Hero */
.hero { padding: 72px 0 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .btn-row { margin-top: 36px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.hero-visual { display: flex; justify-content: center; position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: 10% -10% auto; height: 70%; background: radial-gradient(closest-side, rgba(212, 180, 131, 0.16), transparent); filter: blur(10px); }
@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding-top: 40px; }
}

/* Pills (disciplines) */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { height: 40px; padding: 0 18px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--border); color: var(--secondary); font-size: 15px; font-weight: 500; }
.pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Grids + cards */
.grid { display: grid; gap: 16px; }
.grid.three { grid-template-columns: repeat(3, 1fr); }
.grid.two { grid-template-columns: repeat(2, 1fr); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid.three, .grid.two, .grid.four { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--divider); border-radius: var(--r); padding: 28px; }
.card h3 { margin: 18px 0 8px; }
.card p { color: var(--muted); font-size: 16px; }
.icon { width: 44px; height: 44px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.icon svg { width: 22px; height: 22px; }
.icon.gold { color: var(--gold); }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }

/* Feature rows (text + visual, alternating) */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--divider); }
.feature.flip .feature-text { order: 2; }
.feature h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 14px 0 18px; }
.feature ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.feature li { display: flex; gap: 12px; color: var(--secondary); }
.feature li::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 3px; background: var(--gold); margin-top: 11px; }
.feature-visual { display: flex; justify-content: center; }
@media (max-width: 920px) {
  .feature { grid-template-columns: 1fr; gap: 40px; }
  .feature.flip .feature-text { order: 0; }
}

/* Band (callout) */
.band { background: var(--card); border: 1px solid var(--divider); border-radius: 28px; padding: 56px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
.band h2 { font-size: clamp(30px, 3.8vw, 46px); }
.band p { margin-top: 16px; }
@media (max-width: 820px) { .band { grid-template-columns: 1fr; padding: 32px; } }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat b { display: block; font-family: var(--display); font-size: 44px; font-weight: 800; letter-spacing: -0.03em; }
.stat span { color: var(--muted); font-size: 15px; }
@media (max-width: 620px) { .stats { grid-template-columns: 1fr; } }

/* Steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 56px; }
.step::before { counter-increment: step; content: counter(step); position: absolute; top: 0; left: 0; width: 36px; height: 36px; border-radius: 18px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 15px; color: var(--gold); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--muted); }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plans.two { grid-template-columns: repeat(2, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 920px) { .plans, .plans.two { grid-template-columns: 1fr; } }
.plan { background: var(--card); border: 1px solid var(--divider); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.plan .eyebrow { display: flex; justify-content: space-between; align-items: center; }
.plan .badge { color: var(--bg); background: var(--gold); padding: 4px 10px; border-radius: 999px; letter-spacing: .06em; font-size: 11px; }
.price { margin: 20px 0 6px; font-family: var(--display); font-weight: 800; font-size: 52px; letter-spacing: -0.035em; line-height: 1; }
.price small { font-family: var(--sans); font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.plan .sub { color: var(--muted); font-size: 15px; min-height: 46px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 30px; display: grid; gap: 12px; font-size: 15px; color: var(--secondary); }
.plan li { display: flex; gap: 10px; }
.plan li svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--gold); }
.plan .btn { margin-top: auto; width: 100%; }
.fine { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--divider); }
.faq summary { list-style: none; cursor: pointer; padding: 24px 40px 24px 0; font-size: 19px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-75%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-25%) rotate(-135deg); }
.faq details p { padding: 0 0 24px; color: var(--secondary); max-width: 720px; }
.faq details p + p { margin-top: -10px; }

/* Closing CTA */
.cta { text-align: center; }
.cta h2 { font-size: clamp(40px, 6vw, 72px); }
.cta p { margin: 18px auto 34px; }
.cta .btn-row { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--divider); padding: 56px 0 40px; font-size: 15px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 32px; }
.foot h4 { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.foot a { display: block; color: var(--secondary); padding: 5px 0; }
.foot a:hover { color: var(--text); }
.foot .wordmark { font-size: 30px; }
.foot-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--divider); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 14px; }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot > div:first-child { grid-column: 1 / -1; } }

/* Legal / text pages */
.doc { max-width: 760px; padding: 64px 0 112px; }
.doc h1 { font-size: clamp(40px, 6vw, 60px); margin-bottom: 12px; }
.doc .updated { color: var(--muted); margin-bottom: 40px; }
.doc h2 { font-size: 26px; letter-spacing: -0.02em; margin: 44px 0 14px; }
.doc p, .doc li { color: var(--secondary); }
.doc p + p { margin-top: 14px; }
.doc ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.doc strong { color: var(--text); font-weight: 600; }
.note { background: var(--card); border: 1px solid var(--divider); border-radius: 16px; padding: 20px 22px; color: var(--secondary); }

/* ---------- Phone mockups (built in HTML, mirrors the app UI) ---------- */
.phone { width: 300px; flex: none; border-radius: 48px; padding: 10px; background: #1b1b1e; border: 1px solid #2c2c30; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255,255,255,0.03) inset; position: relative; }
.screen { border-radius: 39px; background: var(--bg); height: 610px; overflow: hidden; position: relative; padding: 54px 16px 16px; font-size: 13px; }
.screen::before { content: ""; position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; margin-left: -46px; border-radius: 14px; background: #000; }
.status { position: absolute; top: 15px; left: 28px; right: 28px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.s-title { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; margin: 4px 2px 12px; }
.s-tabs { display: flex; gap: 6px; margin-bottom: 14px; }
.s-tab { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid var(--border); display: inline-flex; align-items: center; font-size: 12px; color: var(--secondary); }
.s-tab.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.s-card { background: var(--card); border-radius: 16px; padding: 14px; margin-bottom: 10px; }
.s-row { display: flex; align-items: center; gap: 10px; }
.av { width: 34px; height: 34px; border-radius: 17px; flex: none; background: linear-gradient(135deg, #3a3a40, #222226); display: inline-flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; color: var(--secondary); }
.av.sm { width: 28px; height: 28px; font-size: 11px; }
.s-name { font-weight: 600; font-size: 14px; }
.s-meta { color: var(--muted); font-size: 11.5px; }
.s-h { font-weight: 700; font-size: 16px; margin: 12px 0 2px; letter-spacing: -0.01em; }
.s-stats { display: flex; gap: 18px; margin-top: 10px; }
.s-stats div span { display: block; color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.s-stats div b { font-size: 18px; font-weight: 700; font-variant-numeric: tabular-nums; }
.s-chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.s-chip { font-size: 10.5px; padding: 3px 8px; border-radius: 10px; background: var(--card-2); color: var(--secondary); }
.s-oss { margin-left: auto; height: 26px; padding: 0 10px; border-radius: 13px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; }
.s-oss.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.s-label { color: var(--muted); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin: 16px 2px 8px; }
.s-btn { height: 44px; border-radius: 22px; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 14px; margin-top: 12px; }
.s-gold { color: var(--gold); }
.s-seal { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-size: 11px; }
.s-checkin { background: var(--text); color: var(--bg); border-radius: 16px; padding: 14px; display: flex; align-items: center; gap: 12px; }
.s-checkin b { display: block; font-size: 15px; }
.s-checkin span { font-size: 12px; opacity: .75; }
.s-list .s-row { padding: 10px 0; border-bottom: 1px solid var(--divider); }
.s-list .s-row:last-child { border-bottom: 0; }
.s-bar { height: 5px; border-radius: 3px; background: var(--divider); overflow: hidden; margin-top: 6px; }
.s-bar i { display: block; height: 100%; border-radius: 3px; background: var(--text); }
.s-bar i.g { background: var(--gold); }
.rank { width: 18px; text-align: center; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.s-tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 66px; border-top: 1px solid var(--divider); background: var(--bg); display: flex; justify-content: space-around; align-items: center; padding-bottom: 8px; }
.s-tabbar i { width: 22px; height: 22px; border-radius: 6px; border: 1.6px solid var(--faint); }
.s-tabbar i.plus { width: 44px; height: 44px; border-radius: 22px; border: 0; background: var(--text); position: relative; }
.s-tabbar i.plus::before, .s-tabbar i.plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--bg); border-radius: 1px; }
.s-tabbar i.plus::before { width: 16px; height: 2px; margin: -1px 0 0 -8px; }
.s-tabbar i.plus::after { width: 2px; height: 16px; margin: -8px 0 0 -1px; }

/* Belt bar, same drawing as the app */
.belt { position: relative; display: inline-block; width: 34px; height: 9px; border-radius: 3px; flex: none; overflow: hidden; }
.belt .end { position: absolute; top: 0; bottom: 0; right: 7%; width: 36%; display: flex; justify-content: flex-end; gap: 1.6px; padding-right: 2px; align-items: stretch; }
.belt .end i { width: 2.4px; background: #f2f2f0; }
.belt.white { background: #f2f2f0; box-shadow: 0 0 0 .5px rgba(0,0,0,.35) inset; }
.belt.blue { background: #2f6feb; }
.belt.purple { background: #7c4dcc; }
.belt.brown { background: #8b5a2b; }
.belt.black { background: #000; box-shadow: 0 0 0 .5px #3a3a3f inset; }
.belt.green { background: #3fa45b; }
.belt .end { background: #0b0b0c; }
.belt.black .end { background: #c8382e; }
.belt.green .end, .belt.plain .end { background: transparent; }
.belt.lg { width: 64px; height: 14px; border-radius: 4px; }
.belt.lg .end i { width: 4px; }

/* Small screens: shrink phones */
@media (max-width: 380px) {
  .phone { width: 270px; }
  .screen { height: 560px; }
}

/* Join page */
.join { min-height: 70vh; display: flex; align-items: center; }
.join .card { max-width: 520px; margin: 0 auto; text-align: center; padding: 44px 32px; }
.code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 34px; letter-spacing: .18em; font-weight: 700; margin: 18px 0 6px; }

/* Reveal on scroll (only when JS runs) */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* mockup polish */
.s-tab, .s-oss, .s-chip { white-space: nowrap; }
.s-oss { flex: none; }
.tag svg { width: 15px; height: 15px; }
.s-tabbar svg { width: 24px; height: 24px; }
.s-time { width: 62px; flex: none; font-size: 12px; white-space: nowrap; }
.hero, .feature-visual { overflow-x: clip; }
body { overflow-x: hidden; }
.join .btn-row, .cta .btn-row { justify-content: center; }

/* Support form */
.form { display: grid; gap: 16px; margin: 28px 0 8px; padding: 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--r); }
.form-row { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.form label, .form-row > * { min-width: 0; }
@media (max-width: 640px) { .form-row { grid-template-columns: minmax(0, 1fr); } .form { padding: 18px; } }
.form label { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--secondary); }
.form input, .form select, .form textarea { width: 100%; box-sizing: border-box; font: inherit; font-weight: 400; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.form textarea { resize: vertical; min-height: 140px; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--muted); }
.form .btn { justify-self: start; border: 0; cursor: pointer; }
.form .btn:disabled { opacity: 0.6; cursor: default; }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; font-size: 15px; color: var(--muted); min-height: 1em; }
.form-status.ok { color: var(--gold); }
.form-status.err { color: #ff8a80; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } .form { padding: 18px; } }

/* Claim your username */
.uname { position: relative; display: block; }
.uname .at { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; font-size: 17px; }
.form .uname input { padding-left: 32px; font-size: 18px; font-weight: 600; }
.uname-status { font-size: 13px; font-weight: 400; color: var(--muted); min-height: 1.2em; }
.uname-status.ok { color: #4ade80; }
.uname-status.err { color: #ff8a80; }
.note-box { border: 1px solid var(--gold); background: rgba(212, 180, 131, 0.08); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--secondary); line-height: 1.5; }
.note-box b { color: var(--text); }
.form .chk-line { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.form .chk-line input { width: 18px; height: 18px; flex: none; margin-top: 2px; padding: 0; accent-color: var(--gold); }

/* Help centre */
.help { max-width: 820px; }
.help h1 { margin-bottom: 8px; }
.hsearch { position: relative; margin: 24px 0 10px; }
.hsearch svg { position: absolute; left: 18px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--muted); }
.hsearch input { width: 100%; font: inherit; font-size: 17px; padding: 17px 18px 17px 50px; border-radius: 16px; border: 1px solid var(--divider); background: var(--card); color: inherit; }
.hsearch input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.hcount { color: var(--muted); font-size: 14px; margin: 4px 0 0; }
.hpopular { margin: 36px 0 0; }
.hpopular h3, .help h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 10px; font-weight: 600; }
.hpopular ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hpopular a { display: block; padding: 10px 0; color: inherit; text-decoration: none !important; font-size: 17px; border-bottom: 1px solid var(--divider); }
.hpopular a::after { content: "→"; float: right; color: var(--muted); }
.hpopular a:hover { color: var(--gold); }
.htopics { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 20px; }
.htopic { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: 16px; background: var(--card); border: 1px solid var(--divider); color: inherit; text-decoration: none !important; transition: border-color .15s; }
.htopic:hover { border-color: var(--gold); }
.htopic.on { border-color: var(--gold); background: rgba(212,180,131,.08); }
.htopics[hidden], .hpopular[hidden], .hsec[hidden] { display: none !important; }
.htopic b { font-size: 17px; }
.htopic span { color: var(--secondary); font-size: 14px; line-height: 1.4; }
.htopic small { color: var(--muted); font-size: 13px; margin-top: 6px; }
.htopic.gymtopic { border-color: rgba(212,180,131,.45); }
.hsec { padding: 0 !important; scroll-margin-top: 90px; }
.hsec h2 { margin: 40px 0 8px !important; font-size: 24px; }
.hlist details { border-bottom: 1px solid var(--divider); scroll-margin-top: 90px; }
.hlist summary { list-style: none; cursor: pointer; padding: 18px 36px 18px 0; font-size: 17px; font-weight: 600; position: relative; line-height: 1.35; }
.hlist summary::-webkit-details-marker { display: none; }
.hlist summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 24px; font-weight: 400; color: var(--muted); }
.hlist details[open] summary::after { content: "–"; }
.hlist summary:hover { color: var(--gold); }
.hans { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--card); font-size: 16px; line-height: 1.6; }
.hans p { margin: 0 0 10px; color: var(--secondary); }
.hans p:last-child, .hans ol:last-child { margin-bottom: 0; }
.hans b { color: var(--text, #f2f2f0); }
.hans .steps { list-style: none; counter-reset: s; margin: 0 0 10px; padding: 0; }
.hans .steps li { counter-increment: s; position: relative; padding: 0 0 8px 34px; color: var(--secondary); }
.hans .steps li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #0b0b0c; font-size: 13px; font-weight: 700; display: grid; place-items: center; line-height: 1; }
.hnone { color: var(--muted); margin: 20px 0; }
.hcta { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 56px; padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--divider); }
.hcta div { display: flex; flex-direction: column; gap: 4px; }
.hcta span { color: var(--secondary); font-size: 15px; }
.hcta .btn { color: #0b0b0c !important; text-decoration: none !important; }
.hcta .btn.ghost { color: var(--text) !important; }
.hcomm + .hcta { margin-top: 12px; }
@media (max-width: 600px) { .htopics { grid-template-columns: 1fr 1fr; gap: 10px; } .htopic { padding: 14px; } .htopic b { font-size: 15px; } .htopic span { display: none; } }

/* Before launch: gym accounts invite-only (scripts/build_site.py GYMS_OPEN) */
.alpha-banner { max-width: 1120px; margin: 96px auto -40px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; border: 1px solid rgba(212,180,131,.45); background: rgba(212,180,131,.08); border-radius: 14px; font-size: 15px; line-height: 1.45; color: var(--secondary); position: relative; z-index: 2; }
.alpha-banner b { color: var(--text); }
.alpha-banner a { color: var(--gold, #D4B483); text-decoration: underline; }
.alpha-tag { flex: none; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #0B0B0C; background: #D4B483; border-radius: 999px; padding: 3px 9px; margin-top: 1px; }
@media (max-width: 1160px) { .alpha-banner { margin-left: 16px; margin-right: 16px; } }

/* Early-access form: art checkboxes */
.chks { border: 0; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.chks legend { font-size: 14px; font-weight: 600; color: var(--secondary); margin-bottom: 10px; padding: 0; }
.chk { display: inline-flex; cursor: pointer; position: relative; }
.chk input { position: absolute; opacity: 0; pointer-events: none; }
.chk span { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border); font-size: 14px; color: var(--secondary); }
.chk input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); }
.chk input:focus-visible + span { outline: 2px solid #D4B483; outline-offset: 2px; }

/* Affiliate stats */
.big-num { font-size: 28px; font-weight: 800; margin: 4px 0 0; font-variant-numeric: tabular-nums; }

/* Phones (polish Nov 9): tighter gaps between sections, price labels don't break mid-phrase, alpha banner lines up with the page */
.price small { display: inline-block; white-space: nowrap; }
@media (max-width: 640px) {
  section { padding: 72px 0; }
  section.tight { padding: 48px 0; }
  .alpha-banner { margin: 84px 24px 0; }
}

/* SEO pages: comparison table + style links */
.ctable-wrap { overflow-x: auto; margin: 28px 0 12px; }
.ctable { width: 100%; border-collapse: collapse; font-size: 15px; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: 14px 12px; border-bottom: 1px solid var(--divider); color: var(--secondary); }
.ctable thead th { color: var(--text); font-weight: 600; }
.ctable tbody th { color: var(--text); font-weight: 600; width: 22%; }
.ctable td:last-child { color: var(--text); }
.stylelinks { display: flex; flex-wrap: wrap; gap: 10px; }
.stylelinks a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 999px; color: var(--text); text-decoration: none; }
.stylelinks a:hover { border-color: var(--muted); }
.doc .eyebrow a { color: inherit; text-decoration: none; }
.doc .btn { text-decoration: none; }
.doc .btn:not(.ghost) { color: #0b0b0c; }

/* Guides: easy to read */
.guide { max-width: 680px; margin: 0 auto; padding: 56px 0 112px; }
.guide h1 { font-size: clamp(36px, 5.4vw, 52px); line-height: 1.08; letter-spacing: -0.03em; margin: 14px 0 14px; }
.guide p, .guide li { font-size: 18px; line-height: 1.7; color: var(--secondary); }
.guide p + p { margin-top: 14px; }
.guide a:not(.btn) { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--faint); }
.guide .gdesc { font-size: 20px; line-height: 1.55; color: var(--secondary); }
.gback { font-size: 15px; color: var(--muted) !important; text-decoration: none !important; }
.gmeta { display: flex; align-items: center; gap: 12px; margin: 26px 0 32px; font-size: 15px; color: var(--secondary); line-height: 1.4; }
.gmeta b { color: var(--text); }
.gmeta small { color: var(--muted); font-size: 14px; }
.gavatar { width: 40px; height: 40px; border-radius: 50%; background: var(--gold); color: #0b0b0c; display: grid; place-items: center; font-weight: 800; flex: none; }
.gshort { background: rgba(212,180,131,.08); border: 1px solid rgba(212,180,131,.35); border-radius: 18px; padding: 22px 24px; margin-bottom: 40px; }
.gshort > b { display: block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 10px; }
.gticks { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 10px; }
.gticks li { display: flex; gap: 12px; align-items: flex-start; }
.gticks svg { width: 20px; height: 20px; flex: none; margin-top: 5px; color: var(--gold); }
.gshort .gticks { margin: 0; }
.gshort li { color: var(--text); font-size: 17px; }
.gintro p { font-size: 19px; color: var(--text); }
.gintro { margin-bottom: 8px; }
.gstep { display: grid; grid-template-columns: 40px 1fr; gap: 18px; padding: 32px 0; border-top: 1px solid var(--divider); }
.gstep:first-of-type { border-top: 0; }
.gnum { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; font-weight: 700; color: var(--gold); font-size: 17px; }
.gstep h2 { font-size: 24px; line-height: 1.25; letter-spacing: -0.02em; margin: 6px 0 12px; }
.gmatly { margin-top: 24px; background: var(--card); border: 1px solid var(--divider); border-radius: 22px; padding: 28px; }
.gmatly p { margin: 12px 0 20px; }
.gmatly .btn { color: #0b0b0c !important; text-decoration: none !important; }
.gfoot { margin-top: 40px; font-size: 15px !important; color: var(--muted) !important; }
.gcards { display: grid; gap: 14px; margin-top: 32px; }
.gcard { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--divider); color: inherit; text-decoration: none !important; transition: border-color .15s; }
.gcard:hover { border-color: var(--gold); }
.gcard small { color: var(--muted); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.gcard b { font-size: 22px; line-height: 1.25; color: var(--text); }
.gcard span { color: var(--secondary); font-size: 16px; line-height: 1.5; }
.gcard i { font-style: normal; color: var(--gold); font-size: 15px; margin-top: 4px; }
@media (max-width: 600px) {
  .guide { padding-top: 36px; }
  .guide p, .guide li { font-size: 17px; }
  .gstep { grid-template-columns: 1fr; gap: 10px; padding: 26px 0; }
  .gmatly { padding: 22px; }
}

/* /compare: one table, every brand side by side */
.doc.wide { max-width: 1120px; }
.ctable.cmp { min-width: 880px; font-size: 14px; }
.ctable.cmp th, .ctable.cmp td { padding: 12px 10px; }
.ctable.cmp tbody th { width: 190px; position: sticky; left: 0; background: var(--bg); z-index: 1; }
.ctable.cmp thead th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.ctable.cmp td { color: var(--secondary); }
.ctable.cmp td:last-child { color: var(--secondary); }
.ctable.cmp .me { background: var(--card); color: var(--text); }
.ctable.cmp thead .me { color: var(--gold); border-top-left-radius: 12px; border-top-right-radius: 12px; }
.ctable.cmp small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; line-height: 1.4; }
.ck { font-weight: 700; font-size: 16px; }
.ck.yes { color: #4cc38a; }
.ck.no { color: #e5484d; }
.ck.na { font-weight: 500; font-size: 12px; color: var(--muted); font-style: italic; }
@media (max-width: 720px) { .ctable.cmp tbody th { width: 130px; min-width: 130px; } }
.ctable.cmp .pl { display: block; white-space: nowrap; line-height: 1.5; }
.ctable.cmp .pl + .pl { margin-top: 4px; }
.ctable.cmp .pl > span { display: block; color: var(--muted); font-size: 12px; }

/* Story mockup with a share card (home, Nov 15) */
.story { width: 300px; aspect-ratio: 9 / 16; border-radius: 28px; position: relative; overflow: hidden; flex: none;
  background: radial-gradient(120% 70% at 50% 22%, #2d2820 0%, #17161a 50%, #0b0b0c 100%); box-shadow: 0 40px 80px -30px rgba(0,0,0,.9); border: 1px solid #2c2c30; }
.story::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.35), transparent 22%, transparent 70%, rgba(0,0,0,.5)); pointer-events: none; }
.story-top { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 4px; z-index: 2; }
.story-top i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); }
.story-top i.on { background: #fff; }
.story-who { position: absolute; top: 24px; left: 14px; display: flex; align-items: center; gap: 8px; z-index: 2; font-size: 12px; color: #fff; }
.story-who span:last-child { color: rgba(255,255,255,.7); }
.story-who .s-av { width: 26px; height: 26px; border-radius: 13px; background: #d4b483; color: #0b0b0c; display: grid; place-items: center; font-size: 10px; font-weight: 700; }
.story-reply { position: absolute; left: 14px; right: 14px; bottom: 14px; height: 38px; border-radius: 19px; border: 1px solid rgba(255,255,255,.45); color: rgba(255,255,255,.8); font-size: 12px; display: flex; align-items: center; padding: 0 16px; z-index: 2; }
.sc { position: absolute; left: 0; right: 0; top: 68px; display: flex; flex-direction: column; align-items: center; text-align: center; color: #f2f2f0; text-shadow: 0 1px 6px rgba(0,0,0,.35); z-index: 1; }
.sc-spark { position: relative; width: 220px; height: 54px; }
.sc-spark i { position: absolute; width: 6px; height: 6px; border-radius: 1px; background: var(--gold); transform: rotate(45deg); opacity: .85; }
.sc-spark i:nth-child(1) { left: 20px; top: 30px; } .sc-spark i:nth-child(2) { left: 70px; top: 8px; width: 4px; height: 4px; }
.sc-spark i:nth-child(3) { left: 108px; top: 22px; width: 8px; height: 8px; } .sc-spark i:nth-child(4) { left: 150px; top: 4px; width: 4px; height: 4px; }
.sc-spark i:nth-child(5) { left: 196px; top: 32px; }
.sc-kick { display: flex; align-items: center; gap: 8px; color: var(--gold); font-size: 10px; font-weight: 800; letter-spacing: .3em; }
.sc-kick span { width: 18px; height: 1.5px; background: var(--gold); }
.sc-belt { margin: 18px 0 4px; filter: drop-shadow(0 0 14px rgba(212,180,131,.45)); }
.belt.xl { width: 200px; height: 30px; border-radius: 5px; }
.sc-head { font-family: var(--display, "Archivo"), sans-serif; font-weight: 800; font-size: 26px; letter-spacing: -.02em; margin-top: 12px; }
.sc-person { font-weight: 600; font-size: 14px; color: #cfcfd2; margin-top: 4px; }
.sc-sub { font-size: 11.5px; color: #cfcfd2; margin-top: 6px; } .sc-sub b { color: var(--gold); }
.sc-stats { display: flex; gap: 20px; margin-top: 18px; padding-top: 14px; border-top: 1px solid rgba(212,180,131,.35); width: 240px; justify-content: center; }
.sc-stats div { display: grid; gap: 2px; } .sc-stats b { font-size: 17px; font-variant-numeric: tabular-nums; } .sc-stats span { font-size: 8.5px; font-weight: 600; letter-spacing: .08em; color: #cfcfd2; }
.sc-foot { margin-top: 16px; display: grid; justify-items: center; gap: 2px; font-size: 10.5px; color: #cfcfd2; }
.sc-foot .wordmark { font-size: 15px; } .sc-foot em { font-style: normal; font-weight: 600; }
/* Founder note */
.founder { display: grid; gap: 36px; align-items: center; max-width: 880px; border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); padding: 48px 0; }
.founder.has-pic { grid-template-columns: 160px 1fr; }
.founder h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 12px 0 16px; }
.founder .lead + .lead { margin-top: 14px; }
.founder-pic { width: 160px; height: 160px; border-radius: 50%; object-fit: cover; }
.founder-sign { margin-top: 20px; color: var(--muted); font-size: 15px; } .founder-sign b { color: var(--text); } .founder-sign a { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) { .founder.has-pic { grid-template-columns: 1fr; } .founder-pic { width: 112px; height: 112px; } .founder { padding: 36px 0; } }
/* Quotes from real members and gyms */
.quote-card { margin: 0; background: var(--card); border: 1px solid var(--divider); border-radius: 20px; padding: 26px; display: grid; gap: 18px; }
.quote-card blockquote { margin: 0; font-size: 17px; line-height: 1.5; color: var(--text); }
.quote-card figcaption { display: grid; gap: 2px; font-size: 14px; } .quote-card figcaption span { color: var(--muted); }
/* Launch deal (Nov 16): make the $59 read as a deal, not the normal price */
.deal-strip { display: flex; align-items: center; gap: 12px; max-width: 900px; margin: 0 auto 22px; padding: 14px 20px; border-radius: 16px;
  background: linear-gradient(90deg, rgba(212,180,131,.22), rgba(212,180,131,.08)); border: 1px solid rgba(212,180,131,.55); color: var(--text); font-size: 16px; }
.deal-strip b { color: var(--gold); } .deal-fire { font-size: 22px; flex: none; }
.plan.deal { position: relative; padding-top: 44px; background: linear-gradient(180deg, rgba(212,180,131,.10), var(--card) 38%); }
.deal-ribbon { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--gold); color: #0b0b0c;
  font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; padding: 7px 16px; border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(212,180,131,.7); }
.deal-then { margin: 2px 0 10px; color: var(--gold); font-weight: 700; font-size: 15px; }
.deal-then span { color: var(--muted); font-weight: 500; }
.plan .cad-note { color: var(--muted); font-size: 12.5px; line-height: 1.45; margin: -4px 0 12px; opacity: .85; }
.plan .badge.soft { background: var(--card-2, #1a1a1d); color: var(--secondary); }
.plan.deal .price { color: var(--gold); }
.hero-note.deal-note { color: var(--secondary); } .hero-note.deal-note b { color: var(--gold); }
@media (max-width: 720px) { .deal-strip { font-size: 15px; padding: 12px 14px; } }
/* Discipline buttons switch the share card (home, Nov 16) */
#art-pills .pill { cursor: pointer; background: transparent; font: inherit; font-size: 15px; font-weight: 500; transition: background .15s, color .15s, border-color .15s; }
#art-pills .pill:hover { border-color: var(--secondary); color: var(--text); }
#art-pills .pill.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.pills-hint { margin-top: 12px; font-size: 14px; }
.story .sc { display: none; } .story .sc.on { display: flex; animation: scIn .25s ease-out; }
@keyframes scIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.sc-big { font-family: var(--display, "Archivo"), sans-serif; font-weight: 800; font-size: 84px; letter-spacing: -.04em; line-height: 1; margin-top: 18px; font-variant-numeric: tabular-nums; }
.sc-big.sm { font-size: 40px; letter-spacing: -.02em; margin-top: 22px; }
.sc-biglabel { font-size: 11px; font-weight: 700; letter-spacing: .25em; color: #cfcfd2; margin-top: 4px; }
.belt.yellow { background: #e8c547; } .belt.orange { background: #e8833a; } .belt.red { background: #c8382e; }
.belt.black.plain { background: #000; box-shadow: 0 0 0 1px rgba(255,255,255,.28) inset; }
@media (prefers-reduced-motion: reduce) { .story .sc.on { animation: none; } }

.multi-loc { text-align: center; margin: 14px auto 0; color: var(--muted); font-size: 15px; }
.multi-loc a { color: var(--gold); font-weight: 600; }
