/* ====== STACK brand site — same DNA as the partner brief & defensibility memo ====== */
:root {
  --ink: #0A0A0F;
  --ink-soft: #1F1F28;
  --ink-muted: #55556A;
  --ink-faint: #9A9AAB;
  --line: #E6E6EC;
  --line-soft: #F0F0F4;
  --bg: #FFFFFF;
  --bg-tint: #FAFAFB;
  --bg-dark: #0A0A0F;
  --green: #00A86B;
  --green-deep: #00704A;
  --green-tint: #E8F7F0;
  --amber: #B8860B;
  --amber-tint: #FEF8E8;

  --display: 'DM Sans', system-ui, -apple-system, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;

  --maxw: 1120px;
  --pad: clamp(20px, 4vw, 32px);

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad);
}

/* ====== NAV ====== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand .logo { color: var(--green); }
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14.5px;
  color: var(--ink-soft);
}
.nav__links a:hover { color: var(--green-deep); }
@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
}

/* ====== BUTTONS ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 20px;
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease, color .2s ease;
}
.btn--sm { padding: 8px 14px; font-size: 13px; }
.btn--primary {
  background: var(--ink);
  color: #fff;
}
.btn--primary:hover { background: var(--green-deep); transform: translateY(-1px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); }

/* ====== HERO ====== */
.hero {
  position: relative;
  padding: clamp(60px, 9vw, 110px) 0 clamp(40px, 6vw, 70px);
  overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 0%, rgba(0,168,107,0.08), transparent 70%),
    radial-gradient(50% 40% at 0% 30%, rgba(0,168,107,0.05), transparent 70%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green-deep);
  margin: 0 0 24px;
}
.eyebrow.muted { color: var(--ink-muted); }
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(0,168,107,0.18);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(0,168,107,0.18); }
  50% { box-shadow: 0 0 0 8px rgba(0,168,107,0.05); }
}
.display {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(56px, 10vw, 120px);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0 0 28px;
  color: var(--ink);
}
.display .accent { color: var(--green); }
.lede {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 56ch;
  margin: 0 0 36px;
}
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 60px; }

/* hero visual */
.hero-visual {
  margin-top: 32px;
  padding: 28px 28px 24px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  max-width: 720px;
}
.bar-track {
  position: relative;
  height: 56px;
  background: #fff;
  border-radius: var(--r);
  border: 1px solid var(--line);
  overflow: hidden;
}
.bar-target {
  position: absolute;
  top: 6px; bottom: 6px;
  left: 50%;
  width: 14%;
  transform: translateX(-50%);
  background: var(--green-tint);
  border-left: 2px solid var(--green);
  border-right: 2px solid var(--green);
  border-radius: 6px;
}
.bar-target::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 2px;
  background: var(--green);
  transform: translateX(-50%);
}
.bar-marker {
  position: absolute;
  top: 4px; bottom: 4px;
  width: 4px;
  background: var(--ink);
  border-radius: 4px;
  left: 0;
  animation: slide 2.4s cubic-bezier(.42,0,.58,1) infinite alternate;
}
@keyframes slide {
  0% { left: 4px; }
  100% { left: calc(100% - 8px); }
}
.bar-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 13px;
  color: var(--ink-muted);
}
.bar-caption .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ====== SECTIONS ====== */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
}
.h-section {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 16px;
  color: var(--ink);
}
.sub {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-muted);
  max-width: 60ch;
  margin: 0 0 40px;
}
.muted { color: var(--ink-muted); }
.prose { font-size: 17px; color: var(--ink-soft); margin: 0 0 16px; max-width: 60ch; line-height: 1.65; }
.footnote { font-size: 13px; color: var(--ink-muted); margin-top: 28px; max-width: 70ch; }

/* ====== LADDER ====== */
.ladder { background: var(--bg-tint); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ladder-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.rung {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 18px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r);
  min-height: 130px;
  position: relative;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.rung:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(10,10,15,0.06);
  border-color: var(--green);
}
.rung .lvl {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-faint);
  letter-spacing: 0.1em;
}
.rung .amt {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(18px, 2vw, 24px);
  color: var(--ink);
  letter-spacing: -0.02em;
  margin: 14px 0 4px;
}
.rung .lbl { font-size: 12px; color: var(--ink-muted); }
.rung--top { background: var(--ink); border-color: var(--ink); }
.rung--top .lvl { color: var(--green); }
.rung--top .amt { color: #fff; }
.rung--top .lbl { color: rgba(255,255,255,0.65); }
@media (max-width: 900px) { .ladder-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .ladder-grid { grid-template-columns: 1fr; } }

/* ====== HOW (3-card) ====== */
.cards-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 16px;
}
.card {
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--green); transform: translateY(-2px); }
.card__num {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 700;
  color: var(--green);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}
.card h3 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
  color: var(--ink);
}
.card p { color: var(--ink-soft); font-size: 15.5px; margin: 0; }
@media (max-width: 800px) { .cards-3 { grid-template-columns: 1fr; } }

/* ====== WHY ====== */
.why { background: var(--ink); color: #fff; }
.why .h-section { color: #fff; }
.why .eyebrow.muted { color: rgba(255,255,255,0.55); }
.why .prose { color: rgba(255,255,255,0.78); }
.why .prose strong { color: #fff; }
.two-col {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; gap: 40px; } }
.why-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.stat {
  padding: 28px 22px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r);
}
.stat__num {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: -0.025em;
  color: #fff;
  margin-bottom: 6px;
}
.stat__lbl { font-size: 13px; color: rgba(255,255,255,0.6); line-height: 1.4; }
.stat--accent { background: rgba(0,168,107,0.14); border-color: rgba(0,168,107,0.4); }
.stat--accent .stat__num { color: var(--green); }

/* ====== LEGAL TRUST ====== */
.cards-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 16px;
}
.trust {
  padding: 24px 22px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.trust h4 {
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  margin: 0 0 8px;
  color: var(--green-deep);
}
.trust p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }
@media (max-width: 900px) { .cards-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .cards-4 { grid-template-columns: 1fr; } }

/* ====== WAITLIST ====== */
.waitlist {
  background: var(--bg-tint);
  border-top: 1px solid var(--line);
}
.waitlist__inner { max-width: 640px; }
.waitlist-form {
  display: grid;
  grid-template-columns: 1fr 200px auto;
  gap: 10px;
  margin-top: 24px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field span {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-muted);
}
.field input, .field select {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  font-family: var(--body);
  font-size: 15px;
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(0,168,107,0.12);
}
.waitlist-form .btn { align-self: end; }
.success {
  margin-top: 14px;
  padding: 12px 16px;
  background: var(--green-tint);
  color: var(--green-deep);
  border-radius: var(--r);
  font-size: 14px;
  font-weight: 500;
}
.micro { margin-top: 18px; font-size: 12px; color: var(--ink-muted); line-height: 1.55; }
@media (max-width: 700px) {
  .waitlist-form { grid-template-columns: 1fr; }
  .waitlist-form .btn { width: 100%; }
}

/* ====== FOOTER ====== */
.footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 32px;
}
.footer .brand, .footer__brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-family: var(--display);
  font-weight: 700;
}
.footer__brand .logo { color: var(--green); }
.footer__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 32px 0 36px;
}
.footer__cols h5 {
  font-family: var(--display);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #fff;
  margin: 0 0 12px;
}
.footer__cols a {
  display: block;
  font-size: 14px;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.6);
}
.footer__cols a:hover { color: var(--green); }
.footer__legal {
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  line-height: 1.6;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  max-width: 90ch;
}
@media (max-width: 700px) { .footer__cols { grid-template-columns: 1fr 1fr; } }
