:root {
  color-scheme: light;
  --ink: #1d2520;
  --muted: #627067;
  --soft: #f6f0e5;
  --paper: #fffaf1;
  --panel: #ffffff;
  --line: #e4d8c6;
  --olive: #546b4b;
  --olive-dark: #324733;
  --gold: #c8943d;
  --clay: #b96f4b;
  --blue: #476c86;
  --shadow: 0 18px 50px rgba(42, 45, 34, 0.12);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(246, 240, 229, 0.94), rgba(240, 245, 239, 0.88)),
    url("data:image/svg+xml,%3Csvg width='1200' height='760' viewBox='0 0 1200 760' xmlns='http://www.w3.org/2000/svg'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' x2='1' y1='0' y2='1'%3E%3Cstop stop-color='%23d6c7aa'/%3E%3Cstop offset='1' stop-color='%2399b0a2'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect width='1200' height='760' fill='%23efe6d6'/%3E%3Cpath d='M0 571c159-70 283-85 421-42 126 40 210 116 354 110 128-6 226-72 425-41v162H0z' fill='%238aa08b' opacity='.42'/%3E%3Cpath d='M0 650c170-57 318-45 470-16 193 38 342-51 520-39 76 5 137 23 210 47v118H0z' fill='%235c7356' opacity='.45'/%3E%3Ccircle cx='850' cy='142' r='72' fill='url(%23g)' opacity='.34'/%3E%3C/svg%3E");
  background-size: cover;
  background-attachment: fixed;
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  background: var(--olive-dark);
  color: #fff8e9;
  font-weight: 800;
  letter-spacing: 0;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.78rem;
}

.nav-tabs {
  display: flex;
  gap: 6px;
  align-items: center;
  padding: 6px;
  border: 1px solid rgba(228, 216, 198, 0.86);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.76);
  box-shadow: 0 10px 30px rgba(60, 66, 52, 0.08);
  overflow-x: auto;
}

.nav-tabs a {
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  white-space: nowrap;
}

.nav-tabs a.active {
  background: var(--olive-dark);
  color: #fff8e9;
}

main {
  padding: 36px 0 12px;
}

.view {
  display: none;
}

.view.active {
  display: block;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.72fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 48px 0 36px;
}

.eyebrow,
.card-kicker {
  margin: 0 0 10px;
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1.02;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}

.hero-lede {
  max-width: 640px;
  color: #445148;
  font-size: 1.18rem;
  line-height: 1.65;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.trust-strip span {
  padding: 10px 12px;
  border: 1px solid rgba(84, 107, 75, 0.24);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.68);
  color: var(--olive-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.phone-panel,
.session-card,
.console-card,
.recommendation-card,
.public-page-card,
.discovery-card,
.content-system-card,
.fit-card,
.ops-card,
.portfolio-hero,
.data-panel,
.surface-card,
.pipeline-step,
.queue-card,
.review-card,
.rule-card,
.contract-card,
.scenario-card,
.strategy-card,
.ops-item,
.portfolio-product,
.roadmap-card,
.journal-item,
.journey-day,
.metrics-grid article {
  border: 1px solid rgba(228, 216, 198, 0.88);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.88);
  box-shadow: var(--shadow);
}

.phone-panel {
  padding: 18px;
  align-self: start;
}

.phone-header {
  margin-bottom: 16px;
}

.phone-header span {
  color: var(--muted);
  font-size: 0.88rem;
}

.phone-header strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
}

.moment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.moment-button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffdf8;
  color: var(--ink);
  font-weight: 750;
}

.moment-button.selected {
  border-color: var(--olive-dark);
  background: #e8efe4;
  color: var(--olive-dark);
}

.custom-moment {
  display: block;
  margin-top: 14px;
}

.custom-moment span,
.action-card label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 750;
}

textarea {
  width: 100%;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: #fffdf8;
  color: var(--ink);
  line-height: 1.45;
}

textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(200, 148, 61, 0.44);
  outline-offset: 2px;
}

.primary-action,
.secondary-action,
.ghost-action {
  min-height: 44px;
  border-radius: 7px;
  padding: 0 16px;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  margin-top: 12px;
  border: 0;
  background: var(--olive-dark);
  color: #fff8e9;
}

.secondary-action {
  border: 0;
  background: var(--blue);
  color: white;
}

.ghost-action {
  border: 1px solid var(--line);
  background: #fffdf8;
  color: var(--olive-dark);
}

.session-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.session-card {
  padding: 18px;
}

.scripture-card {
  background: #29392d;
  color: #fff8e9;
}

.scripture {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.35;
}

.citation {
  color: rgba(255, 248, 233, 0.76);
  font-size: 0.9rem;
}

.session-card p {
  line-height: 1.62;
}

.action-row {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 22px;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.journey-board {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.journey-day {
  min-height: 220px;
  padding: 14px;
}

.journey-day strong {
  display: block;
  margin-bottom: 12px;
  color: var(--olive-dark);
}

.journey-day span {
  display: inline-block;
  margin-bottom: 12px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2e9;
  color: var(--olive-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

.journey-day p {
  color: var(--muted);
  line-height: 1.5;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.metrics-grid article {
  padding: 18px;
}

.metrics-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.6rem;
  line-height: 1;
}

.metrics-grid span {
  color: var(--muted);
  font-weight: 700;
}

.journal-list {
  display: grid;
  gap: 12px;
}

.journal-item {
  padding: 16px;
}

.journal-item small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 800;
}

.agent-demo {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.recommendation-card {
  padding: 18px;
}

.recommendation-card.highlighted {
  background: #29392d;
  color: #fff8e9;
}

.public-pages {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.public-page-card {
  padding: 16px;
}

.public-page-card h3 {
  margin-bottom: 6px;
}

.public-page-card p {
  color: var(--muted);
  line-height: 1.55;
}

.page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.page-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2e9;
  color: var(--olive-dark);
  font-size: 0.75rem;
  font-weight: 800;
}

.discovery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  margin-bottom: 14px;
}

.discovery-card {
  padding: 18px;
}

.discovery-card.strong {
  background: #29392d;
  color: #fff8e9;
}

.discovery-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.discovery-card p {
  margin: 0;
  line-height: 1.6;
  color: inherit;
  opacity: 0.86;
}

.data-panel {
  margin-top: 14px;
  padding: 18px;
  background: rgba(255, 250, 241, 0.92);
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: end;
  margin-bottom: 14px;
}

.panel-heading h3 {
  margin: 0;
}

.panel-heading p {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.funnel-bars,
.scorecard {
  display: grid;
  gap: 12px;
}

.funnel-row,
.score-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 90px minmax(160px, 0.7fr);
  gap: 12px;
  align-items: center;
}

.funnel-row strong,
.score-row strong {
  display: block;
}

.funnel-row span,
.score-row span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.funnel-row em,
.score-row b {
  color: var(--olive-dark);
  font-style: normal;
  font-weight: 850;
  text-align: right;
}

.bar-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #eadfcc;
}

.bar-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--olive), var(--gold));
}

.query-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.query-row {
  display: grid;
  grid-template-columns: 1fr 0.7fr 1.2fr 1.2fr;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.72);
  color: var(--muted);
  line-height: 1.4;
}

.query-row:first-child {
  border-top: 0;
}

.query-head {
  background: #e8efe4;
  color: var(--olive-dark);
  font-weight: 850;
}

.surface-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.surface-card {
  display: grid;
  gap: 14px;
  padding: 14px;
  box-shadow: none;
}

.surface-card p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.48;
}

.surface-card span {
  justify-self: start;
  padding: 7px 9px;
  border-radius: 999px;
  background: #29392d;
  color: #fff8e9;
  font-size: 0.78rem;
  font-weight: 850;
}

.source-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
  color: var(--muted);
}

.source-list strong {
  color: var(--ink);
}

.source-list a {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 250, 241, 0.84);
  font-size: 0.86rem;
  font-weight: 750;
}

.content-system-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.content-system-card {
  padding: 18px;
}

.content-system-card.primary {
  background: #29392d;
  color: #fff8e9;
}

.content-system-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.content-system-card p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
  opacity: 0.88;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.pipeline-step {
  min-height: 190px;
  padding: 14px;
  box-shadow: none;
}

.pipeline-step span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--olive-dark);
  color: #fff8e9;
  font-weight: 850;
}

.pipeline-step strong,
.review-card strong,
.rule-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--olive-dark);
}

.pipeline-step p,
.review-card p,
.rule-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.92rem;
}

.content-queue {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.queue-card {
  padding: 16px;
  box-shadow: none;
}

.queue-topline,
.queue-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.queue-topline span,
.queue-meta span {
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2e9;
  color: var(--olive-dark);
  font-size: 0.76rem;
  font-weight: 850;
}

.queue-topline b {
  color: var(--clay);
}

.queue-card h3 {
  margin: 14px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  line-height: 1.15;
}

.queue-card p {
  color: var(--muted);
  line-height: 1.5;
}

.review-grid,
.rules-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-card,
.rule-card {
  padding: 15px;
  box-shadow: none;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-bottom: 14px;
}

.fit-card {
  padding: 18px;
}

.fit-card.hero-fit {
  background: #29392d;
  color: #fff8e9;
}

.fit-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.fit-card p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
  opacity: 0.88;
}

.agent-rubric {
  display: grid;
  gap: 12px;
}

.contract-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contract-card {
  padding: 15px;
  box-shadow: none;
}

.contract-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--olive-dark);
}

.contract-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.roi-controls {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.roi-controls label {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(228, 216, 198, 0.88);
  border-radius: 8px;
  background: rgba(255, 250, 241, 0.9);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(60, 66, 52, 0.07);
}

.roi-controls input {
  width: 100%;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 8px 9px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

.roi-summary {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.roi-summary article {
  min-height: 100px;
  padding: 14px;
  border: 1px solid rgba(228, 216, 198, 0.88);
  border-radius: 8px;
  background: #29392d;
  color: #fff8e9;
}

.roi-summary strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.8rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.roi-summary span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 248, 233, 0.72);
  font-size: 0.82rem;
  font-weight: 800;
}

.cost-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.scenario-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.scenario-card {
  padding: 16px;
  box-shadow: none;
}

.scenario-card span {
  color: var(--clay);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scenario-card strong {
  display: block;
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.08;
}

.scenario-card p {
  color: var(--muted);
  line-height: 1.45;
}

.million-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.million-grid article {
  min-height: 160px;
  padding: 18px;
  border: 1px solid rgba(228, 216, 198, 0.88);
  border-radius: 8px;
  background: #29392d;
  color: #fff8e9;
  box-shadow: var(--shadow);
}

.million-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.million-grid span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 248, 233, 0.72);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.million-grid p {
  margin: 12px 0 0;
  color: rgba(255, 248, 233, 0.82);
  line-height: 1.45;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.library-grid article {
  min-height: 150px;
  padding: 18px;
  border: 1px solid rgba(228, 216, 198, 0.88);
  border-radius: 8px;
  background: #29392d;
  color: #fff8e9;
  box-shadow: var(--shadow);
}

.library-grid strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
  line-height: 1;
  overflow-wrap: anywhere;
}

.library-grid span {
  display: block;
  margin-top: 9px;
  color: rgba(255, 248, 233, 0.72);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.library-grid p {
  margin: 12px 0 0;
  color: rgba(255, 248, 233, 0.82);
  line-height: 1.45;
}

.library-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.inline-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-weight: 750;
}

.inline-note a {
  color: var(--olive-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.strategy-grid,
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.strategy-card {
  padding: 16px;
  box-shadow: none;
}

.strategy-card strong {
  display: block;
  margin-bottom: 9px;
  color: var(--olive-dark);
}

.strategy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-card {
  padding: 15px;
  box-shadow: none;
}

.roadmap-card span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 9px;
  border-radius: 999px;
  background: #29392d;
  color: #fff8e9;
  font-size: 0.76rem;
  font-weight: 850;
}

.roadmap-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.48;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.ops-card {
  padding: 18px;
}

.ops-card.mission {
  background: #29392d;
  color: #fff8e9;
}

.ops-card strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.ops-card p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
  opacity: 0.88;
}

.referral-grid,
.factory-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.factory-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cadence-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.ops-item {
  padding: 16px;
  box-shadow: none;
}

.ops-item strong {
  display: block;
  margin-bottom: 9px;
  color: var(--olive-dark);
}

.ops-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.portfolio-thesis {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 14px;
  margin-bottom: 14px;
}

.portfolio-hero {
  padding: 18px;
  background: #29392d;
  color: #fff8e9;
}

.portfolio-hero.light {
  background: rgba(255, 250, 241, 0.92);
  color: var(--ink);
}

.portfolio-hero strong {
  display: block;
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  line-height: 1.08;
}

.portfolio-hero p {
  margin: 0;
  color: inherit;
  line-height: 1.6;
  opacity: 0.88;
}

.product-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.portfolio-product {
  padding: 16px;
  box-shadow: none;
}

.portfolio-product span {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 8px;
  border-radius: 999px;
  background: #edf2e9;
  color: var(--olive-dark);
  font-size: 0.74rem;
  font-weight: 850;
}

.portfolio-product h3 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.42rem;
  line-height: 1.08;
}

.portfolio-product p {
  color: var(--muted);
  line-height: 1.42;
}

.split-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.console-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.console-card {
  padding: 18px;
}

.console-card.wide {
  grid-column: 1 / -1;
}

.console-card ul {
  margin: 0;
  padding-left: 18px;
}

.console-card li {
  margin: 10px 0;
  color: var(--muted);
  line-height: 1.45;
}

pre {
  overflow: auto;
  margin: 0;
  padding: 16px;
  border-radius: 7px;
  background: #18231d;
  color: #eaf2e5;
  font-size: 0.9rem;
  line-height: 1.55;
}

.footer {
  padding: 26px 0 36px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.legal-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.legal-footer a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-article {
  padding: 22px 0 44px;
}

.page-article > .brand {
  margin-bottom: 22px;
}

.article-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.product-page .hero-grid {
  margin-top: 16px;
}

.product-ghost {
  width: 100%;
  margin-top: 10px;
}

.launch-secondary-link {
  margin-top: 10px;
}

.product-session {
  margin-bottom: 18px;
}

.waitlist-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 12px;
  align-items: end;
}

.waitlist-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 800;
}

.waitlist-form input {
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px 12px;
  background: #fffdf8;
  color: var(--ink);
  font: inherit;
}

@media (max-width: 980px) {
  .topbar,
  .hero-grid,
  .session-layout,
  .journey-board,
  .public-pages,
  .discovery-grid,
  .content-system-grid,
  .fit-grid,
  .pipeline,
  .content-queue,
  .review-grid,
  .rules-grid,
  .contract-grid,
  .roi-controls,
  .roi-summary,
  .scenario-grid,
  .million-grid,
  .library-grid,
  .value-grid,
  .strategy-grid,
  .portfolio-grid,
  .roadmap-grid,
  .ops-grid,
  .referral-grid,
  .factory-grid,
  .channel-grid,
  .cadence-grid,
  .portfolio-thesis,
  .product-portfolio-grid,
  .split-grid,
  .surface-grid,
  .agent-demo,
  .console-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    align-items: stretch;
    display: grid;
  }

  .session-layout {
    display: grid;
  }

  .journey-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-pages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .app-shell {
    width: min(100% - 18px, 1180px);
  }

  main {
    padding-top: 14px;
  }

  .hero-copy {
    padding: 22px 0 8px;
  }

  h1 {
    font-size: 3rem;
  }

  .moment-grid,
  .journey-board,
  .public-pages,
  .metrics-grid,
  .funnel-row,
  .score-row,
  .query-row,
  .action-row {
    grid-template-columns: 1fr;
  }

  .waitlist-form {
    grid-template-columns: 1fr;
  }

  .panel-heading {
    display: block;
  }

  .funnel-row em,
  .score-row b {
    text-align: left;
  }

  .metrics-grid,
  .action-row {
    display: grid;
  }
}
