/* ============================================================
   Erie Coast Analytical — compound landing page system
   Body system: imported from the Claude Design handoff
   (project "ECA Product Pages", product-page.html)
   Header/footer: reuse the live production nav + footer styling
   pulled from public/index.html so these static SEO pages match
   the real site chrome.
   ============================================================ */

:root {
  --paper: #f3efe6;
  --paper-deep: #e8e2d3;
  --cream: #fbf7ee;
  --ink: #14171c;
  --white: #ffffff;

  --blue: #1e4d8c;
  --blue-deep: #0f2d5c;

  --rule: rgba(20, 23, 28, 0.12);
  --rule-strong: rgba(20, 23, 28, 0.22);
  --mute: rgba(20, 23, 28, 0.62);
  --mute-soft: rgba(20, 23, 28, 0.45);

  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --read: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Consolas, monospace;

  --sec-y: 104px;
  --pad-x: clamp(22px, 5vw, 64px);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  /* offset for the fixed production nav */
  padding-top: 72px;
  font-family: var(--sans);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: color-mix(in oklch, var(--blue) 22%, transparent); }

/* ---------- typographic primitives ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--blue);
  display: inline-block;
}
.eyebrow.bare::before { display: none; }

.display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0;
}
.italic-blue { font-style: italic; color: var(--blue); }

.read { font-family: var(--read); font-weight: 400; color: var(--mute); }

.mono { font-family: var(--mono); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  border: 1px solid var(--ink);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.btn.primary { background: var(--ink); color: var(--paper); }
.btn.primary:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.on-dark { border-color: rgba(255,255,255,0.4); color: #fff; }
.btn.on-dark:hover { background: #fff; color: var(--blue-deep); }

/* ---------- layout helpers ---------- */
.section { padding: var(--sec-y) var(--pad-x); }
.section.line { border-top: 1px solid var(--rule); }
.section.white { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section.deep { background: var(--paper-deep); }
.inner { max-width: var(--maxw); margin: 0 auto; }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); }
.reveal.in { animation: reveal-in 0.7s cubic-bezier(.2,.7,.2,1) forwards; }
@keyframes reveal-in { to { opacity: 1; transform: none; } }
.reveal.in.d1 { animation-delay: 0.06s; }
.reveal.in.d2 { animation-delay: 0.12s; }
.reveal.in.d3 { animation-delay: 0.18s; }
.reveal.in.d4 { animation-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .reveal.in { animation: none; }
}

/* ---------- pricing CTA ---------- */
.pricecta { margin-top: 34px; }
.pricecta .price-row { display: flex; align-items: baseline; gap: 14px; margin-bottom: 16px; }
.pricecta .price-amt { font-family: var(--mono); font-size: 30px; font-weight: 500; color: var(--ink); }
.pricecta .price-unit { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); }
.pricecta .cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- timeline (process) ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 2px solid var(--ink);
}
.timeline .step {
  position: relative;
  padding: 42px 20px 0 20px;
  border-right: 1px solid var(--rule);
}
.timeline .step:first-child { padding-left: 0; }
.timeline .step:last-child { border-right: none; }
.timeline .step .step-ic {
  position: absolute;
  top: -21px;
  left: 14px;
  width: 42px;
  height: 42px;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 50%;
  background: var(--paper-deep);
  color: var(--blue);
}
.timeline .step:first-child .step-ic { left: 0; }
.timeline .step h4 {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: 26px;
  margin: 0;
}
.timeline .step p { font-size: 13.5px; color: var(--mute); margin: 12px 0 0; line-height: 1.55; }

@media (max-width: 860px) {
  .timeline { grid-template-columns: 1fr 1fr; border-top: 2px solid var(--ink); }
  .timeline .step { border-right: none; border-top: 1px solid var(--rule); padding: 42px 0 0; }
  .timeline .step .step-ic { left: 0; }
}
@media (max-width: 520px) {
  .timeline { grid-template-columns: 1fr; }
}

/* ---------- cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.cards .card { padding: 4px 28px 4px 0; }
.cards .card + .card { border-left: 1px solid var(--rule); padding-left: 28px; }
.cards .num { font-family: var(--serif); font-style: italic; font-size: 38px; color: var(--blue); letter-spacing: -0.02em; }
.cards .card h3 { font-family: var(--sans); font-size: 20px; font-weight: 600; margin: 14px 0 0; letter-spacing: -0.01em; }
.cards .card p { font-size: 14.5px; color: var(--mute); margin: 10px 0 0; line-height: 1.6; }
@media (max-width: 760px) {
  .cards { grid-template-columns: 1fr; }
  .cards .card + .card { border-left: none; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 22px; margin-top: 22px; }
}

/* ---------- related chips ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.related a {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 10px 16px;
  background: var(--white);
  transition: border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}
.related a:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-1px); }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: baseline;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { font-family: var(--mono); font-size: 22px; color: var(--blue); transition: transform 0.2s ease; }
.faq details[open] summary .plus { transform: rotate(45deg); }
.faq .ans { padding: 0 0 26px; max-width: 760px; color: var(--mute); font-size: 16px; line-height: 1.7; }

/* ---------- compliance notice ---------- */
.notice {
  border-left: 3px solid var(--blue);
  background: color-mix(in oklch, var(--blue) 7%, transparent);
  padding: 18px 22px;
  font-size: 14.5px;
  color: var(--mute);
  max-width: 880px;
}

/* ---------- sticky CTA ---------- */
.stickybar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 50;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(110%);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1);
}
.stickybar.show { transform: none; }
.stickybar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.stickybar .meta { display: flex; align-items: baseline; gap: 16px; min-width: 0; }
.stickybar .meta .name { font-family: var(--serif); font-size: 22px; }
.stickybar .meta .sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: rgba(255,255,255,0.6); text-transform: uppercase; }
.stickybar .price { font-family: var(--mono); font-size: 18px; font-weight: 500; }
.stickybar .actions { display: flex; align-items: center; gap: 12px; }
.stickybar .btn.primary { background: #fff; color: var(--ink); border-color: #fff; }
.stickybar .btn.primary:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
@media (max-width: 680px) {
  .stickybar .meta .sub { display: none; }
  .stickybar .actions .ghost { display: none; }
  .stickybar-inner { padding: 11px 18px; }
}

/* ============================================================
   PRODUCTION NAV — extracted verbatim from public/index.html
   (lines ~250-320 + mobile). Keeps these pages on the same
   chrome as the live site.
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 32px;
  background: linear-gradient(to bottom, rgba(5,13,28,0.94), rgba(5,13,28,0.86));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.nav-left { display: flex; align-items: center; gap: 10px; cursor: pointer; text-decoration: none; }
.nav-left img { height: 48px; width: auto; display: block; }
.nav-pill-wrap {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px; padding: 4px;
}
.nav-pill {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 500;
  color: rgba(232,238,249,0.78);
  text-decoration: none;
  background: transparent; border: none; cursor: pointer;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.nav-pill:hover { color: #fff; background: rgba(255,255,255,0.06); }
.nav-pill.active { background: #fff; color: #0a1830; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.cart-btn {
  position: relative;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  color: rgba(232,238,249,0.7);
  padding: 10px 18px;
  cursor: pointer; font-size: 15px; font-family: inherit;
  display: flex; align-items: center; gap: 6px; text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.cart-btn:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.25); color: #fff; }
.cart-count {
  background: #fff; color: #0a1830;
  font-size: 11px; font-weight: 700; width: 18px; height: 18px;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.auth-btn {
  background: #fff; color: #0a1830;
  border: none; border-radius: 999px;
  padding: 11px 22px; font-weight: 600; font-size: 15px;
  cursor: pointer; font-family: inherit; text-decoration: none;
  display: inline-flex; align-items: center;
  transition: opacity 0.2s;
}
.auth-btn:hover { opacity: 0.9; }
.mobile-menu-btn {
  display: none;
  flex-direction: column; gap: 4px;
  background: none; border: none; cursor: pointer; padding: 8px;
}
.mobile-menu-btn span { width: 22px; height: 2px; background: rgba(255,255,255,0.8); display: block; transition: transform 0.2s, opacity 0.2s; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }
.mobile-nav {
  display: none; flex-direction: column;
  position: fixed; top: 72px; left: 0; right: 0; z-index: 99;
  background: #0B3D6F; padding: 12px;
}
.mobile-nav.visible { display: flex; }
.mobile-nav a { color: rgba(255,255,255,0.8); text-decoration: none; padding: 12px 14px; border-radius: 8px; font-weight: 500; }
.mobile-nav a:hover, .mobile-nav a.active { color: #fff; background: rgba(255,255,255,0.12); }
.mobile-nav .mobile-nav-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }

@media (max-width: 1040px) {
  nav { padding: 14px 18px; }
  .nav-pill-wrap { display: none; }
  .mobile-menu-btn { display: flex; }
  .nav-left img { height: 40px; }
}

/* ============================================================
   FOOTER — matches live erieanalytical.com (light, navy logo)
   ============================================================ */
.footer { background: var(--paper-deep); color: var(--mute); padding: 64px var(--pad-x) 40px; border-top: 1px solid var(--rule-strong); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.7fr 1fr 1fr 1.15fr; gap: 48px; }
.footer .lead-col .flogo { height: 34px; width: auto; display: block; }
.footer .lead-col p { font-size: 14px; line-height: 1.6; color: var(--mute); max-width: 320px; margin: 20px 0 0; }
.footer .fcol h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-soft); margin: 0 0 16px; }
.footer .fcol a { display: block; color: var(--ink); opacity: 0.78; text-decoration: none; font-size: 14px; padding: 6px 0; transition: color 0.15s ease, opacity 0.15s ease; }
.footer .fcol a:hover { color: var(--blue); opacity: 1; }
.footer .fcol address { font-style: normal; font-size: 14px; line-height: 1.7; color: var(--mute); }
.footer .fcol address .blk { display: block; margin-top: 12px; }
.footer .fcol address a { color: var(--ink); opacity: 0.78; text-decoration: none; }
.footer .fcol address a:hover { color: var(--blue); opacity: 1; }
.footer-legal-inner { max-width: var(--maxw); margin: 52px auto 0; padding-top: 28px; border-top: 1px solid var(--rule); }
.footer-legal-inner h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mute-soft); margin: 0 0 12px; }
.footer .legaltext { font-size: 12.5px; line-height: 1.65; color: var(--mute-soft); max-width: 1080px; margin: 0; }
.footer .legal { max-width: var(--maxw); margin: 24px auto 0; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--mute); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .legal-links { display: flex; gap: 22px; }
.footer .legal-links a { color: var(--mute); text-decoration: none; }
.footer .legal-links a:hover { color: var(--blue); }
@media (max-width: 900px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 36px 32px; } }
@media (max-width: 560px) { .footer-inner { grid-template-columns: 1fr; gap: 30px; } }

/* ============================================================
   MOBILE TUNING
   Keeps the launched compound pages editorial, but removes the
   oversized desktop breathing room that made phone views feel loose.
   ============================================================ */
@media (max-width: 620px) {
  :root {
    --sec-y: 60px;
    --pad-x: 18px;
  }

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    padding-top: 68px;
    padding-bottom: 76px;
  }

  main,
  .section,
  .inner {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .section {
    padding-top: var(--sec-y);
    padding-bottom: var(--sec-y);
  }

  main > .section:first-child {
    padding-top: 36px !important;
    padding-bottom: 58px !important;
  }

  .eyebrow {
    max-width: 100%;
    gap: 10px;
    font-size: 10px;
    letter-spacing: 0.15em;
    line-height: 1.35;
  }

  .eyebrow::before {
    width: 22px;
    flex: 0 0 22px;
  }

  .display {
    letter-spacing: 0;
    line-height: 1.03;
    text-wrap: balance;
  }

  main > .section:first-child h1.display {
    font-size: clamp(38px, 11.4vw, 46px) !important;
    margin-top: 18px !important;
  }

  main > .section:first-child .read {
    max-width: 100% !important;
    overflow-wrap: break-word;
    font-size: 17px !important;
    line-height: 1.5 !important;
    margin-top: 22px !important;
  }

  .pricecta {
    margin-top: 26px;
  }

  .pricecta .price-row {
    display: block;
    margin-bottom: 14px;
  }

  .pricecta .price-amt {
    display: block;
    font-size: 26px;
    line-height: 1.1;
  }

  .pricecta .price-unit {
    display: block;
    margin-top: 5px;
    letter-spacing: 0.09em;
    line-height: 1.35;
  }

  .pricecta .cta-row {
    width: 100%;
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn {
    max-width: 100%;
    width: 100%;
    min-height: 46px;
    padding: 0 16px;
    text-align: center;
  }

  .tl-head {
    display: block !important;
    margin-bottom: 34px !important;
  }

  .tl-head h2.display {
    font-size: clamp(34px, 10.2vw, 42px) !important;
  }

  .tl-head .read {
    max-width: 100% !important;
    margin-top: 16px;
    font-size: 16px !important;
    line-height: 1.55 !important;
  }

  .timeline {
    border-top-width: 1px;
  }

  .timeline .step {
    padding: 34px 0 22px;
  }

  .timeline .step:first-child {
    border-top: none;
  }

  .timeline .step .step-ic {
    top: -19px;
    width: 38px;
    height: 38px;
    padding: 8px;
  }

  .timeline .step h4 {
    font-size: 24px;
  }

  .timeline .step p {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.5;
  }

  .section.white h2.display {
    font-size: clamp(30px, 9vw, 38px) !important;
    margin-top: 14px !important;
    margin-bottom: 30px !important;
  }

  .cards .card {
    padding-right: 0;
  }

  .cards .card + .card {
    padding-top: 18px;
    margin-top: 18px;
  }

  .cards .num {
    font-size: 32px;
  }

  .cards .card h3 {
    margin-top: 8px;
    font-size: 18px;
  }

  .cards .card p {
    margin-top: 7px;
    font-size: 14px;
    line-height: 1.55;
  }

  .section.line h2.display {
    font-size: clamp(28px, 8.4vw, 36px) !important;
  }

  .related {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .related a {
    padding: 11px 13px;
  }

  .faq summary {
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-size: 21px;
    line-height: 1.12;
  }

  .faq summary .plus {
    flex: 0 0 auto;
    font-size: 19px;
  }

  .faq .ans {
    padding-bottom: 20px;
    font-size: 15px;
    line-height: 1.62;
  }

  .notice {
    margin-top: 28px !important;
    padding: 15px 16px;
    font-size: 13.5px;
    line-height: 1.6;
  }

  .stickybar-inner {
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom));
    gap: 10px;
  }

  .stickybar .meta {
    display: none;
  }

  .stickybar .actions {
    width: 100%;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
  }

  .stickybar .price {
    align-self: center;
    font-size: 15px;
  }

  .stickybar .btn {
    min-height: 42px;
    padding: 0 14px;
    font-size: 13px;
  }

  nav {
    padding: 12px 14px;
  }

  .nav-left img {
    height: 36px;
  }

  .cart-btn {
    padding: 9px 12px;
  }

  .auth-btn {
    display: none;
  }

  .mobile-nav {
    top: 60px;
  }

  .footer {
    padding: 46px var(--pad-x) 32px;
  }

  .footer-inner {
    gap: 24px;
  }

  .footer .lead-col p {
    margin-top: 16px;
  }

  .footer .fcol h5 {
    margin-bottom: 10px;
  }

  .footer .fcol a {
    padding: 4px 0;
  }

  .footer-legal-inner {
    margin-top: 34px;
    padding-top: 22px;
  }
}
