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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + var(--space-2));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.62;
  letter-spacing: -0.005em;
  color: var(--ink-700);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

/* ========== Typography Scale ========== */
/* HERO headline */
.text-hero {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 60px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: var(--ink-900);
}

/* Section headline */
.text-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4.2vw, 44px);
  font-weight: 700;
  line-height: 1.10;
  letter-spacing: -0.018em;
  color: var(--ink-900);
}

/* Subhead / lead paragraph */
.text-subhead {
  font-family: var(--font-display);
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.45;
  letter-spacing: -0.008em;
  color: var(--ink-600);
}

/* EYEBROW — uppercase tracked label with leading copper rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper-700);
  margin-bottom: 16px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--metal-copper);
  border-radius: 2px;
  display: inline-block;
}
/* clinical-trust variant — forest green */
.eyebrow--green { color: var(--green-700); }
.eyebrow--green::before { background: var(--green-500); }

/* Body */
.text-body {
  font-family: var(--font-text);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.62;
  letter-spacing: -0.005em;
  color: var(--ink-700);
}

/* Body small */
.text-body-sm {
  font-family: var(--font-text);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  color: var(--ink-500);
}

/* Caption / fine print */
.text-caption {
  font-family: var(--font-text);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.42;
  letter-spacing: 0.01em;
  color: var(--ink-500);
}

/* ACCENT serif — founder mission & pull-quotes ONLY */
.text-accent {
  font-family: var(--font-accent);
  font-weight: 400;
  font-optical-sizing: auto;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--ink-900);
}

/* metallic copper foil text — wordmark accents ONLY */
.metal-text {
  background: var(--metal-copper-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ========== Section Base Classes ========== */
.section {
  width: 100%;
  padding: var(--section-pad) var(--space-3);
}

/* Old .section-light becomes a warm cream band */
.section-light {
  background: var(--bg-cream);
  color: var(--ink-700);
}

/* Flip the legacy dark sections to white (hero, demos, etc.) */
.section-dark {
  background: var(--bg-white);
  color: var(--ink-700);
}

/* Explicit cream / ink utilities for the new rhythm */
.section-cream { background: var(--bg-cream); color: var(--ink-700); }
.section-ink   { background: var(--bg-ink);   color: var(--ink-on-dark); }

.section-content {
  max-width: var(--content-max);
  margin: 0 auto;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.section-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== CTA Buttons ========== */
/* PRIMARY — solid copper fill, white text, darken on hover, subtle metallic top highlight */
.cta-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--copper-500);
  color: #FFFFFF;
  font-family: var(--font-text);
  font-size: 16px; font-weight: 600; letter-spacing: 0;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-copper), var(--shadow-inset-copper);
  position: relative; overflow: hidden;
  transition: background var(--transition-default), transform var(--transition-default), box-shadow var(--transition-default);
}
.cta-primary::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 50%;
  background: linear-gradient(180deg, rgba(255,255,255,0.18), transparent);
  pointer-events: none;
}
.cta-primary:hover { background: var(--copper-600); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(184,115,51,0.32), var(--shadow-inset-copper); }
.cta-primary:active { background: var(--copper-700); transform: translateY(0); }

/* SECONDARY — ghost/outline, charcoal text, copper wash on hover */
.cta-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--ink-800);
  font-family: var(--font-text);
  font-size: 16px; font-weight: 600; letter-spacing: 0;
  padding: 13px 26px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--transition-default), background var(--transition-default), color var(--transition-default);
}
.cta-secondary:hover { border-color: var(--copper-500); color: var(--copper-700); background: var(--copper-50); }

/* GHOST — neutral outline on white (hero 2nd CTA) / white outline on dark bands */
.cta-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--ink-800);
  font-family: var(--font-text);
  font-size: 16px; font-weight: 600;
  padding: 13px 26px;
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: background var(--transition-default), border-color var(--transition-default), color var(--transition-default);
}
.cta-ghost:hover { border-color: var(--copper-500); color: var(--copper-700); background: var(--copper-50); }
/* on dark founder/footer bands */
.section-ink .cta-ghost, .footer .cta-ghost {
  color: #FFFFFF; border-color: rgba(255,255,255,0.45);
}
.section-ink .cta-ghost:hover, .footer .cta-ghost:hover {
  background: rgba(255,255,255,0.12); border-color: #FFFFFF; color: #FFFFFF;
}

/* LINK — copper text with animated underline + arrow nudge */
.cta-link, .link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-text); font-weight: 600; font-size: 16px;
  color: var(--copper-700);
  background-image: linear-gradient(var(--copper-500), var(--copper-500));
  background-size: 0% 1.5px; background-position: 0 100%; background-repeat: no-repeat;
  transition: background-size var(--transition-default), color var(--transition-default);
}
.cta-link:hover, .link-arrow:hover { background-size: 100% 1.5px; color: var(--copper-700); }
.cta-link svg, .link-arrow svg { transition: transform var(--transition-default); }
.cta-link:hover svg, .link-arrow:hover svg { transform: translateX(3px); }

/* TRUST/STATUS TAGS — green = clinical trust, copper = action/status */
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-text); font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 12px; border-radius: var(--radius-pill);
}
.tag--clinical { background: var(--green-50);  color: var(--green-700); }
.tag--clinical::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--green-500); }
.tag--live     { background: var(--copper-50); color: var(--copper-900); }
.tag--live::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--copper-500); }
.tag--soon     { background: #F2EEE8; color: var(--ink-500); }
.tag--soon::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--ink-400); }

/* ========== Keyword Ticker (signature motion) ========== */
.ticker {
  overflow: hidden;
  background: var(--bg-cream);
  border-block: 1px solid var(--border-cream);
  padding: 26px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 40px;
  width: max-content;
  animation: ticker 38s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-item {
  font-family: var(--font-text);
  font-size: 15px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink-500);
  display: inline-flex; align-items: center; gap: 40px;
  white-space: nowrap;
}
.ticker-item::after {
  content: "◆";
  color: var(--copper-500);
  font-size: 9px;
}
@keyframes ticker { to { transform: translateX(-50%); } }

/* Focus States */
:focus-visible {
  outline: 2px solid var(--copper-500);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Skip Link */
.skip-link {
  position: absolute;
  top: 0;
  left: 0;
  transform: translateY(-100%);
  background: var(--copper-500);
  color: #FFFFFF;
  padding: 8px 16px;
  z-index: 200;
  transition: transform 0.2s;
}

.skip-link:focus {
  transform: translateY(0);
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .section-content {
    opacity: 1;
    transform: none;
  }

  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    row-gap: 12px;
    justify-content: center;
  }

  .ticker-item--dup {
    display: none;
  }

  .ticker {
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* Responsive */
@media (max-width: 834px) {
  .section {
    padding: var(--section-pad-sm) var(--space-3);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--section-pad-xs) var(--space-2);
  }
}
