:root {
  color-scheme: light;
  --ink: #102128;
  --muted: #53656d;
  --line: #d9e2e5;
  --paper: #f7f4ee;
  --panel: #ffffff;
  --deep: #082b36;
  --teal: #047a78;
  --red: #b93632;
  --amber: #b66810;
  --green: #28704b;
  --shadow: 0 22px 60px rgba(16, 33, 40, 0.16);
}

* {
  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;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  color: white;
  background: rgba(8, 43, 54, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: #f2c94c;
  color: var(--deep);
  font-size: 13px;
}

nav {
  display: flex;
  gap: clamp(12px, 3vw, 28px);
  font-size: 14px;
  font-weight: 650;
}

.hero {
  position: relative;
  min-height: 92svh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(4, 24, 31, 0.92) 0%, rgba(4, 24, 31, 0.76) 38%, rgba(4, 24, 31, 0.24) 74%, rgba(4, 24, 31, 0.12) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(760px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 92px);
  padding-top: 70px;
  color: white;
}

.eyebrow,
.section-kicker {
  margin: 0 0 10px;
  color: #f2c94c;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.96;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 580px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.48;
}

.hero-actions,
.partner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button,
.mini-action,
.quick-picks button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 0 18px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary,
.button.diagnose {
  background: #f2c94c;
  color: var(--deep);
}

.button.secondary {
  color: white;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.08);
}

.tool-section,
.guide-section,
.partner-section {
  padding: clamp(48px, 7vw, 92px) clamp(18px, 4vw, 52px);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: 22px;
  max-width: 1220px;
  margin: 0 auto;
  align-items: stretch;
}

.tool-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.intake {
  padding: clamp(22px, 4vw, 38px);
}

.intake h2,
.result-header h2,
.section-heading h2,
.partner-copy h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.diagnosis-form {
  display: grid;
  gap: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #c8d3d7;
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbfcfc;
  font: inherit;
  font-weight: 550;
}

textarea {
  resize: vertical;
  min-height: 150px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(4, 122, 120, 0.18);
  border-color: var(--teal);
}

.quick-picks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-picks button,
.mini-action {
  min-height: 38px;
  color: var(--deep);
  background: #eef5f4;
  border-color: #c8dcda;
  font-size: 13px;
}

.diagnose {
  width: fit-content;
}

.result-panel {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.result-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  border-bottom: 1px solid var(--line);
}

.result-header h2 {
  margin-bottom: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.urgency {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 11px;
  color: white;
  font-size: 12px;
  font-weight: 900;
}

.urgency.neutral {
  background: #6d7b80;
}

.urgency.low {
  background: var(--green);
}

.urgency.medium {
  background: var(--amber);
}

.urgency.high {
  background: var(--red);
}

.result-body {
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 32px);
  color: var(--muted);
  line-height: 1.55;
}

.result-body h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.result-body ul,
.result-body ol {
  margin: 0;
  padding-left: 20px;
}

.result-body li + li {
  margin-top: 7px;
}

.partner-actions {
  margin: auto 0 0;
  padding: 0 clamp(22px, 4vw, 32px) clamp(22px, 4vw, 32px);
}

.guide-section {
  background: white;
}

.section-heading,
.partner-section {
  max-width: 1220px;
  margin: 0 auto;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1220px;
  margin: 0 auto;
}

.guide-grid article {
  min-height: 214px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.guide-grid span {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.guide-grid h3 {
  margin: 28px 0 10px;
  font-size: 21px;
}

.guide-grid p,
.partner-copy p {
  color: var(--muted);
  line-height: 1.55;
}

.partner-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: 34px;
  align-items: center;
}

.lead-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 24px clamp(18px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.82);
  background: var(--deep);
  font-size: 13px;
}

footer span:first-child {
  color: white;
  font-weight: 900;
}

@media (max-width: 900px) {
  .topbar {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    min-height: 760px;
    align-items: flex-end;
  }

  .hero-shade {
    background: linear-gradient(0deg, rgba(4, 24, 31, 0.94) 0%, rgba(4, 24, 31, 0.82) 48%, rgba(4, 24, 31, 0.28) 100%);
  }

  .hero-content {
    margin: 0;
    padding: 120px 18px 54px;
    width: 100%;
  }

  .tool-shell,
  .partner-section {
    grid-template-columns: 1fr;
  }

  .field-grid,
  .guide-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    display: block;
  }

  .diagnose {
    width: 100%;
  }

  footer {
    display: grid;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 42px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .result-header {
    display: grid;
  }
}
