:root {
  color-scheme: light;
  --bg: #f5f2ec;
  --paper: #fffdf8;
  --ink: #161514;
  --muted: #64605a;
  --line: #d9d2c7;
  --accent: #9f2f3f;
  --accent-dark: #6d1f2b;
  --green: #1f7a5a;
  --green-dark: #14533d;
  --blue: #2f5f8f;
  --soft: #ede6da;
  --code-bg: #1e1b19;
  --code-ink: #fff7ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

.sticky-cta {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  justify-content: center;
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(31, 122, 90, 0.18);
  background: rgba(255, 253, 248, 0.98);
  color: var(--ink);
  padding: 12px 16px;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgba(50, 35, 25, 0.08);
}

.sticky-cta span {
  font-size: 14px;
  font-weight: 760;
}

.sticky-cta a {
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-size: 14px;
  font-weight: 850;
  padding: 9px 14px;
  text-decoration: none;
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 40px 0 64px;
}

.hero {
  padding: 46px 0 34px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 980px;
  font-size: clamp(42px, 5.2vw, 68px);
}

h2 {
  font-size: clamp(26px, 3vw, 38px);
}

.lead {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.primary-cta,
.secondary-cta,
.inline-cta,
.integration-grid span {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.primary-cta,
.secondary-cta {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 48px;
  padding: 12px 18px;
}

.primary-cta {
  border-color: var(--green);
  background: var(--green);
  color: white;
  font-weight: 850;
}

.primary-cta:hover,
.sticky-cta a:hover,
.form-actions button:hover {
  background: var(--green-dark);
}

.secondary-cta {
  background: var(--paper);
}

.inline-cta {
  display: inline-flex;
  padding: 2px 8px;
  background: rgba(159, 47, 63, 0.09);
  font-weight: 820;
}

section {
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

section > p {
  max-width: 820px;
  color: var(--muted);
  font-size: 17px;
}

.flow-steps,
.schema-grid,
.integration-grid {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.hero-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-summary div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 16px;
}

.hero-summary span {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-bottom: 12px;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 122, 90, 0.12);
  color: var(--green-dark);
  font-weight: 850;
}

.hero-summary strong {
  display: block;
  font-size: 16px;
}

.hero-summary p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.apply-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(440px, 1.15fr);
  gap: 30px;
  align-items: start;
  margin-top: 26px;
  border: 1px solid rgba(31, 122, 90, 0.22);
  border-radius: 8px;
  background: var(--paper);
  padding: 30px;
  box-shadow: 0 18px 48px rgba(59, 45, 34, 0.1);
}

.apply-copy {
  position: sticky;
  top: 80px;
}

.apply-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.apply-list li {
  position: relative;
  padding-left: 24px;
}

.apply-list li::before {
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--green);
  content: "✓";
  font-weight: 900;
}

.apply-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 15px;
  border: 1px solid rgba(217, 210, 199, 0.9);
  border-radius: 8px;
  background: #ffffff;
  padding: 22px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.form-header,
.field-full,
.form-actions {
  grid-column: 1 / -1;
}

.form-header {
  display: grid;
  gap: 4px;
  padding-bottom: 4px;
}

.form-header strong {
  font-size: 20px;
}

.form-header span {
  color: var(--muted);
  font-size: 14px;
}

.field-note {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.apply-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 760;
}

.apply-form small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 560;
  line-height: 1.35;
}

.apply-form input,
.apply-form select,
.apply-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font: inherit;
  min-height: 46px;
  padding: 12px 13px;
}

.apply-form input:focus,
.apply-form select:focus,
.apply-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 90, 0.14);
  outline: none;
}

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

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  border-top: 1px solid var(--soft);
  margin-top: 4px;
  padding-top: 16px;
}

.form-actions button {
  border: 0;
  border-radius: 8px;
  background: var(--green);
  color: white;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  min-height: 48px;
  padding: 12px 18px;
}

.form-actions span {
  color: var(--muted);
  font-size: 14px;
}

.flow-steps {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.flow-steps div,
.schema-grid div {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 18px;
}

.flow-steps span {
  display: inline-grid;
  width: 30px;
  height: 30px;
  margin-bottom: 16px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-weight: 800;
}

.flow-steps strong,
.schema-grid code {
  display: block;
  overflow-wrap: anywhere;
}

.flow-steps p,
.schema-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

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

pre {
  max-width: 100%;
  overflow-x: auto;
  border-radius: 8px;
  background: var(--code-bg);
  color: var(--code-ink);
  padding: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 0.94em;
}

ul {
  max-width: 820px;
  padding-left: 22px;
  color: var(--muted);
  font-size: 17px;
}

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

.integration-grid span {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  padding: 14px;
  text-align: center;
}

.bottom-cta {
  display: grid;
  gap: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--paper);
  padding: 28px;
  box-shadow: inset 0 0 0 1px var(--line);
}

.bottom-cta p {
  margin: 0;
}

.bottom-cta .primary-cta {
  width: fit-content;
}

@media (max-width: 900px) {
  .flow-steps,
  .hero-summary,
  .apply-section,
  .integration-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apply-copy {
    position: static;
  }
}

@media (max-width: 640px) {
  .sticky-cta {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
    text-align: center;
  }

  .page-shell {
    width: min(100% - 24px, 1120px);
    padding-top: 18px;
  }

  .hero {
    padding-top: 30px;
  }

  h1 {
    font-size: 40px;
  }

  .lead {
    font-size: 17px;
  }

  .primary-cta,
  .secondary-cta,
  .bottom-cta .primary-cta {
    width: 100%;
  }

  .apply-section,
  .bottom-cta {
    padding: 20px;
  }

  .flow-steps,
  .hero-summary,
  .apply-section,
  .schema-grid,
  .integration-grid,
  .apply-form {
    grid-template-columns: 1fr;
  }
}
