:root {
  color-scheme: light;
  --ink: #111417;
  --muted: #5a6470;
  --line: #d9dee4;
  --paper: #fbfcfd;
  --surface: #ffffff;
  --accent: #0f7b63;
  --accent-2: #efb047;
  --accent-dark: #0a5747;
  --warn: #a75513;
  --code: #121a22;
  --code-text: #e8edf2;
}

* {
  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);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  padding: 0 32px;
  border-bottom: 1px solid var(--line);
  background: rgba(251, 252, 253, 0.96);
  backdrop-filter: blur(10px);
}

.brand {
  color: #000;
  font-size: 21px;
  font-weight: 850;
  letter-spacing: 0;
}

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

.nav a:hover,
.section-copy a:hover,
.footer a:hover {
  color: var(--accent-dark);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1fr);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 64px);
  padding: 64px 48px 40px;
  border-bottom: 1px solid var(--line);
}

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

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

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

h1 {
  margin: 0;
  max-width: 860px;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.04;
  letter-spacing: 0;
}

h3 {
  margin: 16px 0 10px;
  font-size: 23px;
  line-height: 1.12;
  letter-spacing: 0;
}

.lede {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 6px;
  font-weight: 760;
}

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

.button.secondary {
  background: var(--surface);
}

.button.ghost {
  border-color: var(--line);
  background: transparent;
}

.builder {
  align-self: stretch;
  display: grid;
  align-content: start;
  gap: 20px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 60px rgba(17, 20, 23, 0.08);
}

.builder-head,
.output-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.builder h2 {
  font-size: 30px;
}

.note,
.section-copy {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.status,
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--warn);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.route-form,
.intake-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 760;
}

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

textarea {
  min-height: 120px;
  padding: 12px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
button:focus,
a:focus {
  outline: 3px solid rgba(15, 123, 99, 0.22);
  outline-offset: 2px;
}

.config-output {
  overflow: hidden;
  border-radius: 8px;
  background: var(--code);
  color: var(--code-text);
}

.output-head {
  min-height: 46px;
  padding: 0 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #aebac6;
  font-size: 13px;
  font-weight: 760;
}

.icon-button {
  min-width: 58px;
  min-height: 30px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  color: white;
  background: transparent;
  font: inherit;
  font-size: 12px;
  font-weight: 820;
  cursor: pointer;
}

pre {
  margin: 0;
  min-height: 250px;
  max-height: 360px;
  overflow: auto;
  padding: 18px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.band,
.split {
  padding: 72px 48px;
  border-bottom: 1px solid var(--line);
}

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

.offer-grid,
.demo-grid,
.link-grid {
  display: grid;
  gap: 20px;
}

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

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

.offer-grid article {
  min-height: 290px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.offer-grid article .button {
  margin-top: 18px;
}

.offer-grid p,
.split p,
.demo-grid p,
.legal p,
.faq-list p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.price {
  margin: 22px 0 0;
  color: var(--ink) !important;
  font-weight: 850;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(340px, 1fr);
  gap: 60px;
  align-items: start;
}

.steps,
.checklist {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.steps {
  list-style-position: inside;
}

.steps li,
.checklist li {
  padding: 16px 18px;
  border-left: 4px solid var(--accent);
  background: white;
  box-shadow: inset 0 0 0 1px var(--line);
  font-weight: 650;
}

.checklist {
  list-style: none;
}

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

.demo {
  background: #eef7f3;
}

.demo-grid {
  grid-template-columns: minmax(0, 0.85fr) minmax(340px, 1fr);
  align-items: start;
}

.demo-grid pre {
  min-height: 190px;
  border-radius: 8px;
  background: var(--code);
  color: var(--code-text);
}

.link-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

code {
  overflow: auto;
  padding: 10px 12px;
  border-radius: 6px;
  background: #f1f4f6;
  color: #26323d;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
}

.intake {
  background: #f6f8fa;
}

.intake-form {
  max-width: 940px;
}

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

.form-status {
  align-self: center;
  margin: 0;
  color: var(--accent-dark);
  font-weight: 750;
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 960px;
}

details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

summary {
  cursor: pointer;
  padding: 18px;
  font-weight: 780;
}

details p {
  margin: 0;
  padding: 0 18px 18px;
}

.contact {
  background: #f2f5f7;
}

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

.legal h2 {
  font-size: 25px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 48px;
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1120px) {
  .offer-grid.three,
  .checklist.grid,
  .legal {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 16px 20px;
  }

  .nav {
    flex-wrap: wrap;
    gap: 14px;
  }

  .hero,
  .split,
  .offer-grid,
  .offer-grid.three,
  .demo-grid,
  .checklist.grid,
  .legal {
    grid-template-columns: 1fr;
  }

  .hero {
    gap: 32px;
    padding: 44px 20px 32px;
  }

  .builder {
    padding: 20px;
  }

  .band,
  .split {
    padding: 52px 20px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  h1 {
    font-size: 38px;
  }

  .route-form,
  .intake-form,
  .link-row {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .builder-head,
  .output-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
