/* ═══════════════════════════════════════════════════════════════
   Chrona Bio — shared marketing stylesheet
   ─────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:                #0D0E0C;
  --bg-surface:        #111210;
  --bg-subtle:         #161714;
  --text-primary:      #E9E6DF;
  --text-secondary:    #6B6960;
  --text-tertiary:     #3A3935;
  --accent-green:      #3CC68A;
  --accent-orange:     #D4622A;
  --accent-orange-dim: rgba(212, 98, 42, 0.15);
  --border:            #1C1D1B;
  --border-mid:        #242522;
  --mono:  'DM Mono', monospace;
  --serif: 'Instrument Serif', serif;
  --sans:  'Geist', sans-serif;
}

html { background: var(--bg); }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Skip nav (accessibility) ─────────────────────────────── */
.skip-nav {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--accent-orange);
  color: #fff;
  padding: 10px 18px;
  z-index: 999;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}
.skip-nav:focus { top: 0; }

/* ── Focus styling for keyboard nav ───────────────────────── */
:focus-visible {
  outline: 2px solid var(--accent-orange);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ── Nav ──────────────────────────────────────────────────── */
nav.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: 56px;
  border-bottom: 0.5px solid var(--border);
  background: rgba(13,14,12,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: transform 0.32s cubic-bezier(.4,.0,.2,1);
}

/* Hide nav on scroll-down, restore on scroll-up. Applied via JS. */
body.nav-hidden nav.site-nav { transform: translateY(-100%); }

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  min-height: 44px;
}

.nav-logo-mark {
  width: 24px; height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark img {
  width: 24px; height: 24px;
  display: block;
}

.nav-wordmark {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.005em;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text-primary); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s;
  text-decoration: none;
  min-height: 44px;
}
.nav-cta:hover { opacity: 0.88; }

/* ── Mobile hamburger + drop-down panel ──────────────────── */
.nav-hamburger {
  display: none;
  background: transparent;
  border: 0.5px solid var(--border-mid);
  border-radius: 5px;
  padding: 0;
  cursor: pointer;
  margin-left: 10px;
  min-height: 36px;
  min-width: 36px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 3px;
}
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-primary);
  transition: transform 0.2s, opacity 0.2s;
}
body.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(4.5px) rotate(45deg); }
body.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-4.5px) rotate(-45deg); }

.nav-mobile-panel {
  display: none;
  position: fixed;
  top: 56px;
  left: 0; right: 0;
  z-index: 99;
  background: rgba(13,14,12,0.98);
  border-bottom: 0.5px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 4px 24px 12px;
}
body.nav-open .nav-mobile-panel { display: block; }
.nav-mobile-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-mobile-panel li { border-bottom: 0.5px solid var(--border); }
.nav-mobile-panel li:last-child { border-bottom: none; }
.nav-mobile-panel a {
  display: flex;
  align-items: center;
  padding: 14px 4px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.005em;
  min-height: 44px;
  transition: color 0.15s;
}
.nav-mobile-panel a:hover,
.nav-mobile-panel a[aria-current="page"] { color: var(--text-primary); }

/* ── Buttons ──────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-orange);
  color: #fff;
  border: none;
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: opacity 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px;
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary svg { width: 14px; height: 14px; }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text-secondary);
  border: 0.5px solid var(--border-mid);
  padding: 12px 22px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 400;
  font-family: var(--sans);
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: border-color 0.15s, color 0.15s, transform 0.1s;
  white-space: nowrap;
  text-decoration: none;
  min-height: 44px;
}
.btn-secondary:hover {
  border-color: #3A3935;
  color: #908D85;
  transform: translateY(-1px);
}

/* ── Sign-in link (small text near hero, per-product) ──── */
.sign-in-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  font-weight: 400;
  letter-spacing: -0.005em;
  margin-top: 18px;
  transition: color 0.15s, gap 0.2s;
}
.sign-in-link:hover {
  color: var(--text-secondary);
  gap: 10px;
}
.sign-in-link svg { width: 11px; height: 11px; }

/* ── DM Mono eyebrow ──────────────────────────────────────── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
}

.eyebrow-text {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-green);
}

.eyebrow-line {
  width: 24px;
  height: 0.5px;
  background: var(--accent-green);
  opacity: 0.5;
}

.section-eyebrow {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 28px;
}

.section-eyebrow::before {
  content: '';
  width: 18px;
  height: 0.5px;
  background: var(--text-tertiary);
  opacity: 0.6;
}

.section-eyebrow.centered { justify-content: center; margin-left: auto; margin-right: auto; }
.section-eyebrow.centered::before { display: none; }

/* ── Section scaffolding ──────────────────────────────────── */
.section-wrap {
  position: relative;
  border-top: 0.5px solid var(--border);
}
.section-wrap.surface { background: var(--bg-surface); }
.section-wrap.subtle  { background: var(--bg-subtle); }

.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 96px 40px;
  position: relative;
}
.section.tight { padding: 72px 40px; }
.section.airy  { padding: 144px 40px; }

/* ── Typography ───────────────────────────────────────────── */
.section-headline {
  font-family: var(--sans);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 820px;
  text-wrap: balance;
}

.section-headline em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--accent-orange);
  letter-spacing: -0.01em;
}

.section-headline + .section-body { margin-top: 32px; }

.section-body {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
  max-width: 620px;
  letter-spacing: -0.005em;
}
.section-body p + p { margin-top: 18px; }
.section-body strong { color: #908D85; font-weight: 400; }

.mono-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.mono-data {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-green);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: var(--sans);
  transition: gap 0.2s, color 0.15s;
}
.link-arrow:hover {
  gap: 12px;
  color: #5dd9a0;
}
.link-arrow svg { width: 12px; height: 12px; }

/* ── Principle row (hero/footer micro-tag) ───────────────── */
.principle { display: inline-flex; align-items: center; gap: 10px; }
.principle-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent-green);
  opacity: 0.6;
  flex-shrink: 0;
}
.principle-text {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
}

/* ── Footer ───────────────────────────────────────────────── */
footer.site-footer {
  border-top: 0.5px solid var(--border);
  padding: 56px 40px 48px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 56px;
  align-items: start;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  color: var(--text-secondary);
  max-width: 280px;
}
.footer-mark {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand .nav-logo-mark img { width: 22px; height: 22px; }

.footer-brand .wordmark {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}

.footer-brand .tagline {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

.footer-col-head {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 16px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.15s;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}
.footer-col a:hover { color: var(--text-primary); }

.footer-meta {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-tertiary);
  letter-spacing: 0.06em;
  margin-top: 8px;
}

/* ── Long-form prose (privacy / terms / support) ─────────── */
.prose {
  max-width: 760px;
  margin: 0 auto;
  padding: 120px 40px 96px;
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.75;
  font-weight: 300;
  letter-spacing: -0.005em;
}

.prose h1 {
  font-family: var(--sans);
  font-size: 44px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin-bottom: 16px;
  text-wrap: balance;
}

.prose .prose-meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 48px;
}

.prose h2 {
  font-family: var(--sans);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 48px 0 16px;
  text-wrap: balance;
}

.prose h3 {
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--text-primary);
  margin: 32px 0 12px;
}

.prose p { margin-bottom: 16px; }
.prose p strong { color: var(--text-primary); font-weight: 500; }

.prose ul, .prose ol {
  margin: 12px 0 20px 22px;
}
.prose li { margin-bottom: 8px; }

.prose a {
  color: var(--accent-green);
  text-decoration: none;
  border-bottom: 0.5px solid rgba(60, 198, 138, 0.4);
  transition: color 0.15s, border-color 0.15s;
}
.prose a:hover {
  color: #5dd9a0;
  border-bottom-color: var(--accent-green);
}

.prose hr {
  border: none;
  border-top: 0.5px solid var(--border);
  margin: 48px 0;
}

.prose blockquote {
  border-left: 1.5px solid var(--accent-orange);
  padding-left: 18px;
  margin: 24px 0;
  color: var(--text-primary);
  font-weight: 400;
  font-size: 16px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--bg-subtle);
  border: 0.5px solid var(--border);
  padding: 1px 6px;
  border-radius: 3px;
  color: var(--text-primary);
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 900px) {
  nav.site-nav { padding: 0 24px; }
  .nav-links { display: none; }
  .nav-hamburger { display: inline-flex; }
  .nav-cta { padding: 8px 12px; font-size: 12px; }

  .section { padding: 64px 24px; }
  .section.tight { padding: 56px 24px; }
  .section.airy  { padding: 96px 24px; }
  .section-headline { font-size: 30px; }

  footer.site-footer { padding: 48px 24px 36px; }
  .footer-row { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; max-width: none; }

  .prose { padding: 96px 24px 72px; }
  .prose h1 { font-size: 34px; }
  .prose h2 { font-size: 20px; }
}

/* ── Motion preference ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ═════════════════════════════════════════════════════════════
   Hybrid theme — light bands between dark "moments"
   Active when <body class="theme-hybrid">. Inside any
   .section-wrap.light, the design tokens are rewritten so every
   descendant inherits the warm-paper palette through normal
   cascade. Wrappers without .light stay dark.
   ═════════════════════════════════════════════════════════════ */
body.theme-hybrid .section-wrap.light {
  --bg:                #F4F1EA;
  --bg-surface:        #FFFFFF;
  --bg-subtle:         #FAF8F3;
  --text-primary:      #221610;
  --text-secondary:    #5A554C;
  --text-tertiary:     #A09A8C;
  --border:            #E5E1D8;
  --border-mid:        #D4D0C7;
  --accent-orange-dim: rgba(212, 98, 42, 0.08);
  --accent-green:      #2E9968;
  background: var(--bg);
  color: var(--text-primary);
}

/* Hard-coded #908D85 strong-text color in marketing.css and inline
   styles is too pale on cream. Re-tone to a warm mid-charcoal. */
body.theme-hybrid .section-wrap.light strong { color: #6B6660; }
body.theme-hybrid .section-wrap.light .section-body strong,
body.theme-hybrid .section-wrap.light .s2-content p strong,
body.theme-hybrid .section-wrap.light .hero-sub strong { color: #6B6660; }

/* §03 panels — finding-row bakes in rgba(13,14,12,0.4) for its
   dark fill. Swap to cream cards so the panels read as paper. */
body.theme-hybrid .section-wrap.light .finding-row { background: #FAF8F3; }
body.theme-hybrid .section-wrap.light .finding-row + .finding-row {
  background: rgba(212, 98, 42, 0.05);
}

/* §05 / §07 chips read var(--bg) directly — on light that becomes
   the page color and they vanish. Force white card surface. */
body.theme-hybrid .section-wrap.light .tier-chip,
body.theme-hybrid .section-wrap.light .flow-chip {
  background: #FFFFFF;
}
body.theme-hybrid .section-wrap.light .tier.intel .tier-chip {
  background: #FAF8F3;
}

/* The .subtle wrapper variant warms one shade darker than the
   default cream so the band still reads as distinct. */
body.theme-hybrid .section-wrap.light.subtle { background: #EFEBE0; }

/* §08 trust icons sit on cream cells — give them a true white
   tile so the green mark has contrast. */
body.theme-hybrid .section-wrap.light .trust-icon {
  background: #FFFFFF;
  border-color: var(--border);
  color: #2E9968;
}

/* §07 flow connector svg masks the line with var(--bg); on a
   .subtle.light wrapper the page bg is #EFEBE0, so match it. */
body.theme-hybrid .section-wrap.light.subtle .flow-connector svg {
  background: #EFEBE0;
}

/* Page-specific cards/chips that read var(--bg) directly so they
   match the dark page background. On a light wrapper they would
   blend into the cream — force a white card surface. */
body.theme-hybrid .section-wrap.light .cap-spec,
body.theme-hybrid .section-wrap.light .spec-ribbon-btn,
body.theme-hybrid .section-wrap.light .flow-step,
body.theme-hybrid .section-wrap.light .persona-tag {
  background: #FFFFFF;
}

/* pro §3 capability-findings strip bakes in rgba(13,14,12,0.5).
   On light, swap to a cream card-fill that reads as paper. */
body.theme-hybrid .section-wrap.light .cap-findings { background: #FAF8F3; }

/* pro §3 .cap-sub is colored directly (#908D85) rather than
   through a strong selector, so the strong override misses it. */
body.theme-hybrid .section-wrap.light .cap-sub { color: #6B6660; }

/* Long-form prose code blocks pick up var(--bg-subtle) = #FAF8F3
   on light. That's correct but the border may look heavy — keep
   the existing var(--border) which is already warm. */

/* pro §2 pullquote — on dark it reads as a centered magazine
   quote; on cream the dark-on-paper can feel too plain for a
   "data point." Add a thin orange left-edge bar and left-align
   the quote text inside its still-centered block, so it reads
   as a pulled fact, not just an italic line. */
body.theme-hybrid .section-wrap.light .pullquote {
  text-align: left;
  border-left: 2px solid var(--accent-orange);
  padding-left: 30px;
  max-width: 720px;
}

/* Soft fade at the seam between light and dark bands. The 0.5px
   section border already acts as the divider — no animation. */
body.theme-hybrid .section-wrap { transition: background 0.2s; }
