:root {
  color-scheme: light;
  --bg: #f6f1e8;
  --ink: #181411;
  --muted: #635d55;
  --line: #ded2c1;
  --accent: #0f6d63;
  --accent-dark: #094b44;
  --ember: #b84b32;
  --gold: #d69f3b;
  --paper: #fffaf1;
  --paper-strong: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(15, 109, 99, 0.16), transparent 34%),
    linear-gradient(225deg, rgba(184, 75, 50, 0.13), transparent 30%),
    var(--bg);
}

.page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  gap: 28px;
  align-items: stretch;
  min-height: calc(100vh - 68px);
  padding: 28px;
  background: rgba(255, 250, 241, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(79, 56, 30, 0.14);
}

.hero-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 18px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--ember);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(44px, 6.4vw, 86px);
  line-height: 0.95;
  letter-spacing: 0;
}

.lead {
  max-width: 690px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: 21px;
  line-height: 1.5;
}

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

.proof-strip span {
  padding: 9px 12px;
  border: 1px solid rgba(15, 109, 99, 0.2);
  border-radius: 999px;
  background: rgba(15, 109, 99, 0.08);
  color: var(--accent-dark);
  font-size: 13px;
  font-weight: 700;
}

.checkout {
  max-width: 700px;
  margin-top: 30px;
  padding: 16px;
  border: 1px solid rgba(24, 20, 17, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

label {
  display: block;
  margin-bottom: 10px;
  font-size: 14px;
  font-weight: 700;
}

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

input,
button {
  min-height: 56px;
  border-radius: 6px;
  font: inherit;
}

input {
  width: 100%;
  border: 1px solid var(--line);
  padding: 0 14px;
  background: #ffffff;
  color: var(--ink);
}

button {
  border: 0;
  background: var(--accent);
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

button:hover {
  background: var(--accent-dark);
}

button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.status {
  min-height: 22px;
  margin: 8px 0 0;
  color: var(--ember);
  font-size: 14px;
}

.microcopy {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.diagnostic-panel {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-self: center;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(24, 20, 17, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(24, 20, 17, 0.04), transparent),
    var(--paper-strong);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.panel-header strong {
  color: var(--ember);
  font-size: 24px;
}

.question-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffaf1;
}

.question-card.active {
  border-color: rgba(15, 109, 99, 0.38);
  background: #f1fbf7;
}

.number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
}

.question-card p {
  margin: 0;
  color: #26211d;
  font-size: 16px;
  line-height: 1.35;
}

.meter {
  height: 14px;
  margin-top: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8ded0;
}

.meter span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ember), var(--gold));
}

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

.details {
  display: grid;
  grid-template-columns: 1.1fr 0.95fr 0.95fr;
  gap: 16px;
  margin-top: 16px;
}

article {
  padding: 22px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

h2 {
  margin: 0 0 12px;
  font-size: 20px;
  letter-spacing: 0;
}

ul,
article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .diagnostic-panel {
    align-self: stretch;
  }

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

@media (max-width: 720px) {
  .page {
    padding: 16px 0;
  }

  .hero {
    padding: 14px;
  }

  .hero-copy,
  .diagnostic-panel {
    padding: 14px;
  }

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

  button {
    width: 100%;
  }
}
