/* ============================================================
   MedBridge — marketing site
   Brand palette shared with the coordinator console:
   ink #16233A · teal #0D7268 · teal-soft #E4F0EE · amber #B45309
   ============================================================ */

:root {
  --ink:        #16233A;
  --ink-2:      #1d3050;
  --ink-3:      #26406a;
  --teal:       #0D7268;
  --teal-600:   #0b625a;
  --teal-700:   #094f49;
  --teal-soft:  #E4F0EE;
  --amber:      #B45309;
  --amber-soft: #FBEEDD;

  --paper:      #FAF9F6;
  --surface:    #FFFFFF;
  --surface-2:  #F4F2EE;
  --line:       #E7E3DC;
  --line-2:     #EFEDE7;

  --text:       #16233A;
  --muted:      #5A6577;
  --muted-2:    #8A93A2;

  --radius:     16px;
  --radius-sm:  11px;
  --radius-lg:  24px;
  --shadow-sm:  0 1px 2px rgba(22,35,58,.06), 0 1px 3px rgba(22,35,58,.05);
  --shadow-md:  0 6px 20px rgba(22,35,58,.08), 0 2px 6px rgba(22,35,58,.05);
  --shadow-lg:  0 24px 60px rgba(22,35,58,.16), 0 8px 24px rgba(22,35,58,.10);

  --container:  1140px;
  --ease:       cubic-bezier(.22,.61,.36,1);

  --font-sans:  "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: "Newsreader", Georgia, "Times New Roman", serif;
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

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

/* ---------- buttons ---------- */
.btn {
  --btn-bg: var(--teal);
  --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-weight: 600; font-size: .95rem;
  padding: .72rem 1.25rem; border-radius: var(--radius-sm);
  background: var(--btn-bg); color: var(--btn-fg);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: 3px solid rgba(13,114,104,.4); outline-offset: 2px; }
.btn-sm { padding: .55rem 1rem; font-size: .9rem; }
.btn-lg { padding: .85rem 1.6rem; font-size: 1rem; }

.btn-primary { background: var(--teal); color: #fff; box-shadow: 0 6px 16px rgba(13,114,104,.28); }
.btn-primary:hover { background: var(--teal-600); box-shadow: 0 10px 24px rgba(13,114,104,.34); }

.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); background: #fff; }

.btn-ghost-light { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-ghost-light:hover { background: rgba(255,255,255,.16); }

.btn-outline { background: #fff; color: var(--teal-700); border-color: var(--line); }
.btn-outline:hover { border-color: var(--teal); background: var(--teal-soft); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250,249,246,.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.brand { display: inline-flex; align-items: center; gap: .65rem; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px;
  background: var(--teal); color: #fff; border-radius: 11px;
  font-family: var(--font-serif); font-weight: 600; font-size: 1.35rem;
  box-shadow: 0 4px 12px rgba(13,114,104,.3);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 700; font-size: 1.02rem; color: var(--ink); }
.brand-sub { font-size: .72rem; color: var(--muted-2); letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-links a { font-size: .95rem; font-weight: 500; color: var(--muted); transition: color .15s var(--ease); }
.nav-links a:hover { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: .75rem; }

.nav-toggle { display: none; flex-direction: column; gap: 4px; width: 42px; height: 42px; align-items: center; justify-content: center; background: none; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: .25rem; padding: 12px 24px 20px; border-bottom: 1px solid var(--line); background: var(--paper); }
.mobile-menu a { padding: .7rem .25rem; font-weight: 500; color: var(--ink); border-bottom: 1px solid var(--line-2); }
.mobile-menu a:last-child { border: none; margin-top: .5rem; justify-content: center; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding-top: 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(13,114,104,.10), transparent 60%),
    radial-gradient(50% 50% at 8% 22%, rgba(180,83,9,.06), transparent 60%);
}
.hero-grid {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center;
  padding-block: 56px 40px;
}
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .04em;
  text-transform: uppercase; color: var(--teal-700);
  background: var(--teal-soft); padding: .4rem .8rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.hero h1 {
  font-family: var(--font-serif); font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.7rem); letter-spacing: -.02em; color: var(--ink);
}
.hero h1 em { font-style: italic; color: var(--teal); }
.lede { margin-top: 1.35rem; font-size: 1.14rem; color: var(--muted); max-width: 33ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 1.25rem; margin-top: 2rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 500; color: var(--muted); }

.ic { width: 18px; height: 18px; fill: none; }
.hero-trust .ic { fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.6; }
.hero-trust .ic .stroke { stroke: var(--teal); }

/* hero visual */
.hero-visual { position: relative; }
.preview-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-lg);
  transform: rotate(.6deg);
}
.preview-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.preview-ref { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: .78rem; color: var(--muted-2); }
.preview-badge { font-size: .74rem; font-weight: 600; color: var(--teal-700); background: var(--teal-soft); padding: .28rem .7rem; border-radius: 999px; }
.preview-title { font-weight: 600; color: var(--ink); font-size: 1.05rem; }
.preview-pipeline { display: flex; align-items: center; margin: 20px 0 22px; }
.preview-pipeline .dot { width: 13px; height: 13px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #CBD5E1; flex: 0 0 auto; }
.preview-pipeline .dot.done { background: var(--teal); box-shadow: none; }
.preview-pipeline .dot.active { background: var(--teal); box-shadow: 0 0 0 4px rgba(13,114,104,.18); }
.preview-pipeline .line { height: 2px; flex: 1; background: #E2E8F0; }
.preview-pipeline .line.done { background: var(--teal); }
.preview-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.pstat { background: var(--surface-2); border-radius: 12px; padding: 12px; }
.pstat span { display: block; font-size: .72rem; color: var(--muted-2); margin-bottom: 3px; }
.pstat strong { font-size: 1.1rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.pstat.accent { background: var(--teal-soft); }
.pstat.accent strong { color: var(--teal-700); }

.preview-float {
  position: absolute; bottom: -44px; left: -18px; display: flex; align-items: center; gap: .6rem;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: .7rem .95rem; box-shadow: var(--shadow-md); transform: rotate(-2deg);
}
.preview-float .ic { width: 26px; height: 26px; fill: var(--teal-soft); stroke: var(--teal); stroke-width: 1.6; }
.preview-float .ic .stroke { stroke: var(--teal); }
.preview-float strong { display: block; font-size: .85rem; color: var(--ink); }
.preview-float span { font-size: .74rem; color: var(--muted-2); }

/* audience band */
.audience-band {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px;
  padding-block: 28px; border-top: 1px solid var(--line); margin-top: 24px;
}
.audience-label { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted-2); font-weight: 600; }
.audience-band ul { display: flex; flex-wrap: wrap; gap: 10px; }
.audience-band li { font-size: .9rem; font-weight: 500; color: var(--ink); background: #fff; border: 1px solid var(--line); padding: .4rem .85rem; border-radius: 999px; }

/* ---------- section scaffolding ---------- */
.section { padding-block: clamp(64px, 9vw, 108px); }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; }
.section-head.left { text-align: left; margin-inline: 0; }
.kicker { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: .9rem; }
.kicker.light { color: #6FD3C6; }
.section-head h2, .section h2 { font-family: var(--font-serif); font-weight: 500; font-size: clamp(1.7rem, 3.4vw, 2.5rem); color: var(--ink); letter-spacing: -.015em; }
.section-lede { margin-top: 1.1rem; font-size: 1.08rem; color: var(--muted); }
.section-head .section-lede { margin-inline: auto; max-width: 60ch; }

/* ---------- problem ---------- */
.problem { background: linear-gradient(180deg, var(--paper), #fff); }
.problem-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.problem-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow-sm); }
.problem-card h3 { font-size: 1.08rem; color: var(--ink); margin-bottom: .55rem; }
.problem-card p { font-size: .95rem; color: var(--muted); }

/* ---------- how / steps ---------- */
.how { background: var(--surface); border-block: 1px solid var(--line); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 26px 26px; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 16px;
  font-family: var(--font-serif); font-size: 1.2rem; font-weight: 600; color: var(--teal-700);
  background: var(--teal-soft); border-radius: 12px;
}
.step h3 { font-size: 1.12rem; color: var(--ink); margin-bottom: .5rem; }
.step p { font-size: .95rem; color: var(--muted); }

/* ---------- features ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: #D9D3C8; }
.feature-ic { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 13px; background: var(--teal-soft); margin-bottom: 18px; }
.feature-ic svg { width: 24px; height: 24px; fill: none; stroke: var(--teal); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.feature-ic svg .stroke { stroke: var(--teal); }
.feature h3 { font-size: 1.14rem; color: var(--ink); margin-bottom: .55rem; }
.feature p { font-size: .96rem; color: var(--muted); }

/* ---------- specialties ---------- */
.specialties { background: var(--surface); border-top: 1px solid var(--line); }
.specialty-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.specialty {
  font-size: 1.02rem; font-weight: 500; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: .7rem 1.4rem;
}
.specialty.muted { color: var(--teal-700); background: var(--teal-soft); border-color: transparent; }

/* ---------- pricing ---------- */
.pricing { background: linear-gradient(180deg, #fff, var(--paper)); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px 28px; box-shadow: var(--shadow-sm);
}
.price-card.featured { border-color: var(--teal); box-shadow: 0 20px 44px rgba(13,114,104,.16); }
.price-tag { position: absolute; top: -13px; left: 28px; font-size: .74rem; font-weight: 600; color: #fff; background: var(--teal); padding: .3rem .8rem; border-radius: 999px; }
.price-card h3 { font-size: 1.3rem; color: var(--ink); }
.price-for { font-size: .92rem; color: var(--muted-2); margin-top: .35rem; min-height: 2.6em; }
.price { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; color: var(--ink); margin: .5rem 0 1.25rem; letter-spacing: -.02em; }
.price-from { font-family: var(--font-sans); font-size: .8rem; font-weight: 600; color: var(--muted-2); text-transform: uppercase; letter-spacing: .04em; vertical-align: middle; }
.price-unit { font-family: var(--font-sans); font-size: .9rem; font-weight: 500; color: var(--muted-2); }
.price-list { margin-bottom: 26px; display: grid; gap: .7rem; }
.price-list li { position: relative; padding-left: 1.7rem; font-size: .95rem; color: var(--muted); }
.price-list li::before {
  content: ""; position: absolute; left: 0; top: .32em; width: 16px; height: 16px;
  background: var(--teal-soft); border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5 5-5.5' fill='none' stroke='%230D7268' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
.price-card .btn { margin-top: auto; width: 100%; }
.price-note { text-align: center; margin-top: 28px; font-size: .98rem; color: var(--muted); }

/* ---------- compliance ---------- */
.compliance { background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.compliance::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(50% 60% at 85% 20%, rgba(13,114,104,.35), transparent 60%);
}
.compliance-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.compliance-copy h2 { color: #fff; }
.compliance-copy p { color: #B7C1D1; margin-top: 1.1rem; font-size: 1.08rem; }
.compliance-list { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.compliance-list li { padding: 22px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); }
.compliance-list strong { display: block; color: #fff; font-size: 1.02rem; margin-bottom: .4rem; }
.compliance-list span { font-size: .9rem; color: #A9B4C6; }

/* ---------- faq ---------- */
.faq { background: var(--surface); border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.faq-list details { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 22px; margin-bottom: 14px; background: var(--paper); transition: border-color .2s var(--ease), box-shadow .2s var(--ease); }
.faq-list details[open] { border-color: #D9D3C8; box-shadow: var(--shadow-sm); background: #fff; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; padding: 20px 0; font-weight: 600; font-size: 1.05rem; color: var(--ink); }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .chev { position: relative; width: 14px; height: 14px; flex: 0 0 auto; }
.faq-list .chev::before, .faq-list .chev::after { content: ""; position: absolute; top: 6px; width: 14px; height: 2px; background: var(--teal); border-radius: 2px; transition: transform .25s var(--ease); }
.faq-list .chev::after { transform: rotate(90deg); }
.faq-list details[open] .chev::after { transform: rotate(0); }
.faq-list details p { padding: 0 0 22px; color: var(--muted); font-size: .98rem; max-width: 60ch; }

/* ---------- final CTA ---------- */
.cta-final { padding-block: clamp(56px, 8vw, 96px); }
.cta-card {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, var(--ink), var(--ink-3));
  color: #fff; border-radius: var(--radius-lg); padding: clamp(44px, 7vw, 76px) 32px;
  box-shadow: var(--shadow-lg);
}
.cta-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(45% 70% at 78% 10%, rgba(13,114,104,.4), transparent 60%); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { color: #fff; font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
.cta-card p { color: #C3CCDA; margin-top: 1rem; font-size: 1.1rem; max-width: 48ch; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 2rem; }
.cta-fineprint { font-size: .82rem !important; color: #8B97AB !important; margin-top: 1.4rem; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: #A9B4C6; padding-top: 64px; }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; padding-bottom: 44px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 1rem; max-width: 42ch; font-size: .95rem; color: #93A0B4; }
.footer-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.footer-nav h4 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: #6E7B90; margin-bottom: 1rem; font-weight: 600; }
.footer-nav a { display: block; padding: .3rem 0; font-size: .95rem; color: #B7C1D1; transition: color .15s var(--ease); }
.footer-nav a:hover { color: #fff; }
.footer-base { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-block: 22px; border-top: 1px solid rgba(255,255,255,.08); font-size: .82rem; color: #74809A; }

/* ---------- reveal animation ---------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-visual { max-width: 460px; margin-inline: auto; }
  .lede { max-width: none; }
  .problem-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .price-for { min-height: 0; }
  .compliance-inner { grid-template-columns: 1fr; gap: 36px; }
  .faq-inner { grid-template-columns: 1fr; gap: 12px; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .nav-links, .header-actions .btn-sm { display: none; }
  .nav-toggle { display: flex; }
  .mobile-menu[data-open] { display: flex; }
  .problem-grid, .steps, .feature-grid, .footer-nav { grid-template-columns: 1fr; }
  .compliance-list { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-base { justify-content: flex-start; }
  .preview-float { left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .btn:hover, .feature:hover { transform: none; }
}
