/* Level Up AI Partners
   Style language: industrial-warm editorial (cream paper, deep evergreen fields, one charged lime
   accent, hard-edged solid shapes, no blur, no gradients). Grounded in the Mossforge system
   (website-library): cream surfaces + evergreen panels + single lime accent, re-cut with its own
   fonts and a stepped "levels" motif (hero background, staircase layout of the three levels).
   Fonts: Cabinet Grotesk (headings) + Switzer (text), both Fontshare.
   Button mechanics: push button with a hard "step edge" underneath (Uiverse / cssbuttons.io push
   family), re-cut: the edge is a solid lime-dark step that the button sinks onto on hover/press. */

:root {
  --c-green: #1b342b;       /* primary field: header, hero, CTA, footer */
  --c-green-deep: #12241d;  /* text on lime, deepest step */
  --c-green-mid: #2c4a3e;   /* hero steps */
  --c-green-step: #3b6252;  /* hero steps, lighter */
  --c-lime: #c5f26e;        /* accent: actions and the top step */
  --c-lime-edge: #8fb83f;   /* button step edge */
  --c-cream: #f2efe6;       /* paper sections */
  --c-white: #ffffff;
  --c-rule: #ddd7c6;

  --c-text: #1a2a22;
  --c-text-2: #4c5c53;           /* 6.3:1 on cream */
  --c-on-dark: #f2efe6;
  --c-on-dark-2: #b4c0b8;        /* 7:1 on green */
  --c-hair-dark: #2c4a3e;
  --c-on-lime-2: #223c31;        /* 9:1 on lime */

  --f-display: 'Cabinet Grotesk', 'Switzer', sans-serif;
  --f-text: 'Switzer', system-ui, sans-serif;

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;
  --section: clamp(80px, 10vw, 144px);
  --wrap: 1184px;
  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 68px;

  --r: 10px;
  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --dur-fast: 140ms;
  --dur-base: 220ms;
  --dur-reveal: 640ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--c-text);
  background: var(--c-cream);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p, dd { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 800; }
:is(a[href], button) { cursor: pointer; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus, var(--c-green)); outline-offset: 3px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

.skip {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--c-cream); color: var(--c-green); padding: var(--s-3) var(--s-4);
  text-decoration: none; font-weight: 500;
}
.skip:focus { top: var(--s-3); }

/* Type */
.display {
  font-family: var(--f-display);
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: .97;
  letter-spacing: -0.03em;
  max-width: 11ch;
  text-wrap: balance;
}
.display-2 {
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 1;
  letter-spacing: -0.028em;
  max-width: 15ch;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-display);
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  max-width: 19ch;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1.9vw, 1.6rem);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
.lede { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; max-width: 54ch; }

/* Fields */
.field-green { background: var(--c-green); color: var(--c-on-dark); --focus: var(--c-lime); }
.field-lime { background: var(--c-lime); color: var(--c-green-deep); --focus: var(--c-green-deep); }
.field-green .lede { color: var(--c-on-dark-2); }
.field-lime .lede { color: var(--c-on-lime-2); }
.paper { background: var(--c-cream); }
.section { padding-block: var(--section); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--c-green); color: var(--c-on-dark);
  border-bottom: 1px solid var(--c-hair-dark);
  --focus: var(--c-lime);
}
.header-bar { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: var(--s-5); }
.brand { text-decoration: none; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; color: var(--c-on-dark); flex: none; }
.brand-word { font-family: var(--f-display); font-weight: 800; font-size: 1.1875rem; letter-spacing: -0.015em; white-space: nowrap; }
.brand-word span { font-weight: 700; color: var(--c-lime); }
.brand-logo { height: 32px; width: auto; }
.nav { display: flex; align-items: center; gap: var(--s-5); }
.nav-link {
  color: var(--c-on-dark-2); text-decoration: none; font-size: .9375rem;
  min-height: 44px; display: inline-flex; align-items: center;
  transition: color var(--dur-fast) var(--ease);
}
.nav-link:hover { color: var(--c-on-dark); }

/* Button: push button with a hard step edge */
.btn {
  position: relative;
  display: inline-flex; align-items: center; gap: 14px;
  min-height: 54px; padding: 0 12px 0 24px; margin-bottom: 5px;
  background: var(--c-lime); color: var(--c-green-deep);
  font-family: var(--f-text); font-weight: 500; font-size: 1.0625rem; letter-spacing: .005em;
  text-decoration: none; border-radius: var(--r);
  box-shadow: 0 5px 0 var(--c-lime-edge);
  transition: transform var(--dur-base) var(--ease), box-shadow var(--dur-base) var(--ease);
}
.btn-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  background: var(--c-green-deep); color: var(--c-lime); border-radius: 7px;
}
.btn-icon svg { width: 18px; height: 18px; transition: transform var(--dur-base) var(--ease); }
.btn:hover { transform: translateY(3px); box-shadow: 0 2px 0 var(--c-lime-edge); }
.btn:hover .btn-icon svg { transform: translateX(3px); }
.btn:active { transform: translateY(5px); box-shadow: 0 0 0 var(--c-lime-edge); }
.btn-sm { min-height: 44px; padding: 0 8px 0 16px; gap: 10px; font-size: .9375rem; box-shadow: 0 4px 0 var(--c-lime-edge); margin-bottom: 4px; }
.btn-sm .btn-icon { width: 28px; height: 28px; border-radius: 6px; }
.btn-sm .btn-icon svg { width: 16px; height: 16px; }
.btn-sm:hover { transform: translateY(2px); box-shadow: 0 2px 0 var(--c-lime-edge); }
.btn-lg { min-height: 62px; padding: 0 14px 0 28px; font-size: 1.1875rem; }
.btn-lg .btn-icon { width: 38px; height: 38px; }
.btn-lg .btn-icon svg { width: 21px; height: 21px; }

.text-link {
  display: inline-flex; align-items: center; min-height: 44px;
  font-weight: 500; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 6px; text-decoration-color: var(--c-lime);
  transition: text-decoration-color var(--dur-fast) var(--ease);
}
.text-link:hover { text-decoration-color: currentColor; }
.text-link.on-dark { color: var(--c-on-dark); }

/* Hero: five rising steps are the section background */
.hero { position: relative; overflow: hidden; min-height: min(86svh, 820px); display: flex; align-items: center; }
.hero-inner { position: relative; z-index: 2; padding-block: var(--s-9); }
.hero .display { font-size: clamp(2.7rem, 5.6vw, 5rem); max-width: min(10.5ch, 46vw); }
.hero .lede { margin-top: var(--s-5); max-width: min(42ch, 44vw); }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-4) var(--s-6); margin-top: var(--s-7); }

.stairs {
  position: absolute; z-index: 1; right: 0; bottom: 0; top: 0; left: 56%;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
}
.stairs i { display: block; height: var(--h); background: var(--bg); transform-origin: bottom; }
.stairs i:nth-child(1) { --h: 26%; --bg: var(--c-green-mid); }
.stairs i:nth-child(2) { --h: 42%; --bg: #335542; }
.stairs i:nth-child(3) { --h: 58%; --bg: var(--c-green-step); }
.stairs i:nth-child(4) { --h: 76%; --bg: #4b7864; }
.stairs i:nth-child(5) { --h: 94%; --bg: var(--c-lime); }
.js .stairs i { transform: scaleY(0); }
.js .hero.on .stairs i {
  transform: none;
  transition: transform 760ms var(--ease-out);
  transition-delay: calc(200ms + var(--i, 0) * 140ms);
}
.stairs i:nth-child(2) { --i: 1; } .stairs i:nth-child(3) { --i: 2; }
.stairs i:nth-child(4) { --i: 3; } .stairs i:nth-child(5) { --i: 4; }

/* Levels: a staircase of ruled rows, each one step further in */
#how .wrap { display: block; }
.levels { list-style: none; margin: var(--s-8) 0 0; padding: 0; }
.level {
  display: grid; grid-template-columns: 52px 1fr; column-gap: var(--s-5); row-gap: var(--s-3);
  align-items: start;
  padding: var(--s-6) 0 var(--s-7); border-top: 2px solid var(--c-green);
  margin-left: calc((var(--n) - 1) * var(--step));
  --step: clamp(20px, 9vw, 128px);
}
.level:nth-child(1) { --n: 1; } .level:nth-child(2) { --n: 2; } .level:nth-child(3) { --n: 3; }
.level-n {
  grid-row: 1 / span 2;
  width: 44px; height: 44px; display: grid; place-items: center;
  background: var(--c-green); color: var(--c-lime);
  font-family: var(--f-display); font-weight: 800; font-size: 1.25rem; border-radius: 8px;
}
.level .h3 { align-self: center; min-height: 44px; display: flex; align-items: center; }
.level p { color: var(--c-text-2); max-width: 54ch; }

/* Statement */
.statement { padding-block: var(--s-4); }
.statement .lede { margin-top: var(--s-6); }

/* Fit: ruled definition rows */
.rows { margin: var(--s-8) 0 0; border-top: 2px solid var(--c-green); }
.row {
  display: grid; grid-template-columns: 4fr 7fr; gap: var(--s-6);
  padding: var(--s-6) 0; border-bottom: 1px solid var(--c-rule);
}
.row dd { margin: 0; color: var(--c-text-2); max-width: 58ch; padding-top: 2px; }

/* CTA */
.cta { padding-block: var(--section); }
.cta .lede { margin-top: var(--s-5); }
.cta .btn { margin-top: var(--s-7); }

/* Footer */
.site-footer { background: var(--c-green-deep); color: var(--c-on-dark-2); --focus: var(--c-lime); padding-block: var(--s-7); }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: var(--s-4) var(--s-6); align-items: center; }
.footer-grid .brand-word { color: var(--c-on-dark); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 var(--s-5); }
.site-footer nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; font-size: .9375rem; transition: color var(--dur-fast) var(--ease); }
.site-footer nav a:hover { color: var(--c-on-dark); }
.fine { grid-column: 1 / -1; font-size: .875rem; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.on { opacity: 1; transform: none; transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }

/* Privacy page */
.doc { padding-block: var(--s-9); }
.doc .wrap { max-width: 760px; }
.doc h2 { font-family: var(--f-display); font-size: 1.375rem; margin-top: var(--s-7); }
.doc p { margin-top: var(--s-3); color: var(--c-text-2); }
.doc a { text-decoration-color: var(--c-green); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: var(--s-3); }
}

@media (max-width: 760px) {
  .nav-link { display: none; }
  .hero { min-height: 0; align-items: flex-start; }
  .hero-inner { padding-top: var(--s-8); padding-bottom: 250px; }
  .hero .display, .hero .lede { max-width: none; }
  .stairs { left: 0; top: auto; height: 210px; }
  .level { grid-template-columns: 44px 1fr; column-gap: var(--s-4); --step: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .brand-word { font-size: 1.0625rem; }
  .brand { gap: 8px; }
  .btn-sm .btn-label { font-size: .875rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal, .js .stairs i { opacity: 1; transform: none; transition: none; }
  .btn, .btn-icon svg, .text-link { transition: none; }
}
