/* ==========================================================================
   GREENLEAF EDUCATION — main.css
   Tokens + shared components. No build step, no framework.
   Values mirror greenleaf.studio (bone / ink / leaf, Instrument Sans + Inter,
   pill buttons, soft cards); edu.css adds the landing-only components.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. FONTS — self-hosted woff2, latin subset, font-display: swap
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: italic;
  font-weight: 400 700;
  font-display: swap;
  src: url("../fonts/instrument-sans-italic-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/inter-latin-var.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* palette — greenleaf.studio ----------------------------------------- */
  --bone: #f5f3ef;
  --ink: #090f0b;
  --forest: #08150d;
  --leaf: #42815a;
  /* Leaf on bone is 4.19:1, below AA for small text. Leaf stays the brand
     fill; this deeper leaf is used only for text and links (5.41:1 on bone,
     6.00:1 on white) and for the hover of leaf buttons. */
  --leaf-ink: #386e4c;
  --leaf-soft: #c6dfca;
  --leaf-wash: rgba(66, 129, 90, 0.1);
  --leaf-line: rgba(66, 129, 90, 0.4);
  --sage: #8ab091;
  --sky: #338fc7;
  --sky-soft: #b4d6ef;
  --sky-tint: #e9f1f8;
  --amber: #c38c46;
  --amber-soft: #e8d0b0;
  --amber-tint: #f8f3e9;
  --muted: #e6e5df;
  --muted-fg: #505753;
  --card: #ffffff;

  /* dark surfaces — greenleaf.studio .dark theme */
  --dark-card: #131813;
  --dark-border: rgba(255, 255, 255, 0.12);
  --dark-muted-fg: #a19e98;
  --dark-text-mid: #aeb0ab; /* bone at 70% on forest, 8.54:1 */

  /* roles -------------------------------------------------------------- */
  --surface-page: var(--bone);
  --text-hi: var(--ink);
  --text-mid: #444844; /* ink at 75% on bone, 8.40:1 */
  --text-lo: var(--muted-fg); /* 6.70:1 on bone */
  --text-on-leaf: #ffffff; /* 4.65:1 on leaf */
  --border: rgba(0, 0, 0, 0.1);
  --border-strong: rgba(9, 15, 11, 0.2);
  --focus: var(--leaf);

  /* type ---------------------------------------------------------------- */
  --font-display: "Instrument Sans", "DM Sans", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;

  --fs-h1: clamp(40px, 4.6vw, 64px);
  --fs-h2: clamp(34px, 4.2vw, 60px);
  --fs-h3: 24px;
  --fs-h4: 20px;
  --lh-h1: 0.98;
  --lh-h2: 1.05;
  --lh-h3: 1.375;
  --ls-display: -0.025em;

  --fs-lead: 18px;
  --fs-body: 16px;
  --fs-small: 14px;
  --lh-body: 1.5;
  --lh-relaxed: 1.625;

  --fs-eyebrow: 12px;
  --fs-label: 11px;
  --ls-eyebrow: 0.14em;

  /* One size for all four figures (3.52rem). */
  --fs-metric: 56.32px;
  --ls-metric: -0.035em;

  /* space --------------------------------------------------------------- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 56px;
  --space-9: 80px;
  --section-y: clamp(80px, 8vw, 112px); /* py-20 md:py-28 */
  --section-y-tight: clamp(56px, 6vw, 80px);
  --gutter: 20px;
  --container: 1280px;
  /* Fixed header height: the compact bar below 1180px; 24px top offset +
     48px pill on desktop (set in the NAV section). */
  --header-h: 64px;

  /* shape --------------------------------------------------------------- */
  --radius-pill: 999px;
  --radius-card: 24px;
  --radius-panel: 24px;
  --radius-md: 14px;
  --radius-xs: 2px;
  --shadow-card: 0 1px 0 rgba(0, 0, 0, 0.02), 0 20px 40px -30px rgba(0, 0, 0, 0.15);
  --shadow-lift: 0 20px 60px -30px rgba(0, 0, 0, 0.35);

  /* motion -------------------------------------------------------------- */
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 200ms;
  --ease-std: cubic-bezier(0.4, 0, 0.2, 1);
  --dur-base: 300ms;
  --transition: color var(--dur-fast) var(--ease-std),
    background-color var(--dur-fast) var(--ease-std),
    border-color var(--dur-fast) var(--ease-std),
    box-shadow var(--dur-fast) var(--ease-std),
    opacity var(--dur-fast) var(--ease-std);
}
@media (min-width: 640px) {
  :root {
    --gutter: 32px;
  }
}

/* --------------------------------------------------------------------------
   3. BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* clip, not hidden: hidden turns html/body into scroll containers and breaks
   position: sticky inside the page. */
html {
  background: var(--surface-page);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  background: var(--surface-page);
  color: var(--text-mid);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-hi);
  letter-spacing: var(--ls-display);
  line-height: var(--lh-h2);
  margin: 0;
  text-wrap: balance;
}

p,
ul,
ol,
figure {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

::selection {
  background: var(--leaf-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--leaf);
  color: var(--text-on-leaf);
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 10px 18px;
}
.skip-link:focus {
  left: var(--gutter);
  top: 84px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   4. LAYOUT PRIMITIVES
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Every anchor target clears the fixed header, not just <section>. */
[id] {
  scroll-margin-top: calc(var(--header-h) + 24px);
}

.section {
  position: relative;
  padding: var(--section-y) 0;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section--tight {
  padding: var(--section-y-tight) 0;
}
.section--close {
  padding: var(--section-y-tight) 0 var(--section-y);
}
@media (min-width: 1024px) {
  .section--tight,
  .section--close {
    padding: var(--section-y) 0;
  }
}

/* The one deep-green block, as greenleaf.studio uses forest mid-page. */
.section--dark {
  background: var(--forest);
  color: var(--bone);
  border-top: 0;
}
.section--dark + .section {
  border-top: 0;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--space-9);
  align-items: start;
}

/* --------------------------------------------------------------------------
   5. TYPE VOICES
   -------------------------------------------------------------------------- */
/* Eyebrow — greenleaf.studio `.eyebrow`: Inter 12px / 500, uppercase, 0.14em. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-lo);
  margin-bottom: var(--space-6);
}
.eyebrow__num {
  color: var(--leaf-ink);
  flex: 0 0 auto;
}
.eyebrow__rule {
  width: 16px;
  height: 1px;
  background: var(--border-strong);
  flex: 0 0 auto;
}
.eyebrow--tight {
  margin-bottom: var(--space-5);
}

/* Small meta labels and sources — the same eyebrow voice, one step smaller. */
.mono {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-label);
  line-height: 1.5;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-lo);
}

/* Asides — Instrument Sans italic, the tone greenleaf.studio gives its
   highlighted phrases. Quiet, never rotated. */
.aside {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 20px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--text-lo);
  max-width: 30ch;
}
.aside--left {
  margin-top: var(--space-5);
}
.aside--right {
  margin-top: var(--space-6);
  margin-left: auto;
  text-align: right;
}

.lead {
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-lo);
}

.h-display-2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: var(--lh-h2);
  letter-spacing: var(--ls-display);
}

/* Highlight — the leaf-tinted italic phrase from the greenleaf.studio hero. */
.hl {
  font-style: italic;
  font-weight: 600;
  color: var(--leaf-ink);
  background: rgba(66, 129, 90, 0.15);
  border-radius: var(--radius-xs);
  padding: 0 0.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* --------------------------------------------------------------------------
   6. LINKS & BUTTONS
   -------------------------------------------------------------------------- */
a {
  color: inherit;
  transition: var(--transition);
}

.link-mono {
  font-size: var(--fs-small);
  color: var(--text-mid);
  text-decoration: none;
}
.link-mono:hover,
.link-mono:focus-visible {
  color: var(--leaf-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Pill buttons — greenleaf.studio: rounded-full, Inter 14px / 500, px-6 py-3. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-small);
  line-height: 20px;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-pill);
  /* No border: outlines are drawn with an inset shadow, so every button
     keeps its exact height (44px default: 12px + 20px + 12px). */
  border: 0;
  background: var(--leaf);
  color: var(--text-on-leaf);
  padding: 12px 24px;
  min-height: 44px;
  cursor: pointer;
  transition: var(--transition), transform var(--dur-fast) var(--ease-std);
}
.btn:hover {
  background: var(--leaf-ink);
}
.btn:active {
  transform: translateY(1px);
}
.btn--lg {
  font-size: 15px;
  padding: 14px 28px;
  min-height: 50px;
}
.btn--sm {
  padding: 9px 18px;
  min-height: 40px;
}
.btn--outline {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}
.btn--outline:hover {
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--leaf);
  color: var(--leaf-ink);
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

/* --------------------------------------------------------------------------
   7. NAV — fixed, always visible
   Desktop (>= 1180px) mirrors greenleaf.studio: fixed, transparent, padding
   24px 40px 0; logo left, the section links in a floating pill centred
   (white/80, blur 12px, 1px black/10, shadow-sm, px-2 py-1.5, links px-3.5
   py-1.5 with a "/" mark), actions right. Below 1180px the same header turns
   into a 64px compact bar and the links move into a menu.
   -------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  /* Only the bar's contents take clicks; the transparent gaps let the page
     underneath stay clickable, as on greenleaf.studio. */
  pointer-events: none;
}
.nav__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  height: var(--header-h);
  padding: 0 var(--gutter);
  background: rgba(245, 243, 239, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-right: auto;
  text-decoration: none;
  border-radius: var(--radius-xs);
  flex: 0 0 auto;
}
.nav__logo {
  width: 134px;
  height: 32px;
  transition: filter 200ms var(--ease-std);
}
/* Over a forest block the logo takes greenleaf.studio's light variant.
   main.js sets the class; reduced motion drops the transition (section 18). */
.header--on-dark .nav__logo {
  filter: invert(1) brightness(1.1);
}
/* The EDUCATION chip — greenleaf.studio's tag pill, in Inter. It floats
   over the page like the nav pill, so it carries the same frosted fill:
   without it the label falls to 2.52:1 over the forest blocks (4.79:1
   with it, worst case). */
.nav__chip {
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-lo);
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(9, 15, 11, 0.22);
  border-radius: var(--radius-pill);
  padding: 4px 10px;
}

/* The wrapper is layout-neutral on desktop and compact widths; on phones it
   becomes the menu panel. */
.nav__menu {
  display: contents;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}
.nav__links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-small);
  line-height: 20px;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(0, 0, 0, 0.8);
  padding: 6px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-pill);
}
/* The "/" mark greenleaf.studio sets before each link (#78907D). */
.nav__links a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 135 261'%3E%3Cpath d='M67.5 0H135L67.5 260.4H0Z' fill='%2378907D'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
.nav__links a:hover,
.nav__links a:focus-visible {
  background: var(--leaf-wash);
  border-color: var(--leaf-line);
  color: var(--leaf-ink);
}
.nav__end {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
/* Login floats over the page, so it gets the pill's frosted fill. */
.nav__end .btn--outline {
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.1);
}
.nav__end .btn--outline:hover {
  box-shadow: inset 0 0 0 1px var(--leaf);
}

/* Header CTA — greenleaf.studio "Book a call": ink pill, 40px, 14px / 500,
   padding 6px 6px 6px 16px, 28px arrow chip. */
.btn--nav {
  gap: var(--space-2);
  min-height: 40px;
  padding: 6px 6px 6px 16px;
  background: var(--ink);
  color: var(--bone);
}
.btn--nav:hover {
  background: var(--leaf);
  color: var(--text-on-leaf);
}
.btn__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(245, 243, 239, 0.12);
  border: 1px solid rgba(245, 243, 239, 0.12);
  flex: 0 0 auto;
}
.btn__arrow {
  width: 14px;
  height: 14px;
  display: block;
  flex: 0 0 auto;
  transition: transform var(--dur-fast) var(--ease-std);
}
.btn:hover .btn__arrow,
.btn:focus-visible .btn__arrow {
  transform: translateX(2px);
}

/* Menu button — 44 x 44, two bars that cross when open. */
.nav__toggle {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.nav__bars {
  position: relative;
  width: 18px;
  height: 10px;
}
.nav__bars i {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transition: transform var(--dur-fast) var(--ease-std), top var(--dur-fast) var(--ease-std);
}
.nav__bars i:first-child {
  top: 0;
}
.nav__bars i:last-child {
  top: 8px;
}
.nav.is-open .nav__bars i:first-child {
  top: 4px;
  transform: rotate(45deg);
}
.nav.is-open .nav__bars i:last-child {
  top: 4px;
  transform: rotate(-45deg);
}

/* ---- Compact bar, 701–1179px: logo + chip, Login, CTA, menu button. The
   four section links open from the button as a dropdown panel. */
@media (min-width: 701px) and (max-width: 1179px) {
  :root {
    --gutter: 24px;
  }
  .nav__end {
    order: 2;
  }
  .nav__toggle {
    order: 3;
  }
  .nav__links {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 8px);
    right: var(--gutter);
    width: 280px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 6px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }
  .nav.is-open .nav__links {
    display: flex;
  }
  .nav__links a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
  }
}

/* ---- Phones, <= 700px: one 64px row — logo + chip + menu button. The panel
   holds the four links, Login and the CTA (it does not fit the bar at 360px). */
@media (max-width: 700px) {
  .nav__inner {
    padding: 0 16px;
  }
  .nav__logo {
    width: 109px;
    height: 26px;
  }
  .nav__menu {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + 8px);
    left: 16px;
    right: 16px;
    max-height: calc(100dvh - var(--header-h) - 24px);
    overflow-y: auto;
    flex-direction: column;
    gap: var(--space-2);
    padding: 8px;
    background: rgba(255, 255, 255, 0.95);
    -webkit-backdrop-filter: blur(24px);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-card);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  }
  .nav.is-open .nav__menu {
    display: flex;
  }
  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
  }
  .nav__links a {
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 14px;
    font-size: var(--fs-body);
  }
  .nav__end {
    flex-direction: column;
    align-items: stretch;
    padding: 8px 6px 6px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
  }
  .nav__end .btn {
    width: 100%;
    min-height: 44px;
  }
  .nav__end .btn--nav {
    justify-content: space-between;
    padding-top: 8px;
    padding-bottom: 8px;
  }
}

/* ---- Desktop, >= 1180px: the greenleaf.studio layout. */
@media (min-width: 1180px) {
  :root {
    --header-h: 72px;
  }
  .nav__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: var(--space-3);
    height: auto;
    padding: 24px 40px 0;
    background: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 0;
  }
  .nav__brand {
    margin-right: 0;
    justify-self: start;
  }
  .nav__toggle {
    display: none;
  }
  .nav__links {
    justify-self: center;
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.8);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-pill);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  }
  .nav__end {
    justify-self: end;
  }
}
/* Between 1180 and 1279px the pill tightens so the row still fits. */
@media (min-width: 1180px) and (max-width: 1279px) {
  .nav__inner {
    padding: 24px 32px 0;
  }
  .nav__links a {
    padding: 6px 10px;
  }
}

/* --------------------------------------------------------------------------
   8. HERO
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  padding: calc(var(--header-h) + clamp(40px, 4vw, 56px)) 0 var(--space-9);
}
/* Background grid — the exact values of the greenleaf.studio
   /ai-brand-visibility hero: 1px ink/5% lines every 72px, faded by an
   elliptical mask. Decorative only; it runs under the fixed header. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in oklab, var(--ink) 5%, transparent) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 40% 20%, black 30%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 70% at 40% 20%, black 30%, transparent 100%);
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr);
  gap: var(--space-8);
  align-items: center;
}
.hero__col {
  min-width: 0;
}
.hero__h1 {
  font-size: var(--fs-h1);
  font-weight: 700;
  line-height: var(--lh-h1);
  letter-spacing: var(--ls-display);
  max-width: 16ch;
}
.hero__sub {
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  line-height: var(--lh-relaxed);
  color: var(--text-lo);
  max-width: 52ch;
}
.hero__meta {
  margin-top: var(--space-5);
}

/* --------------------------------------------------------------------------
   9. AI CHAT — the interface everybody already recognises
   -------------------------------------------------------------------------- */
.chat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
  min-width: 0;
  box-shadow: var(--shadow-lift);
}
.chat__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.chat__bar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--muted);
}
.chat__thread {
  padding: var(--space-6) var(--space-5);
  display: grid;
  gap: var(--space-5);
}
.chat__msg--user {
  justify-self: end;
  max-width: min(84%, 44ch);
  background: var(--muted);
  color: var(--ink);
  border-radius: 18px 18px 4px 18px;
  padding: 12px 18px;
  font-size: var(--fs-small);
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.chat__msg--bot {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: var(--space-4);
  align-items: start;
}
.chat__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--leaf-soft);
  display: grid;
  place-items: center;
  color: var(--leaf-ink);
}
.chat__avatar svg {
  width: 14px;
  height: 14px;
  display: block;
}
.chat__body {
  position: relative;
  min-width: 0;
  display: grid;
  gap: var(--space-3);
}
.chat__line {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 62ch;
}
/* Three dots. Purely ornamental — the answer is already in the DOM. They
   sit over the answer's first line, so showing them never moves anything,
   and only edu.js turns them on (never with reduced motion). */
.chat__typing {
  position: absolute;
  top: 6px;
  left: 0;
  display: none;
  gap: 5px;
  align-items: center;
  height: 14px;
}
.chat.is-typing .chat__typing {
  display: inline-flex;
}
/* The question types inside its bubble: the clip runs on this inner span. */
.chat__q {
  display: block;
}
.chat__typing i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sage);
  animation: dots 1.2s ease-in-out infinite;
}
.chat__typing i:nth-child(2) {
  animation-delay: 0.16s;
}
.chat__typing i:nth-child(3) {
  animation-delay: 0.32s;
}
.chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-1);
}
.chat__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-lo);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px 12px 4px 5px;
}
.chat__chip b {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--leaf-soft);
  color: var(--ink);
  font-weight: 600;
  font-size: 10px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.chat__input {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: 0 var(--space-5) var(--space-5);
  padding: 8px 8px 8px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  color: var(--text-lo);
  font-size: var(--fs-small);
  pointer-events: none;
  cursor: default;
}
.chat__send {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--leaf);
  color: var(--text-on-leaf);
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.chat__send svg {
  width: 15px;
  height: 15px;
  display: block;
}
.chat__sim {
  margin-top: var(--space-4);
}

@keyframes dots {
  0%,
  60%,
  100% {
    opacity: 0.3;
    transform: translateY(0);
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* --------------------------------------------------------------------------
   10. METRICS
   -------------------------------------------------------------------------- */
.metric__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-metric);
  letter-spacing: var(--ls-metric);
  line-height: 1;
  color: var(--text-hi);
  display: flex;
  align-items: baseline;
  gap: 4px;
}
[data-count] {
  font-variant-numeric: tabular-nums;
}
.metric__value--sm {
  font-size: var(--fs-metric);
}
.metric__unit {
  font-size: 0.5em;
  color: var(--leaf-ink);
  letter-spacing: 0;
}
.metric__label {
  margin-top: var(--space-4);
  font-size: var(--fs-small);
  color: var(--text-mid);
  line-height: 1.55;
  max-width: 34ch;
}
.metric__src {
  margin-top: var(--space-4);
  font-weight: 500;
  font-size: var(--fs-label);
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-lo);
}

/* --------------------------------------------------------------------------
   11. DARK BLOCK — type and labels on forest
   -------------------------------------------------------------------------- */
.section--dark h2,
.section--dark h3 {
  color: var(--bone);
}
.section--dark .lead {
  color: var(--dark-text-mid);
}
.section--dark .eyebrow,
.section--dark .mono {
  color: var(--dark-muted-fg);
}
.section--dark .eyebrow__num {
  color: var(--sage);
}
.section--dark .eyebrow__rule {
  background: var(--dark-border);
}

/* --------------------------------------------------------------------------
   12. PANELS: pricing, principles, plate, scope
   -------------------------------------------------------------------------- */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: stretch;
}
.panel-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.bullets {
  display: grid;
  gap: var(--space-3);
  max-width: 68ch;
}
.bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-mid);
}
.bullets li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.55em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}

.price {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-7) var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.price--lead {
  border-color: var(--leaf-line);
}
.price__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  min-height: 28px;
}
.tag {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-label);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.4;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  background: var(--leaf-soft);
  color: var(--ink);
}
.price h3 {
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
}
/* Side by side, the two pricing cards share their rows (head, title,
   price, description, list), so both figures sit at the same height
   whatever wraps above them. */
.panel-grid > .price {
  display: grid;
  grid-template-rows: subgrid;
  grid-row: span 5;
  align-content: start;
  row-gap: var(--space-4);
}
/* The price is the loudest thing on the card: Instrument Sans 600, ink,
   tabular figures. "From" and "/month" ride on the figure's baseline in
   Inter; the figure itself never breaks, "/month" may drop to the next line
   on the narrowest phones. 24px of air above and below the block (16px row
   gap + 8px margin). */
.price__amount {
  margin: var(--space-2) 0;
}
.price__figure {
  margin: 0;
  line-height: 1;
}
.price__lead {
  white-space: nowrap;
}
.price__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price__from,
.price__per {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--text-mid);
}
.price__from {
  margin-right: 6px;
}
.price__per {
  margin-left: 2px;
}
.price__tax {
  margin-top: var(--space-2);
  font-size: 13px;
  line-height: 1.4;
  color: var(--text-lo);
}
/* Phones: the price card padding matches the metric cards (24px). Below
   360px the sides drop to 16px so "From USD 2,000" (240px at the 40px
   floor) still fits on one line. */
@media (max-width: 700px) {
  .price {
    padding: var(--space-6) var(--space-5);
  }
}
@media (max-width: 359px) {
  .price {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }
}
.price__desc {
  font-size: 15px;
  line-height: var(--lh-relaxed);
  color: var(--text-lo);
}
.price .bullets {
  margin-top: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.price__foot {
  margin-top: var(--space-5);
}

.principle {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.principle__n {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  color: var(--leaf-ink);
  margin-bottom: var(--space-4);
}
.principle p:not(.principle__n) {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

/* Leaf-soft tile — greenleaf.studio's `rounded-2xl bg-[--leaf-soft]` card. */
.plate {
  background: var(--leaf-soft);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.plate .mono {
  color: var(--ink);
}
.plate p:not(.mono) {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--ink);
  max-width: 44ch;
}

.scope-list {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: var(--space-6);
}
.scope-list li {
  position: relative;
  padding: 10px 0 10px 22px;
  font-size: 15px;
  color: var(--text-mid);
  border-bottom: 1px solid var(--border);
}
.scope-list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 10px;
  height: 2px;
  border-radius: 1px;
  background: var(--amber);
}
.scope-list p {
  margin-top: var(--space-5);
  font-size: 17px;
  line-height: var(--lh-relaxed);
  color: var(--text-mid);
}

/* --------------------------------------------------------------------------
   13. FAQ — native <details>, readable with JS off
   -------------------------------------------------------------------------- */
.faq {
  border-top: 1px solid var(--border);
}
.faq__item {
  border-bottom: 1px solid var(--border);
}
.faq__q {
  display: flex;
  align-items: baseline;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__n {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  letter-spacing: var(--ls-eyebrow);
  color: var(--leaf-ink);
  flex: 0 0 22px;
  font-variant-numeric: tabular-nums;
}
.faq__q h3 {
  flex: 1;
  font-weight: 400;
  font-size: var(--fs-h4);
  line-height: 1.375;
  color: var(--text-hi);
}
.faq__q:hover h3 {
  color: var(--leaf-ink);
}
.faq__plus {
  font-size: 22px;
  line-height: 1;
  color: var(--text-lo);
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-soft);
}
.faq__item[open] .faq__plus {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 0 var(--space-5) calc(var(--space-5) + 22px);
  max-width: 66ch;
  font-size: var(--fs-body);
  line-height: var(--lh-relaxed);
  color: var(--text-lo);
}

/* --------------------------------------------------------------------------
   14. DASHBOARD LAYOUT
   -------------------------------------------------------------------------- */
.dash {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: var(--space-8);
  align-items: start;
}
.dash > :first-child {
  position: sticky;
  top: 120px;
}

/* --------------------------------------------------------------------------
   15. CLOSER — a forest panel, like greenleaf.studio's closing call to action
   -------------------------------------------------------------------------- */
.closer {
  margin-top: var(--section-y-tight);
  background: var(--forest);
  color: var(--bone);
  border-radius: var(--radius-panel);
  padding: clamp(40px, 6vw, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: var(--space-6) var(--space-8);
}
.closer__cta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--space-3);
}
.closer h2 {
  color: var(--bone);
  max-width: 20ch;
}
.closer .hl {
  color: var(--sage);
  background: rgba(138, 176, 145, 0.16);
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.footer {
  background: var(--surface-page);
  border-top: 1px solid var(--border);
  padding-top: var(--space-9);
  margin-top: 0;
}
.footer__grid {
  display: grid;
  /* The contact column sizes to the email so it never breaks mid-address. */
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)) auto;
  gap: var(--space-8);
  padding-bottom: var(--space-9);
}
/* Wordmark top-left, the two presentation lines under it — as the
   greenleaf.studio footer opens. */
.footer__logo {
  width: 168px;
  height: 40px;
  margin-bottom: var(--space-5);
}
.footer__tagline,
.footer__division {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  max-width: 36ch;
}
.footer__division {
  margin-top: var(--space-3);
}
.footer__locale {
  margin-top: var(--space-5);
}
.footer__col-t {
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: var(--ls-eyebrow);
  color: var(--text-lo);
  margin-bottom: var(--space-3);
}
.footer__col ul {
  display: grid;
  gap: 0;
}
.footer__col .link-mono {
  display: inline-block;
  padding: 6px 0;
  overflow-wrap: anywhere;
}
.footer__legal {
  border-top: 1px solid var(--border);
  padding: var(--space-5) 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  justify-content: space-between;
}

/* --------------------------------------------------------------------------
   17. RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .dash > :first-child {
    position: static;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .two-col,
  .dash {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-8);
  }
  .footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer__intro {
    grid-column: 1 / -1;
  }
  .aside--right {
    margin-left: 0;
    text-align: left;
  }
}

@media (max-width: 860px) {
  .closer {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }
  .closer__cta {
    align-items: flex-start;
  }
  .panel-grid,
  .panel-grid--3 {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 700px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-6);
  }
}

@media (max-width: 700px) {
  .btn {
    width: 100%;
    white-space: normal;
  }
  .faq__a {
    padding-left: 0;
  }
}

/* --------------------------------------------------------------------------
   18. REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
