@import url('https://fonts.googleapis.com/css2?family=Stardos+Stencil:wght@700&display=swap');

/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --bg:         #08080e;
  --bg-2:       #0e0e1a;
  --bg-3:       #141424;
  --border:     #1e1e30;
  --border-2:   #2a2a42;
  --text:       #f4f4fb;
  --text-2:     #b8b8d4;
  --text-3:     #8e8ea8;
  --accent:     #7c3aed;
  --accent-mid: #a78bfa;
  --accent-dim: rgba(124, 58, 237, 0.12);
  --green:      #22c55e;
  --amber:      #f59e0b;
  --red:        #ef4444;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', 'Consolas', monospace;
  --max:        1100px;
  --ease:       cubic-bezier(0.16, 1, 0.3, 1);

  /* ── Fluid spacing scale ──────────────────────────────────────
     Scale smoothly with viewport width (no breakpoint jumps).
     Breakpoints below are reserved for LAYOUT reflow only. */
  --edge:    clamp(1.5rem, 1rem + 2.5vw, 2.5rem);  /* page side gutter: 24px → 40px */
  --bay:     clamp(5rem,  3rem + 6vw, 7.5rem);     /* major section rhythm: 80px → 120px */
  --bay-md:  clamp(4rem,  2.5rem + 5vw, 6.25rem);  /* medium rhythm: 64px → 100px */
  --bay-sm:  clamp(3.5rem, 2rem + 4vw, 5rem);      /* minor rhythm: 56px → 80px */
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 17px; } /* ~6% larger base — scales all rem text up */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* Skip-to-content link — visually hidden until keyboard-focused */
.skip-link {
  position: absolute;
  left: 50%;
  top: 8px;
  transform: translateX(-50%) translateY(-200%);
  z-index: 500;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus { transform: translateX(-50%) translateY(0); outline: 2px solid #fff; outline-offset: 2px; }

/* ── Entrance animations ──────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }
.reveal-delay-4 { transition-delay: 0.32s; }
.reveal-delay-5 { transition-delay: 0.40s; }
.reveal-delay-6 { transition-delay: 0.48s; }

/* ── Header ───────────────────────────────────────────────────── */
header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0 var(--edge);
  height: 62px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 40px;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
header.scrolled {
  background: rgba(8, 8, 14, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-color: var(--border);
}
.h-logo {
  display: flex;
  align-items: center;
  gap: 0;
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}
.logo-d {
  font-family: 'Stardos Stencil', serif;
  font-weight: 700;
  font-size: 1.4em;
  line-height: 1;
  color: var(--accent);
}
.h-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.h-nav a {
  font-size: 0.9375rem;
  color: var(--text-2);
  padding: 5px 12px;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}
.h-nav a:hover  { color: var(--text); background: rgba(255,255,255,0.04); }
.h-nav a.active { color: var(--text);   background: rgba(255,255,255,0.06); }
.h-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.h-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 18px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 85%, transparent);
  color: #fff;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
  border: 1px solid rgba(167, 139, 250, 0.25);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.h-cta:hover { background: var(--accent); border-color: rgba(167, 139, 250, 0.5); }

/* Mobile nav toggle (hamburger) — revealed only at the header breakpoint */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-burger {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-right: -8px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.25s var(--ease), opacity 0.2s;
}
/* CTA that lives inside the mobile dropdown — hidden on desktop */
.h-nav-cta { display: none; }

/* ── Hero ─────────────────────────────────────────────────────── */
.s-hero {
  min-height: 100svh;
  max-width: calc(var(--max) + 80px); /* same content column as every other section */
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* 62px = fixed header height; +1.5rem gap sits the eyebrow just under the nav */
  padding: calc(62px + 1.5rem) var(--edge) var(--bay-sm);
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse at center,
    rgba(124, 58, 237, 0.22) 0%,
    rgba(124, 58, 237, 0.06) 45%,
    transparent 70%);
  animation: breathe 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes breathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(0.95); }
  50%       { opacity: 1;   transform: translateX(-50%) scale(1.05); }
}
.hero-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  animation: pulse-dot 2s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 4px var(--green); }
  50%       { box-shadow: 0 0 12px var(--green); }
}
.s-hero h1 {
  font-size: clamp(3.25rem, 8vw, 7.5rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.04em;
  background: linear-gradient(150deg, #ffffff 25%, var(--accent-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  max-width: none;
  margin-bottom: 48px;
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
.hh-left  { align-self: flex-start; text-align: left; }
.hh-right { align-self: flex-start; text-align: left; }
.hero-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 20px;
  max-width: var(--max);
}
.hero-sub {
  font-size: clamp(15px, 0.7rem + 0.45vw, 1.1875rem); /* 15px → ~20px */
  color: var(--text-2);
  line-height: 1.75;
  max-width: 75%; /* two-thirds of the content column */
}
.hero-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--text-3);
  flex-shrink: 0;
  margin-top: auto;        /* pin to the bottom of the hero */
  align-self: flex-end;    /* keep it on the right, as before */
  padding-right: 150px;      /* sit a quarter of the way in from the right */
}
.scroll-line {
  width: 32px;
  height: 1px;
  background: var(--text-3);
}

/* ── Stats band ───────────────────────────────────────────────── */
.s-stats {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  max-width: calc(var(--max) + 80px); /* same content column as every other section */
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat-item {
  /* fluid padding: ~40px gutter at full width, shrinks toward 8px so all 4 fit on narrow screens */
  padding: clamp(20px, 4vw, 36px) clamp(8px, calc(4vw - 7px), 40px);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.stat-item:last-child { border-right: none; }
.stat-val {
  font-family: var(--mono);
  font-size: clamp(0.7rem, 2.4vw, 1.75rem); /* shrink on narrow screens so all 4 stay one row */
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1;
  white-space: nowrap; /* never wrap to a second line */
}
.stat-label {
  font-size: clamp(0.65rem, 1.5vw, 0.8125rem);
  color: var(--text-3);
  line-height: 1.4;
}

/* ── Homepage: left-align content instead of centering ────────────
   Keeps the same 1100px column + left gutter, but flush to the left. */
body.home .s-hero { margin-inline: 0; max-width: none; } /* fill the full viewport width like the stats band */
body.home .hero-bottom { max-width: calc(var(--max) + 80px); margin-inline: 0; } /* flush left, aligned with the headline */
body.home .s-stats { margin-inline: 0; max-width: none; } /* full-width band — no empty gap on the right */

/* ── Generic section ──────────────────────────────────────────── */
.section {
  padding: var(--bay) var(--edge);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.section-sm { padding: var(--bay-sm) var(--edge); }

/* ── Chapter label ────────────────────────────────────────────── */
.ch {
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
}

/* ── Problem ──────────────────────────────────────────────────── */
.s-problem {
  background: var(--bg-2);
  padding: var(--bay) var(--edge);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.s-problem .inner { max-width: var(--max); margin: 0 auto; }
.s-problem h2 {
  font-size: clamp(2rem, 4.5vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: 40px;
  max-width: none;
}
.problem-aside {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  max-width: none;
}
.pa-item {
  padding: 28px 30px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-3);
}
.pa-item h4 { font-size: 0.875rem; font-weight: 600; margin-bottom: 8px; }
.pa-item p  { font-size: 0.8375rem; color: var(--text-2); line-height: 1.6; }

/* ── Platform intro ───────────────────────────────────────────── */
.s-intro {
  padding: var(--bay) var(--edge);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-headline {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 20px;
}
.intro-headline em {
  font-style: normal;
  color: var(--accent-mid);
}
.intro-body { font-size: 1rem; color: var(--text-2); line-height: 1.8; }
.intro-right { display: flex; flex-direction: column; gap: 24px; }
.intro-feature {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-2);
  transition: border-color 0.2s;
}
.intro-feature h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 6px; }
.intro-feature p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

/* ── Steps ────────────────────────────────────────────────────── */
.s-steps {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--bay) var(--edge);
}
.s-steps .inner { max-width: var(--max); margin: 0 auto; }
.steps-list { display: flex; flex-direction: column; }
.step-row {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}
.step-row:first-child { padding-top: 0; }
.step-row:last-child { border-bottom: none; }
.step-body { max-width: 75%; } /* blurbs at three-quarters width; heading capped below */
.step-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-mid);
  background: var(--accent-dim);
  border: 1px solid rgba(167, 139, 250, 0.2);
  padding: 3px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 14px;
}
.step-body h3 {
  font-size: 1.375rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
  line-height: 1.3;
  max-width: 680px; /* keep the headline at normal width */
}
.step-body p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
}

/* ── Modules ──────────────────────────────────────────────────── */
.s-modules { padding: var(--bay) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.modules-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-bottom: 56px;
  gap: 16px;
}
.modules-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 420px;
}
.modules-header p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: none;
  text-align: left;
}
.module-table { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; }
.module-row {
  display: grid;
  grid-template-columns: 160px 180px 1fr 80px;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  gap: 24px;
  transition: background 0.15s;
  cursor: default;
}
.module-row:last-child { border-bottom: none; }
.module-row-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.module-row-tag {
  font-size: 0.875rem;
  color: var(--text-2);
  font-style: italic;
}
.module-row-desc {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.6;
}
.module-row-badge {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 4px;
  text-align: center;
  white-space: nowrap;
}
.badge-live {
  color: var(--green);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.2);
}
.badge-soon {
  color: var(--accent);
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(124, 58, 237, 0.25);
}

/* ── Deployment ───────────────────────────────────────────────── */
.s-deploy {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--bay) var(--edge);
}
.s-deploy .inner { max-width: var(--max); margin: 0 auto; }
.deploy-header { margin-bottom: 64px; }
.deploy-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 12px;
}
.deploy-header p { font-size: 1rem; color: var(--text-2); max-width: 560px; line-height: 1.75; }
.deploy-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.dc {
  background: var(--bg);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.dc.featured { background: color-mix(in srgb, var(--accent) 7%, var(--bg)); }
.dc-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-3);
}
.dc.featured .dc-label { color: var(--accent-mid); }
.dc h3 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.dc p {
  font-size: 0.9rem;
  color: var(--text-2);
  line-height: 1.75;
  flex: 1;
}
.dc-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.dc-list li {
  font-size: 0.85rem;
  color: var(--text-2);
  display: flex;
  gap: 8px;
}
.dc-list li::before {
  content: '→';
  color: var(--text-3);
  font-size: 0.75rem;
  margin-top: 1px;
  flex-shrink: 0;
}
.dc-ideal {
  font-size: 0.8125rem;
  color: var(--text-3);
  border-top: 1px solid var(--border);
  padding-top: 16px;
}
.dc-ideal strong { color: var(--text-2); font-weight: 500; }

/* ── Stack ────────────────────────────────────────────────────── */
.s-stack { padding: var(--bay-sm) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.stack-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.sk-item {
  background: var(--bg);
  padding: 24px 28px;
}
.sk-item h4 {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.sk-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-mid); flex-shrink: 0; }
.sk-item p { font-size: 0.8375rem; color: var(--text-2); line-height: 1.6; }

/* ── Enterprise ───────────────────────────────────────────────── */
.s-ent { padding: var(--bay-sm) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.ent-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.en-item { background: var(--bg); padding: 24px 28px; }
.en-item h4 { font-size: 0.9rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.en-item p  { font-size: 0.8375rem; color: var(--text-2); line-height: 1.6; }

/* ── Pricing ──────────────────────────────────────────────────── */
.s-pricing {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--bay) var(--edge);
}
.s-pricing .inner { max-width: var(--max); margin: 0 auto; }

.pricing-header { margin-bottom: 56px; }
.pricing-header h1,
.pricing-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.pricing-header p {
  font-size: 1rem;
  color: var(--text-2);
  max-width: none;
  line-height: 1.75;
}

.tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 32px;
}

.tier-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 28px;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.tier-card:hover { border-color: var(--border-2); }
.tier-card-featured,
.tier-card-featured:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 10%, var(--bg-2));
}

.tier-top { display: flex; flex-direction: column; gap: 12px; }

.tier-tag {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  width: fit-content;
}
.tier-card-featured .tier-tag { color: var(--accent-mid); }

.tier-price {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.tier-plus { color: var(--text-3); font-weight: 400; }

.tier-desc { font-size: 0.875rem; color: var(--text-2); line-height: 1.65; }

.tier-features {
  display: flex;
  flex-direction: column;
  gap: 9px;
  flex: 1;
}
.tier-features li {
  font-size: 0.875rem;
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.feat-on  { color: var(--text-2); }
.feat-off { color: #5c5c74; }
.feat-on::before  { content: '✓'; color: var(--green); font-size: 0.75rem; flex-shrink: 0; }
.feat-off::before { content: '–'; color: var(--border-2); font-size: 0.875rem; flex-shrink: 0; }
.feat-mod { color: var(--text-3); font-size: 0.8125rem; }

.tier-quota {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 12px;
}
.tier-card-featured .tier-quota {
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
  border-color: rgba(167, 139, 250, 0.2);
}
.quota-label { font-size: 0.8125rem; color: var(--text-3); }
.quota-val   { font-size: 0.875rem; font-weight: 600; color: var(--text); font-family: var(--mono); }

.tier-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 9px;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-align: center;
  width: 100%;
}
/* default (non-selected) button = ghost */
.tier-cta {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
/* keyboard focus ring for the selectable tier cards */
.tier-card:focus-visible { outline: 2px solid var(--accent-mid); outline-offset: 3px; }
.tier-cta:hover { border-color: var(--text-3); color: var(--text); }
/* selected/featured card's button = solid primary */
.tier-card-featured .tier-cta {
  background: var(--accent);
  color: #fff;
  border-color: transparent;
}
.tier-card-featured .tier-cta:hover { background: var(--accent-mid); }

.pricing-footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  margin-top: 16px;
}
.pf-item {
  background: var(--bg-2);
  padding: 28px 32px;
}
.pf-item h4 { font-size: 0.9375rem; font-weight: 600; margin-bottom: 10px; letter-spacing: -0.01em; }
.pf-item p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }

/* ── Industries ───────────────────────────────────────────────── */
.s-industries {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--bay-md) var(--edge);
}
.s-industries .inner { max-width: var(--max); margin: 0 auto; }
.ind-heading {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 48px;
  max-width: 600px;
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.ind-item {
  background: var(--bg);
  padding: 24px 26px;
  transition: background 0.15s;
}
.ind-item h4 { font-size: 0.9rem; font-weight: 600; margin-bottom: 4px; }
.ind-item p  { font-size: 0.8rem; color: var(--text-3); }

/* ── Services ─────────────────────────────────────────────────── */
.s-services { padding: var(--bay-md) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.srv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.srv-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  transition: border-color 0.2s;
}
.srv-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 12px; letter-spacing: -0.01em; }
.srv-card p  { font-size: 0.875rem; color: var(--text-2); line-height: 1.7; }
.srv-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* ── Team ─────────────────────────────────────────────────────── */
.s-team {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--bay) var(--edge);
}
.s-team .inner { max-width: var(--max); margin: 0 auto; }
.team-heading {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.team-sub {
  font-size: 1rem;
  color: var(--text-2);
  margin-bottom: 56px;
  max-width: none;
  line-height: 1.7;
}
.team-grid {
  display: grid;
  /* minmax(0,…) lets tracks shrink below content min-content, so a long
     unbreakable word in a bio can't blow the track out past the viewport. */
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.tm-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.2s;
  display: flex;
  flex-direction: row;
  gap: 24px;
  align-items: center;
}
.tm-photo-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
  flex-shrink: 0;
}
.tm-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  display: block;
  filter: grayscale(100%);
}
.tm-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--accent);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.tm-card-body { flex: 1; min-width: 0; overflow-wrap: break-word; }
.tm-name  { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 3px; }
.tm-title { font-size: 0.8125rem; color: var(--accent-mid); font-weight: 500; margin-bottom: 14px; }
.tm-bio   { font-size: 0.8375rem; color: var(--text-2); line-height: 1.65; }

/* ── Story / Quote ────────────────────────────────────────────── */
.s-story { padding: var(--bay) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.story-grid {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.story-quote {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
  max-width: 66.6667%; /* two-thirds width */
}
.story-quote em { font-style: normal; color: var(--accent-mid); }
.story-attr { font-size: 0.8125rem; color: var(--text-3); }
.story-right { max-width: none; } /* full width */
.story-right p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 16px;
}
.story-right p:last-child { margin-bottom: 0; }

/* ── Manifesto ───────────────────────────────────────────────── */
.s-manifesto {
  padding: var(--bay) var(--edge);
  text-align: center;
  border-top: 1px solid var(--border);
}
.manifesto-inner {
  max-width: 860px;
  margin: 0 auto;
}
.manifesto-quote {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin: 0 0 24px;
}
.manifesto-attr {
  font-size: 0.9375rem;
  color: var(--text-3);
  margin: 0;
}

/* ── Contact ──────────────────────────────────────────────────── */
.s-contact {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--bay) var(--edge);
}
.s-contact .inner { max-width: var(--max); margin: 0 auto; }
.contact-heading {
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 48px;
  background: linear-gradient(150deg, #ffffff 30%, var(--accent-mid) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-info p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 8px;
}
.contact-info a { color: var(--text-2); transition: color 0.15s; }
.contact-info a:hover { color: var(--text); }
.contact-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  background: var(--bg-2);
  transition: border-color 0.2s, background 0.2s;
  margin-bottom: 20px;
}
.contact-linkedin:hover { border-color: #0A66C2; background: var(--bg-3); }
.contact-linkedin-icon {
  width: 44px;
  height: 44px;
  background: #0A66C2;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
}
.contact-linkedin-text { display: flex; flex-direction: column; gap: 3px; }
.contact-linkedin-name { font-size: 0.9375rem; font-weight: 600; color: var(--text); }
.contact-linkedin-label { font-size: 0.8rem; color: var(--text-3); }
.contact-linkedin:hover .contact-linkedin-label { color: #0A66C2; }
.contact-offices { font-size: 0.875rem; color: var(--text-3); }
.contact-actions { display: flex; flex-direction: column; gap: 12px; }
.contact-cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  transition: background 0.15s, transform 0.15s;
  width: fit-content;
}
.contact-cta-primary:hover { background: var(--accent-mid); transform: translateY(-2px); }
.contact-cta-secondary {
  font-size: 0.875rem;
  color: var(--text-3);
}
.contact-cta-secondary a { color: var(--text-2); transition: color 0.15s; }
.contact-cta-secondary a:hover { color: var(--text); }

/* ── Next-page link ───────────────────────────────────────────── */
.s-next {
  padding: var(--bay) var(--edge);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
  border-top: 1px solid var(--border);
}
.next-link {
  display: inline-flex;
  flex-direction: column;
  gap: 10px;
  width: fit-content;
}
.next-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
}
.next-title {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text);
  transition: color 0.2s;
}
.next-link:hover .next-title { color: var(--accent-mid); }
.next-arrow {
  display: inline-block;
  color: var(--accent-mid);
  transition: transform 0.2s var(--ease);
}
.next-link:hover .next-arrow { transform: translateX(8px); }
/* homepage is left-aligned */

/* ── Cookie consent banner (opt-out) ──────────────────────────── */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%) translateY(160%);
  z-index: 300;
  width: calc(100% - 2 * var(--edge));
  max-width: 640px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 16px 20px;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease);
}
.cookie-banner.show { transform: translateX(-50%) translateY(0); opacity: 1; pointer-events: auto; }
.cookie-text { font-size: 0.8125rem; color: var(--text-2); line-height: 1.55; flex: 1; min-width: 240px; }
.cookie-text a { color: var(--accent-mid); text-decoration: underline; text-underline-offset: 2px; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
  font-family: inherit;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.cookie-accept { background: var(--accent); color: #fff; border: 1px solid transparent; }
.cookie-accept:hover { background: var(--accent-mid); }
.cookie-optout { background: transparent; color: var(--text-2); border: 1px solid var(--border-2); }
.cookie-optout:hover { border-color: var(--text-3); color: var(--text); }

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  border-top: 1px solid var(--border);
  padding: 24px var(--edge);
  display: flex;
  justify-content: center;
  align-items: center;
}
.f-inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}
.f-copy { font-size: 0.8rem; color: var(--text-3); }
.f-sep { font-size: 0.8rem; color: var(--text-3); }
.f-offices { font-size: 0.8rem; color: var(--text-3); }
.f-inner a { font-size: 0.8rem; color: var(--text-3); transition: color 0.15s; }
.f-inner a:hover { color: var(--text-2); }
.f-email-copy {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: 0.8rem;
  color: var(--text-3);
  padding: 0;
  transition: color 0.15s;
}
.f-email-copy:hover { color: var(--text-2); }

/* ── Copy-email inline utility ────────────────────────────────── */
.copy-email {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  padding: 0;
  display: inline;
  text-decoration: none;
  transition: color 0.15s;
}
.copy-email::after,
.f-email-copy::after {
  content: 'copy email';
  position: absolute;
  bottom: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  color: var(--text-2);
  font-size: 0.7rem;
  font-family: var(--font);
  font-weight: 400;
  padding: 3px 9px;
  border-radius: 5px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
  z-index: 10;
}
.copy-email:hover::after,
.f-email-copy:hover::after { opacity: 1; }
.copy-email.copied::after,
.f-email-copy.copied::after { content: 'Copied!'; opacity: 1; color: var(--green); }
.legal-body .copy-email { color: var(--accent-mid); }
.f-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.875rem;
  font-weight: 600;
}
.f-logo-mark {
  width: 22px;
  height: 22px;
  background: var(--accent);
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.f-copy { font-size: 0.8125rem; color: var(--text-3); }
.f-links { display: flex; gap: 24px; }
.f-links a { font-size: 0.8125rem; color: var(--text-3); transition: color 0.15s; }
.f-links a:hover { color: var(--text-2); }

/* ── Header nav link ──────────────────────────────────────────── */
.h-nav-link {
  font-size: 0.875rem;
  color: var(--text-2);
  transition: color 0.15s;
  white-space: nowrap;
}
.h-nav-link:hover { color: var(--text); }

/* ── Blog teaser (homepage) ───────────────────────────────────── */
/* ── About section ────────────────────────────────────────────── */
.s-about { padding: var(--bay-md) var(--edge); }
.about-inner { max-width: var(--max); margin: 0 auto; }
.about-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 28px;
}
.about-body {
  font-size: clamp(1rem, 1.5vw, 1.175rem);
  color: var(--text-2);
  line-height: 1.75;
  max-width: none;
  margin-bottom: 32px;
}
.about-blog-link {
  display: inline-block;
  font-size: 0.9375rem;
  color: var(--accent-mid);
  transition: color 0.15s;
}
.about-blog-link:hover { color: var(--text); }

.s-blog-teaser { padding: var(--bay-md) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.blog-teaser-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 40px;
  gap: 24px;
}
.blog-teaser-header h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.blog-teaser-link {
  font-size: 0.875rem;
  color: var(--accent-mid);
  white-space: nowrap;
  transition: color 0.15s;
  flex-shrink: 0;
}
.blog-teaser-link:hover { color: var(--text); }
.blog-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Blog card (shared) ───────────────────────────────────────── */
.blog-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.2s;
  cursor: pointer;
}
.blog-card:hover { border-color: var(--border-2); }
.blog-card a { display: contents; }
.blog-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-mid);
}
.blog-card h3 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.35;
  color: var(--text);
}
.blog-card:hover h3 { color: var(--accent-mid); }
.blog-excerpt {
  font-size: 0.875rem;
  color: var(--text-2);
  line-height: 1.65;
  flex: 1;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-3);
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.blog-meta-dot { width: 3px; height: 3px; border-radius: 50%; background: var(--border-2); }

/* ── Blog landing ─────────────────────────────────────────────── */
.s-blog-hero {
  padding: var(--bay) var(--edge) 32px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.s-blog-hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.s-blog-hero p {
  font-size: 1.0625rem;
  color: var(--text-2);
  max-width: none;
  line-height: 1.7;
}

.s-blog-content { padding: 0 var(--edge) var(--bay); max-width: calc(var(--max) + 80px); margin: 0 auto; }

.blog-featured {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 40px;
  background: var(--bg-2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 32px;
  transition: border-color 0.2s;
}
.blog-featured-full {
  grid-template-columns: 1fr;
  gap: 10px; /* small gap on top of the title/paragraph margins (was an excessive 48px) */
}
.blog-featured:hover { border-color: var(--border-2); }
.bf-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 14px;
}
.blog-featured h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.blog-featured h2 a { transition: color 0.15s; }
.blog-featured h2 a:hover { color: var(--accent-mid); }
.bf-excerpt {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 21px;
}
.bf-read {
  font-size: 0.875rem;
  color: var(--accent-mid);
  font-weight: 500;
  transition: color 0.15s;
}
.bf-read:hover { color: var(--text); }
.bf-meta {
  font-size: 0.8375rem;
  color: var(--text-3);
  margin-top: 16px;
}
.blog-image-placeholder {
  aspect-ratio: 4/3;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.blog-image-placeholder svg { opacity: 0.15; }

.blog-grid-label {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.blog-grid-label::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.blog-landing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* ── Blog post page ───────────────────────────────────────────── */
.s-post-header {
  padding: var(--bay) var(--edge) 8px;
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.post-back {
  font-size: 0.8125rem;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 36px;
  transition: color 0.15s;
}
.post-back:hover { color: var(--text-2); }
.post-cat {
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin-bottom: 16px;
}
.s-post-header h1 {
  font-size: clamp(1.875rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
}
.post-byline {
  font-size: 0.875rem;
  color: var(--text-3);
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.s-post-body {
  padding: 0 var(--edge) var(--bay);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.post-lede {
  font-size: 1.1875rem;
  color: var(--text-2);
  line-height: 1.75;
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
.post-body-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 48px 0 16px;
  color: var(--text);
}
.post-body-content h3 {
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 36px 0 12px;
}
.post-body-content p {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.8;
  margin-bottom: 20px;
}
.post-body-content blockquote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 24px;
  margin: 32px 0;
  font-size: 1.0625rem;
  color: var(--text);
  line-height: 1.7;
  font-style: italic;
}
.post-body-content ul {
  margin: 20px 0 20px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.post-body-content ul li {
  font-size: 1rem;
  color: var(--text-2);
  line-height: 1.7;
  padding-left: 20px;
  position: relative;
}
.post-body-content ul li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--text-3);
  font-size: 0.875rem;
}

.post-faq {
  padding: 32px 0;
  border-bottom: 1px solid var(--border);
}
.post-faq:last-of-type { border-bottom: none; }
.post-faq h2 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 16px;
  line-height: 1.5;
}

/* Let a wide table scroll within its own box so it never widens the page */
.post-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 32px 0;
  max-width: 100%;
}
.post-table {
  width: 100%;
  min-width: 560px; /* keep 3 columns readable; the wrapper scrolls on narrow screens */
  border-collapse: collapse;
  font-size: 0.9rem;
}
.post-table th {
  text-align: left;
  padding: 12px 16px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-3);
  border-bottom: 1px solid var(--border-2);
}
.post-table td {
  padding: 16px;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  color: var(--text-2);
}
.post-table tr:last-child td { border-bottom: none; }
.post-table em { color: var(--text-3); font-style: normal; font-size: 0.8125rem; }

.post-footer {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.post-author-block { display: flex; flex-direction: column; gap: 4px; }
.post-author-name { font-size: 0.9375rem; font-weight: 600; }
.post-author-title { font-size: 0.8125rem; color: var(--text-3); }

.post-more { padding: var(--bay-sm) var(--edge); max-width: calc(var(--max) + 80px); margin: 0 auto; }
.post-more h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 24px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.75rem;
}
.post-more-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

/* ── Step source tags ─────────────────────────────────────────── */
.step-body p.step-sources-label {
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-2);
  margin-top: 20px;
  margin-bottom: 8px;
}
.step-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.src-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-3);
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 3px 8px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── Contact Drawer ───────────────────────────────────────────── */
.c-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.c-overlay.open { opacity: 1; pointer-events: all; }
.c-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 480px;
  max-width: 100vw;
  height: 100dvh;
  background: var(--bg);
  border-left: 1px solid var(--border);
  z-index: 201;
  transform: translateX(100%);
  transition: transform 0.38s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
}
.c-drawer.open { transform: translateX(0); }
.c-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.c-drawer-title { font-size: 0.9375rem; font-weight: 600; letter-spacing: -0.01em; }
.c-drawer-close {
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, color 0.2s;
}
.c-drawer-close:hover { border-color: var(--border-2); color: var(--text); }
.c-form {
  padding: 24px 28px 32px;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.c-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.c-form-group { display: flex; flex-direction: column; gap: 6px; }
.c-form-label { font-size: 0.8rem; color: var(--text-2); font-weight: 500; letter-spacing: 0.02em; text-transform: uppercase; }
.c-form-input,
.c-form-select,
.c-form-textarea {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 13px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.875rem;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
}
.c-form-input:focus,
.c-form-select:focus,
.c-form-textarea:focus { outline: none; border-color: var(--accent-mid); }
.c-form-input::placeholder,
.c-form-textarea::placeholder { color: var(--text-3); }
.c-form-select { cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236b7280' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.c-form-select option { background: #0d0d12; color: var(--text); }
.c-form-textarea { resize: vertical; min-height: 96px; }
.c-form-count { align-self: flex-end; font-size: 0.75rem; color: var(--text-3); margin-top: 2px; }
.c-form-count.limit { color: var(--accent-mid); }
.c-form-submit {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 11px 22px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s;
  align-self: flex-start;
  margin-top: 6px;
}
.c-form-submit:hover { opacity: 0.85; }
.c-form-submit:disabled { opacity: 0.45; cursor: not-allowed; }
.c-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.c-form-input.invalid,
.c-form-select.invalid,
.c-form-textarea.invalid { border-color: #f87171; }
.c-field-err { font-size: 0.75rem; color: #f87171; }
.c-form-err { display: none; font-size: 0.8125rem; color: #f87171; }
.c-form-err.show { display: block; }
.c-form-err a { color: inherit; }
.c-form-done {
  display: none;
  flex: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 28px;
  gap: 10px;
}
.c-form-done.show { display: flex; }
.c-form-done h3 { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
.c-form-done p { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ── Responsive ───────────────────────────────────────────────── */
@media (max-width: 960px) {
  /* Layout reflow only — fluid tokens already handle gutters & rhythm. */
  .s-intro { grid-template-columns: 1fr; gap: 48px; }
  .module-row { grid-template-columns: 140px 1fr; gap: 16px; }
  .module-row-tag, .module-row-badge { display: none; }
  .deploy-cols { grid-template-columns: 1fr; }
  .stack-row, .ent-row { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .srv-grid { grid-template-columns: 1fr 1fr; }
  .tier-grid { grid-template-columns: 1fr; }
  .blog-teaser-grid, .blog-landing-grid, .post-more-grid { grid-template-columns: repeat(2, 1fr); }
  footer { padding: 20px 24px; }
}

/* Collapse the header into a hamburger menu once the nav stops fitting */
@media (max-width: 768px) {
  /* Nav is absolutely-positioned (out of flow) on mobile, so collapse the
     grid to logo | actions — keeps the hamburger flush right. */
  header { grid-template-columns: 1fr auto; gap: 16px; }
  .nav-burger { display: flex; }
  /* Drop the cramped header pill; the CTA moves into the menu instead */
  .h-cta { display: none; }
  .h-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 var(--edge);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: max-height 0.3s var(--ease), opacity 0.2s,
      padding 0.3s var(--ease), border-color 0.3s;
  }
  .h-nav a { padding: 13px 12px; font-size: 1rem; border-radius: 8px; }
  /* Prominent CTA pinned at the bottom of the open menu */
  .h-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    margin-top: 10px;
    padding: 14px 18px;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    border: 1px solid rgba(167, 139, 250, 0.25);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
  }
  .h-nav-cta:hover { background: var(--accent-mid); border-color: rgba(167, 139, 250, 0.5); }
  header:has(.nav-toggle:checked) {
    background: rgba(8, 8, 14, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-color: var(--border);
  }
  header:has(.nav-toggle:checked) .h-nav {
    max-height: 70vh;
    opacity: 1;
    pointer-events: auto;
    padding: 8px var(--edge) 14px;
    border-bottom-color: var(--border);
  }
  /* Animate the bars into an X */
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* ── Legal / Terms ────────────────────────────────────────────── */
.s-legal {
  padding: var(--bay) var(--edge);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.legal-inner { max-width: 760px; }
.legal-meta { margin-bottom: 48px; }
.legal-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 12px 0 10px;
}
.legal-date {
  font-size: 0.8125rem;
  color: var(--text-3);
}
.legal-body { line-height: 1.75; color: var(--text-2); }
.legal-body > p { margin-bottom: 20px; }
.legal-body h2 {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
}
.legal-body ol {
  padding-left: 1.5rem;
  margin-bottom: 20px;
}
.legal-body ol li { margin-bottom: 8px; }
.legal-body a { color: var(--accent-mid); text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--text); font-weight: 600; }

@media (max-width: 640px) {
  /* Layout reflow only — fluid tokens already handle gutters & rhythm. */
  .problem-aside { grid-template-columns: 1fr; }
  .module-row { grid-template-columns: 1fr; }
  .stack-row, .ent-row { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid, .srv-grid { grid-template-columns: minmax(0, 1fr); }
  .blog-teaser-grid, .blog-landing-grid, .post-more-grid { grid-template-columns: 1fr; }
  .pricing-footer { grid-template-columns: 1fr; }
  .hero-bottom { flex-direction: column; gap: 20px; }
  .hero-sub { max-width: 100%; }
  .hh-left, .hh-right { align-self: flex-start; text-align: left; }
  .hero-scroll { display: none; }
  .f-inner { gap: 10px; }
}

/* Phone safety net: 4 stats across gets too tight below this — drop to 2×2. */
@media (max-width: 480px) {
  .s-stats { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .c-form-row { grid-template-columns: 1fr; }
}

/* ── Comparison / "vs" page ───────────────────────────────────── */
.s-versus {
  padding: var(--bay) var(--edge);
  max-width: calc(var(--max) + 80px);
  margin: 0 auto;
}
.versus-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 48px;
}
.versus-header h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  max-width: 520px;
}
.versus-header p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 560px;
}

/* The comparison grid: dimension | centralized | Didati */
.vs-table {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-2);
}
.vs-row {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr 1.15fr;
  border-bottom: 1px solid var(--border);
}
.vs-row:last-child { border-bottom: none; }
.vs-cell {
  padding: 22px 26px;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-2);
  border-right: 1px solid var(--border);
}
.vs-cell:last-child { border-right: none; }
.vs-dim {
  font-weight: 600;
  color: var(--text);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--bg-3);
  display: flex;
  align-items: center;
}
.vs-us {
  background: rgba(124, 58, 237, 0.07);
  color: var(--text);
}

/* header row: column names */
.vs-head .vs-cell { padding: 24px 26px; }
.vs-colname {
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
}
.vs-head .vs-us .vs-colname { color: var(--accent-mid); }
.vs-colsub {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-3);
}
.vs-head .vs-dim { background: var(--bg-3); }
.vs-head .vs-us { background: rgba(124, 58, 237, 0.1); }

/* small lead-in marker inside body cells */
.vs-lead { font-weight: 600; color: var(--text); }
.vs-us .vs-lead { color: var(--accent-mid); }

/* "no rip-out" connector tags reuse .src-tag from platform */
.versus-note {
  margin-top: 40px;
  padding: 32px 34px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-2);
}
.versus-note h3 {
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.versus-note p {
  font-size: 0.9375rem;
  color: var(--text-2);
  line-height: 1.75;
  max-width: 680px;
  margin-bottom: 20px;
}
.versus-note .step-sources-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}

/* closing CTA band */
.s-versus-cta {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: var(--bay) var(--edge);
  text-align: center;
}
.s-versus-cta .inner { max-width: 680px; margin: 0 auto; }
.s-versus-cta h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 16px;
}
.s-versus-cta p {
  font-size: 1.0625rem;
  color: var(--text-2);
  line-height: 1.7;
  margin-bottom: 32px;
}
.s-versus-cta .contact-cta-primary { margin: 0 auto; }

@media (max-width: 760px) {
  .vs-head { display: none; }
  .vs-row { grid-template-columns: 1fr; }
  .vs-cell { border-right: none; border-bottom: 1px solid var(--border); }
  .vs-row:last-child .vs-cell:last-child { border-bottom: none; }
  .vs-dim {
    background: var(--bg-3);
    font-size: 0.6875rem;
  }
  .vs-them::before, .vs-us::before {
    content: attr(data-label);
    display: block;
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 7px;
  }
  .vs-them::before { color: var(--text-3); }
  .vs-us::before { color: var(--accent-mid); }
}

/* ── Concept figures (shared vocabulary with /next) ───────────── */
figure.fig {
  margin: 0;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-2);
}
.fig-canvas { background: var(--bg-2); border-bottom: 1px solid var(--border); padding: 10px; }
.fig-canvas svg { display: block; width: 100%; height: auto; }
figure.fig figcaption { padding: 18px 22px 22px; }
.f-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-mid);
  margin: 0 0 7px;
}
.f-eyebrow.green { color: var(--green); }
figure.fig figcaption h3 { margin: 0 0 6px; font-size: 19px; font-weight: 700; letter-spacing: -0.01em; text-wrap: balance; }
figure.fig figcaption p { margin: 0; font-size: 13.5px; color: var(--text-2); line-height: 1.55; }

/* decorative hero artwork — sits in the open space right of the headline */
.hero-art {
  position: absolute;
  /* 8vw pulls the art toward the center as the viewport grows */
  right: calc(var(--edge) + 8vw);
  top: 50%;
  transform: translateY(-50%);
  width: clamp(300px, 28vw, 560px);
  pointer-events: none;
  opacity: 0.95;
}
.hero-art svg { display: block; width: 100%; height: auto; }
@media (max-width: 1339px) { .hero-art { display: none; } }

/* figure placement helpers */
.s-fig {
  padding: 0 var(--edge);
  margin: var(--bay-sm) auto;
  max-width: calc(var(--max) + 80px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 56px);
  justify-items: center;
}
.s-fig figure.fig { width: 100%; max-width: 640px; }
@media (max-width: 840px) { .s-fig { grid-template-columns: 1fr; } }
.post-body-content figure.fig { margin: 36px auto; max-width: 620px; }

/* shared svg vocabulary */
:is(.fig-canvas, .hero-art) .s-label  { font: 600 11px var(--font); fill: var(--text-3); }
:is(.fig-canvas, .hero-art) .s-label2 { font: 600 11px var(--font); fill: var(--text-2); }
:is(.fig-canvas, .hero-art) .s-mono   { font: 600 9.5px var(--mono); fill: var(--text-3); }
:is(.fig-canvas, .hero-art) .s-mono-g { font: 600 9.5px var(--mono); fill: var(--green); }
:is(.fig-canvas, .hero-art) .s-mono-v { font: 600 9.5px var(--mono); fill: var(--accent-mid); }
:is(.fig-canvas, .hero-art) .s-chip   { fill: var(--bg-3); stroke: var(--border-2); }
:is(.fig-canvas, .hero-art) .node     { fill: var(--bg-3); stroke: var(--accent-mid); stroke-width: 1.4; }
:is(.fig-canvas, .hero-art) .node-dim { fill: var(--bg-3); stroke: var(--text-3); stroke-width: 1.2; }
:is(.fig-canvas, .hero-art) .edge     { stroke: var(--accent); stroke-width: 1.6; fill: none; }
:is(.fig-canvas, .hero-art) .edge-dim { stroke: var(--text-3); stroke-width: 1.2; fill: none; opacity: 0.45; }
:is(.fig-canvas, .hero-art) .gcheck      { fill: rgba(34, 197, 94, 0.16); }
:is(.fig-canvas, .hero-art) .gcheck path { stroke: var(--green); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* figure animations (ambient loops) */
@keyframes fig-dashflow      { to { stroke-dashoffset: -24; } }
@keyframes fig-dashflow-slow { to { stroke-dashoffset: -120; } }
@keyframes fig-softpulse     { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes fig-breathe       { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes fig-quorum        { 0%, 18% { stroke-dashoffset: 214; } 55%, 100% { stroke-dashoffset: 72; } }
@keyframes fig-sweep         { 0%, 100% { transform: rotate(-16deg); } 50% { transform: rotate(16deg); } }
@keyframes fig-ledgerscan    { 0% { transform: translateX(0); } 100% { transform: translateX(384px); } }
:is(.fig-canvas, .hero-art) .flowline      { stroke-dasharray: 4 8; }
:is(.fig-canvas, .hero-art) .flowline-slow { stroke-dasharray: 3 9; }

:is(.fig-canvas, .hero-art) .quorum-arc    { stroke-dasharray: 214; stroke-dashoffset: 72; }

