/* HeapRank — AI Priority Ranking · Decision war room */

:root {
  --primary: #7C3AED;
  --primary-hover: #6D28D9;
  --primary-soft: rgba(124, 58, 237, 0.08);
  --secondary: #2563EB;
  --secondary-soft: rgba(37, 99, 235, 0.08);
  --critical: #DC2626;
  --critical-soft: rgba(220, 38, 38, 0.08);
  --high: #F59E0B;
  --high-soft: rgba(245, 158, 11, 0.1);
  --medium: #2563EB;
  --low: #10B981;
  --low-soft: rgba(16, 185, 129, 0.1);
  --ink: #0F172A;
  --muted: rgba(15, 23, 42, 0.68);
  --muted-light: rgba(15, 23, 42, 0.45);
  --line: #E2E8F0;
  --card: #FFFFFF;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --max: 1280px;
  --gutter: clamp(16px, 4vw, 28px);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --display: "Sora", system-ui, sans-serif;
  --sans: "Inter", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --announce-h: 38px;
  --header-h: 64px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --card-pad: clamp(16px, 2.5vw, 22px);
  --card-gap: 24px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.65;
  color: var(--muted); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
body.modal-open { overflow: hidden; }
body.auth-page { min-height: 100vh; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--secondary); }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
[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(--site-top-h); }
.site-shell main { flex: 1; }

h1, h2, h3, .page-title, .deck-hero-title {
  font-family: var(--display); font-weight: 700; color: var(--ink); letter-spacing: -0.02em;
}
.lead { font-size: 1.05rem; line-height: 1.72; max-width: 62ch; }
.kicker {
  display: inline-block; font-family: var(--mono); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary);
  background: var(--primary-soft); padding: 4px 11px; border-radius: 999px; margin-bottom: 14px;
}
.text-link { font-weight: 600; color: var(--primary); }

/* Header */
.announce-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 110;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 6px 12px; min-height: var(--announce-h); padding: 7px var(--gutter);
  background: linear-gradient(90deg, #F1F5F9, #F8FAFC, #F1F5F9);
  border-bottom: 1px solid var(--line); color: var(--ink); font-size: 0.82rem; font-weight: 500;
}
.announce-bar a { color: var(--primary); font-weight: 700; }
.site-header {
  position: fixed; top: var(--announce-h); left: 0; right: 0; z-index: 100;
  background: rgba(248, 250, 252, 0.92); backdrop-filter: blur(12px); 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); }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.logo-mark { width: 32px; height: 32px; 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-family: var(--display); font-size: 1rem; color: var(--ink); }
.brand-text span { font-size: 0.68rem; color: var(--muted-light); font-family: var(--mono); }
.nav-main { display: flex; flex-wrap: wrap; gap: 4px 14px; justify-content: center; }
.nav-link { font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 6px 0; }
.nav-link:hover { color: var(--primary); }
.header-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: var(--radius); font-weight: 600; font-size: 0.875rem;
  border: 1px solid transparent; cursor: pointer; transition: background 0.15s, border-color 0.15s, transform 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(--primary); border-color: var(--line); }
.btn-secondary:hover { border-color: var(--primary); }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-soft); }
.btn-sm { padding: 7px 12px; font-size: 0.78rem; }
.btn-lg { padding: 13px 22px; font-size: 0.95rem; }
.btn-full { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Tags & stats */
.tag {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 999px;
  font-family: var(--mono); font-size: 0.62rem; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.04em; border: 1px solid var(--line); background: var(--bg-alt); color: var(--muted);
}
.tag-primary { background: var(--primary-soft); border-color: rgba(124, 58, 237, 0.2); color: var(--primary); }
.tag-secondary { background: var(--secondary-soft); border-color: rgba(37, 99, 235, 0.2); color: var(--secondary); }
.tag-critical { background: var(--critical-soft); border-color: rgba(220, 38, 38, 0.25); color: var(--critical); }
.tag-high, .tag-warn { background: var(--high-soft); border-color: rgba(245, 158, 11, 0.25); color: #b45309; }
.tag-medium { background: var(--secondary-soft); color: var(--secondary); }
.tag-low { background: var(--low-soft); border-color: rgba(16, 185, 129, 0.25); color: #059669; }
.tag-neutral { background: var(--bg-alt); }
.tag.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }

.stat { display: inline-flex; flex-direction: column; gap: 2px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.stat strong { font-family: var(--display); font-size: 1.1rem; color: var(--ink); }
.stat span { font-size: 0.68rem; color: var(--muted-light); font-family: var(--mono); }
.stat-primary strong { color: var(--primary); }
.stat-critical strong { color: var(--critical); }
.stat-secondary strong { color: var(--secondary); }

.pulse-dot {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px rgba(124, 58, 237, 0.5);
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* Home — centered command deck */
.deck-hero {
  padding: clamp(48px, 7vw, 72px) 0 clamp(32px, 5vw, 48px);
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(124, 58, 237, 0.08) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 40%),
    var(--bg);
  border-bottom: 1px solid var(--line);
}
.deck-hero-inner { max-width: 720px; margin-inline: auto; }
.deck-hero-title { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; margin-bottom: 16px; }
.deck-hero-lead { margin-inline: auto; }
.deck-hero-mission { font-family: var(--display); font-size: 1.05rem; font-weight: 600; color: var(--primary); margin-bottom: 16px; }
.deck-hero-actions { justify-content: center; margin-top: 24px; }
.deck-hero-proof { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }
.proof-chip {
  padding: 12px 18px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); min-width: 120px;
}
.proof-chip strong { display: block; font-family: var(--display); font-size: 1.35rem; color: var(--primary); }
.proof-chip span { font-size: 0.72rem; color: var(--muted-light); }

.deck-command { padding: clamp(32px, 5vw, 48px) 0 clamp(48px, 7vw, 72px); background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.command-deck-chrome {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: 16px; font-size: 0.78rem;
}
.command-deck-label { font-weight: 600; color: var(--ink); }
.command-deck-status { color: var(--muted-light); font-family: var(--mono); display: flex; align-items: center; gap: 6px; }

.command-deck {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: 0 24px 48px rgba(124, 58, 237, 0.08); overflow: hidden; min-height: 420px; position: relative;
}
.deck-chaos {
  position: relative; min-height: 420px; padding: 24px;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 31px, rgba(124, 58, 237, 0.04) 31px, rgba(124, 58, 237, 0.04) 32px),
    repeating-linear-gradient(90deg, transparent, transparent 31px, rgba(124, 58, 237, 0.04) 31px, rgba(124, 58, 237, 0.04) 32px);
  transition: opacity 0.5s;
}
.command-deck.is-ranked .deck-chaos { opacity: 0; pointer-events: none; position: absolute; inset: 0; }
.command-deck.is-ranked .deck-ranked { display: grid !important; }

.heap-card {
  position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r));
  padding: 8px 12px; max-width: 160px; font-size: 0.72rem; font-weight: 500; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  transition: opacity 0.4s, transform 0.4s;
}
.command-deck.is-ranking .heap-card { animation: heap-scatter 0.6s ease forwards; }
@keyframes heap-scatter { to { opacity: 0; transform: rotate(0deg) scale(0.8); } }
.heap-feedback { border-left: 3px solid var(--secondary); }
.heap-feature { border-left: 3px solid var(--primary); }
.heap-sales { border-left: 3px solid var(--high); }
.heap-ops { border-left: 3px solid var(--critical); }
.heap-strategy { border-left: 3px solid var(--low); }

.deck-ranked {
  display: none; grid-template-columns: repeat(4, 1fr); gap: 0; min-height: 420px;
}
.tier-column { padding: 16px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tier-column:last-child { border-right: none; }
.tier-label {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; padding-bottom: 8px; border-bottom: 2px solid;
}
.tier-critical { background: var(--critical-soft); }
.tier-critical .tier-label { color: var(--critical); border-color: var(--critical); }
.tier-high { background: var(--high-soft); }
.tier-high .tier-label { color: #b45309; border-color: var(--high); }
.tier-medium { background: var(--secondary-soft); }
.tier-medium .tier-label { color: var(--secondary); border-color: var(--secondary); }
.tier-low { background: var(--low-soft); }
.tier-low .tier-label { color: var(--low); border-color: var(--low); }
.tier-card {
  padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  animation: tier-in 0.4s ease backwards;
}
.tier-card:nth-child(2) { animation-delay: 0.1s; }
.tier-card:nth-child(3) { animation-delay: 0.2s; }
@keyframes tier-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.tier-card strong { display: block; font-size: 0.78rem; color: var(--ink); margin-bottom: 4px; }
.tier-card span { font-size: 0.65rem; color: var(--muted-light); font-family: var(--mono); }

.deck-section { padding: clamp(48px, 7vw, 72px) 0; }
.deck-section.is-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.deck-section.is-overload { background: var(--card); }
.deck-section.is-heap-types { background: var(--bg); border-bottom: 1px solid var(--line); }
.deck-section.is-solution { background: linear-gradient(180deg, var(--primary-soft), var(--bg)); border-bottom: 1px solid var(--line); }

.heap-types-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--card-gap); }
.heap-type-card {
  padding: var(--card-pad); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); border-top: 3px solid var(--primary);
}
.heap-type-icon { display: block; font-size: 1.25rem; margin-bottom: 8px; }
.heap-type-card strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 6px; }
.heap-type-card p { font-size: 0.82rem; }

.solution-flow {
  display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; justify-content: center;
}
.solution-step {
  flex: 1; min-width: 180px; max-width: 280px; padding: var(--card-pad);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); text-align: center;
}
.solution-step span { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--primary); margin-bottom: 6px; }
.solution-step strong { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: 6px; }
.solution-step p { font-size: 0.82rem; }
.solution-arrow { display: flex; align-items: center; font-size: 1.5rem; color: var(--primary); font-weight: 700; }

.deck-section.is-overload { background: var(--card); }
.section-head { margin-bottom: 28px; max-width: 640px; }
.section-head h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 10px; }

.overload-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--card-gap); }
.overload-card {
  padding: var(--card-pad); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.overload-card.overload-wide { grid-column: 1 / -1; }
.overload-team { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--primary); margin-bottom: 8px; }
.overload-card strong { display: block; font-family: var(--display); font-size: 2rem; color: var(--ink); margin-bottom: 6px; }
.overload-card p { font-size: 0.85rem; }

.questions-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--card-gap); }
.question-card {
  padding: var(--card-pad); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  border-top: 3px solid var(--primary);
}
.question-card span { display: block; font-family: var(--mono); font-size: 0.72rem; color: var(--primary); margin-bottom: 8px; }
.question-card strong { display: block; font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.question-card p { font-size: 0.85rem; }

.case-panel {
  padding: clamp(24px, 4vw, 36px); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); border-left: 4px solid var(--primary);
}
.case-metrics-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: var(--card-gap); margin-bottom: 20px; }
.case-metric { text-align: center; padding: 12px; background: var(--bg-alt); border-radius: var(--radius); }
.case-metric strong { display: block; font-family: var(--display); font-size: 1.5rem; color: var(--primary); }
.case-metric span { font-size: 0.72rem; color: var(--muted-light); }
.case-panel blockquote { font-size: 1.05rem; font-style: italic; color: var(--ink); line-height: 1.65; margin-bottom: 10px; }
.case-panel cite { display: block; font-size: 0.82rem; color: var(--muted-light); margin-bottom: 16px; }

/* Pages */
.page-hero { padding: clamp(32px, 5vw, 48px) 0; border-bottom: 1px solid var(--line); background: var(--card); }
.engine-signup-strip {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 16px; margin-bottom: 20px; background: var(--primary-soft);
  border: 1px solid rgba(124, 58, 237, 0.15); border-radius: var(--radius-lg); font-size: 0.85rem;
}
.engine-signup-strip strong { color: var(--primary); }
.page-title { font-size: clamp(1.65rem, 3.5vw, 2.35rem); margin-bottom: 12px; }
.breadcrumb { font-size: 0.78rem; color: var(--muted-light); margin-bottom: 14px; font-family: var(--mono); }
.breadcrumb a { color: var(--muted); }
.page-showcase, .page-body { padding: clamp(32px, 5vw, 48px) 0; }
.page-showcase.is-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section-inline-title { font-size: 1.15rem; color: var(--ink); margin-bottom: 8px; }
.section-sub { font-size: 0.9rem; margin-bottom: 20px; max-width: 560px; }
.section.is-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section.tight { padding: clamp(24px, 4vw, 36px) 0; }
.sub-cta { padding: var(--card-pad); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); text-align: center; }
.sub-cta h3 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.sub-cta p { max-width: 520px; margin: 0 auto 16px; }
.sub-cta .btn-row { justify-content: center; }

.rank-frame {
  padding: var(--card-pad); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: 0 8px 24px rgba(124, 58, 237, 0.04);
}
.rank-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-alt); }
.rank-panel-accent { border-color: rgba(124, 58, 237, 0.2); }
.panel-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  padding: 12px 14px; background: var(--card); border-bottom: 1px solid var(--line);
  font-size: 0.85rem; font-weight: 600; color: var(--ink);
}
.panel-badge { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 3px 8px; border-radius: 999px; }
.panel-body { padding: 14px; }

.ui-alert { margin-top: 16px; padding: 14px 16px; border-radius: var(--radius); font-size: 0.85rem; border: 1px solid var(--line); background: var(--card); }
.ui-alert strong { color: var(--ink); }
.ui-alert-ok { border-left: 3px solid var(--low); }
.ui-alert-info { border-left: 3px solid var(--secondary); }

/* Priority board */
.priority-board, .analysis-lab, .opportunity-ranking, .decision-scores { display: flex; flex-direction: column; gap: 14px; }
.board-list { display: flex; flex-direction: column; gap: 12px; }
.board-item { padding: var(--card-pad); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); border-left: 3px solid var(--primary); }
.board-critical { border-left-color: var(--critical); }
.board-high { border-left-color: var(--high); }
.board-medium { border-left-color: var(--secondary); }
.board-low { border-left-color: var(--low); }
.board-item-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.board-item-head strong { font-size: 0.92rem; color: var(--ink); }
.board-item-meta { display: flex; flex-direction: column; gap: 4px; font-size: 0.72rem; font-family: var(--mono); color: var(--muted-light); margin-bottom: 10px; }
.board-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-label { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; color: var(--muted-light); }

/* Analysis lab */
.lab-pipeline { display: flex; flex-direction: column; gap: 10px; }
.lab-step {
  display: flex; gap: 14px; padding: 14px; background: var(--bg-alt);
  border: 1px solid var(--line); border-radius: var(--radius-lg); align-items: flex-start;
}
.lab-step-num { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--primary); min-width: 28px; }
.lab-step strong { display: block; font-size: 0.9rem; color: var(--ink); margin-bottom: 4px; }
.lab-step p { font-size: 0.82rem; }
.lab-step.is-active { border-color: var(--primary); box-shadow: 0 0 0 2px rgba(124, 58, 237, 0.15); background: var(--card); }
.lab-questions { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.lab-q { padding: 12px; background: var(--primary-soft); border-radius: var(--radius); border: 1px solid rgba(124, 58, 237, 0.15); }
.lab-q span { display: block; font-family: var(--mono); font-size: 0.62rem; color: var(--primary); margin-bottom: 4px; }
.lab-q strong { font-size: 0.82rem; color: var(--ink); }

/* Opportunity ranking */
.opp-category { margin-bottom: 16px; }
.opp-category h3 { font-size: 0.88rem; color: var(--ink); margin-bottom: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.opp-row { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.opp-row strong { display: block; color: var(--ink); font-size: 0.88rem; }
.opp-row span { font-size: 0.72rem; font-family: var(--mono); color: var(--primary); }

/* Decision scores */
.score-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--card-gap); }
.score-dimension { padding: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.score-dim-head { display: flex; justify-content: space-between; margin-bottom: 8px; }
.score-dim-head strong { color: var(--ink); font-size: 0.88rem; }
.score-dim-head em { font-style: normal; font-family: var(--display); font-size: 1.1rem; color: var(--primary); }
.score-bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; margin-bottom: 8px; }
.score-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; }
.score-dimension p { font-size: 0.78rem; margin-bottom: 10px; }
.weight-field span { display: block; font-size: 0.68rem; color: var(--muted-light); margin-bottom: 4px; }
.weight-field input { width: 100%; }
.score-composite { text-align: center; padding: 16px; background: var(--primary-soft); border-radius: var(--radius-lg); margin-top: 8px; }
.score-composite span { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--primary); }
.score-composite strong { font-family: var(--display); font-size: 2rem; color: var(--primary); }

/* Signal rows */
.feedback-row, .feature-row, .lead-row, .project-row, .strategic-row, .signal-row {
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem;
}
.feedback-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.feedback-row strong { color: var(--ink); }
.feedback-row span { font-size: 0.72rem; color: var(--muted-light); font-family: var(--mono); }
.row-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.feature-row, .lead-row, .project-row, .strategic-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.feature-row > div, .lead-row > div, .project-row > div, .strategic-row > div { flex: 1; min-width: 200px; }
.feature-row strong, .lead-row strong, .project-row strong, .strategic-row strong { display: block; color: var(--ink); }
.feature-row span, .lead-row em, .project-row em, .strategic-row em { font-family: var(--mono); font-size: 0.72rem; color: var(--primary); font-style: normal; }
.panel-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.solution-panel { display: flex; flex-direction: column; gap: 0; }
.feature-bar { height: 4px; background: var(--line); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.feature-bar span { display: block; height: 100%; background: var(--primary); border-radius: 999px; }

/* Use cases */
.use-case { display: flex; flex-direction: column; gap: 10px; }
.use-row { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
.use-row span:first-child { font-family: var(--mono); font-size: 0.65rem; text-transform: uppercase; color: var(--muted-light); min-width: 120px; }
.use-row strong { color: var(--ink); flex: 1; }
.use-metrics, .use-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }

/* Integration flow */
.command-flow {
  display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 12px; align-items: center;
  padding: var(--card-pad); background: var(--bg-alt); border-radius: var(--radius-lg); border: 1px solid var(--line);
}
.flow-col { display: flex; flex-direction: column; gap: 8px; }
.flow-label { font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--muted-light); }
.flow-node { padding: 10px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.78rem; }
.flow-node strong { display: block; color: var(--ink); margin-bottom: 2px; }
.flow-node span { font-size: 0.68rem; color: var(--muted-light); }
.flow-source { border-left: 3px solid var(--secondary); }
.flow-output { border-left: 3px solid var(--primary); }
.flow-engine { padding: 16px; text-align: center; background: var(--card); border: 1px solid rgba(124, 58, 237, 0.2); border-radius: var(--radius-lg); min-width: 160px; }
.flow-engine strong { display: block; color: var(--ink); font-size: 0.88rem; }
.flow-engine span { font-size: 0.68rem; color: var(--muted-light); font-family: var(--mono); }
.flow-stream { position: relative; width: 40px; height: 120px; }
.data-pulse { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); animation: pulse-flow 2s ease infinite; }
.data-pulse.p1 { top: 25%; }
.data-pulse.p2 { top: 50%; animation-delay: 0.3s; }
.data-pulse.p3 { top: 75%; animation-delay: 0.6s; }
.data-pulse.p4 { top: 35%; animation-delay: 0.2s; }
.data-pulse.p5 { top: 65%; animation-delay: 0.5s; }
@keyframes pulse-flow { 0%, 100% { opacity: 0.2; transform: translateX(-6px); } 50% { opacity: 1; transform: translateX(6px); } }

.int-connect-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: var(--card-gap); }
.int-connect-card { padding: var(--card-pad); background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius-lg); display: flex; flex-direction: column; gap: 8px; }
.int-sub { font-family: var(--mono); font-size: 0.65rem; color: var(--primary); }
.connect-hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--card-gap); margin-top: 20px; }
.connect-hero-item { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.connect-hero-item span { font-size: 0.75rem; color: var(--muted-light); font-family: var(--mono); }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--card-gap); align-items: start; }
.price-card { padding: clamp(20px, 3vw, 28px); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); display: flex; flex-direction: column; gap: 12px; position: relative; }
.price-featured { border-color: rgba(124, 58, 237, 0.3); box-shadow: 0 16px 40px rgba(124, 58, 237, 0.1); }
.price-tier { font-size: 0.85rem; font-weight: 600; color: var(--primary); text-transform: uppercase; letter-spacing: 0.04em; font-family: var(--mono); }
.price-amount { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--ink); }
.price-amount span { font-size: 0.85rem; color: var(--muted-light); font-weight: 400; }
.price-badge { position: absolute; top: 16px; right: 16px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); padding: 4px 8px; border-radius: 999px; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.price-features li { font-size: 0.82rem; padding-left: 18px; position: relative; }
.price-features li::before { content: "✓"; position: absolute; left: 0; color: var(--low); font-size: 0.75rem; }
.plan-metrics { display: flex; flex-direction: column; gap: 10px; padding: 12px 0; border-block: 1px solid var(--line); }
.plan-metric span { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--muted-light); }
.plan-metric strong { display: block; font-size: 0.88rem; color: var(--ink); margin: 2px 0 6px; }
.plan-bar { height: 4px; background: var(--bg-alt); border-radius: 999px; overflow: hidden; }
.plan-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--primary), var(--secondary)); border-radius: 999px; }
.billing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--card-gap); }
.billing-card { padding: var(--card-pad); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.billing-card h3 { font-size: 0.95rem; color: var(--ink); margin-bottom: 8px; }
.billing-examples span { font-family: var(--mono); font-size: 0.68rem; color: var(--muted-light); display: block; margin-top: 4px; }
.comparison-wrap { overflow-x: auto; }
.comparison-table { width: 100%; border-collapse: collapse; font-size: 0.82rem; }
.comparison-table th, .comparison-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.comparison-table th { font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; color: var(--muted-light); }

.impact-calculator { display: flex; flex-direction: column; gap: 14px; }
.calc-field span { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.calc-field input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); color: var(--ink); }
.calc-output { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.calc-metric { padding: 14px; background: var(--primary-soft); border: 1px solid rgba(124, 58, 237, 0.15); border-radius: var(--radius); text-align: center; }
.calc-metric strong { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--primary); }
.calc-metric span { font-size: 0.72rem; color: var(--muted-light); }
.calc-note { font-size: 0.75rem; color: var(--muted-light); }

/* About */
.about-hero { padding: clamp(32px, 5vw, 48px) 0; background: var(--card); border-bottom: 1px solid var(--line); }
.about-section { padding: clamp(32px, 5vw, 48px) 0; }
.about-footer { padding: clamp(32px, 5vw, 48px) 0; }
.about-content { display: flex; flex-direction: column; gap: 20px; }
.about-block h3 { font-size: 1rem; color: var(--ink); margin-bottom: 8px; }
.about-block p { font-size: 0.9rem; line-height: 1.65; }
.about-lead { font-size: 1.05rem; }
.about-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.about-stat { padding: 14px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); text-align: center; }
.about-stat strong { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--primary); }
.deck-cta-panel {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px;
  padding: var(--card-pad); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl);
}
.deck-cta-panel h2 { font-size: 1.25rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--card); margin-top: auto; }
.footer-cta { padding: clamp(40px, 6vw, 56px) 0; background: linear-gradient(180deg, var(--bg-alt), var(--card)); border-bottom: 1px solid var(--line); text-align: center; }
.footer-cta h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 10px; }
.footer-cta p { max-width: 520px; margin: 0 auto 20px; }
.footer-cta .btn-row { justify-content: center; }
.footer-wrap { padding: clamp(32px, 5vw, 48px) 0 24px; }
.footer-top { margin-bottom: 28px; max-width: 480px; }
.footer-tagline { font-size: 0.88rem; margin-top: 10px; }
.footer-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin-bottom: 28px; }
.footer-col h5 { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink); margin-bottom: 10px; font-family: var(--mono); }
.footer-col a { display: block; font-size: 0.82rem; color: var(--muted); padding: 4px 0; }
.footer-meta { font-size: 0.75rem; color: var(--muted-light); font-family: var(--mono); }

/* Modals */
.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(15, 23, 42, 0.45); backdrop-filter: blur(4px); }
.site-modal-panel {
  position: relative; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto;
  padding: clamp(24px, 4vw, 32px); background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-xl); box-shadow: 0 24px 48px rgba(124, 58, 237, 0.12);
}
.site-modal-wide { max-width: 560px; }
.site-modal-close {
  position: absolute; top: 14px; right: 14px; width: 32px; height: 32px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-alt);
  cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--muted);
}
.site-modal h2 { font-size: 1.25rem; color: var(--ink); margin-bottom: 8px; }
.site-modal-lead { font-size: 0.88rem; margin-bottom: 16px; }
.site-modal-form { display: flex; flex-direction: column; gap: 14px; }
.form-field label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--card); color: var(--ink);
}
.form-success { font-size: 0.85rem; color: var(--low); margin-top: 8px; }
.form-divider { text-align: center; font-size: 0.78rem; color: var(--muted-light); margin: 4px 0; }
.demo-flow-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.flow-step { display: flex; gap: 12px; padding: 12px; background: var(--bg-alt); border-radius: var(--radius); border: 1px solid var(--line); }
.flow-step span { font-family: var(--mono); font-size: 0.72rem; font-weight: 700; color: var(--primary); }
.flow-step strong { display: block; font-size: 0.85rem; color: var(--ink); }
.flow-step p { font-size: 0.78rem; }
.upload-formats { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.upload-formats span { padding: 6px 10px; background: var(--primary-soft); border-radius: var(--radius); font-family: var(--mono); font-size: 0.72rem; color: var(--primary); }

.board-detail-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px; margin: 16px 0;
}
.board-detail-block { padding: 12px; background: var(--bg-alt); border: 1px solid var(--line); border-radius: var(--radius); }
.board-detail-block span { display: block; font-family: var(--mono); font-size: 0.62rem; text-transform: uppercase; color: var(--muted-light); margin-bottom: 4px; }
.board-detail-block p { font-size: 0.85rem; color: var(--ink); }

/* Auth */
.auth-shell { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; }
.auth-visual {
  padding: clamp(32px, 5vw, 48px); background: linear-gradient(160deg, var(--primary-soft), var(--bg-alt));
  border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 24px;
}
.auth-copy h1 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-bottom: 12px; color: var(--ink); }
.auth-metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: auto; }
.auth-metric { padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.auth-metric strong { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--primary); }
.auth-quote { grid-column: 1 / -1; font-size: 0.85rem; font-style: italic; }
.auth-foot { font-size: 0.72rem; color: var(--muted-light); margin-top: auto; }
.auth-panel { display: grid; place-items: center; padding: clamp(24px, 4vw, 40px); background: var(--bg); }
.auth-wrap { width: 100%; max-width: 400px; }
.auth-wrap h2 { font-size: 1.35rem; margin-bottom: 8px; color: var(--ink); }
.auth-card { margin-top: 24px; padding: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-xl); }
.auth-note { margin-top: 16px; font-size: 0.85rem; }

.reveal { opacity: 0; transform: translateY(12px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.visible, .reveal.is-visible { opacity: 1; transform: none; }
.is-running { animation: pulse-run 0.6s ease; }
@keyframes pulse-run { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

@media (max-width: 1024px) {
  .deck-ranked { grid-template-columns: repeat(2, 1fr); }
  .command-flow { grid-template-columns: 1fr; }
  .flow-stream { width: 100%; height: 40px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .header-row { grid-template-columns: 1fr auto; }
  .nav-main { display: none; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { border-right: none; border-bottom: 1px solid var(--line); }
}
@media (max-width: 640px) {
  .deck-ranked { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
