/* poc-deep.css — v2 deep-brief styles. Modeled on app/static/iqair-vs-airgradient-v2.html. */

:root {
  --ink: #0B1020;
  --ink-2: #1F2937;
  --blue: #1B4FD8;
  --blue-50: #EEF3FF;
  --blue-100: #DCE6FF;
  --blue-900: #0A2A8A;
  --green: #047857;
  --green-50: #D1FAE5;
  --amber: #B45309;
  --amber-50: #FEF3C7;
  --red: #B91C1C;
  --red-50: #FEE2E2;
  --purple: #6D28D9;
  --purple-50: #EDE9FE;
  --teal: #0F766E;
  --teal-50: #CFFAFE;
  --gray-50: #F7F8FA;
  --gray-100: #EFF1F5;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --border: #E5E7EB;
  --border-strong: #CBD1DB;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--gray-50);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
}
.serif { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; letter-spacing: -0.01em; }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }

/* SITE HEADER — slim back-to-home bar above the hero */
.site-header {
  background: #060A18;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.site-header-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: white;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1;
}
.site-brand:hover { text-decoration: none; opacity: 0.85; }
.site-brand img { display: block; opacity: 0.95; }
.site-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255,255,255,0.72);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  padding: 6px 10px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-cta:hover {
  color: white;
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.site-cta svg { width: 11px; height: 11px; }
@media (max-width: 560px) {
  .site-header-inner { padding: 11px 16px; }
  .site-cta span { display: none; }
  .site-cta::before { content: "More intelligence"; }
}

/* HERO */
.hero {
  background: radial-gradient(ellipse at 20% 0%, #1a2a6c 0%, #0B1020 55%, #060A18 100%);
  color: white;
  padding: 44px 24px 48px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(27,79,216,0.35), transparent 45%),
    radial-gradient(circle at 30% 90%, rgba(109,40,217,0.25), transparent 50%);
  pointer-events: none;
}
.hero-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.22);
  color: rgba(255,255,255,0.92);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.3px;
  text-transform: uppercase;
  font-weight: 600;
}
.chip .dot { width: 6px; height: 6px; background: #63d07c; border-radius: 50%; box-shadow: 0 0 10px #63d07c; }
.hero h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 20px 0 16px;
  max-width: 900px;
}
.hero h1 em { color: #9cb5ff; font-style: italic; }
.hero .sub { color: rgba(255,255,255,0.72); font-size: 17px; max-width: 720px; margin-bottom: 32px; }
.hero .meta-row { display: flex; gap: 28px; flex-wrap: wrap; font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.4px; }
.hero .meta-row b { color: rgba(255,255,255,0.85); font-weight: 600; }

.versus {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 24px; margin-top: 40px; padding: 24px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
}
.versus .side h2 { font-size: 22px; margin: 0 0 6px; font-weight: 700; letter-spacing: -0.01em; }
.versus .side .role { font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(255,255,255,0.55); margin-bottom: 10px; }
.versus .side p { font-size: 13px; color: rgba(255,255,255,0.72); line-height: 1.5; }
.versus .side.right { text-align: right; }
.versus .vs {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 44px; font-style: italic; color: #9cb5ff;
  line-height: 1; padding: 0 8px;
}
@media (max-width: 720px) {
  .versus { grid-template-columns: 1fr; text-align: left; }
  .versus .side.right { text-align: left; }
  .versus .vs { text-align: center; padding: 0; }
}

/* NAV */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.nav-inner {
  display: flex; gap: 2px;
  padding: 10px 16px;
  max-width: 1180px; margin: 0 auto;
  white-space: nowrap;
}
.nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px;
  border-radius: 7px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--gray-600);
  letter-spacing: -0.005em;
}
.nav a:hover { background: var(--blue-50); color: var(--blue); text-decoration: none; }
.nav a .num { color: var(--gray-400); font-weight: 500; font-size: 11px; font-family: 'JetBrains Mono', monospace; }

/* LAYOUT */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* SECTION */
.section { padding: 56px 0 12px; }
.section-head { margin-bottom: 28px; }
.section-head .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 1.8px; text-transform: uppercase;
  color: var(--gray-500);
  padding-bottom: 8px;
}
.section-head .eyebrow .num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: var(--ink); color: white;
  border-radius: 5px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px; font-weight: 600;
  letter-spacing: 0;
}
.section-head .eyebrow .layer {
  font-size: 10px; padding: 2px 8px; border-radius: 4px;
  background: var(--gray-100); color: var(--gray-600); letter-spacing: 1px;
}
.section-head h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 400; letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 4px 0 12px;
  max-width: 880px;
}
.section-head h2 em { color: var(--blue); font-style: italic; }
.section-head .lede {
  font-size: 16px; color: var(--gray-600); max-width: 780px; line-height: 1.6;
}

/* CARD GRID */
.grid { display: grid; gap: 18px; margin-bottom: 24px; }
.grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .grid.cols-3 { grid-template-columns: 1fr; }
  .grid.cols-2 { grid-template-columns: 1fr; }
}

.card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  position: relative;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: 0 2px 14px -8px rgba(17,24,39,0.12); }
.card .label {
  display: inline-block;
  font-size: 10.5px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--gray-500); font-weight: 600;
  margin-bottom: 6px;
}
.card h3 {
  font-size: 17.5px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--gray-900); line-height: 1.3;
  margin-bottom: 10px;
}
.card p { font-size: 14.5px; color: var(--gray-700); line-height: 1.6; }
.card p + p { margin-top: 10px; }
.card strong { color: var(--gray-900); font-weight: 600; }
.card .src {
  display: block; margin-top: 12px; font-size: 11.5px; color: var(--gray-500);
  font-family: 'JetBrains Mono', monospace;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.card .src ul { list-style: none; padding: 0; margin: 0; }
.card .src li { line-height: 1.6; }
.card .src li + li { margin-top: 2px; }
.card .src a { color: var(--gray-600); }
.card.big { grid-column: span 2; }
@media (max-width: 900px) { .card.big { grid-column: span 1; } }

/* TAG / BADGE */
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.8px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 4px;
  margin-bottom: 8px;
}
.tag.red { background: var(--red-50); color: var(--red); }
.tag.amber { background: var(--amber-50); color: var(--amber); }
.tag.green { background: var(--green-50); color: var(--green); }
.tag.blue { background: var(--blue-50); color: var(--blue); }
.tag.purple { background: var(--purple-50); color: var(--purple); }
.tag.teal { background: var(--teal-50); color: var(--teal); }
.tag.gray { background: var(--gray-100); color: var(--gray-600); }

/* STAT TILE */
.stat-tile {
  background: white; border: 1px solid var(--border);
  border-radius: 12px; padding: 22px 22px 20px;
  position: relative; overflow: hidden;
}
.stat-tile::after {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
}
.stat-tile.subject::after { background: linear-gradient(90deg, #0056D2, #1a2a6c); }
.stat-tile.competitor::after { background: linear-gradient(90deg, #10B981, #0F766E); }
.stat-tile.diff::after { background: linear-gradient(90deg, var(--amber), var(--red)); }
.stat-tile .num {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 40px; line-height: 1; color: var(--ink);
  margin: 10px 0 6px; letter-spacing: -0.01em;
}
.stat-tile .num em { font-style: italic; color: var(--blue); }
.stat-tile .lbl {
  font-size: 12.5px; color: var(--gray-600); line-height: 1.4;
}
.stat-tile .who {
  font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase;
  color: var(--gray-500); font-weight: 700;
}

/* SYNTHESIS CARD (darker, distinct) */
.card.synth {
  background: linear-gradient(180deg, #0F1A36 0%, #121E3E 100%);
  color: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.1);
}
.card.synth .label { color: #9cb5ff; }
.card.synth h3 { color: white; font-size: 19px; }
.card.synth p { color: rgba(255,255,255,0.80); font-size: 14.5px; }
.card.synth strong { color: white; }
.card.synth .src { border-top-color: rgba(255,255,255,0.15); color: rgba(255,255,255,0.5); }
.card.synth .src a { color: rgba(255,255,255,0.75); }
.card.synth .tag.blue { background: rgba(27,79,216,0.2); color: #9cb5ff; }
.card.synth .tag.amber { background: rgba(180,83,9,0.18); color: #fbbf24; }
.card.synth .tag.red { background: rgba(220,38,38,0.18); color: #fca5a5; }
.card.synth .tag.purple { background: rgba(109,40,217,0.22); color: #c4b5fd; }
.card.synth .tag.green { background: rgba(16,185,129,0.22); color: #86efac; }

/* QUOTE */
blockquote {
  background: var(--gray-50);
  border-left: 3px solid var(--blue);
  padding: 14px 18px;
  margin: 10px 0 8px;
  border-radius: 0 6px 6px 0;
  font-size: 14.5px;
  color: var(--gray-800);
  line-height: 1.55;
  font-style: italic;
}
blockquote .who {
  display: block; font-style: normal;
  font-size: 11.5px; color: var(--gray-500);
  margin-top: 8px;
  font-family: 'JetBrains Mono', monospace;
}
blockquote.red { border-left-color: var(--red); background: #FEF2F2; }
blockquote.green { border-left-color: var(--green); background: #F0FDF4; }
.card.synth blockquote { background: rgba(255,255,255,0.05); border-left-color: #9cb5ff; color: rgba(255,255,255,0.85); }

/* FOOTER */
.page-footer {
  margin-top: 72px; padding: 48px 20px 36px;
  background: var(--ink); color: rgba(255,255,255,0.7);
  text-align: center;
}
.page-footer .brand {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 24px; font-style: italic; color: white;
  margin-bottom: 12px;
}
.page-footer p { font-size: 13px; line-height: 1.7; max-width: 600px; margin: 0 auto; }
.page-footer .meta-row { margin-top: 24px; font-size: 11.5px; color: rgba(255,255,255,0.45); font-family: 'JetBrains Mono', monospace; }

/* FEEDBACK BUTTONS */
.feedback {
  display: flex; gap: 6px; margin-top: 14px;
  border-top: 1px dashed var(--border); padding-top: 10px;
}
.card.synth .feedback { border-top-color: rgba(255,255,255,0.15); }
.feedback button {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 12px;
  cursor: pointer;
  color: var(--gray-600);
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}
.feedback button:hover { background: var(--gray-50); }
.feedback button.voted-up   { background: #E6F7EF; color: var(--green); border-color: #BBE9D2; }
.feedback button.voted-down { background: #FEE7E7; color: var(--red);   border-color: #F8C9C9; }
.feedback button.voted      { background: var(--blue-50); color: var(--blue); border-color: var(--blue-100); }
.card.synth .feedback button { color: rgba(255,255,255,0.6); border-color: rgba(255,255,255,0.18); }
.card.synth .feedback button:hover { background: rgba(255,255,255,0.05); }
.card.synth .feedback button.voted-up   { background: rgba(16,185,129,0.18); color: #86efac; border-color: rgba(16,185,129,0.35); }
.card.synth .feedback button.voted-down { background: rgba(220,38,38,0.18); color: #fca5a5; border-color: rgba(220,38,38,0.35); }
.card.synth .feedback button.voted      { background: rgba(27,79,216,0.2); color: #9cb5ff; border-color: rgba(27,79,216,0.4); }

/* COMMENT MODAL */
.cmnt-backdrop {
  position: fixed; inset: 0;
  background: rgba(11,16,32,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.15s ease;
  padding: 20px;
}
.cmnt-backdrop[hidden] { display: none; }
.cmnt-backdrop.open { opacity: 1; }
.cmnt-panel {
  background: white;
  border-radius: 14px;
  padding: 24px 26px 20px;
  width: 100%;
  max-width: 460px;
  box-shadow: 0 24px 60px -20px rgba(11,16,32,0.45);
  position: relative;
  transform: translateY(8px);
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.3, 1.1);
}
.cmnt-backdrop.open .cmnt-panel { transform: translateY(0); }
.cmnt-close {
  position: absolute; top: 10px; right: 12px;
  width: 28px; height: 28px;
  border: none; background: transparent;
  font-size: 22px; line-height: 1; color: var(--gray-400);
  cursor: pointer; border-radius: 6px;
  font-family: inherit;
}
.cmnt-close:hover { background: var(--gray-100); color: var(--gray-700); }
.cmnt-eyebrow {
  font-size: 10.5px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--gray-500);
  margin-bottom: 6px;
}
.cmnt-title {
  font-size: 15px; font-weight: 600; line-height: 1.4;
  color: var(--gray-900); margin: 0 0 14px;
  padding-right: 32px;
}
#cmnt-text {
  width: 100%; min-height: 110px;
  padding: 11px 13px;
  font-size: 14px; font-family: inherit; line-height: 1.5;
  border: 1px solid var(--border); border-radius: 8px;
  resize: vertical;
  color: var(--gray-900);
}
#cmnt-text:focus { outline: 2px solid var(--blue-100); border-color: var(--blue); }
.cmnt-actions {
  display: flex; justify-content: flex-end; gap: 8px;
  margin-top: 14px;
}
.cmnt-btn-primary, .cmnt-btn-secondary {
  padding: 8px 16px; font-size: 13.5px; font-weight: 600;
  border-radius: 7px; cursor: pointer; font-family: inherit;
  border: 1px solid transparent;
  transition: background 0.12s ease;
}
.cmnt-btn-secondary {
  background: white; color: var(--gray-700);
  border-color: var(--border);
}
.cmnt-btn-secondary:hover { background: var(--gray-50); }
.cmnt-btn-primary {
  background: var(--ink); color: white;
}
.cmnt-btn-primary:hover { background: #1A2540; }
.cmnt-btn-primary:disabled { background: var(--gray-300); cursor: not-allowed; }
.cmnt-status {
  margin-top: 10px; font-size: 12.5px; color: var(--gray-600);
  text-align: right;
}
