:root {
  --red: #d71920;
  --red-dark: #a90f16;
  --ink: #211f20;
  --muted: #676163;
  --paper: #faf8f4;
  --white: #ffffff;
  --line: #ded9d2;
  --soft-red: #fff0ee;
  --soft-gold: #fff5d8;
  --gold: #f0b51d;
  --green: #17734a;
  --blue: #2b5aa8;
  --shadow: 0 18px 50px rgba(44, 32, 27, 0.08);
  --radius: 18px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 2%, rgba(215, 25, 32, 0.07), transparent 26rem),
    var(--paper);
  color: var(--ink);
}

button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  color: white;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  width: min(1280px, calc(100% - 40px));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 0.94rem;
  font-weight: 800;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.wordmark-mark {
  width: 17px;
  height: 24px;
  display: inline-block;
  background: var(--red);
  border-radius: 11px 11px 3px 3px;
  transform: rotate(12deg);
}

.example-link {
  font-size: 0.86rem;
  font-weight: 750;
  text-underline-offset: 4px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 24px;
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
}

.language-switch > span {
  padding: 0 7px 0 9px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.language-switch button {
  min-height: 30px;
  padding: 0 10px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 0.68rem;
  font-weight: 800;
  cursor: pointer;
}

.language-switch button.is-active {
  color: white;
  background: var(--ink);
}

.language-switch button:focus-visible {
  outline: 3px solid rgba(215, 25, 32, 0.22);
  outline-offset: 2px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 70px;
  align-items: end;
  padding: 84px 0 62px;
}

.hero-copy { max-width: 780px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1, h2, h3, p { text-wrap: pretty; }
h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(3rem, 6.8vw, 6.6rem);
  line-height: 0.92;
  letter-spacing: -0.065em;
}

.hero-intro {
  max-width: 720px;
  margin: 30px 0 0;
  color: #4f494b;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem);
  line-height: 1.55;
}

.hero-note {
  padding: 24px 0 4px;
  border-top: 3px solid var(--red);
}
.hero-note p { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.hero-note strong { color: var(--ink); }
.note-number { color: var(--red); font-size: 0.72rem; font-weight: 850; letter-spacing: 0.14em; }

.orientation {
  padding: 58px 0 74px;
  border-top: 1px solid var(--line);
}

.orientation-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.7fr);
  gap: 54px;
  align-items: end;
  margin-bottom: 34px;
}

.orientation-heading .eyebrow { grid-column: 1 / -1; margin-bottom: -36px; }
.orientation-heading h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.orientation-heading > p:last-child { margin: 0; color: var(--muted); line-height: 1.6; }

.human-moment-visual {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 50% 50%, rgba(215, 25, 32, 0.09), transparent 30%),
    linear-gradient(135deg, #fff 0%, #f4eee7 100%);
  box-shadow: var(--shadow);
}

.human-moment-heading {
  display: grid;
  gap: 7px;
  max-width: 680px;
}

.human-moment-heading span,
.human-continuum span {
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.human-moment-heading strong {
  font-size: clamp(1.35rem, 2.5vw, 2.15rem);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.human-continuum {
  display: grid;
  grid-template-columns: 1fr minmax(180px, 0.55fr) 1fr;
  gap: 22px;
  align-items: center;
  margin-top: 28px;
  padding: 26px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.human-continuum > div:not(.product-journey-inset) {
  display: grid;
  gap: 8px;
}

.human-continuum p {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.product-journey-inset {
  width: min(100%, 210px);
  justify-self: center;
  display: grid;
  gap: 8px;
  padding: 18px;
  color: white;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 14px 36px rgba(33, 31, 32, 0.2);
}

.product-journey-inset span { color: #ff9b9f; }
.product-journey-inset strong { font-size: 0.78rem; line-height: 1.4; }
.human-moment-caption { margin: 22px 0 0; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }

.complementary-flow {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: 44px;
  align-items: start;
  margin-top: 34px;
  padding: 30px;
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
}

.complementary-heading h3,
.value-list h3,
.builder-intro h2 {
  margin: 0;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.complementary-flow ol {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.complementary-flow li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 14px;
  padding: 18px;
  border: 1px solid #454143;
  border-radius: 12px;
  background: #2a2729;
}

.complementary-flow li > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid #ff9b9f;
  border-radius: 50%;
  color: #ff9b9f;
  font-size: 0.72rem;
  font-weight: 850;
}

.complementary-flow strong { font-size: 0.9rem; }
.complementary-flow li p { margin: 5px 0 0; color: #c9c2c5; font-size: 0.76rem; line-height: 1.5; }

.value-list {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 44px;
  margin-top: 34px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.value-list ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.value-list li {
  position: relative;
  padding: 14px 0 14px 26px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.5;
}

.value-list li::before {
  content: "↗";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 850;
}

.value-list li:first-child { padding-top: 0; }
.value-list li:last-child { padding-bottom: 0; border-bottom: 0; }
.value-list strong { color: var(--ink); }

.builder-intro {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) minmax(0, 1.55fr);
  gap: 44px;
  align-items: start;
  padding: 64px 0 32px;
  border-top: 1px solid var(--line);
}

.builder-intro > p { margin-top: 7px; }
.builder-intro div { max-width: 780px; }
.builder-intro div p {
  max-width: 620px;
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.step-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(250, 248, 244, 0.94);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.step-tab {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #8a8385;
  background: transparent;
  font-size: 0.82rem;
  font-weight: 760;
}
.step-tab span {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50%;
  font-size: 0.67rem;
}
.step-tab.is-active { color: var(--red); border-bottom-color: var(--red); }
.step-tab.is-complete { color: var(--ink); }
.step-tab:disabled { cursor: default; }

.workspace { padding: 66px 0 80px; }
.is-hidden { display: none !important; }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.65fr);
  gap: 60px;
  align-items: end;
  margin-bottom: 38px;
}
.section-heading h2, .results-hero h2, .generation-layout h2 {
  margin: 0;
  font-size: clamp(2.1rem, 4.5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.section-heading > p, .results-hero > div > p:last-child, .generation-layout > div > p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.builder-form { display: grid; gap: 24px; }
.start-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.start-options { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 8px; }
.start-options label { position: relative; cursor: pointer; }
.start-options input { position: absolute; opacity: 0; }
.start-options label > span {
  min-height: 108px;
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  transition: 160ms ease;
}
.start-options b { font-size: 1rem; }
.start-options small { color: var(--muted); font-size: 0.76rem; line-height: 1.45; }
.start-options input:checked + span { border-color: var(--red); background: var(--soft-red); box-shadow: inset 0 0 0 1px var(--red); }
.start-options input:checked + span b { color: var(--red); }
.start-options input:focus-visible + span { outline: 3px solid rgba(215, 25, 32, 0.22); }

.challenge-panel {
  display: grid;
  gap: 24px;
  padding: 28px;
  border: 1px solid #e6aaa8;
  border-radius: var(--radius);
  background: var(--soft-red);
}
#sector-form:has(input[name="startMode"][value="challenge"]:checked) #challenge-fields {
  display: grid !important;
}
#sector-form:has(input[name="startMode"][value="explore"]:checked) #challenge-fields {
  display: none !important;
}
.challenge-intro { max-width: 800px; }
.challenge-intro h3 { margin: 0; font-size: clamp(1.5rem, 2.8vw, 2.35rem); line-height: 1.08; letter-spacing: -0.035em; }
.challenge-intro > p:last-child { margin: 12px 0 0; color: #6d5051; line-height: 1.55; }

.field-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.field-grid-primary { grid-template-columns: 1.2fr 0.8fr; }
.context-heading { margin-top: 6px; }
.context-heading .eyebrow { margin-bottom: 8px; }
.context-heading h3 { margin: 0; font-size: clamp(1.35rem, 2.5vw, 2rem); letter-spacing: -0.03em; }
.field { display: grid; gap: 9px; }
.field > span, .control-title, legend { font-size: 0.86rem; font-weight: 800; }
.field b { color: var(--red); }
.field small, .control-card small, .control-help { color: var(--muted); font-size: 0.74rem; line-height: 1.4; }
.field input, .field textarea, .control-card select, .catalogue-toolbar input {
  width: 100%;
  border: 1px solid #cfc9c2;
  border-radius: 12px;
  color: var(--ink);
  background: var(--white);
  outline: none;
  transition: border-color 160ms, box-shadow 160ms;
}
.field input, .control-card select, .catalogue-toolbar input { min-height: 52px; padding: 0 15px; }
.field textarea { resize: vertical; padding: 14px 15px; line-height: 1.5; }
.field input:focus, .field textarea:focus, .control-card select:focus, .catalogue-toolbar input:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(215, 25, 32, 0.1);
}

fieldset { min-width: 0; margin: 0; }
.control-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
}
legend { padding: 0 8px; margin-left: -8px; }
.control-help { margin: 2px 0 18px; }

.segmented { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.segmented label { cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  min-height: 70px;
  display: grid;
  place-content: center;
  gap: 3px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  font-weight: 820;
  transition: 160ms ease;
}
.segmented small { font-weight: 600; }
.segmented input:checked + span { color: var(--red); border-color: var(--red); background: var(--soft-red); box-shadow: inset 0 0 0 1px var(--red); }
.segmented input:focus-visible + span { outline: 3px solid rgba(215, 25, 32, 0.22); }

.control-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; }
.control-grid .control-card { display: grid; align-content: start; gap: 12px; }
.control-card select { margin-top: 3px; }
.range-card { grid-template-columns: 1fr auto; }
.range-card input { grid-column: 1 / -1; accent-color: var(--red); width: 100%; }
.range-value { color: var(--red); font-size: 0.75rem; font-weight: 800; }
.range-ends { grid-column: 1 / -1; display: flex; justify-content: space-between; }

.lens-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 9px; }
.lens-grid label { position: relative; cursor: pointer; }
.lens-grid input { position: absolute; opacity: 0; }
.lens-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  color: #5d5658;
  font-size: 0.76rem;
  font-weight: 700;
}
.lens-grid input:checked + span { color: var(--red); border-color: #e6aaa8; background: var(--soft-red); }
.lens-grid input:focus-visible + span { outline: 3px solid rgba(215, 25, 32, 0.22); }

.form-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 22px;
  padding-top: 16px;
}
.form-actions > p { margin: 0 auto 0 0; color: var(--muted); font-size: 0.76rem; }
.form-actions-split { justify-content: space-between; }
.form-actions-split > div { display: flex; align-items: center; gap: 16px; }
.form-actions-split small { max-width: 170px; color: var(--muted); text-align: right; }
.status-dot { width: 8px; height: 8px; display: inline-block; margin-right: 8px; border-radius: 50%; background: var(--gold); }
.status-dot.is-ready { background: var(--green); }
.status-dot.is-warning { background: var(--red); }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 820;
  cursor: pointer;
  transition: transform 160ms, background 160ms, box-shadow 160ms;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible, .filter:focus-visible, .text-button:focus-visible { outline: 3px solid rgba(215, 25, 32, 0.24); outline-offset: 2px; }
.button-primary { color: white; background: var(--red); box-shadow: 0 10px 24px rgba(215, 25, 32, 0.18); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { color: var(--ink); border-color: var(--line); background: var(--white); }
.text-button { padding: 6px 0; border: 0; color: var(--red); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

.plan-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink);
  color: white;
  overflow: hidden;
}
.plan-banner > div { min-height: 88px; display: grid; align-content: center; gap: 7px; padding: 18px 20px; border-right: 1px solid #454143; }
.plan-banner > div:last-child { border: 0; }
.plan-banner span { color: #c9c4c5; font-size: 0.65rem; font-weight: 780; letter-spacing: 0.08em; text-transform: uppercase; }
.plan-banner strong { font-size: 0.86rem; }

.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: 0 8px 28px rgba(40, 27, 23, 0.035);
}
.plan-card-number { color: var(--red); font-size: 0.68rem; font-weight: 850; letter-spacing: 0.1em; }
.plan-card h3 { margin: 28px 0 10px; font-size: 1.12rem; letter-spacing: -0.025em; }
.plan-card p { margin: 0; color: var(--muted); font-size: 0.82rem; line-height: 1.55; }
.plan-card ul { margin: auto 0 0; padding: 22px 0 0 16px; color: #544e50; font-size: 0.73rem; line-height: 1.5; }

.plan-adjustments { display: grid; grid-template-columns: 1.5fr 0.5fr; gap: 18px; margin-top: 24px; padding: 24px; background: #f1eee9; border-radius: var(--radius); }
.field-compact { align-content: start; }

.automatic-research {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 36px;
  align-items: center;
  padding: 24px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.automatic-research h3 { margin: 0; font-size: 1.15rem; letter-spacing: -0.025em; }
.automatic-research > p { margin: 0; color: var(--muted); font-size: 0.8rem; line-height: 1.6; }

.reframe-preview, .result-reframe, .executive-summary {
  display: grid;
  gap: 24px;
  margin-bottom: 24px;
  padding: 28px;
  border: 1px solid #e7b5a8;
  border-radius: var(--radius);
  background: #fff7f2;
}

.executive-summary {
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.25fr);
  border-color: var(--ink);
  color: white;
  background: var(--ink);
}
.executive-summary .eyebrow { color: #ff9b9f; }
.executive-summary-lead h3 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.6rem); line-height: 1.04; letter-spacing: -0.04em; }
.executive-summary-lead > p:last-child { margin: 14px 0 0; color: #d3cdce; font-size: 0.84rem; line-height: 1.6; }
.executive-summary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.executive-summary-grid > div { padding: 18px; border: 1px solid #4b4749; border-radius: 12px; background: #292627; }
.executive-summary-grid span { color: #ff9b9f; font-size: 0.61rem; font-weight: 850; letter-spacing: 0.08em; text-transform: uppercase; }
.executive-summary-grid ul { margin: 12px 0 0; padding-left: 17px; color: #ece8e9; font-size: 0.74rem; line-height: 1.55; }

.reframe-heading { max-width: 850px; }
.reframe-heading h3 { margin: 0; font-size: clamp(1.4rem, 2.7vw, 2.2rem); line-height: 1.08; letter-spacing: -0.035em; }
.reframe-heading > p:last-child { margin: 12px 0 0; color: var(--muted); line-height: 1.55; }
.reframe-grid, .reframe-result-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.reframe-grid > div, .reframe-result-grid > div {
  padding: 18px;
  border: 1px solid #eadbd3;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.8);
}
.reframe-grid span, .reframe-result-grid span {
  color: var(--red);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.reframe-grid p, .reframe-result-grid p { margin: 10px 0 0; color: #51494a; font-size: 0.8rem; line-height: 1.5; }
.reframe-result-grid { grid-template-columns: repeat(2, 1fr); }
.reframe-result-grid ul { margin: 10px 0 0; padding-left: 18px; color: #51494a; font-size: 0.78rem; line-height: 1.55; }

.generation-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 90px; align-items: center; min-height: 540px; }
.generation-layout h2 { max-width: 520px; }
.generation-layout > div > p { margin-top: 22px; max-width: 520px; }
.generation-meter { width: 100%; height: 5px; margin: 34px 0 20px; border-radius: 4px; background: #e1dcd6; overflow: hidden; }
.generation-meter span { display: block; width: 8%; height: 100%; background: var(--red); transition: width 900ms ease; }
.generation-steps { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.generation-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; padding: 18px; border-radius: 14px; color: #999294; transition: 260ms; }
.generation-steps li > span { width: 30px; height: 30px; display: grid; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 0.68rem; font-weight: 850; }
.generation-steps li div { display: grid; gap: 4px; }
.generation-steps strong { font-size: 0.88rem; }
.generation-steps small { font-size: 0.72rem; line-height: 1.4; }
.generation-steps li.is-active { color: var(--ink); background: var(--white); box-shadow: var(--shadow); }
.generation-steps li.is-active > span { color: white; border-color: var(--red); background: var(--red); }
.generation-steps li.is-complete { color: var(--green); }
.error-panel { margin: -30px auto 60px; padding: 24px; border: 1px solid #f0b6b1; border-radius: var(--radius); background: var(--soft-red); }
.error-panel p { margin: 8px 0 18px; color: #6f3c3a; }

.results-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; margin-bottom: 36px; }
.results-hero > div > p:last-child { max-width: 760px; margin-top: 18px; }
.result-actions { display: flex; gap: 9px; }
.result-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.result-stat { min-height: 82px; display: grid; align-content: center; gap: 4px; padding: 15px 20px; border-right: 1px solid var(--line); }
.result-stat:last-child { border: 0; }
.result-stat strong { font-size: 1.35rem; letter-spacing: -0.03em; }
.result-stat span { color: var(--muted); font-size: 0.68rem; font-weight: 700; }

.catalogue-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.catalogue-toolbar label { flex: 1; max-width: 430px; }
.filter-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.filter { min-height: 38px; padding: 0 13px; border: 1px solid var(--line); border-radius: 999px; color: #655f61; background: var(--white); font-size: 0.7rem; font-weight: 760; cursor: pointer; }
.filter.is-active { color: white; border-color: var(--ink); background: var(--ink); }

.chapter-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.chapter-card { display: flex; flex-direction: column; min-height: 520px; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 10px 35px rgba(42, 29, 23, 0.04); }
.chapter-head { display: grid; grid-template-columns: 34px 1fr auto; gap: 13px; align-items: start; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.chapter-number { color: var(--red); font-size: 0.72rem; font-weight: 850; }
.chapter-head h3 { margin: -3px 0 5px; font-size: 1.35rem; line-height: 1.08; letter-spacing: -0.035em; }
.chapter-structured { margin: 0; color: var(--muted); font-size: 0.72rem; }
.chapter-badges { display: grid; justify-items: end; gap: 6px; }
.relationship { padding: 5px 8px; border-radius: 999px; font-size: 0.6rem; font-weight: 850; text-transform: uppercase; letter-spacing: 0.05em; }
.relationship.core { color: #9f1015; background: #fee4e1; }
.relationship.extended { color: #7d5700; background: var(--soft-gold); }
.relationship.adjacent { color: #24518f; background: #e6effe; }
.relationship.systemic { color: #256244; background: #e3f4eb; }
.horizon { padding: 5px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); background: var(--white); font-size: 0.58rem; font-weight: 820; text-transform: uppercase; letter-spacing: 0.04em; }
.horizon.present { color: #256244; border-color: #b9dfca; background: #edf8f2; }
.horizon.emerging { color: #7d5700; border-color: #ead493; background: #fff8e6; }
.horizon.longer-term { color: #5b3e87; border-color: #d3c1eb; background: #f4effb; }
.chapter-field { padding: 18px 0; border-bottom: 1px solid #eee9e4; }
.chapter-field:last-of-type { border: 0; }
.chapter-field-label { display: block; margin-bottom: 8px; color: var(--red); font-size: 0.62rem; font-weight: 850; letter-spacing: 0.1em; text-transform: uppercase; }
.chapter-field p { margin: 0; color: #4f494b; font-size: 0.84rem; line-height: 1.55; }
.chapter-field.is-voice p { color: var(--ink); font-size: 1rem; font-weight: 680; font-style: italic; }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 18px; }
.tag { padding: 5px 8px; border-radius: 999px; color: #615a5c; background: #f2efeb; font-size: 0.64rem; font-weight: 700; }
.confidence { margin-left: auto; color: var(--muted); font-size: 0.65rem; font-weight: 700; }

.sources-panel { margin-top: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.sources-panel summary { padding: 20px 22px; font-size: 0.84rem; font-weight: 820; cursor: pointer; }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); }
.source-item { padding: 18px 22px; border-bottom: 1px solid var(--line); }
.source-item:nth-child(odd) { border-right: 1px solid var(--line); }
.source-item a { font-size: 0.8rem; font-weight: 780; text-underline-offset: 3px; }
.source-item p { margin: 7px 0 0; color: var(--muted); font-size: 0.72rem; line-height: 1.45; }
.source-item span { display: block; margin-bottom: 5px; color: var(--red); font-size: 0.62rem; font-weight: 800; }
.framework-note { margin-top: 20px; padding: 22px; border-left: 4px solid var(--red); background: var(--soft-red); }
.framework-note p { margin: 6px 0 0; color: #674c4d; font-size: 0.78rem; line-height: 1.5; }
body[data-language="business"] .framework-note,
body[data-language="business"] .chapter-structured { display: none; }
.empty-state { padding: 40px; text-align: center; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }

.site-footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.74rem; }
.site-footer a { color: var(--ink); font-weight: 760; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 34px; padding-top: 64px; }
  .hero-note { max-width: 420px; }
  .orientation-heading, .section-heading, .results-hero, .executive-summary { grid-template-columns: 1fr; gap: 22px; }
  .executive-summary-grid { grid-template-columns: 1fr; }
  .orientation-heading .eyebrow { grid-column: auto; margin-bottom: -8px; }
  .field-grid, .field-grid-primary, .plan-adjustments, .automatic-research { grid-template-columns: 1fr; }
  .control-grid { grid-template-columns: 1fr 1fr; }
  .range-card { grid-column: 1 / -1; }
  .lens-grid { grid-template-columns: repeat(2, 1fr); }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
  .complementary-flow, .value-list, .builder-intro { grid-template-columns: 1fr; gap: 24px; }
  .plan-banner, .result-stats { grid-template-columns: repeat(2, 1fr); }
  .plan-banner > div:nth-child(2), .result-stat:nth-child(2) { border-right: 0; }
  .plan-banner > div:nth-child(-n+2), .result-stat:nth-child(-n+2) { border-bottom: 1px solid #454143; }
  .result-stat:nth-child(-n+2) { border-bottom-color: var(--line); }
  .generation-layout { grid-template-columns: 1fr; gap: 40px; }
  .chapter-grid { grid-template-columns: 1fr; }
  .catalogue-toolbar { align-items: stretch; flex-direction: column; }
  .catalogue-toolbar label { max-width: none; }
}

@media (max-width: 620px) {
  .shell, .site-header { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 66px; }
  .wordmark span:last-child { max-width: 150px; }
  .header-actions { gap: 8px; }
  .example-link { display: none; }
  .language-switch > span { display: none; }
  .language-switch button { padding: 0 8px; }
  .hero { padding: 54px 0 42px; }
  h1 { font-size: clamp(2.9rem, 15vw, 4.7rem); }
  .orientation { padding: 44px 0 52px; }
  .human-continuum, .start-options, .reframe-grid, .reframe-result-grid { grid-template-columns: 1fr; }
  .human-moment-visual, .complementary-flow { padding: 22px; }
  .product-journey-inset { width: min(86%, 230px); }
  .builder-intro { padding-top: 46px; }
  .step-tab { min-height: 54px; font-size: 0; }
  .step-tab span { font-size: 0.68rem; }
  .workspace { padding: 46px 0 60px; }
  .control-grid, .plan-grid, .plan-banner, .result-stats, .source-list { grid-template-columns: 1fr; }
  .segmented { grid-template-columns: repeat(2, 1fr); }
  .lens-grid { grid-template-columns: 1fr; }
  .plan-banner > div, .result-stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .plan-banner > div { border-bottom-color: #454143; }
  .plan-banner > div:last-child, .result-stat:last-child { border-bottom: 0; }
  .form-actions, .form-actions-split, .form-actions-split > div { align-items: stretch; flex-direction: column; }
  .form-actions .button { width: 100%; }
  .form-actions-split small { max-width: none; text-align: left; }
  .results-hero { align-items: stretch; }
  .result-actions { flex-direction: column; }
  .filter-buttons { overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .chapter-card { min-height: 0; padding: 20px; }
  .chapter-head { grid-template-columns: 28px 1fr; }
  .chapter-badges { grid-column: 2; justify-items: start; grid-auto-flow: column; justify-content: start; }
  .source-item:nth-child(odd) { border-right: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; justify-content: center; padding: 24px 0; }
}

@media print {
  body { background: white; }
  .site-header, .orientation, .step-nav, .result-actions, .catalogue-toolbar, .form-actions, .site-footer { display: none !important; }
  .workspace { width: 100%; padding: 0; }
  .chapter-grid { grid-template-columns: 1fr; }
  .chapter-card { min-height: 0; break-inside: avoid; box-shadow: none; }
  .sources-panel { break-before: page; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
