/* PegPlot — Strategic Map Studio · Digital Planning Wall · Strategy Workshop */

:root {
  --bg: #F4F7F5;
  --ink: #1F2937;
  --primary: #0F766E;
  --accent: #D97706;
  --roadmap: #2563EB;
  --milestone: #9333EA;
  --risk: #DC2626;
  --line: #D1D5DB;
  --muted: #6B7280;
  --bg-soft: #E8EFEB;
  --max: 1200px;
  --gutter: clamp(20px, 4vw, 32px);
  --container: min(var(--max), calc(100% - 2 * var(--gutter)));
  --card-gap: 20px;
  --card-pad: 24px;
  --section-gap: 32px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow: 0 2px 8px rgba(15, 118, 110, 0.06), 0 12px 32px rgba(31, 41, 55, 0.05);
  --shadow-lg: 0 8px 28px rgba(15, 118, 110, 0.1), 0 24px 48px rgba(31, 41, 55, 0.06);
  --display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --primary-soft: rgba(15, 118, 110, 0.1);
  --accent-soft: rgba(217, 119, 6, 0.12);
  --roadmap-soft: rgba(37, 99, 235, 0.1);
  --milestone-soft: rgba(147, 51, 234, 0.1);
  --risk-soft: rgba(220, 38, 38, 0.1);
  --header-h: 68px;
  --announce-h: 40px;
  --site-top-h: calc(var(--announce-h) + var(--header-h));
  --dot-grid: radial-gradient(circle, rgba(15, 118, 110, 0.14) 1px, transparent 1px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
  background-color: var(--bg);
  background-image: var(--dot-grid);
  background-size: 20px 20px;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.auth-page {
  background: var(--bg-soft);
  background-image: none;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
ul { 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;
}

.site-shell main { flex: 1; }

h1, h2, h3, h4, .hero-title, .page-title {
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.muted { color: var(--muted); }
.text-accent { color: var(--primary); }

/* ── Announcement bar ── */
.announce-bar {
  position: relative;
  z-index: 110;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
  min-height: var(--announce-h);
  padding: 8px 16px;
  background: linear-gradient(90deg, var(--ink) 0%, #134E4A 50%, var(--primary) 100%);
  color: rgba(244, 247, 245, 0.92);
  font-size: 0.84rem;
  font-weight: 500;
  text-align: center;
  border-bottom: 1px solid rgba(217, 119, 6, 0.25);
}

.announce-bar span { font-weight: 500; }

.announce-bar a {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  white-space: nowrap;
}

.announce-bar a:hover { color: #FBBF24; }

/* ── Single header (announce-bar + site-header) ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 247, 245, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(15, 118, 110, 0.06);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--header-h);
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}

.brand:hover { color: var(--ink); opacity: 0.92; text-decoration: none; }

.logo-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--primary) 0%, #115E59 100%);
  border: 1px solid rgba(217, 119, 6, 0.3);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.2);
  flex-shrink: 0;
}

.logo-mark svg { width: 22px; height: 22px; display: block; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-text span {
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.nav-main {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0;
  flex: 1;
  justify-content: center;
  min-width: 0;
}

.nav-item { position: relative; }

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 7px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  border: 1px solid transparent;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-item.open .nav-link,
.nav-item:focus-within .nav-link {
  color: var(--ink);
  background: var(--bg-soft);
  border-color: var(--line);
  text-decoration: none;
}

.nav-icon { width: 15px; height: 15px; color: var(--primary); flex-shrink: 0; }
.nav-icon svg { width: 100%; height: 100%; display: block; }

.nav-caret {
  width: 6px;
  height: 6px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
  opacity: 0.45;
  transition: transform 0.2s;
}

.nav-item:hover .nav-caret,
.nav-item.open .nav-caret,
.nav-item:focus-within .nav-caret {
  transform: rotate(225deg) translateY(1px);
  opacity: 0.7;
}

.nav-mega {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: min(720px, calc(100vw - 48px));
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s, transform 0.2s, visibility 0s linear 0.25s;
  z-index: 50;
  overflow: hidden;
}

.nav-item-center .nav-mega { left: 50%; transform: translateX(-50%) translateY(8px); }
.nav-item-center:hover .nav-mega,
.nav-item-center.open .nav-mega,
.nav-item-center:focus-within .nav-mega {
  transform: translateX(-50%) translateY(0);
}

.nav-item-right .nav-mega { left: auto; right: 0; }

.nav-mega::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 0;
  right: 0;
  height: 18px;
}

.nav-item:hover .nav-mega,
.nav-item.open .nav-mega,
.nav-item:focus-within .nav-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
  transition-delay: 0s;
}

.nav-item-center:hover .nav-mega,
.nav-item-center.open .nav-mega,
.nav-item-center:focus-within .nav-mega {
  transform: translateX(-50%) translateY(0);
}

.mega-body {
  display: grid;
  grid-template-columns: 1fr 200px;
  gap: 0;
}

.mega-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 20px;
  padding: 22px 24px;
}

.mega-col-title {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.mega-link:hover { background: var(--bg-soft); text-decoration: none; }

.mega-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}

.mega-link-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.mega-link-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
}

.mega-link-text small {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.4;
}

.mega-promo {
  padding: 22px 20px;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mega-promo strong {
  font-family: var(--display);
  font-size: 1rem;
  color: var(--ink);
}

.mega-promo p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.88rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--primary);
  color: #F4F7F5;
  border-color: #115E59;
  box-shadow: 0 2px 10px rgba(15, 118, 110, 0.22);
}

.btn-primary:hover {
  background: #115E59;
  color: #F4F7F5;
  transform: translateY(-1px);
  text-decoration: none;
}

.btn-secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-soft);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.15);
  text-decoration: none;
}

.btn-sm { min-height: 36px; padding: 0 14px; font-size: 0.8rem; }
.btn-full { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.text-link {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--primary);
}

.text-link:hover { color: var(--ink); }

.eyebrow {
  display: inline-block;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 119, 6, 0.28);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.kicker {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.lead {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 640px;
}

/* ── Home hero (column layout — intro above planning wall) ── */
.home-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 70% 50% at 50% -5%, var(--primary-soft), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
}

.home-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
}

.hero-intro {
  width: 100%;
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.2vw, 2.85rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

@media (min-width: 900px) {
  .hero-title { white-space: nowrap; }
}

.hero-subtitle {
  margin: 0 auto;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 620px;
}

.hero-intro .btn-row { justify-content: center; }

.hero-wall {
  width: 100%;
  max-width: var(--max);
}

/* ── Planning wall (digital strategy canvas) ── */
.planning-wall {
  position: relative;
  width: 100%;
  padding: var(--card-pad);
  background:
    var(--dot-grid),
    linear-gradient(180deg, #FAFCFB 0%, var(--bg) 100%);
  background-size: 18px 18px, 100% 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.planning-wall-compact {
  padding: 20px;
}

.planning-wall-hero {
  margin-top: var(--section-gap);
}

.planning-wall-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1.15fr);
  gap: var(--card-gap);
  align-items: stretch;
  z-index: 1;
}

.planning-wall::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.03) 0%, transparent 50%);
  pointer-events: none;
}

.planning-wall-head {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px dashed var(--line);
}

.planning-wall-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary);
}

.planning-wall-meta {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.planning-wall-body {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.wall-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 8px rgba(31, 41, 55, 0.05);
  min-height: 200px;
}

.wall-label {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--primary);
}

.wall-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--primary);
  font-size: 0.9rem;
  font-weight: 700;
  box-shadow: var(--shadow);
  flex-shrink: 0;
}

.wall-col-map .strategy-map-panel {
  flex: 1;
  padding: 16px;
  border: none;
  box-shadow: none;
  background: transparent;
}

.wall-col-map .strategy-map-panel::before { display: none; }

.wall-col::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -11px;
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0.45;
  z-index: 1;
}

.wall-col:last-child::after { display: none; }

.wall-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.wall-col-head strong {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.02em;
}

.wall-col-head span {
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.wall-col-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.goal-peg {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.goal-peg .peg-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
  flex-shrink: 0;
}

.goal-peg p {
  margin: 4px 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
  grid-column: 2;
}

.goal-peg:hover {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.08);
}

.goal-peg::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--primary);
  border: 2px solid var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.15);
  flex-shrink: 0;
}

.goal-peg.is-milestone::before { background: var(--milestone); border-color: #C084FC; }
.goal-peg.is-roadmap::before { background: var(--roadmap); border-color: #60A5FA; }
.goal-peg.is-risk::before { background: var(--risk); border-color: #F87171; }

.goal-peg strong {
  display: block;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  margin-bottom: 2px;
}

.goal-peg span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

.goal-peg-tag {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 7px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  color: var(--primary);
}

/* ── Engine core (planning pipeline hub) ── */
.engine-pipeline,
.insight-pipeline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(240px, 1fr) auto minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  width: 100%;
}

.pipe-in, .pipe-out, .pipe-mid .engine-core {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
}

.pipe-in h4, .pipe-out h4 {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.pipe-list {
  display: grid;
  gap: 8px;
}

.pipe-list li {
  padding: 8px 12px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.84rem;
  color: var(--ink);
}

.pipe-queues li { border-left: 3px solid var(--roadmap); }
.pipe-insights li { border-left: 3px solid var(--primary); }

.pipe-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.65;
}

.pipe-mid {
  display: flex;
  align-items: stretch;
  min-width: 0;
}

.engine-core {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  padding: 20px 18px;
  text-align: left;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.08) 0%, var(--bg) 100%);
  border: 1px solid rgba(15, 118, 110, 0.28);
  border-radius: var(--radius-lg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 4px 16px rgba(15, 118, 110, 0.1);
}

.engine-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.engine-row span {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.engine-row strong {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
}

.engine-pulse {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
}

.engine-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  animation: engine-pulse 1.4s ease-in-out infinite;
}

@keyframes engine-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

.engine-label {
  display: block;
  font-family: var(--display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 12px;
}

.engine-tags,
.engine-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
}

.engine-tags span,
.engine-tags-grid span {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
}

/* ── Strategy map panel ── */
.strategy-map-panel {
  position: relative;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.strategy-map-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--dot-grid);
  background-size: 16px 16px;
  opacity: 0.5;
  pointer-events: none;
}

.strategy-map-panel > * { position: relative; z-index: 1; }

.strategy-map-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.strategy-map-panel-head h3 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
}

/* ── Strategy map (SVG node graph) ── */
.strategy-map {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.strategy-map-panel .strategy-map {
  min-height: 220px;
}

.map-edge {
  fill: none;
  stroke: #2563EB;
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.65;
}

rect.map-node,
circle.map-node {
  stroke-width: 1.5;
}

rect.map-node-goal,
.map-node-goal {
  fill: rgba(15, 118, 110, 0.12);
  stroke: #0F766E;
}

rect.map-node-theme,
.map-node-theme {
  fill: rgba(37, 99, 235, 0.12);
  stroke: #2563EB;
}

rect.map-node-init,
.map-node-init {
  fill: rgba(37, 99, 235, 0.1);
  stroke: #2563EB;
}

circle.map-node-milestone,
.map-node-milestone {
  fill: rgba(147, 51, 234, 0.14);
  stroke: #9333EA;
}

text.map-text,
.map-text {
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  fill: #1F2937;
}

text.map-text-sm,
.map-text-sm {
  font-family: Inter, system-ui, sans-serif;
  font-size: 9px;
  font-weight: 700;
  fill: #1F2937;
}

text.map-layer-label,
.map-layer-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 8px;
  fill: #6B7280;
}

.map-legend .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
  vertical-align: middle;
}

.dot-goal { background: #0F766E; }
.dot-theme { background: #2563EB; }
.dot-milestone { background: #9333EA; }
.dot-roadmap { background: #2563EB; }

.map-node {
  cursor: default;
}

.map-node circle,
.map-node rect {
  fill: var(--bg);
  stroke: var(--primary);
  stroke-width: 2;
}

.map-node.is-milestone circle { stroke: var(--milestone); fill: var(--milestone-soft); }
.map-node.is-roadmap circle { stroke: var(--roadmap); fill: var(--roadmap-soft); }
.map-node.is-risk circle { stroke: var(--risk); fill: var(--risk-soft); }
.map-node.is-accent circle { stroke: var(--accent); fill: var(--accent-soft); }

.map-node text {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  fill: var(--ink);
}

.map-node-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  fill: var(--muted);
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
}

.map-legend .leg-milestone::before { background: var(--milestone); }
.map-legend .leg-roadmap::before { background: var(--roadmap); }
.map-legend .leg-risk::before { background: var(--risk); }

/* ── Initiative board ── */
.initiative-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
  padding: var(--card-pad);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.initiative-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 4px;
}

.initiative-head strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.initiative-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.initiative-fields > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.initiative-fields span {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.initiative-fields strong {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
}

.initiative-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.initiative-board-head {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}

.initiative-board-head h4 {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.initiative-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.initiative-card:hover {
  border-color: rgba(15, 118, 110, 0.3);
  transform: translateY(-2px);
}

.initiative-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.initiative-card h5 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.initiative-card p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.initiative-card-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.64rem;
  color: var(--muted);
}

.initiative-card.is-blocked { border-left: 3px solid var(--risk); }
.initiative-card.is-active { border-left: 3px solid var(--primary); }
.initiative-card.is-planned { border-left: 3px solid var(--roadmap); }

/* ── Roadmap timeline ── */
.roadmap-timeline {
  position: relative;
  padding: 24px 16px 8px;
}

.roadmap-timeline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
}

.roadmap-timeline-head h4 {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.timeline-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  padding-top: 28px;
}

.timeline-track::before {
  content: "";
  position: absolute;
  top: 36px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--roadmap), var(--milestone));
  border-radius: 999px;
  opacity: 0.5;
}

.timeline-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  text-align: center;
}

.timeline-node::before {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--roadmap);
  box-shadow: 0 0 0 4px var(--roadmap-soft);
  z-index: 1;
}

.timeline-node.is-current::before {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-soft);
  background: var(--primary);
}

.timeline-node.is-milestone::before {
  border-color: var(--milestone);
  box-shadow: 0 0 0 4px var(--milestone-soft);
}

.timeline-node-label {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.timeline-node strong {
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
}

.timeline-node span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.45;
}

/* ── Dependency graph ── */
.dependency-graph {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-rows: auto auto auto;
  gap: 16px 24px;
  align-items: center;
  padding: 28px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.dep-node {
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.dep-node.is-hub {
  grid-column: 2;
  grid-row: 2;
  border-color: var(--primary);
  background: linear-gradient(180deg, var(--primary-soft), var(--bg));
}

.dep-node.is-upstream { grid-column: 1; grid-row: 2; }
.dep-node.is-downstream { grid-column: 3; grid-row: 2; }
.dep-node.is-blocker { border-color: var(--risk); background: var(--risk-soft); }

.dep-connector {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 1.1rem;
  opacity: 0.55;
}

.dep-connector-h { grid-column: 2; grid-row: 1; }
.dep-connector-v { grid-column: 2; grid-row: 3; }

/* ── Risk grid ── */
.risk-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.risk-cell {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  min-height: 100px;
}

.risk-cell-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.risk-cell-head strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.risk-cell p {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.5;
}

.risk-cell.is-high { border-left: 3px solid var(--risk); background: var(--risk-soft); }
.risk-cell.is-medium { border-left: 3px solid var(--accent); background: var(--accent-soft); }
.risk-cell.is-low { border-left: 3px solid var(--primary); }

.risk-matrix-wrap {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.risk-layout {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
  align-items: start;
}

/* ── Milestone list ── */
.milestone-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
}

.milestone-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.milestone-item:last-child { border-bottom: 0; }

.milestone-marker {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--milestone-soft);
  border: 2px solid var(--milestone);
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--milestone);
}

.milestone-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}

.milestone-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.milestone-date {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.milestone-item.is-complete .milestone-marker {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary);
}

/* ── Brief doc ── */
.brief-doc,
.brief-preview {
  display: grid;
  gap: 14px;
  padding: 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.brief-doc-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 2px solid var(--line);
}

.brief-doc-head h4 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  color: var(--ink);
}

.brief-id {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.brief-lead {
  margin: 0;
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.6;
}

.brief-field + .brief-field {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.brief-field h5 {
  margin: 0 0 8px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.brief-bullets,
.brief-findings,
.ui-list,
.ui-steps {
  margin: 0;
  padding-left: 18px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.brief-bullets li,
.brief-findings li,
.ui-list li,
.ui-steps li { margin-bottom: 5px; }

.brief-footer {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

/* ── Quarterly review ── */
.quarterly-review {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 24px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.quarter-panel {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.quarter-panel h4 {
  margin: 0 0 12px;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--primary);
  padding-bottom: 10px;
  border-bottom: 1px dashed var(--line);
}

.quarter-metric {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
}

.quarter-metric:last-child { border-bottom: 0; }

.quarter-metric span { color: var(--muted); }
.quarter-metric strong { color: var(--ink); font-weight: 700; }

.quarter-callout {
  grid-column: 1 / -1;
  padding: 16px 20px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-lg);
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.55;
}

/* ── Product flowchart ── */
.product-flowchart {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.fc-row {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  justify-content: center;
  gap: 12px;
}

.fc-row-mid { justify-content: center; }

.fc-node {
  flex: 1 1 200px;
  max-width: 280px;
  padding: 20px 22px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.fc-node strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.fc-node p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.55;
}

.fc-goal { border-left: 3px solid var(--primary); }
.fc-ai { border-left: 3px solid var(--accent); }
.fc-plan { border-left: 3px solid var(--roadmap); }
.fc-road { border-left: 3px solid var(--milestone); }
.fc-exec { border-left: 3px solid var(--primary); }

.fc-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  min-width: 28px;
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.55;
}

.flowchart-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 20px;
  min-width: 120px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}

.flowchart-step strong {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.flowchart-step span {
  font-size: 0.74rem;
  color: var(--muted);
  line-height: 1.4;
}

.flowchart-num {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #F4F7F5;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.flowchart-connector {
  color: var(--primary);
  font-size: 1.2rem;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ── Planning flow ── */
.planning-flow {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
  padding: var(--card-pad);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.flow-step,
.planning-flow-step {
  min-width: 0;
  max-width: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.flow-num,
.planning-flow-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-soft);
  color: var(--primary);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 700;
}

.flow-step strong,
.planning-flow-step strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
}

.flow-step p,
.planning-flow-step span {
  margin: 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.flow-arrow {
  display: none;
}

.planning-flow::before { display: none; }

/* ── Status badges ── */
.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-active, .status-badge.status-active {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.25);
}

.status-planned, .status-badge.status-planned {
  background: var(--roadmap-soft);
  color: var(--roadmap);
  border-color: rgba(37, 99, 235, 0.25);
}

.status-milestone, .status-badge.status-milestone {
  background: var(--milestone-soft);
  color: var(--milestone);
  border-color: rgba(147, 51, 234, 0.25);
}

.status-risk, .status-badge.status-risk {
  background: var(--risk-soft);
  color: var(--risk);
  border-color: rgba(220, 38, 38, 0.25);
}

.status-blocked, .status-badge.status-blocked {
  background: var(--risk-soft);
  color: var(--risk);
  border-color: rgba(220, 38, 38, 0.3);
}

.status-ok, .status-badge.status-ok {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: rgba(15, 118, 110, 0.25);
}

.status-pending, .status-badge.status-pending {
  background: rgba(217, 119, 6, 0.12);
  color: var(--accent);
  border-color: rgba(217, 119, 6, 0.28);
}

.status-warn, .status-badge.status-warn {
  background: rgba(217, 119, 6, 0.12);
  color: #B45309;
  border-color: rgba(217, 119, 6, 0.35);
}

.status-high, .status-badge.status-high {
  background: var(--risk-soft);
  color: var(--risk);
  border-color: rgba(220, 38, 38, 0.25);
}

.status-info, .status-badge.status-info {
  background: var(--roadmap-soft);
  color: var(--roadmap);
  border-color: rgba(37, 99, 235, 0.25);
}

.st-high, .st-critical, .st-medium, .st-low {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.st-critical { background: var(--risk-soft); color: var(--risk); }
.st-high { background: var(--accent-soft); color: var(--accent); }
.st-medium { background: var(--roadmap-soft); color: var(--roadmap); }
.st-low { background: var(--primary-soft); color: var(--primary); }

.scenario-signal {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
}

/* ── UI panel library ── */
.ui-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ui-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ink);
}

.ui-panel-body { padding: 18px 20px; }

.ui-badge {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 4px;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid rgba(15, 118, 110, 0.2);
  white-space: nowrap;
}

.ui-label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.ui-alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-soft);
  font-size: 0.88rem;
  margin-top: 16px;
}

.ui-alert strong { color: var(--ink); }

.ui-alert-ok {
  border-color: rgba(15, 118, 110, 0.28);
  background: var(--primary-soft);
  color: var(--primary);
}

.ui-alert-warn {
  border-color: rgba(217, 119, 6, 0.28);
  background: var(--accent-soft);
  color: var(--accent);
}

.ui-alert-info {
  border-color: rgba(37, 99, 235, 0.22);
  background: var(--roadmap-soft);
  color: var(--roadmap);
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.ui-table th,
.ui-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.ui-table th {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-soft);
}

.progress-track {
  height: 8px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
}

.progress-label {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

/* ── Page hero & showcase ── */
.page-hero {
  padding: 56px 0 48px;
  background:
    radial-gradient(ellipse 60% 45% at 20% 0%, var(--primary-soft), transparent),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero-compact { padding: 44px 0 36px; }

.page-title {
  margin: 0 0 14px;
  font-size: clamp(1.85rem, 3.5vw, 2.6rem);
  line-height: 1.12;
  max-width: 720px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--muted);
}

.breadcrumb a { color: var(--primary); font-weight: 500; }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb span:last-child { color: var(--ink); }

.page-showcase {
  padding: 56px 0;
  background: var(--bg);
}

.page-showcase .container {
  display: flex;
  flex-direction: column;
  gap: var(--card-gap);
}

.feature-frame {
  padding: clamp(24px, 3vw, 32px);
  background: var(--bg);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

.feature-frame > .ui-panel,
.feature-frame > .map-builder,
.feature-frame > .initiative-board,
.feature-frame > .roadmap-timeline,
.feature-frame > .brief-doc,
.feature-frame > .quarterly-review,
.feature-frame > .planning-wall {
  margin: 0;
}

.feature-frame > .roadmap-timeline {
  padding: 8px 12px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.ui-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.ui-panel-body { padding: 22px 24px; }

.page-showcase .container > .feature-frame,
.page-showcase .container > [data-strategy-demo] > .feature-frame,
.page-showcase .container > [data-roadmap-demo] > .feature-frame,
.page-showcase .container > [data-initiative-demo] > .feature-frame,
.page-showcase .container > [data-dependency-demo] > .feature-frame,
.page-showcase .container > [data-brief-demo] > .feature-frame {
  margin-top: 0;
}

.section, .page-body, .is-alt { padding: 56px 0; }
.section.alt, .is-alt {
  background: var(--bg-soft);
  border-block: 1px solid var(--line);
}

.page-showcase + .is-alt { border-top: 0; }

.is-alt .section-inline-title { margin-bottom: 28px; }

.is-alt + .section.alt.tight { padding-top: 48px; }

.section.tight, .section.alt.tight { padding: 48px 0; }

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

.section-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.8vw, 2rem);
  line-height: 1.2;
}

.section-head p {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  line-height: 1.65;
}

.section-inline-title {
  margin: 0 0 24px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.section-sub {
  margin: -12px 0 28px;
  color: var(--muted);
  font-size: 0.95rem;
}

.section-cta-link {
  text-align: center;
  margin: 20px 0 0;
}

/* ── Team scenario grid ── */
.team-scenario-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}

.team-scenario {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.team-scenario:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow);
}

.team-scenario h4 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink);
}

.team-scenario p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Integration & control grids ── */
.int-grid,
.control-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.int-card,
.control-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s;
}

.int-card:hover,
.control-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
}

.int-card h3,
.control-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.int-card p,
.control-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.55;
}

.int-read span,
.int-write span {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
  margin-right: 6px;
}

.int-card .btn { margin-top: 12px; }

/* ── Pain list ── */
.pain-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg);
  box-shadow: var(--shadow);
}

.pain-item {
  padding: 28px 32px;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}

.pain-item:nth-child(2n) { border-right: 0; }
.pain-item:nth-last-child(-n+2) { border-bottom: 0; }

.pain-item h3 {
  margin: 6px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.pain-item p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Bento grid ── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.bento {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bento:hover {
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: var(--shadow);
}

.bento.large { grid-column: span 3; }
.bento.small { grid-column: span 2; }

.bento h3 {
  margin: 8px 0 8px;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--ink);
}

.bento p {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Dept grid ── */
.dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.dept-card {
  padding: 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, transform 0.15s;
}

.dept-card:hover {
  border-color: rgba(15, 118, 110, 0.28);
  transform: translateY(-2px);
}

.dept-card h3 {
  margin: 8px 0 8px;
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}

.dept-card p {
  margin: 0 0 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Pricing, use rows, integrations ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

.plan-card,
.pricing-card {
  position: relative;
  padding: 28px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.plan-card.is-featured,
.pricing-card.pricing-featured {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);
}

.plan-badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid rgba(217, 119, 6, 0.28);
}

.plan-card h3,
.pricing-card h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}

.plan-card > p,
.pricing-card > p {
  margin: 0 0 16px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.5;
  flex: 1;
}

.plan-price,
.pricing-card .price {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 2.1rem;
  color: var(--ink);
  line-height: 1;
}

.plan-price span,
.pricing-card .price span {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.plan-features,
.pricing-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--muted);
}

.plan-features li,
.pricing-card ul li {
  padding-left: 18px;
  position: relative;
}

.plan-features li::before,
.pricing-card ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
}

.plan-card .btn,
.pricing-card .btn { margin-top: auto; }

.use-rows { display: grid; gap: 10px; }

.use-row {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: border-color 0.15s;
}

.use-row:hover { border-color: rgba(15, 118, 110, 0.25); }

.use-num {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.use-row h3 {
  margin: 0 0 6px;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.use-row p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

.integration-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
  padding: 20px 0 32px;
}

.integration-logo {
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.spec-callout {
  padding: 24px 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
  font-size: 0.95rem;
  color: var(--ink);
  line-height: 1.6;
  box-shadow: var(--shadow);
}

.spec-callout strong { color: var(--primary); }

.triptych-mock {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.about-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.about-aside { display: grid; gap: 16px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card,
.about-cta-panel {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.stat-card strong {
  display: block;
  font-family: var(--display);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: 4px;
}

.stat-card span {
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Sub CTA & home CTA (centered column) ── */
.sub-cta,
.home-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 20px;
  width: 100%;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 60%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

/* Legacy: home-cta class on section (index before rebuild) */
section.home-cta {
  padding: 40px 0;
  background: transparent;
  border: none;
  box-shadow: none;
}
section.home-cta > .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 20px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--bg-soft) 0%, var(--bg) 60%);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
section.home-cta .btn-row { justify-content: center; margin-top: 0; }
section.home-cta p { max-width: 520px; margin: 0; }

.sub-cta h3,
.home-cta h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.45rem;
  color: var(--ink);
}

.sub-cta p,
.home-cta p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.55;
  max-width: 520px;
}

.sub-cta .btn-row,
.home-cta .btn-row {
  margin-top: 0;
  justify-content: center;
}

/* ── Auth shell (split signin layout) ── */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.auth-visual {
  padding: 48px;
  background: linear-gradient(155deg, var(--ink) 0%, #134E4A 45%, var(--primary) 100%);
  color: #F4F7F5;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.auth-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    var(--dot-grid),
    radial-gradient(circle at 15% 85%, rgba(217, 119, 6, 0.15), transparent 45%),
    radial-gradient(circle at 85% 15%, rgba(15, 118, 110, 0.2), transparent 40%);
  background-size: 18px 18px, 100% 100%, 100% 100%;
  opacity: 0.6;
  pointer-events: none;
}

.auth-visual > * { position: relative; z-index: 1; }

.auth-visual h1 {
  margin: 32px 0 12px;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  line-height: 1.15;
  color: #F4F7F5;
}

.auth-visual p {
  margin: 0;
  color: rgba(244, 247, 245, 0.75);
  max-width: 380px;
  line-height: 1.65;
}

.auth-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 36px;
}

.auth-stat {
  padding: 18px;
  background: rgba(244, 247, 245, 0.08);
  border: 1px solid rgba(217, 119, 6, 0.2);
  border-radius: var(--radius-lg);
}

.auth-stat strong {
  display: block;
  font-family: var(--mono);
  font-size: 1.3rem;
  color: var(--accent);
}

.auth-stat span {
  display: block;
  font-size: 0.78rem;
  color: rgba(244, 247, 245, 0.6);
  margin-top: 4px;
}

.auth-visual-foot {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(244, 247, 245, 0.45);
}

.auth-top-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(244, 247, 245, 0.9);
  text-decoration: none;
}

.auth-top-link .brand-text strong { color: #F4F7F5; }
.auth-top-link:hover { color: #F4F7F5; text-decoration: none; }

.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}

.auth-form-wrap {
  width: min(100%, 400px);
}

.auth-form-wrap h2 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  color: var(--ink);
}

.auth-form-wrap .lead {
  margin-bottom: 28px;
  font-size: 0.92rem;
}

.auth-card {
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.auth-footer-note {
  text-align: center;
  margin-top: 20px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ── Forms ── */
.form,
.site-modal-form {
  display: grid;
  gap: 16px;
}

.form-group,
.form-field {
  display: grid;
  gap: 6px;
}

.form-group label,
.form-field label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.form-group input,
.form-group select,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.form-group input:focus,
.form-group select:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.form-divider {
  text-align: center;
  font-size: 0.82rem;
  color: var(--muted);
  position: relative;
}

.form-divider::before,
.form-divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 24px);
  height: 1px;
  background: var(--line);
}

.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

.form-success {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.25);
  color: var(--primary);
  font-size: 0.86rem;
  font-weight: 600;
}

/* ── Modals ── */
body.modal-open { overflow: hidden; }

.site-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.site-modal:not([hidden]) { display: flex; }

.site-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 41, 55, 0.55);
  backdrop-filter: blur(4px);
}

.site-modal-panel {
  position: relative;
  width: min(480px, 100%);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  padding: 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.site-modal-wide { width: min(720px, 100%); }

.site-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.site-modal-close:hover {
  background: var(--line);
  color: var(--ink);
}

.site-modal h2 {
  margin: 0 32px 8px 0;
  font-size: 1.45rem;
  color: var(--ink);
}

.site-modal-lead {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.55;
}

.demo-flow { display: grid; gap: 10px; }

.demo-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 14px;
  align-items: start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-soft);
  opacity: 0.65;
  transition: opacity 0.2s, border-color 0.2s;
}

.demo-step.is-active {
  opacity: 1;
  border-color: rgba(15, 118, 110, 0.35);
  background: var(--bg);
  box-shadow: var(--shadow);
}

.demo-step > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #F4F7F5;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

.demo-step strong {
  display: block;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 3px;
}

.demo-step p {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* ── Footer (multi-column — copyright only, no bottom links row) ── */
.site-footer {
  background: var(--ink);
  color: rgba(244, 247, 245, 0.72);
  padding: 56px 0 28px;
  margin-top: auto;
}

.footer-wrap { display: flex; flex-direction: column; }

.footer-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px 32px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(244, 247, 245, 0.1);
  margin-bottom: 40px;
}

.footer-top .brand-text strong { color: #F4F7F5; }
.footer-top .brand-text span { color: rgba(244, 247, 245, 0.5); }

.footer-tagline {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: rgba(244, 247, 245, 0.62);
  max-width: 520px;
}

.footer-cta { flex-shrink: 0; white-space: nowrap; }

.footer-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 24px;
  margin-bottom: 40px;
}

.footer-col h5 {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-col a {
  display: block;
  padding: 4px 0;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(244, 247, 245, 0.55);
  transition: color 0.15s;
}

.footer-col a:hover { color: var(--accent); text-decoration: none; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 24px;
  border-top: 1px solid rgba(244, 247, 245, 0.1);
}

.footer-meta {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(244, 247, 245, 0.45);
  line-height: 1.5;
  text-align: center;
}

/* ── Reveal animations ── */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible,
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Bento icon + use cases ── */
.bento-icon {
  display: block;
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 8px;
}

.bento.small { grid-column: span 2; }

.use-case-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.use-case {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.use-case strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

.use-case p {
  margin: 0;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ── Home integrations ── */
.integrations-home {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.int-home-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.int-home-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.int-home-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ── Product contrast ── */
.contrast-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contrast-col {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
}

.contrast-yes {
  background: var(--primary-soft);
  border-color: rgba(15, 118, 110, 0.22);
}

.contrast-no {
  background: var(--bg-soft);
}

.contrast-label {
  display: block;
  margin-bottom: 12px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.contrast-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.65;
}

/* ── Strategy map builder ── */
.map-builder {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.map-builder-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-soft);
}

.map-builder-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--muted);
}

.map-builder-meta span {
  padding: 4px 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.map-builder-body { padding: 16px; }

.strategy-map-large { width: 100%; height: auto; }

.map-node-init {
  fill: rgba(37, 99, 235, 0.12);
  stroke: var(--roadmap);
  stroke-width: 1.2;
}

.map-edge-dep { stroke: var(--accent); stroke-width: 1.5; }

.map-layer-label {
  font-family: var(--mono);
  font-size: 8px;
  fill: var(--muted);
  letter-spacing: 0.04em;
}

.map-builder-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
  font-size: 0.78rem;
  color: var(--muted);
}

.legend-dep { font-family: var(--mono); font-size: 0.72rem; }

.dot-roadmap { background: var(--roadmap); }

/* ── Priority analysis ── */
.priority-panel {
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.priority-panel h3 {
  margin: 0 0 14px;
  font-size: 1rem;
  color: var(--ink);
}

.priority-list { display: flex; flex-direction: column; gap: 10px; }

.priority-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.priority-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
}

.priority-row p {
  margin: 4px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.priority-score {
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
}

.priority-deferred { opacity: 0.72; }

.priority-deferred .priority-rank {
  background: var(--muted);
}

/* ── Quarter compare ── */
.quarter-compare {
  margin-top: 16px;
  padding: 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.quarter-compare h3 {
  margin: 0 0 14px;
  font-size: 1rem;
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.compare-col {
  padding: 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.compare-col-current {
  border-color: rgba(15, 118, 110, 0.35);
  box-shadow: 0 0 0 1px rgba(15, 118, 110, 0.08);
}

.compare-label {
  display: block;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.compare-col ul {
  margin: 0;
  padding-left: 18px;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--ink);
}

/* ── About planning wall ── */
.page-hero-about { padding-bottom: 48px; }

.about-wall-section { padding: 48px 0 64px; }

.about-wall {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 32px;
  align-items: start;
}

.about-wall-rail {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 48px;
  padding-top: 8px;
}

.wall-rail-line {
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 50%;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), var(--accent));
  transform: translateX(-50%);
  opacity: 0.35;
  z-index: 0;
}

.wall-peg-marker {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--line);
}

.wall-peg-marker.is-active {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.15);
}

.about-wall-steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.wall-step {
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border-left: 3px solid var(--primary);
}

.wall-step-num {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.wall-step h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.35rem;
  color: var(--ink);
}

.wall-step p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.65;
}

.wall-step-note {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-soft);
  border-radius: var(--radius-md);
  font-size: 0.86rem;
  color: var(--ink);
}

.wall-step-note span {
  display: block;
  margin-bottom: 4px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.wall-principles {
  margin: 12px 0 0;
  padding-left: 18px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink);
}

.about-pinned {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 16px;
  margin-top: 40px;
  align-items: stretch;
}

.pinned-card {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
  transform: rotate(-0.5deg);
}

.pinned-card:nth-child(2) { transform: rotate(0.4deg); }

.pinned-card:nth-child(3) { transform: rotate(-0.3deg); }

.pinned-stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 20px;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.22);
  border-radius: var(--radius-md);
}

.pinned-stats div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.pinned-stats strong {
  font-family: var(--display);
  font-size: 1.4rem;
  color: var(--primary);
}

.pinned-stats span {
  font-size: 0.78rem;
  color: var(--muted);
}

.about-workshop-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 36px 40px;
  background:
    radial-gradient(circle at 10% 50%, rgba(15, 118, 110, 0.08), transparent 40%),
    var(--bg-soft);
  border: 1px dashed rgba(15, 118, 110, 0.35);
  border-radius: var(--radius-lg);
}

.about-workshop-cta h2 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-size: 1.4rem;
}

.about-workshop-cta p {
  margin: 0;
  color: var(--muted);
  max-width: 480px;
}

/* ── UI output aliases (match ui.py HTML classes) ── */
.page-hero .lead {
  margin: 0 0 24px;
  max-width: 640px;
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-hero .btn-row { margin-top: 8px; }

.milestone-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}

.milestone-row:last-of-type { border-bottom: 0; }

.milestone-date {
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
}

.milestone-body strong {
  display: block;
  font-size: 0.92rem;
  color: var(--ink);
  margin-bottom: 4px;
}

.milestone-body span {
  font-size: 0.8rem;
  color: var(--muted);
}

.milestone-alert {
  margin-top: 16px;
  padding: 14px 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(217, 119, 6, 0.25);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  color: var(--ink);
}

.risk-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--card-gap);
}

.risk-card {
  padding: 22px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.risk-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.risk-cat {
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--risk);
}

.risk-card-body {
  display: grid;
  gap: 14px;
}

.risk-card-body > div span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.risk-card-body p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink);
}

.brief-header {
  padding-bottom: 18px;
  margin-bottom: 18px;
  border-bottom: 2px solid var(--line);
}

.brief-label {
  display: block;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--primary);
}

.brief-doc section {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.brief-doc section:last-of-type { border-bottom: 0; }

.brief-doc h4 {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}

.brief-list,
.brief-steps {
  margin: 0;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.65;
  color: var(--ink);
}

.blueprint-doc {
  display: grid;
  gap: 14px;
}

.bp-section {
  padding: 14px 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.bp-section p {
  margin: 6px 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink);
}

.bp-footer { margin-top: 8px; }

.qr-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.qr-stat {
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: var(--shadow);
}

.qr-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 2rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 6px;
}

.qr-stat span {
  font-size: 0.82rem;
  color: var(--muted);
}

.qr-delayed strong { color: var(--accent); }
.qr-adjust strong { color: var(--roadmap); }

.qr-sections {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--card-gap);
}

.quarterly-review {
  display: block;
  padding: var(--card-pad);
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
}

.scenario-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid rgba(15, 118, 110, 0.2);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary);
}

.team-scenario h3 {
  margin: 0 0 8px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

.team-scenario-grid { gap: var(--card-gap); }

.team-scenario {
  padding: 22px;
}

.startup-roadmap .sr-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
  margin-bottom: var(--card-gap);
}

.sr-phase {
  padding: 18px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.sr-phase span {
  display: block;
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.sr-phase strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.sr-phase p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
}

.sr-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--card-gap);
}

.sr-metrics > div {
  padding: 16px;
  text-align: center;
  background: var(--primary-soft);
  border-radius: var(--radius-md);
}

.sr-metrics strong {
  display: block;
  font-family: var(--display);
  font-size: 1.5rem;
  color: var(--primary);
}

.sr-metrics span {
  font-size: 0.78rem;
  color: var(--muted);
}

.dependency-graph {
  padding: 8px;
}

.dep-svg {
  width: 100%;
  height: auto;
  display: block;
}

.dep-legend {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}

.dep-legend strong { color: var(--ink); }

.int-status {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--primary);
}

.int-grid,
.control-grid {
  gap: var(--card-gap);
}

.int-card,
.control-card {
  padding: 22px;
  box-shadow: var(--shadow);
}

.int-card strong,
.control-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: var(--ink);
}

.dept-card {
  padding: 24px;
}

.dept-card strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1rem;
  color: var(--ink);
}

.pricing-grid { gap: var(--card-gap); }

.pain-list { gap: 0; }

.pain-item {
  padding: 28px 24px;
}

.sub-cta {
  padding: 32px 36px;
  gap: 24px;
}

.home-hero {
  padding: 48px 0 56px;
}

.home-hero .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.hero-intro {
  text-align: center;
  max-width: 720px;
  padding: 0 8px;
}

.hero-wall {
  width: 100%;
  padding: 0 var(--gutter);
  max-width: calc(var(--max) + 2 * var(--gutter));
}

.roadmap-timeline {
  padding: var(--card-pad);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow-x: auto;
}

.timeline-quarters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 8px;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.roadmap-timeline .timeline-track {
  display: block;
  position: relative;
  height: 96px;
  margin: 28px 0 36px;
  padding: 0 52px;
}

.roadmap-timeline .timeline-track::before { display: none; }

.timeline-line {
  position: absolute;
  top: 32px;
  left: 52px;
  right: 52px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--roadmap), var(--milestone));
  border-radius: 999px;
  opacity: 0.45;
}

.roadmap-timeline .timeline-node {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  max-width: 108px;
  padding: 0;
}

.roadmap-timeline .timeline-node::before { display: none; }

.roadmap-timeline .timeline-node strong {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.35;
  text-align: center;
  overflow-wrap: break-word;
}

.node-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--roadmap);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--roadmap-soft);
}

.timeline-node-milestone .node-dot {
  background: var(--milestone);
  box-shadow: 0 0 0 2px var(--milestone-soft);
}

.timeline-months {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  font-family: var(--mono);
  font-size: 0.58rem;
  color: var(--muted);
  text-align: center;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 0.78rem;
  color: var(--muted);
}

.legend-roadmap::before,
.legend-milestone::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

.legend-roadmap::before { background: var(--roadmap); }
.legend-milestone::before { background: var(--milestone); }

.ui-alert {
  margin-top: var(--card-gap);
  padding: 14px 18px;
  border-radius: var(--radius-md);
}

.map-builder {
  box-shadow: none;
  border: none;
  background: transparent;
}

.map-builder-body {
  padding: 8px 0 0;
}

/* ── Responsive: 960px ── */
@media (max-width: 960px) {
  .announce-bar { font-size: 0.8rem; padding: 10px 14px; }

  .header-row {
    flex-wrap: wrap;
    justify-content: center;
    padding: 10px 0;
    min-height: auto;
  }

  .nav-main {
    order: 3;
    width: 100%;
    justify-content: center;
  }

  .home-hero .container { gap: 36px; }
  .hero-title { white-space: normal; }

  .planning-wall-canvas {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .wall-connector {
    transform: rotate(90deg);
    margin: 0 auto;
  }

  .planning-wall-body { grid-template-columns: repeat(2, 1fr); }
  .wall-col::after { display: none; }

  .engine-pipeline,
  .insight-pipeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .pipe-arrow { transform: rotate(90deg); justify-content: center; }

  .initiative-board { grid-template-columns: 1fr; }
  .timeline-track { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .timeline-track::before { display: none; }

  .dependency-graph {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
  }

  .dep-node.is-hub,
  .dep-node.is-upstream,
  .dep-node.is-downstream {
    grid-column: 1;
    grid-row: auto;
  }

  .risk-grid { grid-template-columns: 1fr 1fr; }
  .risk-layout { grid-template-columns: 1fr; }
  .risk-matrix-wrap { order: -1; }

  .quarterly-review { grid-template-columns: 1fr; }
  .planning-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planning-flow::before { display: none; }

  .product-flowchart { flex-direction: column; }
  .flowchart-connector { transform: rotate(90deg); }

  .pain-list { grid-template-columns: 1fr; }
  .pain-item { border-right: 0 !important; }
  .pain-item:last-child { border-bottom: 0; }

  .bento-grid { grid-template-columns: 1fr; }
  .bento.large, .bento.small { grid-column: span 1; }
  .contrast-panel { grid-template-columns: 1fr; }
  .about-wall { grid-template-columns: 1fr; }
  .about-wall-rail { display: none; }
  .about-pinned { grid-template-columns: 1fr 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .about-workshop-cta { flex-direction: column; align-items: flex-start; }

  .pricing-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr 1fr; }

  .int-grid, .control-grid { grid-template-columns: 1fr 1fr; }

  .sub-cta, .home-cta { padding: 28px 24px; }

  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { padding: 32px; min-height: auto; }
  .auth-stats { grid-template-columns: 1fr 1fr; }

  .footer-top {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-tagline { max-width: none; }
  .footer-cta { justify-self: center; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }

  .triptych-mock { grid-template-columns: 1fr; }
  .about-split { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }

  .mega-body { grid-template-columns: 1fr; }
  .mega-grid { grid-template-columns: 1fr 1fr; }
  .mega-promo { border-left: 0; border-top: 1px solid var(--line); }
}

/* ── Responsive: 900px ── */
@media (max-width: 900px) {
  .header-actions .nav-link { display: none; }

  .nav-main {
    gap: 0;
    overflow-x: auto;
    flex-wrap: nowrap;
    justify-content: flex-start;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .nav-main::-webkit-scrollbar { display: none; }

  .page-hero { padding: 40px 0 32px; }
  .section, .page-body, .page-showcase, .is-alt { padding: 40px 0; }

  .planning-wall-body { grid-template-columns: 1fr; }
  .planning-wall { padding: 20px 16px 24px; }

  .planning-wall-canvas { grid-template-columns: 1fr; }
  .wall-connector { transform: rotate(90deg); margin: 8px auto; }

  .qr-summary,
  .qr-sections,
  .startup-roadmap .sr-track,
  .sr-metrics { grid-template-columns: 1fr; }

  .initiative-fields { grid-template-columns: 1fr; }

  .team-scenario-grid { grid-template-columns: 1fr; }
  .int-grid, .control-grid { grid-template-columns: 1fr; }
  .dept-grid { grid-template-columns: 1fr; }
  .risk-grid { grid-template-columns: 1fr; }

  .timeline-track { grid-template-columns: 1fr; }

  .use-row { grid-template-columns: 44px 1fr; padding: 16px 18px; }

  .planning-flow { grid-template-columns: 1fr; }

  .feature-frame { padding: 16px; }
  .site-modal-panel { padding: 24px 20px; }

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

  .ui-table { display: block; overflow-x: auto; }
  .compare-table { display: block; overflow-x: auto; }
}
