/* ============================================================
   BioCompass — Landing Page (hi-fi)
   Direction C "Proof Mosaic": light warm paper, mint accent,
   centered single column, premium-wellness.
   ============================================================ */

:root {
  /* accent is tweakable; default = app mint */
  --accent:       #0F9A6C;
  --accent-deep:  #0B7150;
  --accent-tint:  #E7F2EC;
  --accent-glow:  rgba(15,154,108,.20);

  --paper:        #F3F1E9;
  --paper-2:      #FAF8F2;
  --ink:          #1A1B18;
  --ink-soft:     #54564E;
  --ink-faint:    #8C8D84;
  --line:         #E0DDD2;
  --line-strong:  #CFCCBF;

  --dark:         #0C0E0D;
  --dark-2:       #14171500;

  --serif: "Spectral", Georgia, serif;
  --sans:  "Hanken Grotesk", system-ui, sans-serif;
  --mono:  "Space Mono", ui-monospace, monospace;

  --measure: 640px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }

/* layout shell ------------------------------------------------ */
.wrap {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}
section { position: relative; }
.band-tint { background: var(--accent-tint); }
.band-paper2 { background: var(--paper-2); }
.band-dark { background: var(--dark); color: #ECECE6; }
.divider { height: 1px; background: var(--line); }

/* typography -------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.band-dark .eyebrow { color: var(--accent); }
.eyebrow.center { justify-content: center; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -.018em;
  line-height: 1.06;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(38px, 7.6vw, 58px); }
h2 { font-size: clamp(29px, 5.4vw, 40px); line-height: 1.08; }
h3 { font-size: clamp(22px, 4vw, 27px); line-height: 1.14; }
.serif-em { font-style: italic; color: var(--accent-deep); }
.band-dark .serif-em { color: var(--accent); }

.lede {
  font-size: clamp(17px, 2.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
}
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.muted { color: var(--ink-soft); }
.band-dark .muted { color: #B4B6AD; }
strong { font-weight: 600; color: var(--ink); }
.band-dark strong { color: #fff; }
.accent { color: var(--accent-deep); font-weight: 600; }
.band-dark .accent { color: var(--accent); }

/* top bar ----------------------------------------------------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 16px; padding-bottom: 16px;
  max-width: 1000px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--serif); font-weight: 500; font-size: 20px;
  letter-spacing: -.01em; color: var(--ink); text-decoration: none;
}
.brand .logo { width: 24px; height: 24px; display: block; }
.nav-cta {
  font-family: var(--sans); font-size: 14px; font-weight: 600;
  color: var(--ink); text-decoration: none;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 9px 17px; transition: .2s; white-space: nowrap;
}
.nav-cta:hover { border-color: var(--accent); color: var(--accent-deep); }

/* hero -------------------------------------------------------- */
.hero { padding: clamp(64px, 12vw, 120px) 0 clamp(54px, 9vw, 96px); text-align: center; }
.hero .wrap { max-width: 720px; }
.hero h1 { margin-bottom: 22px; }
.hero .lede { max-width: 30ch; margin: 0 auto 34px; }

/* email capture ----------------------------------------------- */
.capture {
  display: flex; gap: 9px;
  max-width: 420px; margin: 0 auto;
}
.capture.stack { flex-direction: column; }
.field {
  flex: 1;
  font-family: var(--sans); font-size: 15px;
  padding: 15px 17px;
  border: 1px solid var(--line-strong); border-radius: 13px;
  background: #fff; color: var(--ink);
  transition: border-color .2s, box-shadow .2s;
}
.field::placeholder { color: var(--ink-faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-glow); }
.band-dark .field { background: #16191780; border-color: #2a2d28; color: #fff; }

.btn {
  font-family: var(--sans); font-weight: 600; font-size: 15px;
  border: 0; border-radius: 13px;
  background: var(--accent); color: #fff;
  padding: 15px 22px; white-space: nowrap; cursor: pointer;
  transition: transform .15s, filter .2s, box-shadow .2s;
  box-shadow: 0 8px 22px -10px var(--accent-glow);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.block { width: 100%; }

.micro { font-size: 13px; color: var(--ink-faint); margin: 14px 0 0; line-height: 1.5; }
.band-dark .micro { color: #80837a; }

/* proof chips ------------------------------------------------- */
.chips {
  display: flex; flex-wrap: wrap; gap: 9px;
  margin-top: 26px;
}
.chips.center { justify-content: center; }
.chip {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .02em;
  border: 1px solid var(--line-strong); border-radius: 999px;
  padding: 7px 13px; color: var(--ink-soft);
  display: inline-flex; align-items: center; gap: 7px;
  background: color-mix(in srgb, #fff 50%, transparent);
}
.chip::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* phone inset ------------------------------------------------- */
.phone {
  position: relative;
  border-radius: 30px;
  background: #060706;
  padding: 5px;
  outline: 1px solid #2b2d28;
  box-shadow: 0 40px 70px -38px rgba(20,22,16,.55), 0 8px 20px -12px rgba(20,22,16,.3);
}
.phone::after {
  /* soft accent glow behind device */
  content: ""; position: absolute; inset: -8% -14%; z-index: -1;
  background: radial-gradient(60% 50% at 50% 40%, var(--accent-glow), transparent 70%);
  filter: blur(8px);
}
.phone img { border-radius: 25px; width: 100%; }

/* zigzag proof rows ------------------------------------------- */
.proof { padding: clamp(48px, 8vw, 88px) 0; }
.proof .wrap { max-width: 680px; }
.zig {
  display: flex; gap: clamp(24px, 5vw, 48px);
  align-items: center;
}
.zig.rev { flex-direction: row-reverse; }
.zig .media { flex: 0 0 176px; }
.zig .copy { flex: 1; }
.zig .copy h3 { margin-bottom: 14px; }
.kicker {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent-deep);
  margin: 0 0 12px;
}
.band-dark .kicker { color: var(--accent); }

/* section heads ----------------------------------------------- */
.sec { padding: clamp(56px, 9vw, 104px) 0; }
.sec-head { text-align: center; max-width: 32ch; margin: 0 auto clamp(36px, 6vw, 54px); }
.sec-head h2 { margin-bottom: 16px; }

/* how-it-works steps ------------------------------------------ */
.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.step {
  background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px;
  position: relative;
}
.step .n {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em;
  color: var(--accent-deep);
}
.step h4 { font-family: var(--sans); font-weight: 600; font-size: 17px; margin: 12px 0 7px; }
.step p { font-size: 14.5px; color: var(--ink-soft); margin: 0; line-height: 1.5; }

/* why-it-matters dark band ------------------------------------ */
.why { padding: clamp(64px, 11vw, 120px) 0; text-align: center; }
.why .wrap { max-width: 620px; }
.pull {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 5vw, 36px); line-height: 1.22; letter-spacing: -.01em;
  margin: 0 0 24px;
}
.why .lede { max-width: 36ch; margin: 0 auto; }

/* comparison -------------------------------------------------- */
.cmp-wrap { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; }
.cmp { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cmp th, .cmp td { padding: 15px 16px; text-align: left; vertical-align: middle; }
.cmp thead th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-faint); font-weight: 400;
  border-bottom: 1px solid var(--line);
}
.cmp thead th.us { color: var(--accent-deep); }
.cmp tbody td { border-bottom: 1px solid var(--line); }
.cmp tbody tr:last-child td { border-bottom: 0; }
.cmp td.label { color: var(--ink-soft); }
.cmp td.them { color: var(--ink-faint); }
.cmp .us { background: var(--accent-tint); color: var(--accent-deep); font-weight: 600; }

/* who / benefit list ------------------------------------------ */
.benefits { display: grid; gap: 0; max-width: 560px; margin: 0 auto; }
.benefit { padding: 20px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.benefit:last-child { border-bottom: 0; }
.benefit .bn { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); flex: 0 0 24px; padding-top: 3px; }
.benefit b { display: block; font-size: 17px; margin-bottom: 4px; }
.benefit span { font-size: 14.5px; color: var(--ink-soft); line-height: 1.5; }

/* privacy ----------------------------------------------------- */
.priv { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 620px; margin: 0 auto; }
.priv .pr { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.priv .pr b { display: block; font-size: 15.5px; margin-bottom: 6px; }
.priv .pr span { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; }

/* faq --------------------------------------------------------- */
.faq { max-width: 600px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line);
  padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer;
  font-size: 17px; font-weight: 600;
  padding: 18px 36px 18px 0; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 4px; top: 16px;
  font-family: var(--sans); font-weight: 400; font-size: 24px; color: var(--accent);
  transition: transform .25s;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { font-size: 15px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 18px; padding-right: 28px; }

/* final cta --------------------------------------------------- */
.final { padding: clamp(64px, 11vw, 120px) 0; text-align: center; }
.final .wrap { max-width: 620px; }
.final h2 { margin-bottom: 26px; max-width: 18ch; margin-left: auto; margin-right: auto; }

/* footer ------------------------------------------------------ */
.foot { padding: 48px 0 64px; }
.foot .wrap { max-width: 760px; }
.foot .frow { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.foot .flinks { display: flex; gap: 22px; font-size: 13.5px; }
.foot .flinks a { color: var(--ink-soft); text-decoration: none; }
.foot .flinks a:hover { color: var(--accent-deep); }
.disclaimer { font-size: 12px; line-height: 1.6; color: var(--ink-faint); margin: 0; }

/* scroll reveal ----------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(20px); }
.reveal-ready [data-reveal] {
  transition: opacity .8s cubic-bezier(.22,.7,.2,1), transform .8s cubic-bezier(.22,.7,.2,1);
}
[data-reveal].is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* responsive -------------------------------------------------- */
@media (max-width: 560px) {
  body { font-size: 16px; }
  .zig, .zig.rev { flex-direction: column; text-align: left; gap: 22px; }
  .zig .media { flex: 0 0 auto; width: 60%; max-width: 230px; margin: 0 auto; }
  .steps { grid-template-columns: 1fr; }
  .priv { grid-template-columns: 1fr; }
  .capture { flex-direction: column; }
  .nav-cta { display: none; }
}
