:root {
  --blue: #0786d8;
  --blue-deep: #0564a7;
  --blue-soft: #eaf7ff;
  --green: #54c83f;
  --green-deep: #2d9a29;
  --green-soft: #effbea;
  --ink: #122033;
  --muted: #5e6b7c;
  --line: #dce8f1;
  --line-strong: #b9d5e8;
  --surface: #ffffff;
  --surface-alt: #f7fbfe;
  --shadow: 0 18px 50px rgba(18, 32, 51, 0.08);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #ffffff 0%, #f8fcff 44%, #ffffff 100%);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255,255,255,0.86);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(220, 232, 241, 0.85);
}

.nav-shell {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img { width: 188px; height: auto; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 0.94rem; color: var(--muted); }
.nav-links a { transition: color .18s ease, transform .18s ease; }
.nav-links a:hover { color: var(--blue-deep); transform: translateY(-1px); }
.nav-cta {
  color: var(--blue-deep) !important;
  border: 1px solid var(--line-strong);
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
}
.nav-toggle { display: none; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; font-size: 1.2rem; }

.section-pad { padding: 88px 24px; }
.compact { padding-top: 72px; padding-bottom: 72px; }
.tinted { background: linear-gradient(135deg, var(--blue-soft) 0%, #fff 52%, var(--green-soft) 100%); border-block: 1px solid var(--line); }

.hero { padding-top: 92px; }
.hero-grid, .split-layout, .contact-shell, .section-heading, .about-card {
  max-width: var(--max);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.72fr);
  gap: 44px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  font-size: clamp(3.1rem, 7vw, 6.25rem);
  line-height: 0.93;
  letter-spacing: -0.07em;
  margin-bottom: 24px;
}
h2 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  margin-bottom: 18px;
}
h3 { font-size: 1.18rem; letter-spacing: -0.025em; margin-bottom: 10px; }
.lead { font-size: 1.28rem; color: var(--muted); max-width: 720px; }
.section-copy, .section-heading p, .about-card p, .contact-shell p { color: var(--muted); font-size: 1.08rem; max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.button.primary { color: #fff; background: linear-gradient(135deg, var(--blue), var(--green)); }
.button.secondary { color: var(--blue-deep); background: #fff; border-color: var(--line-strong); }
.button.large { min-height: 54px; padding-inline: 24px; white-space: nowrap; }

.hero-card {
  position: relative;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: 34px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -44px auto;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(84,200,63,.18), rgba(7,134,216,.06), transparent 70%);
}
.hero-card h2 { font-size: clamp(2rem, 4vw, 3rem); position: relative; z-index: 1; }
.hero-card p { color: var(--muted); position: relative; z-index: 1; margin-bottom: 0; }
.pulse-line {
  height: 76px;
  margin-bottom: 24px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 0 6%, var(--blue) 6% 7%, transparent 7% 14%, var(--green) 14% 15%, transparent 15% 23%, var(--blue) 23% 24%, transparent 24% 32%, var(--green) 32% 33%, transparent 33% 42%, var(--blue) 42% 43%, transparent 43% 100%),
    linear-gradient(180deg, #fff, #f7fbfe);
}

.section-heading { text-align: center; margin-bottom: 42px; }
.section-heading .eyebrow { justify-content: center; }
.section-heading p { margin-inline: auto; }
.narrow { max-width: 880px; }

.thin-card-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.thin-card-grid.four { grid-template-columns: repeat(4, 1fr); }
.thin-card-grid.three { grid-template-columns: repeat(3, 1fr); }
.thin-card, .output-card, .moment-card, .about-card, .trust-panel {
  background: rgba(255,255,255,0.96);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(18, 32, 51, 0.055);
}
.thin-card, .output-card { padding: 26px; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.thin-card:hover, .output-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.card-index { display: block; color: var(--green-deep); font-weight: 900; font-size: .84rem; margin-bottom: 24px; }
.thin-card p, .output-card p, .moment-card p { color: var(--muted); margin-bottom: 0; }

.moment-grid {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.moment-card { padding: 30px; border-radius: 28px; }
.moment-card.featured { border-color: rgba(7,134,216,.34); box-shadow: 0 22px 58px rgba(7, 134, 216, .14); transform: translateY(-10px); }
.moment-topline { font-size: .78rem; color: var(--blue-deep); font-weight: 900; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 14px; }
.moment-card ul { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.moment-card li { color: var(--ink); padding-left: 22px; position: relative; font-weight: 650; }
.moment-card li::before { content: ""; position: absolute; left: 0; top: .65em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, var(--blue), var(--green)); }

.split-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 54px;
  align-items: start;
}
.align-center { align-items: center; }
.process-list { display: grid; gap: 16px; }
.process-list article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
}
.process-list span {
  width: 44px; height: 44px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--blue-soft), var(--green-soft));
  color: var(--blue-deep); font-weight: 900;
}
.process-list p { margin-bottom: 0; color: var(--muted); }

.output-card { min-height: 210px; border-top: 3px solid transparent; }
.output-card:nth-child(odd) { border-top-color: var(--blue); }
.output-card:nth-child(even) { border-top-color: var(--green); }

.trust-panel { padding: 10px; display: grid; gap: 10px; }
.trust-item { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.trust-item strong { display: block; margin-bottom: 5px; }
.trust-item span { color: var(--muted); }
.about { padding-top: 78px; }
.about-card { padding: 42px; background: linear-gradient(135deg, #fff, #f8fcff); }

.contact { padding-top: 40px; }
.contact-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(420px, 0.95fr);
  align-items: stretch;
  gap: 46px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  padding: 40px;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-soft) 52%, var(--green-soft) 100%);
  box-shadow: var(--shadow);
}
.contact-shell h2 { max-width: 640px; }

.contact-left {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  align-items: flex-start;
}

.contact-copy {
  max-width: 620px;
}

.contact-card {
  margin-top: auto;
  max-width: 320px;
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  background: rgba(255,255,255,0.9);
  padding: 24px;
  box-shadow: 0 18px 50px rgba(20, 92, 130, 0.12);
  display: grid;
  gap: 10px;
}
.contact-card-label {
  color: var(--green-deep);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .72rem;
  font-weight: 800;
}
.contact-card h3 { margin: 0; font-size: 1.3rem; color: var(--ink); }
.contact-card a:not(.button) { color: var(--blue-deep); font-weight: 700; }
.contact-card a:not(.button):hover { color: var(--green-deep); }
.contact-button { margin-top: 8px; justify-content: center; }


.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 34px 24px 48px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a:hover { color: var(--blue-deep); }

@media (max-width: 980px) {
  .hero-grid, .split-layout, .moment-grid, .thin-card-grid.three, .thin-card-grid.four { grid-template-columns: 1fr; }
  .moment-card.featured { transform: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute;
    top: 76px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    box-shadow: var(--shadow);
  }
  .nav-links.open { display: flex; }
  .nav-cta { text-align: center; }
  .contact-shell { grid-template-columns: 1fr; gap: 24px; }
  .contact-left { width: 100%; }
  .contact-card { width: 100%; max-width: none; margin-top: 24px; }
  .inquiry-form { max-width: none; justify-self: stretch; }
}

@media (max-width: 640px) {
  .section-pad { padding: 62px 18px; }
  .hero { padding-top: 64px; }
  .brand img { width: 158px; }
  h1 { font-size: clamp(2.55rem, 17vw, 4.1rem); }
  .lead { font-size: 1.08rem; }
  .hero-card, .about-card, .contact-shell { padding: 26px; border-radius: 24px; }
  .site-footer { flex-direction: column; }
}

/* v3 safety-aware / telemetry pedigree section */
.rigor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .75fr);
  gap: 24px;
  align-items: stretch;
  margin: 34px auto 24px;
  max-width: 1180px;
}
.rigor-copy,
.rigor-note {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(25,74,118,.08);
}
.rigor-copy { padding: 34px; }
.rigor-copy h3 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: -0.02em;
}
.rigor-copy p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}
.rigor-copy p:last-child { margin-bottom: 0; }
.rigor-note {
  padding: 30px;
  background: linear-gradient(180deg, rgba(232, 249, 242, .95), rgba(237, 247, 255, .95));
  border-color: rgba(34,181,115,.22);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.note-label {
  display: inline-flex;
  align-self: flex-start;
  margin-bottom: 16px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(16, 126, 198, .22);
  color: var(--blue);
  background: rgba(255,255,255,.72);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.rigor-note p {
  margin: 0;
  color: var(--navy);
  line-height: 1.7;
  font-weight: 560;
}
.rigor-cards { margin-top: 28px; }
@media (max-width: 860px) {
  .rigor-panel { grid-template-columns: 1fr; }
  .rigor-copy,
  .rigor-note {
    border-radius: 22px;
    padding: 24px;
  }
}

/* v4 defensive prior-art publication */
:root { --navy: var(--ink); }
.button.text-link {
  color: var(--blue-deep);
  background: transparent;
  border-color: transparent;
  padding-inline: 6px;
}
.button.text-link:hover {
  box-shadow: none;
  text-decoration: underline;
}
.hero-disclosure {
  margin-top: 24px;
  max-width: 760px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--green);
  border-radius: 18px;
  background: linear-gradient(135deg, #ffffff, var(--green-soft));
  color: var(--muted);
  font-size: .98rem;
}
.hero-disclosure strong { color: var(--ink); }
.hero-disclosure a {
  color: var(--blue-deep);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.prior-hero {
  background:
    radial-gradient(circle at 18% 20%, rgba(7,134,216,.08), transparent 32%),
    radial-gradient(circle at 72% 12%, rgba(84,200,63,.10), transparent 28%);
}
.footer-links a { white-space: nowrap; }
@media (max-width: 640px) {
  .button.text-link { justify-content: flex-start; }
  .hero-disclosure { font-size: .94rem; }
}

/* v6 research insights, not data sales */
.hero-trustline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}
.hero-trustline span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--blue-deep);
  font-weight: 850;
  font-size: .9rem;
  box-shadow: 0 8px 24px rgba(18, 32, 51, .045);
}
.hero-trustline span:first-child {
  color: var(--ink);
  border-color: rgba(84,200,63,.42);
  background: linear-gradient(135deg, #fff, var(--green-soft));
}
.featured-trust {
  border-color: rgba(84,200,63,.45);
  background: linear-gradient(135deg, #ffffff, var(--green-soft));
}
.featured-trust strong { color: var(--ink); }

/* Netlify partner inquiry form */
.inquiry-form {
  width: 100%;
  max-width: 520px;
  justify-self: end;
  background: #ffffff;
  border: 1px solid rgba(42, 157, 143, 0.28);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(11, 72, 92, 0.08);
}

.inquiry-form p { margin: 0 0 16px; }

.inquiry-form label {
  display: grid;
  gap: 8px;
  color: #164457;
  font-weight: 700;
  font-size: 0.92rem;
}

.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(36, 124, 155, 0.28);
  border-radius: 14px;
  padding: 12px 14px;
  color: #143747;
  background: #fbfeff;
  font: inherit;
}

.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  outline: 3px solid rgba(42, 157, 143, 0.16);
  border-color: rgba(42, 157, 143, 0.85);
}

.form-fallback {
  color: #5f7a86;
  font-size: 0.92rem;
}


/* v10 thank-you page polish */
.thank-you-wrap {
  padding-top: 96px;
  padding-bottom: 96px;
}

.thank-you-card {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px;
  border: 1px solid var(--line-strong);
  border-radius: 34px;
  background: linear-gradient(135deg, #ffffff 0%, var(--blue-soft) 60%, var(--green-soft) 100%);
  box-shadow: var(--shadow);
}

.thank-you-card .lead {
  max-width: 760px;
  margin-bottom: 0;
}

@media (max-width: 640px) {
  .thank-you-wrap {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .thank-you-card {
    padding: 28px;
    border-radius: 24px;
  }
}


/* v13 alpha login link */
.login-link {
  color: var(--green-deep) !important;
  font-weight: 850;
}

.login-link:hover {
  color: var(--blue-deep) !important;
}


/* v14 trust link to founder evidence site */
.person-link {
  color: var(--ink);
  text-decoration: none;
}

.person-link:hover {
  color: var(--blue-deep);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.trust-founder-link {
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--blue);
  border-radius: 18px;
  background: rgba(255,255,255,0.72);
}

.trust-founder-link a {
  color: var(--blue-deep);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 4px;
}


/* v15: health-in-the-wild positioning */
.wild-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 12%, rgba(7, 134, 216, 0.10), transparent 34%),
    radial-gradient(circle at 92% 18%, rgba(84, 200, 63, 0.12), transparent 30%),
    #ffffff;
  border-block: 1px solid rgba(220, 232, 241, 0.72);
}
.wild-section .section-heading {
  margin-bottom: 34px;
}
.wild-section .thin-card {
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(12px);
}
