/* ============================================================
   DNA #18 — The Silicon Valley | Phone Number Leads
   Electric Blue & White | Inter + Circular | v2025.9
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ── Reset & Root ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --blue:        #007BFF;
  --blue-dark:   #0056C7;
  --blue-dim:    #E8F2FF;
  --white:       #FFFFFF;
  --text:        #1D1D1F;
  --text-muted:  #6B7280;
  --border:      #D1E3FF;
  --bg:          #F8FBFF;
  --font:        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-head:   'Inter', sans-serif;
  --radius:      8px;
  --radius-lg:   12px;
  --sp-1: 0.25rem; --sp-2: 0.5rem; --sp-3: 0.75rem; --sp-4: 1rem;
  --sp-5: 1.25rem; --sp-6: 1.5rem; --sp-8: 2rem;    --sp-10: 2.5rem;
  --sp-12: 3rem;   --sp-16: 4rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ── */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); color: var(--text); }
h2 { font-size: clamp(1.35rem, 3vw, 1.9rem);  color: var(--text); margin: var(--sp-10) 0 var(--sp-4); }
h3 { font-size: 1.2rem; margin: var(--sp-6) 0 var(--sp-3); }
h4 { font-size: 1rem; margin: var(--sp-4) 0 var(--sp-2); }

p { margin-bottom: var(--sp-4); max-width: 72ch; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ── */
.container {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container--wide {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

/* ── Site Header ── */
.site-header {
  background: var(--white);
  border-bottom: 2px solid var(--blue);
  padding: var(--sp-4) 0;
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.site-header__logo {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--text);
  letter-spacing: -0.03em;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.site-header__logo span {
  color: var(--blue);
}

.site-nav {
  display: flex;
  gap: var(--sp-6);
  align-items: center;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover { color: var(--blue); }

.site-nav .nav-cta {
  background: var(--blue);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.site-nav .nav-cta:hover { background: var(--blue-dark); text-decoration: none; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #001D3D 0%, #003566 60%, #007BFF 100%);
  color: var(--white);
  padding: var(--sp-16) 0 var(--sp-12);
  text-align: center;
}

.hero h1 { color: var(--white); margin-bottom: var(--sp-5); }

.hero__eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7EC8FF;
  margin-bottom: var(--sp-4);
}

.hero__sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 58ch;
  margin: 0 auto var(--sp-8);
}

/* ── Intel Hub Box ── */
.intel-hub {
  border: 2px solid var(--blue);
  padding: var(--sp-6) var(--sp-8);
  background: var(--blue-dim);
  border-radius: var(--radius-lg);
  margin: var(--sp-8) 0;
}

.intel-hub__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-2);
}

.intel-hub__objective {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.intel-hub__metric {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.intel-hub__metric strong {
  color: var(--blue);
}

/* ── CTA Buttons ── */
.cta-button {
  display: inline-block;
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
  border: none;
  cursor: pointer;
}

.cta-button:hover {
  background: var(--blue-dark);
  text-decoration: none;
  transform: translateY(-1px);
}

.cta-button--outline {
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
}

.cta-button--outline:hover {
  background: var(--blue);
  color: var(--white);
}

.cta-button--lg {
  padding: 1rem 2.25rem;
  font-size: 1.05rem;
}

/* ── Mid-Article CTA ── */
.cta-mid {
  margin: var(--sp-10) 0;
  padding: var(--sp-6) var(--sp-8);
  background: #001D3D;
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-lg);
}

.cta-mid__label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7EC8FF;
  margin-bottom: var(--sp-2);
}

.cta-mid__headline {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.cta-mid__body {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  margin-bottom: var(--sp-5);
}

/* ── Bottom CTA ── */
.cta-bottom {
  margin-top: var(--sp-12);
  padding: var(--sp-8);
  background: #001D3D;
  border-top: 3px solid var(--blue);
  border-radius: var(--radius-lg);
  text-align: center;
}

.cta-bottom__headline {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-3);
  line-height: 1.3;
}

.cta-bottom__sub {
  color: rgba(255,255,255,0.65);
  font-size: 0.9rem;
  margin-bottom: var(--sp-6);
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

.cta-bottom__disclosure {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: var(--sp-5);
}

/* ── Hover Glossary Terms ── */
.hover-term {
  border-bottom: 1px dotted var(--blue);
  cursor: help;
  color: var(--blue);
  position: relative;
}

/* Tooltip injected by engine.js */
#pnl-tooltip {
  position: fixed;
  background: #001D3D;
  color: var(--white);
  padding: 0.6rem 1rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  max-width: 280px;
  line-height: 1.45;
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 16px rgba(0,123,255,0.25);
  border: 1px solid var(--blue);
}

/* ── Article Layout ── */
.art-wrap {
  padding: var(--sp-10) 0 var(--sp-16);
}

.art-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
  align-items: center;
}

.art-meta__tag {
  background: var(--blue-dim);
  color: var(--blue);
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.75rem;
}

.art-hero-figure {
  margin: 0 0 var(--sp-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  line-height: 0;
}

.art-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  aspect-ratio: 2 / 1;
}

/* Article placeholder image */
.art-hero-placeholder {
  width: 100%;
  aspect-ratio: 2 / 1;
  background: linear-gradient(135deg, #001D3D 0%, #003566 50%, #007BFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ── Comparison / Data Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-8) 0;
  font-size: 0.9rem;
}

.data-table th {
  background: var(--blue);
  color: var(--white);
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 700;
}

.data-table td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table tr:nth-child(even) td { background: var(--blue-dim); }
.data-table tr:hover td { background: var(--blue-dim); }

.data-table .winner {
  color: #16A34A;
  font-weight: 700;
}

.data-table .loser {
  color: #DC2626;
}

/* ── Stats / Metric Boxes ── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-8) 0;
}

.stat-box {
  background: var(--blue-dim);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-5);
  text-align: center;
}

.stat-box__number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--blue);
  display: block;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.stat-box__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* .stat-card — alias used by batch-1 articles */
.stat-card { background: var(--blue-dim); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--sp-5); text-align: center; }
.stat-card__number { font-size: 2rem; font-weight: 800; color: var(--blue); display: block; line-height: 1; margin-bottom: var(--sp-2); }
.stat-card__label  { font-size: 0.8rem; color: var(--text-muted); font-weight: 600; }

/* ── FAQ Accordion ── */
.faq-section { margin: var(--sp-10) 0; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item summary {
  padding: var(--sp-4) 0;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
}

.faq-item summary::after {
  content: '+';
  color: var(--blue);
  font-size: 1.3rem;
  font-weight: 300;
}

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

.faq-item__answer {
  padding: 0 0 var(--sp-4);
  color: var(--text-muted);
  font-size: 0.93rem;
}

/* ── External Sources Box ── */
.sources-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  margin: var(--sp-8) 0;
}

.sources-box__title {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--sp-4);
}

.sources-box ul { list-style: none; }
.sources-box li {
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
}
.sources-box li:last-child { border-bottom: none; }
.sources-box a { color: var(--blue); font-weight: 600; }

/* ── Breadcrumb ── */
.breadcrumb {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: var(--sp-6);
  display: flex;
  gap: var(--sp-2);
  align-items: center;
  flex-wrap: wrap;
}

.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb__sep { color: var(--border); }

/* ── Intel Grid (Homepage) ── */
.intel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-6);
  margin: var(--sp-10) 0;
}

.intel-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--sp-6);
  transition: border-color 0.15s, box-shadow 0.15s;
  text-decoration: none;
  display: block;
  color: var(--text);
}

.intel-card:hover {
  border-color: var(--blue);
  box-shadow: 0 4px 16px rgba(0,123,255,0.12);
  text-decoration: none;
}

.intel-card__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: var(--sp-3);
}

.intel-card__title {
  font-weight: 800;
  font-size: 1rem;
  line-height: 1.35;
  margin-bottom: var(--sp-3);
  letter-spacing: -0.01em;
}

.intel-card__excerpt {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ── Site Footer ── */
.site-footer {
  background: #001D3D;
  color: rgba(255,255,255,0.6);
  padding: var(--sp-12) 0 var(--sp-8);
  font-size: 0.85rem;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--sp-10);
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.site-footer__brand { }

.site-footer__logo {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: var(--sp-3);
  letter-spacing: -0.03em;
}

.site-footer__logo span { color: var(--blue); }

.site-footer__tagline {
  color: rgba(255,255,255,0.5);
  font-size: 0.82rem;
  margin-bottom: var(--sp-4);
  max-width: 38ch;
}

.site-footer__geo {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.site-footer__col-title {
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--sp-4);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer nav { display: flex; flex-direction: column; gap: var(--sp-2); }
.site-footer a { color: rgba(255,255,255,0.55); text-decoration: none; }
.site-footer a:hover { color: var(--white); }

.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  text-align: center;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--sp-6);
  padding-right: var(--sp-6);
}

/* ── Utility ── */
.text-blue  { color: var(--blue); }
.text-muted { color: var(--text-muted); }
.font-bold  { font-weight: 700; }
.mt-8  { margin-top: var(--sp-8); }
.mb-8  { margin-bottom: var(--sp-8); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .site-header__inner { flex-wrap: wrap; gap: var(--sp-3); }
  .site-nav { gap: var(--sp-4); }
  .site-footer__inner { grid-template-columns: 1fr; gap: var(--sp-8); }
  .intel-grid { grid-template-columns: 1fr; }
  .cta-mid { padding: var(--sp-5); }
  .intel-hub { padding: var(--sp-5); }
}

@media (max-width: 480px) {
  .site-nav .nav-cta { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
}
