/* Design tokens */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --surface-soft: #e4ebe5;
  --surface-green: #edf2ed;
  --text: #181a18;
  --muted: #686d67;
  --green: #5a8068;
  --green-dark: #35463d;
  --green-light: #b8c9bd;
  --border: #d6dad4;
  --max-width: 1180px;
  --radius: 4px;
  --section-pad: clamp(90px, 10vw, 150px);
}

/* Reset */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

/* Layout */
.container { width: min(calc(100% - 48px), var(--max-width)); margin-inline: auto; }
.container--mid { max-width: 900px; }
.container--narrow { max-width: 760px; }

.section { padding: var(--section-pad) 0; border-top: 1px solid var(--border); }
.section--soft { background: var(--surface-soft); }
.section--tint { background: var(--surface-green); }
.section--dark { background: var(--green-dark); color: #fff; }

/* Typography */
.eyebrow { color: var(--green); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }

.section-head { display: flex; justify-content: space-between; gap: 80px; margin-bottom: 70px; }
.section-head > p { max-width: 400px; margin-top: 50px; color: var(--muted); }
.section-head--center { display: block; text-align: center; }
.section-head--center p { margin-inline: auto; }
.section-head--narrow { display: block; max-width: 650px; margin-bottom: 0; }
.section-head--narrow p { margin: 0; color: var(--muted); font-size: 18px; line-height: 1.7; }

.section-head h1,
.section-head h2,
.supply-copy h2,
.agency-section h2,
.white-label-copy h2,
.cta-inner h2 {
  margin: 22px 0 28px;
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 500;
  letter-spacing: -0.05em;
  line-height: 1.05;
}

/* Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 247, 244, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

section[id] { scroll-margin-top: 84px; }

.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; }

.logo { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.04em; }
.logo-mark { width: 26px; height: 26px; flex-shrink: 0; }

.nav-links { display: flex; gap: 36px; margin-left: auto; margin-right: 42px; }
.nav-links a { color: var(--muted); font-size: 14px; transition: color 0.2s ease; }
.nav-links a:hover { color: var(--green-dark); }

.nav-cta {
  padding: 10px 16px;
  border: 1px solid var(--text);
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.nav-cta:hover { background: var(--text); color: #fff; }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease;
}
.button-dark { background: var(--text); color: #fff; }
.button-dark:hover { background: var(--green-dark); }
.button-light { background: #fff; color: var(--text); }
.button-light:hover { background: var(--surface-green); }

.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; transition: color 0.2s ease; }
.text-link:hover { color: var(--green-dark); }

/* Hero */
.hero { padding: clamp(80px, 11vw, 130px) 0; }

.hero h1 {
  max-width: 720px;
  margin: 22px 0 28px;
  font-size: clamp(48px, 7vw, 88px);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 1.03;
}
.hero h1 span { color: var(--green); }

.hero-text { max-width: 560px; margin: 0; color: var(--muted); font-size: 19px; line-height: 1.55; }

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

/* Feature cards */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.feature-card { min-height: 350px; padding: 30px; border-right: 1px solid var(--border); }
.feature-card:last-child { border-right: none; }
.feature-card:nth-child(2) { background: var(--surface-green); }

.feature-number { color: var(--green); font-size: 12px; font-weight: 600; }
.feature-card h3 { margin: 80px 0 16px; font-size: 23px; font-weight: 500; letter-spacing: -0.035em; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }

/* Tech credibility */
.tech-strip { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.tech-strip p { margin: 0 0 14px; color: var(--muted); font-size: 12px; }
.tech-strip div {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 48px;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Supply */
.supply-grid { display: grid; grid-template-columns: 1fr 420px; gap: 120px; align-items: center; }
.supply-copy p { max-width: 570px; color: var(--muted); line-height: 1.7; }

.supply-panel { background: var(--surface); border: 1px solid var(--border); }

.panel-title {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.market { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.market span { color: var(--green); font-size: 11px; font-weight: 600; }
.market strong { font-weight: 500; }

.panel-bottom { padding: 20px 24px; background: var(--surface-green); color: var(--green-dark); font-size: 12px; }

/* How it works */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 70px; margin-top: 60px; }
.process-item { padding-top: 25px; border-top: 1px solid var(--green-light); }
.process-item > span { color: var(--green); font-size: 12px; font-weight: 600; }
.process-item h3 { margin: 35px 0 12px; font-size: 22px; font-weight: 500; }
.process-item p { max-width: 280px; margin: 0; color: var(--muted); font-size: 14px; }

/* For agencies */
.agency-section .container > p { max-width: 620px; color: var(--muted); font-size: 18px; line-height: 1.7; }

.agency-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 70px;
  border-top: 1px solid var(--border);
}
.agency-points div { display: flex; flex-direction: column; gap: 10px; padding: 28px 30px; border-bottom: 1px solid var(--border); }
.agency-points div:nth-child(odd) { border-right: 1px solid var(--border); }
.agency-points strong { color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; }
.agency-points span { color: var(--muted); font-size: 14px; }

/* White label */
.white-label-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(400px, 1.1fr);
  gap: 110px;
  align-items: center;
}
.white-label-copy > p { max-width: 500px; margin: 0 0 30px; color: var(--muted); font-size: 17px; line-height: 1.7; }

.white-label-panel { background: var(--surface); border: 1px solid var(--border); }

.white-label-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.platform-brand { display: flex; align-items: center; justify-content: space-between; padding: 28px 30px; }
.mock-logo { display: flex; flex-direction: column; color: var(--muted); font-size: 10px; letter-spacing: 0.12em; }
.mock-logo strong { color: var(--text); font-size: 17px; font-weight: 600; letter-spacing: -0.04em; }
.mock-nav { color: var(--muted); font-size: 10px; word-spacing: 14px; }

.platform-line { height: 1px; margin: 0 30px; background: var(--border); }

.platform-metrics { display: grid; grid-template-columns: repeat(3, 1fr); padding: 35px 30px; }
.platform-metrics div { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; border-right: 1px solid var(--border); }
.platform-metrics div:first-child { padding-left: 0; }
.platform-metrics div:last-child { border-right: none; }
.platform-metrics span { color: var(--muted); font-size: 9px; letter-spacing: 0.12em; }
.platform-metrics strong { color: var(--green-dark); font-size: 27px; font-weight: 500; letter-spacing: -0.04em; }

.platform-footer { padding: 18px 30px; background: var(--surface-green); border-top: 1px solid var(--border); color: var(--muted); font-size: 10px; }

.white-label-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 100px;
  border-top: 1px solid var(--border);
}
.white-label-points > div { padding: 30px; border-right: 1px solid var(--border); }
.white-label-points > div:first-child { padding-left: 0; }
.white-label-points > div:last-child { padding-right: 0; border-right: none; }
.white-label-points > div > strong { color: var(--green); font-size: 11px; font-weight: 600; }
.white-label-points h3 { margin: 38px 0 12px; font-size: 20px; font-weight: 500; }
.white-label-points p { max-width: 300px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }

/* About / founder */
.founder { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--border); }
.founder p { margin: 0 0 16px; color: var(--muted); font-size: 16px; line-height: 1.7; }
.founder strong { color: var(--text); font-weight: 500; }
.founder .text-link { margin-top: 8px; }

/* CTA */
.cta-inner { text-align: center; }
.cta-section .eyebrow { color: var(--green-light); }
.cta-section p { margin: 0 auto 35px; color: #d0d8d3; font-size: 17px; }

/* Footer */
.footer-top { display: flex; justify-content: space-between; gap: 100px; padding: 70px 0; }
.footer-top p { max-width: 260px; margin: 16px 0 0; color: var(--muted); font-size: 13px; }

.footer-links { display: flex; gap: 100px; }
.footer-links div { display: flex; flex-direction: column; gap: 9px; }
.footer-links span { margin-bottom: 8px; color: var(--green); font-size: 10px; font-weight: 600; letter-spacing: 0.14em; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--green-dark); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  padding: 25px 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 11px;
}

/* Legal pages */
.legal h1 { margin: 22px 0 30px; font-size: clamp(36px, 5vw, 56px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; }
.legal h2 { margin: 40px 0 14px; font-size: 20px; font-weight: 500; }
.legal p { margin: 0 0 14px; color: var(--muted); font-size: 15px; line-height: 1.7; }
.legal a { color: var(--green-dark); text-decoration: underline; }

/* One mobile breakpoint */
@media (max-width: 900px) {
  .container { width: min(calc(100% - 40px), var(--max-width)); }

  .nav-links { display: none; }

  .section-head { display: block; }
  .section-head > p { margin-top: 25px; }

  .supply-grid,
  .white-label-grid { grid-template-columns: 1fr; gap: 60px; }

  .feature-grid,
  .process-grid,
  .agency-points,
  .white-label-points { grid-template-columns: 1fr; }

  .process-grid { gap: 40px; }
  .white-label-points { margin-top: 70px; }

  .feature-card { min-height: auto; border-right: none; border-bottom: 1px solid var(--border); }
  .feature-card:last-child { border-bottom: none; }

  .agency-points div:nth-child(odd) { border-right: none; }

  .platform-brand { align-items: flex-start; flex-direction: column; gap: 22px; }
  .platform-metrics { padding: 28px 20px; }
  .platform-metrics strong { font-size: 22px; }

  .white-label-points > div,
  .white-label-points > div:first-child,
  .white-label-points > div:last-child {
    padding: 28px 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .white-label-points > div:last-child { border-bottom: none; }

  .footer-top { flex-direction: column; }
  .footer-links { gap: 60px; }
  .footer-bottom { flex-direction: column; }
}
