/* ============================================================
   Kennedy Schnieders: Consulting Site
   Design: Engineering-record aesthetic
   Mobile-first, WCAG 2.1 AA compliant
   ============================================================ */

/* --- Custom Properties --- */
:root {
  /* Colors: restrained engineering palette */
  --color-bg:         #fafaf9;
  --color-surface:    #ffffff;
  --color-border:     #d4d4d3;
  --color-border-light: #e7e5e4;
  --color-text:       #1c1917;
  --color-text-muted: #57534e;
  --color-accent:     #1e3a5f;
  --color-accent-hover: #152b47;
  --color-accent-light: #e8eff7;
  --color-highlight:  #fef3c7;

  /* Typography */
  --font-body:  'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:  'JetBrains Mono', 'SF Mono', 'Fira Code', 'Consolas', monospace;

  /* Type scale (major third: 1.25) */
  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-5xl:   3rem;

  /* Spacing (4px base) */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Layout */
  --max-width: 72rem;
  --content-width: 48rem;

  /* Transitions */
  --transition: 150ms ease;
}

/* --- Reset --- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-accent-hover);
}

/* --- Audience toggle: show/hide --- */
[data-audience="business"] [data-for="technical"],
[data-audience="technical"] [data-for="business"] {
  display: none;
}

/* noscript fallback: show everything */
.no-js [data-for] {
  display: revert;
}

/* --- Audience toggle: component --- */
.audience-toggle {
  display: none;
  align-items: center;
  gap: 0;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: 2px;
  flex-shrink: 0;
}

.audience-toggle__btn {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--color-text-muted);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--transition), color var(--transition);
  line-height: 1.4;
}

.audience-toggle__btn:hover {
  color: var(--color-text);
}

.audience-toggle__btn.is-active {
  background: var(--color-accent);
  color: #fff;
}

.audience-toggle__btn:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
}

/* Screen-reader-only announcer */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mobile toggle bar: below header */
.audience-toggle--mobile {
  display: flex;
  justify-content: center;
  padding: var(--space-2) var(--space-6);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface);
}

.audience-toggle--mobile .audience-toggle {
  display: flex;
}

/* --- Focus styles (a11y) --- */
:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 2px;
}

/* --- Skip link (a11y) --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-4);
  background: var(--color-accent);
  color: #fff;
  padding: var(--space-2) var(--space-4);
  border-radius: 0 0 4px 4px;
  z-index: 1000;
  font-size: var(--text-sm);
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container--narrow {
  max-width: var(--content-width);
}

/* --- Header / Nav --- */
.site-header {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.site-logo {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.site-logo:hover {
  color: var(--color-accent);
}

.nav-links {
  display: none;
  list-style: none;
  gap: var(--space-8);
  align-items: center;
}

.nav-links a {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--color-text);
}

.nav-links a.btn--primary {
  color: #fff;
}

.nav-links a.btn--primary:hover {
  color: #fff;
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--color-border);
  border-radius: 4px;
  width: 2.5rem;
  height: 2.5rem;
  cursor: pointer;
  color: var(--color-text);
}

.nav-toggle svg {
  width: 1.25rem;
  height: 1.25rem;
}

/* Mobile nav */
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  padding: var(--space-4) var(--space-6);
}

.mobile-nav.is-open {
  display: block;
}

.mobile-nav ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.mobile-nav a {
  display: block;
  padding: var(--space-2) 0;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  text-decoration: none;
  font-weight: 500;
}

.mobile-nav a:hover {
  color: var(--color-text);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), color var(--transition);
}

.btn--primary {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: #fff;
}

.btn--outline {
  background-color: transparent;
  color: var(--color-accent);
  border: 1px solid var(--color-accent);
}

.btn--outline:hover {
  background-color: var(--color-accent);
  color: #fff;
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

.btn--nav {
  display: none;
}

/* --- Sections --- */
.section {
  padding: var(--space-16) 0;
}

.section--alt {
  background-color: var(--color-surface);
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}

.section__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.section__title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-6);
  letter-spacing: -0.02em;
}

.section__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: var(--content-width);
  margin-bottom: var(--space-8);
}

/* --- Hero --- */
.hero {
  padding: var(--space-20) 0 var(--space-16);
  border-bottom: 1px solid var(--color-border-light);
}

.hero__headline {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-6);
  max-width: 38rem;
}

.hero__subhead {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 36rem;
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* --- Ownership Table (signature element) --- */
.ownership-table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: var(--space-8) 0;
  border: 2px solid var(--color-accent);
  border-radius: 6px;
}

.ownership-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.ownership-table caption {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  text-align: left;
  padding: var(--space-3) var(--space-4);
  background: var(--color-accent-light);
  border-bottom: 1px solid var(--color-border);
  caption-side: top;
}

.ownership-table th,
.ownership-table td {
  padding: var(--space-3) var(--space-4);
  text-align: left;
  border-bottom: 1px solid var(--color-border-light);
}

.ownership-table thead th {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
}

.ownership-table tbody tr:last-child td {
  border-bottom: none;
}

.ownership-table .tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.02em;
}

.ownership-table .tag--build {
  background: var(--color-accent-light);
  color: var(--color-accent-hover);
}

.ownership-table .tag--client {
  background: var(--color-highlight);
  color: #92400e;
}

/* --- Offers / Cards --- */
.offers-grid {
  display: grid;
  gap: var(--space-6);
}

.offer-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 6px;
  padding: var(--space-8);
  transition: border-color var(--transition);
}

.offer-card:hover {
  border-color: var(--color-accent);
}

.offer-card__step {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-2);
}

.offer-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.01em;
}

.offer-card__desc {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}

.offer-card__list {
  margin-top: var(--space-4);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

.offer-card__list li {
  margin-bottom: var(--space-2);
}

/* --- Proof / Placeholder --- */
.proof-placeholder {
  background: var(--color-surface);
  border: 2px dashed var(--color-border);
  border-radius: 6px;
  padding: var(--space-8);
  text-align: center;
  color: var(--color-text-muted);
}

.proof-placeholder__title {
  font-size: var(--text-lg);
  font-weight: 600;
  margin-bottom: var(--space-2);
  color: var(--color-text);
}

.proof-grid {
  display: grid;
  gap: var(--space-6);
}

.proof-card {
  background: var(--color-surface);
  border: 1px dashed var(--color-border);
  border-radius: 6px;
  padding: var(--space-6);
}

.proof-card__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

.proof-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  font-style: italic;
}

/* --- About --- */
.about-content {
  max-width: var(--content-width);
}

.about-content p + p {
  margin-top: var(--space-6);
}

.about-placeholder {
  background: var(--color-highlight);
  border-radius: 6px;
  padding: var(--space-6);
  font-size: var(--text-sm);
  color: #92400e;
}

/* --- Approach steps --- */
.approach-steps {
  display: grid;
  gap: var(--space-6);
  counter-reset: step;
}

.approach-step {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}

.approach-step__number {
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-accent);
  color: #fff;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: 50%;
}

.approach-step__content h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.approach-step__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- Problem section --- */
.pain-points {
  display: grid;
  gap: var(--space-4);
}

.pain-point {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.pain-point__icon {
  flex-shrink: 0;
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-accent);
  margin-top: 0.1rem;
}

.pain-point p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* --- CTA banner --- */
.cta-banner {
  text-align: center;
  padding: var(--space-16) 0;
}

.cta-banner__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.offers-note {
  text-align: center;
  margin-top: var(--space-6);
  color: var(--color-text-muted);
}

.cta-banner__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 30rem;
  margin-left: auto;
  margin-right: auto;
}

/* --- Footer --- */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: var(--space-8) 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-links {
  list-style: none;
  display: flex;
  gap: var(--space-6);
}

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: var(--text-sm);
}

.footer-links a:hover {
  color: var(--color-text);
}

/* --- Page header (for inner pages) --- */
.page-header {
  padding: var(--space-16) 0 var(--space-8);
  border-bottom: 1px solid var(--color-border-light);
}

.page-header__title {
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
}

.page-header__desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: var(--content-width);
}

/* --- Services detail --- */
.service-block {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border-light);
}

.service-block:last-child {
  border-bottom: none;
}

.service-block__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}

.service-block__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}

.service-block__desc {
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  max-width: var(--content-width);
}

.deliverables {
  list-style: none;
  display: grid;
  gap: var(--space-3);
}

.deliverables li {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.deliverables li::before {
  content: "\2713";
  flex-shrink: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* --- Insights / Blog scaffold --- */
.insights-empty {
  text-align: center;
  padding: var(--space-16) 0;
  color: var(--color-text-muted);
}

.insights-empty__title {
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-3);
}

/* --- Contact --- */
.contact-content {
  max-width: var(--content-width);
}

.contact-methods {
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-8);
}

.contact-method__label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: var(--space-2);
}

/* --- 404 --- */
.error-page {
  text-align: center;
  padding: var(--space-24) 0;
}

.error-page__code {
  font-family: var(--font-mono);
  font-size: var(--text-5xl);
  font-weight: 700;
  color: var(--color-border);
  margin-bottom: var(--space-4);
}

.error-page__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.error-page__text {
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
}


/* --- Lead magnet: guide page + promo --- */
.section--tight {
  padding-top: 0;
}

.hero__aside {
  margin-top: var(--space-5);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

.guide-layout {
  display: grid;
  gap: var(--space-10);
  align-items: start;
}

.guide-meta {
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  letter-spacing: 0.04em;
}

.lead-form {
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  padding: var(--space-8);
}

.lead-form__title {
  font-family: var(--font-mono);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}

.lead-form__hp {
  position: absolute;
  left: -9999px;
}

.form-field {
  margin-bottom: var(--space-5);
}

.form-field label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.form-field__optional {
  font-weight: 400;
  color: var(--color-text-muted);
}

.form-field input {
  width: 100%;
  font: inherit;
  font-size: var(--text-base);
  padding: var(--space-3) var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: 4px;
  background: var(--color-surface);
  color: var(--color-text);
}

.form-field input:focus {
  outline: 2px solid var(--color-accent);
  outline-offset: 1px;
  border-color: var(--color-accent);
}

.lead-form__submit {
  width: 100%;
  justify-content: center;
  margin-top: var(--space-2);
}

.lead-form__note {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.guide-promo {
  display: grid;
  gap: var(--space-6);
  align-items: center;
  background: var(--color-surface);
  border: 2px solid var(--color-accent);
  border-radius: 6px;
  padding: var(--space-8);
}

.guide-promo__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: var(--space-3);
}

.guide-promo__text {
  color: var(--color-text-muted);
  max-width: var(--content-width);
}

@media (min-width: 768px) {
  .guide-layout { grid-template-columns: 3fr 2fr; }
  .guide-promo { grid-template-columns: 1fr auto; }
}

/* --- Visuals: graph-paper background, hero pipeline, load bearing stack --- */
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; will-change: transform;
  background-image:
    linear-gradient(to right, rgba(30, 58, 95, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(30, 58, 95, 0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 100%);
          mask-image: radial-gradient(ellipse 80% 90% at 70% 40%, #000 30%, transparent 100%);
}

.hero--split .container { display: grid; gap: var(--space-10); align-items: center; }

.pipeline { width: 100%; height: auto; max-width: 560px; justify-self: center; overflow: visible; will-change: transform; contain: paint; }
.pipeline .node { fill: var(--color-surface); stroke: var(--color-border); stroke-width: 1.5; }
.pipeline .node--wh { stroke: var(--color-accent); stroke-width: 2; }
.pipeline .layer { fill: var(--color-accent-light); stroke: var(--color-accent); stroke-width: 1; }
.pipeline .layer--marts { fill: var(--color-accent); }
.pipeline .route { fill: none; stroke: var(--color-border); stroke-width: 1.5; stroke-dasharray: 3 5; }
.pipeline .label { font-family: var(--font-mono); font-size: 12px; fill: var(--color-text); font-weight: 600; }
.pipeline .label--muted { fill: var(--color-text-muted); font-weight: 500; font-size: 10px; letter-spacing: 0.08em; }
.pipeline .label--inv { fill: #fff; }
.pipeline .bar { fill: var(--color-accent); opacity: 0.85; }
.pipeline .dot--raw { fill: #d97706; }
.pipeline .dot--clean { fill: var(--color-accent); }
.pipeline .label--tile { font-size: 10px; fill: var(--color-text-muted); }
.pipeline .label--ai { fill: var(--color-accent); font-weight: 700; }
.pipeline .node--ai { stroke: var(--color-accent); stroke-width: 2.5; }
.pipeline .net line { stroke: var(--color-accent); stroke-width: 1; opacity: 0.45; }
.pipeline .net circle { fill: var(--color-accent-light); stroke: var(--color-accent); stroke-width: 1.2; }
.pipeline .net .net__out { fill: var(--color-accent); }
.pipeline .tag text { font-family: var(--font-mono); font-size: 10px; font-weight: 600; }
.pipeline .tag-build rect { fill: var(--color-accent-light); }
.pipeline .tag-build text { fill: var(--color-accent-hover); }
.pipeline .tag-client rect { fill: var(--color-highlight); }
.pipeline .tag-client text { fill: #92400e; }

.stack { margin: var(--space-8) 0 0; max-width: 44rem; }
.stack__building { display: grid; grid-template-columns: 34px 1fr 34px; gap: 0 var(--space-2); }
.stack__beam--left { grid-column: 1; grid-row: 1; }
.stack__floors { grid-column: 2; grid-row: 1; display: flex; flex-direction: column; gap: var(--space-2); }
.stack__beam--right { grid-column: 3; grid-row: 1; }
.stack__floor, .stack__beam {
  font: inherit; text-align: left; cursor: pointer; color: var(--color-text); border-radius: 4px;
  transition: transform var(--transition), box-shadow var(--transition), opacity 500ms ease, translate 500ms ease;
}
.stack__floor {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  padding: var(--space-3) var(--space-4); min-height: 3.25rem;
  background: var(--color-accent-light); border: 1px solid var(--color-accent);
  font-size: var(--text-sm); font-weight: 600;
}
.stack__floor--addon { background: var(--color-surface); border-style: dashed; }
.stack__floor--client { background: var(--color-highlight); border-color: #d97706; }
.stack__floor:hover, .stack__floor:focus-visible, .stack__floor.is-active,
.stack__beam:hover, .stack__beam:focus-visible, .stack__beam.is-active {
  box-shadow: 0 0 0 2px var(--color-accent); transform: translateY(-1px);
}
.stack__floor .tag {
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 600;
  padding: 2px 8px; border-radius: 3px; white-space: nowrap;
  background: var(--color-surface); color: var(--color-accent-hover);
}
.stack__floor--client .tag { color: #92400e; }
.stack__beam { background: var(--color-accent); border: none; display: flex; align-items: center; justify-content: center; }
.stack__beam span {
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #fff;
}
.stack__beam--right span { transform: none; }
.stack__ground {
  grid-column: 1 / -1; margin-top: var(--space-2); height: 2.25rem;
  border-top: 3px solid var(--color-text);
  background: repeating-linear-gradient(135deg, var(--color-border) 0 1px, transparent 1px 9px);
  display: flex; align-items: center; justify-content: center;
}
.stack__ground button {
  font-family: var(--font-mono); font-size: var(--text-xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--color-text-muted); background: var(--color-bg); border: none; padding: 2px 8px; cursor: pointer;
}
.stack__detail {
  margin-top: var(--space-4); min-height: 3.5rem;
  border-left: 3px solid var(--color-accent); padding: var(--space-2) var(--space-4);
  font-size: var(--text-sm); color: var(--color-text-muted); background: var(--color-surface);
}
.stack__detail strong { color: var(--color-text); }
.stack.is-pending .stack__floor, .stack.is-pending .stack__beam { opacity: 0; translate: 0 18px; }

@media (max-width: 480px) {
  .stack__floor { flex-direction: column; align-items: flex-start; gap: var(--space-2); }
}

@media (prefers-reduced-motion: reduce) {
  .stack.is-pending .stack__floor, .stack.is-pending .stack__beam { opacity: 1; translate: none; }
}

/* --- Responsive --- */

/* Tablet (768px+) */
@media (min-width: 48rem) {
  .hero__headline {
    font-size: var(--text-4xl);
  }

  .section__title {
    font-size: var(--text-4xl);
  }

  .offers-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--content-width);
  }

  .nav-links {
    display: flex;
  }

  .nav-toggle {
    display: none;
  }

  .btn--nav {
    display: inline-flex;
  }

  /* Show inline toggle, hide mobile bar */
  .site-header .audience-toggle {
    display: flex;
  }

  .audience-toggle--mobile {
    display: none;
  }

  .site-footer .container {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

/* Desktop (1024px+) */
@media (min-width: 64rem) {
  .hero--split .container { grid-template-columns: 1.05fr 1fr; }

  .hero__headline {
    font-size: var(--text-5xl);
  }

  .offers-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .proof-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: var(--content-width);
  }

  .approach-steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .approach-step {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

/* --- Print --- */
@media print {
  .site-header,
  .nav-toggle,
  .mobile-nav,
  .btn {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
    background: #fff;
  }

  .section {
    padding: 1rem 0;
    break-inside: avoid;
  }
}
