/* =========================================================
   MyPetGenes / Companion Genetics — Design System
   Deep-navy structure, teal accent, soft-green highlight.
   Display: Space Grotesk · Body: Inter · Data: IBM Plex Mono
   ========================================================= */

:root {
  --navy: #0B2545;
  --navy-light: #14335E;
  --navy-soft: #EAF0F6;
  --teal: #0F8B8D;
  --teal-dark: #0B6B6D;
  --teal-tint: #E4F3F3;
  --green: #7CC9A0;
  --green-dark: #4E9C72;
  --ink: #16202A;
  --ink-soft: #4A5760;
  --bg: #FBFDFD;
  --bg-alt: #F2F6F6;
  --border: #DCE5E5;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --max: 1180px;
  --radius: 6px;
  --shadow: 0 4px 20px rgba(11, 37, 69, 0.06);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  line-height: 1.15;
  margin: 0 0 0.5em;
  font-weight: 600;
}

h1 { font-size: clamp(2.1rem, 4.2vw, 3.4rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1em; color: var(--ink-soft); }
p.lead { font-size: 1.15rem; color: var(--ink); }

a { color: var(--teal-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 2px;
}

ul { padding-left: 1.2em; color: var(--ink-soft); }
li { margin-bottom: 0.4em; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--teal-dark);
  display: inline-block;
  margin-bottom: 0.9em;
}

.eyebrow.on-dark { color: var(--green); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 24px;
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }

.btn-primary { background: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--teal-dark); box-shadow: var(--shadow); }

.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: var(--white); }

.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.55); color: var(--white); }
.btn-outline-light:hover { background: rgba(255,255,255,0.12); }

.btn-block { display: block; width: 100%; text-align: center; }

/* ---------- Header / Nav ---------- */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.logo:hover { text-decoration: none; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-sub {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  color: var(--green);
  font-weight: 400;
  text-transform: uppercase;
  margin-top: 1px;
}

.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: rgba(255,255,255,0.82); font-size: 0.92rem; font-weight: 500; }
.nav-links a:hover { color: var(--white); text-decoration: none; }
.nav-links a.active { color: var(--green); }

.nav-cta { display: flex; align-items: center; gap: 18px; }

.nav-toggle { display: none; background: none; border: none; color: var(--white); font-size: 1.6rem; cursor: pointer; line-height: 1; }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--navy-light);
    flex-direction: column; align-items: flex-start; gap: 0;
    padding: 8px 24px 20px; display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .nav-cta .btn-outline-light { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%);
  color: var(--white);
  padding: 88px 0 64px;
  position: relative;
  overflow: hidden;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255,255,255,0.82); max-width: 620px; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; position: relative; z-index: 2; }
@media (max-width: 880px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-actions { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.hero-trust {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.15);
  display: flex; gap: 28px; flex-wrap: wrap;
  font-family: var(--font-mono); font-size: 0.78rem; color: rgba(255,255,255,0.65); letter-spacing: 0.03em;
}

/* ---------- Sequence track (signature element) ---------- */
.seq-track {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  letter-spacing: 0.32em;
  white-space: nowrap;
  overflow: hidden;
  color: var(--border);
  user-select: none;
  line-height: 1;
}
.seq-track .call { color: var(--teal); font-weight: 700; letter-spacing: 0.32em; }
.seq-track.on-dark { color: rgba(255,255,255,0.18); }
.seq-track.on-dark .call { color: var(--green); }

.seq-divider { padding: 22px 0; background: var(--white); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.seq-divider.alt { background: var(--bg-alt); }

.seq-caption {
  display: flex; justify-content: space-between; align-items: baseline;
  max-width: var(--max); margin: 8px auto 0; padding: 0 24px;
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-soft); letter-spacing: 0.04em;
}
.seq-caption .locus { color: var(--teal-dark); font-weight: 600; }

.hero-seq-wrap { position: absolute; bottom: 18px; left: 0; right: 0; opacity: 0.9; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-navy p { color: rgba(255,255,255,0.75); }

.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Entry cards ---------- */
.entry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (max-width: 780px) { .entry-grid { grid-template-columns: 1fr; } }

.entry-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 36px; transition: box-shadow 0.2s ease, transform 0.2s ease; }
.entry-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.entry-card .eyebrow { margin-bottom: 14px; }
.entry-card h3 { margin-bottom: 12px; }
.entry-card ul { margin: 18px 0 24px; padding-left: 1.1em; }
.entry-card li { color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- Feature grids ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 880px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.pillar { padding: 4px; }
.pillar-icon { width: 44px; height: 44px; color: var(--teal); margin-bottom: 16px; }
.pillar h4 { margin-bottom: 8px; }
.pillar p { font-size: 0.94rem; margin-bottom: 0; }

/* ---------- Comparison table ---------- */
.compare { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--border); font-size: 0.95rem; }
.compare thead th { font-family: var(--font-mono); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); background: var(--bg-alt); }
.compare th.col-ngs { color: var(--teal-dark); }
.compare td.col-ngs { color: var(--navy); font-weight: 600; background: var(--teal-tint); }
.compare tr:last-child td { border-bottom: none; }
.compare .checkmark { color: var(--green-dark); font-weight: 700; }
@media (max-width: 700px) { .compare { display: block; overflow-x: auto; white-space: nowrap; } }

/* ---------- Cards ---------- */
.card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 880px) { .card-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-dark); background: var(--teal-tint); border-radius: 4px; padding: 4px 9px; margin: 0 6px 6px 0;
}
.tag.green { color: var(--green-dark); background: rgba(124,201,160,0.15); }

/* ---------- Report preview mock ---------- */
.report-mock { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.report-mock .report-bar { background: var(--navy); color: var(--white); padding: 14px 20px; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.05em; display: flex; justify-content: space-between; }
.report-mock .report-body { padding: 24px; }
.report-mock .report-row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.report-mock .report-row:last-child { border-bottom: none; }
.report-mock .status-pill { font-family: var(--font-mono); font-size: 0.68rem; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: 0.05em; }
.status-pill.detected { background: rgba(230, 126, 34, 0.12); color: #B5651D; }
.status-pill.clear { background: rgba(124,201,160,0.18); color: var(--green-dark); }

/* ---------- Forms ---------- */
.form-panel { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.form-row { margin-bottom: 18px; }
.form-row.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .form-row.two { grid-template-columns: 1fr; } }

label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
input, textarea, select {
  width: 100%; padding: 11px 13px; border: 1.5px solid var(--border); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink); background: var(--white);
}
input:focus, textarea:focus, select:focus { border-color: var(--teal); }
textarea { resize: vertical; min-height: 110px; }

.form-note { font-size: 0.8rem; color: var(--ink-soft); margin-top: 10px; }
.form-success {
  display: none; background: var(--teal-tint); border: 1px solid var(--teal); color: var(--teal-dark);
  padding: 14px 18px; border-radius: var(--radius); font-size: 0.9rem; margin-top: 16px;
}
.form-success.visible { display: block; }

/* ---------- Loop diagram ---------- */
.loop-diagram { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-family: var(--font-mono); font-size: 0.82rem; }
.loop-step { background: var(--white); border: 1px solid var(--teal); color: var(--teal-dark); border-radius: 30px; padding: 10px 18px; white-space: nowrap; }
.loop-arrow { color: var(--border); font-size: 1.2rem; }

/* ---------- Glossary ---------- */
.glossary dt { font-family: var(--font-mono); font-weight: 700; color: var(--navy); margin-top: 22px; }
.glossary dd { margin: 6px 0 0; color: var(--ink-soft); }

/* ---------- Blog list ---------- */
.post-card { border-bottom: 1px solid var(--border); padding: 28px 0; }
.post-card:first-child { padding-top: 0; }
.post-meta { font-family: var(--font-mono); font-size: 0.75rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }

/* ---------- Article ---------- */
.article-body { max-width: 720px; margin: 0 auto; }
.article-body h2 { margin-top: 1.6em; }
.article-body blockquote { border-left: 3px solid var(--teal); margin: 1.6em 0; padding: 0.2em 0 0.2em 1.2em; color: var(--ink-soft); font-style: italic; }

/* ---------- Team ---------- */
.person-card { text-align: left; }
.person-photo {
  width: 100%; aspect-ratio: 1; border-radius: var(--radius); background: var(--navy-soft);
  display: flex; align-items: center; justify-content: center; color: var(--navy);
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 600; margin-bottom: 16px; border: 1px solid var(--border);
}
.person-card h4 { margin-bottom: 2px; }
.person-role { font-family: var(--font-mono); font-size: 0.78rem; color: var(--teal-dark); margin-bottom: 10px; display:block; }

/* ---------- Newsletter band ---------- */
.newsletter-band { background: var(--teal); color: var(--white); padding: 56px 0; }
.newsletter-band h2 { color: var(--white); }
.newsletter-form { display: flex; gap: 10px; max-width: 480px; margin-top: 22px; flex-wrap: wrap; }
.newsletter-form input { flex: 1; min-width: 220px; border: none; }
.newsletter-form .btn { background: var(--navy); color: var(--white); border-color: var(--navy); }
.newsletter-form .btn:hover { background: var(--navy-light); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,0.7); padding: 56px 0 28px; font-size: 0.9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }

.footer-grid h4 { color: var(--white); font-family: var(--font-mono); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 14px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-grid a { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.footer-grid a:hover { color: var(--white); }

.footer-seo { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 22px; font-size: 0.76rem; color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 22px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { background: linear-gradient(180deg, var(--navy) 0%, var(--navy-light) 100%); color: var(--white); padding: 56px 0 44px; }
.page-hero h1 { color: var(--white); max-width: 760px; }
.page-hero p.lead { color: rgba(255,255,255,0.8); max-width: 640px; }
.breadcrumb { font-family: var(--font-mono); font-size: 0.75rem; color: rgba(255,255,255,0.5); margin-bottom: 18px; }
.breadcrumb a { color: rgba(255,255,255,0.7); }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
.small { font-size: 0.85rem; color: var(--ink-soft); }
.coming-soon-badge {
  display: inline-block; background: var(--green); color: var(--navy); font-family: var(--font-mono);
  font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
  margin-left: 8px; vertical-align: middle;
}
