/* ==========================================================================
   Bridgeline Leads — styles.css
   Clean fintech, editorial accents, same system as the case study PDF
   ========================================================================== */

:root {
  /* Palette */
  --ink: #111111;
  --ink-2: #333333;
  --ink-3: #555555;
  --muted: #888888;
  --line: #e8e8e6;
  --line-2: #d9d9d6;
  --paper: #ffffff;
  --cream: #F6F6F4;
  --cream-2: #efefea;

  --accent: #185FA5;
  --accent-dark: #0C447C;
  --accent-light: #E6F1FB;

  --teal: #1D9E75;
  --teal-dark: #0F6E56;
  --teal-light: #E1F5EE;

  --success: #3B6D11;
  --danger: #A32D2D;

  /* Type */
  --font-sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
  --font-serif: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  /* Rhythm */
  --container: 1120px;
  --container-narrow: 900px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color .15s ease;
}
a:hover { color: var(--accent-dark); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

/* ==========================================================================
   Brand mark
   ========================================================================== */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.2px;
}
.brand:hover { color: var(--ink); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  border-radius: 4px;
  letter-spacing: 0;
}

.brand-name {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.2px;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--accent);
  color: white !important;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 13.5px !important;
  transition: background .15s ease;
}
.nav-cta:hover { background: var(--accent-dark); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(24,95,165,0.06) 0%, rgba(24,95,165,0) 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.hero-title {
  font-size: clamp(38px, 5vw, 54px);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -1.5px;
  color: var(--ink);
  margin: 0 0 28px 0;
  max-width: 640px;
}

.serif-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: -1px;
  font-size: 1.04em;
  white-space: nowrap;
}

.strike {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--muted);
  white-space: nowrap;
}

.hero-dek {
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 560px;
  margin: 0 0 36px 0;
  font-weight: 400;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  font-size: 14.5px;
  font-weight: 500;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all .15s ease;
  font-family: var(--font-sans);
  cursor: pointer;
  line-height: 1;
}

.btn-primary {
  background: var(--accent);
  color: white !important;
}
.btn-primary:hover {
  background: var(--accent-dark);
  color: white !important;
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover {
  background: var(--cream);
  border-color: var(--ink-3);
  color: var(--ink) !important;
}

.btn-large {
  padding: 14px 26px;
  font-size: 15px;
}

.hero-proof {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--muted);
}

.proof-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-right: 4px;
}

.proof-item {
  color: var(--ink-2);
  font-weight: 500;
}

.proof-sep { color: var(--line-2); }

/* Hero mini chart */
.hero-chart {
  position: absolute;
  top: 120px;
  right: 40px;
  width: 340px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px 14px;
  box-shadow: 0 10px 40px rgba(17,17,17,0.06), 0 2px 8px rgba(17,17,17,0.04);
  pointer-events: none;
}

.hero-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hero-chart-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.hero-chart-badge {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-light);
  padding: 3px 8px;
  border-radius: 4px;
}

.hero-chart svg {
  display: block;
  margin: 0 -4px 8px;
}

.hero-chart-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.chart-foot-label {
  color: var(--muted);
  font-weight: 500;
}

.chart-foot-stat {
  color: var(--ink-2);
  font-weight: 600;
}

/* ==========================================================================
   Results stat strip
   ========================================================================== */
.results {
  background: var(--ink);
  color: white;
  padding: 60px 0;
  position: relative;
}

.results-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  margin-bottom: 32px;
  text-align: center;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-left: 1px solid rgba(255,255,255,0.12);
}

.stat-card {
  padding: 12px 30px;
  border-right: 1px solid rgba(255,255,255,0.12);
  text-align: left;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: 64px;
  line-height: 1;
  color: white;
  margin-bottom: 10px;
  letter-spacing: -1px;
  font-weight: 400;
}

.stat-value.win {
  color: #5DCAA5; /* teal-light, reads clearly on dark bg */
}

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  margin-bottom: 4px;
}

.stat-sub {
  font-size: 12.5px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Section scaffolding
   ========================================================================== */
section {
  padding: 90px 0;
}

.section-head {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 1.6px;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.section-title {
  font-size: clamp(30px, 4vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -1px;
  color: var(--ink);
  margin: 0 0 18px 0;
}

.section-dek {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0;
}

/* ==========================================================================
   Fit section (who this is for)
   ========================================================================== */
.fit-section {
  background: var(--cream);
  padding: 90px 0;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.fit-col {
  background: white;
  border-radius: 10px;
  padding: 32px 34px;
  border: 1px solid var(--line);
}

.fit-col-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.fit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}
.fit-mark.yes {
  background: #EAF3DE;
  color: var(--success);
}
.fit-mark.no {
  background: #FCEBEB;
  color: var(--danger);
}

.fit-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.fit-list li {
  padding: 10px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-2);
  position: relative;
  padding-left: 22px;
}
.fit-list li::before {
  position: absolute;
  left: 0;
  top: 10px;
  font-weight: 600;
  font-size: 13px;
}
.yes-list li::before {
  content: '✓';
  color: var(--success);
}
.no-list li::before {
  content: '✕';
  color: var(--danger);
}

/* ==========================================================================
   Approach / phases
   ========================================================================== */
.approach {
  background: white;
}

.phases {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.phase {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .15s ease, transform .15s ease;
}
.phase:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.phase-num {
  font-family: var(--font-serif);
  font-size: 46px;
  line-height: 1;
  color: var(--accent);
  font-weight: 400;
  font-style: italic;
}

.phase-body { flex: 1; }

.phase-label {
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}

.phase-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.4px;
  margin: 0 0 12px 0;
}

.phase-text {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin: 0 0 16px 0;
}

.phase-deliverable {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--accent);
  padding-top: 14px;
  border-top: 1px dashed var(--line);
}

/* ==========================================================================
   Case study card
   ========================================================================== */
.case-study {
  background: var(--cream);
}

.case-card {
  background: white;
  border-radius: 12px;
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  overflow: hidden;
}

.case-card-2 {
  margin-top: 20px;
}

.case-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
  padding: 3px 10px 3px 0;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  width: 100%;
}

.case-content {
  padding: 46px 44px;
}

.case-headline {
  font-size: 32px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: var(--ink);
  margin-bottom: 20px;
}

.case-strike {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.case-accent {
  font-family: var(--font-serif);
  font-weight: 400;
  font-style: italic;
  color: var(--teal-dark);
  letter-spacing: -0.4px;
  font-size: 1.1em;
}

.case-desc {
  font-size: 15.5px;
  line-height: 1.6;
  color: var(--ink-3);
  margin: 0 0 14px 0;
}

.case-cta {
  margin-top: 24px;
}

.case-stats {
  background: var(--ink);
  color: white;
  padding: 36px 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-content: center;
}

.case-stat-value {
  font-family: var(--font-serif);
  font-size: 48px;
  line-height: 1;
  color: white;
  letter-spacing: -1px;
  margin-bottom: 8px;
  font-weight: 400;
}

.case-stat-value.win {
  color: #5DCAA5;
}

.case-stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  letter-spacing: 0.2px;
}

/* ==========================================================================
   Positioning / pull quote
   ========================================================================== */
.positioning {
  background: white;
  padding: 100px 0;
}

.pull-quote {
  max-width: 860px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.25;
  letter-spacing: -0.4px;
  color: var(--ink);
  font-weight: 400;
  text-align: left;
}

.qnum {
  color: var(--accent);
  font-style: italic;
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq {
  background: var(--cream);
}

.faq-list {
  max-width: var(--container-narrow);
}

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.faq-item:first-child {
  border-top: 1px solid var(--line);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-size: 16.5px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color .15s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--accent); }

.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 22px;
  font-weight: 300;
  color: var(--muted);
  transition: transform .2s ease;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: '−';
}

.faq-q { font-size: 16.5px; font-weight: 500; }

.faq-a {
  padding: 0 40px 22px 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-3);
}

/* ==========================================================================
   CTA section
   ========================================================================== */
.cta-section {
  padding: 0 0 100px 0;
  background: white;
}

.cta-card {
  background: var(--ink);
  border-radius: 14px;
  padding: 70px 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(24,95,165,0.25) 0%, rgba(24,95,165,0) 70%);
  pointer-events: none;
}

.cta-title {
  font-size: clamp(28px, 3.8vw, 42px);
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: white;
  margin: 0 0 18px 0;
  position: relative;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.cta-dek {
  font-size: 17px;
  line-height: 1.55;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto 36px;
  position: relative;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  position: relative;
}

.cta-buttons .btn-ghost {
  background: transparent;
  color: rgba(255,255,255,0.9) !important;
  border-color: rgba(255,255,255,0.2);
}
.cta-buttons .btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.4);
  color: white !important;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  border-top: 1px solid var(--line);
  padding: 36px 0;
  background: white;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 9px;
}

.footer-tag {
  font-size: 13.5px;
  color: var(--muted);
}

.footer-meta {
  font-size: 12.5px;
  color: var(--muted);
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 900px) {
  .nav-links { gap: 18px; }
  .nav-links a:not(.nav-cta) { display: none; }

  .hero { padding: 60px 0 50px; }
  .hero-chart { display: none; }
  section { padding: 64px 0; }

  .results-grid {
    grid-template-columns: 1fr 1fr;
    border-left: 0;
  }
  .stat-card {
    padding: 22px 24px;
    border-bottom: 1px solid rgba(255,255,255,0.12);
  }
  .stat-card:nth-child(odd) { border-left: 1px solid rgba(255,255,255,0.12); }
  .stat-value { font-size: 48px; }

  .fit-grid { grid-template-columns: 1fr; gap: 18px; }
  .fit-col { padding: 26px 24px; }

  .phases { grid-template-columns: 1fr; }

  .case-card { grid-template-columns: 1fr; }
  .case-content { padding: 34px 28px; }
  .case-headline { font-size: 26px; }
  .case-stats { padding: 30px 28px; }
  .case-stat-value { font-size: 38px; }

  .cta-card { padding: 50px 28px; }
  .cta-buttons { flex-direction: column; align-items: stretch; }
  .cta-buttons .btn { width: 100%; }

  .footer-inner { justify-content: flex-start; }
}

@media (max-width: 560px) {
  .container { padding: 0 20px; }
  .hero-title { letter-spacing: -1.2px; }
  .hero-dek { font-size: 16.5px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; }

  .results-grid { grid-template-columns: 1fr; }
  .stat-card { border-left: 1px solid rgba(255,255,255,0.12); }

  .case-stats { grid-template-columns: 1fr; gap: 20px; }
}
