/* ============================================================
   Polymathic Works — Shared Stylesheet
   Brand: Navy #1E2761 · Teal #028090 · Mint #02C39A
          Off-white #F7F9FF · Slate #64748B
   ============================================================ */

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

:root {
  --navy:     #1E2761;
  --navy-dk:  #161d4a;
  --teal:     #028090;
  --teal-lt:  #e0f4f6;
  --mint:     #02C39A;
  --offwhite: #F7F9FF;
  --slate:    #64748B;
  --slate-lt: #94a3b8;
  --slate-bd: #cbd5e1;
  --white:    #ffffff;
  --dark:     #0f172a;
  --green-lt: #d1fae5;
  --green:    #059669;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── GOOGLE FONTS (loaded in each page head) ── */

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--slate-bd);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--slate);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--navy); }

.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--slate-bd);
  color: var(--slate);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s;
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }

.btn-navy {
  display: inline-block;
  background: var(--navy);
  color: var(--white);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.75rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-navy:hover { background: var(--navy-dk); }

/* ── SECTION SHARED ── */
section { padding: 5rem 2rem; }

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.75rem;
}

.section-label--navy { color: var(--navy); }

.section-heading {
  font-size: clamp(1.6rem, 2.5vw, 2.125rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--slate);
  margin-bottom: 3rem;
  max-width: 640px;
  line-height: 1.7;
}

/* ── HERO ── */
.hero {
  background: var(--offwhite);
  padding: 6rem 2rem 5.5rem;
  text-align: center;
}

.hero-inner { max-width: 760px; margin: 0 auto; }

.hero-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-size: clamp(2.125rem, 4.5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: 1.375rem;
}

.hero p {
  font-size: 1.125rem;
  color: var(--slate);
  max-width: 600px;
  margin: 0 auto 2.75rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── THREE-COLUMN VALUE SECTION ── */
.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.value-card {
  background: var(--white);
  border: 1px solid var(--slate-bd);
  border-radius: 10px;
  padding: 2rem 1.75rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.value-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.value-card-icon--teal { background: var(--teal-lt); }
.value-card-icon--navy { background: #e8eaf6; }
.value-card-icon--mint { background: #d0faf0; }

.value-card-icon svg {
  width: 22px;
  height: 22px;
}

.value-card-icon--teal svg { color: var(--teal); }
.value-card-icon--navy svg { color: var(--navy); }
.value-card-icon--mint svg { color: #019970; }

.value-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.9375rem;
  color: var(--slate);
  line-height: 1.65;
}

/* ── CREDIBILITY STRIP ── */
.cred-strip {
  background: var(--navy);
  padding: 2rem 2rem;
}

.cred-strip-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0 2.5rem;
}

.cred-item {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  padding: 0.375rem 0;
}

.cred-divider {
  color: rgba(255,255,255,0.25);
  font-size: 1.25rem;
  line-height: 1;
}

/* ── PRODUCT SECTIONS ── */
.product-section { padding: 5rem 2rem; }
.product-section--teal-bg { background: var(--teal-lt); }
.product-section--navy-bg { background: #eef0f8; }

.product-header { margin-bottom: 3rem; }

.product-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.product-badge--available {
  background: var(--green-lt);
  color: var(--green);
  border: 1px solid #a7f3d0;
}

.product-badge--available::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.product-heading {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.product-subhead {
  font-size: 1.0625rem;
  color: var(--slate);
  max-width: 600px;
  line-height: 1.7;
}

/* Feature card grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.feature-card {
  background: var(--white);
  border-radius: 10px;
  padding: 1.5rem;
  border: 1px solid var(--slate-bd);
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.feature-card-accent {
  width: 3px;
  height: 36px;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.feature-card-accent--teal { background: var(--teal); }
.feature-card-accent--navy { background: var(--navy); }

.feature-card h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.375rem;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--slate);
  line-height: 1.6;
}

/* Pricing callout */
.pricing-callout {
  background: var(--white);
  border: 2px solid var(--teal);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  display: inline-flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pricing-callout--navy { border-color: var(--navy); }

.pricing-main {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--dark);
}

.pricing-note {
  font-size: 0.875rem;
  color: var(--slate);
}

/* 4-step flow */
.step-flow {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.step {
  flex: 1;
  min-width: 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -0.75rem;
  top: 1.125rem;
  font-size: 1.25rem;
  color: var(--slate-lt);
  font-weight: 300;
  z-index: 1;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.875rem;
  flex-shrink: 0;
}

.step-label {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.25rem;
}

.step-desc {
  font-size: 0.8125rem;
  color: var(--slate);
  line-height: 1.5;
  padding: 0 0.5rem;
}

/* Payer + biologic tags */
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.tag {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: #e8eaf6;
  color: var(--navy);
}

.tag--payer { background: #eef0f8; color: var(--navy); border: 1px solid #c7cbea; }

.tag-section-label {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate);
  margin-bottom: 0.625rem;
  margin-top: 1.75rem;
}

/* CTA strip */
.cta-strip {
  background: var(--navy);
  padding: 4.5rem 2rem;
  text-align: center;
}

.cta-strip-inner { max-width: 640px; margin: 0 auto; }

.cta-strip h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.cta-strip p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.72);
  margin-bottom: 2rem;
  line-height: 1.7;
}

/* ── CONTACT PAGE ── */
.contact-section {
  padding: 5rem 2rem;
  background: var(--offwhite);
  min-height: calc(100vh - 64px - 80px);
}

.contact-inner {
  max-width: 720px;
  margin: 0 auto;
}

.contact-inner h1 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}

.contact-inner .lead {
  font-size: 1.0625rem;
  color: var(--slate);
  line-height: 1.75;
  margin-bottom: 0.75rem;
}

.contact-email {
  display: inline-block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--teal);
  text-decoration: none;
  margin-bottom: 3rem;
}
.contact-email:hover { text-decoration: underline; }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dark);
}

.field input,
.field textarea {
  padding: 0.6875rem 0.875rem;
  border: 1.5px solid var(--slate-bd);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--dark);
  background: var(--white);
  transition: border-color 0.15s;
  outline: none;
}

.field input:focus,
.field textarea:focus { border-color: var(--teal); }

.field textarea { resize: vertical; min-height: 140px; }

.form-submit {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.8125rem 2rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  align-self: flex-start;
}
.form-submit:hover { background: var(--navy); }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 2rem 2rem;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.footer-copy {
  font-size: 0.875rem;
  color: var(--slate-lt);
}

.footer-contact {
  font-size: 0.875rem;
  color: var(--slate-lt);
  text-decoration: none;
  transition: color 0.15s;
}
.footer-contact:hover { color: var(--white); }

.footer-locale {
  font-size: 0.875rem;
  color: var(--slate-lt);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .value-grid { grid-template-columns: 1fr; }
  .step-flow { flex-direction: column; gap: 1rem; align-items: stretch; }
  .step:not(:last-child)::after { display: none; }
  .step { flex-direction: row; text-align: left; align-items: flex-start; gap: 1rem; }
  .step-number { margin-bottom: 0; flex-shrink: 0; }
  .form-row { grid-template-columns: 1fr; }
  .cred-strip-inner { gap: 0.75rem 1.5rem; }
  .cred-divider { display: none; }
  .pricing-callout { flex-direction: column; gap: 0.5rem; }
}

@media (max-width: 640px) {
  nav { padding: 0 1rem; }
  .nav-inner { height: auto; flex-direction: column; align-items: flex-start; padding: 0.875rem 0; gap: 0.75rem; }
  .nav-links { gap: 1.25rem; }
  .hero { padding: 3.5rem 1.25rem 3rem; }
  section, .product-section { padding: 3.5rem 1.25rem; }
  .contact-section { padding: 3.5rem 1.25rem; }
  .cta-strip { padding: 3.5rem 1.25rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .btn-primary, .btn-outline, .btn-navy { width: 100%; max-width: 300px; text-align: center; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 0.375rem; }
}
