/* biohacktracker.ai — shared styles for the landing (/) and download (/download) pages.
   Light = the app's light theme (teal ink on cool white). Dark = cyan on near-black. */
:root {
  --bg: #f1f4f5;
  --bg-2: #e6eef0;
  --card: #ffffff;
  --border: rgba(10,48,64,0.10);
  --text: #0b1a20;
  --muted: #4f5f66;
  --accent: #007894;
  --accent-ink: #ffffff;
  --accent-soft: rgba(0,120,148,0.10);
  --lime: #1f7a52;
  --lime-soft: rgba(31,122,82,0.12);
  --lilac: #6b4fc4;
  --rose: #bb4145;
  --amber: #9a6208;
  --shadow: 0 10px 30px -12px rgba(10,48,64,0.25);
  --glow: rgba(0,120,148,0.16);
  --danger: #b42318;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #07090b;
    --bg-2: #0c1114;
    --card: #11171a;
    --border: rgba(238,243,245,0.09);
    --text: #eef3f5;
    --muted: #9aa6ad;
    --accent: #5fe3f5;
    --accent-ink: #04222b;
    --accent-soft: rgba(95,227,245,0.10);
    --lime: #8fd1b0;
    --lime-soft: rgba(143,209,176,0.13);
    --lilac: #c3b3ec;
    --rose: #f0a8a8;
    --amber: #f2c98b;
    --shadow: 0 14px 40px -14px rgba(0,0,0,0.75);
    --glow: rgba(95,227,245,0.14);
    --danger: #f0a8a8;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.6 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.display { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; letter-spacing: 0.02em; line-height: 1; margin: 0; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }
section { padding: 76px 0; scroll-margin-top: 72px; }
h2.display { font-size: clamp(40px, 6vw, 62px); }
.lead { color: var(--muted); font-size: 18px; max-width: 640px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Header */
header.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--border); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text); }
.brand img { width: 42px; height: 42px; border-radius: 10px; box-shadow: 0 0 0 1px var(--border); }
.brand span { font-weight: 800; font-size: 19px; letter-spacing: -0.3px; white-space: nowrap; }
nav.links { display: flex; gap: 22px; font-size: 14px; font-weight: 500; }
nav.links a { color: var(--muted); text-decoration: none; }
nav.links a:hover { color: var(--text); }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px; font-family: inherit; font-weight: 600; font-size: 15px; line-height: 1.2; text-decoration: none; border: 1px solid transparent; cursor: pointer; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 24px -10px var(--accent); }
.btn-ghost { background: var(--card); color: var(--text); border-color: var(--border); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn small { display: block; font-size: 11px; font-weight: 500; opacity: .75; letter-spacing: .02em; }
.btn svg { width: 22px; height: 22px; flex: none; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }

/* Store buttons: "coming soon" state until assets/store.json has URLs (site.js flips them). */
.store { cursor: default; min-width: 196px; padding: 11px 18px; background: #0b1316; color: #fff; border-color: rgba(255,255,255,0.14); }
.store span { text-align: left; font-size: 17px; font-weight: 700; }
.store small { opacity: .8; }
a.store { cursor: pointer; }
a.store:hover { filter: brightness(1.15); }
.store[aria-disabled="true"] { opacity: .88; }

/* Waitlist form */
.waitlist { margin-top: 18px; max-width: 520px; }
.waitlist .row { display: flex; gap: 10px; flex-wrap: wrap; }
.waitlist label.lbl { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.waitlist input[type=email] {
  flex: 1 1 240px; min-width: 0; padding: 13px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--card); color: var(--text); font: inherit; font-size: 15px;
}
.waitlist input[type=email]:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.waitlist .note { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.waitlist .status { font-size: 14px; font-weight: 600; margin: 8px 0 0; min-height: 1.2em; }
.waitlist .status.ok { color: var(--lime); }
.waitlist .status.err { color: var(--danger); }
.waitlist.done .row { display: none; }
/* No-JS fallback: the server redirects back to #waitlist-ok / #waitlist-invalid. */
.nojs-msg { display: none; font-size: 14px; font-weight: 600; margin: 8px 0 0; }
.nojs-msg:target { display: block; }
#waitlist-ok { color: var(--lime); }
#waitlist-invalid { color: var(--danger); }
body.live .when-soon { display: none; }
body:not(.live) .when-live { display: none; }

/* Hero */
.hero { padding: 60px 0 36px; position: relative; }
.hero::before { content: ""; position: absolute; inset: -120px 0 auto; height: 660px; background: radial-gradient(620px 380px at 75% 32%, var(--glow), transparent 70%); pointer-events: none; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; position: relative; }
.hero .appmark { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.hero .appmark img { width: 76px; height: 76px; border-radius: 18px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45), 0 0 0 1px var(--border); }
.hero .appmark b { display: block; font-size: 20px; letter-spacing: -0.3px; }
.hero .appmark span { font-size: 14px; color: var(--muted); }
.hero h1 { font-size: clamp(54px, 8.4vw, 100px); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 18px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--lime-soft); color: var(--lime); font-size: 13px; font-weight: 700; margin-bottom: 16px; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.phones { position: relative; height: 580px; }
.phone { position: absolute; width: 256px; border-radius: 36px; overflow: hidden; border: 6px solid #0b0f12; box-shadow: var(--shadow); background: #0b0f12; }
.phone picture { display: block; }
.phone.a { right: 150px; top: 0; z-index: 2; }
.phone.b { right: 0; top: 64px; transform: rotate(4deg); }
.fine { font-size: 13px; color: var(--muted); margin-top: 14px; }

/* Trust bar */
.trust { padding: 22px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.trust li::before { content: "✓"; color: var(--lime); margin-right: 8px; }

/* Score section */
.score .wrap { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
.score .shot { max-width: 320px; margin: 0 auto; border-radius: 34px; overflow: hidden; border: 6px solid #0b0f12; box-shadow: var(--shadow); background: #0b0f12; }
.score .shot picture { display: block; }
.parts { display: grid; gap: 14px; margin-top: 26px; }
.part { display: flex; gap: 14px; align-items: flex-start; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.part i { flex: none; width: 12px; height: 12px; border-radius: 6px; margin-top: 7px; }
.part b { display: block; font-size: 17px; }
.part span { color: var(--muted); font-size: 15px; }
.part.v i { background: var(--rose); } .part.w i { background: var(--lilac); } .part.b i { background: var(--accent); }

/* Features */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ico { width: 44px; height: 44px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.ico svg { width: 22px; height: 22px; }

/* Screens */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 36px; }
.screens figure { margin: 0; }
.screens picture { display: block; }
.screens img { border-radius: 22px; border: 1px solid var(--border); box-shadow: var(--shadow); }
.screens figcaption { text-align: center; font-size: 14px; color: var(--muted); margin-top: 10px; font-weight: 500; }

/* Steps */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 36px; padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: 20px; padding: 24px; }
.steps li::before { content: counter(s, decimal-leading-zero); font-family: "Bebas Neue", Impact, sans-serif; font-size: 40px; color: var(--accent); display: block; line-height: 1; margin-bottom: 8px; }
.steps b { display: block; font-size: 18px; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: 15px; }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 36px; max-width: 820px; }
.price { position: relative; }
.price.pro { border: 2px solid var(--accent); }
.price .tag { position: absolute; top: -12px; right: 20px; background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; letter-spacing: .04em; }
.price h3 { font-family: "Bebas Neue", Impact, sans-serif; font-weight: 400; font-size: 32px; margin: 0; letter-spacing: .03em; }
.price .amt { font-size: 30px; font-weight: 700; margin: 8px 0 2px; }
.price .amt small { font-size: 15px; font-weight: 500; color: var(--muted); }
.price .sub { color: var(--muted); font-size: 14px; margin: 0 0 14px; }
.price ul { padding: 0; margin: 0; list-style: none; }
.price li { padding: 7px 0 7px 26px; position: relative; font-size: 15px; border-top: 1px solid var(--border); }
.price li::before { content: ""; position: absolute; left: 2px; top: 13px; width: 12px; height: 7px; border-left: 2px solid var(--lime); border-bottom: 2px solid var(--lime); transform: rotate(-45deg); }

/* Safety */
.safety .grid { grid-template-columns: repeat(2, 1fr); }
.safety .card { box-shadow: none; }
.safety .card h3 { margin-top: 0; }

/* FAQ */
.faq { max-width: 820px; margin-top: 30px; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 16px; margin-bottom: 10px; }
.faq summary { cursor: pointer; list-style: none; padding: 16px 48px 16px 20px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 20px; top: 12px; font-size: 22px; color: var(--accent); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); font-size: 15px; }

/* Final CTA */
.final { text-align: center; }
.final .box { background: var(--card); border: 1px solid var(--border); border-radius: 28px; padding: 56px 24px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.final .box::before { content: ""; position: absolute; inset: 0; background: radial-gradient(420px 220px at 50% 0%, var(--glow), transparent 70%); pointer-events: none; }
.final .box > * { position: relative; }
.final .lead { margin: 16px auto 0; }
.final .ctas { justify-content: center; }
.final .waitlist { margin: 18px auto 0; text-align: left; }
.final .appicon { width: 88px; height: 88px; border-radius: 20px; margin: 0 auto 18px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.45); }

/* Download page */
.dl { padding: 56px 0 72px; text-align: center; position: relative; }
.dl::before { content: ""; position: absolute; inset: -80px 0 auto; height: 520px; background: radial-gradient(520px 320px at 50% 30%, var(--glow), transparent 70%); pointer-events: none; }
.dl .wrap { position: relative; max-width: 760px; }
.dl .appicon { width: 116px; height: 116px; border-radius: 26px; margin: 0 auto 18px; box-shadow: 0 14px 36px -10px rgba(0,0,0,.5), 0 0 0 1px var(--border); }
.dl h1 { font-size: clamp(52px, 9vw, 84px); }
.dl .lead { margin: 12px auto 0; }
.dl .ctas { justify-content: center; }
.dl .waitlist { margin: 22px auto 0; text-align: left; }
.dl .qr { display: none; margin: 34px auto 0; max-width: 520px; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 22px; gap: 20px; align-items: center; text-align: left; }
.dl .qr img { width: 150px; height: 150px; border-radius: 10px; flex: none; }
.dl .qr b { display: block; font-size: 17px; margin-bottom: 4px; }
.dl .qr span { color: var(--muted); font-size: 14px; }
@media (hover: hover) and (pointer: fine) and (min-width: 760px) { .dl .qr { display: flex; } }
.dl .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 36px auto 0; text-align: left; }
.dl .mini div { background: var(--card); border: 1px solid var(--border); border-radius: 16px; padding: 14px 16px; font-size: 14px; color: var(--muted); }
.dl .mini b { display: block; color: var(--text); font-size: 15px; margin-bottom: 2px; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0 44px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }
footer a:hover { color: var(--text); }
footer p { margin: 4px 0; }

@media (max-width: 900px) {
  .hero .wrap, .score .wrap { grid-template-columns: 1fr; }
  .phones { height: 500px; max-width: 440px; margin: 0 auto; width: 100%; }
  .phone { width: 220px; }
  .phone.a { right: auto; left: 0; }
  .grid, .steps { grid-template-columns: 1fr 1fr; }
  .screens { grid-template-columns: 1fr 1fr; }
  nav.links { display: none; }
  .score .shot { order: 2; }
}
@media (max-width: 600px) {
  section { padding: 54px 0; }
  .wrap { padding: 0 16px; }
  .hero { padding-top: 36px; }
  .grid, .steps, .pricing, .safety .grid, .dl .mini { grid-template-columns: 1fr; }
  .phones { height: 420px; }
  .phone { width: 178px; border-radius: 28px; border-width: 5px; }
  .phone.b { top: 46px; }
  .ctas .btn { flex: 1 1 100%; justify-content: center; }
  .waitlist .row .btn { flex: 1 1 100%; justify-content: center; }
  .brand span { font-size: 17px; }
  .brand img { width: 36px; height: 36px; }
  .screens { gap: 12px; }
  .hero .appmark img { width: 64px; height: 64px; border-radius: 15px; }
}
@media (max-width: 380px) {
  .phone { width: 152px; }
  .phones { height: 360px; }
}
