:root {
  --ink: #17201f;
  --muted: #52605e;
  --paper: #f7f5ef;
  --line: #d7d1c4;
  --green: #1d6f5b;
  --green-deep: #124539;
  --amber: #c98b2f;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(16, 24, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(16px, 4vw, 54px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(9, 15, 15, 0.78), rgba(9, 15, 15, 0.2));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 700;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

nav {
  display: flex;
  align-items: center;
  gap: clamp(12px, 3vw, 28px);
  font-size: 0.92rem;
}

.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  color: var(--white);
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 16, 16, 0.92) 0%, rgba(9, 16, 16, 0.66) 36%, rgba(9, 16, 16, 0.16) 76%),
    linear-gradient(180deg, rgba(9, 16, 16, 0.2) 0%, rgba(9, 16, 16, 0.62) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  min-height: 92vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 420px);
  align-items: center;
  gap: clamp(24px, 5vw, 68px);
  padding: 96px clamp(18px, 5vw, 70px) 44px;
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: #d9b264;
  font-size: 0.78rem;
  line-height: 1.25;
  font-weight: 800;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 700px;
  font-size: clamp(3rem, 7vw, 5.8rem);
  line-height: 0.94;
  font-weight: 850;
}

.hero-lede {
  max-width: 660px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: #07100e;
  background: #f3c76a;
}

.button.secondary {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.09);
}

.diagnostic-panel {
  width: 100%;
  padding: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel-heading h2 {
  margin-bottom: 18px;
  font-size: 1.6rem;
}

.fit-form {
  display: grid;
  gap: 16px;
}

label,
fieldset {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  font-weight: 700;
}

legend {
  margin-bottom: 8px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

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

output {
  color: var(--green);
  font-weight: 850;
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.segmented label {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 38px;
  padding: 0 8px;
  border-right: 1px solid var(--line);
  font-size: 0.88rem;
  cursor: pointer;
}

.segmented label:last-child {
  border-right: 0;
}

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

.segmented input:checked + span {
  color: var(--white);
}

.segmented label:has(input:checked) {
  background: var(--green);
}

.score-card {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe0d7;
  border-radius: 8px;
  background: #ecf6f1;
}

.score-card div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.score-label {
  color: var(--muted);
  font-weight: 800;
}

#score {
  color: var(--green-deep);
  font-size: 2.3rem;
  line-height: 1;
}

#recommendation {
  margin: 0;
  color: #304340;
  line-height: 1.45;
}

.band {
  padding: 22px clamp(18px, 5vw, 70px);
  background: #102b24;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  color: var(--white);
}

.metric {
  min-height: 124px;
  padding: 20px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.metric:first-child {
  border-left: 0;
}

.metric strong {
  display: block;
  margin-bottom: 8px;
  color: #f3c76a;
  font-size: 2rem;
  line-height: 1;
}

.metric span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.4;
}

.section {
  padding: clamp(54px, 8vw, 92px) clamp(18px, 5vw, 70px);
}

.section-header {
  max-width: 760px;
  margin-bottom: 28px;
}

.contact-channel {
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.5;
}

.contact-channel a,
footer a {
  color: var(--green-deep);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.section h2 {
  margin-bottom: 10px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.05;
}

.offer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.offer-card {
  display: grid;
  align-content: start;
  min-height: 280px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.offer-tag {
  width: fit-content;
  margin-bottom: 18px;
  padding: 5px 8px;
  border-radius: 6px;
  color: #50320b;
  background: #f2d79b;
  font-size: 0.78rem;
  font-weight: 850;
}

.offer-card h3 {
  font-size: 1.26rem;
  line-height: 1.2;
}

.offer-card p {
  color: var(--muted);
  line-height: 1.5;
}

.offer-card strong {
  align-self: end;
  color: var(--green-deep);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.84fr) minmax(320px, 1fr);
  gap: clamp(24px, 6vw, 80px);
  align-items: start;
  color: var(--white);
  background: var(--ink);
}

.split p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline div {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.timeline span {
  display: block;
  margin-bottom: 8px;
  color: #f3c76a;
  font-weight: 850;
}

.timeline p {
  margin: 0;
}

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

.brief-output {
  min-height: 130px;
  margin: 20px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
  white-space: pre-wrap;
  color: #283633;
  background: var(--white);
  font: 0.95rem/1.5 ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 26px clamp(18px, 5vw, 70px);
  color: rgba(255, 255, 255, 0.76);
  background: #0b1312;
}

footer a {
  color: #f3c76a;
}

@media (max-width: 1040px) {
  .hero-content {
    grid-template-columns: 1fr;
    align-items: end;
  }

  .hero-copy {
    padding-top: 70px;
  }

  .diagnostic-panel {
    max-width: 620px;
  }

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

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

@media (max-width: 720px) {
  .topbar {
    position: absolute;
    align-items: flex-start;
  }

  nav {
    display: none;
  }

  .hero-content {
    padding-top: 86px;
  }

  h1 {
    font-size: 3.1rem;
  }

  .metrics,
  .offer-grid,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .metric {
    min-height: auto;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .metric:first-child {
    border-top: 0;
  }

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

  .segmented label {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .segmented label:last-child {
    border-bottom: 0;
  }

  footer {
    display: grid;
  }
}
