/* DoctorSpectra — PIONEER-5K site styles */
:root {
  --navy: #05386b;
  --navy-deep: #031f3d;
  --ink: #1d2433;
  --muted: #5b6475;
  --line: #e3e7ee;
  --bg: #ffffff;
  --bg-alt: #f4f7fb;
  --orange: #f7931e;
  --orange-soft: #fca253;
  --red: #eb1e28;
  --yellow: #f4f014;
  --green: #81cc2a;
  --blue: #52afe5;
  --purple: #8c198e;
  --spectrum: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple));
  --radius: 14px;
  --shadow: 0 6px 24px rgba(5, 56, 107, 0.08);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 90px; }
body {
  margin: 0;
  font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--navy); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; color: var(--navy); font-weight: 700; }
h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }
p { margin: 0 0 1em; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header::after { content: ""; display: block; height: 3px; background: var(--spectrum); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand img { height: 46px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  display: block; padding: 8px 12px; border-radius: 8px;
  text-decoration: none; color: var(--ink); font-weight: 500; font-size: 0.93rem;
}
.nav-links a:hover { background: var(--bg-alt); color: var(--navy); }
.nav-links a.active { color: var(--navy); font-weight: 600; box-shadow: inset 0 -2px 0 var(--orange); border-radius: 0; }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line); border-radius: 8px;
  width: 44px; height: 44px; cursor: pointer; color: var(--navy);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
  text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.btn-primary { background: var(--orange); color: #1a1205; }
.btn-outline { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-light { border-color: rgba(255,255,255,.7); color: #fff; }
.nav .btn { padding: 9px 18px; }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--navy-deep); color: #dce6f2; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 760px; margin: 0 auto 48px; text-align: center; }
.section-head p { color: var(--muted); font-size: 1.05rem; }
.section-dark .section-head p { color: #b6c6da; }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--orange); margin-bottom: 10px;
}

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 500px at 85% 10%, rgba(82,175,229,.25), transparent 60%), var(--navy-deep);
  color: #dce6f2; padding: 88px 0 96px; position: relative; overflow: hidden;
}
.hero h1 { color: #fff; }
.hero h1 .hl { background: var(--spectrum); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { font-size: 1.2rem; color: #c8d6e8; max-width: 540px; }
.hero .badge-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 30px; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 0.85rem; font-weight: 500;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18); color: #fff;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }

.page-hero { background: var(--navy-deep); color: #c8d6e8; padding: 64px 0 56px; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p { max-width: 680px; font-size: 1.1rem; margin: 0; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); position: relative;
}
.card h3 { text-transform: none; }
.card p { color: var(--muted); margin: 0; font-size: 0.95rem; }
.card .num {
  display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px;
  font-weight: 700; font-size: 0.95rem; color: #fff; background: var(--navy); margin-bottom: 14px;
}
.card.problem { border-top: 4px solid var(--red); }
.card.problem .num { background: var(--red); }
.card.benefit { border-top: 4px solid var(--green); }
.card.benefit .num { background: #4f9a14; }

.banner-quote {
  margin-top: 48px; padding: 28px; border-radius: var(--radius); text-align: center;
  background: var(--navy); color: #fff; font-weight: 600; font-size: clamp(1.05rem, 2vw, 1.35rem); letter-spacing: .02em;
}
.banner-quote::before { content: ""; display: block; height: 3px; width: 80px; margin: 0 auto 16px; background: var(--spectrum); border-radius: 3px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { background: #fff; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; box-shadow: var(--shadow); }
.step .ph { border-radius: 0; border-width: 0 0 2px; }
.step-body { padding: 22px 24px 26px; }
.step-body .k { font-size: 0.78rem; font-weight: 700; color: var(--orange); letter-spacing: .12em; text-transform: uppercase; }
.step-body h3 { margin-top: 4px; }
.step-body p { color: var(--muted); margin: 0; font-size: 0.95rem; }

/* ---------- Defects ---------- */
.defect { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.defect .ph { border-radius: 0; border-width: 0 0 2px; }
.defect .body { padding: 16px 18px 20px; }
.defect .body h3 { margin: 0; font-size: 1rem; display: flex; gap: 10px; align-items: baseline; }
.defect .body h3 span { color: var(--orange); font-size: 0.85rem; }

/* ---------- Feature list ---------- */
.features { display: grid; gap: 18px; }
.feature { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.feature .ic {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(5,56,107,.08); color: var(--navy);
}
.feature .ic svg { width: 22px; height: 22px; }
.feature h3 { margin: 0 0 4px; font-size: 1.02rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { text-align: center; padding: 22px 12px; border-radius: var(--radius); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.stat b { display: block; font-size: clamp(1.6rem, 3vw, 2.2rem); color: #fff; line-height: 1.1; }
.stat span { font-size: 0.85rem; color: #b6c6da; }
.section:not(.section-dark) .stat { background: #fff; border-color: var(--line); box-shadow: var(--shadow); }
.section:not(.section-dark) .stat b { color: var(--navy); }
.section:not(.section-dark) .stat span { color: var(--muted); }

/* ---------- Specs ---------- */
.spec-group { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.spec-group h3 { margin: 0; padding: 16px 22px; background: var(--navy); color: #fff; font-size: 1rem; display: flex; gap: 12px; align-items: center; }
.spec-group h3 small { font-weight: 600; color: var(--orange-soft); font-size: 0.85rem; }
.spec-group dl { margin: 0; padding: 8px 22px 16px; }
.spec-group .row { display: grid; grid-template-columns: 42% 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.spec-group .row:last-child { border-bottom: 0; }
.spec-group dt { color: var(--muted); }
.spec-group dd { margin: 0; font-weight: 500; }
.spec-group ul { margin: 0; padding: 14px 22px 18px 40px; font-size: 0.94rem; }
.spec-group li { padding: 4px 0; }

/* ---------- Pricing / service ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; display: flex; flex-direction: column; }
.plan .tier { font-weight: 700; font-size: 1.4rem; margin-bottom: 4px; }
.plan .tag { font-size: 0.85rem; color: var(--muted); margin-bottom: 18px; }
.plan ul { list-style: none; margin: 0 0 24px; padding: 0; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; font-size: 0.94rem; border-bottom: 1px dashed var(--line); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 8px; color: #4f9a14; font-weight: 700; }
.plan.silver { border-top: 6px solid #a7b0bd; }
.plan.gold { border-top: 6px solid #e0a915; }
.plan.platinum { border-top: 6px solid var(--navy); transform: translateY(-8px); box-shadow: 0 14px 40px rgba(5,56,107,.18); }
.plan .ribbon { align-self: flex-start; font-size: 0.75rem; font-weight: 700; color: #fff; background: var(--navy); padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Audience (solutions) ---------- */
.audience { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.audience + .audience { margin-top: 0; }
.audience .sticky { position: sticky; top: 110px; }
.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 8px; }
.tabs a { text-decoration: none; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; background: #fff; }
.tabs a:hover { border-color: var(--navy); }

/* ---------- Logos strip ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.logos .ph { border-radius: 10px; }
.logo-group h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; margin: 0 0 12px; }

/* ---------- CTA ---------- */
.cta {
  background: var(--navy-deep); color: #c8d6e8; border-radius: 22px; padding: 56px 40px; text-align: center; position: relative; overflow: hidden;
}
.cta::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--spectrum); }
.cta h2 { color: #fff; }
.cta p { max-width: 560px; margin: 0 auto 26px; }
.cta .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

/* ---------- Contact ---------- */
.contact-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.contact-card .ic { width: 48px; height: 48px; border-radius: 12px; background: var(--navy); color: #fff; display: grid; place-items: center; }
.contact-card .ic svg { width: 22px; height: 22px; }
.contact-card h3 { margin: 0 0 4px; }
.contact-card a { text-decoration: none; font-weight: 500; }
.contact-card a:hover { text-decoration: underline; }
.contact-card p { color: var(--ink); margin: 0; }

/* ---------- Footer ---------- */
.site-footer { background: #0a0f1a; color: #93a0b4; padding: 56px 0 28px; font-size: 0.92rem; margin-top: 0; }
.site-footer::before { content: ""; display: block; height: 3px; background: var(--spectrum); margin-top: -56px; margin-bottom: 53px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: 0.95rem; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 3px 0; }
.site-footer a { color: #c4cedc; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-logo { background: #fff; display: inline-block; padding: 8px 12px; border-radius: 10px; margin-bottom: 14px; }
.footer-logo img { height: 38px; }
.footer-bottom { border-top: 1px solid #1d2636; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

/* ---------- Photo placeholders ----------
   Each .ph holds an <img>. Put a photo with the filename shown in the label
   into /images and it will appear automatically. Until then, the label shows. */
.ph {
  position: relative; width: 100%; aspect-ratio: var(--ar, 4 / 3); overflow: hidden;
  border: 2px dashed #b9c4d3; border-radius: var(--radius);
  background:
    repeating-linear-gradient(135deg, rgba(5,56,107,.035) 0 12px, transparent 12px 24px),
    #eef2f7;
  display: grid; place-items: center; text-align: center; color: #5b6b82;
}
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: var(--fit, cover); background: #fff; z-index: 1; }
.ph .ph-label { padding: 14px; font-size: 0.82rem; line-height: 1.45; max-width: 92%; }
.ph .ph-label::before {
  content: ""; display: block; width: 34px; height: 34px; margin: 0 auto 8px; opacity: .55;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2305386b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M23 19a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h4l2-3h6l2 3h4a2 2 0 0 1 2 2z'/%3E%3Ccircle cx='12' cy='13' r='4'/%3E%3C/svg%3E");
}
.ph .ph-label b { display: block; color: var(--navy); font-size: 0.9rem; margin-bottom: 2px; }
.ph .ph-label code { display: inline-block; margin-top: 6px; font-size: 0.75rem; background: rgba(5,56,107,.08); padding: 2px 8px; border-radius: 6px; color: var(--navy); word-break: break-all; }
.ph.small .ph-label { font-size: 0.72rem; padding: 8px; }
.ph.small .ph-label::before { display: none; }
.ph.small .ph-label code { font-size: 0.65rem; }
.ph.dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 12px, transparent 12px 24px), rgba(255,255,255,.06); border-color: rgba(255,255,255,.3); color: #b6c6da; }
.ph.dark .ph-label b { color: #fff; }
.ph.dark .ph-label code { background: rgba(255,255,255,.12); color: #fff; }
.ph.dark .ph-label::before { filter: invert(1); opacity: .6; }
.ph.has-img { border-style: solid; border-color: transparent; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 24px; }
.mt-3 { margin-top: 40px; }
.mt-4 { margin-top: 64px; }
.muted { color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { padding: 6px 0 6px 30px; position: relative; }
.check-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 9px; border-left: 3px solid var(--green); border-bottom: 3px solid var(--green); transform: rotate(-45deg); }
.tagline { font-weight: 700; color: var(--navy); font-size: 1.15rem; letter-spacing: .04em; }

/* ---------- Responsive ---------- */
@media (max-width: 1060px) {
  .nav-links a { padding: 8px 8px; font-size: 0.88rem; }
}
@media (max-width: 960px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none; position: absolute; top: 75px; left: 0; right: 0; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 10px 20px 20px; box-shadow: 0 12px 24px rgba(0,0,0,.08);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 10px; font-size: 1rem; }
  .nav-links a.active { box-shadow: inset 3px 0 0 var(--orange); }
  .nav-links .btn { justify-content: center; margin-top: 8px; }
  .grid-4, .logos { grid-template-columns: repeat(3, 1fr); }
  .grid-3, .steps, .plans { grid-template-columns: repeat(2, 1fr); }
  .split, .audience { grid-template-columns: 1fr; gap: 36px; }
  .audience .sticky { position: static; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .plan.platinum { transform: none; }
}
@media (max-width: 640px) {
  .section { padding: 60px 0; }
  .container { padding: 0 16px; }
  .grid-2, .grid-3, .steps, .plans { grid-template-columns: 1fr; }
  .grid-4, .logos { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 64px; }
  .cta { padding: 40px 20px; }
  .brand img { height: 38px; }
  .spec-group .row { grid-template-columns: 1fr; gap: 0; }
}

/* 4-logo row (home page) */
.logos.logos-4 { grid-template-columns: repeat(4, 1fr); max-width: 820px; margin: 0 auto; }
@media (max-width: 640px) { .logos.logos-4 { grid-template-columns: repeat(2, 1fr); } }

/* Actual vs AI prediction pairs (defects page). Photos are 10:13 (height/width = 1.3). */
.defect-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: #fff; }
.cmp-item { position: relative; margin: 0; }
.compare .ph { border-radius: 0; border-width: 1px; }
.compare .ph.has-img { border: 0; }
.cmp-tag {
  position: absolute; left: 6px; bottom: 6px; z-index: 2;
  font-size: 0.7rem; font-weight: 600; letter-spacing: .04em; line-height: 1;
  padding: 5px 8px; border-radius: 999px; background: rgba(3, 31, 61, .82); color: #fff;
}
.cmp-item + .cmp-item .cmp-tag { background: var(--orange); color: #1a1205; }
.compare .ph:not(.has-img) + .cmp-tag { display: none; }

/* Single combined photo in place of a pair (e.g. Egg weight). 20:13 matches the height of a 10:13 pair. */
.compare.compare-single { grid-template-columns: 1fr; }

/* Backer logos with captions (about page) */
.backer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px 12px; }
.backer { margin: 0; }
.backer figcaption { margin-top: 8px; text-align: center; font-size: 0.82rem; font-weight: 500; line-height: 1.35; color: var(--ink); }
.backer figcaption.todo { color: var(--orange); font-style: italic; }

/* All backers in one grid: 3 columns on wide screens (about page) */
.backers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.backers .backer { padding: 18px; display: flex; flex-direction: column; }
.backers .backer figcaption { margin-top: 14px; display: grid; gap: 2px; }
.backer-kind { font-size: 0.7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--orange); }
.backer-name { font-size: 0.95rem; font-weight: 600; color: var(--navy); }
.backer-name.todo { color: var(--muted); font-style: italic; font-weight: 500; }
@media (max-width: 960px) { .backers { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .backers { grid-template-columns: 1fr; } }

/* Patent / technology text card (about page) */
.ip-card { display: flex; flex-direction: column; }
.ip-card h3 { font-size: 1.3rem; }
.ip-card p { color: var(--ink); font-size: 0.95rem; margin: 0 0 12px; }
.ip-card .check-list { margin-top: auto; padding-top: 6px; font-size: 0.92rem; font-weight: 500; }
