/* =========================================================================
   Phoenix Leads Network — site stylesheet
   Layout concept: navy "signal" bands for high-impact sections alternating
   with white / light-gray reading bands; a lead-record motif (mono field
   labels) runs through eyebrows, chips and the sample record.
   ========================================================================= */

/* Self-hosted fonts (SIL Open Font License, see assets/fonts) */
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/plus-jakarta-sans-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  /* Brand palette (from brand brief) */
  --navy: #0B1220;
  --slate: #111C2E;
  --slate-2: #172540;
  --blue: #3478F6;
  --blue-deep: #1F5FD6;
  --cyan: #36D6E7;
  --white: #FFFFFF;
  /* Logo colours (from the official artwork) — used for the wordmark and flame accents only */
  --ember: #F36706;
  --ember-light: #F9A21B;
  --logo-navy: #012B5A;
  --gray: #F4F7FB;
  --ink: #182235;
  --muted: #69758A;

  /* Derived neutrals (blue-biased) */
  --line: #E1E8F2;
  --line-strong: #CBD6E6;
  --line-dark: rgba(150, 180, 230, 0.16);
  --on-dark: #E8EEF8;
  --on-dark-muted: #9AA8BF;

  /* Semantic (status chips only) */
  --ok: #14805E;
  --ok-bg: #E4F5EE;
  --warn: #8A5A00;
  --warn-bg: #FFF4DC;

  /* Type */
  --font-display: "Plus Jakarta Sans", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --fs-xs: 0.78rem;
  --fs-sm: 0.9rem;
  --fs-base: 1.0625rem;
  --fs-lg: 1.2rem;
  --fs-h4: 1.15rem;
  --fs-h3: 1.35rem;
  --fs-h2: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem);
  --fs-h1: clamp(2.2rem, 1.3rem + 3.6vw, 4rem);

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.05), 0 8px 24px -12px rgba(11, 18, 32, 0.14);
  --gutter: 20px;
  --maxw: 1180px;
  --header-h: 72px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
figure { margin: 0; }
img { height: auto; display: block; }
a { color: var(--blue-deep); text-underline-offset: 3px; }
a:hover { color: var(--blue); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: inherit;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: var(--fs-h2); font-weight: 800; letter-spacing: -0.03em; }
h3 { font-size: var(--fs-h3); font-weight: 700; }
h4 { font-size: var(--fs-h4); font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding-left: 1.2em; }
li + li { margin-top: 0.35em; }
strong { font-weight: 700; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--white); color: var(--navy); padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { top: 12px; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0; padding: 0; margin: -1px;
}

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: rgba(11, 18, 32, 0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line-dark);
  color: var(--on-dark);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; flex-shrink: 0; }
.brand:hover { color: var(--white); }
.brand-symbol { width: 48px; height: 48px; flex-shrink: 0; object-fit: contain; }
.brand-name { font-family: var(--font-display); font-weight: 800; font-size: 1.22rem; letter-spacing: 0.02em; line-height: 1; text-transform: uppercase; color: var(--white); }
.brand-name span { display: block; font-weight: 700; font-size: 0.6rem; letter-spacing: 0.27em; color: var(--ember); margin-top: 5px; }

.primary-nav { margin-left: auto; }
.primary-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }
.primary-nav li + li { margin-top: 0; }
.primary-nav a {
  display: block; padding: 8px 11px; border-radius: 8px;
  color: var(--on-dark-muted); text-decoration: none; font-weight: 600; font-size: 0.93rem;
}
.primary-nav a:hover { color: var(--white); background: rgba(255, 255, 255, 0.06); }
.primary-nav a[aria-current="page"] { color: var(--white); box-shadow: inset 0 -2px 0 var(--cyan); border-radius: 0; }
.header-ctas { display: flex; gap: 10px; align-items: center; }
.nav-toggle {
  display: none; margin-left: auto; background: transparent; border: 1px solid var(--line-dark);
  color: var(--white); border-radius: 10px; width: 44px; height: 44px; cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 22px; height: 22px; }
.mobile-panel { display: none; }

@media (max-width: 1120px) {
  .primary-nav a { padding: 8px 8px; font-size: 0.88rem; }
  .header-ctas .btn--ghost-dark { display: none; }
}
@media (max-width: 960px) {
  .primary-nav, .header-ctas { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-panel { border-top: 1px solid var(--line-dark); padding-block: 12px 20px; }
  .mobile-panel:not([hidden]) { display: block; }
  .mobile-panel ul { list-style: none; padding: 0; margin: 0 0 14px; }
  .mobile-panel li + li { margin-top: 0; }
  .mobile-panel a.m-link {
    display: block; padding: 12px 4px; color: var(--on-dark); text-decoration: none; font-weight: 600;
    border-bottom: 1px solid var(--line-dark);
  }
  .mobile-panel a.m-link[aria-current="page"] { color: var(--cyan); }
  .mobile-panel .btn-row { display: grid; gap: 10px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px; border-radius: 10px;
  font-family: var(--font-display); font-weight: 700; font-size: 0.97rem; letter-spacing: -0.005em;
  text-decoration: none; border: 1.5px solid transparent; cursor: pointer; line-height: 1.2;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--blue); color: var(--white); }
.btn--primary:hover { background: var(--blue-deep); color: var(--white); }
.btn--ghost-dark { border-color: rgba(232, 238, 248, 0.32); color: var(--white); background: transparent; }
.btn--ghost-dark:hover { border-color: var(--cyan); color: var(--white); background: rgba(54, 214, 231, 0.08); }
.btn--ghost { border-color: var(--line-strong); color: var(--ink); background: var(--white); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue-deep); }
.btn--sm { padding: 9px 15px; min-height: 40px; font-size: 0.9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
@media (prefers-reduced-motion: no-preference) { .btn:hover { transform: translateY(-1px); } }

.text-link { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.text-link::after { content: "→"; transition: transform .15s ease; }
.text-link:hover::after { transform: translateX(3px); }

/* ---------- Sections ---------- */
.section { padding-block: clamp(64px, 8vw, 104px); }
.section--tight { padding-block: clamp(44px, 6vw, 72px); }
.section--gray { background: var(--gray); }
.section--navy { background: var(--navy); color: var(--on-dark); }
.section--slate { background: var(--slate); color: var(--on-dark); }
.section--navy h2, .section--navy h3, .section--slate h2, .section--slate h3 { color: var(--white); }

.section-head { display: grid; gap: 14px; max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.section-head p { color: var(--muted); font-size: var(--fs-lg); line-height: 1.6; }
.section--navy .section-head p, .section--slate .section-head p { color: var(--on-dark-muted); }

/* Eyebrow styled like a record field label */
.eyebrow {
  font-family: var(--font-mono); font-size: var(--fs-xs); font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue-deep);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; display: inline-block; }
.section--navy .eyebrow, .section--slate .eyebrow, .page-hero .eyebrow, .hero .eyebrow { color: var(--cyan); }

.lead { font-size: var(--fs-lg); color: var(--muted); line-height: 1.6; max-width: 62ch; }
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.2rem; margin-top: 1.5em; }
.prose ul li, .prose ol li { padding-left: 2px; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark);
  padding-block: clamp(56px, 8vw, 110px) clamp(56px, 7vw, 96px);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 85% 20%, rgba(52, 120, 246, 0.30), transparent 70%),
    radial-gradient(40% 50% at 10% 100%, rgba(54, 214, 231, 0.12), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(150, 180, 230, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(150, 180, 230, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 1.2rem + 3.1vw, 3.45rem); }
.hero h1 .line { display: block; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--ember-light), var(--ember) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--on-dark-muted); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.hero-points li { margin: 0; padding-top: 14px; border-top: 1px solid var(--line-dark); font-weight: 700; font-family: var(--font-display); color: var(--white); font-size: 0.98rem; line-height: 1.3; }
.hero-points li span { display: block; font-family: var(--font-mono); font-weight: 400; font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); margin-bottom: 6px; }
.hero-note { font-size: var(--fs-xs); color: var(--on-dark-muted); }

.flow-card {
  background: linear-gradient(180deg, rgba(23, 37, 64, 0.85), rgba(17, 28, 46, 0.85));
  border: 1px solid var(--line-dark); border-radius: 18px; padding: 18px 18px 14px;
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.6);
  min-width: 0;
}
.flow-card__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.flow-card__title { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-muted); }
.flow-svg { width: 100%; height: auto; display: block; }
.flow-svg text { font-family: var(--font-body); }
.flow-line { fill: none; stroke: rgba(54, 214, 231, 0.55); stroke-width: 1.5; stroke-dasharray: 4 6; }
@media (prefers-reduced-motion: no-preference) {
  .flow-line { animation: flow 2.4s linear infinite; }
}
@keyframes flow { to { stroke-dashoffset: -40; } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-points { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative; overflow: hidden; background: var(--navy); color: var(--on-dark);
  padding-block: clamp(48px, 7vw, 88px) clamp(44px, 6vw, 72px);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(55% 90% at 100% 0%, rgba(52, 120, 246, 0.26), transparent 70%);
}
.page-hero .container { position: relative; display: grid; gap: 18px; }
.page-hero h1 { color: var(--white); font-size: clamp(2rem, 1.3rem + 2.8vw, 3.3rem); max-width: 20ch; }
.page-hero .lead { color: var(--on-dark-muted); }
.crumbs { font-size: var(--fs-sm); color: var(--on-dark-muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li { margin-top: 0; }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { color: var(--on-dark-muted); text-decoration: none; }
.crumbs a:hover { color: var(--white); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid--2, .grid--3, .grid--4 { grid-template-columns: minmax(0, 1fr); } }

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; gap: 14px; min-width: 0;
}
.card--raised { box-shadow: var(--shadow); }
.card h3 { font-size: 1.22rem; }
.card p { color: var(--muted); }
.card .card-foot { margin-top: auto; padding-top: 6px; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.section--navy .card, .section--slate .card { background: var(--slate); border-color: var(--line-dark); }
.section--slate .card { background: var(--slate-2); }
.section--navy .card p, .section--slate .card p { color: var(--on-dark-muted); }

.icon {
  width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(52, 120, 246, 0.12), rgba(54, 214, 231, 0.16));
  color: var(--blue-deep); flex-shrink: 0;
}
.icon svg { width: 22px; height: 22px; }
.section--navy .icon, .section--slate .icon { background: rgba(54, 214, 231, 0.1); color: var(--cyan); }

.meta-list { display: grid; gap: 0; margin: 0; border-top: 1px solid var(--line); }
.meta-list > div { display: grid; grid-template-columns: 9.5rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.meta-list dt { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.meta-list dd { margin: 0; font-size: 0.95rem; color: var(--ink); }
@media (max-width: 480px) { .meta-list > div { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* Status chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase;
  border: 1px solid var(--line-strong); color: var(--muted); background: var(--white); white-space: nowrap;
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip--prospective { color: var(--warn); background: var(--warn-bg); border-color: transparent; }
.chip--available { color: var(--ok); background: var(--ok-bg); border-color: transparent; }
.chip--setup { color: var(--blue-deep); background: #EAF1FE; border-color: transparent; }
.chip--na { color: var(--muted); background: var(--gray); border-color: var(--line); }
.chip--illustrative { color: var(--cyan); background: rgba(54, 214, 231, 0.1); border-color: rgba(54, 214, 231, 0.3); }
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }

/* ---------- Steps (real sequence) ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; counter-reset: step; position: relative; }
.steps > li { margin: 0; counter-increment: step; position: relative; padding-top: 58px; min-width: 0; }
.steps > li::before {
  content: counter(step); position: absolute; top: 0; left: 0;
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: var(--white);
  background: var(--blue); box-shadow: 0 0 0 6px rgba(52, 120, 246, 0.16);
}
.steps > li::after {
  content: ""; position: absolute; top: 21px; left: 56px; right: -12px; height: 2px;
  background: linear-gradient(90deg, var(--blue), rgba(52, 120, 246, 0.1));
}
.steps > li:last-child::after { display: none; }
.steps h3 { font-size: 1.15rem; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 0.97rem; }
.section--navy .steps p, .section--slate .steps p { color: var(--on-dark-muted); }
.steps .step-note { margin-top: 10px; font-size: var(--fs-sm); padding: 10px 12px; border-radius: 8px; background: var(--gray); color: var(--muted); }
.section--navy .steps .step-note { background: var(--slate); }
@media (max-width: 960px) {
  .steps { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .steps > li { padding: 0 0 32px 64px; }
  .steps > li::after { top: 50px; bottom: 6px; left: 20px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--blue), rgba(52, 120, 246, 0.1)); }
  .steps > li:last-child { padding-bottom: 0; }
}

/* Onboarding checklist (sequence, compact) */
.onboard { list-style: none; padding: 0; margin: 0; counter-reset: ob; display: grid; gap: 10px; }
.onboard li { counter-increment: ob; margin: 0; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.onboard li::before { content: counter(ob); width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; color: var(--blue-deep); background: #EAF1FE; }
.onboard strong { display: block; font-family: var(--font-display); }
.onboard span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-dark); }
.compare__col { padding: clamp(24px, 3vw, 36px); display: grid; gap: 16px; align-content: start; min-width: 0; }
.compare__col--ex { background: linear-gradient(160deg, rgba(52, 120, 246, 0.22), rgba(17, 28, 46, 1) 60%); }
.compare__col--sh { background: var(--slate); border-left: 1px solid var(--line-dark); }
.compare h3 { color: var(--white); display: flex; align-items: center; gap: 12px; }
.compare .tag { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.compare ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.compare li { margin: 0; padding-left: 28px; position: relative; color: var(--on-dark); }
.compare li::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 2px; background: var(--cyan); }
.compare .diagram { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--on-dark-muted); flex-wrap: wrap; }
.compare .diagram .node { padding: 5px 9px; border-radius: 6px; border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.03); color: var(--on-dark); }
@media (max-width: 760px) { .compare { grid-template-columns: minmax(0, 1fr); } .compare__col--sh { border-left: 0; border-top: 1px solid var(--line-dark); } }

/* ---------- Sample lead record ---------- */
.record {
  background: var(--navy); color: var(--on-dark); border-radius: 16px; overflow: hidden;
  border: 1px solid var(--slate-2); box-shadow: 0 30px 60px -30px rgba(11, 18, 32, 0.5); min-width: 0;
}
.record__label {
  background: var(--warn-bg); color: var(--warn); font-family: var(--font-mono); font-size: 0.74rem;
  font-weight: 500; letter-spacing: .06em; text-transform: uppercase; padding: 10px 16px; text-align: center;
}
.record__head { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-dark); flex-wrap: wrap; }
.record__head strong { font-family: var(--font-display); color: var(--white); }
.record__body { padding: 6px 18px 16px; overflow-x: auto; }
.record table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.82rem; min-width: 420px; }
.record th, .record td { text-align: left; padding: 9px 0; border-bottom: 1px dashed var(--line-dark); vertical-align: top; }
.record th { color: var(--on-dark-muted); font-weight: 400; width: 44%; padding-right: 14px; }
.record td { color: var(--white); }
.record td .ok { color: var(--cyan); }
.record tr:last-child th, .record tr:last-child td { border-bottom: 0; }

.check-list { list-style: none; padding: 0; display: grid; gap: 10px; }
.check-list li { margin: 0; padding-left: 30px; position: relative; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.32em; width: 18px; height: 18px; border-radius: 5px;
  background: #EAF1FE url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%231F5FD6' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center/14px no-repeat;
}
.section--navy .check-list li::before { background-color: rgba(54, 214, 231, 0.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2336D6E7' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E"); }
.check-list--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 680px) { .check-list--2 { grid-template-columns: minmax(0, 1fr); } }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.split--top { align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Notices ---------- */
.notice {
  border-radius: 12px; padding: 16px 18px; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px;
  background: var(--gray); border: 1px solid var(--line); font-size: 0.95rem; color: var(--ink);
}
.notice svg { width: 22px; height: 22px; color: var(--blue-deep); margin-top: 2px; }
.notice--template { background: var(--warn-bg); border-color: #F1D9A6; }
.notice--template svg { color: var(--warn); }
.notice p + p { margin-top: 6px; }
.section--navy .notice { background: var(--slate); border-color: var(--line-dark); color: var(--on-dark); }

.ph {
  background: #FFF4DC; color: #6B4600; border-bottom: 1.5px dashed #C99428; padding: 0 3px; border-radius: 3px;
  font-weight: 600;
}
.section--navy .ph, .site-footer .ph { background: rgba(255, 196, 80, 0.14); color: #FFD68A; border-color: rgba(255, 214, 138, .6); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: var(--on-dark); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: radial-gradient(50% 120% at 90% 50%, rgba(52, 120, 246, 0.3), transparent 70%); pointer-events: none; }
.cta-band .container { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; padding-block: clamp(48px, 6vw, 76px); }
.cta-band h2 { color: var(--white); max-width: 20ch; }
.cta-band p { color: var(--on-dark-muted); margin-top: 10px; max-width: 56ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.06rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 20px 20px; color: var(--muted); }
.faq details > div p + p { margin-top: 8px; }

/* ---------- Forms ---------- */
.form-shell { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 48px); align-items: start; }
@media (max-width: 960px) { .form-shell { grid-template-columns: minmax(0, 1fr); } }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow); min-width: 0; }
.form-card h2 { font-size: 1.5rem; }
.form-section { border: 0; padding: 0; margin: 0; display: grid; gap: 18px; min-width: 0; }
.form-section + .form-section { margin-top: 30px; padding-top: 26px; border-top: 1px solid var(--line); }
.form-section > legend { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-deep); padding: 0; margin-bottom: 18px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.fields .full { grid-column: 1 / -1; }
@media (max-width: 620px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .field .label { font-weight: 700; font-size: 0.93rem; color: var(--ink); }
.field .req { color: #B42318; margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 500; font-size: 0.82rem; margin-left: 4px; }
.field .hint { font-size: 0.84rem; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field select, .field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--white);
  border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 11px 13px; min-height: 48px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath fill='none' stroke='%2369758A' stroke-width='2' d='M5 8l5 5 5-5'/%3E%3C/svg%3E") right 12px center/18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(52, 120, 246, 0.15); }
.field [aria-invalid="true"] { border-color: #B42318 !important; box-shadow: 0 0 0 4px rgba(180, 35, 24, 0.08); }
.field .error { color: #B42318; font-size: 0.85rem; font-weight: 600; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1.5px solid var(--line-strong);
  border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.93rem; background: var(--white);
}
.choice label::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); flex-shrink: 0; }
.choice input:checked + label { border-color: var(--blue); background: #EEF4FF; color: var(--blue-deep); }
.choice input:checked + label::before { border-color: var(--blue); background: radial-gradient(var(--blue) 45%, transparent 50%); }
.choice input:focus-visible + label { outline: 3px solid var(--cyan); outline-offset: 2px; }
.checkbox { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 0.93rem; color: var(--ink); }
.checkbox input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: grid; gap: 14px; }
.form-legal { font-size: 0.85rem; color: var(--muted); }
.form-status { border-radius: 12px; padding: 16px 18px; font-size: 0.95rem; display: grid; gap: 6px; }
.form-status:empty { display: none; }
.form-status[data-state="success"] { background: var(--ok-bg); color: #0B5D44; border: 1px solid #A9DCC8; }
.form-status[data-state="error"] { background: #FDECEA; color: #8F1D14; border: 1px solid #F3B8B1; }
.form-status[data-state="config"] { background: var(--warn-bg); color: #6B4600; border: 1px solid #F1D9A6; }
.form-status strong { font-family: var(--font-display); }

.aside-card { background: var(--gray); border-radius: 18px; padding: 26px; display: grid; gap: 18px; border: 1px solid var(--line); }
.aside-card h3 { font-size: 1.15rem; }

/* ---------- Legal docs ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); font-size: 0.9rem; }
.legal-toc p { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.legal-toc ol { padding-left: 1.2em; color: var(--muted); }
.legal-toc a { color: var(--ink); text-decoration: none; }
.legal-toc a:hover { color: var(--blue-deep); text-decoration: underline; }
@media (max-width: 900px) { .legal { grid-template-columns: minmax(0, 1fr); gap: 24px; } .legal-toc { position: static; background: var(--gray); padding: 18px; border-radius: 12px; } }
.legal .prose h2 { font-size: 1.35rem; scroll-margin-top: calc(var(--header-h) + 20px); }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
.data-table th, .data-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { background: var(--gray); font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.data-table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: var(--on-dark-muted); font-size: 0.93rem; border-top: 1px solid var(--line-dark); }
.footer-top { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 32px; padding-block: 60px 40px; }
.footer-top h2 { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 14px; }
.footer-top ul { list-style: none; padding: 0; display: grid; gap: 9px; }
.footer-top li + li { margin-top: 0; }
.footer-top a { color: var(--on-dark-muted); text-decoration: none; }
.footer-top a:hover { color: var(--white); }
.footer-brand { display: grid; gap: 16px; align-content: start; }
.footer-brand p { max-width: 34ch; }
.footer-contact { display: grid; gap: 4px; font-size: 0.88rem; }
.footer-bottom { border-top: 1px solid var(--line-dark); padding-block: 22px 28px; display: grid; gap: 12px; font-size: 0.82rem; }
.footer-bottom .row { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-bottom a { color: var(--on-dark-muted); }
@media (max-width: 1000px) { .footer-top { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-top { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Misc ---------- */
.stack { display: grid; gap: 18px; }
.stack-sm { display: grid; gap: 10px; }
.mt-0 { margin-top: 0 !important; }
.center { text-align: center; }
.pill-row { display: flex; flex-wrap: wrap; gap: 8px; }
.kicker-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found .code { font-family: var(--font-mono); color: var(--cyan); letter-spacing: .2em; }
.stack-sm > .chip { justify-self: start; }
