/* ============================================
   COUNTERBENCH ADVISORY — DESIGN SYSTEM
   Version 1.0 | February 2026
   ============================================ */

/* --- RESET & BASE --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body {
  font-family: var(--sans);
  background-color: var(--bg);
  /* Quiet, expensive backdrop — not “SaaS aurora” */
  background-image:
    radial-gradient(900px 520px at 18% 10%, rgba(255, 255, 255, 0.06), transparent 52%),
    radial-gradient(820px 520px at 78% 26%, rgba(255, 255, 255, 0.045), transparent 55%),
    linear-gradient(to bottom, rgba(255,255,255,0.04), transparent 420px);
  background-attachment: fixed;
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Subtle grain (kept extremely restrained) */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.12;
  background-image:
    radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 4px 4px;
  background-position: 0 0;
}

/* Keep all content above the backdrop layers */
body > * { position: relative; z-index: 1; }
::selection { background: rgba(255,255,255,0.14); color: var(--fg); }
img { max-width: 100%; display: block; }
a { color: var(--teal); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--teal-light); }
ul, ol { list-style: none; }

/* --- CSS VARIABLES --- */
:root {
  /* Core palette (design tokens: counterbench.colors.*) */
  --bg: #0d0f12;   /* dark_mode.background */
  --bg2: #111827;  /* neutral.gray.900 (surface-1) */
  --bg3: #1f2937;  /* dark_mode.surface / divider (surface-2) */
  --fg: #f9fafb;   /* dark_mode.text_primary */
  --white: #f9fafb;
  --cream: #f9fafb; /* legacy alias */
  --muted: #9ca3af; /* dark_mode.text_secondary */
  --muted-2: #6b7280; /* neutral.gray.500 */
  --border: #374151; /* dark_mode.border */

  /* Accent (mapped to legacy teal tokens to avoid refactors) */
  --teal: #aab9d1; /* primary.300 */
  --teal-light: #d2dae6; /* primary.200 */
  --teal-dark: #7c93b7; /* primary.400 */

  /* Status (semantic) */
  --red: #dc2626;   /* semantic.error.DEFAULT */
  --amber: #eab308; /* semantic.warning.DEFAULT */
  --green: #16a34a; /* semantic.success.DEFAULT */

  /* Typography roles (design tokens: counterbench.typography.font_families.*) */
  --sans-display: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --sans: 'SF Pro Text', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
  --mono: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
  --serif: 'New York', Georgia, 'Times New Roman', Times, serif;

  /* Spacing scale (design tokens: spacing.base=8) */
  --space-0: 0px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;
  --space-6: 48px;
  --space-7: 56px;
  --space-8: 64px;

  /* Radius scale */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  /* Motion */
  --dur-instant: 100ms;
  --dur-fast: 200ms;
  --dur-normal: 300ms;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.20);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.22), 0 2px 4px -1px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.24), 0 4px 6px -2px rgba(0, 0, 0, 0.18);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.40);

  /* Layout */
  --max-w: 1120px;
  --pad: 24px;

  /* Themeable surfaces */
  --input-bg: rgba(255,255,255,0.05);
  --dropdown-bg: rgba(17, 24, 39, 0.98); /* neutral.gray.900 */
  --nav-scrolled-bg: rgba(13, 15, 18, 0.92); /* dark_mode.background */
  --hover-bg: rgba(255,255,255,0.07);
  --nav-active-bg: rgba(255,255,255,0.10);
  --shadow-1: var(--shadow-2xl); /* legacy alias */
  --progress-track: rgba(255,255,255,0.06);
  --progress-fill: rgba(255,255,255,0.22);
}

/* Inverted light theme (opt-in via html[data-theme="light"]) */
html[data-theme="light"] {
  --bg: #ffffff;   /* light_mode.background */
  --bg2: #f9fafb;  /* light_mode.surface */
  --bg3: #f3f4f6;  /* light_mode.divider */
  --fg: #111827;   /* light_mode.text_primary */
  --white: #111827;
  --cream: #111827;
  --muted: #6b7280; /* light_mode.text_secondary */
  --muted-2: #9ca3af; /* neutral.gray.400 */
  --border: #e5e7eb; /* light_mode.border */

  /* Accent becomes ink-blue */
  --teal: #3a4c6c;       /* primary.700 */
  --teal-light: #2d384d; /* primary.900 */
  --teal-dark: #475d85;  /* primary.600 */

  --input-bg: rgba(0,0,0,0.03);
  --dropdown-bg: rgba(255,255,255,0.98);
  --nav-scrolled-bg: rgba(255,255,255,0.88);
  --hover-bg: rgba(0,0,0,0.04);
  --nav-active-bg: rgba(0,0,0,0.06);
  --shadow-1: 0 25px 50px -12px rgba(0,0,0,0.14); /* shadows.2xl (tuned for light) */
  --progress-track: rgba(0,0,0,0.06);
  --progress-fill: rgba(0,0,0,0.18);

  /* Shadows need separate tuning in light mode */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.10), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.10), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.14);
}

html[data-theme="light"] body {
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 18% 10%, rgba(0, 0, 0, 0.05), transparent 52%),
    radial-gradient(820px 520px at 78% 26%, rgba(0, 0, 0, 0.04), transparent 55%),
    linear-gradient(to bottom, rgba(0,0,0,0.035), transparent 420px);
}

html[data-theme="light"] body::before {
  opacity: 0.08;
  background-image: radial-gradient(rgba(0,0,0,0.12) 1px, transparent 1px);
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4 { font-family: var(--serif); color: var(--fg); font-weight: 600; letter-spacing: -0.02em; }
h1 { font-size: clamp(3rem, 6vw, 4.5rem); line-height: 0.95; letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.05; letter-spacing: -0.02em; }
h3 { font-size: clamp(1.375rem, 2vw, 1.75rem); line-height: 1.15; letter-spacing: -0.01em; }
h4 { font-size: 1.125rem; line-height: 1.25; letter-spacing: -0.01em; }
p { font-size: 1rem; line-height: 1.7; color: var(--muted); margin-bottom: 1.25rem; }
p:last-child { margin-bottom: 0; }
.text-white { color: var(--white); }
.text-cream { color: var(--cream); }
.text-muted { color: var(--muted); }
.text-teal { color: var(--teal); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.serif { font-family: var(--serif); }

/* --- HERO ROTATOR --- */
#enemy-rotator {
  display: inline-block;
  transition: opacity 0.22s ease-in-out;
  will-change: opacity;
}

/* Hero rotating word */
#enemy-rotator {
  display: inline-block;
  transition: opacity 0.22s ease-in-out;
}

/* --- LABELS --- */
.label {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.6875rem; /* tokens: overline.size (11px) */
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1.25rem;
}
.label--dark { color: var(--muted); }
.label--pill {
  padding: 6px 16px;
  background: var(--bg3);
  border: 1px solid var(--border);
}

/* --- LAYOUT --- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--pad); width: 100%; }
.section { padding: 10rem 0; }
.section--alt { background-color: var(--bg2); }
.section--border-t { border-top: 1px solid var(--border); }
.section--border-b { border-bottom: 1px solid var(--border); }
.grid { display: grid; gap: 5rem; }
.grid--2 { grid-template-columns: 1fr 1fr; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--gap-1 { gap: 1px; }
.grid--gap-2 { gap: 0.5rem; }
.flex { display: flex; }
.flex--between { justify-content: space-between; }
.flex--center { align-items: center; }
.flex--col { flex-direction: column; }
.flex--gap-1 { gap: 0.5rem; }
.flex--gap-2 { gap: 1rem; }
.flex--gap-3 { gap: 1.5rem; }
.flex--gap-4 { gap: 2.5rem; }
.max-w-600 { max-width: 600px; }
.max-w-700 { max-width: 700px; }
.max-w-800 { max-width: 800px; }
.max-w-900 { max-width: 900px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }
.mb-6 { margin-bottom: 4.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }
.mt-6 { margin-top: 4.5rem; }
.pt-1 { padding-top: 1rem; }

/* --- RESPONSIVE RHYTHM --- */
@media (min-width: 900px) {
  :root { --pad: 48px; }
}

@media (max-width: 720px) {
  .section { padding: 6rem 0; }
  .grid { gap: 3rem; }
}

/* --- BUTTONS --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  min-height: 40px; /* tokens: button.height.md */
  font-family: var(--sans-display);
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
  border-radius: var(--radius-full);
}
.btn--primary { background: rgba(255,255,255,0.06); color: var(--fg); border-color: var(--border); }
.btn--primary:hover { background: rgba(255,255,255,0.10); border-color: rgba(255,255,255,0.18); }
.btn--secondary { background: transparent; color: var(--muted); border-color: var(--border); }
.btn--secondary:hover { color: var(--fg); border-color: rgba(255,255,255,0.18); }
.btn--ghost { background: transparent; color: var(--fg); border-color: rgba(255,255,255,0.16); }
.btn--ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.btn--full { width: 100%; justify-content: center; }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 0.875rem; }
.btn--arrow::after { content: '\2192'; font-size: 1.1em; }
.btn.is-active { background: rgba(255,255,255,0.08); color: var(--fg); border-color: rgba(255,255,255,0.20); }
.btn.is-active:hover { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.26); }

/* --- CARDS --- */
.card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-sm);
  transition: border-color var(--dur-normal) var(--ease-in-out), background-color var(--dur-normal) var(--ease-in-out),
    box-shadow var(--dur-normal) var(--ease-in-out), transform var(--dur-normal) var(--ease-in-out);
}
.card:hover { border-color: var(--teal); box-shadow: var(--shadow-md); }
.card--featured { background: var(--bg3); border-color: var(--teal); position: relative; }
.card--featured::before { content: ''; position: absolute; top: 0; left: 2rem; right: 2rem; height: 2px; background: var(--teal); }
.card--dark { background: var(--bg); }
.card--teal-border { border-color: var(--teal); }
.card--amber { border-left: 3px solid var(--amber); }
.card--no-hover:hover { border-color: var(--border); }

/* --- NAV --- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 0 var(--pad);
  transition: all 0.4s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.nav__logo {
  font-family: var(--sans-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav__logoInner{ display: inline-flex; align-items: center; gap: 10px; }
.nav__markWrap{ position: relative; width: 22px; height: 22px; flex: 0 0 22px; display: inline-block; }
.nav__mark{
  width: 22px;
  height: 22px;
  position: absolute;
  inset: 0;
}
.nav__mark--mono{
  background-color: currentColor;
  /* Use the PNG as a mask so it inherits light/dark ink automatically via currentColor */
  -webkit-mask-image: url('/logos/counterbench-mark-mono.png');
  mask-image: url('/logos/counterbench-mark-mono.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.nav__mark--accent{
  background: url('/logos/counterbench-mark-accent.svg') center / contain no-repeat;
  display: none;
}
html[data-theme="light"] .nav__mark--mono{ display: none; }
html[data-theme="light"] .nav__mark--accent{ display: block; }
.nav__word{ line-height: 1; }
.nav__logo .nav__ai {
  font-family: var(--sans);
  font-size: 0.75rem;
  letter-spacing: 0;
  color: var(--muted);
  margin-left: 0;
  text-transform: none;
}
.nav__links { display: flex; align-items: center; gap: 0.85rem; }
.nav__link {
  font-size: 0.8125rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s;
}
.nav__link:hover, .nav__link.active { color: var(--white); }
.nav__cta { margin-left: 0.75rem; }

/* Dropdown menu */
.nav__menuWrap { position: relative; }
.nav__exploreBtn{ display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.nav__exploreBtn:focus-visible{ outline: 2px solid var(--focus); outline-offset: 3px; }
.nav__chev{ width: 10px; height: 10px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); margin-top: -2px; transition: transform 0.2s ease, border-color 0.2s ease; }
.nav__exploreBtn[aria-expanded="true"] .nav__chev{ transform: rotate(225deg); border-color: var(--white); }
.nav__dropdown{ position: absolute; top: calc(100% + 12px); right: 0; min-width: 220px; background: var(--dropdown-bg); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 10px; box-shadow: var(--shadow-1); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.nav__dropdownItem{ display: flex; align-items: center; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-size: 0.8125rem; letter-spacing: 0.5px; color: var(--muted); }
.nav__dropdownItem:hover{ background: var(--hover-bg); color: var(--white); }
.nav__dropdownItem.active{ background: var(--nav-active-bg); color: var(--white); }

html[data-theme="light"] .btn--primary { background: rgba(0,0,0,0.045); border-color: var(--border); }
html[data-theme="light"] .btn--primary:hover { background: rgba(0,0,0,0.07); border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .btn--secondary:hover { border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .btn--ghost { border-color: rgba(0,0,0,0.14); }
html[data-theme="light"] .btn--ghost:hover { background: rgba(0,0,0,0.04); border-color: rgba(0,0,0,0.18); }

@media (max-width: 768px) {
  .nav__menuWrap { width: 100%; }
  .nav__exploreBtn{ width: 100%; justify-content: space-between; }
  .nav__dropdown{ position: static; top: auto; right: auto; min-width: 0; width: 100%; margin-top: 10px; }
}


/* Mobile menu toggle */
.nav__toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav__toggle span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; transition: all 0.3s; }

/* --- STAT BAR --- */
.stat-bar { border-top: 1px solid var(--border); }
.stat-bar__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-bar__item { padding: 1.75rem 0; padding-right: 1.75rem; border-right: 1px solid var(--border); }
.stat-bar__item:last-child { border-right: none; }
.stat-bar__item:not(:first-child) { padding-left: 1.75rem; }
.stat-bar__label { font-size: 0.6875rem; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.25rem; }
.stat-bar__value { font-family: var(--serif); font-size: 2rem; font-weight: 600; color: var(--white); letter-spacing: -1px; }
.stat-bar__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }

/* --- FORMS --- */
.input {
  padding: 0 12px;
  min-height: 40px; /* tokens: input.height.md */
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--white);
  font-size: 0.9375rem;
  font-family: var(--sans);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-out), box-shadow var(--dur-fast) var(--ease-out);
  width: 100%;
}
.input:focus { border-color: var(--focus); box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.18); }
.input::placeholder { color: var(--muted); }
.input-group { display: flex; }
.input-group .input { border-right: none; }
.input-group .btn { flex-shrink: 0; }

.form-field { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.8125rem; color: var(--muted); margin-bottom: 0.375rem; font-family: var(--sans); }

select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236B6B6B' d='M6 8L1 3h10z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 40px; }

/* --- PRICING --- */
.pricing-badge {
  display: inline-block;
  padding: 2px 12px;
  background: var(--teal);
  color: var(--bg);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.pricing-amount { font-family: var(--serif); font-size: 2.625rem; font-weight: 600; color: var(--white); }
.pricing-unit { font-size: 0.875rem; color: var(--muted); }
.pricing-feature { padding: 0.75rem 0; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--muted); line-height: 1.5; }
.pricing-feature:first-child { border-top: 1px solid var(--border); }
.pricing-feature--highlight { color: var(--teal); font-weight: 500; }

/* --- FAQ --- */
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary { list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-q { padding: 1.5rem 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 1.0625rem; font-weight: 500; color: var(--white); font-family: var(--sans); transition: color 0.2s; }
.faq-q:hover { color: var(--teal); }
.faq-q::after { content: '+'; font-size: 1.5rem; color: var(--teal); transition: transform 0.3s; font-weight: 300; }
.faq-item.open .faq-q::after,
.faq-item[open] .faq-q::after { content: '\2212'; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.4s ease; padding: 0 0; }
.faq-item.open .faq-a,
.faq-item[open] .faq-a { max-height: 500px; padding: 0 0 1.5rem 0; }
.faq-a p { font-size: 0.9375rem; color: var(--muted); line-height: 1.8; }

/* --- SPLIT CTA --- */
.split-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }

/* --- FOOTER --- */
.footer { padding: 3rem 0 2.25rem; border-top: 1px solid var(--border); }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; }
.footer__brandRow{ display: flex; align-items: center; gap: 12px; }
.footer__markWrap{ position: relative; width: 22px; height: 22px; flex: 0 0 22px; display: inline-block; }
.footer__mark{
  width: 22px;
  height: 22px;
  position: absolute;
  inset: 0;
}
.footer__mark--mono{
  background-color: var(--white);
  -webkit-mask-image: url('/logos/counterbench-mark-mono.png');
  mask-image: url('/logos/counterbench-mark-mono.png');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
  -webkit-mask-size: contain;
  mask-size: contain;
}
.footer__mark--accent{
  background: url('/logos/counterbench-mark-accent.svg') center / contain no-repeat;
  display: none;
}
html[data-theme="light"] .footer__mark--mono{ display: none; }
html[data-theme="light"] .footer__mark--accent{ display: block; }
.footer__brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; color: var(--white); }
.footer__sub { font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.footer__heading { font-size: 0.625rem; letter-spacing: 3px; text-transform: uppercase; color: var(--muted); margin-bottom: 0.75rem; font-family: var(--sans); }
.footer__link { display: block; font-size: 0.875rem; color: var(--muted-2); margin-bottom: 0.5rem; transition: color 0.2s; text-decoration: none; }
.footer__link:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid var(--border); padding-top: 1.5rem; display: flex; justify-content: space-between; align-items: center; }
.footer__copy { font-size: 0.75rem; color: var(--muted); }
.footer__legal { display: flex; gap: 1.5rem; }
.footer__legal a { font-size: 0.75rem; color: var(--muted); text-decoration: none; }
.footer__legal a:hover { color: var(--white); }

/* --- ASYMMETRY DISPLAY --- */
.asym { display: grid; grid-template-columns: 1fr 60px 1fr; align-items: center; }
.asym__vs { text-align: center; font-family: var(--serif); font-size: 1.75rem; color: var(--muted); font-style: italic; }
.asym__card { padding: 2.5rem; }
.asym__num { font-family: var(--serif); font-size: 3rem; font-weight: 600; color: var(--white); margin-bottom: 0.5rem; }

/* --- DIMENSION LIST (Diagnostic preview) --- */
.dim-item { padding: 1.25rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 1.25rem; }
.dim-num { width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 0.875rem; color: var(--teal); font-weight: 600; flex-shrink: 0; }
.dim-name { flex: 1; font-size: 0.9375rem; color: var(--white); font-weight: 500; }
.dim-bar { width: 120px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.dim-bar__fill { height: 100%; background: var(--teal); border-radius: 2px; }

/* --- PROCESS TIMELINE --- */
.timeline-item { display: grid; grid-template-columns: 80px 1fr; gap: 2rem; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.timeline-num { font-family: var(--serif); font-size: 2.5rem; font-weight: 600; color: var(--teal); }
.timeline-label { font-size: 0.6875rem; letter-spacing: 3px; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; font-weight: 600; }

/* --- VENDOR CARDS --- */
.vendor-card { cursor: default; transition: all 0.4s ease; }
.vendor-card:hover, .vendor-card.active { background: var(--bg3); border-color: var(--teal); }

/* --- ANIMATIONS --- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.8s cubic-bezier(0.16,1,0.3,1), transform 0.8s cubic-bezier(0.16,1,0.3,1); }
.fade-up.visible { opacity: 1; transform: translateY(0); }
.anim-hero { animation: fadeUp 1s cubic-bezier(0.16,1,0.3,1) forwards; opacity: 0; }
.anim-hero--1 { animation-delay: 0s; }
.anim-hero--2 { animation-delay: 0.15s; }
.anim-hero--3 { animation-delay: 0.3s; }
.anim-hero--4 { animation-delay: 0.45s; }
.anim-hero--5 { animation-delay: 0.6s; }
.anim-hero--6 { animation-delay: 0.7s; }
.anim-hero--7 { animation-delay: 0.8s; }
.anim-hero--8 { animation-delay: 0.9s; }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

/* --- SUBTLE BACKGROUND --- */
.bg-grid {
  position: absolute; inset: 0; opacity: 0.03;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 80px 80px;
  pointer-events: none;
}

/* --- STICKY CTA BAR --- */
.sticky-cta {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--nav-scrolled-bg);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
  padding: 12px var(--pad);
  z-index: 90;
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta__inner { max-width: var(--max-w); margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.sticky-cta__text { font-size: 0.875rem; color: var(--cream); }
.sticky-cta__text strong { color: var(--white); }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
  :root { --pad: 32px; }
  .grid--2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid--3 { grid-template-columns: 1fr; gap: 1rem; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .split-cta { grid-template-columns: 1fr; gap: 1px; }
  .asym { grid-template-columns: 1fr; gap: 1.5rem; }
  .asym__vs { display: none; }
  .stat-bar__grid { grid-template-columns: repeat(2, 1fr); }
  .stat-bar__item:nth-child(2) { border-right: none; }
  .stat-bar__item:nth-child(3) { padding-left: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  :root { --pad: 20px; }
  .section { padding: 4.5rem 0; }
  h1 { font-size: 2.25rem; letter-spacing: -1px; }
  h2 { font-size: 1.75rem; }
  .nav__links { display: none; }
  .nav__links.open { display: flex; flex-direction: column; position: fixed; top: 72px; left: 0; right: 0; bottom: 0; background: var(--bg); padding: 2rem var(--pad); gap: 1.5rem; z-index: 99; }
  .nav__toggle { display: block; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .grid--4 { grid-template-columns: 1fr; }
  .stat-bar__grid { grid-template-columns: 1fr 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 0.75rem; text-align: center; }
  .input-group { flex-direction: column; }
  .input-group .input { border-right: 1px solid var(--border); }
  .btn { padding: 14px 24px; font-size: 0.75rem; }
  .timeline-item { grid-template-columns: 1fr; gap: 1rem; }
  .flex--resp-col { flex-direction: column; }
}


/* --- TYPE UTILITIES (2026) --- */
.kpi{
  font-family: var(--serif);
  font-size: clamp(28px, 2.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin-top: 0.75rem;
}
.lead{
  font-size: 1.125rem;
  line-height: 1.75;
  color: var(--muted);
}
.list{
  list-style: none;
  padding-left: 0;
  margin: 0;
}
.list li{
  position: relative;
  padding-left: 1.25rem;
  margin-top: 0.75rem;
  color: var(--muted);
}
.list li:first-child{ margin-top: 0; }
.list li::before{
  content: "—";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--muted-2);
}
.text-center{ text-align:center; }

/* ============================================
   Advisory Page-Specific Layout Blocks
   (ported from /Users/philipprimmler/Downloads/advisory.html)
   ============================================ */

/* Numbered process steps */
.process-step {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 2rem;
  padding: 3rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.process-step:first-child { border-top: 1px solid var(--border); }
.process-num {
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--muted-2);
  line-height: 1;
  padding-top: 0.2rem;
}
.process-body h3 { margin-bottom: 0.75rem; }
.process-body p { margin-bottom: 0; }

/* Pricing cards */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  border: 1px solid var(--border);
}
.pricing-col {
  padding: 2.5rem 2rem;
  background: var(--bg2);
  position: relative;
}
.pricing-col--featured {
  background: var(--bg3);
}
.pricing-col--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--fg);
}
.pricing-col--featured::after {
  content: 'MOST POPULAR';
  position: absolute;
  top: -1px; left: 2rem;
  font-size: 0.625rem;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--bg);
  background: var(--fg);
  padding: 3px 10px;
}
.pricing-name {
  font-size: 0.6875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
}
.pricing-price {
  font-family: var(--serif);
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1;
}
.pricing-price span {
  font-family: var(--sans);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--muted);
  margin-left: 4px;
}
.pricing-desc {
  font-size: 0.875rem;
  color: var(--muted);
  margin: 1.25rem 0 1.5rem;
  line-height: 1.65;
}
.pricing-divider {
  height: 1px;
  background: var(--border);
  margin: 1.5rem 0;
}
.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.pricing-feature-item::before {
  content: '—';
  color: var(--muted-2);
  flex-shrink: 0;
  margin-top: 0.05rem;
}
.pricing-feature-item--highlight {
  color: var(--fg);
}
.pricing-feature-item--highlight::before {
  content: '✓';
  color: var(--fg);
}

/* Comparison table */
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table th {
  text-align: left;
  font-size: 0.6875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.75rem 1rem 0.75rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  font-family: var(--sans);
}
.compare-table th:not(:first-child) {
  text-align: center;
  padding: 0.75rem 0.5rem;
}
.compare-table td {
  padding: 1rem 1rem 1rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.875rem;
  color: var(--muted);
  vertical-align: middle;
}
.compare-table td:not(:first-child) {
  text-align: center;
  padding: 1rem 0.5rem;
}
.compare-table tr:last-child td { border-bottom: none; }
.compare-check { color: var(--fg); font-size: 1rem; }
.compare-x { color: var(--muted-2); font-size: 1rem; }
.compare-table .col-highlight { background: rgba(255,255,255,0.025); }

/* Who this is for */
.fit-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}
.fit-col {
  padding: 2.5rem 2rem;
  background: var(--bg2);
}
.fit-col--yes { border-top: 2px solid var(--fg); }
.fit-col--no { border-top: 2px solid var(--border); }
.fit-heading {
  font-size: 0.6875rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-family: var(--sans);
}
.fit-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.875rem;
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.5;
}
.fit-item-marker {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--muted-2);
  margin-top: 0.05rem;
}
.fit-col--yes .fit-item-marker { color: var(--fg); }

/* FAQ */
.faq-grid {
  max-width: 720px;
}

/* Testimonial / pull quote */
.pull-quote {
  border-left: 2px solid var(--border);
  padding: 0.5rem 0 0.5rem 2rem;
}
.pull-quote__text {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2vw, 1.625rem);
  line-height: 1.5;
  color: var(--fg);
  font-style: italic;
  margin-bottom: 1rem;
}
.pull-quote__attr {
  font-size: 0.8125rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* Engagement timeline */
.engagement-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  margin-top: 3rem;
}
.engagement-phase {
  padding: 2rem 1.75rem;
  border-right: 1px solid var(--border);
  position: relative;
}
.engagement-phase:last-child { border-right: none; }
.engagement-phase-num {
  font-family: var(--serif);
  font-size: 0.75rem;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}
.engagement-phase-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 0.75rem;
}
.engagement-phase-weeks {
  font-size: 0.6875rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .fit-row { grid-template-columns: 1fr; }
  .engagement-bar { grid-template-columns: 1fr; }
  .engagement-phase { border-right: none; border-bottom: 1px solid var(--border); }
  .engagement-phase:last-child { border-bottom: none; }
}
@media (max-width: 768px) {
  .process-step { grid-template-columns: 40px 1fr; gap: 1.25rem; }
  .compare-table th:nth-child(3),
  .compare-table td:nth-child(3) { display: none; }
}
