/* ──────────────────────────────────────────────────────────────────────────
   Commercial Lead Hub: shared stylesheet
   Loaded identically on every page. Carries the full light + dark theme
   token sets, the shared header/footer chrome, and every reusable component.
   Colors are driven entirely by CSS variables so dark mode is a token flip.
   House palette: navy #14457a + accent #1d6fb8 (neutral umbrella brand).
   ────────────────────────────────────────────────────────────────────────── */

:root {
  color-scheme: light;

  /* Surfaces */
  --bg: #ffffff;
  --bg-alt: #f5f7fa;
  --surface-2: #eef3f9;
  --card: #ffffff;
  --card-head: #f5f7fa;

  /* Text */
  --ink: #112233;
  --ink-soft: #344a5e;
  --muted: #54636f;
  --muted-soft: #7a8794;

  /* Lines */
  --line: #e2e8f0;
  --line-strong: #cdd8e3;

  /* Brand */
  --navy: #14457a;
  --navy-dark: #0d2f52;
  --accent: #14457a;
  --accent-2: #1d6fb8;
  --sky: #9cc4ea;
  --on-navy: #ffffff;
  --on-navy-soft: #c3d3e4;

  /* Status */
  --ok: #157a4f;
  --ok-bg: #e7f5ee;
  --warn: #b45309;
  --warn-bg: #fef3e2;

  /* Chrome */
  --header-bg: rgba(255, 255, 255, 0.92);
  --shadow-card: 0 10px 30px rgba(17, 34, 51, 0.07);
  --shadow-lift: 0 12px 28px rgba(17, 34, 51, 0.1);
}

html[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0d1520;
  --bg-alt: #141d29;
  --surface-2: #18222f;
  --card: #182230;
  --card-head: #1e2937;

  --ink: #e8eef5;
  --ink-soft: #c2cedb;
  --muted: #9aabbb;
  --muted-soft: #76889a;

  --line: #283643;
  --line-strong: #37485a;

  --navy: #1b4f86;
  --navy-dark: #11355c;
  --accent: #6fa8de;
  --accent-2: #6fb0ec;
  --sky: #9cc4ea;
  --on-navy: #f3f8ff;
  --on-navy-soft: #b9cadf;

  --ok: #58d39a;
  --ok-bg: #122c20;
  --warn: #f0b24a;
  --warn-bg: #322411;

  --header-bg: rgba(13, 21, 32, 0.9);
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-lift: 0 12px 28px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

.serif { font-family: "IBM Plex Serif", Georgia, serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.13em; text-transform: uppercase; color: var(--accent-2); }

/* Accessible focus everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: 8px;
  top: -52px;
  z-index: 200;
  background: var(--navy);
  color: var(--on-navy);
  padding: 9px 16px;
  border-radius: 0 0 8px 8px;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}
.skip-link:focus { top: 0; }

/* ── Buttons ───────────────────────────────────────────── */
.btn { font-family: inherit; font-weight: 600; font-size: 15px; cursor: pointer; border-radius: 8px; padding: 11px 20px; border: 1px solid var(--navy); background: var(--navy); color: var(--on-navy); display: inline-block; transition: background .15s, border-color .15s, transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { background: var(--navy-dark); border-color: var(--navy-dark); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(20, 69, 122, 0.25); }
.btn:active { transform: translateY(0); filter: brightness(.97); }
.btn.outline { background: var(--card); color: var(--accent-2); border-color: var(--line-strong); }
.btn.outline:hover { background: var(--bg-alt); border-color: var(--line-strong); box-shadow: 0 6px 16px rgba(17, 34, 51, 0.08); }
.btn.sm { padding: 9px 16px; font-size: 14px; }
.btn.light { background: #fff; color: var(--navy); border-color: #fff; }
.btn.light:hover { background: #eaf2fb; border-color: #eaf2fb; }

/* ── Header ────────────────────────────────────────────── */
.header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(8px); -webkit-backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; gap: 16px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; color: var(--ink); }
.logo .mark { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.logo .hub { color: var(--accent-2); }

.nav-right { display: flex; align-items: center; gap: 22px; }
.navlinks { display: flex; align-items: center; gap: 26px; font-size: 15px; }
.navlinks a { color: var(--muted); font-weight: 500; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--ink); }
.navlinks a[aria-current="page"] { font-weight: 600; }

/* Theme toggle button (header) */
.theme-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 9px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--accent-2); cursor: pointer; flex-shrink: 0;
  transition: background .15s, color .15s, border-color .15s;
}
.theme-toggle:hover { background: var(--bg-alt); }
.theme-toggle .moon { display: none; }
html[data-theme="dark"] .theme-toggle .sun { display: none; }
html[data-theme="dark"] .theme-toggle .moon { display: inline; }

/* Hamburger (mobile only) */
.hamburger {
  display: none; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  color: var(--accent-2); font-family: inherit; font-weight: 600; font-size: 13.5px;
  padding: 8px 13px; border-radius: 9px; cursor: pointer;
}
.hamburger .bars { display: inline-grid; gap: 3.5px; width: 16px; }
.hamburger .bars span { height: 2px; background: currentColor; border-radius: 2px; }

/* ── Mobile drawer ─────────────────────────────────────── */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 80; pointer-events: none;
}
.drawer-overlay.open { pointer-events: auto; }
.drawer-backdrop {
  position: absolute; inset: 0; background: rgba(8, 22, 38, 0.55);
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
  opacity: 0; transition: opacity 260ms ease;
}
.drawer-overlay.open .drawer-backdrop { opacity: 1; }
.drawer {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(360px, 88vw);
  background: linear-gradient(180deg, #14457a 0%, #0d2f52 100%);
  color: #eaf2fb; box-shadow: -24px 0 60px rgba(8, 22, 38, 0.45);
  transform: translateX(105%); transition: transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer-overlay.open .drawer { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px; border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  position: sticky; top: 0; background: #14457a;
}
.drawer-head .logo { color: #fff; font-size: 18px; }
.drawer-head .hub { color: #9cc4ea; }
.drawer-close {
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; width: 34px; height: 34px; border-radius: 8px; font-size: 17px;
  line-height: 1; cursor: pointer;
}
.drawer-nav { padding: 14px 14px 4px; flex: 1; }
.drawer-nav .grp { font-family: "IBM Plex Serif", Georgia, serif; font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #7fa9d6; padding: 12px 10px 6px; }
.drawer-nav a {
  display: block; color: #d6e4f4; border-left: 3px solid transparent;
  border-radius: 8px; padding: 9px 11px; margin-bottom: 2px;
  font-size: 14.5px; font-weight: 600; transition: background 140ms ease, color 140ms ease;
}
.drawer-nav a:hover { background: rgba(255, 255, 255, 0.07); }
.drawer-nav a[aria-current="page"] { color: #fff; background: rgba(156, 196, 234, 0.16); border-left-color: #9cc4ea; }
.drawer-nav a .d { display: block; font-size: 12px; font-weight: 400; color: #8fb2d8; margin-top: 1px; }
.drawer-foot { padding: 14px 22px 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.drawer-foot .cta {
  display: block; text-align: center; background: #9cc4ea; color: #0d2f52;
  font-weight: 700; font-size: 14.5px; padding: 11px 16px; border-radius: 9px;
}
.drawer-theme {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px;
  margin-bottom: 14px; background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 10px;
}
.drawer-theme button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 8px 10px; border-radius: 7px; border: none; cursor: pointer;
  font-family: inherit; font-weight: 600; font-size: 13px;
  background: transparent; color: #d6e4f4; transition: background 140ms ease, color 140ms ease;
}
.drawer-theme button[aria-checked="true"] { background: #9cc4ea; color: #0d2f52; }

/* ── Hero ──────────────────────────────────────────────── */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center; padding: 66px 0 58px; }
.h1 { font-size: clamp(34px, 4.6vw, 52px); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; margin: 16px 0 18px; color: var(--ink); }
.lead { font-size: 18px; color: var(--ink-soft); max-width: 540px; }
.cta-row { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.microtrust { margin-top: 18px; font-size: 13.5px; color: var(--ink-soft); }
.microtrust b { color: var(--ink); font-weight: 600; }

/* ── Card (opportunity feed) ───────────────────────────── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow-card); overflow: hidden; }
.card-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--card-head); border-bottom: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--ink-soft); }
.card-head .ex { background: var(--surface-2); color: var(--accent-2); padding: 2px 8px; border-radius: 5px; font-size: 11px; letter-spacing: 0.04em; text-transform: uppercase; }
.row { padding: 15px 16px; border-bottom: 1px solid var(--line); }
.row:last-child { border-bottom: none; }
.row-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.row-name { font-weight: 600; font-size: 15.5px; color: var(--ink); }
.row-meta { font-size: 13px; color: var(--ink-soft); margin-top: 2px; }
.pill { font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 20px; white-space: nowrap; }
.pill.new { background: var(--ok-bg); color: var(--ok); }
.pill.bid { background: var(--warn-bg); color: var(--warn); }
.pill.trade { background: var(--surface-2); color: var(--accent-2); }
.row-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 11px; }
.src { display: inline-block; font-size: 12px; color: var(--ink-soft); background: var(--bg-alt); border: 1px solid var(--line); padding: 3px 9px; border-radius: 6px; }
.src .ulink { color: var(--accent-2); font-weight: 600; }
.src .ulink:hover { text-decoration: underline; }
.est { font-size: 12px; color: var(--ink); font-weight: 600; }
.est span { color: var(--ink-soft); font-weight: 500; }

/* ── Sections ──────────────────────────────────────────── */
.section { padding: 64px 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.015em; margin: 10px 0 14px; color: var(--ink); }
.h2.center { text-align: center; }
.sub-center { text-align: center; color: var(--ink-soft); font-size: 17px; max-width: 680px; margin: 0 auto 44px; }

/* Proof strip */
.proof { display: flex; flex-wrap: wrap; gap: 10px 36px; justify-content: center; padding: 18px 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof span { font-size: 14.5px; color: var(--ink-soft); }
.proof b { color: var(--ink); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step .n { width: 34px; height: 34px; border-radius: 8px; background: var(--navy); color: var(--on-navy); display: grid; place-items: center; font-weight: 600; font-size: 15px; margin-bottom: 14px; }
.step h3 { font-size: 18.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.step p { font-size: 15px; color: var(--ink-soft); }

/* Benefits / generic feature grid */
.benefits { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 8px; }
.benefit { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 24px; transition: transform .15s, box-shadow .15s; }
.benefit:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.benefit .ic { width: 38px; height: 38px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; margin-bottom: 14px; }
.benefit .ic svg path, .benefit .ic svg circle { stroke: var(--accent-2); }
.benefit h3 { font-size: 17.5px; font-weight: 600; margin-bottom: 7px; color: var(--ink); }
.benefit p { font-size: 14.5px; color: var(--ink-soft); }

/* Trade chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 820px; margin: 0 auto; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 10px 16px; font-size: 14.5px; font-weight: 500; color: var(--ink); cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease; }
.chip:hover, .chip:focus-visible { background: var(--accent-2); color: #fff; border-color: var(--accent-2); outline: none; }
.chip:hover .chip-state, .chip:focus-visible .chip-state { color: rgba(255, 255, 255, 0.85); }
.chip .chip-state { font-size: 11px; font-weight: 600; color: var(--muted-soft); text-transform: uppercase; letter-spacing: 0.04em; }
.chip .chip-state.live { color: var(--ok); }

/* Pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 28px 24px; display: flex; flex-direction: column; }
.price.feature { border: 2px solid var(--navy); box-shadow: 0 14px 40px rgba(20, 69, 122, 0.13); position: relative; }
.price .badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--navy); color: var(--on-navy); font-size: 12px; font-weight: 600; padding: 4px 12px; border-radius: 20px; white-space: nowrap; }
.price .tier { font-weight: 600; font-size: 18px; color: var(--ink); }
.price .desc { font-size: 13px; color: var(--ink-soft); margin: 6px 0 16px; min-height: 54px; }
.price .amt { font-size: 34px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.price .amt span { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.price ul { list-style: none; margin: 16px 0 20px; }
.price li { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); padding: 6px 0; }
.price li svg { flex-shrink: 0; margin-top: 3px; }
.price .btn { width: 100%; margin-top: auto; text-align: center; }
.nonex { text-align: center; max-width: 660px; margin: 0 auto 36px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 16px 22px; font-size: 14.5px; color: var(--ink-soft); }
.nonex b { color: var(--ink); font-weight: 600; }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; }
details.faq-item { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: var(--card); overflow: hidden; }
details.faq-item summary { list-style: none; font-size: 16px; font-weight: 600; color: var(--ink); padding: 18px 20px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary .ind { font-size: 22px; color: var(--accent-2); font-weight: 400; line-height: 1; transition: transform .2s; }
details.faq-item[open] summary .ind { transform: rotate(45deg); }
details.faq-item .faq-a { padding: 0 20px 18px; font-size: 15px; color: var(--ink-soft); }

/* Generic prose for content pages */
.prose { max-width: 760px; margin: 0 auto; }
.prose p { font-size: 16.5px; color: var(--ink-soft); margin-bottom: 18px; }
.prose h3 { font-size: 21px; font-weight: 600; color: var(--ink); margin: 36px 0 12px; }
.prose ul { margin: 0 0 18px 0; padding-left: 0; list-style: none; }
.prose li { position: relative; padding-left: 26px; margin-bottom: 11px; font-size: 16px; color: var(--ink-soft); }
.prose li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 2px; background: var(--accent-2); }

/* Closing CTA band */
.closing { background: var(--navy); color: var(--on-navy); padding: 64px 0; text-align: center; }
.closing .eyebrow { color: var(--sky); }
.closing h2 { color: var(--on-navy); }
.closing p { color: var(--on-navy-soft); font-size: 17.5px; max-width: 640px; margin: 0 auto; line-height: 1.6; }
.closing .cta-row { justify-content: center; }
.closing .note { font-size: 13.5px; color: var(--sky); margin-top: 16px; }
.closing .btn.outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.closing .btn.outline:hover { background: rgba(255, 255, 255, 0.1); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 30px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; color: var(--ink-soft); font-size: 13.5px; }
.footer .logo { font-size: 17px; color: var(--ink); }
.footer .footlinks { text-align: right; }
.footer .footlinks a { color: var(--ink-soft); }
.footer .footlinks a:hover { color: var(--accent-2); text-decoration: underline; }

/* Page hero (interior pages) */
.page-hero { padding: 58px 0 34px; }
.page-hero .h1 { font-size: clamp(30px, 4vw, 44px); margin: 14px 0 16px; }
.page-hero .lead { max-width: 720px; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1024px) { .prices { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; } }
@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding: 44px 0; }
  .steps, .benefits { grid-template-columns: 1fr; }
  .navlinks { display: none; }
  .hamburger { display: inline-flex; }
}
@media (max-width: 560px) {
  .nav { padding: 12px 0; }
  .wrap { padding: 0 18px; }
}

/* Motion */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: no-preference) {
  .hero > div:first-child > * { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
  .hero > div:first-child > *:nth-child(2) { animation-delay: .07s; }
  .hero > div:first-child > *:nth-child(3) { animation-delay: .14s; }
  .hero > div:first-child > *:nth-child(4) { animation-delay: .21s; }
  .hero > div:first-child > *:nth-child(5) { animation-delay: .28s; }
  .hero .card { animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) .16s backwards; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
