/* GainzGPT — site styles. Tokens mirror GainzGPT-iOS/GainzGPT/Theme/Theme.swift. */
:root {
  color-scheme: dark light;
  --bg: #0A0A0C;
  --bg-elev: #141417;
  --bg-inset: #1C1C21;
  --stroke: #26262C;
  --text: #F5F5F7;
  --text-2: #9B9BA3;
  --lime: #C8F135;
  --lime-dim: #9DBE2A;
  --on-lime: #0A0A0C;
  --link: #C8F135;
  --orange: #FF9F45;
  --blue: #5AC8FA;
  --radius: 20px;
  --gutter: 20px;
  --max: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #F6F6F3;
    --bg-elev: #FFFFFF;
    --bg-inset: #EDEDE8;
    --stroke: #DEDED8;
    --text: #0A0A0C;
    --text-2: #55555D;
    --link: #4A6400; /* lime is unreadable on white; darker olive passes AA */
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--lime); color: var(--on-lime); padding: 8px 14px; border-radius: 10px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header { border-bottom: 1px solid var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.brand b { color: var(--lime); }
@media (prefers-color-scheme: light) { .brand b { color: var(--link); } }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--text-2); text-decoration: none; }
.nav a:hover { color: var(--text); }

/* Buttons / badges */
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 8px 18px 8px 14px;
  border-radius: 14px; border: 1px solid var(--stroke);
  background: var(--bg-elev); color: var(--text); text-decoration: none;
  line-height: 1.15;
}
.badge svg { width: 24px; height: 24px; flex: none; fill: currentColor; }
.badge small { display: block; font-size: 11px; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.badge span { font-weight: 700; font-size: 16px; }
.badge[aria-disabled="true"] { cursor: default; }

/* Hero */
.hero { padding: 40px 0 24px; }
.hero .wrap { display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--on-lime); background: var(--lime); padding: 4px 10px; border-radius: 999px; }
h1 { font-size: clamp(40px, 10vw, 72px); line-height: 1.0; letter-spacing: -0.035em; margin: 16px 0 16px; font-weight: 850; }
h1 em { font-style: normal; color: var(--lime); }
@media (prefers-color-scheme: light) { h1 em { color: var(--link); } }
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--text-2); max-width: 34ch; margin: 0 0 28px; }
.hero-art { position: relative; border-radius: 28px; overflow: hidden; background: #17120E; aspect-ratio: 2 / 3; max-width: 440px; width: 100%; justify-self: center; box-shadow: 0 0 0 1px var(--stroke), 0 30px 80px -30px rgba(200, 241, 53, .35); }
.hero-art img { width: 100%; height: 100%; object-fit: cover; }
.hero-art figcaption { position: absolute; left: 14px; bottom: 14px; right: 14px; display: flex; align-items: center; gap: 10px; background: rgba(10,10,12,.78); color: #F5F5F7; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.08); border-radius: 16px; padding: 10px 14px; font-size: 15px; }
.hero-art figcaption strong { color: #C8F135; }
.note { font-size: 14px; color: var(--text-2); margin-top: 12px; }

@media (min-width: 820px) {
  .hero { padding: 72px 0 48px; }
  .hero .wrap { grid-template-columns: 1.15fr 1fr; gap: 56px; }
}

/* Sections */
section { padding: 48px 0; }
h2 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 12px; }
.section-lede { color: var(--text-2); margin: 0 0 28px; max-width: 52ch; }
.cards { display: grid; gap: 14px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 14px 0 8px; font-size: 21px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--text-2); }
.card ul { margin: 14px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.card li { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: var(--bg-inset); color: var(--text); }
.icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-inset); }
.icon svg { width: 24px; height: 24px; stroke: var(--lime); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (prefers-color-scheme: light) { .icon svg { stroke: var(--link); } }
.icon img { width: 44px; height: 44px; border-radius: 12px; }

/* Loop */
.loop { counter-reset: step; display: grid; gap: 10px; padding: 0; margin: 0; list-style: none; }
@media (min-width: 760px) { .loop { grid-template-columns: repeat(4, 1fr); } }
.loop li { counter-increment: step; background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; font-weight: 600; }
.loop li::before { content: counter(step); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 14px; margin-right: 10px; }

/* CTA */
.cta { text-align: left; }
.cta .card { display: grid; gap: 20px; padding: 32px 24px; background: linear-gradient(160deg, var(--bg-elev), var(--bg-inset)); }
@media (min-width: 760px) { .cta .card { grid-template-columns: 1fr auto; align-items: center; padding: 40px; } }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--text-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--stroke); padding: 28px 0 40px; margin-top: 24px; font-size: 14px; color: var(--text-2); }
.site-footer .wrap { display: grid; gap: 14px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
.site-footer a { color: var(--text-2); }
.site-footer a:hover { color: var(--text); }
.disclaimer { max-width: 70ch; margin: 0; }

/* Legal pages */
.legal { padding: 40px 0 24px; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 7vw, 48px); margin-bottom: 8px; }
.legal .meta { color: var(--text-2); margin: 0 0 28px; font-size: 15px; }
.legal h2 { font-size: 23px; margin: 40px 0 10px; letter-spacing: -0.01em; }
.legal h3 { font-size: 18px; margin: 24px 0 6px; }
.legal p, .legal li { color: var(--text); }
.legal ul { padding-left: 22px; }
.legal li { margin: 6px 0; }
.legal .summary { background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: var(--radius); padding: 20px 22px; }
.legal .summary ul { margin: 0; }
.legal .callout { border-left: 4px solid var(--lime); background: var(--bg-elev); padding: 14px 18px; border-radius: 0 14px 14px 0; }
.legal .caps { text-transform: uppercase; font-size: 15px; letter-spacing: .01em; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--stroke); }
.legal th { color: var(--text-2); font-weight: 600; }
.ph { background: #FFCC4D; color: #0A0A0C; padding: 0 4px; border-radius: 4px; font-weight: 600; }
.toc { columns: 2; column-gap: 24px; font-size: 15px; padding-left: 20px; }
@media (max-width: 560px) { .toc { columns: 1; } }

/* 404 */
.notfound { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 48px 0; }
.notfound img { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto 20px; }
.btn { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 16px; background: var(--lime); color: var(--on-lime); font-weight: 700; text-decoration: none; }

/* Big G feature rows */
.feature { display: grid; gap: 24px; align-items: center; padding: 28px 0; }
.feature + .feature { border-top: 1px solid var(--stroke); }
.feature-art { position: relative; border-radius: 24px; overflow: hidden; background: #1A1410; aspect-ratio: 4 / 5; max-width: 420px; width: 100%; justify-self: center; box-shadow: 0 0 0 1px var(--stroke); }
.feature-art img { width: 100%; height: 100%; object-fit: cover; }
.bubble { position: relative; display: inline-block; background: var(--lime); color: var(--on-lime); font-weight: 800; font-size: 18px; line-height: 1.3; padding: 12px 16px; border-radius: 18px 18px 18px 4px; margin: 0 0 18px; max-width: 30ch; }
.bubble::before { content: "Big G"; display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.feature h2 { margin-bottom: 10px; }
.feature p { color: var(--text-2); margin: 0; max-width: 46ch; }
.chips { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--stroke); }
@media (min-width: 820px) {
  .feature { grid-template-columns: 1fr 1fr; gap: 56px; padding: 48px 0; }
  .feature:nth-of-type(even) .feature-art { order: 2; }
}

/* Loop band */
.band { display: grid; gap: 24px; align-items: center; }
.band .feature-art { max-width: 340px; }
@media (min-width: 820px) { .band { grid-template-columns: 340px 1fr; gap: 48px; } }
.goals { color: var(--text-2); margin: 20px 0 0; font-size: 15px; max-width: 60ch; }

/* Privacy strip */
.strip { display: grid; gap: 10px; }
@media (min-width: 760px) { .strip { grid-template-columns: repeat(3, 1fr); } }
.strip div { background: var(--bg-elev); border: 1px solid var(--stroke); border-radius: 16px; padding: 18px; }
.strip strong { display: block; margin-bottom: 4px; }
.strip span { color: var(--text-2); font-size: 15px; }

/* CTA with Big G */
.cta .card { overflow: hidden; }
.cta-art { width: 160px; height: 200px; border-radius: 18px; overflow: hidden; background: #1A1410; }
.cta-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
@media (min-width: 760px) { .cta .card { grid-template-columns: auto 1fr auto; } }
.feature .bubble { color: var(--on-lime); max-width: 30ch; margin: 0 0 18px; }
