:root {
  --ink: #0f172a;
  --muted: #667085;
  --soft: #f7f9fc;
  --line: #dbe3ee;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --teal: #0f766e;
  --teal-soft: #ecfdf5;
  --card: #ffffff;
  --navy: #0b1736;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.1);
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }

.container {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}
.section-pad { padding: 96px 0; }
.compact-pad { padding-top: 72px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(219, 227, 238, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
}
.nav-shell {
  min-height: 76px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.18rem;
}
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.2);
}
.nav-links {
  justify-self: center;
  display: flex;
  gap: 28px;
  align-items: center;
  color: #475467;
  font-size: 0.94rem;
  font-weight: 600;
}
.nav-links a:hover { color: var(--blue); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary {
  color: #fff;
  background: linear-gradient(180deg, #2f6df3, #1d4ed8);
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.24);
}
.button-primary:hover { box-shadow: 0 16px 34px rgba(37, 99, 235, 0.3); }
.button-secondary, .button-quiet {
  background: #fff;
  border-color: var(--line);
  color: #344054;
}
.button-secondary:hover, .button-quiet:hover { background: #f8fafc; }
.button-large { min-height: 52px; padding: 14px 22px; }
.button-light { background: #fff; color: #163a8a; box-shadow: none; }

.hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 5% 5%, rgba(37, 99, 235, 0.14), transparent 30%),
    radial-gradient(circle at 95% 15%, rgba(15, 118, 110, 0.12), transparent 30%),
    linear-gradient(180deg, #f8fbff 0%, #ffffff 85%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, 0.88fr);
  gap: 72px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 16px;
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.eyebrow.light { color: #bfdbfe; }
.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}
.hero h1 span { color: var(--blue); }
.hero-lead {
  max-width: 660px;
  margin: 28px 0 0;
  color: #566173;
  font-size: 1.12rem;
  line-height: 1.75;
}
.hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #475467;
  font-size: 0.86rem;
  font-weight: 600;
}
.hero-trust span::before { content: "✓"; margin-right: 7px; color: var(--teal); font-weight: 900; }

.product-preview {
  position: relative;
  padding: 28px;
  border-radius: 26px;
  color: #f8fafc;
  background:
    radial-gradient(circle at 80% 0%, rgba(37, 99, 235, 0.35), transparent 35%),
    linear-gradient(160deg, #0b1736, #102a63 70%, #1641a0);
  box-shadow: 0 38px 80px rgba(15, 23, 42, 0.25);
}
.product-preview::after {
  content: "";
  position: absolute;
  inset: 18px -18px -18px 18px;
  z-index: -1;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), rgba(15, 118, 110, 0.12));
  filter: blur(20px);
}
.preview-topline { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.preview-label { margin: 0 0 4px; color: #93c5fd; font-size: 0.7rem; letter-spacing: 0.12em; font-weight: 800; }
.preview-topline strong { font-size: 1.15rem; }
.sync-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 999px;
  background: rgba(255,255,255,0.1);
  font-size: 0.76rem;
  font-weight: 700;
}
.sync-chip i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 4px rgba(74,222,128,0.12); }
.preview-kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; margin: 28px 0; }
.preview-kpis article {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255,255,255,0.09);
  border-radius: 16px;
  background: rgba(255,255,255,0.09);
}
.preview-kpis span, .preview-list span { display: block; color: #c7d2e6; font-size: 0.76rem; margin-bottom: 7px; }
.preview-kpis strong { font-size: 1.45rem; }
.preview-list { border-top: 1px solid rgba(255,255,255,0.13); }
.preview-list div { display: flex; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,0.1); }
.preview-list div:last-child { border-bottom: 0; padding-bottom: 0; }
.preview-list span { margin: 0; }
.preview-list strong { text-align: right; font-size: 0.86rem; }
.preview-list .good { color: #86efac; }

.section-heading { max-width: 700px; }
.section-heading.centered { margin: 0 auto; text-align: center; }
.section-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}
.section-heading p:not(.eyebrow) { margin: 20px 0 0; color: var(--muted); line-height: 1.75; font-size: 1.02rem; }

.job-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 48px; }
.job-grid article, .resource-grid article {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15,23,42,0.05);
}
.job-number, .resource-grid article > span { color: var(--blue); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.09em; }
.job-grid h3, .resource-grid h3 { margin: 20px 0 8px; font-size: 1.08rem; }
.job-grid p, .resource-grid p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9rem; }

.products-section { background: var(--soft); }
.edition-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 44px; }
.edition-card {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 16px 48px rgba(15,23,42,0.06);
}
.edition-card.featured { border-color: #bfd2ff; background: linear-gradient(180deg, #ffffff, #f6f9ff); }
.edition-icon {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px;
  color: #fff; background: linear-gradient(135deg, var(--blue), #4f46e5); font-weight: 900;
}
.edition-icon.pharmacy { background: linear-gradient(135deg, var(--teal), #0ea5a4); }
.edition-kicker { margin: 24px 0 8px; color: var(--blue); font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; }
.edition-card h3 { margin: 0; font-size: 1.55rem; line-height: 1.3; letter-spacing: -0.025em; }
.edition-card ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; color: #475467; }
.edition-card li::before { content: "✓"; color: var(--teal); margin-right: 10px; font-weight: 900; }
.edition-card a { color: var(--blue); font-weight: 800; }

.how-grid { display: grid; grid-template-columns: 0.82fr 1fr; gap: 70px; align-items: start; }
.sticky-heading { position: sticky; top: 110px; }
.flow-stack { display: grid; gap: 14px; }
.flow-card { display: grid; grid-template-columns: 52px 1fr; gap: 18px; align-items: start; padding: 24px; border: 1px solid var(--line); border-radius: 18px; }
.flow-card > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: #eff6ff; color: var(--blue); font-weight: 900; }
.flow-card h3 { margin: 2px 0 6px; font-size: 1.02rem; }
.flow-card p { margin: 0; color: var(--muted); line-height: 1.65; font-size: 0.9rem; }

.phone-section { background: linear-gradient(180deg, #f8fafc, #fff); }
.phone-grid { display: grid; grid-template-columns: 0.8fr 1fr; gap: 80px; align-items: center; }
.phone-mock {
  width: min(330px, 100%);
  margin: 0 auto;
  padding: 12px;
  border: 7px solid #111827;
  border-radius: 38px;
  background: #111827;
  box-shadow: 0 36px 70px rgba(15,23,42,0.22);
}
.phone-speaker { width: 80px; height: 6px; border-radius: 20px; background: #475569; margin: 0 auto 10px; }
.phone-screen { overflow: hidden; min-height: 560px; border-radius: 25px; padding: 22px 18px 72px; background: linear-gradient(180deg,#f8fbff,#fff); position: relative; }
.phone-head { display: flex; justify-content: space-between; align-items: center; font-size: 0.78rem; color: #64748b; }
.phone-head span { color: var(--blue); font-weight: 900; letter-spacing: 0.1em; }
.phone-sales { margin-top: 38px; font-size: 2.15rem; font-weight: 900; letter-spacing: -0.04em; }
.phone-sales small { display: block; margin-top: 2px; color: #64748b; font-size: 0.85rem; font-weight: 500; letter-spacing: 0; }
.phone-two { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; margin-top: 20px; }
.phone-two div { padding: 13px; border-radius: 12px; background: #f1f5f9; }
.phone-two span, .phone-row span { display: block; color: #64748b; font-size: 0.7rem; margin-bottom: 5px; }
.phone-two strong { font-size: 0.86rem; }
.phone-row { display: flex; justify-content: space-between; align-items: center; padding: 17px 0; border-bottom: 1px solid #e2e8f0; }
.phone-row span { margin: 0; }
.phone-nav { position: absolute; left: 10px; right: 10px; bottom: 10px; display: grid; grid-template-columns: repeat(4,1fr); padding: 12px 6px; border-radius: 16px; background: #fff; box-shadow: 0 9px 30px rgba(15,23,42,0.12); font-size: 0.68rem; font-weight: 700; text-align: center; }
.check-list { display: grid; gap: 12px; margin: 26px 0; color: #344054; font-weight: 600; }
.check-list span::first-letter { color: var(--teal); }
.text-link { color: var(--blue); font-weight: 800; }

.pilot-section { padding-top: 40px; }
.pilot-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding: 48px;
  border-radius: 26px;
  color: #fff;
  background: linear-gradient(135deg, #0b1736, #153c92 72%, #0f766e);
  box-shadow: var(--shadow);
}
.pilot-banner h2 { max-width: 760px; margin: 0; font-size: clamp(2rem,3vw,3rem); letter-spacing: -0.04em; }
.pilot-banner p:not(.eyebrow) { max-width: 760px; margin: 16px 0 0; color: #dbeafe; line-height: 1.7; }

.resources-section { background: #fff; }
.resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 42px; }

.contact-section { background: var(--soft); }
.contact-grid { display: grid; grid-template-columns: 0.85fr 1fr; gap: 70px; align-items: start; }
.pilot-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 18px 48px rgba(15,23,42,0.07);
}
.pilot-form label { display: grid; gap: 8px; color: #344054; font-size: 0.84rem; font-weight: 700; }
.pilot-form label span { color: #98a2b3; font-weight: 500; }
.pilot-form input, .pilot-form select {
  width: 100%; min-height: 48px; padding: 11px 13px; border: 1px solid #d0d9e6; border-radius: 11px; color: var(--ink); background: #fff;
}
.pilot-form input:focus, .pilot-form select:focus { outline: none; border-color: #79a1ff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }
.pilot-form .wide { grid-column: 1 / -1; }
.pilot-form button { border: 0; cursor: pointer; }
.pilot-form button:disabled { cursor: wait; opacity: 0.72; }
.form-honeypot { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { min-height: 1.4em; margin: 0; font-size: 0.9rem; font-weight: 700; }
.form-status-error { color: #b42318; }
.form-status-info { color: #175cd3; }
.form-note { margin: 0; color: var(--muted); font-size: 0.82rem; text-align: center; }
.form-note a { color: var(--blue); font-weight: 700; }

.site-footer { padding: 56px 0; color: #cbd5e1; background: #0b1220; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3,1fr); gap: 40px; }
.footer-grid > div { display: grid; align-content: start; gap: 11px; }
.footer-grid strong { color: #fff; margin-bottom: 5px; }
.footer-grid a:not(.brand) { color: #cbd5e1; font-size: 0.88rem; }
.footer-grid a:not(.brand):hover { color: #fff; }
.footer-grid p, .footer-grid span { margin: 0; color: #94a3b8; font-size: 0.86rem; line-height: 1.6; }
.footer-brand { color: #fff; width: fit-content; }

.thanks-page { min-height: 100vh; display: grid; place-items: center; padding: 30px; background: linear-gradient(180deg,#f5f9ff,#fff); }
.thanks-card { max-width: 620px; padding: 40px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; text-align: center; box-shadow: var(--shadow); }
.thanks-card .brand { justify-content: center; margin-bottom: 24px; }
.thanks-card h1 { margin: 0; font-size: clamp(2rem,4vw,3.1rem); letter-spacing: -0.04em; }
.thanks-card p { color: var(--muted); line-height: 1.75; }

@media (max-width: 980px) {
  .nav-shell { grid-template-columns: auto auto; justify-content: space-between; }
  .nav-toggle {
    display: grid; gap: 4px; width: 42px; height: 42px; place-content: center; border: 1px solid var(--line); border-radius: 11px; background: #fff;
  }
  .nav-toggle span { width: 19px; height: 2px; background: var(--ink); border-radius: 99px; }
  .nav-links, .nav-actions {
    display: none;
    grid-column: 1 / -1;
    width: 100%;
  }
  .site-header.nav-open .nav-links, .site-header.nav-open .nav-actions { display: flex; }
  .site-header.nav-open .nav-links { flex-direction: column; align-items: flex-start; justify-self: stretch; gap: 8px; padding-top: 8px; }
  .site-header.nav-open .nav-links a { width: 100%; padding: 10px 0; border-bottom: 1px solid #eef2f6; }
  .site-header.nav-open .nav-actions { padding: 8px 0 16px; }
  .site-header.nav-open .nav-actions .button { flex: 1; }
  .hero-grid, .how-grid, .phone-grid, .contact-grid { grid-template-columns: 1fr; gap: 52px; }
  .hero-grid { grid-template-columns: 1fr; }
  .product-preview { max-width: 620px; }
  .job-grid, .resource-grid { grid-template-columns: repeat(2,1fr); }
  .sticky-heading { position: static; }
  .pilot-banner { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 680px) {
  .container { width: min(100% - 28px, 1180px); }
  .section-pad { padding: 70px 0; }
  .compact-pad { padding-top: 48px; }
  .hero { padding-top: 64px; }
  .hero h1 { font-size: clamp(2.55rem, 13vw, 4rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-trust { display: grid; gap: 10px; }
  .product-preview { padding: 20px; border-radius: 20px; }
  .preview-kpis { grid-template-columns: 1fr; }
  .preview-kpis article { min-height: auto; }
  .preview-list div { align-items: flex-start; flex-direction: column; gap: 3px; }
  .preview-list strong { text-align: left; }
  .job-grid, .resource-grid, .edition-grid { grid-template-columns: 1fr; }
  .edition-card { padding: 26px; }
  .flow-card { grid-template-columns: 44px 1fr; padding: 18px; }
  .phone-grid { gap: 46px; }
  .pilot-banner { padding: 30px 24px; }
  .pilot-form { grid-template-columns: 1fr; padding: 22px; }
  .pilot-form .wide { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .nav-actions { flex-direction: column; }
  .nav-actions .button { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
}
