:root {
  --ink: #102326;
  --muted: #536263;
  --paper: #fffdf8;
  --band: #f7f4ef;
  --line: #d9d0c4;
  --teal: #165d5a;
  --teal-dark: #104846;
  --mint: #d7f2e3;
  --gold: #f5c55b;
  --coral: #f26b5e;
  --plum: #5a4268;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(16, 35, 38, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(255, 253, 248, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 36px;
  height: 36px;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

nav a {
  text-decoration: none;
  white-space: nowrap;
}

nav a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(310px, 0.62fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 6vw, 84px);
  background:
    linear-gradient(90deg, rgba(247, 244, 239, 0.98) 0%, rgba(247, 244, 239, 0.93) 39%, rgba(247, 244, 239, 0.26) 72%),
    url("../assets/hero-consultation.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(22, 93, 90, 0.08), rgba(245, 197, 91, 0.12));
}

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

.eyebrow {
  margin: 0 0 12px;
  color: var(--coral);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 0.98;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(18px, 2vw, 22px);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 10px 22px rgba(22, 93, 90, 0.24);
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}

.button.full {
  width: 100%;
}

.notice {
  max-width: 640px;
  margin-top: 24px;
  color: #6b3c37;
  font-size: 14px;
  font-weight: 700;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 680px;
  margin-top: 18px;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid rgba(22, 93, 90, 0.22);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.ssl-badge svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.intake-panel,
.summary-card,
.lead-form,
.fact-grid article,
.resource-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.intake-panel {
  align-self: end;
  padding: 20px;
  border-color: rgba(245, 197, 91, 0.44);
  background:
    linear-gradient(135deg, rgba(255, 253, 248, 0.96), rgba(247, 244, 239, 0.82)),
    radial-gradient(circle at 14% 18%, rgba(245, 197, 91, 0.22), transparent 34%);
  backdrop-filter: blur(12px);
}

.intake-panel::before {
  content: "";
  display: block;
  height: 5px;
  margin: -20px -20px 16px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--coral));
}

.panel-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.panel-header strong {
  color: var(--ink);
}

.signal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.signal-grid div {
  position: relative;
  min-height: 112px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(217, 208, 196, 0.65);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.78), rgba(247, 244, 239, 0.9));
}

.signal-grid div::after {
  content: "";
  position: absolute;
  inset: auto 14px 12px 14px;
  height: 3px;
  border-radius: 99px;
  background: rgba(22, 93, 90, 0.18);
}

.signal-grid span,
.resource-stats span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.signal-grid strong {
  display: block;
  margin-top: 8px;
  font-size: 23px;
  line-height: 1.05;
}

.band {
  background: var(--band);
}

.facts,
.process,
.resources,
.options-section,
.intake-section {
  padding: clamp(56px, 7vw, 96px) clamp(18px, 6vw, 84px);
}

.section-heading {
  max-width: 920px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px auto 0;
  color: var(--muted);
  font-size: 18px;
}

.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.fact-grid article {
  padding: 24px;
  box-shadow: none;
}

.pitch-callout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 22px;
  align-items: center;
  max-width: 1120px;
  margin: 22px auto 0;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(22, 93, 90, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(120deg, rgba(215, 242, 227, 0.96), rgba(255, 253, 248, 0.94)),
    linear-gradient(90deg, rgba(245, 197, 91, 0.3), transparent);
  box-shadow: 0 18px 42px rgba(16, 35, 38, 0.1);
}

.pitch-callout .eyebrow {
  margin-bottom: 8px;
}

.pitch-callout h3 {
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.pitch-callout p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.metric {
  display: block;
  margin-bottom: 18px;
  color: var(--teal);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.fact-grid p,
.resource-list p,
.option-card-list p {
  margin: 0;
  color: var(--muted);
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.52fr);
  gap: 22px;
  align-items: start;
  max-width: 1180px;
  margin: 0 auto;
}

.lead-form {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 28px);
}

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

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

label,
legend {
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  margin-top: 8px;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus-visible,
a:focus-visible {
  outline: 3px solid rgba(245, 197, 91, 0.8);
  outline-offset: 2px;
}

.checks {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fcf8f0;
}

.checks label {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  color: var(--muted);
  font-weight: 700;
}

.checks input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
}

.spam-check {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.summary-card {
  position: sticky;
  top: 88px;
  padding: 18px;
}

pre {
  min-height: 370px;
  max-height: 540px;
  overflow: auto;
  white-space: pre-wrap;
  margin: 16px 0;
  padding: 16px;
  border-radius: 8px;
  background: #102326;
  color: #edf7f4;
  font: 14px/1.5 Consolas, Monaco, monospace;
}

.routing-map {
  display: block;
  width: min(100%, 1080px);
  height: auto;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.help-card {
  overflow: hidden;
}

.help-card img {
  display: block;
  width: calc(100% + 36px);
  max-width: none;
  height: 250px;
  margin: -18px -18px 18px;
  object-fit: cover;
}

.status-copy {
  color: var(--muted);
  font-size: 16px;
}

.status-copy p {
  margin: 16px 0 12px;
}

.status-copy ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.help-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1180px;
  margin: 0 auto;
}

.help-steps article {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.help-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 24px;
  border-radius: 50%;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.help-steps p {
  margin: 0;
  color: var(--muted);
}

.option-list article:first-child {
  border-top: 6px solid var(--teal);
}

.option-list article:nth-child(2) {
  border-top: 6px solid var(--coral);
}

.option-list article:nth-child(3) {
  border-top: 6px solid var(--gold);
}

.resource-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  max-width: 1120px;
  margin: 0 auto 18px;
}

.resource-stats div {
  min-height: 120px;
  padding: 18px;
  border-left: 6px solid var(--teal);
  border-radius: 8px;
  background: var(--band);
}

.resource-stats div:nth-child(2) {
  border-left-color: var(--coral);
}

.resource-stats div:nth-child(3) {
  border-left-color: var(--gold);
}

.resource-stats div:nth-child(4) {
  border-left-color: var(--plum);
}

.resource-stats strong {
  display: block;
  margin-bottom: 8px;
  font-size: 32px;
}

.resource-list,
.option-card-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
}

.resource-list article,
.option-card-list article {
  padding: 22px;
  box-shadow: none;
}

footer {
  padding: clamp(36px, 6vw, 60px) clamp(18px, 6vw, 84px);
  background: var(--ink);
  color: var(--white);
}

footer p {
  margin: 4px 0 0;
  color: #cfdbd8;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) repeat(3, minmax(150px, 0.7fr));
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.footer-brand img {
  display: block;
  width: min(230px, 100%);
  height: auto;
  padding: 8px;
  border-radius: 8px;
  background: #f7f4ef;
}

.footer-brand p {
  max-width: 280px;
  margin-top: 14px;
  font-size: 15px;
}

.footer-column {
  display: grid;
  gap: 8px;
}

.footer-column h3 {
  margin: 0 0 6px;
  color: var(--gold);
  font-size: 16px;
}

.footer-column a {
  color: #e9f7f0;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-column a:hover {
  color: var(--gold);
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 8px;
  padding: 7px 10px;
  border: 1px solid rgba(245, 197, 91, 0.36);
  border-radius: 999px;
  color: #f8e7a8;
  font-size: 13px;
  font-weight: 900;
}

.operator-body {
  background: #f4f7f6;
}

.operator-topbar {
  background: rgba(255, 255, 255, 0.94);
}

.operator-shell {
  padding: clamp(28px, 5vw, 56px) clamp(18px, 5vw, 70px) 70px;
}

.operator-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 26px;
}

.operator-hero h1 {
  max-width: 860px;
  font-size: clamp(34px, 5vw, 58px);
}

.operator-card {
  display: grid;
  align-content: center;
  min-height: 180px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
}

.operator-card p {
  margin: 10px 0 0;
  color: #d6e1de;
}

.operator-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.7fr);
  gap: 22px;
  align-items: start;
}

.operator-section {
  margin-top: 44px;
  padding: 36px 0;
}

.internal-output pre {
  min-height: 720px;
}

.data-links a {
  color: var(--teal);
  font-weight: 800;
}

.legal-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(50px, 7vw, 90px) clamp(18px, 5vw, 40px);
}

.legal-shell h1 {
  max-width: 820px;
  font-size: clamp(38px, 5vw, 60px);
}

.legal-shell section {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.legal-shell section p {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 940px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero,
  .workspace,
  .operator-hero,
  .operator-grid,
  .fact-grid,
  .pitch-callout,
  .resource-list,
  .option-card-list,
  .help-steps,
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    background:
      linear-gradient(180deg, rgba(247, 244, 239, 0.96) 0%, rgba(247, 244, 239, 0.9) 55%, rgba(247, 244, 239, 0.72) 100%),
      url("../assets/hero-consultation.png") center right / cover no-repeat;
  }

  .summary-card {
    position: static;
  }

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

@media (max-width: 1100px) {
  .footer-inner {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-brand img {
    width: min(230px, 100%);
  }
}

@media (max-width: 640px) {
  nav {
    gap: 12px;
    font-size: 12.5px;
  }

  .form-row.two,
  .signal-grid,
  .resource-stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 40px;
  }

  .hero-actions,
  .form-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  footer {
    padding-bottom: 42px;
  }
}
