/* LensChart — Research observatory · Insight mapping studio */

:root {
  --ink: #111827;
  --primary: #2563EB;
  --primary-hover: #1D4ED8;
  --primary-soft: rgba(37, 99, 235, 0.1);
  --secondary: #7C3AED;
  --secondary-soft: rgba(124, 58, 237, 0.1);
  --trend: #14B8A6;
  --trend-soft: rgba(20, 184, 166, 0.12);
  --emotion: #F59E0B;
  --emotion-soft: rgba(245, 158, 11, 0.12);
  --risk: #DC2626;
  --risk-soft: rgba(220, 38, 38, 0.08);
  --muted: #4B5563;
  --muted-light: #9CA3AF;
  --line: #E5E7EB;
  --card: #FFFFFF;
  --bg: #FCFCFA;
  --bg-canvas: #F4F6FA;
  --dot: rgba(37, 99, 235, 0.07);
  --max: min(1320px, 100% - 40px);
  --gutter: clamp(18px, 3.5vw, 28px);
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --sans: "Plus Jakarta Sans", system-ui, sans-serif;
  --strip-h: 36px;
  --header-h: 68px;
  --top-h: calc(var(--strip-h) + var(--header-h));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 15px; line-height: 1.6;
  color: var(--muted); background: var(--bg); -webkit-font-smoothing: antialiased;
}
body.modal-open { overflow: hidden; }
body.auth-page { min-height: 100vh; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
button, input, select, textarea { font: inherit; }
ul, ol, p, h1, h2, h3, h4, h5 { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; padding-top: var(--top-h); }
.site-shell main { flex: 1; }

h1, h2, h3, .page-title { font-weight: 700; color: var(--ink); letter-spacing: -0.03em; line-height: 1.15; }
.lead { font-size: 1.02rem; line-height: 1.65; color: var(--muted); }
.eyebrow { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary); }
.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s, transform 0.5s; }
.reveal.is-visible, .reveal.visible { opacity: 1; transform: none; }

/* Header */
.insight-strip {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  min-height: var(--strip-h); padding: 0 var(--gutter);
  background: var(--ink); color: rgba(255,255,255,0.85); font-size: 0.76rem; font-weight: 500;
}
.insight-strip a { color: #93C5FD; font-weight: 700; }
.site-header {
  position: fixed; top: var(--strip-h); left: 0; right: 0; z-index: 100;
  background: rgba(252,252,250,0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.header-row {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center;
  gap: 16px; min-height: var(--header-h); max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.brand { display: flex; align-items: center; gap: 9px; color: inherit; }
.logo-mark { width: 30px; height: 30px; flex-shrink: 0; }
.logo-mark svg { width: 100%; height: 100%; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: 0.95rem; color: var(--ink); }
.brand-text span { font-size: 0.64rem; color: var(--muted-light); }
.nav-main { display: flex; justify-content: center; gap: 2px; overflow: hidden; }
.nav-link {
  padding: 7px 9px; font-size: 0.82rem; font-weight: 600; color: var(--ink);
  border-radius: var(--radius); white-space: nowrap;
}
.nav-link:hover { background: var(--primary-soft); color: var(--primary); }
.nav-link--muted { color: var(--muted); }
.header-actions { display: flex; align-items: center; gap: 6px; }
.header-actions .btn-sm { padding: 6px 11px; font-size: 0.76rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: var(--radius); font-weight: 600; font-size: 0.84rem;
  border: 1px solid transparent; cursor: pointer; transition: 0.15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-secondary { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn-outline { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-sm { padding: 6px 11px; font-size: 0.76rem; }
.btn-lg { padding: 12px 20px; font-size: 0.92rem; }
.btn-full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.tag {
  display: inline-flex; padding: 2px 8px; border-radius: 999px;
  font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em;
}
.tag-primary { background: var(--primary-soft); color: var(--primary); }
.tag-trend { background: var(--trend-soft); color: #0D9488; }
.tag-risk { background: var(--risk-soft); color: var(--risk); }
.tag-secondary { background: var(--secondary-soft); color: var(--secondary); }
.tag-emotion { background: var(--emotion-soft); color: #B45309; }

/* ═══ HOME: Observatory split ═══ */
.observatory {
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 72px);
  background: var(--bg);
}
.observatory-grid {
  display: grid; grid-template-columns: 0.92fr 1.08fr; gap: clamp(24px, 4vw, 40px); align-items: start;
  max-width: min(1400px, 100% - 32px); margin-inline: auto; padding-inline: var(--gutter);
}
.observatory-copy { padding-top: 12px; }
.observatory-copy h1 { font-size: clamp(2rem, 4.2vw, 2.85rem); margin-bottom: 14px; }
.observatory-motto { font-size: 0.95rem; font-weight: 600; color: var(--secondary); margin-bottom: 14px; }
.observatory-copy .lead { margin-bottom: 20px; max-width: 38ch; }
.observatory-stats { display: flex; gap: 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.observatory-stats div strong { display: block; font-size: 1.35rem; color: var(--ink); }
.observatory-stats div span { font-size: 0.72rem; color: var(--muted-light); }

/* App chrome — product UI mock */
.app-chrome {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: 0 24px 64px rgba(17,24,39,0.08); overflow: hidden; min-height: 480px;
  display: grid; grid-template-columns: 200px 1fr 220px;
}
.app-chrome-bar {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; background: var(--bg-canvas); border-bottom: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 600; color: var(--ink);
}
.app-chrome-dots { display: flex; gap: 5px; }
.app-chrome-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); display: block; }
.app-chrome-dots i:first-child { background: #FCA5A5; }
.app-chrome-dots i:nth-child(2) { background: #FCD34D; }
.app-chrome-dots i:nth-child(3) { background: #86EFAC; }
.app-sidebar { padding: 12px; border-right: 1px solid var(--line); background: var(--bg); font-size: 0.72rem; }
.app-sidebar h4 { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); margin-bottom: 8px; }
.app-sidebar button {
  display: block; width: 100%; text-align: left; padding: 7px 9px; margin-bottom: 3px;
  border: none; background: transparent; border-radius: 6px; font-size: 0.78rem; font-weight: 500;
  color: var(--muted); cursor: pointer;
}
.app-sidebar button.is-active, .app-sidebar button:hover { background: var(--primary-soft); color: var(--primary); }
.app-canvas {
  position: relative; background: var(--bg-canvas);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 20px 20px; min-height: 400px;
}
.app-canvas svg.lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.canvas-node {
  position: absolute; padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.72rem; font-weight: 600; color: var(--ink);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04); cursor: pointer; transition: 0.15s;
  transform: translate(-50%, -50%); appearance: none; font-family: inherit; text-align: center;
}
.canvas-node span { display: block; font-weight: 400; font-size: 0.65rem; color: var(--muted-light); margin-top: 2px; }
.canvas-node.is-active, .canvas-node:hover { border-color: var(--primary); box-shadow: 0 4px 16px rgba(37,99,235,0.15); }
.canvas-node--hub {
  background: linear-gradient(135deg, var(--primary-soft), var(--secondary-soft));
  border-color: var(--primary); padding: 14px 16px; font-size: 0.8rem;
}
.app-detail { padding: 14px; border-left: 1px solid var(--line); font-size: 0.78rem; background: var(--card); }
.app-detail h4 { font-size: 0.85rem; color: var(--ink); margin-bottom: 8px; }
.app-detail .quote { font-style: italic; color: var(--muted); line-height: 1.5; margin-bottom: 10px; padding-left: 10px; border-left: 2px solid var(--primary); }
.app-detail-meta { font-size: 0.68rem; color: var(--muted-light); }

@media (max-width: 960px) {
  .observatory-grid { grid-template-columns: 1fr; }
  .app-chrome { grid-template-columns: 1fr; min-height: auto; }
  .app-sidebar { display: none; }
  .app-detail { border-left: none; border-top: 1px solid var(--line); }
}

/* ═══ HOME: Lens grid (all visible) ═══ */
.lens-rail-section { padding: 56px 0 64px; background: var(--ink); color: rgba(255,255,255,0.75); }
.lens-rail-head { max-width: var(--max); margin: 0 auto 28px; padding-inline: var(--gutter); }
.lens-rail-head h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 8px; }
.lens-rail-lead { font-size: 0.9rem; max-width: 52ch; line-height: 1.6; }
.lens-rail-grid {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.lens-card {
  padding: 18px 16px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg); display: flex; flex-direction: column;
}
.lens-card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-bottom: 10px; border-radius: 8px;
  background: rgba(37,99,235,0.2); color: #93C5FD; font-size: 0.85rem;
}
.lens-card strong { display: block; color: #fff; font-size: 0.88rem; margin-bottom: 6px; }
.lens-card p { font-size: 0.78rem; line-height: 1.5; flex: 1; }
.lens-card-visual {
  margin-top: 12px; padding: 10px; background: rgba(0,0,0,0.25); border-radius: var(--radius);
  font-size: 0.66rem; font-family: ui-monospace, monospace; color: #93C5FD; line-height: 1.4;
}
@media (max-width: 1100px) {
  .lens-rail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .lens-rail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 480px) {
  .lens-rail-grid { grid-template-columns: 1fr; }
}

/* ═══ HOME: Pipeline ribbon ═══ */
.pipeline-ribbon { padding: 64px 0; border-top: 1px solid var(--line); }
.pipeline-ribbon h2 { text-align: center; font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 8px 0 10px; }
.pipeline-lead { text-align: center; font-size: 0.92rem; color: var(--muted); max-width: 48ch; margin: 0 auto 36px; }
.pipeline-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter);
}
.pipeline-step {
  padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.pipeline-step-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 12px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
}
.pipeline-step-num { font-size: 0.68rem; font-weight: 700; color: var(--primary); margin-bottom: 6px; }
.pipeline-step strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 6px; }
.pipeline-step p { font-size: 0.82rem; margin-bottom: 12px; }
.pipeline-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline-sources li {
  font-size: 0.68rem; font-weight: 600; padding: 4px 8px; border-radius: 999px;
  background: var(--bg-canvas); color: var(--muted);
}
.pipeline-stat { display: flex; flex-wrap: wrap; gap: 6px; }
.pipeline-stat span {
  font-size: 0.68rem; font-weight: 600; padding: 4px 8px; border-radius: 999px;
  background: var(--trend-soft); color: #0F766E;
}
@media (max-width: 900px) { .pipeline-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .pipeline-steps { grid-template-columns: 1fr; } }

/* ═══ HOME: Live demo ═══ */
.live-demo { padding: 64px 0; background: var(--bg-canvas); }
.live-demo-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.live-demo-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 6px 0 8px; }
.live-demo-lead { font-size: 0.9rem; color: var(--muted); max-width: 48ch; line-height: 1.6; }
.live-demo-stats { display: flex; gap: 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.live-demo-stats div strong { display: block; font-size: 1.15rem; color: var(--ink); }
.live-demo-stats div span { font-size: 0.68rem; color: var(--muted-light); }
.live-demo-grid { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: stretch; }
.live-demo-topics { display: flex; flex-direction: column; gap: 6px; }
.live-demo-topics button {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  width: 100%; text-align: left; padding: 12px 14px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  cursor: pointer; transition: 0.15s;
}
.live-topic-label { font-size: 0.84rem; font-weight: 600; color: var(--ink); }
.live-topic-meta { font-size: 0.7rem; color: var(--muted-light); font-weight: 500; }
.live-demo-topics button.is-active { border-color: var(--primary); background: var(--primary-soft); }
.live-demo-topics button.is-active .live-topic-label { color: var(--primary); }
.live-demo-panel {
  padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  display: flex; flex-direction: column; gap: 16px;
}
.live-demo-panel-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.live-demo-sentiment { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 180px; }
.live-sentiment-bar {
  height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--trend), #86EFAC);
  max-width: 120px; flex-shrink: 0;
}
.live-sentiment-label { font-size: 0.72rem; font-weight: 600; color: var(--trend); }
.live-demo-source { font-size: 0.72rem; color: var(--muted-light); }
.live-demo-panel blockquote { font-size: 1.08rem; font-style: italic; color: var(--ink); line-height: 1.55; margin: 0; }
.live-demo-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.live-related-label { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted-light); margin-bottom: 8px; }
.live-related-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.live-related-tags span {
  font-size: 0.72rem; font-weight: 600; padding: 5px 10px; border-radius: 999px;
  background: var(--bg-canvas); color: var(--muted); border: 1px solid var(--line);
}
.live-demo-foot {
  display: flex; flex-wrap: wrap; gap: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 0.74rem; color: var(--muted-light);
}
@media (max-width: 900px) {
  .live-demo-grid { grid-template-columns: 1fr; }
  .live-demo-stats { width: 100%; justify-content: space-between; }
}

/* ═══ HOME: Bento platform ═══ */
.bento-section { padding: 64px 0; }
.bento-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px;
  margin-bottom: 28px; flex-wrap: wrap;
}
.bento-head h2 { font-size: clamp(1.4rem, 2.8vw, 1.85rem); margin: 6px 0 8px; }
.bento-lead { font-size: 0.9rem; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.bento {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px;
}
.bento a, .bento-card {
  display: flex; flex-direction: column; justify-content: flex-end; padding: 22px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  color: inherit; min-height: 130px; transition: 0.15s; position: relative;
}
.bento a:hover { border-color: var(--primary); box-shadow: 0 8px 24px rgba(37,99,235,0.08); color: inherit; transform: translateY(-2px); }
.bento-icon {
  position: absolute; top: 18px; right: 18px; font-size: 1.25rem; opacity: 0.35;
}
.bento a strong { font-size: 1rem; color: var(--ink); margin-bottom: 6px; padding-right: 28px; }
.bento a span { font-size: 0.8rem; color: var(--muted); line-height: 1.5; }
.bento-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.bento-pills span {
  font-size: 0.66rem; font-weight: 600; padding: 4px 8px; border-radius: 999px;
  background: var(--bg-canvas); color: var(--muted);
}
.bento a em { font-size: 0.78rem; color: var(--primary); font-style: normal; font-weight: 600; margin-top: 14px; }
.bento .b-span-4 { grid-column: span 4; }
.bento .b-span-6 { grid-column: span 6; }
.bento .b-span-8 { grid-column: span 8; }
.bento .b-span-12 { grid-column: span 12; }
.bento .b-tall { min-height: 200px; }
.bento .b-accent { background: linear-gradient(135deg, var(--primary-soft) 0%, var(--card) 55%); }
.bento-pricing {
  flex-direction: row !important; align-items: center; justify-content: space-between;
  min-height: 88px; background: linear-gradient(90deg, var(--bg-canvas), var(--card));
}
.bento-pricing div { display: flex; flex-direction: column; gap: 4px; }
.bento-pricing strong { margin-bottom: 0 !important; padding-right: 0 !important; }
.bento-pricing em { margin-top: 0 !important; white-space: nowrap; }
@media (max-width: 900px) {
  .bento .b-span-4, .bento .b-span-6, .bento .b-span-8 { grid-column: span 12; }
  .bento-pricing { flex-direction: column !important; align-items: flex-start !important; gap: 12px; }
}

/* ═══ PAGE LAYOUTS ═══ */

/* Map workspace — Insight Atlas */
.layout-map { padding: 0 0 48px; }
.layout-map-hero {
  padding: 32px var(--gutter) 24px; max-width: var(--max); margin-inline: auto;
}
.layout-map-hero h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 8px 0 10px; }
.layout-map-body { max-width: min(1400px, 100% - 24px); margin-inline: auto; padding-inline: var(--gutter); }

/* Bubble field — Feedback Maps */
.layout-bubbles { padding-bottom: 48px; }
.bubble-stage {
  position: relative; min-height: 420px; margin-top: 24px;
  background: var(--bg-canvas); border: 1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden;
}
.bubble {
  position: absolute; border-radius: 50%; display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; padding: 12px;
  border: 1px solid rgba(255,255,255,0.5); cursor: pointer; transition: transform 0.15s;
  transform: translate(-50%, -50%);
}
.bubble:hover { transform: translate(-50%, -50%) scale(1.04); }
.bubble strong { font-size: 0.78rem; color: var(--ink); }
.bubble span { font-size: 0.62rem; color: var(--muted); margin-top: 2px; }
.bubble--pricing { background: rgba(37,99,235,0.15); width: 130px; height: 130px; }
.bubble--onboarding { background: rgba(124,58,237,0.15); width: 150px; height: 150px; }
.bubble--support { background: rgba(245,158,11,0.15); width: 160px; height: 160px; }
.bubble--performance { background: rgba(20,184,166,0.15); width: 110px; height: 110px; }
.bubble--reporting { background: rgba(220,38,38,0.1); width: 100px; height: 100px; }

/* Editorial — Segments, About */
.layout-editorial { padding: 48px 0; }
.editorial-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.editorial-main h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); margin-bottom: 16px; }
.editorial-aside { position: sticky; top: calc(var(--top-h) + 20px); }
.pull-quote {
  padding: 24px; background: var(--card); border-left: 4px solid var(--secondary);
  font-size: 1.1rem; font-style: italic; color: var(--ink); line-height: 1.5; margin: 24px 0;
}
.segment-row {
  display: grid; grid-template-columns: 100px 1fr auto; gap: 16px; align-items: center;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.segment-row strong { color: var(--ink); }

/* Signal feed — Trend Signals */
.layout-signals { padding: 48px 0; background: var(--ink); color: rgba(255,255,255,0.8); min-height: 60vh; }
.layout-signals .eyebrow { color: #93C5FD; }
.layout-signals h1 { color: #fff; margin: 8px 0 24px; }
.signal-feed { max-width: 640px; margin-inline: auto; padding-inline: var(--gutter); }
.signal-feed-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,0.1);
}
.signal-feed-item strong { color: #fff; font-size: 0.9rem; }
.signal-pct { font-weight: 700; font-size: 0.88rem; color: var(--trend); }
.signal-pct.is-risk { color: #FCA5A5; }

/* Journey timeline */
.layout-journey { padding: 48px 0; overflow-x: auto; }
.journey-track {
  display: flex; gap: 0; min-width: max-content; padding: 24px var(--gutter);
  max-width: var(--max); margin-inline: auto;
}
.journey-node {
  flex: 0 0 200px; padding: 20px 16px; border: 1px solid var(--line); background: var(--card);
  position: relative;
}
.journey-node:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.journey-node:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.journey-node::after {
  content: "→"; position: absolute; right: -10px; top: 50%; transform: translateY(-50%);
  color: var(--muted-light); z-index: 1; font-size: 0.9rem;
}
.journey-node:last-child::after { display: none; }
.journey-node.is-hot { background: var(--emotion-soft); border-color: rgba(245,158,11,0.35); }
.journey-node strong { display: block; font-size: 0.88rem; color: var(--ink); margin-bottom: 6px; }
.journey-node span { font-size: 0.72rem; }

/* Sentiment layers stack */
.layout-layers { padding: 48px 0; }
.layer-stack { max-width: 720px; margin: 32px auto 0; padding-inline: var(--gutter); perspective: 800px; }
.layer-sheet {
  padding: 20px 24px; margin-bottom: -12px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--card); box-shadow: 0 8px 24px rgba(0,0,0,0.04); cursor: pointer;
  transform: rotateX(2deg); transition: 0.2s;
}
.layer-sheet:hover { transform: rotateX(0) translateY(-4px); }
.layer-sheet--pos { border-left: 4px solid var(--trend); }
.layer-sheet--neu { border-left: 4px solid var(--line); margin-left: 24px; }
.layer-sheet--neg { border-left: 4px solid var(--risk); margin-left: 48px; }

/* Integration flow */
.layout-flow { padding: 48px 0; }
.flow-diagram {
  display: flex; align-items: stretch; gap: 0; max-width: var(--max); margin: 32px auto 0; padding-inline: var(--gutter);
  overflow-x: auto;
}
.flow-col { flex: 1; min-width: 160px; padding: 16px; }
.flow-col--sources .flow-node { margin-bottom: 8px; }
.flow-node {
  padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); font-size: 0.82rem; font-weight: 600; color: var(--ink);
  cursor: pointer; text-align: center;
}
.flow-node:hover { border-color: var(--primary); }
.flow-engine {
  flex: 0 0 140px; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}
.flow-engine-core {
  width: 100px; height: 100px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #fff; font-weight: 700; font-size: 0.72rem; display: flex; align-items: center; justify-content: center;
}
.flow-arrow { flex: 0 0 32px; display: flex; align-items: center; justify-content: center; color: var(--muted-light); }

/* Pricing table */
.layout-pricing { padding: 48px 0; }
.pricing-table-wrap { overflow-x: auto; margin-top: 32px; }
.pricing-table {
  width: 100%; border-collapse: collapse; font-size: 0.88rem; min-width: 640px;
}
.pricing-table th, .pricing-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.pricing-table th { background: var(--bg-canvas); font-weight: 600; color: var(--ink); }
.pricing-table .col-featured { background: var(--primary-soft); }

/* Team pages — split hero */
.layout-team { padding: 48px 0; }
.team-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px; max-width: var(--max);
  margin-inline: auto; padding-inline: var(--gutter); align-items: start;
}
.team-scenario {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--radius-lg); margin-bottom: 10px;
  background: var(--card);
}
.team-scenario h4 { font-size: 0.9rem; color: var(--ink); margin-bottom: 6px; }
.team-scenario p { font-size: 0.84rem; }
.team-visual {
  padding: 24px; background: var(--bg-canvas); border: 1px solid var(--line);
  border-radius: var(--radius-xl); min-height: 280px; font-size: 0.82rem;
}

/* Opportunity kanban */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 24px; }
.kanban-col { padding: 14px; background: var(--bg-canvas); border-radius: var(--radius-lg); min-height: 200px; }
.kanban-col h4 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted-light); margin-bottom: 12px; }
.kanban-card {
  padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  margin-bottom: 8px; font-size: 0.82rem;
}
.kanban-card strong { display: block; color: var(--ink); margin-bottom: 4px; }

/* Shared page bits */
.page-top { max-width: var(--max); margin-inline: auto; padding: 32px var(--gutter) 0; }
.breadcrumb { font-size: 0.75rem; color: var(--muted-light); margin-bottom: 16px; }
.breadcrumb a { color: var(--muted); }
.page-cta {
  padding: 48px 0; text-align: center; border-top: 1px solid var(--line); margin-top: 48px;
}
.page-cta h3 { font-size: 1.3rem; margin-bottom: 10px; }
.page-cta p { margin-bottom: 18px; max-width: 480px; margin-inline: auto; }
.ui-alert { padding: 12px 14px; border-radius: var(--radius); font-size: 0.84rem; margin-top: 14px; background: var(--trend-soft); border: 1px solid rgba(20,184,166,0.25); }

/* Footer */
.footer-cta {
  padding: 56px var(--gutter); background: var(--ink); color: rgba(255,255,255,0.8); text-align: center;
}
.footer-cta h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); max-width: 560px; margin: 0 auto 12px; }
.footer-cta p { max-width: 480px; margin: 0 auto 20px; font-size: 0.92rem; }
.footer-cta .btn-row { justify-content: center; }
.footer-cta .btn-outline { border-color: rgba(255,255,255,0.3); color: #fff; }
.footer-wrap { padding: 36px var(--gutter); max-width: var(--max); margin-inline: auto; }
.footer-top { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.footer-tagline { max-width: 300px; font-size: 0.84rem; color: var(--muted-light); }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.footer-col h5 { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink); margin-bottom: 10px; }
.footer-col a { display: block; font-size: 0.82rem; color: var(--muted); padding: 3px 0; }
.footer-bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.footer-meta { font-size: 0.74rem; color: var(--muted-light); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .editorial-grid, .team-split { grid-template-columns: 1fr; } .kanban { grid-template-columns: 1fr; } }

/* Modals & auth */
.site-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.site-modal-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,0.5); }
.site-modal-panel { position: relative; width: 100%; max-width: 420px; background: var(--card); border-radius: var(--radius-xl); padding: 24px; }
.site-modal-close { position: absolute; top: 10px; right: 10px; border: none; background: var(--bg-canvas); width: 28px; height: 28px; border-radius: 50%; cursor: pointer; }
.form-field { margin-bottom: 14px; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 600; margin-bottom: 5px; color: var(--ink); }
.form-field input, .form-field select {
  width: 100%; padding: 11px 13px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink); transition: border-color 0.15s, box-shadow 0.15s;
}
.form-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); outline: none; }
.form-divider {
  display: flex; align-items: center; gap: 12px; margin: 20px 0;
  font-size: 0.74rem; font-weight: 500; color: var(--muted-light); text-transform: uppercase; letter-spacing: 0.04em;
}
.form-divider::before, .form-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.form-success { color: var(--trend); font-size: 0.84rem; margin-top: 10px; }

/* ═══ Auth — product-led sign in ═══ */
.auth-shell {
  display: grid; grid-template-columns: minmax(360px, 500px) 1fr; min-height: 100vh;
}
.auth-stage {
  display: flex; flex-direction: column; gap: 32px;
  padding: clamp(28px, 4vw, 48px) clamp(24px, 5vw, 56px);
  background: var(--bg); border-right: 1px solid var(--line);
}
.auth-brand { align-self: flex-start; }
.auth-form-wrap { flex: 1; display: flex; flex-direction: column; justify-content: center; max-width: 380px; width: 100%; }
.auth-form-wrap h1 { font-size: clamp(1.65rem, 3vw, 2rem); margin: 8px 0 10px; }
.auth-lead { font-size: 0.92rem; line-height: 1.6; color: var(--muted); margin-bottom: 24px; max-width: 36ch; }
.auth-sso { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-sso {
  padding: 10px 12px; background: var(--card); border: 1px solid var(--line);
  color: var(--ink); font-size: 0.8rem; font-weight: 600;
}
.btn-sso:hover { border-color: #D1D5DB; background: var(--bg-canvas); transform: none; }
.auth-form { margin-top: 4px; }
.auth-form-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 18px; font-size: 0.8rem;
}
.auth-check { display: flex; align-items: center; gap: 7px; color: var(--muted); cursor: pointer; font-weight: 500; }
.auth-check input { width: 15px; height: 15px; accent-color: var(--primary); }
.auth-forgot { font-size: 0.8rem; white-space: nowrap; }
.auth-note { margin-top: 20px; font-size: 0.84rem; color: var(--muted); }
.auth-foot { font-size: 0.72rem; color: var(--muted-light); margin-top: auto; }

.auth-showcase {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: clamp(28px, 4vw, 48px);
  background: var(--bg-canvas);
  background-image: radial-gradient(circle, var(--dot) 1px, transparent 1px);
  background-size: 22px 22px; overflow: hidden;
}
.auth-showcase-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 72% 38%, rgba(37,99,235,0.12), transparent 70%),
    radial-gradient(ellipse 40% 35% at 20% 80%, rgba(124,58,237,0.1), transparent 65%);
}
.auth-showcase-caption { position: relative; z-index: 1; max-width: 520px; padding-left: clamp(0px, 2vw, 12px); }
.auth-showcase-caption h2 { font-size: clamp(1.35rem, 2.5vw, 1.75rem); margin: 6px 0 10px; color: var(--ink); }
.auth-showcase-caption > p { font-size: 0.88rem; color: var(--muted); max-width: 42ch; margin-bottom: 18px; }
.auth-showcase-stats { display: flex; gap: 22px; }
.auth-showcase-stats div strong { display: block; font-size: 1.2rem; color: var(--ink); }
.auth-showcase-stats div span { font-size: 0.7rem; color: var(--muted-light); }
.auth-preview { position: relative; z-index: 1; width: min(680px, 100%); margin-inline: auto; }
.auth-preview-chrome {
  min-height: 420px; box-shadow: 0 32px 80px rgba(17,24,39,0.12);
  transform: perspective(1400px) rotateY(-5deg) rotateX(2deg);
  transition: transform 0.4s ease;
}
.auth-preview-chrome:hover { transform: perspective(1400px) rotateY(-2deg) rotateX(1deg); }
.auth-hub-pulse { animation: auth-hub-glow 3s ease-in-out infinite; }
@keyframes auth-hub-glow {
  0%, 100% { box-shadow: 0 4px 16px rgba(37,99,235,0.15); }
  50% { box-shadow: 0 6px 28px rgba(37,99,235,0.28); }
}

@media (max-width: 960px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-stage { border-right: none; border-bottom: 1px solid var(--line); min-height: auto; }
  .auth-form-wrap { max-width: none; }
  .auth-showcase { padding-top: 40px; padding-bottom: 48px; }
  .auth-preview-chrome { transform: none; min-height: 360px; }
  .auth-preview-chrome:hover { transform: none; }
  .auth-showcase-caption { max-width: none; text-align: center; }
  .auth-showcase-caption > p { margin-inline: auto; }
  .auth-showcase-stats { justify-content: center; }
}
@media (max-width: 520px) {
  .auth-sso { grid-template-columns: 1fr; }
  .auth-form-row { flex-direction: column; align-items: flex-start; gap: 8px; }
}
