/*
 * Genovia — marketing site styles.
 * Design tokens mirror the CrossCheck app (frontend/src/styles/tokens.js):
 * Uber Base Web language — black masthead, light canvas, ink text,
 * brand blue, black pill buttons, Uber Move w/ system fallback.
 */

:root {
  /* type */
  --font: "Uber Move", "UberMove", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* color — copied 1:1 from the app tokens */
  --ink: #1f2733;
  --muted: #6b7682;
  --faint: #9aa3ad;
  --line: #e6e8eb;
  --surface: #ffffff;
  --bg: #f6f6f6;
  --black: #000000;
  --brand: #276ef1;

  --pass: #05944f;
  --pass-bg: #e6f2ec;
  --pass-border: #9fd9bc;

  /* radii */
  --r-sm: 8px;
  --r-md: 10px;
  --r-lg: 12px;
  --r-xl: 14px;
  --r-pill: 999px;

  --maxw: 1060px;
}

/* Uber Move is proprietary and not bundled. Drop licensed .woff2 files into
   assets/fonts/ and these rules pick them up; until then the fallback stack
   is used — identical behavior to the CrossCheck app. */
/* Licensed Uber Move (Medium + Bold provided). 400 maps to Medium since no
   Regular weight is bundled; 700 covers bold and heavier headings. */
@font-face { font-family: "Uber Move"; src: url("assets/fonts/UberMove-Medium.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Uber Move"; src: url("assets/fonts/UberMove-Medium.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Uber Move"; src: url("assets/fonts/UberMove-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Uber Move"; src: url("assets/fonts/UberMove-Bold.woff2") format("woff2"); font-weight: 800; font-display: swap; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

/* ---------- masthead ---------- */
.masthead { background: var(--black); color: #fff; position: sticky; top: 0; z-index: 50; }
.masthead .wrap { display: flex; align-items: center; padding-top: 14px; padding-bottom: 14px; }

.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; color: #fff; }
.brand .logo { width: 28px; height: 28px; display: block; }
.brand .word { display: flex; flex-direction: column; line-height: 1.1; }
.brand .name { font-size: 20px; font-weight: 800; letter-spacing: -0.01em; }
.brand .tag { font-size: 12px; color: var(--faint); font-weight: 500; }

.nav { display: flex; gap: 6px; align-items: center; }
.nav a {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 500; color: var(--faint);
  padding: 8px 14px; border-radius: var(--r-pill);
  transition: color .15s, background-color .15s;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,0.14); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-size: 15px; font-weight: 600; cursor: pointer;
  border: none; border-radius: var(--r-pill); padding: 12px 22px;
  background: var(--black); color: #fff; transition: background-color .15s, transform .05s;
}
.btn:hover { background: #1f1f1f; }
.btn:active { transform: translateY(1px); }
.btn.inverse { background: #fff; color: var(--black); }
.btn.inverse:hover { background: #eceef1; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; }
.nav .btn { padding: 8px 16px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 96px 0 72px; }
.hero .wrap { max-width: 880px; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--brand);
  background: #eaf1fe; border: 1px solid #cfe0fd;
  padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 64px); line-height: 1.04; letter-spacing: -0.025em;
  font-weight: 800; margin: 0 0 20px;
}
.hero p.lede { font-size: clamp(17px, 2.2vw, 21px); color: var(--muted); margin: 0 auto 32px; max-width: 640px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 13px; color: var(--faint); }

/* origin — dotted US map with the SF Bay Area called out over it */
.origin { position: relative; margin: 44px auto 0; max-width: 600px; }
.origin-map { width: 100%; height: auto; display: block; opacity: 0.95; }
.origin-cap {
  position: absolute; top: 45.8%; left: 9%; transform: translateY(-50%);
  margin: 0; white-space: nowrap;
  font-size: clamp(15px, 2.7vw, 23px); font-weight: 700; color: var(--ink);
  text-shadow: 0 0 8px var(--surface), 0 0 8px var(--surface), 0 0 14px var(--surface);
}
.origin-cap strong { color: var(--brand); font-weight: 800; }
.origin-dot {
  width: 9px; height: 9px; border-radius: 50%; background: var(--brand);
  box-shadow: 0 0 0 4px rgba(39,110,241,0.15); flex: none;
}

/* ---------- section scaffolding ---------- */
section { padding: 72px 0; }
.section-head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.02em; font-weight: 800; margin: 10px 0 14px; }
.section-head p { font-size: 17px; color: var(--muted); margin: 0; }

/* ---------- product / feature cards ---------- */
.grid { display: grid; gap: 20px; }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 28px;
  display: block;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
a.card:hover {
  border-color: #cfd5dd;
  box-shadow: 0 8px 26px rgba(31,39,51,0.07);
  transform: translateY(-2px);
}
.card-go {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--brand);
}
a.card:hover .card-go { gap: 9px; }
/* header row: big icon top-left, status top-right */
.card-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.card .icon {
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink); margin: 0;
}
.card h3 { font-size: 20px; font-weight: 800; margin: 0 0 8px; letter-spacing: -0.015em; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* minimal status indicator — dot + text, no pill/tag */
.status { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; }
.status .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.status.live { color: var(--pass); }
.status.live .dot { background: var(--pass); }
.status.soon { color: var(--faint); font-weight: 500; }
.status.soon .dot { background: var(--faint); }

/* ---------- pain points ---------- */
.pains { background: var(--bg); }
.pain {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-xl); padding: 26px;
}
.pain .q { display: flex; gap: 10px; align-items: flex-start; font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
.pain .q svg { flex: none; margin-top: 2px; color: var(--ink); }
.pain .a { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 15px; margin: 0; }
.pain .a svg { flex: none; margin-top: 3px; color: var(--brand); }
.pain .a b { color: var(--ink); font-weight: 600; }

/* ---------- product spotlight ---------- */
.spotlight { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.spot-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.spot-copy .pill { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 10px; border-radius: var(--r-pill); margin-bottom: 16px; color: var(--pass); background: var(--pass-bg); border: 1px solid var(--pass-border); }
.spot-copy h2 { font-size: clamp(28px, 4vw, 38px); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; }
.spot-copy > p { font-size: 17px; color: var(--muted); margin: 0 0 22px; }
.spot-copy ul { list-style: none; padding: 0; margin: 0 0 26px; }
.spot-copy li { display: flex; gap: 11px; align-items: flex-start; padding: 8px 0; font-size: 15px; color: var(--ink); }
.spot-copy li svg { flex: none; margin-top: 3px; color: var(--pass); }

.spot-panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 24px; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.stat-tile .num { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); line-height: 1; }
.stat-tile .num.brand { color: var(--brand); }
.stat-tile .lbl { font-size: 13px; color: var(--muted); margin-top: 8px; }
.spot-panel .ribbon { display: flex; align-items: center; gap: 9px; margin-top: 16px; padding: 12px 14px; background: var(--pass-bg); border: 1px solid var(--pass-border); border-radius: var(--r-md); font-size: 14px; font-weight: 600; color: var(--pass); }

/* ---------- what we do / independent verification ---------- */
.whatwedo { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.wwd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.wwd-copy p { font-size: 17px; color: var(--muted); margin: 0 0 18px; }
.wwd-emph { font-size: 20px; color: var(--ink); font-weight: 700; letter-spacing: -0.01em; }
.wwd-process { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.wwd-process h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin: 0 0 8px; }
.wwd-process ul { list-style: none; margin: 0; padding: 0; }
.wwd-process li { display: flex; gap: 11px; align-items: flex-start; padding: 12px 0; font-size: 15px; color: var(--ink); border-top: 1px solid var(--line); }
.wwd-process li svg { flex: none; margin-top: 2px; color: var(--pass); }

/* ---------- audience split ---------- */
.audience { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.audience .grid.cols-2 { gap: 24px; }
.aud-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); }
.aud-card h3 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 10px; }
.aud-card ul { margin: 18px 0 0; padding: 0; list-style: none; }
.aud-card li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; color: var(--ink); font-size: 15px; }
.aud-card li svg { flex: none; margin-top: 3px; color: var(--pass); }

/* ---------- trust strip ---------- */
.trust { text-align: center; }
.trust .badges { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 10px 18px; font-size: 14px; font-weight: 600; color: var(--ink);
}
.badge svg { color: var(--brand); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--black); color: #fff; border-radius: 0; }
.cta-band .wrap { text-align: center; max-width: 720px; }
.cta-band h2 { font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.02em; font-weight: 800; margin: 0 0 14px; }
.cta-band p { color: #b7bec8; font-size: 18px; margin: 0 0 28px; }

/* ---------- footer ---------- */
footer.footer { background: var(--bg); border-top: 1px solid var(--line); padding: 56px 0 28px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer-brand .brand { margin-bottom: 14px; }
.footer-brand .brand .name { color: var(--ink); font-size: 18px; }
.footer-blurb { color: var(--muted); font-size: 14px; max-width: 400px; margin: 0 0 14px; line-height: 1.6; }
.footer-mail { font-size: 14px; font-weight: 500; color: var(--muted); }
.footer-mail:hover { color: var(--ink); }
.footer-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.footer-col h4 { font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); margin: 0 0 12px; }
.footer-col a { display: block; font-size: 14px; color: var(--muted); padding: 5px 0; }
.footer-col a:hover { color: var(--ink); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line);
  font-size: 13px; color: var(--faint);
}
.footer-origin { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- demo request modal ---------- */
.modal[hidden] { display: none; }
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay { position: absolute; inset: 0; background: rgba(15,20,28,0.55); }
.modal-card {
  position: relative; background: var(--surface); border-radius: var(--r-xl);
  max-width: 480px; width: 100%; padding: 32px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.3); max-height: 92vh; overflow: auto;
}
.modal-card h3 { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; margin: 0 0 6px; }
.modal-card .sub { color: var(--muted); font-size: 15px; margin: 0 0 22px; }
.modal-close { position: absolute; top: 14px; right: 14px; border: none; background: transparent; cursor: pointer; color: var(--faint); padding: 6px; border-radius: 8px; display: inline-flex; }
.modal-close:hover { background: #f1f3f6; color: var(--ink); }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; box-sizing: border-box; border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 11px 13px; font-family: var(--font); font-size: 15px; color: var(--ink); background: #fff;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(39,110,241,0.12); }
.field textarea { resize: vertical; min-height: 84px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .btn { width: 100%; margin-top: 6px; }
.form-msg { font-size: 14px; margin: 14px 0 0; text-align: center; }
.form-msg.err { color: #c0392b; }
.form-success { text-align: center; padding: 12px 0; }
.form-success svg { color: var(--pass); }

/* ---------- microsite (labs / ivf) ---------- */
.lab-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: 18px; }
.benefit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 28px; }
.benefit .b-icon { width: 50px; height: 50px; border-radius: var(--r-lg); display: inline-flex; align-items: center; justify-content: center; background: #f1f3f6; color: var(--ink); margin-bottom: 16px; }
.benefit h3 { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 8px; }
.benefit p { color: var(--muted); font-size: 15px; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .spot-grid { grid-template-columns: 1fr; gap: 32px; }
  .wwd-grid { grid-template-columns: 1fr; gap: 28px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 28px; }
  .nav a:not(.btn) { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
}
