:root {
  --forest: #3d5a4c;
  --forest-light: #476858;
  --forest-dark: #2a4a3a;
  --forest-deep: #1e3a2c;
  --green: #65d072;
  --green-soft: #e8f5e9;
  --teal: #4a7c72;
  --mist: #f8faf9;
  --mist-dark: #e8f0ec;
  --paper: #ffffff;
  --canvas: #fbfcfb;
  --warm: #6f5b45;
  --ink-950: #171a18;
  --ink-900: #303633;
  --ink-700: #56615c;
  --ink-600: #66716b;
  --ink-500: #8a948f;
  --ink-300: #c9d0cc;
  --ink-200: #e5eae7;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-2xl: 28px;
  --shadow-card: 0 22px 70px rgba(30, 58, 44, 0.10);
  --font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  min-width: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--canvas);
  color: var(--ink-900);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
}

noscript,
.render-error {
  display: block;
  margin: 40px;
  max-width: 720px;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3,
h4,
p,
li,
a,
strong {
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  color: var(--ink-950);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  color: white;
  font-size: clamp(3.7rem, 5.6vw, 5.9rem);
  max-width: 640px;
}

h1 span {
  display: block;
}

h2 {
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  margin-bottom: 22px;
  max-width: 920px;
}

h3 {
  font-size: 26px;
}

h4 {
  font-size: 18px;
  margin-bottom: 10px;
}

p {
  color: var(--ink-700);
}

pre {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(61, 90, 76, 0.12);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-md);
  color: var(--ink-700);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
  line-height: 1.58;
  margin-top: 18px;
  overflow-x: auto;
  padding: 18px;
  white-space: pre-wrap;
}

.document-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.sidebar {
  align-self: start;
  background:
    linear-gradient(180deg, rgba(30, 58, 44, 0.97), rgba(42, 74, 58, 0.98)),
    var(--forest);
  color: white;
  height: 100vh;
  overflow-y: auto;
  padding: 42px 28px;
  position: sticky;
  top: 0;
}

.brand-lockup {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 34px;
  padding-bottom: 28px;
}

.brand-name {
  color: white;
  font-size: 23px;
  font-weight: 700;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.56);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-top: 6px;
  text-transform: uppercase;
}

.sidebar nav ul {
  display: flex;
  flex-direction: column;
  gap: 3px;
  list-style: none;
}

.sidebar a {
  border-radius: var(--radius-sm);
  color: rgba(255, 255, 255, 0.76);
  display: flex;
  font-size: 14px;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
}

.sidebar a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.sidebar a span {
  color: var(--green);
  font-feature-settings: "tnum";
  font-weight: 700;
}

.sidebar-note {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.58);
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 42px;
  padding-top: 24px;
}

.sidebar-note strong {
  color: white;
  font-size: 14px;
}

.sidebar-note small {
  font-size: 12px;
  line-height: 1.45;
}

.document-main {
  max-width: 1320px;
  padding: 56px clamp(28px, 5vw, 72px) 120px;
}

section {
  margin-bottom: 132px;
}

.section-label {
  align-items: center;
  color: var(--forest);
  display: flex;
  font-size: 12px;
  font-weight: 800;
  gap: 14px;
  letter-spacing: 0.16em;
  margin-bottom: 22px;
  text-transform: uppercase;
}

.section-label::before {
  background: var(--green);
  content: "";
  height: 2px;
  width: 34px;
}

.section-label .num {
  color: var(--green);
  font-feature-settings: "tnum";
}

.section-intro,
.lead {
  color: var(--ink-700);
  font-size: 20px;
  line-height: 1.58;
  max-width: 760px;
}

.lead {
  border-left: 3px solid var(--green);
  margin-top: 34px;
  padding-left: 24px;
}

.cover-section {
  margin-bottom: 112px;
}

.cover-hero {
  background: var(--forest-deep);
  border-radius: var(--radius-2xl);
  color: white;
  display: grid;
  gap: clamp(26px, 4vw, 52px);
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.58fr);
  min-height: 690px;
  overflow: hidden;
  padding: clamp(36px, 5vw, 62px);
  position: relative;
  box-shadow: var(--shadow-card);
}

.cover-hero::before {
  background:
    linear-gradient(90deg, rgba(30, 58, 44, 0.96) 0%, rgba(42, 74, 58, 0.86) 46%, rgba(42, 74, 58, 0.34) 100%),
    linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
  content: "";
  inset: 0;
  position: absolute;
}

.cover-copy,
.cover-media,
.cover-meta {
  position: relative;
  z-index: 1;
}

.cover-copy {
  align-content: end;
  display: grid;
  min-height: 540px;
  min-width: 0;
  position: relative;
  z-index: 2;
}

.cover-logo {
  margin-bottom: 38px;
  max-width: 190px;
}

.eyebrow,
.block-label,
.pill-tag,
.template-label,
.detail-label,
.ch-role {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow,
.block-label,
.ch-role {
  color: var(--green);
}

.cover-copy p {
  color: rgba(255, 255, 255, 0.78);
  font-size: 20px;
  line-height: 1.62;
  margin-top: 26px;
  max-width: 560px;
  overflow-wrap: break-word;
}

.cover-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.cover-actions a {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: white;
  font-size: 13px;
  font-weight: 700;
  padding: 10px 16px;
  text-decoration: none;
}

.cover-actions a:first-child {
  background: var(--green);
  border-color: var(--green);
  color: var(--forest-deep);
}

.cover-media {
  align-self: stretch;
  border-radius: 22px;
  isolation: isolate;
  min-height: 540px;
  overflow: hidden;
  position: relative;
}

.cover-media img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.cover-media::after {
  background: linear-gradient(180deg, rgba(30, 58, 44, 0.02), rgba(30, 58, 44, 0.72));
  content: "";
  inset: 0;
  position: absolute;
  z-index: 1;
}

.media-caption {
  bottom: 22px;
  color: white;
  left: 22px;
  position: absolute;
  right: 22px;
  z-index: 2;
}

.media-caption span {
  color: var(--green);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.media-caption strong {
  display: block;
  font-size: 22px;
  line-height: 1.16;
  max-width: 360px;
}

.cover-meta {
  align-self: end;
  color: rgba(255, 255, 255, 0.52);
  display: flex;
  flex-direction: column;
  font-size: 13px;
  gap: 4px;
  grid-column: 1 / -1;
}

.signal-strip {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 44px rgba(30, 58, 44, 0.08);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin: -34px 34px 0;
  overflow: hidden;
  position: relative;
  z-index: 2;
}

.signal {
  background: var(--paper);
  padding: 28px 30px;
}

.signal strong {
  color: var(--ink-950);
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.signal span {
  color: var(--ink-500);
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-top: 8px;
  text-transform: uppercase;
}

.grid {
  display: grid;
  gap: 22px;
  margin-top: 38px;
}

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

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

.card,
.principle,
.channel-card,
.template-card,
.persona-card {
  border-radius: var(--radius-lg);
}

.card,
.principle {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  box-shadow: 0 14px 38px rgba(30, 58, 44, 0.05);
  padding: 30px 26px;
}

.card.white {
  background: var(--paper);
}

.card p,
.principle p,
.channel-card p,
.template-notes {
  color: var(--ink-600);
  font-size: 14.5px;
  line-height: 1.56;
}

.principle {
  min-height: 230px;
}

.pill-tag {
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--forest);
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
}

.palette {
  border-radius: var(--radius-xl);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 44px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.swatch {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: flex-end;
  min-height: 150px;
  padding: 20px;
}

.swatch-name,
.swatch-hex {
  font-size: 12px;
  font-weight: 800;
}

.swatch-role {
  font-size: 11px;
  opacity: 0.74;
}

.do-dont {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 42px;
}

.do-box,
.dont-box {
  border-radius: var(--radius-xl);
  padding: 32px 28px;
}

.do-box {
  background: var(--green-soft);
  border-left: 4px solid var(--green);
}

.dont-box {
  background: #fff4ee;
  border-left: 4px solid var(--warm);
}

.bullet-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
  list-style: none;
  margin-top: 16px;
}

.bullet-list li {
  color: var(--ink-700);
  font-size: 14px;
  line-height: 1.5;
  padding-left: 20px;
  position: relative;
}

.bullet-list li::before {
  color: var(--green);
  content: ">";
  font-weight: 800;
  left: 0;
  position: absolute;
}

.bullet-list.plain li::before {
  content: "-";
}

.website-cue {
  align-items: stretch;
  background: var(--forest-deep);
  border-radius: var(--radius-2xl);
  color: white;
  display: grid;
  gap: 30px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  margin-top: 48px;
  overflow: hidden;
  padding: 36px;
}

.website-cue h3 {
  color: white;
  font-size: 34px;
  margin-top: 14px;
}

.website-cue p {
  color: rgba(255, 255, 255, 0.76);
  margin-top: 16px;
  max-width: 560px;
}

.website-cue img {
  border-radius: 18px;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.positioning-block {
  background: var(--forest);
  border-radius: var(--radius-2xl);
  color: white;
  margin-top: 38px;
  overflow: hidden;
  padding: 54px 46px;
  position: relative;
}

.positioning-block::after {
  background: linear-gradient(90deg, rgba(101, 208, 114, 0.14), transparent);
  bottom: 0;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  right: 0;
}

.statement {
  color: white;
  font-size: clamp(2rem, 4vw, 3.8rem);
  font-weight: 700;
  line-height: 1.12;
  margin-top: 16px;
  max-width: 930px;
}

.statement-sub {
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  margin-top: 20px;
  max-width: 690px;
}

.moat-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 42px;
}

.moat-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 20px 18px;
}

.moat-number {
  color: var(--green);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
}

.moat-label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  line-height: 1.4;
  margin-top: 10px;
}

.persona-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  box-shadow: 0 20px 54px rgba(30, 58, 44, 0.07);
  overflow: hidden;
  padding: 38px 34px;
  position: relative;
}

.persona-card::before {
  background: linear-gradient(to right, var(--forest), var(--green));
  content: "";
  height: 5px;
  left: 0;
  position: absolute;
  right: 0;
  top: 0;
}

.persona-tag {
  background: var(--mist);
  border-radius: 999px;
  color: var(--forest);
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 18px;
  padding: 5px 12px;
  text-transform: uppercase;
}

.persona-sub {
  color: var(--ink-600);
  font-size: 15px;
  margin-top: 12px;
}

.detail-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 26px;
}

.detail-item {
  background: var(--mist);
  border-radius: var(--radius-md);
  padding: 15px 16px;
}

.detail-label {
  color: var(--ink-500);
  margin-bottom: 6px;
}

.detail-value {
  color: var(--ink-900);
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
}

.icp-block {
  background: var(--mist);
  border-radius: var(--radius-2xl);
  margin-top: 42px;
  padding: 42px 36px;
}

.funnel-band {
  background: var(--forest-deep);
  border-radius: var(--radius-xl);
  color: white;
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 34px;
  overflow: hidden;
}

.funnel-band div {
  background: rgba(255, 255, 255, 0.06);
  padding: 28px 26px;
}

.funnel-band span {
  color: var(--green);
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.funnel-band strong {
  color: white;
  font-size: 20px;
}

.channel-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  padding: 30px 26px;
  position: relative;
}

.channel-card:nth-child(1),
.channel-card:nth-child(3) {
  background: var(--forest);
  color: white;
}

.channel-card:nth-child(1) h4,
.channel-card:nth-child(3) h4 {
  color: white;
}

.channel-card:nth-child(1) p,
.channel-card:nth-child(3) p,
.channel-card:nth-child(1) li,
.channel-card:nth-child(3) li {
  color: rgba(255, 255, 255, 0.74);
}

.ch-tag {
  background: var(--forest);
  border-radius: 999px;
  color: white;
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 16px;
  padding: 5px 12px;
}

.channel-card:nth-child(1) .ch-tag,
.channel-card:nth-child(3) .ch-tag {
  background: var(--green);
  color: var(--forest-deep);
}

.ch-role {
  margin-bottom: 11px;
}

.template-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  box-shadow: 0 18px 48px rgba(30, 58, 44, 0.06);
  padding: 32px 28px;
}

.template-label {
  color: var(--forest);
  margin-bottom: 13px;
}

.template-notes {
  margin-top: 13px;
}

.agents-block {
  background: var(--forest-deep);
  border-radius: var(--radius-2xl);
  display: grid;
  gap: 14px;
  margin-top: 36px;
  padding: 36px;
}

.agent-rule {
  background: rgba(255, 255, 255, 0.07);
  border-left: 3px solid var(--green);
  border-radius: var(--radius-md);
  padding: 22px 24px;
}

.agent-rule h4 {
  color: var(--green);
}

.agent-rule p {
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
}

.principle-ledger {
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1fr);
  margin-top: 40px;
}

.principle-feature {
  background: var(--forest-deep);
  border-radius: var(--radius-2xl);
  color: white;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 34px;
}

.principle-feature h3 {
  color: white;
  font-size: 38px;
  line-height: 1.08;
  margin-top: 18px;
}

.principle-feature p {
  color: rgba(255, 255, 255, 0.74);
  margin-top: 18px;
}

.principle-feature img {
  border-radius: 18px;
  flex: 1;
  margin-top: 28px;
  min-height: 280px;
  object-fit: cover;
  width: 100%;
}

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

.design-principle {
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  display: grid;
  gap: 18px;
  grid-template-columns: 52px 1fr;
  padding: 22px;
}

.design-principle span {
  align-items: center;
  background: var(--green-soft);
  border-radius: 999px;
  color: var(--forest);
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.design-principle p {
  color: var(--ink-600);
  font-size: 14px;
}

.component-catalog {
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-2xl);
  margin-top: 40px;
  overflow: hidden;
}

.component-row {
  align-items: start;
  background: var(--paper);
  border-bottom: 1px solid var(--ink-200);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(180px, 0.74fr) minmax(220px, 1fr) minmax(220px, 1fr);
  padding: 24px 28px;
}

.component-row:last-child {
  border-bottom: 0;
}

.component-row:nth-child(even) {
  background: var(--mist);
}

.component-row p,
.component-rule {
  color: var(--ink-600);
  font-size: 14px;
  line-height: 1.55;
}

.component-type {
  color: var(--forest);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.component-rule {
  border-left: 3px solid var(--green);
  padding-left: 16px;
}

.builder-shell {
  background: var(--forest-deep);
  border-radius: var(--radius-2xl);
  color: white;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
  margin-top: 40px;
  padding: 36px;
}

.builder-controls {
  display: grid;
  gap: 16px;
}

.builder-field {
  display: grid;
  gap: 8px;
}

.builder-field span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.builder-field select {
  appearance: none;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-md);
  color: white;
  font: inherit;
  font-size: 14px;
  min-height: 48px;
  padding: 0 14px;
}

.builder-field select:focus {
  border-color: var(--green);
  outline: 2px solid rgba(101, 208, 114, 0.2);
}

.builder-field option {
  color: var(--ink-900);
}

.builder-context {
  background: rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-lg);
  margin-top: 10px;
  padding: 22px;
}

.builder-context strong {
  color: white;
  display: block;
  font-size: 15px;
  margin-top: 14px;
}

.builder-context p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13.5px;
  margin-top: 6px;
}

.builder-output {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-xl);
  padding: 24px;
}

.builder-output pre {
  background: rgba(255, 255, 255, 0.92);
  border-left-color: var(--green);
  margin-top: 16px;
  min-height: 390px;
}

.quality-gates {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 40px;
}

.gate-card {
  background: var(--paper);
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 16px 44px rgba(30, 58, 44, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  padding: 24px 20px;
}

.gate-index {
  color: var(--green);
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 22px;
}

.gate-checks {
  display: grid;
  gap: 10px;
  list-style: none;
  margin-top: 14px;
}

.gate-checks li {
  color: var(--ink-600);
  font-size: 13.5px;
  line-height: 1.45;
  padding-left: 18px;
  position: relative;
}

.gate-checks li::before {
  background: var(--green);
  border-radius: 999px;
  content: "";
  height: 7px;
  left: 0;
  position: absolute;
  top: 7px;
  width: 7px;
}

@media (max-width: 1080px) {
  .document-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    height: auto;
    padding: 22px 22px 18px;
    position: static;
  }

  .brand-lockup {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .sidebar nav ul {
    display: grid;
    gap: 4px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sidebar a {
    font-size: 11.5px;
    padding: 7px 8px;
  }

  .sidebar-note {
    display: none;
  }

  .document-main {
    max-width: 100vw;
    overflow: hidden;
    padding: 38px 22px 88px;
    width: 100%;
  }

  h1 {
    font-size: 44px;
    max-width: 100%;
    overflow-wrap: break-word;
  }

  h2 {
    font-size: 40px;
    max-width: 100%;
  }

  .cover-hero {
    max-width: calc(100vw - 44px);
    padding: 34px 30px;
  }

  .section-label {
    font-size: 10px;
    letter-spacing: 0.1em;
  }

  .cover-copy p {
    font-size: 18px;
    max-width: 100%;
  }

  .cover-logo {
    max-width: 158px;
  }

  .cover-hero,
  .website-cue {
    grid-template-columns: 1fr;
  }

  .cover-copy,
  .cover-media {
    min-height: auto;
  }

  .cover-media {
    min-height: 360px;
  }

  .grid-2,
  .grid-3,
  .palette,
  .do-dont,
  .moat-grid,
  .detail-grid,
  .funnel-band,
  .principle-ledger,
  .component-row,
  .builder-shell,
  .quality-gates,
  .signal-strip {
    grid-template-columns: 1fr;
  }

  .signal-strip {
    margin: 18px 0 0;
  }
}

@media (max-width: 540px) {
  .document-main {
    padding-left: 16px;
    padding-right: 16px;
  }

  .cover-hero {
    border-radius: 22px;
    max-width: 100%;
    padding: 30px;
    width: 100%;
  }

  h1 {
    font-size: 29px;
    line-height: 1.08;
  }

  h2 {
    font-size: 29px;
    line-height: 1.08;
  }

  h3,
  .website-cue h3,
  .principle-feature h3 {
    font-size: 24px;
    line-height: 1.12;
  }

  h1,
  h2,
  h3,
  h4,
  p,
  li,
  a,
  strong,
  .statement {
    overflow-wrap: anywhere;
  }

  .section-intro,
  .lead {
    font-size: 16px;
  }

  .cover-copy p {
    font-size: 15.5px;
  }

  .media-caption strong {
    font-size: 18px;
  }

  .builder-shell,
  .agents-block,
  .principle-feature {
    padding: 24px;
  }

  .builder-output {
    padding: 18px;
  }

  .builder-output pre {
    font-size: 11.5px;
    min-height: 320px;
    padding: 14px;
  }

  .card,
  .principle,
  .channel-card,
  .template-card,
  .persona-card,
  .design-principle,
  .component-row,
  .gate-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .cover-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .cover-actions a {
    text-align: center;
  }
}
