/* ============================================================================
   PURE Insight — design system
   Palette is drawn straight from the mark: water (sky→deep blue) falling into
   grass (lime→forest) held by soil (sand→earth). No pure black, no gray-on-
   color, no system-default fonts — deep tinted inks and an organic serif/grotesk
   pairing instead.
   ========================================================================== */

:root {
  /* brand ramps */
  --sky: #8ed0ef;
  --water: #3f95d0;
  --water-deep: #2360a0;
  --grass: #8ec63f;
  --grass-mid: #57a83f;
  --grass-deep: #2f7d32;
  --soil: #b07c40;
  --soil-deep: #6f4622;

  /* neutrals — tinted, never pure */
  --paper: #f7faf2;
  --paper-2: #eef3e6;
  --ink: #13251a;        /* deep forest near-black */
  --ink-soft: #3f5346;
  --ink-faint: #6d7f71;
  --line: #dde6d3;
  --night: #0d1c14;      /* deep soil-forest section bg */
  --night-2: #12281c;

  /* semantics */
  --bg: var(--paper);
  --fg: var(--ink);
  --accent: var(--grass-deep);
  --accent-water: var(--water-deep);

  --maxw: 1200px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -24px rgba(19, 37, 26, 0.45);
  --shadow-soft: 0 8px 30px -18px rgba(19, 37, 26, 0.35);

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1); /* no bounce/elastic */
  --dur: 220ms;

  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-body: "Hanken Grotesk", "Segoe UI", Roboto, sans-serif;
}

/* ---- reset ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.075rem);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 4px; }

/* ---- type ----------------------------------------------------------------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.04; letter-spacing: -0.015em; color: var(--ink); }
h1 { font-size: clamp(2.6rem, 1.6rem + 4.6vw, 5.4rem); }
h2 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.35rem); }
h3 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.7rem); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--grass-deep);
  display: inline-flex; align-items: center; gap: 0.55rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--grass-mid); border-radius: 2px; }
.lede { font-size: clamp(1.1rem, 1rem + 0.6vw, 1.4rem); color: var(--ink-soft); max-width: 46ch; }

/* ---- layout --------------------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(4.5rem, 3rem + 8vw, 9rem); position: relative; }
.section--tight { padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.stack > * + * { margin-top: 1.25rem; }

/* ---- buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.95rem 1.6rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 700; font-size: 0.98rem; letter-spacing: 0.005em;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), color var(--dur) var(--ease);
}
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--grass-deep); color: #f4faec; box-shadow: var(--shadow-soft); }
.btn--primary:hover { background: #276a2a; transform: translateY(-2px); box-shadow: 0 16px 34px -18px rgba(47, 125, 50, 0.7); }
.btn--water { background: var(--water-deep); color: #eef6fd; box-shadow: var(--shadow-soft); }
.btn--water:hover { background: #1d548e; transform: translateY(-2px); }
.btn--ghost { background: transparent; border-color: color-mix(in srgb, var(--ink) 22%, transparent); color: var(--ink); }
.btn--ghost:hover { border-color: var(--grass-deep); color: var(--grass-deep); transform: translateY(-2px); }
.btn--onDark { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.28); color: #eaf3e2; }
.btn--onDark:hover { background: rgba(255,255,255,0.16); transform: translateY(-2px); }

/* ---- nav ------------------------------------------------------------------ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem var(--gutter);
  transition: background var(--dur) var(--ease), box-shadow var(--dur) var(--ease), backdrop-filter var(--dur) var(--ease);
}
.nav.is-stuck { background: color-mix(in srgb, var(--paper) 82%, transparent); backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-family: var(--font-display); font-weight: 600; font-size: 1.28rem; color: var(--ink); }
.brand__mark { width: 34px; height: auto; }
.brand__r { font-size: 0.6em; vertical-align: super; color: var(--grass-mid); }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a { font-weight: 600; font-size: 0.96rem; color: var(--ink-soft); transition: color var(--dur) var(--ease); }
.nav__links a:hover, .nav__links a[aria-current="page"] { color: var(--grass-deep); }
.nav__cta { padding: 0.6rem 1.15rem; }
.nav__toggle { display: none; background: none; border: 0; padding: 0.4rem; }
@media (max-width: 860px) {
  .nav__links { position: fixed; inset: 64px 0 auto 0; flex-direction: column; align-items: flex-start; gap: 0.2rem;
    background: var(--paper); padding: 1rem var(--gutter) 1.5rem; box-shadow: var(--shadow); transform: translateY(-130%); transition: transform 0.35s var(--ease); }
  .nav__links.is-open { transform: translateY(0); }
  .nav__links a { padding: 0.6rem 0; font-size: 1.1rem; }
  .nav__toggle { display: inline-flex; }
}

/* ---- hero / scroll stage -------------------------------------------------- */
.hero { position: relative; }
.hero__stage { position: relative; height: 100vh; height: 100svh; }  /* pinned by GSAP on desktop */
.hero__scene { position: absolute; inset: 0; overflow: hidden; }
.hero__sky { position: absolute; inset: 0; background:
    radial-gradient(120% 90% at 50% -10%, #eaf6fd 0%, #dceff8 34%, var(--paper) 70%); }
.hero__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__copy {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: min(760px, 88vw); text-align: center; z-index: 3; will-change: transform, opacity;
}
.hero__copy h1 { color: var(--ink); }
.hero__copy .grad { background: linear-gradient(100deg, var(--water-deep), var(--grass-deep)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__actions { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; margin-top: 2rem; }
.hero__scrollcue { position: absolute; left: 50%; bottom: 2.2rem; transform: translateX(-50%); z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; color: var(--ink-faint); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; }
.hero__scrollcue span { width: 1px; height: 34px; background: linear-gradient(var(--grass-mid), transparent); }

/* readouts revealed inside the soil at the end of the scroll */
.readout { position: absolute; z-index: 4; opacity: 0; will-change: transform, opacity;
  background: color-mix(in srgb, var(--night) 78%, transparent); backdrop-filter: blur(6px);
  color: #eaf3e2; border: 1px solid rgba(142,198,63,0.35); border-radius: 12px; padding: 0.6rem 0.85rem; box-shadow: var(--shadow); }
.readout .k { font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: #a9c58f; }
.readout .v { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }

/* ---- generic content sections -------------------------------------------- */
.section--dark { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #e8f1e0; }
.section--dark h2, .section--dark h3 { color: #f1f8ea; }
.section--dark .lede { color: #bcd0b1; }
.section--soil { background:
    linear-gradient(180deg, var(--paper) 0%, #efe7db 100%); }
.headline-block { max-width: 62ch; }
.grid { display: grid; gap: clamp(1rem, 2vw, 1.6rem); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid--3 { grid-template-columns: 1fr; } .grid--2 { grid-template-columns: 1fr; } }

/* feature cards (flat, not nested) */
.feature { padding: 1.9rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-soft);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature__icon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px; background: color-mix(in srgb, var(--grass) 20%, #fff); color: var(--grass-deep); margin-bottom: 1.1rem; }
.feature__icon svg { width: 24px; height: 24px; }
.feature h3 { margin-bottom: 0.5rem; }
.feature p { color: var(--ink-soft); }
.section--dark .feature { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.12); box-shadow: none; }
.section--dark .feature p { color: #bcd0b1; }
.section--dark .feature__icon { background: rgba(142,198,63,0.14); color: var(--grass); }

/* steps (how it works) */
.steps { counter-reset: step; display: grid; gap: 1.2rem; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 1.2rem; align-items: start; padding: 1.4rem 0; border-top: 1px solid rgba(255,255,255,0.14); }
.step__num { counter-increment: step; font-family: var(--font-display); font-size: 1.5rem; color: var(--grass); width: 3rem; }
.step__num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 0.3rem; }

/* segments */
.segments { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; }
.segment { position: relative; overflow: hidden; border-radius: var(--radius); padding: 1.5rem; min-height: 168px; display: flex; flex-direction: column; justify-content: flex-end; color: #f2f8ec; background: linear-gradient(160deg, var(--grass-deep), var(--night-2)); border: 1px solid rgba(255,255,255,0.1); transition: transform var(--dur) var(--ease); }
.segment:nth-child(2) { background: linear-gradient(160deg, var(--water-deep), var(--night-2)); }
.segment:nth-child(3) { background: linear-gradient(160deg, var(--soil-deep), var(--night)); }
.segment:nth-child(4) { background: linear-gradient(160deg, var(--grass-mid), var(--night-2)); }
.segment:nth-child(5) { background: linear-gradient(160deg, #2f6f86, var(--night)); }
.segment:hover { transform: translateY(-5px); }
.segment h3 { color: #fff; font-size: 1.25rem; }
.segment p { color: rgba(255,255,255,0.82); font-size: 0.92rem; margin-top: 0.3rem; }
.segment__icon { position: absolute; top: 1.1rem; right: 1.1rem; opacity: 0.9; }
.segment__icon svg { width: 26px; height: 26px; color: #fff; }

/* Carmen / founder */
.founder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
@media (max-width: 900px) { .founder { grid-template-columns: 1fr; } }
.founder__portrait { border-radius: var(--radius); overflow: hidden; background: linear-gradient(160deg, var(--grass-deep), var(--soil-deep)); aspect-ratio: 4/5; position: relative; box-shadow: var(--shadow); display: grid; place-items: center; }
.founder__portrait .yrs { font-family: var(--font-display); color: #f3f9ec; text-align: center; }
.founder__portrait .yrs b { display: block; font-size: clamp(4rem, 10vw, 7rem); line-height: 0.9; }
.founder blockquote { font-family: var(--font-display); font-size: clamp(1.4rem, 1rem + 1.6vw, 2.1rem); line-height: 1.2; color: var(--ink); }
.founder cite { display: block; margin-top: 1rem; font-style: normal; font-weight: 700; color: var(--grass-deep); }
.founder cite span { display: block; font-weight: 500; color: var(--ink-faint); font-size: 0.9rem; }

/* stat band */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; text-align: center; }
@media (max-width: 700px) { .stats { grid-template-columns: 1fr; } }
.stat b { display: block; font-family: var(--font-display); font-size: clamp(2.4rem, 1.5rem + 3vw, 3.6rem); color: var(--grass); line-height: 1; }
.stat span { color: #bcd0b1; font-size: 0.95rem; }

/* CTA / waitlist */
.cta { background: radial-gradient(120% 120% at 80% 0%, var(--night-2), var(--night)); color: #eaf3e0; border-radius: clamp(20px, 3vw, 32px); padding: clamp(2.2rem, 2rem + 3vw, 4rem); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.cta::after { content: ""; position: absolute; right: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(142,198,63,0.35), transparent 65%); }
.waitlist { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.6rem; position: relative; z-index: 1; }
.waitlist input, .field input, .field select, .field textarea {
  font: inherit; padding: 0.9rem 1.1rem; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); min-width: 0;
}
.waitlist input { flex: 1 1 240px; border-color: rgba(255,255,255,0.25); background: rgba(255,255,255,0.95); }
.waitlist input::placeholder { color: var(--ink-faint); }
.form-note { margin-top: 0.85rem; font-size: 0.85rem; color: #a9c58f; min-height: 1.2em; }
.form-note.is-ok { color: #bfe38b; }
.form-note.is-err { color: #ffb4a2; }

/* contact form (light) */
.field { display: block; margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.4rem; color: var(--ink); }
.field input, .field select, .field textarea { width: 100%; }
.field textarea { min-height: 130px; resize: vertical; }

/* footer */
.footer { background: var(--night); color: #c6d6bd; padding-block: clamp(3rem, 2rem + 4vw, 5rem); }
.footer__top { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer .brand { color: #f1f8ea; }
.footer__cols { display: flex; gap: clamp(2rem, 6vw, 5rem); flex-wrap: wrap; }
.footer h4 { font-family: var(--font-body); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: #8fac7e; margin-bottom: 0.8rem; }
.footer a { display: block; padding: 0.28rem 0; color: #c6d6bd; transition: color var(--dur) var(--ease); }
.footer a:hover { color: var(--grass); }
.footer__base { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.1); display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: #8fac7e; }

/* reveal-on-scroll utility */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* small screens: readouts hug the corners so they frame the centered copy
   instead of overlapping it, and shrink to fit a phone. Inline positions on the
   elements are overridden here. */
@media (max-width: 860px) {
  .readout { padding: 0.5rem 0.65rem; }
  .readout .v { font-size: 1.05rem; }
  #ro1 { left: 5% !important; right: auto !important; top: 15% !important; bottom: auto !important; }
  #ro2 { right: 5% !important; left: auto !important; top: 15% !important; bottom: auto !important; }
  #ro3 { left: 5% !important; right: auto !important; bottom: 13% !important; top: auto !important; }
  #ro4 { right: 5% !important; left: auto !important; bottom: 13% !important; top: auto !important; }
  .hero__scrollcue { bottom: 1.2rem; }
}

/* generic page header (about/contact) */
.pagehead { padding-top: clamp(7rem, 6rem + 5vw, 10rem); padding-bottom: clamp(2rem, 3vw, 3rem); }
.prose { max-width: 68ch; }
.prose p { margin-top: 1.1rem; color: var(--ink-soft); }
.prose h2 { margin-top: 2.4rem; }
