:root {
  color-scheme: light;
  --ink: #141414;
  --muted: #63625d;
  --line: #d9d4ca;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --charcoal: #232321;
  --olive: #656d4a;
  --clay: #a4573e;
  --gold: #c99538;
  --sea: #2d6f73;
  --focus: #1c6f82;
  --shadow: 0 18px 48px rgba(26, 24, 20, 0.11);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  min-height: 100vh;
}

.purchase-terms {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.purchase-terms a,
.site-footer a {
  text-decoration-color: rgba(20, 20, 20, 0.35);
  text-underline-offset: 3px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  background: #f2efe8;
  padding: 18px 28px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: #f2efe8;
  padding: 28px 24px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 14px;
}

.studio-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--olive);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 0;
  font-size: 23px;
  line-height: 1;
}

.tagline {
  margin: 28px 0;
  color: var(--muted);
  line-height: 1.45;
}

.progress-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.66);
  padding: 16px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.progress-track {
  height: 9px;
  overflow: hidden;
  background: #dfd9cc;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--sea), var(--gold));
  transition: width 180ms ease;
}

.section-nav {
  display: grid;
  gap: 8px;
  margin: 24px 0;
}

.nav-item {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 44px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  text-align: left;
}

.nav-item span:first-child {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
}

.nav-item.active,
.nav-item:hover {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.7);
  color: var(--ink);
}

.sidebar-actions,
.toolbar-actions,
.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.main-panel {
  min-width: 0;
  background:
    linear-gradient(rgba(251, 250, 247, 0.9), rgba(251, 250, 247, 0.96)),
    repeating-linear-gradient(135deg, #e7e0d4 0, #e7e0d4 1px, transparent 1px, transparent 16px);
}

body.payment-locked .app-shell {
  grid-template-columns: minmax(0, 1fr);
}

body.payment-locked .sidebar {
  display: none;
}

.payment-gate {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 32px;
  background:
    radial-gradient(circle at 15% 15%, rgba(201, 149, 56, 0.12), transparent 34%),
    radial-gradient(circle at 85% 80%, rgba(45, 111, 115, 0.12), transparent 32%);
}

.payment-gate[hidden] {
  display: none;
}

.payment-gate-card {
  width: min(100%, 680px);
  border: 1px solid var(--line);
  background: var(--panel);
  padding: clamp(30px, 6vw, 64px);
  box-shadow: var(--shadow);
}

.payment-gate-card h2 {
  max-width: 12ch;
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.payment-gate-lede {
  max-width: 58ch;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.payment-benefits {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.payment-benefits li {
  position: relative;
  padding-left: 24px;
  font-weight: 700;
}

.payment-benefits li::before {
  position: absolute;
  left: 0;
  color: var(--olive);
  content: "✓";
}

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

.purchase-form label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 800;
}

.purchase-form input {
  min-height: 48px;
  border: 1px solid var(--line);
  padding: 11px 13px;
  background: #fff;
}

.payment-status {
  min-height: 21px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.hero-panel {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(340px, 420px);
  gap: clamp(28px, 4vw, 52px);
  align-items: center;
  justify-content: start;
  padding: 56px clamp(24px, 7vw, 96px);
}

.hero-copy h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(48px, 7.4vw, 108px);
  line-height: 0.92;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 26px 0 18px;
}

.hero-stats span {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.75);
  padding: 10px 12px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
}

.intake-card {
  max-width: 720px;
  margin: 0 0 18px;
  border: 1px solid rgba(35, 35, 33, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 18px;
  box-shadow: 0 12px 30px rgba(25, 25, 22, 0.055);
}

.intake-heading {
  margin-bottom: 14px;
}

.intake-heading p:last-child {
  max-width: 440px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

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

.intake-grid label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.intake-grid label span {
  color: #9b9284;
  font-weight: 700;
}

.intake-grid input {
  margin-top: 6px;
}

.deliverables-panel {
  border: 1px solid var(--charcoal);
  background: var(--charcoal);
  color: #fff;
  width: 100%;
  max-width: 420px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.deliverables-panel .eyebrow {
  color: #d8b15a;
}

.roadmap-list {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: roadmap;
}

.roadmap-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 16px;
}

.roadmap-list li:first-child {
  border-top: 0;
  padding-top: 0;
}

.roadmap-list span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(216, 177, 90, 0.55);
  color: #d8b15a;
  font-size: 12px;
  font-weight: 900;
}

.roadmap-list strong {
  display: block;
  margin-bottom: 5px;
  color: #fff;
  font-size: 15px;
}

.roadmap-list p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  line-height: 1.45;
}

.workshop-form {
  padding: 36px clamp(18px, 5vw, 72px) 64px;
}

.section-card {
  display: none;
  max-width: 940px;
  margin: 0 auto;
}

.section-card.active {
  display: block;
}

.section-header {
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.section-header h2 {
  margin-bottom: 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1;
  letter-spacing: 0;
}

.section-header p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.55;
}

.question-card {
  margin-bottom: 18px;
  border: 1px solid rgba(35, 35, 33, 0.09);
  background: var(--panel);
  padding: 22px;
  box-shadow: 0 8px 22px rgba(25, 25, 22, 0.045);
}

.question-topline {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.question-card > label,
.question-title {
  display: block;
  margin-bottom: 7px;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.28;
}

.helper-text {
  max-width: 720px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.42;
}

textarea,
input[type="text"],
input[type="email"],
input[type="url"],
select {
  width: 100%;
  border: 1px solid #c7c0b5;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #9b9284;
}

textarea {
  min-height: 104px;
  resize: vertical;
  line-height: 1.45;
}

.dictation-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 7px;
  align-items: stretch;
}

.dictation-field textarea + .dictate-button {
  align-self: start;
  min-height: 40px;
}

.dictate-button {
  border: 1px solid var(--charcoal);
  background: #fff;
  color: var(--charcoal);
  font-weight: 850;
}

.dictate-button svg {
  display: block;
  width: 17px;
  height: 17px;
  margin: 0 auto;
  fill: currentColor;
}

.dictate-button:hover {
  background: #f4efe5;
}

.dictate-button.listening {
  border-color: var(--clay);
  background: var(--clay);
  color: #fff;
  font-size: 12px;
  text-transform: uppercase;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: 3px solid rgba(28, 111, 130, 0.24);
  outline-offset: 2px;
  border-color: var(--focus);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.choice-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 11px;
  align-items: start;
  min-height: 42px;
  border: 1px solid #d5cec2;
  background: #fff;
  padding: 10px 11px;
  line-height: 1.35;
  box-shadow: none;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.choice-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice-marker {
  display: block;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border: 1px solid #9c9385;
  background: #fff;
  box-shadow: inset 0 0 0 4px #fff;
}

.choice-copy {
  display: grid;
  gap: 2px;
  font-size: 14px;
  font-weight: 700;
}

.choice-copy small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.choice-option:has(input:checked) {
  border-color: var(--sea);
  background: #f1f8f6;
  box-shadow: inset 0 0 0 1px rgba(45, 111, 115, 0.14);
}

.choice-option:has(input:checked) .choice-marker {
  border-color: var(--sea);
  background: var(--sea);
  box-shadow: inset 0 0 0 4px #fff;
}

.choice-option:hover {
  border-color: #aaa192;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(35, 35, 33, 0.04);
}

.binary-list {
  display: grid;
  gap: 9px;
}

.binary-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 30px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
  border: 1px solid #ded8cd;
  background: #f8f5ee;
  padding: 6px;
}

.binary-option {
  min-height: 40px;
  box-shadow: none;
}

.binary-divider {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.ranking-control {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 14px;
  align-items: start;
}

.ranking-bucket {
  min-height: 196px;
  border: 1px solid #d8d1c5;
  background: #fbfaf7;
  padding: 12px;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    box-shadow 140ms ease;
}

.ranked-bucket {
  border-color: var(--sea);
  background: #eff8f6;
}

.bucket-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
}

.bucket-heading strong {
  color: var(--charcoal);
}

.bucket-note {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
}

.rank-items {
  display: grid;
  gap: 6px;
}

.rank-token {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  width: 100%;
  min-height: 38px;
  border: 1px solid #d2cabd;
  background: #fff;
  padding: 7px 8px;
  color: var(--charcoal);
  text-align: left;
  box-shadow: none;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease,
    opacity 140ms ease;
}

.rank-token span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  background: #eee7da;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 850;
}

.rank-token strong {
  display: block;
  font-size: 13px;
  line-height: 1.2;
}

.rank-token:hover {
  border-color: var(--sea);
  box-shadow: 0 7px 16px rgba(45, 111, 115, 0.09);
  transform: translateY(-1px);
}

.rank-token.is-dragging {
  opacity: 0.45;
}

.ranking-bucket.is-drop-target {
  border-color: var(--gold);
  background: #fff8ea;
  box-shadow: inset 0 0 0 2px rgba(201, 149, 56, 0.18);
}

.rank-token.is-drop-target {
  border-top-color: var(--gold);
  box-shadow: 0 -3px 0 var(--gold), 0 8px 18px rgba(24, 23, 20, 0.08);
}

.rank-token.is-ranked {
  border-color: rgba(45, 111, 115, 0.45);
}

.rank-token.is-ranked span {
  background: var(--sea);
  color: #fff;
}

.empty-bucket {
  margin: 0;
  border: 1px dashed #bcb4a5;
  padding: 18px;
  color: var(--muted);
  text-align: center;
}

.slider-group {
  display: grid;
  gap: 22px;
}

.slider-row {
  display: grid;
  gap: 8px;
}

.slider-title {
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 850;
}

.slider-track-wrap {
  display: grid;
  grid-template-columns: minmax(82px, max-content) minmax(140px, 1fr) minmax(82px, max-content);
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--sea);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

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

.stacked-fields .dictation-field {
  grid-template-columns: minmax(0, 1fr) 42px;
}

.field-grid label {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.field-grid input {
  margin-top: 6px;
}

.field-grid .dictation-field {
  margin-top: 6px;
}

.field-grid .dictation-field input,
.field-grid .dictation-field textarea {
  margin-top: 0;
}

.rewrite-example {
  margin: -2px 0 12px;
  border-left: 3px solid var(--gold);
  background: #f8f3ea;
  padding: 10px 12px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 750;
}

.comparison-fill {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-weight: 800;
  border: 1px solid #d8d1c5;
  background: #fbfaf7;
  padding: 12px;
  font-size: 14px;
}

.comparison-fill .dictation-field {
  flex: 1 1 150px;
  grid-template-columns: minmax(0, 1fr) 40px;
}

.positioning-guide {
  display: grid;
  gap: 12px;
}

.guided-compose {
  display: grid;
  gap: 10px;
}

.source-line {
  margin: 0;
  border: 1px solid #d8d1c5;
  background: #fbfaf7;
  padding: 11px 12px;
  color: var(--charcoal);
  font-size: 14px;
  line-height: 1.45;
}

.source-line span {
  display: block;
  margin-bottom: 4px;
  color: var(--olive);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.formula-line {
  margin: 0;
  border: 1px solid #d8d1c5;
  background: linear-gradient(180deg, #fff 0%, #fbfaf7 100%);
  padding: 12px 13px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
  box-shadow: inset 3px 0 0 rgba(45, 111, 115, 0.34);
}

.formula-line strong {
  color: var(--charcoal);
  font-weight: 850;
}

.positioning-grid {
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  row-gap: 12px;
}

.long-answer-stack {
  gap: 12px;
}

.long-answer-stack input[type="text"] {
  min-height: 46px;
}

.long-answer-stack textarea {
  min-height: 76px;
}

.form-actions {
  position: sticky;
  bottom: 0;
  justify-content: space-between;
  margin-top: 26px;
  border-top: 1px solid var(--line);
  background: rgba(251, 250, 247, 0.94);
  padding: 16px 0 0;
  backdrop-filter: blur(10px);
}

.primary-button,
.ghost-button {
  min-height: 44px;
  border: 1px solid var(--charcoal);
  padding: 0 18px;
  font-weight: 850;
}

.primary-button {
  background: var(--charcoal);
  color: #fff;
}

.primary-button:hover {
  background: #000;
}

.ghost-button {
  background: transparent;
  color: var(--charcoal);
}

.ghost-button:hover {
  background: #fff;
}

.report-screen {
  padding: 32px clamp(18px, 4vw, 56px) 72px;
}

.report-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-end;
  max-width: 1180px;
  margin: 0 auto 22px;
  border-bottom: 1px solid rgba(35, 35, 33, 0.12);
  padding-bottom: 18px;
}

.report-toolbar h2 {
  max-width: 760px;
  margin-bottom: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 0.98;
}

.report-output {
  max-width: 1180px;
  margin: 0 auto;
}

.report-cover {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.34fr);
  gap: 34px;
  align-items: end;
  margin-bottom: 18px;
  border: 1px solid rgba(35, 35, 33, 0.13);
  background:
    linear-gradient(135deg, rgba(35, 35, 33, 0.96), rgba(35, 35, 33, 0.88)),
    var(--charcoal);
  padding: clamp(26px, 5vw, 56px);
  color: #fff;
  box-shadow: var(--shadow);
}

.report-cover .eyebrow {
  color: #d8b26b;
}

.report-cover h3 {
  max-width: 760px;
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 7vw, 86px);
  line-height: 0.94;
}

.report-cover p:not(.eyebrow) {
  max-width: 600px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 18px;
  line-height: 1.45;
}

.report-meta {
  display: grid;
  gap: 1px;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
}

.report-meta div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  background: rgba(255, 255, 255, 0.06);
  padding: 13px 14px;
}

.report-meta dt {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-meta dd {
  margin: 0;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
}

.report-save-note {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin: -4px 0 18px;
  border: 1px solid rgba(45, 111, 115, 0.18);
  background: rgba(247, 250, 249, 0.86);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.report-save-note strong {
  display: block;
  margin-bottom: 2px;
  color: var(--sea);
  font-size: 12px;
  text-transform: uppercase;
}

.report-save-note span {
  display: block;
}

.report-save-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.compact-button {
  min-height: 36px;
  padding: 0 12px;
  white-space: nowrap;
  font-size: 12px;
}

.report-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.report-rail {
  position: sticky;
  top: 24px;
  border: 1px solid rgba(35, 35, 33, 0.12);
  background: rgba(255, 255, 255, 0.72);
  padding: 16px;
}

.report-rail nav {
  display: grid;
  gap: 4px;
}

.report-rail a {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  padding: 9px 0;
  border-top: 1px solid rgba(35, 35, 33, 0.08);
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.25;
  text-decoration: none;
}

.report-rail a span {
  color: var(--olive);
  font-size: 11px;
  font-weight: 850;
}

.report-document {
  display: grid;
  gap: 14px;
}

.report-section {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  border: 1px solid rgba(35, 35, 33, 0.11);
  background: #fff;
  padding: clamp(24px, 4vw, 46px);
  box-shadow: 0 14px 34px rgba(25, 25, 22, 0.065);
}

.report-section-index {
  color: #c8b991;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 44px;
  line-height: 0.9;
}

.report-section h3 {
  max-width: 760px;
  margin-bottom: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1;
  letter-spacing: 0;
}

.report-section h4 {
  margin: 0 0 9px;
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.25;
  text-transform: none;
}

.report-section p,
.report-section li {
  color: #393832;
  line-height: 1.58;
}

.report-section p {
  max-width: 780px;
  margin-bottom: 12px;
}

.lead-paragraph {
  color: #262520;
  font-size: 17px;
}

.report-card-grid,
.copy-sample-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.report-card {
  border: 1px solid rgba(35, 35, 33, 0.1);
  background: #fbfaf7;
  padding: 16px;
}

.report-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.copy-card {
  border-color: rgba(45, 111, 115, 0.18);
  background: linear-gradient(180deg, #fff 0%, #f7faf9 100%);
  box-shadow: inset 3px 0 0 rgba(45, 111, 115, 0.45);
}

.copy-card p {
  color: #252520;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  line-height: 1.42;
}

.report-rule-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.report-rule-list li {
  position: relative;
  border-left: 3px solid rgba(101, 109, 74, 0.44);
  background: #fbfaf7;
  padding: 11px 14px 11px 16px;
}

.loading-report,
.error-report {
  min-height: 280px;
}

.loading-bar {
  overflow: hidden;
  height: 8px;
  margin-top: 24px;
  background: #e8e1d4;
}

.loading-bar span {
  display: block;
  width: 42%;
  height: 100%;
  background: linear-gradient(90deg, var(--sea), var(--gold));
  animation: loading-slide 1.2s ease-in-out infinite alternate;
}

.error-report {
  border-left: 4px solid var(--clay);
}

@keyframes loading-slide {
  from {
    transform: translateX(-30%);
  }
  to {
    transform: translateX(170%);
  }
}

.metric-grid,
.rule-grid,
.sample-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.metric,
.rule-card,
.sample-card,
.prompt-card {
  border: 1px solid var(--line);
  background: #fbfaf7;
  padding: 16px;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: 24px;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  background: #ebe4d6;
  padding: 7px 10px;
  color: var(--charcoal);
  font-size: 13px;
  font-weight: 750;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  background: var(--charcoal);
  color: #fff;
  padding: 12px 14px;
  transition:
    opacity 160ms ease,
    transform 160ms ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

@media (max-width: 1480px) {
  .hero-panel {
    grid-template-columns: 1fr;
    min-height: auto;
    align-items: start;
  }

  .deliverables-panel {
    max-width: 720px;
  }

  .intake-heading p:last-child {
    white-space: normal;
  }
}

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

  body.welcome-active .sidebar,
  body.report-active .sidebar {
    display: none;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .section-nav {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .report-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .report-cover,
  .report-layout {
    grid-template-columns: 1fr;
  }

  .report-rail {
    position: static;
  }

  .report-rail nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 18px;
  }

}

@media (max-width: 760px) {
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 16px;
  }

  .payment-gate {
    padding: 16px;
  }

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

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

  .unranked-bucket .rank-items {
    grid-template-columns: repeat(auto-fit, minmax(136px, 1fr));
  }

  .toolbar-actions {
    width: 100%;
  }

  .report-cover {
    padding: 24px;
  }

  .report-save-note {
    align-items: stretch;
    flex-direction: column;
  }

  .report-save-actions {
    justify-content: stretch;
  }

  .compact-button {
    width: 100%;
  }

  .report-meta div,
  .report-section {
    grid-template-columns: 1fr;
  }

  .report-section-index {
    font-size: 28px;
  }

  .report-card-grid,
  .copy-sample-grid,
  .report-rail nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .comparison-fill,
  .positioning-grid {
    grid-template-columns: 1fr;
  }

  .comparison-fill,
  .binary-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .binary-divider {
    min-height: 22px;
  }
}

@media (max-width: 560px) {
  .sidebar,
  .workshop-form,
  .report-screen,
  .hero-panel {
    padding-left: 16px;
    padding-right: 16px;
  }

  .hero-copy h2 {
    font-size: 46px;
  }

  .intake-card {
    padding: 16px;
  }

  .intake-heading {
    display: block;
  }

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

  .question-card,
  .report-section {
    padding: 18px;
  }

  .report-toolbar h2 {
    font-size: 38px;
  }

  .report-cover h3 {
    font-size: 44px;
  }

  .copy-card p {
    font-size: 16px;
  }

  .slider-track-wrap {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media print {
  body {
    background: #fff;
  }

  .sidebar,
  .report-toolbar,
  .toast {
    display: none !important;
  }

  .app-shell,
  .main-panel,
  .report-screen {
    display: block;
    padding: 0;
  }

  .report-output {
    box-shadow: none;
  }

  .report-cover {
    border: 0;
    border-bottom: 1px solid #ddd;
    background: #fff;
    color: #111;
    box-shadow: none;
  }

  .report-cover .eyebrow,
  .report-cover p:not(.eyebrow),
  .report-meta dt,
  .report-meta dd {
    color: #111;
  }

  .report-layout,
  .report-section {
    display: block;
  }

  .report-rail {
    display: none;
  }

  .report-section {
    break-inside: avoid;
    border: 0;
    border-bottom: 1px solid #ddd;
    box-shadow: none;
  }
}
