:root {
  color-scheme: light;
  --ink: #191919;
  --muted: #60656f;
  --line: #d8d2c4;
  --paper: #f7f2e8;
  --surface: #fffaf0;
  --dark: #181612;
  --cream: #fff8e8;
  --yellow: #f3b51b;
  --red: #c9432e;
  --blue: #234f76;
  --green: #1d7657;
  --shadow: 0 22px 60px rgba(26, 21, 13, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(rgba(25, 25, 25, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(25, 25, 25, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

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

.topbar {
  align-items: center;
  background: rgba(247, 242, 232, 0.94);
  border-bottom: 3px solid var(--ink);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 72px;
  padding: 0 5vw;
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  align-items: center;
  display: flex;
  font-weight: 950;
  gap: 10px;
}

.brand-mark {
  align-items: center;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 6px;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 52px;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 0.92rem;
  font-weight: 850;
}

.hero {
  display: grid;
  gap: 36px;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.55fr);
  min-height: calc(100vh - 72px);
  padding: 8vh 5vw 7vh;
}

.hero-copy {
  align-self: center;
  max-width: 980px;
}

.eyebrow {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  margin: 0 0 10px;
  text-transform: uppercase;
}

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

h1 {
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  line-height: 0.92;
  margin-bottom: 26px;
  max-width: 1050px;
}

h2 {
  font-size: clamp(2rem, 4.6vw, 4rem);
  line-height: 0.98;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

.lede {
  color: var(--muted);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  max-width: 760px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  border: 3px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 950;
  justify-content: center;
  min-height: 48px;
  padding: 11px 18px;
}

.primary {
  background: var(--ink);
  color: var(--cream);
}

.secondary {
  background: var(--yellow);
  color: var(--ink);
}

.hero-panel {
  align-self: center;
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 12px 12px 0 var(--ink);
  display: grid;
  overflow: hidden;
}

.hero-panel div {
  border-bottom: 2px solid var(--line);
  display: grid;
  gap: 4px;
  padding: 28px;
}

.hero-panel div:last-child {
  border-bottom: 0;
}

.hero-panel span,
.hero-panel small {
  color: var(--muted);
  font-weight: 800;
}

.hero-panel strong {
  font-size: 2.4rem;
  line-height: 1;
}

.band,
.booking-band,
.console,
.questionnaire,
.next-step-band,
.report-band,
.workflow-band,
.workspace {
  border-top: 3px solid var(--ink);
  padding: 78px 5vw;
}

.funnel-strip {
  background: var(--ink);
  color: var(--cream);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.funnel-strip div {
  background: #24211b;
  display: grid;
  gap: 4px;
  padding: 22px 5vw;
}

.funnel-strip span {
  align-items: center;
  background: var(--yellow);
  border-radius: 50%;
  color: var(--ink);
  display: inline-flex;
  font-weight: 950;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.funnel-strip strong {
  font-size: 1.1rem;
}

.funnel-strip small {
  color: #d9cdb7;
  font-weight: 800;
}

.dark {
  background: var(--dark);
  color: var(--cream);
}

.dark .eyebrow {
  color: var(--yellow);
}

.dark p,
.dark li {
  color: #ddd2be;
}

.section-head {
  margin-bottom: 30px;
  max-width: 850px;
}

.compact {
  margin-bottom: 22px;
}

.compact h2 {
  font-size: clamp(1.7rem, 3vw, 2.55rem);
}

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

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

.inclusion-grid article,
.tool,
.score-panel,
fieldset,
.report-output,
.script {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(25, 25, 25, 0.88);
}

.dark .inclusion-grid article {
  color: var(--ink);
}

.inclusion-grid article {
  padding: 26px;
}

.inclusion-grid ul {
  margin: 0;
  padding-left: 19px;
}

.mantra-card {
  background: var(--yellow) !important;
}

.mantra-card p {
  color: var(--ink);
  font-size: 1.1rem;
  font-weight: 800;
}

.workflow-band {
  align-items: start;
  display: grid;
  gap: 34px;
  grid-template-columns: minmax(240px, 0.75fr) minmax(300px, 1.25fr);
}

.workflow-copy {
  position: sticky;
  top: 104px;
}

.booking-band {
  background: #fffdf8;
}

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

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

.checkout-card,
.package-card,
.rebuild-cta,
.rebuild-summary,
.package-recommendation {
  background: var(--surface);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(25, 25, 25, 0.88);
  padding: 26px;
}

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

.checkout-card.soft {
  background: #f8f0df;
}

.checkout-card ol {
  margin: 0;
  padding-left: 22px;
}

.price-tag {
  color: var(--red);
  font-size: 3.8rem;
  font-weight: 950;
  line-height: 1;
}

.questionnaire {
  background: #fffdf8;
}

body.diagnostic-unlocked .pre-diagnostic,
body.report-ready .questionnaire {
  display: none;
}

body:not(.diagnostic-unlocked) .report-band,
body:not(.diagnostic-unlocked) .next-step-band,
body.diagnostic-unlocked:not(.report-ready) .report-band,
body.diagnostic-unlocked:not(.report-ready) .next-step-band {
  display: none;
}

body.diagnostic-unlocked:not(.report-ready) .questionnaire {
  border-top: 0;
  min-height: 100vh;
  padding-top: 46px;
}

body.report-ready .report-band {
  border-top: 0;
  min-height: 100vh;
  padding-top: 46px;
}

.gated-content.is-locked .client-form,
.gated-content.is-locked .package-grid,
.gated-content.is-locked .rebuild-cta,
.gated-content.is-locked .rebuild-form,
.gated-content.is-locked .rebuild-summary,
.gated-content.is-locked figure {
  display: none;
}

.unlock-notice {
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(25, 25, 25, 0.88);
  display: none;
  gap: 6px;
  margin-bottom: 22px;
  padding: 18px;
}

.unlock-notice strong,
.unlock-notice span {
  display: block;
}

.gated-content.is-locked .unlock-notice {
  display: grid;
}

.gated-content:not(.is-locked) .unlock-notice {
  display: none;
}

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

.client-form fieldset {
  align-content: start;
}

.client-form .wide,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hidden-field {
  display: none;
}

.form-status {
  background: #e8f4e7;
  border: 2px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
  margin-top: 16px;
  padding: 12px;
}

.form-status.error {
  background: #fae8df;
  border-color: var(--red);
}

figure {
  margin: 0;
}

figure img {
  background: white;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: block;
  height: auto;
  max-width: 100%;
}

.workspace {
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
}

.tool {
  padding: 28px;
}

form {
  display: grid;
  gap: 14px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  font-weight: 850;
  gap: 7px;
}

input,
select,
textarea {
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  padding: 12px;
  width: 100%;
}

textarea {
  resize: vertical;
}

.client-list {
  display: grid;
  gap: 10px;
}

.client-item {
  background: #fffefa;
  border: 2px solid var(--line);
  border-radius: 7px;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.client-item strong {
  display: block;
}

.client-item span {
  color: var(--muted);
}

.mini-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mini {
  background: white;
  border: 2px solid var(--ink);
  border-radius: 7px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 900;
  padding: 7px 10px;
}

.mini.danger {
  color: var(--red);
}

.diagnostic-grid {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
}

.score-panel {
  display: grid;
  gap: 20px;
  padding: 24px;
  position: sticky;
  top: 104px;
}

.score-ring {
  align-items: center;
  aspect-ratio: 1;
  background:
    radial-gradient(circle at center, var(--surface) 0 56%, transparent 57%),
    conic-gradient(var(--green) var(--score-deg, 0deg), #ddd4c4 0deg);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  place-content: center;
}

.score-ring span {
  font-size: clamp(3rem, 9vw, 5.2rem);
  font-weight: 950;
  line-height: 1;
}

.score-ring small {
  color: var(--muted);
  font-weight: 900;
}

.score-copy p {
  color: var(--muted);
  margin-bottom: 0;
}

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

fieldset {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 20px;
}

.field-note {
  background: #f8f0df;
  border-left: 7px solid var(--red);
  color: var(--ink);
  font-weight: 800;
  margin-bottom: 4px;
  padding: 12px 14px;
}

legend {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 950;
  padding: 6px 10px;
}

input[type="range"] {
  accent-color: var(--red);
  padding: 0;
}

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

.report-band {
  background: #fffdf8;
}

.report-toolbar {
  align-items: end;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 28px;
}

.report-output {
  outline: 0;
  box-shadow: none;
  max-width: 980px;
  padding: 30px;
}

.report-output:not(:has(.report-cover)) {
  border-style: dashed;
}

.report-cover h2 {
  font-size: clamp(2.1rem, 5vw, 4.4rem);
}

.report-output h3 {
  border-top: 2px solid var(--line);
  padding-top: 18px;
}

.report-meta {
  color: var(--muted);
  display: grid;
  gap: 4px;
  margin-bottom: 24px;
}

.leak-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 24px;
}

.leak-list div {
  background: #f8f0df;
  border-left: 7px solid var(--red);
  padding: 12px 14px;
}

.report-grid,
.report-score-row,
.roadmap {
  display: grid;
  gap: 16px;
}

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

.report-score-row {
  align-items: center;
  grid-template-columns: 190px minmax(0, 1fr);
}

.report-score {
  align-items: center;
  aspect-ratio: 1;
  background: var(--yellow);
  border: 3px solid var(--ink);
  border-radius: 50%;
  display: grid;
  justify-items: center;
  place-content: center;
}

.report-score strong {
  font-size: 4rem;
  line-height: 1;
}

.report-score span {
  font-weight: 950;
}

.score-bars {
  display: grid;
  gap: 12px;
  margin-bottom: 24px;
}

.score-bar {
  display: grid;
  gap: 8px;
}

.score-bar div {
  display: flex;
  justify-content: space-between;
}

meter {
  height: 18px;
  width: 100%;
}

.roadmap {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 24px;
}

.roadmap article {
  background: #f8f0df;
  border: 2px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.roadmap span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.roadmap h4 {
  font-size: 1.08rem;
  margin: 8px 0;
}

.next-step-band {
  background: var(--dark);
  color: var(--cream);
}

.next-step-band .eyebrow {
  color: var(--yellow);
}

.next-step-band p {
  color: #ddd2be;
}

.package-card {
  background: var(--surface);
  color: var(--ink);
}

.package-card.featured {
  background: var(--yellow);
}

.package-card span,
.package-recommendation span {
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.package-card strong {
  display: block;
  margin-bottom: 10px;
}

.rebuild-cta {
  align-items: center;
  background: var(--cream);
  color: var(--ink);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 18px;
}

.rebuild-cta p {
  color: var(--muted);
  margin-bottom: 0;
}

.rebuild-form {
  margin-top: 22px;
}

.rebuild-form fieldset {
  background: var(--cream);
  color: var(--ink);
}

.rebuild-summary {
  background: var(--cream);
  color: var(--ink);
  margin-top: 18px;
}

.rebuild-summary p:last-child {
  margin-bottom: 0;
}

.no-call-note {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  padding: 12px;
}

.package-recommendation {
  background: #f8f0df;
  box-shadow: none;
  margin-bottom: 16px;
}

.package-recommendation h4 {
  font-size: 1.4rem;
  margin: 6px 0 8px;
}

.report-cta {
  background: var(--yellow);
  border: 2px solid var(--ink);
  border-radius: 8px;
  font-weight: 950;
  padding: 14px;
}

.script {
  padding: 22px;
  position: relative;
}

.script p {
  color: var(--muted);
  margin-bottom: 0;
}

.copy {
  background: var(--blue);
  border: 0;
  border-radius: 7px;
  color: white;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 950;
  padding: 8px 11px;
  position: absolute;
  right: 14px;
  top: 14px;
}

footer {
  background: var(--ink);
  color: var(--cream);
  padding: 24px 5vw;
}

@media print {
  .topbar,
  .hero,
  .band,
  .booking-band,
  .workflow-band,
  .workspace,
  .questionnaire,
  .console,
  .report-toolbar,
  .next-step-band,
  footer {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }

  .report-band {
    border: 0;
    padding: 0;
  }

  .report-output {
    border: 0;
    box-shadow: none;
    max-width: none;
    padding: 0;
  }

  .report-output h3 {
    break-after: avoid;
  }

  .roadmap,
  .leak-list,
  .score-bars {
    break-inside: avoid;
  }
}

@media (max-width: 1040px) {
  .inclusion-grid,
  .script-grid,
  .inspection-form,
  .client-form,
  .booking-grid,
  .package-grid,
  .roadmap {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 14px;
    padding-top: 14px;
  }

  .hero,
  .workflow-band,
  .workspace,
  .diagnostic-grid,
  .inclusion-grid,
  .script-grid,
  .inspection-form,
  .client-form,
  .booking-grid,
  .package-grid,
  .report-grid,
  .report-score-row,
  .roadmap,
  .funnel-strip {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: auto;
    padding-top: 52px;
  }

  .workflow-copy,
  .score-panel {
    position: static;
  }

  .rebuild-cta {
    align-items: stretch;
    flex-direction: column;
  }
}
