:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #5f6b7a;
  --line: #d9dee7;
  --paper: #f7f8fa;
  --panel: #ffffff;
  --accent: #1f7a5c;
  --accent-dark: #135f47;
  --gold: #b47b2a;
  --red: #b23b3b;
  --blue: #2f5e9e;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}

a {
  color: var(--accent-dark);
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 48px);
  position: sticky;
  top: 0;
  z-index: 10;
}

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

.brand-mark {
  align-items: center;
  background: var(--ink);
  border-radius: 6px;
  color: #fff;
  display: inline-flex;
  height: 34px;
  justify-content: center;
  width: 34px;
}

nav {
  display: flex;
  gap: 18px;
}

nav a {
  color: var(--muted);
  font-size: 0.94rem;
  text-decoration: none;
}

.hero,
.split,
.band,
.privacy-note {
  padding: clamp(38px, 7vw, 82px) clamp(18px, 4vw, 48px);
}

.hero {
  align-items: stretch;
  background: #fff;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.6fr);
}

.hero h1,
.section-heading h2,
.split h2 {
  letter-spacing: 0;
  line-height: 1.02;
  margin: 0;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.8rem);
  max-width: 780px;
}

.subheadline,
.split p,
.note {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 760px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin: 0 0 12px;
  text-transform: uppercase;
}

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

.button {
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  font-weight: 750;
  justify-content: center;
  min-height: 44px;
  padding: 12px 16px;
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.button.secondary {
  background: #fff;
  color: var(--ink);
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-panel,
.cta-panel,
.output-card,
details {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-panel {
  align-content: center;
  display: grid;
  gap: 14px;
  padding: 24px;
}

.hero-panel div {
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
  padding-bottom: 14px;
}

.hero-panel div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.label {
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel strong {
  font-size: 1.3rem;
}

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

.section-heading {
  margin-bottom: 24px;
}

.section-heading h2,
.split h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.feature-grid,
.faq-grid,
.policy-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.feature-grid article {
  background: #fff;
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  box-shadow: 0 1px 0 rgba(24, 33, 47, 0.06);
  font-weight: 700;
  padding: 18px;
}

.policy-grid article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.policy-grid h3 {
  margin: 0 0 8px;
}

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

.split {
  background: #fff;
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.lead-form {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 22px;
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.9rem;
  gap: 6px;
}

label.full {
  grid-column: 1 / -1;
}

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

textarea {
  min-height: 110px;
  resize: vertical;
}

.demo-output {
  display: grid;
  gap: 14px;
}

.output-card {
  overflow: auto;
  padding: 18px;
}

.output-card h3 {
  margin: 0 0 10px;
}

pre {
  background: #f1f4f7;
  border-radius: 6px;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
  margin: 0;
  max-width: 100%;
  overflow: auto;
  padding: 12px;
  white-space: pre-wrap;
}

.error-log {
  color: var(--red);
  margin-top: 12px;
  min-height: 22px;
}

.intake-section {
  border-top: 1px solid var(--line);
}

.intake-form {
  align-content: start;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.intake-form .button {
  grid-column: 1 / -1;
}

.hidden-field {
  display: none;
}

.dashboard-section {
  overflow: hidden;
}

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

table {
  background: #fff;
  border-collapse: collapse;
  min-width: 1500px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  font-size: 0.86rem;
  padding: 10px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #eef2f5;
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pill {
  border-radius: 999px;
  color: #fff;
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 4px 8px;
}

.pill.hot {
  background: var(--red);
}

.pill.warm {
  background: var(--gold);
}

.pill.cold {
  background: var(--blue);
}

.check-list {
  color: var(--ink);
  display: grid;
  gap: 10px;
  line-height: 1.45;
  padding-left: 22px;
}

.check-list.muted {
  color: var(--muted);
}

.cta-panel {
  padding: 22px;
}

details {
  padding: 16px;
}

summary {
  cursor: pointer;
  font-weight: 800;
}

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

.privacy-note {
  background: #fff7e8;
  border-top: 1px solid #efd8ad;
  border-bottom: 1px solid #efd8ad;
  color: #60410e;
}

footer {
  align-items: center;
  background: var(--ink);
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  padding: 24px clamp(18px, 4vw, 48px);
}

footer a {
  color: #fff;
}

@media (max-width: 820px) {
  .site-header,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

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

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