:root {
  --ink: #14212d;
  --muted: #5d6978;
  --line: #d9e1e8;
  --paper: #f5f8fa;
  --white: #ffffff;
  --blue: #23527c;
  --blue-dark: #173d60;
  --green: #1f6f57;
  --gold: #a86d1d;
  --red: #9b3d2f;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 5vw, 64px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

a {
  color: inherit;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  text-decoration: none;
}

.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--white);
  background: var(--blue);
  border-radius: 8px;
  font-size: 0.86rem;
}

nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 0.94rem;
}

nav a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  min-height: calc(100vh - 65px);
  padding: clamp(48px, 7vw, 92px) clamp(18px, 7vw, 100px);
  background:
    linear-gradient(rgba(245, 248, 250, 0.88), rgba(245, 248, 250, 0.82)),
    url("https://images.unsplash.com/photo-1560518883-ce09059eeffa?auto=format&fit=crop&w=1800&q=80") center / cover;
}

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

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

h1 {
  max-width: 960px;
  margin: 0;
  font-size: clamp(2.35rem, 5.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 3rem);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
}

.lede {
  max-width: 700px;
  margin: 24px 0;
  color: #334155;
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.65;
}

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

.primary {
  color: var(--white);
  background: var(--blue);
}

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

.secondary {
  color: var(--blue-dark);
  background: var(--white);
  border-color: var(--line);
}

.quiet {
  color: var(--red);
  background: #fff6f3;
  border-color: #e8c3ba;
}

aside,
form {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(20, 33, 45, 0.12);
}

aside {
  padding: 24px;
}

aside ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.band,
.form-band,
.lead-tools {
  padding: clamp(48px, 7vw, 90px) clamp(18px, 7vw, 100px);
}

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

.section-title {
  max-width: 820px;
  margin-bottom: 28px;
}

.section-title p {
  color: var(--muted);
  line-height: 1.6;
}

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

.grid article {
  min-height: 150px;
  padding: 22px;
  background: #fbfcfd;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.grid p {
  color: var(--muted);
  line-height: 1.55;
}

.form-band {
  background: #edf4f8;
}

form {
  padding: 24px;
}

.fields {
  display: grid;
  gap: 16px;
}

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

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

label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: #2e3a4a;
  font-size: 0.92rem;
  font-weight: 800;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fbfcfd;
  border: 1px solid #cbd6df;
  border-radius: 8px;
  font: inherit;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(35, 82, 124, 0.18);
  border-color: var(--blue);
}

.consent {
  grid-template-columns: 20px 1fr;
  align-items: start;
  color: var(--muted);
  font-weight: 500;
}

.consent input {
  min-height: 20px;
  margin-top: 2px;
}

#leadStatus {
  min-height: 24px;
  color: var(--green);
  font-weight: 800;
}

.lead-tools {
  background: var(--paper);
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.tools input {
  flex: 1 1 260px;
}

.table-wrap {
  overflow-x: auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f1f5f8;
}

td {
  color: var(--muted);
}

footer {
  padding: 22px clamp(18px, 7vw, 100px);
  color: #52606f;
  background: #e6edf3;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .hero,
  .two,
  .three {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  header {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.86rem;
  }

  .hero {
    min-height: auto;
  }

  .button,
  .tools input {
    width: 100%;
  }
}
