/* =============================================================
   IPORT DENTAL PILOT — shared stylesheet
   Spec: dental-build-spec.html (BL-03 through BL-09, BL-19)
   ============================================================= */

/* ----- BL-03 Tokens ----- */
:root{
  --brand-orange:#FC4C02;
  --brand-orange-hover:#E33F00;
  --brand-black:#25282A;
  --ink:#1d1f21;
  --paper:#FFFFFF;
  --paper-2:#FAF7F2;
  --rule:#E4DED3;
  --muted:#6B6B6B;
  --success:#1F7A4D;
  --error:#A11D1D;

  --container:1080px;
  --gutter:24px;

  --shadow-product:0 24px 40px rgba(0,0,0,0.12);
  --focus-ring:0 0 0 3px rgba(252,76,2,0.30);
}

/* ----- Base / Reset ----- */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:0.01ms !important;animation-iteration-count:1 !important;transition-duration:0.01ms !important}
}
body{
  margin:0;
  font-family:'Montserrat','Helvetica Neue',Arial,sans-serif;
  font-weight:400;
  color:var(--ink);
  background:var(--paper);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
  font-size:16px;
  line-height:1.65;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-orange);text-decoration:none}
a:hover{text-decoration:underline}
button{font-family:inherit}

/* ----- BL-19 Skip link ----- */
.skip-link{
  position:absolute;left:-9999px;top:0;background:var(--brand-black);color:#fff;
  padding:10px 16px;z-index:1000;font-weight:600;
}
.skip-link:focus{left:0;outline:none;box-shadow:var(--focus-ring)}

/* ----- BL-04 Typography ----- */
h1,h2,h3,h4{font-family:'Montserrat',sans-serif;color:var(--brand-black);margin:0}
.h1, h1{
  font-size:40px;font-weight:700;line-height:1.05;letter-spacing:-0.03em;
}
h2{
  font-size:28px;font-weight:600;line-height:1.15;letter-spacing:-0.015em;
}
h3{
  font-size:18px;font-weight:600;line-height:1.25;letter-spacing:-0.005em;
}
.subhead{
  font-size:17px;font-weight:400;line-height:1.45;color:var(--ink);
}
.eyebrow{
  font-size:11px;font-weight:700;letter-spacing:0.18em;line-height:1;text-transform:uppercase;color:var(--brand-orange);
}
.muted{color:var(--muted);font-size:13px;line-height:1.45}

@media (min-width:1024px){
  .h1, h1{font-size:64px}
  h2{font-size:36px}
  h3{font-size:20px}
  .subhead{font-size:20px}
  body{font-size:17px}
}

/* ----- BL-04 Editorial accent above every H2 ----- */
.section-accent{
  display:block;width:24px;height:2px;background:var(--brand-orange);margin:0 0 16px 0;
  border:0;
}

/* ----- BL-05 Layout ----- */
.container{
  width:100%;
  max-width:var(--container);
  margin:0 auto;
  padding-left:var(--gutter);
  padding-right:var(--gutter);
}
section{padding:56px 0}
@media (min-width:1024px){
  section{padding:96px 0}
}
.section-alt{background:var(--paper-2)}

/* ----- BL-08 Header ----- */
.site-header{
  position:sticky;top:0;z-index:50;
  height:48px;background:var(--paper);border-bottom:1px solid var(--rule);
  display:flex;align-items:center;
}
@media (min-width:640px){.site-header{height:56px}}
.site-header .container{display:flex;align-items:center;justify-content:space-between;padding-top:0;padding-bottom:0}
.site-header .logo{display:flex;align-items:center}
.site-header .logo img{height:28px;width:auto}
@media (min-width:640px){.site-header .logo img{height:32px}}
.site-header .phone{
  display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--brand-black);font-size:14px;
}
.site-header .phone:hover{text-decoration:none;color:var(--brand-orange)}
.site-header .phone-text{display:none}
@media (min-width:640px){.site-header .phone-text{display:inline}}
.site-header .phone-icon{width:18px;height:18px;display:inline-block}

/* ----- HERO (A1/B1) ----- */
.hero{padding:32px 0 56px 0;background:var(--paper)}
@media (min-width:1024px){.hero{padding:64px 0 96px 0}}
.hero-grid{display:flex;flex-direction:column;gap:24px}
@media (min-width:1024px){
  .hero-grid{flex-direction:row;gap:64px;align-items:center}
  .hero-copy{flex:1 1 45%;max-width:520px}
  .hero-media{flex:1 1 55%}
}
.hero h1{margin-bottom:20px}
.hero .subhead{margin-bottom:32px}
.hero-cta-row{display:flex;flex-direction:column;gap:14px;align-items:flex-start}
@media (min-width:640px){.hero-cta-row{flex-direction:row;align-items:center;gap:24px}}

/* AI placeholder image well */
.ai-placeholder{
  width:100%;
  background:linear-gradient(135deg, #e8e3d8 0%, #d5cfc1 100%);
  border:1px dashed #b8b0a0;
  display:flex;align-items:center;justify-content:center;
  color:#6b6256;font-size:13px;font-weight:500;letter-spacing:0.04em;
  text-align:center;padding:24px;border-radius:4px;
  aspect-ratio:4/5;
}
@media (min-width:1024px){
  .ai-placeholder{aspect-ratio:21/9}
}
.ai-placeholder .ph-label{max-width:280px;line-height:1.5}
.ai-placeholder .ph-label strong{display:block;font-size:15px;color:#3a3528;margin-bottom:6px;letter-spacing:0}

/* ----- BL-06 Primary CTA button ----- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:6px;
  background:var(--brand-orange);color:#fff;
  padding:16px 24px;
  border:0;border-radius:4px;
  font-weight:600;font-size:16px;letter-spacing:0.02em;line-height:1;
  cursor:pointer;text-decoration:none;
  min-height:48px;
  transition:background-color .15s ease;
  font-family:'Montserrat',sans-serif;
}
@media (min-width:1024px){.btn{padding:14px 24px}}
.btn:hover{background:var(--brand-orange-hover);color:#fff;text-decoration:none}
.btn:focus-visible{outline:none;box-shadow:var(--focus-ring);outline-offset:2px}
.btn[disabled]{opacity:.7;cursor:wait}

.btn-ghost{
  background:transparent;color:var(--brand-black);border:1px solid var(--ink);
}
.btn-ghost:hover{background:var(--brand-black);color:#fff}

/* Soft anchor */
.anchor-soft{
  display:inline-block;color:var(--brand-orange);text-decoration:underline;font-size:16px;font-weight:500;
}
.anchor-soft:hover{color:var(--brand-orange-hover)}

/* ----- A2/B2 Trust strip ----- */
.trust{background:var(--paper-2);border-top:1px solid var(--rule);border-bottom:1px solid var(--rule)}
.trust-lead{font-size:18px;font-weight:500;color:var(--brand-black);margin:0 0 24px 0;line-height:1.4}
.trust-lead strong{font-weight:700}
.trust-chips{
  list-style:none;padding:0;margin:0;display:flex;gap:16px;flex-wrap:wrap;
}
.trust-chips li{
  display:flex;align-items:center;gap:10px;
  background:var(--paper);border:1px solid var(--rule);border-radius:999px;
  padding:10px 16px;font-size:14px;font-weight:500;color:var(--brand-black);
}
.trust-chips .chip-icon{font-size:18px;line-height:1}

/* ----- A3/B3 Pain narrative ----- */
.narrative .beats{display:flex;flex-direction:column;gap:24px;margin:32px 0 0 0}
@media (min-width:1024px){.narrative .beats{gap:32px}}
.beat{
  position:relative;padding-left:64px;
}
.beat-num{
  position:absolute;left:0;top:2px;
  width:44px;height:44px;border-radius:50%;
  background:var(--brand-orange);color:#fff;
  display:flex;align-items:center;justify-content:center;
  font-weight:700;font-size:18px;letter-spacing:0;
}
.beat p{margin:0;font-size:17px;line-height:1.55}
@media (min-width:1024px){.beat p{font-size:19px;line-height:1.55}}
.narrative-cta{margin-top:48px}

/* ----- BL-06 Product Plate (A4/A6/B4/B6) ----- */
.plates{display:grid;gap:32px;grid-template-columns:1fr}
@media (min-width:640px){.plates{grid-template-columns:repeat(2,1fr);gap:48px}}
@media (min-width:1024px){.plates.plates-3{grid-template-columns:repeat(3,1fr)}}
@media (min-width:1024px){.plates.plates-4{grid-template-columns:repeat(4,1fr);gap:32px}}

.plate{display:flex;flex-direction:column;gap:14px}
.plate-well{
  position:relative;
  background:var(--paper-2);
  aspect-ratio:4/5;
  display:flex;align-items:center;justify-content:center;
  padding:24px;
  box-shadow:var(--shadow-product);
}
.plate-well img{
  max-height:220px;width:auto;max-width:80%;
  object-fit:contain;
}
@media (min-width:1024px){.plate-well img{max-height:280px}}
.plate-well::after{
  content:"";position:absolute;left:16px;bottom:16px;
  width:24px;height:1px;background:var(--brand-orange);
}
.plate-name{font-size:18px;font-weight:600;color:var(--brand-black);margin:0}
.plate-desc{font-size:15px;color:var(--muted);margin:0;line-height:1.5}

/* ----- A4 / B4 Setup detail (config blocks) ----- */
.config-block{margin-top:48px}
.config-block h3{margin-bottom:8px}
.config-grid{
  display:grid;grid-template-columns:1fr;gap:32px;margin-top:24px;
}
@media (min-width:640px){.config-grid{grid-template-columns:repeat(2,1fr)}}
.config-bullets{margin:24px 0 0 0;padding:0 0 0 20px}
.config-bullets li{margin-bottom:10px}

.config-anchor{margin-top:32px}

/* ----- A7/B7 Partner row ----- */
.partners{list-style:none;margin:32px 0 0 0;padding:0;display:grid;gap:24px;grid-template-columns:1fr}
@media (min-width:640px){.partners{grid-template-columns:repeat(3,1fr);gap:32px}}
.partners li{
  background:var(--paper);border:1px solid var(--rule);padding:24px;border-radius:4px;
}
.partners strong{display:block;font-size:18px;color:var(--brand-black);margin-bottom:8px;font-weight:700}
.scale-anchor{
  margin:32px 0 0 0;font-size:18px;line-height:1.5;color:var(--brand-black);
  padding:20px 24px;background:var(--paper-2);border-left:3px solid var(--brand-orange);
}
.partners-cta{margin-top:40px}

/* ----- A8/B8 Risk reversal ----- */
.risk-list{margin:32px 0 0 0;padding:0;list-style:none}
.risk-list li{
  position:relative;padding:16px 0 16px 36px;border-bottom:1px solid var(--rule);
  font-size:16px;line-height:1.55;
}
.risk-list li::before{
  content:"✓";position:absolute;left:0;top:16px;
  color:var(--brand-orange);font-weight:700;font-size:18px;
}
.risk-list li:last-child{border-bottom:0}
.risk-list strong{display:inline;font-weight:700;color:var(--brand-black)}

/* ----- A9/B9 FAQ accordion ----- */
.faq{margin:32px 0 0 0}
.faq-item{
  border-top:1px solid var(--rule);
}
.faq-item:last-child{border-bottom:1px solid var(--rule)}
.faq-q{
  width:100%;background:transparent;border:0;text-align:left;
  padding:20px 40px 20px 0;
  font-family:'Montserrat',sans-serif;font-weight:600;font-size:17px;color:var(--brand-black);
  cursor:pointer;position:relative;line-height:1.4;
}
.faq-q:hover{color:var(--brand-orange)}
.faq-q:focus-visible{outline:none;box-shadow:var(--focus-ring);outline-offset:-2px}
.faq-q::after{
  content:"+";position:absolute;right:8px;top:50%;transform:translateY(-50%);
  font-size:24px;font-weight:400;color:var(--brand-orange);transition:transform .2s ease;
}
.faq-q[aria-expanded="true"]::after{content:"−"}
.faq-a{
  max-height:0;overflow:hidden;transition:max-height .25s ease;
}
.faq-a-inner{padding:0 0 20px 0;font-size:16px;line-height:1.65;color:var(--ink)}
.faq-item.is-open .faq-a{max-height:500px}

/* ----- A10/B10 Form ----- */
.form-wrap{
  background:var(--paper-2);
  padding:32px 24px;border-radius:8px;margin-top:24px;
}
@media (min-width:1024px){.form-wrap{padding:48px}}
.lead-form{display:flex;flex-direction:column;gap:20px;margin-top:0}
.lead-form .field{display:flex;flex-direction:column;gap:6px}
.lead-form label{font-weight:500;font-size:14px;color:var(--brand-black)}
.lead-form label .req{color:var(--brand-orange);margin-left:2px}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"]{
  border:1px solid var(--rule);background:var(--paper);
  padding:12px 14px;font-size:16px;border-radius:4px;
  font-family:'Montserrat',sans-serif;color:var(--ink);
  -webkit-appearance:none;
}
.lead-form input:focus{outline:none;border-color:var(--brand-orange);box-shadow:var(--focus-ring)}
.lead-form .err-msg{font-size:14px;color:var(--error);margin-top:4px;display:none}
.lead-form .field.has-error input{border-color:var(--error)}
.lead-form .field.has-error .err-msg{display:block}

/* segmented pill group (BL-06) */
.pill-group{border:0;padding:0;margin:0}
.pill-group legend{
  font-weight:500;font-size:14px;color:var(--brand-black);padding:0;margin:0 0 8px 0;
}
.pill-group .pills{display:flex;flex-wrap:wrap;gap:8px}
.pill-group .pill-input{
  position:absolute;opacity:0;pointer-events:none;width:1px;height:1px;
}
.pill-group .pill{
  display:inline-flex;align-items:center;justify-content:center;
  padding:14px 18px;min-height:48px;
  border:1px solid var(--rule);background:var(--paper);border-radius:999px;
  font-size:15px;font-weight:500;color:var(--brand-black);
  cursor:pointer;line-height:1;
  transition:background-color .12s ease, border-color .12s ease, color .12s ease;
}
.pill-group .pill:hover{background:var(--paper-2);border-color:rgba(29,31,33,0.3)}
.pill-group .pill-input:checked + .pill{
  background:var(--brand-orange);color:#fff;border-color:var(--brand-orange);
}
.pill-group .pill-input:focus-visible + .pill{
  box-shadow:var(--focus-ring);outline-offset:2px;
}
.pill-group.has-error .pills .pill{border-color:var(--error)}

/* honeypot (BL-10) — not display:none, visually hidden */
.hp-field{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

.form-submit-row{margin-top:8px}
.form-microcopy{font-size:13px;color:var(--muted);margin-top:12px;line-height:1.5}
.form-microcopy code{font-family:ui-monospace,Menlo,monospace;font-size:12.5px}
.form-error-banner{
  background:#fdecec;border:1px solid var(--error);color:var(--error);
  padding:12px 16px;border-radius:4px;margin-bottom:16px;font-size:14px;display:none;
}
.form-error-banner.is-visible{display:block}

.form-success{
  display:none;text-align:left;
}
.form-success.is-visible{display:block}
.form-success h3{font-size:22px;color:var(--success);margin-bottom:12px;display:flex;align-items:center;gap:10px}
.form-success h3::before{content:"✓";display:inline-block;width:32px;height:32px;border-radius:50%;background:var(--success);color:#fff;text-align:center;line-height:32px;font-size:18px;font-weight:700}
.form-success p{font-size:16px;line-height:1.55}
.form-success code{background:var(--paper);padding:2px 6px;border-radius:3px;font-size:14px}

/* ----- A11/B11 Closing CTA ----- */
.closing{background:var(--paper-2);text-align:center}
.closing h2{margin-bottom:24px}
.closing .btn{margin-top:8px}

/* ----- BL-09 Brand strip ----- */
.brand-strip{
  background:var(--brand-orange);color:#fff;
  text-align:center;padding:32px 16px;
  font-size:15px;font-weight:700;letter-spacing:0.40em;line-height:1.2;
}
@media (min-width:1024px){
  .brand-strip{padding:48px 16px;font-size:18px}
}
.brand-strip .word{display:inline-block;white-space:nowrap;margin:0 18px}
.brand-strip .sep{display:none} /* tagline already has periods (CLAUDE.md verified format) — no separator dots */

/* ----- BL-09 Footer ----- */
.site-footer{background:var(--brand-black);color:#fff;padding:32px 0}
@media (min-width:1024px){.site-footer{padding:48px 0}}
.footer-grid{display:flex;flex-direction:column;gap:24px}
@media (min-width:640px){.footer-grid{flex-direction:row;justify-content:space-between;align-items:flex-start}}
.footer-brand img{height:40px;width:auto;margin-bottom:12px}
.footer-brand p{margin:0;font-size:14px;color:rgba(255,255,255,0.75)}
.footer-meta{font-size:14px;line-height:1.85;color:rgba(255,255,255,0.85)}
.footer-meta a{color:#fff;text-decoration:none}
.footer-meta a:hover{text-decoration:underline;color:#fff}
.footer-copy{font-size:12px;color:rgba(255,255,255,0.55);margin-top:24px}

/* ----- BL-06 Sticky mobile bar ----- */
.sticky-bar{
  position:fixed;left:0;right:0;bottom:0;z-index:60;
  background:rgba(37,40,42,0.92);
  -webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);
  display:none;
  align-items:center;justify-content:space-between;gap:12px;
  padding:10px 16px;height:64px;
}
.sticky-bar.is-active{display:flex}
.sticky-bar .sb-text{color:#fff;font-size:13px;font-weight:500;line-height:1.2;flex:0 1 auto}
.sticky-bar .sb-cta{flex:0 0 auto}
.sticky-bar .sb-cta .btn{padding:12px 18px;min-height:44px;font-size:14px}
.sticky-bar .sb-dismiss{
  position:absolute;top:6px;right:8px;background:transparent;border:0;color:rgba(255,255,255,0.65);
  cursor:pointer;font-size:18px;line-height:1;padding:4px 8px;
}
.sticky-bar .sb-dismiss:hover{color:#fff}
.sticky-bar .sb-dismiss:focus-visible{outline:none;box-shadow:0 0 0 2px rgba(255,255,255,0.4)}

/* Sticky bar visible on ALL viewports (was mobile-only — desktop CTA fix per CRO panel) */
body.has-sticky{padding-bottom:64px}

/* ----- Utility ----- */
.sr-only{
  position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0;
}
.text-orange{color:var(--brand-orange)}
.mt-0{margin-top:0}
.mt-3{margin-top:24px}
