:root {
  /* New palette: teal-dominant, purple secondary, mint/cream backgrounds */
  --teal: #72B5A4;
  --teal-deep: #2F746D;
  --teal-darker: #1f5852;
  --teal-soft: #DCEDE7;
  --teal-tint: #EEF6F3;
  --purple: #5654A2;
  --purple-deep: #3F3D87;
  --purple-soft: #E5E5F2;
  --mint: #F2F8F5;
  --cream: #FAF7F1;
  --cream-2: #F2EDE2;
  --yellow: #F6D87A;
  --yellow-soft: #FCF1CF;
  --ink: #1F2A37;
  --ink-soft: #475569;
  --ink-mute: #5C6370;
  --line: #E2E8E1;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(31, 58, 50, 0.04), 0 2px 6px rgba(31, 58, 50, 0.04);
  --shadow-md: 0 2px 4px rgba(31, 58, 50, 0.05), 0 8px 24px rgba(31, 58, 50, 0.07);
  --shadow-lg: 0 6px 14px rgba(31, 58, 50, 0.06), 0 24px 60px rgba(31, 58, 50, 0.10);

  --max: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", -apple-system, system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: "Nunito Sans", "Inter", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(30px, 3.8vw, 50px); font-weight: 800; letter-spacing: -0.02em; }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
p  { margin: 0; text-wrap: pretty; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
section { padding: clamp(72px, 9vw, 120px) 0; position: relative; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: var(--r-pill);
  font-weight: 600; font-size: 15px;
  transition: transform .18s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal { background: var(--teal-deep); color: white; box-shadow: var(--shadow-sm); }
.btn-teal:hover { background: var(--teal-darker); box-shadow: var(--shadow-md); }
.btn-outline { background: white; color: var(--teal-deep); border: 1.5px solid var(--teal-deep); }
.btn-outline:hover { background: var(--teal-deep); color: white; }
.btn-ink { background: var(--ink); color: white; }
.btn-ink:hover { background: black; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-ghost:hover { background: var(--ink); color: white; }
.btn-light { background: white; color: var(--ink); border: 1px solid var(--line); }
.btn-light:hover { background: var(--mint); }

/* Eyebrow */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.16em;
  text-transform: uppercase; font-weight: 700;
  color: var(--teal-deep);
}
.eyebrow::before {
  content: ""; width: 28px; height: 2px;
  background: var(--teal); border-radius: 2px;
}

/* Cards */
.card {
  background: white;
  border-radius: var(--r-lg);
  padding: 28px;
  border: 1px solid var(--line);
  transition: transform .25s ease, box-shadow .25s ease, border-color .2s;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* Chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--teal-soft); color: var(--teal-deep);
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.chip.purple { background: var(--purple-soft); color: var(--purple-deep); }
.chip.yellow { background: var(--yellow-soft); color: #7a5a00; }
.chip.ink { background: var(--ink); color: white; }

/* Image placeholders */
.imgph {
  position: relative;
  background: repeating-linear-gradient(135deg, var(--teal-soft), var(--teal-soft) 14px, var(--teal-tint) 14px, var(--teal-tint) 28px);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--teal-deep);
  font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
  font-size: 12px; letter-spacing: 0.04em; text-align: center; padding: 20px;
}
.imgph.purple {
  background: repeating-linear-gradient(135deg, var(--purple-soft), var(--purple-soft) 14px, #EFEFF7 14px, #EFEFF7 28px);
  color: var(--purple-deep);
}
.imgph.yellow {
  background: repeating-linear-gradient(135deg, var(--yellow-soft), var(--yellow-soft) 14px, #FCF7E2 14px, #FCF7E2 28px);
  color: #7a5a00;
}
.imgph.cream {
  background: repeating-linear-gradient(135deg, var(--cream-2), var(--cream-2) 14px, var(--cream) 14px, var(--cream) 28px);
  color: var(--ink-soft);
}

/* Reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Section tints */
.section-mint { background: var(--mint); }
.section-cream { background: var(--cream-2); }
.section-teal-soft { background: var(--teal-tint); }
.section-deep { background: var(--teal-darker); color: white; }
.section-deep h1, .section-deep h2, .section-deep h3 { color: white; }
.section-deep .eyebrow { color: var(--yellow); }
.section-deep .eyebrow::before { background: var(--yellow); }

/* Forms */
input[type="text"], input[type="email"], input[type="number"], textarea, select {
  font-family: inherit; font-size: 15px;
  width: 100%; padding: 14px 16px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: white; color: var(--ink);
  transition: border .15s ease, box-shadow .15s ease;
  outline: none;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--teal-deep);
  box-shadow: 0 0 0 4px var(--teal-soft);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.55; }
label { font-size: 13px; font-weight: 600; color: var(--ink-soft); display: block; margin-bottom: 6px; }

/* Section header */
.section-head {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: end;
  margin-bottom: 56px;
}
.section-head .lead { color: var(--ink-soft); font-size: 18px; max-width: 52ch; line-height: 1.55; }
@media (max-width: 800px) {
  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 40px; }
}

/* Big stat */
.big-figure {
  font-family: "Nunito Sans", sans-serif;
  font-weight: 800;
  font-size: clamp(56px, 8vw, 110px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--teal-deep);
}

/* utilities */
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.muted { color: var(--ink-soft); }
.divider { height: 1px; background: var(--line); border: none; margin: 0; }

::selection { background: var(--teal); color: white; }

/* Focus */
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
