/* Gear & Grit landing page. Shares the theme tokens in app.css. */
.lp { background: var(--bg); min-height: 100vh; overflow-x: hidden; }
.lp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .lp-wrap { padding: 0 16px; } }

/* Top bar */
.lp-top { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.lp-top .wordmark { font-size: 26px; }
.lp-top nav { display: flex; gap: 22px; font-size: 14px; }
.lp-top nav a { color: var(--soft); text-decoration: none; }
.lp-top nav a:hover { color: var(--text); }
@media (max-width: 700px) { .lp-top nav a:not(.keep) { display: none; } }

/* Hero */
.lp-hero { position: relative; padding: 36px 0 0; isolation: isolate; }
.lp-hero::before { content: ''; position: absolute; inset: -120px -20% auto; height: 760px; z-index: -1;
  background: radial-gradient(600px 340px at 72% 30%, rgba(255,122,61,.16), transparent 70%),
              radial-gradient(520px 300px at 18% 60%, rgba(111,211,224,.10), transparent 70%); }
.lp-topo { position: absolute; inset: 0 0 auto; width: 100%; height: 640px; z-index: -1; opacity: .55; }
.lp-kicker { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-soft); background: var(--accent-bg); border: 1px solid var(--accent-line); padding: 7px 12px; border-radius: 999px; }
.lp-h1 { font-family: var(--display); font-weight: 700; text-transform: uppercase; line-height: .92; letter-spacing: -.01em;
  font-size: clamp(48px, 8.2vw, 104px); margin: 18px 0 0; }
.lp-h1 em { font-style: normal; color: var(--accent); }
.lp-sub { max-width: 640px; color: var(--soft); font-size: clamp(16px, 1.6vw, 19px); line-height: 1.55; margin: 18px 0 0; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-btn { display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 0 22px; border-radius: 14px; font-weight: 700;
  text-decoration: none; font-size: 15px; transition: transform .15s ease, background .15s ease; }
.lp-btn:hover { transform: translateY(-1px); }
.lp-btn.primary { background: var(--accent); color: var(--accent-ink); }
.lp-btn.primary:hover { background: var(--accent-soft); color: var(--accent-ink); }
.lp-btn.ghost { background: var(--s1); color: var(--text); border: 1px solid var(--line); }
.lp-btn.ghost:hover { background: var(--s2); color: var(--text); }
.lp-note { margin-top: 14px; font-size: 13px; color: var(--muted); }

/* Device stage: live, clickable app screens inside device frames */
.devices { --sp: .62; --st: .52; --sa: .58; display: flex; justify-content: center; align-items: flex-end; margin: 56px auto 0; position: relative; }
.device { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; }
.device .frame { position: relative; background: #050806; box-shadow: 0 40px 80px -30px rgba(0,0,0,.9), 0 0 0 1px #2C3A33 inset, 0 0 0 2px #0A0F0C; }
.device .vp { position: relative; overflow: hidden; background: var(--bg); width: calc(var(--w) * var(--s) * 1px); height: calc(var(--h) * var(--s) * 1px); }
.device iframe { position: absolute; top: 0; left: 0; border: 0; width: calc(var(--w) * 1px); height: calc(var(--h) * 1px); transform: scale(var(--s)); transform-origin: 0 0; }
.device .cap { text-align: center; font-size: 13px; color: var(--muted); }
.device .cap b { display: block; color: var(--text); font-size: 14px; margin-bottom: 2px; }
.device .cap a { font-weight: 600; text-decoration: none; }

/* iPhone-style: rounded slab, pill cutout */
.d-phone { --w: 390; --h: 844; --s: var(--sp); z-index: 2; margin-right: -64px; }
.d-phone .frame { padding: 10px; border-radius: 48px; }
.d-phone .vp { border-radius: 38px; }
.d-phone .frame::after { content: ''; position: absolute; top: 18px; left: 50%; width: 74px; height: 20px; margin-left: -37px; border-radius: 12px; background: #050806; z-index: 3; }
/* Tablet-style: even bezel, landscape */
.d-tablet { --w: 1180; --h: 820; --s: var(--st); z-index: 1; }
.d-tablet .frame { padding: 18px; border-radius: 30px; }
.d-tablet .vp { border-radius: 12px; }
.d-tablet .frame::after { content: ''; position: absolute; top: 7px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #1E2A24; }
/* Android-style: thin bezel, punch-hole camera */
.d-android { --w: 412; --h: 892; --s: var(--sa); z-index: 2; margin-left: -64px; }
.d-android .frame { padding: 7px; border-radius: 34px; }
.d-android .vp { border-radius: 28px; }
.d-android .frame::after { content: ''; position: absolute; top: 16px; left: 50%; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; background: #050806; box-shadow: 0 0 0 2px #121915; z-index: 3; }

@media (max-width: 1100px) { .devices { --sp: .52; --st: .42; --sa: .48; } .d-phone { margin-right: -48px; } .d-android { margin-left: -48px; } }
@media (max-width: 860px) { .devices { --sp: .5; --sa: .46; gap: 20px; } .d-tablet { display: none; } .d-phone, .d-android { margin: 0; } }
@media (max-width: 440px) { .devices { --sp: .4; --sa: .37; gap: 12px; } .device .cap { font-size: 12px; } }
.tablet-link { display: none; }
@media (max-width: 860px) { .tablet-link { display: inline-flex; } }

/* Proof strip */
.lp-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line2); border: 1px solid var(--line2); border-radius: 20px; overflow: hidden; margin-top: 72px; }
.lp-strip > div { background: var(--hero); padding: 22px 20px; display: flex; flex-direction: column; gap: 6px; }
.lp-strip .t { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.lp-strip .d { color: var(--muted); font-size: 14px; line-height: 1.45; }
@media (max-width: 900px) { .lp-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .lp-strip { grid-template-columns: 1fr; } }

/* Sections */
.lp-sec { padding-top: 96px; }
.lp-sec h2 { font-family: var(--display); font-weight: 700; text-transform: uppercase; font-size: clamp(36px, 5vw, 56px); line-height: .95; margin: 10px 0 0; }
.lp-sec .lede { color: var(--soft); max-width: 620px; font-size: 17px; line-height: 1.55; margin: 14px 0 0; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

.mods { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 36px; }
@media (max-width: 1100px) { .mods { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) { .mods { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .mods { grid-template-columns: 1fr; } }
.mod { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text);
  position: relative; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.mod:hover { color: var(--text); border-color: var(--c); transform: translateY(-2px); }
.mod::before { content: ''; position: absolute; inset: 0 0 auto; height: 3px; background: var(--c); }
/* The same line art each module's heading card uses in the app. */
.mod-art { position: relative; display: block; height: 120px; margin: -22px -22px 4px; background: var(--hero); border-bottom: 1px solid var(--line2); overflow: hidden; }
.mod-art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.mod-art .tier { position: absolute; left: 14px; bottom: 12px; background: var(--hero); }
.mod .name { font-family: var(--display); font-size: 28px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.mod .tier { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--c); color: var(--c); }
.mod p { margin: 0; color: var(--soft); font-size: 14px; line-height: 1.5; flex: 1; }
.mod .go { font-size: 14px; font-weight: 700; color: var(--c); }

.race { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; margin-top: 36px; }
@media (max-width: 900px) { .race { grid-template-columns: 1fr; } }
.race .card { border-radius: 22px; padding: 26px; }
.race .big { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0; }
.race .big .num { font-size: 40px; }
.race ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; }
.race li { display: flex; gap: 12px; align-items: flex-start; color: var(--soft); font-size: 15px; line-height: 1.45; }
.race li span:first-child { flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--ai-bg); color: var(--ai); border: 1px solid var(--ai-line); font-weight: 700; font-size: 13px; }

.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .tiers { grid-template-columns: 1fr; } }
.tier-card { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.tier-card.hot { border-color: var(--accent-line); background: linear-gradient(180deg, var(--accent-bg), var(--s1) 60%); }
.tier-card .name { font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1; }
.tier-card .price { color: var(--muted); font-size: 14px; }
.tier-mods { display: flex; flex-wrap: wrap; gap: 8px; }
.tier-mod { font-family: var(--display); font-size: 20px; font-weight: 700; text-transform: uppercase; line-height: 1; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--c); color: var(--c); }
.tier-card ul { margin: 0; padding: 0 0 0 18px; color: var(--soft); font-size: 14px; line-height: 1.7; }

.lp-cta { margin: 96px 0 0; border-radius: 28px; padding: 48px 32px; text-align: center; background: radial-gradient(500px 220px at 50% 0%, rgba(255,122,61,.22), transparent 70%), var(--hero); border: 1px solid var(--line); }
.lp-cta h2 { margin: 0; }
.lp-cta .lp-ctas { justify-content: center; }

.lp-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 40px; padding-bottom: 48px; color: var(--muted); font-size: 13px; }
.lp-foot a { color: var(--soft); text-decoration: none; margin-right: 18px; }

/* Open on your phone: QR on desktop, Add to Home Screen tip on a phone */
.lp-hero > .lp-wrap:first-of-type { position: relative; }
.lp-qr { position: absolute; right: 24px; bottom: 0; width: 370px; display: flex; flex-direction: column; gap: 14px; background: rgba(21,31,26,.85); border: 1px solid var(--line); border-radius: 18px; padding: 14px; backdrop-filter: blur(6px); }
.lp-qr .qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.lp-qr .qr svg { width: 100%; height: 100%; display: block; }
@media (max-width: 1100px) { .lp-qr { position: static; margin-top: 22px; } }
@media (max-width: 860px) { .lp-qr { display: none; } }
.lp-mobile-tip { display: none; margin-top: 18px; flex-direction: column; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; }
@media (max-width: 860px) { .lp-mobile-tip { display: flex; } }
/* Installed to the home screen: keep content clear of the status bar */
@media (display-mode: standalone) { .pad { padding-top: max(48px, calc(env(safe-area-inset-top) + 12px)); } }

/* The hero glow reaches up behind the header; it must never take clicks meant for the top links. */
.lp-hero::before, .lp-topo { pointer-events: none; }
html { scroll-behavior: smooth; }
.lp-sec { scroll-margin-top: 16px; }

/* Module pages (garage.html, fitness.html, crew.html, kits.html, adventures.html). Written by tools/module-pages.py. */
a.wordmark { text-decoration: none; color: var(--text); }
.mp-hero { position: relative; padding: 28px 0 0; isolation: isolate; overflow: hidden; }
.mp-art { position: absolute; inset: 0 0 auto auto; width: min(900px, 100%); height: 620px; z-index: -1; opacity: .7; pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent); mask-image: linear-gradient(180deg, #000 55%, transparent); }
.mp-art .art { width: 100%; height: 100%; }
.mp-cols { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
.mp-plan { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c); border: 1px solid var(--c); border-radius: 999px; padding: 6px 12px; }
.mp-h1 { font-size: clamp(44px, 6.4vw, 84px); margin: 16px 0 0; }
.mp-name { display: block; color: var(--c); }
.mp-phone { --s: .62; margin: 0; }
@media (max-width: 1000px) { .mp-phone { --s: .52; } }
@media (max-width: 820px) { .mp-cols { grid-template-columns: 1fr; } .mp-phone { justify-self: center; --s: .7; } }
.feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 36px; }
@media (max-width: 900px) { .feats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .feats { grid-template-columns: 1fr; } }
.feat { background: var(--s1); border: 1px solid var(--line); border-radius: 20px; padding: 22px; position: relative; overflow: hidden; }
.feat::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--c); }
.feat .t { font-family: var(--display); font-size: 24px; font-weight: 700; text-transform: uppercase; line-height: 1.05; }
.feat p { margin: 8px 0 0; color: var(--soft); font-size: 15px; line-height: 1.5; }
main[style] .race li span:first-child { background: transparent; color: var(--c); border-color: var(--c); }
.mp-next { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 96px; }
.mp-next a { display: flex; flex-direction: column; gap: 4px; padding: 22px; border-radius: 20px; border: 1px solid var(--line); background: var(--s1); text-decoration: none; color: var(--text); }
.mp-next a:hover { border-color: var(--c); }
.mp-next .name { font-family: var(--display); font-size: 30px; font-weight: 700; text-transform: uppercase; line-height: 1; color: var(--c); }
@media (max-width: 820px) { .mp-art { opacity: .35; } }

.lp-kicker a { color: inherit; text-decoration: none; }
.lp-kicker a:hover, .lp-kicker a:focus-visible { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
/* Module pages use the same module bar as the main page, with the page you are on picked out. */
.mp-bar { display: flex; width: fit-content; max-width: 100%; margin-bottom: 22px; flex-wrap: wrap; }
.lp-kicker a[aria-current] { color: var(--accent-ink); background: var(--accent); border-radius: 999px; padding: 3px 9px; margin: -3px -3px; }
.lp-kicker a[aria-current]:hover { color: var(--accent-ink); text-decoration: none; }
/* Two ways in: the demo (simulation) and the beta (the real app). */
.lp-qr .qr-row { display: flex; gap: 14px; align-items: center; }
/* The beta's way in sits under the plans, away from the demo code. */
.plans-beta { display: flex; gap: 16px; align-items: center; margin-top: 22px; max-width: 560px; background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px; }
.plans-betas { display: grid; grid-template-columns: repeat(2, minmax(0, 560px)); gap: 16px; margin-top: 22px; align-items: stretch; }
.plans-betas .plans-beta { margin-top: 0; max-width: none; }
.plans-beta .qr.desk { background: var(--s2); color: var(--ai); border: 1px solid var(--line); display: grid; place-items: center; padding: 18px; }
@media (max-width: 860px) { .plans-betas { grid-template-columns: 1fr; } .plans-beta .qr.desk { display: none; } }
.plans-beta .qr { width: 104px; height: 104px; flex: none; background: #fff; border-radius: 10px; padding: 4px; }
.plans-beta .qr svg { width: 100%; height: 100%; display: block; }
.plans-beta .lp-btn { align-self: flex-start; margin-top: 4px; }
@media (max-width: 860px) { .plans-beta .qr { display: none; } }
.beta-chip { display: inline-block; vertical-align: middle; margin-left: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ai); border: 1px solid var(--ai); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
