/* ============================================================
   Bluecrest B2B Selector - Stylesheet
   See SPEC.md §Visual Design for design rationale.
   ============================================================ */

:root {
  /* Bluecrest Brand Palette (from DESIGN.md) */
  --navy: #1b365d;        /* Dark Navy - primary brand */
  --teal: #41748d;        /* Teal - secondary */
  --cyan: #009fdf;        /* Cyan - accent, links */
  --aqua: #00aec7;        /* Aqua - highlights */
  --light-blue: #9bd3dd;  /* Light Blue - backgrounds */
  --warm-grey: #d6d2c4;   /* Warm Grey - dividers */
  --red: #e10600;         /* Red - critical/alerts */
  --orange: #ffa300;      /* Orange - warnings */
  --green: #2dc84d;       /* Green - positive */

  /* Derived */
  --navy-deep: #122544;
  --ivory: #f8f9fa;
  --cream: #ffffff;
  --grey-700: #4a5568;
  --grey-500: #6B6B6B;
  --grey-300: #d6d2c4;
  --grey-200: #e8e6e0;
  --line: rgba(27, 54, 93, 0.12);

  /* Legacy aliases for minimal HTML changes */
  --rust: var(--cyan);
  --amber: var(--orange);
  --red-flag: var(--red);
  --ivory-warm: #f0f4f7;
  --navy-soft: var(--teal);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Montserrat', sans-serif;
  font-weight: 400;
  background: var(--ivory);
  color: var(--navy);
  line-height: 1.55;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(27, 54, 93, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(0, 159, 223, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }

/* ── HEADER ────────────────────────────────────── */
header {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
  background: var(--cream);
  position: sticky; top: 0; z-index: 100;
  backdrop-filter: blur(6px);
}
.header-inner { display: flex; justify-content: space-between; align-items: center; }
.logo {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.logo span { color: var(--rust); }
.header-meta {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 11px;
  color: var(--grey-500);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ── HERO ──────────────────────────────────────── */
.hero {
  padding: 100px 0 80px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--navy);
  background-color: var(--rust);
  margin-bottom: 28px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
}
.eyebrow::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--navy);
}
h1.hero-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  font-weight: 300;
  margin-bottom: 32px;
  max-width: 980px;
}
h1.hero-title em {
  font-style: italic;
  color: var(--cyan);
  font-weight: 300;
}
.hero-sub {
  font-size: 19px;
  line-height: 1.55;
  max-width: 620px;
  color: var(--grey-700);
  margin-bottom: 48px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  margin-top: 64px;
}
.stat {
  padding: 28px 24px 0 0;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: none; padding-right: 0; }
.stat-number {
  font-family: 'Montserrat', sans-serif;
  font-size: 44px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--navy);
  margin-bottom: 8px;
}
.stat-number span { color: var(--rust); font-style: italic; font-weight: 400; }
.stat-label {
  font-size: 13px;
  color: var(--grey-500);
  line-height: 1.4;
}

/* ── SECTION ───────────────────────────────────── */
section { padding: 80px 0; border-bottom: 1px solid var(--line); }
.section-header { display: flex; align-items: baseline; gap: 24px; margin-bottom: 56px; }
.section-num {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 12px;
  color: var(--rust);
  letter-spacing: 0.15em;
}
h2.section-title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  max-width: 800px;
}
h2.section-title em { font-style: italic; color: var(--rust); }

/* ── INTAKE FORM ───────────────────────────────── */
.intake-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}
.intake-narrative h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}
.intake-narrative p {
  color: var(--grey-700);
  margin-bottom: 18px;
  font-size: 16px;
}
.intake-narrative .source-tag {
  display: inline-block;
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 10px;
  color: var(--grey-500);
  background: var(--ivory-warm);
  padding: 4px 10px;
  border-radius: 2px;
  margin-top: 8px;
  border: 1px solid var(--line);
}

.form-card {
  background: var(--cream);
  border: 1px solid var(--line);
  padding: 40px;
  box-shadow: 4px 4px 0 var(--ivory-warm);
}
.form-step { display: none; }
.form-step.active { display: block; animation: fadeUp 0.4s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.step-tag {
  font-family: 'Montserrat', sans-serif; font-weight: 600;
  font-size: 10px;
  color: var(--rust);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
}
.step-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 26px;
  font-weight: 500;
  margin-bottom: 32px;
  line-height: 1.2;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: var(--navy);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.label-helper {
  font-size: 12px;
  color: var(--grey-500);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 8px;
}
input, select {
  width: 100%;
  padding: 14px 16px;
  font-family: 'Montserrat', sans-serif;
  font-size: 15px;
  border: 1px solid var(--grey-300);
  background: var(--ivory);
  color: var(--navy);
  border-radius: 0;
  margin-bottom: 24px;
  transition: border-color 0.2s, background 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--navy);
  background: var(--cream);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 40px;
  background: var(--cyan);
  color: #ffffff;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: all 0.25s ease;
}
.btn:hover { background: var(--navy); transform: translateX(2px); }
.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
  border-radius: 50px;
  margin-right: 12px;
}
.btn-secondary:hover { background: var(--navy); color: #ffffff; }
.btn-arrow { font-size: 16px; }

.progress {
  display: flex; gap: 6px; margin-bottom: 32px;
}
.progress-step {
  flex: 1; height: 3px; background: var(--grey-200);
  transition: background 0.3s;
}
.progress-step.complete { background: var(--rust); }
.progress-step.active { background: var(--navy); }

