:root {
  color-scheme: light;
  --bg: #f6f5ef;
  --surface: #ffffff;
  --surface-soft: #ebe8dd;
  --ink: #171916;
  --muted: #5d6259;
  --line: #d7d2c4;
  --green: #2f6f48;
  --green-dark: #214f36;
  --amber: #b7772f;
  --red: #9c3f32;
  --shadow: 0 18px 50px rgba(29, 31, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.45;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  min-width: 320px;
}

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

p,
li {
  color: var(--muted);
  font-size: 1rem;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  letter-spacing: 0;
  line-height: 1.05;
}

h1 {
  max-width: 980px;
  font-size: clamp(3rem, 8vw, 6.9rem);
  margin-bottom: 1.5rem;
}

h2 {
  max-width: 820px;
  font-size: clamp(2rem, 4vw, 4rem);
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.65rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
  padding: 0.9rem clamp(1rem, 3vw, 2.2rem);
  background: rgba(246, 245, 239, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  font-size: 1.2rem;
  font-weight: 800;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
}

.site-header nav {
  justify-content: center;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-weight: 650;
}

.site-header nav a:hover,
.site-footer nav a:hover {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  border: 1px solid var(--green-dark);
  border-radius: 8px;
  background: var(--green);
  color: white;
  font-weight: 760;
}

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

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

.hero,
.section,
.page-hero,
.legal-page {
  padding: clamp(3rem, 8vw, 7rem) clamp(1rem, 5vw, 5rem);
}

.hero {
  min-height: calc(100vh - 72px);
  display: grid;
  align-content: center;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead {
  max-width: 820px;
  color: #393d36;
  font-size: clamp(1.18rem, 2vw, 1.55rem);
}

.hero-actions,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.8rem 0 0;
}

.proof-grid,
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 1100px;
  margin: 4rem 0 0;
}

.proof-grid div,
.metric-grid div,
.callout,
.card-grid article,
.legal-box,
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.proof-grid div,
.metric-grid div {
  padding: 1rem;
}

dt {
  font-weight: 820;
}

dd {
  margin: 0.25rem 0 0;
  color: var(--muted);
}

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.65fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.text-stack {
  max-width: 680px;
}

.text-stack p:last-child,
.legal-box p:last-child,
.card-grid article p:last-child,
.pricing-card p:last-child {
  margin-bottom: 0;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.8rem;
}

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

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

.card-grid article,
.pricing-card,
.legal-box,
.callout {
  padding: clamp(1.1rem, 2vw, 1.5rem);
}

.card-grid article h2,
.pricing-card h2,
.legal-box h2,
.callout h2 {
  font-size: 1.25rem;
  line-height: 1.15;
  margin-bottom: 0.65rem;
}

.card-grid ul,
.legal-page ul {
  padding-left: 1.1rem;
}

.faq details {
  max-width: 900px;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  font-weight: 780;
}

.page-hero {
  border-bottom: 1px solid var(--line);
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
}

.subnav a {
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
}

.workflow {
  display: grid;
  gap: 0.75rem;
  max-width: 920px;
  margin-top: 1.8rem;
  counter-reset: step;
}

.workflow li {
  list-style: none;
  position: relative;
  padding: 1rem 1rem 1rem 3.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.workflow li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 1rem;
  left: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 0.8rem;
  font-weight: 800;
}

.legal-page {
  max-width: 980px;
}

.legal-page h1 {
  font-size: clamp(2.4rem, 5vw, 5rem);
}

.legal-page h2 {
  font-size: clamp(1.45rem, 2.4vw, 2.4rem);
  margin-top: 2.5rem;
}

.legal-warning {
  border-left: 4px solid var(--amber);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding: 2rem clamp(1rem, 5vw, 5rem);
  background: var(--ink);
  color: white;
}

.site-footer nav a,
.site-footer p {
  color: rgba(255, 255, 255, 0.72);
}

@media (max-width: 980px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    order: 3;
  }

  .proof-grid,
  .metric-grid,
  .card-grid,
  .card-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 640px) {
  .site-header {
    position: static;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
  }

  .site-header nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }

  .site-header nav a {
    min-height: 36px;
    display: flex;
    align-items: center;
    padding: 0.4rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.46);
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: clamp(2rem, 9vw, 3rem);
  }

  .lead {
    font-size: 1.08rem;
  }

  .hero-actions,
  .inline-actions {
    margin-top: 1.2rem;
  }

  .proof-grid,
  .metric-grid,
  .card-grid,
  .card-grid.two,
  .card-grid.three {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}
