/* ─────────────────────────────────────────────────────────────
   NOWNEXT — Design System foundation
   Three-family quadruplet palette (10 / 20 / 40 / 100)
   Active accent rotates via --current-color-* on each section.
   ───────────────────────────────────────────────────────────── */

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;700&display=swap");

:root {
  /* Neutral ink / paper */
  --paper: #f4f1ec;
  --paper-2: #ebe6dc;
  --ink: #0e0a1f;
  --ink-2: #221b3f;
  --line: rgba(14, 10, 31, 0.12);
  --line-strong: rgba(14, 10, 31, 0.24);

  /* Three palette slots (each: 10 tint / 20 wash / 40 vivid / 100 deep) */
  /* DEFAULT: Compass — Cyan / Indigo / Coral — derived from NowNext logo */
  --p1-10: #d6f7ff; --p1-20: #a8ecff; --p1-40: #5cd6f5; --p1-100: #0d2a40;
  --p2-10: #e4e0fa; --p2-20: #c8c2ee; --p2-40: #7b6cff; --p2-100: #15102e;
  --p3-10: #ffe6dc; --p3-20: #ffc5a8; --p3-40: #ff7a4d; --p3-100: #3a1408;

  /* Legacy aliases (used by header wordmark + footer accent) */
  --brand-accent: var(--p1-40);
  --brand-deep:   var(--p2-100);

  /* Active accent — sections override these */
  --current-color-10:  var(--p1-10);
  --current-color-20:  var(--p1-20);
  --current-color-40:  var(--p1-40);
  --current-color-100: var(--p1-100);

  /* Type */
  --font-display: "Space Grotesk", "Inter", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", ui-monospace, monospace;
  --tracking-tight: -0.04em;
  --tracking-mono: 0.02em;

  /* Spacing scale (8pt with half steps) */
  --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;
  --s-10: 144px;

  /* Radius */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;

  /* Motion */
  --ease-base: cubic-bezier(0.59, 0.06, 0.1, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-color: 0.45s;
  --dur-fast: 0.18s;
  --dur-base: 0.32s;
  --dur-slow: 0.6s;

  /* Elevation */
  --shadow-1: 0 1px 0 rgba(14, 10, 31, 0.04), 0 1px 2px rgba(14, 10, 31, 0.06);
  --shadow-2: 0 2px 4px rgba(14, 10, 31, 0.06), 0 12px 28px rgba(14, 10, 31, 0.12);
  --shadow-3: 0 24px 60px rgba(14, 10, 31, 0.2);

  --max-w: 1440px;
  --gutter: clamp(20px, 4vw, 64px);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-display);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
}
img, svg { display: block; max-width: 100%; }
button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Type scale */
.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--current-color-100);
}
.t-display {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(72px, 11vw, 184px);
  line-height: 0.88;
  letter-spacing: var(--tracking-tight);
  font-style: italic;
}
.t-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(48px, 6.5vw, 96px);
  line-height: 0.92;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
.t-h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin: 0;
}
.t-h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}
.t-body {
  font-size: 17px;
  line-height: 1.5;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.t-body-lg {
  font-size: clamp(20px, 1.6vw, 24px);
  line-height: 1.4;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.t-cap {
  font-size: 13px;
  line-height: 1.4;
  color: rgba(14, 10, 31, 0.6);
}
.t-mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}

/* Layout */
.shell {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.section {
  position: relative;
  padding: var(--s-9) 0;
  background: var(--current-color-10);
  color: var(--current-color-100);
  transition:
    background var(--dur-color) var(--ease-base),
    color var(--dur-color) var(--ease-base);
}
.section--fill20 { background: var(--current-color-20); }
.section--fill40 { background: var(--current-color-40); }
.section--invert {
  background: var(--current-color-100);
  color: var(--current-color-10);
}
.section--paper { background: var(--paper); color: var(--ink); }
.section + .section { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}
.section__num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.72;
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
}
.section__num::after {
  content: "";
  display: block;
  flex: 1;
  border-top: 1px dashed currentColor;
  opacity: 0.4;
  transform: translateY(-3px);
}
.section__title { letter-spacing: var(--tracking-tight); }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 84%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-4) var(--gutter);
  max-width: var(--max-w);
  margin: 0 auto;
}
.site-header__brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}
.site-header__logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--brand-deep);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.site-header__logo img { width: 30px; height: 30px; }
.site-header__wordmark {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  letter-spacing: var(--tracking-tight);
  font-size: 18px;
}
.site-header__wordmark span { color: var(--brand-accent); }
.site-nav { display: flex; gap: var(--s-5); }
.site-nav a {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.7;
  transition: opacity var(--dur-fast) ease;
}
.site-nav a:hover { opacity: 1; }
.site-nav a.is-active { opacity: 1; position: relative; color: var(--current-color-100); }
.site-nav a.is-active::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -7px;
  height: 2px;
  background: var(--brand-accent);
  border-radius: 2px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
  padding: 14px 22px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  font-weight: 500;
  background: var(--current-color-100);
  color: var(--current-color-10);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-color) var(--ease-base),
              color var(--dur-color) var(--ease-base),
              box-shadow var(--dur-base) var(--ease-out);
  box-shadow: var(--shadow-1);
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-2); }
.btn--ghost {
  background: transparent;
  color: var(--current-color-100);
  box-shadow: inset 0 0 0 1px var(--current-color-100);
}
.btn--accent {
  background: var(--current-color-40);
  color: var(--current-color-100);
}
.btn--paper {
  background: var(--paper);
  color: var(--ink);
}
.btn__arrow {
  display: inline-flex;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--current-color-40);
  color: var(--current-color-100);
  align-items: center;
  justify-content: center;
}

/* Hexagon button — Shelby-style primary CTA */
.hex {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 168px;
  height: 192px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  font-weight: 600;
  color: var(--current-color-10);
  background: transparent;
  border: 0;
  transition: transform var(--dur-fast) var(--ease-out);
}
.hex:hover { transform: scale(1.04) rotate(-2deg); }
.hex__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hex__bg svg { width: 100%; height: 100%; }
.hex__bg path { fill: var(--current-color-100); transition: fill var(--dur-color) var(--ease-base); }
.hex span {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.hex em {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: var(--tracking-tight);
  text-transform: none;
}

/* Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.7;
}
.input,
.textarea,
.select {
  width: 100%;
  padding: 14px 18px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-3);
  font-family: var(--font-display);
  font-size: 16px;
  transition: border-color var(--dur-fast) ease, box-shadow var(--dur-fast) ease;
}
.input:focus,
.textarea:focus,
.select:focus {
  outline: none;
  border-color: var(--current-color-100);
  box-shadow: 0 0 0 4px var(--current-color-20);
}
.textarea { min-height: 96px; resize: vertical; }
.checkbox {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14px;
}
.checkbox input { appearance: none; -webkit-appearance: none;
  width: 18px; height: 18px; border-radius: 4px;
  border: 1.5px solid currentColor; background: transparent;
  display: grid; place-items: center; cursor: pointer;
}
.checkbox input:checked { background: currentColor; }
.checkbox input:checked::after {
  content: ""; width: 8px; height: 8px;
  background: var(--current-color-10);
  border-radius: 1px;
}

/* Chip / badge */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  background: var(--current-color-100);
  color: var(--current-color-10);
}
.chip--outline {
  background: transparent;
  color: var(--current-color-100);
  box-shadow: inset 0 0 0 1px var(--current-color-100);
}
.chip--soft {
  background: var(--current-color-20);
  color: var(--current-color-100);
}
.chip__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--current-color-40);
}

/* Card */
.card {
  background: var(--paper);
  color: var(--ink);
  border-radius: var(--r-4);
  padding: var(--s-6);
  box-shadow: var(--shadow-1);
  border: 1px solid var(--line);
  transition: transform var(--dur-base) var(--ease-out), box-shadow var(--dur-base) var(--ease-out);
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.card--bare { background: transparent; box-shadow: none; border: 1px solid var(--line); }
.card--ink {
  background: var(--current-color-100);
  color: var(--current-color-10);
  border: 0;
}

/* Color swatch (palette display) */
.swatch {
  border-radius: var(--r-3);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 156px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.swatch__hd { display: flex; justify-content: space-between; opacity: 0.78; }
.swatch__hex { font-weight: 500; }
.swatch__name { font-family: var(--font-display); font-style: italic; font-size: 20px; letter-spacing: var(--tracking-tight); text-transform: none; }

/* Marquee */
.marquee {
  overflow: hidden;
  border-block: 1px solid var(--line);
  background: var(--current-color-20);
  color: var(--current-color-100);
}
.marquee__track {
  display: inline-flex;
  gap: 64px;
  padding-block: 22px;
  white-space: nowrap;
  animation: marquee 48s linear infinite;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(36px, 5vw, 80px);
  letter-spacing: var(--tracking-tight);
}
.marquee__track span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__dot { width: 18px; height: 18px; border-radius: 50%; background: var(--current-color-40); display: inline-block; }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Tokens grid */
.tokens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--s-4);
}
.token-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.token-card__demo {
  height: 80px;
  border-radius: var(--r-2);
  background: var(--current-color-20);
  display: grid; place-items: center;
  color: var(--current-color-100);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
}
.token-card__name { font-family: var(--font-display); font-weight: 500; font-size: 18px; letter-spacing: -0.02em; }
.token-card__val { font-family: var(--font-mono); font-size: 11px; opacity: 0.7; letter-spacing: var(--tracking-mono); text-transform: uppercase; }

/* Footer */
.site-footer {
  background: var(--brand-deep);
  color: var(--p2-10);
  padding: var(--s-9) 0 var(--s-6);
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s-7);
  margin-bottom: var(--s-9);
}
.site-footer__col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  margin: 0 0 var(--s-4);
  opacity: 0.65;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.site-footer__col a { font-size: 15px; }
.site-footer__bottom {
  display: flex; justify-content: space-between; align-items: end;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.7;
}
.site-footer__big {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: clamp(80px, 18vw, 280px);
  line-height: 0.85;
  letter-spacing: var(--tracking-tight);
  margin: var(--s-6) 0 var(--s-7);
}
.site-footer__big span { color: var(--brand-accent); }

/* Misc utility */
.row { display: flex; }
.row-gap-2 { gap: var(--s-3); }
.row-gap-3 { gap: var(--s-4); }
.row-gap-5 { gap: var(--s-5); }
.col { display: flex; flex-direction: column; }
.col-gap-2 { gap: var(--s-3); }
.col-gap-3 { gap: var(--s-4); }
.col-gap-5 { gap: var(--s-5); }
.wrap { flex-wrap: wrap; }
.center { align-items: center; justify-content: center; }
.between { justify-content: space-between; }
.grow { flex: 1; }

@media (max-width: 900px) {
  .section__head { grid-template-columns: 1fr; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
  .site-nav { display: none; }
}

/* ─────────────────────────────────────────────
   Adoption Console — responsive rules
   ───────────────────────────────────────────── */
@media (max-width: 1200px) {
  .console-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
@media (max-width: 1080px) {
  .console-body { grid-template-columns: 1fr !important; }
  .console-body > aside {
    border-right: 0 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
}
@media (max-width: 760px) {
  /* Collapse table to 3 visible columns: name, stage, health */
  .init-row {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, .8fr) !important;
  }
  .init-row > :nth-child(3),
  .init-row > :nth-child(4),
  .init-row > :nth-child(5) {
    display: none;
  }
}

/* ─────────────────────────────────────────────
   Landing-page specific patterns
   ───────────────────────────────────────────── */

/* Quote block */
.quote {
  position: relative;
  padding: var(--s-7) var(--s-6) var(--s-7) var(--s-8);
  background: var(--current-color-100);
  color: var(--current-color-10);
  border-radius: var(--r-4);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 32px);
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.quote::before {
  content: "“";
  position: absolute;
  top: 22px; left: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 96px;
  line-height: 0.7;
  color: var(--current-color-40);
}
.quote__cite {
  display: block;
  margin-top: var(--s-5);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.7;
  font-weight: 400;
}

/* Cross-list (Don't / Do) */
.crosslist {
  display: grid;
  gap: var(--s-3);
}
.crosslist__item {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
}
.crosslist__icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 14px;
  background: var(--p3-40);
  color: var(--p3-100);
}
.crosslist__icon--yes { background: var(--p1-40); color: var(--p1-100); }
.crosslist__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.crosslist__body {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.45;
  opacity: 0.78;
}

/* Big number stat */
.stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-6) 0;
  border-top: 1px solid currentColor;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: clamp(56px, 7vw, 96px);
  line-height: 0.9;
  letter-spacing: var(--tracking-tight);
  color: var(--current-color-100);
}
.stat__label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.7;
}

/* Layer card (the 3 product layers) */
.layer {
  position: relative;
  background: var(--current-color-10);
  color: var(--current-color-100);
  border-radius: var(--r-4);
  padding: var(--s-7);
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-6);
  border: 1px solid var(--current-color-40);
  overflow: hidden;
}
.layer__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 72px;
  line-height: 0.85;
  letter-spacing: var(--tracking-tight);
  color: var(--current-color-40);
}
.layer__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1;
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--s-3);
}
.layer__lede {
  font-size: 18px;
  line-height: 1.5;
  margin: 0 0 var(--s-5);
  opacity: 0.85;
  max-width: 640px;
}
.layer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-3) var(--s-5);
}
.layer__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  padding-top: 4px;
}
.layer__list li::before {
  content: "";
  display: block;
  width: 10px; height: 10px;
  margin-top: 6px;
  background: var(--current-color-40);
  border-radius: 2px;
  transform: rotate(45deg);
}

/* Pricing */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--s-4);
}
.tier {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-4);
  padding: var(--s-6);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  position: relative;
}
.tier--featured {
  background: var(--p2-100);
  color: var(--p1-10);
  border: 0;
  transform: translateY(-12px);
  box-shadow: var(--shadow-3);
}
.tier__tag {
  position: absolute;
  top: -12px; left: var(--s-5);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  background: var(--p1-40);
  color: var(--p1-100);
  padding: 5px 12px;
  border-radius: 999px;
}
.tier__name {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.tier__for {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.65;
}
.tier__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: var(--s-2) 0;
}
.tier__price strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 56px;
  letter-spacing: var(--tracking-tight);
  line-height: 1;
}
.tier__price span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.65;
}
.tier__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  line-height: 1.45;
  flex: 1;
}
.tier__list li {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
}
.tier__list li::before {
  content: "→";
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--current-color-40);
  opacity: 0.9;
  margin-top: 4px;
}
.tier--featured .tier__list li::before { color: var(--p1-40); }
@media (max-width: 1000px) { .pricing { grid-template-columns: 1fr; } .tier--featured { transform: none; } }

/* Tier note (sprint model) */
.tier__note {
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.6;
  margin: 0;
  padding-top: var(--s-3);
  border-top: 1px dashed currentColor;
}

/* Sprint → retainer rail */
.sprint-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.sprint-rail__node {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  padding: 7px 14px;
  border-radius: var(--r-pill);
  background: var(--current-color-100);
  color: var(--current-color-10);
}
.sprint-rail__node:first-child { background: var(--current-color-40); color: var(--current-color-100); }
.sprint-rail__arrow {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--current-color-40);
}

/* Timeline / 90-day */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--s-4);
  counter-reset: tline;
}
.timeline__item {
  position: relative;
  padding: var(--s-6) var(--s-5);
  background: var(--current-color-10);
  border: 1px solid var(--current-color-40);
  border-radius: var(--r-3);
  display: flex; flex-direction: column; gap: var(--s-3);
  min-height: 260px;
}
.timeline__when {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--current-color-40);
}
.timeline__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.timeline__body {
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.85;
}
.timeline__step {
  position: absolute;
  top: var(--s-5); right: var(--s-5);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.5;
}
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .timeline { grid-template-columns: 1fr; } .timeline__item { min-height: 0; } }

/* FAQ */
.faq {
  display: flex; flex-direction: column;
  border-top: 1px solid var(--line);
}
.faq details {
  border-bottom: 1px solid var(--line);
  padding: var(--s-5) 0;
}
.faq summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-5);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 1.8vw, 26px);
  letter-spacing: -0.02em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 28px;
  line-height: 1;
  transition: transform var(--dur-base) var(--ease-out);
}
.faq details[open] summary::after {
  transform: rotate(45deg);
}
.faq__body {
  max-width: 720px;
  margin-top: var(--s-3);
  font-size: 16px;
  line-height: 1.55;
  opacity: 0.78;
}

/* Two-up CTA */
.two-up {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}
.two-up__card {
  background: var(--current-color-10);
  border: 1px solid var(--current-color-40);
  border-radius: var(--r-4);
  padding: var(--s-7);
  display: flex; flex-direction: column;
  gap: var(--s-4);
}
.two-up__card--invert {
  background: var(--current-color-100);
  color: var(--current-color-10);
}
.two-up__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--current-color-40);
}
.two-up__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(32px, 3.4vw, 48px);
  letter-spacing: var(--tracking-tight);
  line-height: 1;
  margin: 0;
}
@media (max-width: 800px) { .two-up { grid-template-columns: 1fr; } }

/* Force / pressure cards (Why now) */
.force {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--s-5);
  padding: var(--s-6) 0;
  border-top: 1px solid var(--line);
}
.force__tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--current-color-40);
}
.force__name {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 40px);
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0;
}
.force__body {
  margin-top: var(--s-3);
  max-width: 760px;
  font-size: 17px;
  line-height: 1.55;
  opacity: 0.82;
}
@media (max-width: 760px) { .force { grid-template-columns: 1fr; gap: var(--s-3); } }

/* Anchor offset for sticky header */
section[id] { scroll-margin-top: 90px; }

/* ─────────────────────────────────────────────
   Accent helpers — assign which palette slot a section uses
   ───────────────────────────────────────────── */
.accent--p1 {
  --current-color-10: var(--p1-10);
  --current-color-20: var(--p1-20);
  --current-color-40: var(--p1-40);
  --current-color-100: var(--p1-100);
}
.accent--p2 {
  --current-color-10: var(--p2-10);
  --current-color-20: var(--p2-20);
  --current-color-40: var(--p2-40);
  --current-color-100: var(--p2-100);
}
.accent--p3 {
  --current-color-10: var(--p3-10);
  --current-color-20: var(--p3-20);
  --current-color-40: var(--p3-40);
  --current-color-100: var(--p3-100);
}

/* ─────────────────────────────────────────────
   Palette presets — Tweaks swap [data-palette] on <html>
   ───────────────────────────────────────────── */
html[data-palette="voltage"] {
  --p1-10: #efffd6; --p1-20: #d6ff8a; --p1-40: #aef044; --p1-100: #18260a;
  --p2-10: #f1e6ff; --p2-20: #d9b3ff; --p2-40: #a55cff; --p2-100: #1a0f33;
  --p3-10: #ffe1f1; --p3-20: #ffb5da; --p3-40: #ff5fa8; --p3-100: #2e0a1c;
  --brand-accent: var(--p1-40);
  --brand-deep:   var(--p2-100);
  --paper: #f6f4ee;
}

html[data-palette="strata"] {
  --p1-10: #e8eef4; --p1-20: #c8d4e0; --p1-40: #6e89a8; --p1-100: #11202e;
  --p2-10: #ecebe6; --p2-20: #d2cfc4; --p2-40: #6b6961; --p2-100: #1a1916;
  --p3-10: #fbeed2; --p3-20: #f4d792; --p3-40: #d99a3a; --p3-100: #3a2510;
  --brand-accent: var(--p3-40);
  --brand-deep:   var(--p1-100);
  --paper: #f0ece4;
}

/* ─────────────────────────────────────────────
   Text-only logotype — raster lockup removed site-wide
   ───────────────────────────────────────────── */
.site-header__logo { display: none !important; }
.site-header__brand { gap: 0; }
.site-header__wordmark {
  font-size: 21px;
  position: relative;
  padding-left: 16px;
}
/* a tiny geometric tick rendered in pure CSS — part of the type lockup, not an image */
.site-header__wordmark::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%) rotate(45deg);
  background: var(--brand-accent);
  border-radius: 1px;
}

/* ─────────────────────────────────────────────
   Fluid navigation — smooth anchor scrolling site-wide
   ───────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ─────────────────────────────────────────────
   Futuristic 3D motion — composes with parallax --py translate
   ───────────────────────────────────────────── */
@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --tilt { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

@keyframes spin3d  { to { --spin: 360deg; } }
@keyframes tumble3d {
  0%   { --spin: 0deg;   --tilt: 0deg; }
  50%  { --tilt: 38deg; }
  100% { --spin: 360deg; --tilt: 0deg; }
}

/* On parallax layers: keep --py translate, add 3D rotation */
.layer.spin   { transform: translate3d(0, var(--py, 0px), 0) rotateX(14deg) rotateY(var(--spin)); animation: spin3d 24s linear infinite; }
.layer.spin-r { transform: translate3d(0, var(--py, 0px), 0) rotateX(-12deg) rotateY(var(--spin)); animation: spin3d 34s linear infinite reverse; }
.layer.tumble { transform: translate3d(0, var(--py, 0px), 0) rotateX(var(--tilt)) rotateY(var(--spin)); animation: tumble3d 28s ease-in-out infinite; }

/* Standalone futuristic hex field (product-page heroes) */
.fx-field { position: absolute; inset: 0; overflow: hidden; pointer-events: none; perspective: 1300px; z-index: 0; }
.fx-hex { position: absolute; }
.fx-hex svg { width: 100%; height: 100%; display: block; }
.fx-hex svg path { fill: none; stroke: currentColor; stroke-width: 1.1; }
.fx-hex.solid svg path { fill: currentColor; stroke: none; }
.fx-spin   { animation: spin3d 26s linear infinite; transform: rotateX(16deg) rotateY(var(--spin)); transform-style: preserve-3d; }
.fx-spin.rev { animation-duration: 38s; animation-direction: reverse; }
.fx-tumble { animation: tumble3d 30s ease-in-out infinite; transform: rotateX(var(--tilt)) rotateY(var(--spin)); }

@media (prefers-reduced-motion: reduce) {
  .layer.spin, .layer.spin-r, .layer.tumble,
  .fx-spin, .fx-tumble { animation: none; }
  .marquee__track { animation: none; }
}

/* ─────────────────────────────────────────────
   Cookie consent — site-wide banner (built by site.js)
   Dark card regardless of page; uses brand accent (p1).
   ───────────────────────────────────────────── */
.cookie-bar {
  position: fixed;
  z-index: 200;
  left: 50%;
  bottom: clamp(12px, 2.4vw, 28px);
  transform: translateX(-50%) translateY(16px);
  width: min(calc(100vw - 28px), 1180px);
  background: var(--p2-100);
  color: var(--p1-10);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r-4);
  box-shadow: var(--shadow-3);
  padding: var(--s-6) var(--s-7);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--s-5) var(--s-7);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out);
}
.cookie-bar[data-show] {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}
.cookie-bar__eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  color: var(--p1-40);
  margin-bottom: var(--s-3);
}
.cookie-bar__eyebrow span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--p1-40);
  flex-shrink: 0;
}
.cookie-bar__text {
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  margin: 0;
  max-width: 64ch;
}
.cookie-bar__text a {
  color: var(--p1-40);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  flex-shrink: 0;
}
.cookie-bar__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  white-space: nowrap;
  padding: 13px 24px;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-base) var(--ease-base);
}
.cookie-bar__btn--ghost {
  background: transparent;
  color: var(--p1-10);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.cookie-bar__btn--ghost:hover { background: rgba(255, 255, 255, 0.06); }
.cookie-bar__btn--accent {
  background: var(--p1-40);
  color: var(--p1-100);
}
.cookie-bar__btn--accent:hover { transform: translateY(-1px); }
.cookie-bar__btn--accent .cookie-bar__arrow { font-size: 14px; }
@media (max-width: 720px) {
  .cookie-bar {
    grid-template-columns: 1fr;
    gap: var(--s-5);
    padding: var(--s-5) var(--s-5) var(--s-6);
  }
  .cookie-bar__actions { width: 100%; }
  .cookie-bar__btn { flex: 1; justify-content: center; }
}

/* ─────────────────────────────────────────────
   Mobile navigation — hamburger + dropdown
   (overrides the earlier `.site-nav { display:none }` mobile rule)
   ───────────────────────────────────────────── */
.nav-toggle { display: none; }
/* CTA clone lives only in the mobile dropdown */
.site-nav__cta { display: none; }

/* Footer social / LinkedIn links */
.footer-social { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s-4); }
.footer-social a {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--tracking-mono);
  text-transform: uppercase;
  opacity: 0.7;
  transition: opacity var(--dur-fast) ease;
}
.footer-social a:hover { opacity: 1; }

/* Selected work / proof strip */
.proof { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
@media (max-width: 860px) { .proof { grid-template-columns: 1fr; } }
.proof-card {
  padding: var(--s-7);
  border-radius: var(--r-4);
  background: var(--current-color-10);
  border: 1px solid var(--current-color-40);
  display: flex; flex-direction: column; gap: 6px;
}
.proof-card__stat {
  font-family: var(--font-display); font-weight: 600; font-style: italic;
  font-size: clamp(48px, 6vw, 84px); line-height: 0.9; letter-spacing: var(--tracking-tight);
  color: var(--current-color-100);
}
.proof-card__label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; opacity: 0.7;
}
.proof-card__title {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(20px, 2vw, 26px); letter-spacing: -0.02em; line-height: 1.12;
  margin: var(--s-4) 0 0;
}
.proof-card__body { font-size: 15px; line-height: 1.55; opacity: 0.82; margin: var(--s-2) 0 0; }
.proof-card__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: var(--tracking-mono);
  text-transform: uppercase; opacity: 0.62;
  margin-top: var(--s-4); padding-top: var(--s-4);
  border-top: 1px dashed var(--current-color-40);
}

@media (max-width: 900px) {
  /* header keeps brand (left) + hamburger (right); CTA folds into the menu */
  .site-header__inner > .btn--accent { display: none; }

  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 46px; height: 46px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    flex-shrink: 0;
  }
  .nav-toggle span {
    display: block;
    width: 18px; height: 2px;
    background: currentColor;
    border-radius: 2px;
    transition: transform 0.24s var(--ease-out), opacity 0.15s ease;
  }
  .site-header[data-nav-open] .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .site-header[data-nav-open] .nav-toggle span:nth-child(2) { opacity: 0; }
  .site-header[data-nav-open] .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Dropdown panel */
  .site-nav {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: color-mix(in srgb, var(--paper) 97%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-2);
    padding: var(--s-2) var(--gutter) var(--s-5);
    opacity: 0;
    transform: translateY(-10px);
    pointer-events: none;
    transition: opacity 0.24s var(--ease-out), transform 0.24s var(--ease-out);
  }
  .site-header[data-nav-open] .site-nav {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
  .site-nav a {
    padding: 17px 2px;
    font-size: 14px;
    opacity: 0.9;
    border-bottom: 1px solid var(--line);
  }
  .site-nav a.is-active { opacity: 1; color: var(--ink); }
  .site-nav a.is-active::after { display: none; }
  .site-nav__cta {
    display: inline-flex;
    margin-top: var(--s-4);
    justify-content: center;
    padding: 16px 22px;
  }
}

/* ─────────────────────────────────────────────
   Mobile tuning — hero fit, type scale & rhythm
   The hero headlines use large clamp() minimums with forced
   <br> breaks; on phones we let them wrap and scale down so a
   long line can't overrun and get clipped by overflow:hidden.
   overflow-x: clip is a safety net against any decorative bleed
   (it does NOT break the sticky header, unlike overflow:hidden).
   ───────────────────────────────────────────── */
html, body { overflow-x: clip; }

@media (max-width: 600px) {
  .section { padding: var(--s-8) 0; }
  .section__head { margin-bottom: var(--s-6); gap: var(--s-4); }

  /* Hero / display headlines — shrink mins and wrap forced breaks */
  .t-display { font-size: clamp(40px, 13vw, 60px) !important; line-height: 0.94; }
  .t-h1 { font-size: clamp(34px, 9.5vw, 48px) !important; }
  .hero { min-height: auto !important; padding: calc(var(--s-8) + 44px) 0 var(--s-8) !important; }
  .hero h1 { font-size: clamp(38px, 12vw, 60px) !important; line-height: 0.94; }
  .hero__foot { margin-top: var(--s-6) !important; }
  .hero h1 br, h1.t-display br, h1.t-h1 br { display: none; }

  /* Let inline min-width flex items shrink on very narrow phones */
  .row.wrap > [style*="min-width"] { min-width: 0 !important; }
}
