:root {
  --blue: #2563a8;
  --blue-dark: #1a4a7a;
  --blue-soft: #d8e2f2;
  --text: #112347;
  --muted: #54637f;
  --border: rgba(124, 141, 171, 0.28);
  --card: rgba(255, 255, 255, 0.92);
  --bg: #e8eef7;
  --radius: 18px;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  font-family: var(--font-body);
  background: var(--bg);
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--blue); }
img { max-width: 100%; height: auto; display: block; }

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(900px 500px at 10% -10%, #f8fbff 0%, transparent 55%),
    radial-gradient(800px 480px at 90% 10%, rgba(37, 99, 168, 0.18) 0%, transparent 50%),
    linear-gradient(180deg, #f4f7fc 0%, var(--bg) 45%, #d5deed 100%);
}

.site-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 20px 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(26, 74, 122, 0.25);
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 18px;
  color: var(--blue-dark);
  line-height: 1.1;
}
.brand-sub {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-links a:not(.btn) {
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-sm { padding: 9px 12px; font-size: 12px; }
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); }
.btn-ghost {
  background: #fff;
  color: var(--blue);
  border-color: var(--border);
}

.hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 36px;
  align-items: center;
  min-height: calc(100vh - 72px);
}
.eyebrow {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 700;
  color: var(--blue);
}
.hero h1 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.08;
  font-weight: 400;
  color: var(--blue-dark);
}
.lede {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 17px;
  max-width: 36ch;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-ad {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.ad-stage {
  position: relative;
  width: min(100%, 420px);
  min-height: 560px;
  display: grid;
  place-items: center;
}
.beat-label {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--blue-dark);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  padding: 6px 12px;
  border-radius: 999px;
}

.device {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: scale(0.96) translateY(12px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
}
.device.is-active {
  opacity: 1;
  transform: scale(1) translateY(0);
  pointer-events: auto;
  z-index: 2;
}
.device-chrome {
  background: #0f1b33;
  border-radius: 28px;
  padding: 12px 10px 16px;
  box-shadow: 0 24px 50px rgba(17, 35, 71, 0.28);
  overflow: hidden;
}
.device-chrome .notch {
  display: block;
  width: 88px;
  height: 8px;
  border-radius: 999px;
  background: #1c2c4d;
  margin: 0 auto 10px;
}
.device-chrome img {
  width: 100%;
  border-radius: 18px;
  animation: ken 8s ease-in-out infinite alternate;
}
.desktop .device-chrome {
  border-radius: 14px;
  padding: 0;
  background: #1a2740;
}
.desktop-bar {
  display: flex;
  gap: 6px;
  padding: 10px 12px;
  background: #243552;
}
.desktop-bar span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7f90ae;
}
.desktop-bar span:first-child { background: #e57373; }
.desktop .device-chrome img {
  border-radius: 0;
  max-height: 520px;
  object-fit: cover;
  object-position: top;
}
.device-caption {
  margin: 10px 0 0;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

@keyframes ken {
  from { transform: scale(1); }
  to { transform: scale(1.04); }
}

@media (prefers-reduced-motion: reduce) {
  .device { transition: none; }
  .device-chrome img { animation: none; }
  html { scroll-behavior: auto; }
}

.ad-dots {
  display: flex;
  gap: 8px;
}
.ad-dots button {
  border: 1px solid var(--border);
  background: #fff;
  color: var(--muted);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}
.ad-dots button.is-active {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 56px 20px;
}
.section-alt {
  background: rgba(255, 255, 255, 0.45);
  border-block: 1px solid var(--border);
  max-width: none;
  padding-inline: max(20px, calc((100vw - 1120px) / 2 + 20px));
}
.section h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 400;
  color: var(--blue-dark);
}
.section-lede {
  margin: 0 0 28px;
  color: var(--muted);
  max-width: 56ch;
  font-size: 16px;
}

.pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.surface-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.surface-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 160px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  position: relative;
}
.surface-row.is-primary {
  border-color: rgba(37, 99, 168, 0.35);
  box-shadow: 0 16px 36px rgba(37, 99, 168, 0.12);
}
.surface-badge {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.surface-badge.muted { color: var(--muted); }
.surface-media {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f1b33;
  max-height: 180px;
}
.surface-media img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: top;
}
.surface-copy h3 {
  margin: 0 0 6px;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.surface-copy p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.surface-copy a { font-weight: 700; text-decoration: none; font-size: 13px; }
.tag {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--blue-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 3px 8px;
}
.logo-panel {
  display: grid;
  place-items: center;
  gap: 10px;
  min-height: 220px;
  background: linear-gradient(160deg, #1a4a7a, #2563a8 55%, #3b82c4);
  color: #fff;
  border: none;
}
.logo-panel p {
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.3px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-weight: 800;
  color: var(--blue-dark);
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}
.product-card h3 { margin: 12px 0 6px; font-size: 18px; }
.product-card p { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.product-card a { font-weight: 700; text-decoration: none; font-size: 13px; }
.product-card.wide {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
.thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0f1b33;
}
.phone-thumb img { width: 100%; max-height: 360px; object-fit: cover; object-position: top; }
.desktop-thumb img { width: 100%; max-height: 320px; object-fit: cover; object-position: top; }

.steps {
  margin: 0 0 24px;
  padding-left: 18px;
  color: var(--muted);
}
.steps li { margin-bottom: 10px; }
.steps strong { color: var(--blue-dark); letter-spacing: 0.06em; }
.deep-links { display: flex; flex-wrap: wrap; gap: 10px; }

.site-footer {
  max-width: 1120px;
  margin: 0 auto;
  padding: 28px 20px 48px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer a { font-weight: 700; text-decoration: none; }

/* Audience gate (apex) */
.page-gate .gate-main {
  max-width: 960px;
  margin: 0 auto;
  padding: 48px 20px 72px;
  min-height: calc(100vh - 160px);
}
.gate-eyebrow { margin-bottom: 12px; }
.gate-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1.08;
  max-width: 14ch;
}
.gate-lede {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 17px;
  max-width: 42ch;
}
.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.path-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 24px 22px;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  min-height: 280px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.path-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 168, 0.45);
  box-shadow: 0 22px 48px rgba(37, 99, 168, 0.16);
}
.path-specialty {
  background: linear-gradient(165deg, rgba(255,255,255,0.96), rgba(232, 240, 250, 0.95));
}
.path-referring {
  background: linear-gradient(165deg, rgba(255,255,255,0.96), rgba(244, 248, 252, 0.95));
}
.path-kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
}
.path-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 400;
  color: var(--blue-dark);
  line-height: 1.15;
}
.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  flex: 1;
}
.path-cta {
  margin-top: 8px;
  font-weight: 800;
  font-size: 14px;
  color: var(--blue);
}

.hero-single {
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.7fr);
}
.hero-mark {
  display: grid;
  place-items: center;
  gap: 14px;
  text-align: center;
  padding: 28px;
  border-radius: 24px;
  background: linear-gradient(160deg, #1a4a7a, #2563a8 55%, #3b82c4);
  color: #fff;
  box-shadow: 0 24px 50px rgba(17, 35, 71, 0.28);
}
.hero-mark p { margin: 0; font-size: 15px; opacity: 0.95; }
.hero-mark strong { font-weight: 800; letter-spacing: 0.04em; }

.callout {
  margin: 18px 0 0;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(37, 99, 168, 0.25);
  background: rgba(255, 255, 255, 0.75);
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 600;
  max-width: 42ch;
}
.bullet-board {
  margin: 0 0 22px;
  padding-left: 18px;
  color: var(--muted);
}
.bullet-board li { margin-bottom: 8px; }
.tiny { font-size: 12px; }
.muted { color: var(--muted); }

.page-specialty .site-nav,
.page-referring .site-nav {
  border-bottom: 1px solid transparent;
}
.page-specialty .brand-sub { color: var(--blue); }
.page-referring .brand-sub { color: var(--blue); }

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 16px;
  }
  .hero-copy { order: 1; }
  .hero-ad { order: 2; }
  .hero-mark { order: 2; min-height: 220px; }
  .ad-stage { min-height: 480px; }
  .pair { grid-template-columns: 1fr; }
  .path-grid { grid-template-columns: 1fr; }
  .surface-row {
    grid-template-columns: 1fr;
  }
  .surface-media img { height: 240px; }
  .product-card.wide { grid-template-columns: 1fr; }
  .gate-title { max-width: none; }
}
