@layer reset, base, tokens, components, utilities;

/* ==========================================================================
   CRSS DEVELOPMENT — STUDIO DESIGN SYSTEM v3.0 (WARM ALABASTER & OBSIDIAN)
   Calibrated with Cal.com, Dub.co, Studio Nord, Midday, Magic UI & HF Audit
   Note: Tokens live in @layer tokens; component & layout rules sit unlayered
   after tailwind.min.css so they always win over unlayered Tailwind Preflight.
   ========================================================================== */

@layer tokens {
  :root,
  html[data-theme="light"] {
    color-scheme: light;

    /* Warm Alabaster / Stone Editorial Surfaces (Zero sterile #FFFFFF glare) */
    --bg-page: #f5f2eb;
    --bg-alt: #ece8df;
    --bg-surface: #fcfbf8;
    --bg-surface-muted: #efece4;
    --bg-surface-hover: #f7f4ed;
    --bg-surface-elevated: #fffefc;
    --bg-passepartout: #eae5da;
    --bg-footer: #ece8df;
    --bg-contrast-banner: #eae5da;
    --text-contrast-banner: #18181b;
    --text-contrast-muted: #3f3f46;

    --bg-header: rgba(245, 242, 235, 0.86);
    --bg-header-pill: rgba(252, 251, 248, 0.92);
    --bg-backdrop: rgba(24, 24, 27, 0.52);

    /* Warm Architectural Borders (WCAG 1.4.11 >= 3:1 where interactive) */
    --border-subtle: #dfd9ce;
    --border-strong: #cfc7b8;
    --border-control: #8c8273;
    --border-input: #78716c;

    /* Warm Ink Typography (WCAG AA/AAA verified on #F5F2EB & #FCFBF8) */
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #57534e;
    --text-on-brand: #ffffff;

    /* Primary Brand Accent — Precision Cobalt + CRSS Coral Micro-Signal */
    --brand-primary: #1d4ed8;
    --brand-primary-hover: #1e40af;
    --brand-primary-border: #1e3a8a;
    --brand-tint: rgba(29, 78, 216, 0.075);
    --brand-border: rgba(29, 78, 216, 0.28);
    --brand-text: #1d4ed8;
    --brand-coral: #dc2626;

    /* Restrained Semantic Signals (WCAG AA contrast on warm light) */
    --signal-pos: #047857;
    --signal-pos-bg: rgba(4, 120, 87, 0.085);
    --signal-pos-border: rgba(4, 120, 87, 0.26);

    --signal-warn: #b45309;
    --signal-warn-bg: rgba(180, 83, 9, 0.09);
    --signal-warn-border: rgba(180, 83, 9, 0.28);

    --signal-neg: #b91c1c;
    --signal-neg-bg: rgba(185, 28, 28, 0.08);
    --signal-neg-border: rgba(185, 28, 28, 0.25);

    /* Studio Shadows & Masked Warm Drafting Grid */
    --shadow-card: 0 1px 2px rgba(24, 24, 27, 0.04), 0 8px 22px -12px rgba(24, 24, 27, 0.07);
    --shadow-card-hover: 0 4px 14px rgba(24, 24, 27, 0.07), 0 18px 34px -14px rgba(24, 24, 27, 0.11);
    --shadow-pill: 0 4px 16px -4px rgba(24, 24, 27, 0.09), 0 1px 2px rgba(24, 24, 27, 0.05);
    --shadow-modal: 0 24px 64px -12px rgba(24, 24, 27, 0.28);
    --grid-line: rgba(41, 37, 36, 0.045);
  }

  html[data-theme="dark"] {
    color-scheme: dark;

    /* Deep Obsidian Slate Surfaces (Paired in depth with Warm Alabaster) */
    --bg-page: #0c1017;
    --bg-alt: #111722;
    --bg-surface: #161e2c;
    --bg-surface-muted: #111826;
    --bg-surface-hover: #1a2436;
    --bg-surface-elevated: #1b2536;
    --bg-passepartout: #0f1623;
    --bg-footer: #090d14;
    --bg-contrast-banner: #162033;
    --text-contrast-banner: #f8fafc;
    --text-contrast-muted: #cbd5e1;

    --bg-header: rgba(12, 16, 23, 0.86);
    --bg-header-pill: rgba(22, 30, 44, 0.90);
    --bg-backdrop: rgba(2, 6, 14, 0.78);

    /* Structural Hairlines */
    --border-subtle: #222c3d;
    --border-strong: #2e3b52;
    --border-control: #3e4e6b;
    --border-input: #52627a;

    /* Typography (WCAG AA/AAA verified on #0C1017 & #161E2C) */
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --text-on-brand: #ffffff;

    /* Primary Brand Accent */
    --brand-primary: #2563eb;
    --brand-primary-hover: #3b82f6;
    --brand-primary-border: #60a5fa;
    --brand-tint: rgba(59, 130, 246, 0.14);
    --brand-border: rgba(96, 165, 250, 0.36);
    --brand-text: #60a5fa;
    --brand-coral: #f87171;

    /* Restrained Semantic Signals */
    --signal-pos: #34d399;
    --signal-pos-bg: rgba(16, 185, 129, 0.13);
    --signal-pos-border: rgba(52, 211, 153, 0.30);

    --signal-warn: #fbbf24;
    --signal-warn-bg: rgba(245, 158, 11, 0.13);
    --signal-warn-border: rgba(251, 191, 36, 0.30);

    --signal-neg: #f87171;
    --signal-neg-bg: rgba(239, 68, 68, 0.13);
    --signal-neg-border: rgba(248, 113, 113, 0.30);

    /* Studio Shadows & Masked Drafting Grid */
    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 12px 28px -12px rgba(0, 0, 0, 0.52);
    --shadow-card-hover: 0 8px 20px rgba(0, 0, 0, 0.45), 0 22px 42px -12px rgba(0, 0, 0, 0.68);
    --shadow-pill: 0 10px 28px -6px rgba(0, 0, 0, 0.58), 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-modal: 0 28px 72px -12px rgba(0, 0, 0, 0.82);
    --grid-line: rgba(255, 255, 255, 0.038);
  }
}

/* ==========================================================================
   1. BASE TYPOGRAPHY, SMOOTH SURFACES & READING PROGRESS BAR
   ========================================================================== */

html {
  scroll-behavior: smooth;
  overflow-x: clip;
}

body.crss-body {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 180ms ease, color 180ms ease;
}

body.crss-body h1,
body.crss-body h2,
body.crss-body h3,
body.crss-body h4 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  letter-spacing: -0.026em;
  text-wrap: balance;
}

.crss-mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.crss-tabular {
  font-variant-numeric: tabular-nums;
}

/* Semantic Color & Border Helpers (Unlayered so they always work) */
.text-crss-primary { color: var(--text-primary); }
.text-crss-secondary { color: var(--text-secondary); }
.text-crss-muted { color: var(--text-muted); }
.text-crss-brand { color: var(--brand-text); }
.text-crss-pos { color: var(--signal-pos); }
.text-crss-warn { color: var(--signal-warn); }
.text-crss-neg { color: var(--signal-neg); }
.border-crss-subtle { border-color: var(--border-subtle); }
.border-crss-strong { border-color: var(--border-strong); }

.crss-sec-page {
  background-color: var(--bg-page);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  overflow-x: clip;
}

.crss-sec-alt {
  background-color: var(--bg-alt);
  color: var(--text-primary);
  border-color: var(--border-subtle);
  overflow-x: clip;
}

.crss-sec-footer {
  background-color: var(--bg-footer);
  color: var(--text-primary);
  border-top: 1px solid var(--border-subtle);
  overflow-x: clip;
}

/* Top 2px Architectural Reading Progress Bar */
#crss-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  z-index: 70;
  background-color: var(--brand-primary);
  transform-origin: 0 50%;
  transform: scaleX(0);
  pointer-events: none;
  transition: transform 60ms linear;
}

/* Guaranteed Responsive Display Utilities (Immune to old Tailwind purge) */
.crss-md-flex { display: none !important; }
.crss-md-inline { display: none !important; }
.crss-xl-inline { display: none !important; }
.crss-md-hide { display: inline-flex !important; }
.crss-md-block-hide { display: block !important; }

@media (min-width: 768px) {
  .crss-md-flex { display: flex !important; }
  .crss-md-inline { display: inline-flex !important; }
  .crss-md-hide { display: none !important; }
  .crss-md-block-hide { display: none !important; }
}

@media (min-width: 1280px) {
  .crss-xl-inline { display: inline-flex !important; }
}

/* ==========================================================================
   2. STICKY HEADER -> FLOATING PILL ON SCROLL (LIGHT & DARK)
   ========================================================================== */

#main-header.crss-header {
  position: sticky;
  top: 0;
  z-index: 50;
  width: 100%;
  background-color: var(--bg-header);
  border-bottom: 1px solid var(--border-subtle);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: padding 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 200ms ease,
              border-color 200ms ease;
}

#header-nav-shell {
  max-width: 80rem;
  margin-inline: auto;
  padding-inline: 1rem;
  border: 1px solid transparent;
  transition: max-width 240ms cubic-bezier(0.2, 0.8, 0.2, 1),
              background-color 220ms ease,
              border-color 220ms ease,
              border-radius 240ms ease,
              box-shadow 220ms ease,
              padding 220ms ease;
}

@media (min-width: 640px) {
  #header-nav-shell { padding-inline: 1.5rem; }
}
@media (min-width: 1024px) {
  #header-nav-shell { padding-inline: 2rem; }
}

#header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-block: 0.75rem;
  transition: padding 200ms ease;
}

.crss-header-logo {
  height: 2.35rem;
  width: auto;
  transition: height 200ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 150ms ease;
}

@media (min-width: 768px) {
  .crss-header-logo { height: 2.65rem; }
}

/* Floating Pill State when window.scrollY > 50 */
#main-header.crss-header.pill-mode {
  background-color: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding-top: 0.6rem;
  padding-inline: 0.75rem;
}

#main-header.crss-header.pill-mode #header-nav-shell {
  max-width: 68rem;
  background-color: var(--bg-header-pill);
  border-color: var(--border-strong);
  border-radius: 9999px;
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding-inline: 1.15rem;
}

@media (min-width: 768px) {
  #main-header.crss-header.pill-mode #header-nav-shell {
    padding-inline: 1.4rem;
  }
}

#main-header.crss-header.pill-mode #header-container {
  padding-block: 0.45rem;
}

#main-header.crss-header.pill-mode .crss-header-logo {
  height: 2.05rem;
}

/* Navigation Links + Scroll-Spy Active Dot */
.crss-nav-group {
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.crss-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-secondary);
  font-size: 0.925rem;
  font-weight: 600;
  padding: 0.48rem 0.8rem;
  border-radius: 9999px;
  text-decoration: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

#main-header.pill-mode .crss-nav-link {
  padding: 0.42rem 0.7rem;
  font-size: 0.89rem;
}

.crss-nav-link:hover,
.crss-nav-link:focus-visible {
  color: var(--text-primary);
  background-color: var(--bg-surface-muted);
  outline: none;
}

.crss-nav-link.is-current {
  color: var(--text-primary);
}

.crss-nav-link.is-current::after {
  content: '';
  position: absolute;
  bottom: 3px;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background-color: var(--brand-primary);
  transform: translateX(-50%);
}

/* Right Header Controls — Guaranteed Separation */
.crss-header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  margin-left: 0.875rem;
  flex-shrink: 0;
}

/* Structured Services Dropdown Popover (Dub.co style) */
.crss-dropdown-panel {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-card-hover);
}

#services-dropdown-panel.crss-services-popover {
  width: 316px;
  padding: 0.5rem;
  margin-top: 0.6rem;
}

.crss-dropdown-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.55rem 0.7rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.crss-dropdown-item:hover,
.crss-dropdown-item:focus-visible {
  background-color: var(--bg-surface-muted);
  color: var(--brand-text);
  outline: none;
}

.crss-dropdown-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.crss-dropdown-sub {
  display: block;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 1px;
}

/* Control Pills & Tactile Theme Switcher (Overrides svg { display: block }!) */
button.crss-control-pill,
a.crss-control-pill,
.crss-control-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 38px;
  padding: 0 0.75rem;
  border-radius: 9999px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-control);
  color: var(--text-primary);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color 160ms ease, background-color 160ms ease, transform 150ms ease;
}

button.crss-control-pill:hover,
a.crss-control-pill:hover,
.crss-control-pill:hover,
.crss-control-pill:focus-visible {
  background-color: var(--bg-surface-muted);
  border-color: var(--text-muted);
  outline: 2px solid transparent;
}

button.crss-theme-toggle,
.crss-theme-toggle {
  width: 38px;
  padding: 0;
}

.crss-theme-toggle svg {
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-theme-toggle:hover svg {
  transform: rotate(14deg);
}

html[data-theme="light"] svg.theme-icon-sun { display: none !important; }
html[data-theme="light"] svg.theme-icon-moon { display: block !important; }
html[data-theme="dark"] svg.theme-icon-sun { display: block !important; }
html[data-theme="dark"] svg.theme-icon-moon { display: none !important; }

/* Mobile Floating Menu Drawer */
.crss-mobile-drawer {
  background-color: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  margin-top: 0.55rem;
  margin-inline: 0.5rem;
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

/* ==========================================================================
   3. TACTILE STUDIO BUTTONS & GUARANTEED BUTTON SPACING (@dub/ui style)
   ========================================================================== */

.crss-btn-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 639px) {
  .crss-btn-group.crss-btn-group-stack {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
  }
}

.crss-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
}

button.crss-btn-primary,
a.crss-btn-primary,
.crss-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 1.45rem;
  border-radius: 10px;
  background-color: var(--brand-primary);
  color: var(--text-on-brand);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.25;
  border: 1px solid var(--brand-primary-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
              0 2px 6px rgba(29, 78, 216, 0.22);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 170ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1),
              box-shadow 170ms ease;
}

button.crss-btn-primary:hover,
a.crss-btn-primary:hover,
.crss-btn-primary:hover {
  background-color: var(--brand-primary-hover);
  color: var(--text-on-brand);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 8px 18px -4px rgba(29, 78, 216, 0.34);
}

button.crss-btn-primary:active,
a.crss-btn-primary:active,
.crss-btn-primary:active {
  transform: scale(0.985);
}

button.crss-btn-secondary,
a.crss-btn-secondary,
.crss-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 46px;
  padding: 0.75rem 1.35rem;
  border-radius: 10px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
  border: 1.5px solid var(--border-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5),
              0 1px 2px rgba(24, 24, 27, 0.05);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 170ms ease,
              border-color 170ms ease,
              transform 160ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

html[data-theme="dark"] button.crss-btn-secondary,
html[data-theme="dark"] a.crss-btn-secondary,
html[data-theme="dark"] .crss-btn-secondary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 1px 2px rgba(0, 0, 0, 0.35);
}

button.crss-btn-secondary:hover,
a.crss-btn-secondary:hover,
.crss-btn-secondary:hover {
  background-color: var(--bg-surface-muted);
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

button.crss-btn-secondary:active,
a.crss-btn-secondary:active,
.crss-btn-secondary:active {
  transform: scale(0.985);
}

button.crss-btn-sm,
a.crss-btn-sm,
.crss-btn-sm {
  min-height: 38px;
  padding: 0.48rem 1rem;
  font-size: 0.86rem;
  border-radius: 9999px;
  white-space: nowrap;
}

.crss-btn-arrow {
  transition: transform 170ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-btn-primary:hover .crss-btn-arrow,
.crss-btn-secondary:hover .crss-btn-arrow,
.crss-link-arrow:hover .crss-btn-arrow {
  transform: translateX(3px);
}

.crss-btn-primary:focus-visible,
.crss-btn-secondary:focus-visible {
  outline: 2px solid var(--brand-primary);
  outline-offset: 2px;
}

/* ==========================================================================
   4. BRAND "{ }" EYEBROW & ALTERNATING SECTION HEADERS (Anti-AI Slop)
   ========================================================================== */

.crss-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
}

.crss-eyebrow-brace {
  color: var(--brand-text);
  font-weight: 700;
}

.crss-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 9999px;
  background-color: var(--brand-coral);
  display: inline-block;
}

.crss-split-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 3.25rem;
}

@media (min-width: 1024px) {
  .crss-split-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 3rem;
    margin-bottom: 3.75rem;
  }
  .crss-split-header-title {
    max-width: 36rem;
  }
  .crss-split-header-desc {
    max-width: 28rem;
  }
}

/* ==========================================================================
   5. HERO 2-COLUMN PARALLEL ARCHITECTURE & CONNECTED 3-CARD STEPPER
   ========================================================================== */

.crss-hero-section {
  position: relative;
  padding-top: 3.25rem;
  padding-bottom: 4rem;
  border-bottom: 1px solid var(--border-subtle);
}

@media (min-width: 1024px) {
  .crss-hero-section {
    padding-top: 4.75rem;
    padding-bottom: 5.5rem;
  }
}

.crss-arch-grid {
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 76% 68% at 50% 44%, #000 32%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 76% 68% at 50% 44%, #000 32%, transparent 100%);
}

.crss-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .crss-hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 3.75rem;
  }
}

.crss-hero-title {
  font-size: clamp(2.1rem, 3.45vw, 3.1rem);
  line-height: 1.11;
  letter-spacing: -0.03em;
  font-weight: 800;
  color: var(--text-primary);
  max-width: 18.5ch;
  margin-top: 1rem;
  margin-bottom: 1.35rem;
}

.crss-status-chip {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  min-height: 46px;
  padding: 0.5rem 0.95rem;
  border-radius: 10px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  margin-bottom: 1.35rem;
  max-width: 100%;
}

.crss-hero-sub {
  font-size: 1.05rem;
  line-height: 1.62;
  color: var(--text-secondary);
  max-width: 52ch;
  margin-bottom: 1.85rem;
}

.crss-hero-proof {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.crss-proof-check {
  width: 20px;
  height: 20px;
  border-radius: 9999px;
  background-color: var(--signal-pos-bg);
  border: 1px solid var(--signal-pos-border);
  color: var(--signal-pos);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Right Column: 3 Connected Vertical Cards + Animated Beam */
.crss-stepper-wrap {
  position: relative;
  padding-left: 1.5rem;
}

@media (min-width: 640px) {
  .crss-stepper-wrap {
    padding-left: 1.85rem;
  }
}

.crss-stepper-rail {
  position: absolute;
  left: 0.45rem;
  top: 1.5rem;
  bottom: 4.5rem;
  width: 2px;
  background-color: var(--border-strong);
  border-radius: 999px;
  overflow: hidden;
}

.crss-stepper-beam {
  position: absolute;
  left: 0;
  top: -35%;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, transparent, var(--brand-primary), transparent);
  animation: crssBeamFlow 3.6s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes crssBeamFlow {
  0% { top: -35%; }
  100% { top: 115%; }
}

.crss-step-card {
  position: relative;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--border-strong);
  border-radius: 13px;
  padding: 1.05rem 1.2rem;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: border-color 180ms ease,
              background-color 180ms ease,
              box-shadow 180ms ease,
              transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-step-card + .crss-step-card {
  margin-top: 0.85rem;
}

.crss-step-node {
  position: absolute;
  left: -1.48rem;
  top: 1.35rem;
  width: 11px;
  height: 11px;
  border-radius: 9999px;
  background-color: var(--bg-page);
  border: 2px solid var(--border-control);
  transition: background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

@media (min-width: 640px) {
  .crss-step-node { left: -1.83rem; }
}

.crss-step-card:hover,
.crss-step-card:focus-visible,
.crss-step-card.is-active {
  border-color: var(--border-strong);
  border-left-color: var(--brand-primary);
  background-color: var(--bg-surface-elevated);
  box-shadow: var(--shadow-card-hover);
  transform: translateX(2px);
  outline: none;
}

.crss-step-card.is-active .crss-step-node,
.crss-step-card:hover .crss-step-node {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  transform: scale(1.18);
}

.crss-pillar-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 0.4rem;
  border-radius: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--brand-text);
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.crss-step-card.is-active .crss-pillar-num {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.crss-stepper-summary {
  margin-top: 0.85rem;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

/* ==========================================================================
   6. CALLOUT STRIP, LEDGER STATS & CENTERED ODD-ROW CARD GRIDS
   ========================================================================== */

.crss-callout-strip {
  max-width: 72rem;
  margin-inline: auto;
  padding: 1rem 1.35rem;
  border-radius: 14px;
  background-color: var(--bg-alt);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (min-width: 640px) {
  .crss-callout-strip {
    flex-direction: row;
    padding: 1.05rem 1.75rem;
    gap: 1.5rem;
  }
}

.crss-stats-ledger {
  display: grid;
  grid-template-columns: 1fr;
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  background-color: var(--bg-surface);
  overflow: hidden;
}

@media (min-width: 640px) {
  .crss-stats-ledger {
    grid-template-columns: repeat(3, 1fr);
  }
}

.crss-stat-cell {
  padding: 1.35rem 1.5rem;
  text-align: center;
  border-bottom: 1px solid var(--border-subtle);
}

.crss-stat-cell:last-child {
  border-bottom: 0;
}

@media (min-width: 640px) {
  .crss-stat-cell {
    border-bottom: 0;
    border-right: 1px solid var(--border-subtle);
  }
  .crss-stat-cell:last-child {
    border-right: 0;
  }
}

/* Centered Flexbox Grid: Mathematically centers any odd last row (1 or 2 cards)! */
.crss-centered-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.crss-centered-cards > .crss-centered-item {
  width: 100%;
  flex: 0 1 100%;
}

@media (min-width: 640px) {
  .crss-centered-cards > .crss-centered-item {
    width: calc(50% - 0.75rem);
    flex: 0 1 calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .crss-centered-cards > .crss-centered-item {
    width: calc(33.333% - 1rem);
    flex: 0 1 calc(33.333% - 1rem);
  }
}

/* ==========================================================================
   7. CARDS, PASSEPARTOUT MEDIA, PRICING & 3x2 ARCHITECTURAL MATRIX
   ========================================================================== */

.crss-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease,
              box-shadow 180ms ease,
              transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.crss-card-featured {
  background-color: var(--bg-surface);
  border: 2px solid var(--brand-primary);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  transition: box-shadow 180ms ease,
              transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-card-featured:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-2px);
}

.crss-inset-panel {
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
}

/* Editorial Matte Passepartout Frame around Screenshots (Studio Nord style) */
.crss-passepartout {
  background-color: var(--bg-passepartout);
  padding: 0.65rem;
  border-bottom: 1px solid var(--border-subtle);
}

.crss-passepartout-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.15rem 0.25rem 0.55rem;
}

.crss-passepartout-screen {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background-color: #0f172a;
}

.crss-zoom-trigger {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: rgba(15, 23, 42, 0.72);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 150ms ease, transform 150ms ease;
}

.crss-zoom-trigger:hover {
  opacity: 1;
  transform: scale(1.06);
}

/* Case Study Problem / Solution / Result Ledger */
.crss-case-ledger {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 1.25rem;
}

.crss-case-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 0.65rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.865rem;
  line-height: 1.45;
}

/* Portfolio Responsive Layout: Mobile Snap Carousel -> Tablet Centered Odd Row -> Desktop 3-Col */
.crss-portfolio-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 1rem;
  padding-bottom: 0.5rem;
}

.crss-portfolio-track > .crss-portfolio-card {
  flex: 0 0 86%;
  scroll-snap-align: center;
}

@media (min-width: 768px) {
  .crss-portfolio-track {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    overflow: visible;
    padding-bottom: 0;
  }
  .crss-portfolio-track > .crss-portfolio-card {
    flex: 0 1 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .crss-portfolio-track > .crss-portfolio-card {
    flex: 0 1 calc(33.333% - 1rem);
    width: calc(33.333% - 1rem);
  }
}

.crss-carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .crss-carousel-dots { display: none; }
}

.crss-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 9999px;
  background-color: var(--border-control);
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: width 180ms ease, background-color 180ms ease;
}

.crss-carousel-dot.is-active {
  width: 22px;
  background-color: var(--brand-primary);
}

/* Masked Tech Marquee */
.crss-marquee-mask {
  mask-image: linear-gradient(to right, transparent 0%, #000 72px, #000 calc(100% - 72px), transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 72px, #000 calc(100% - 72px), transparent 100%);
}

/* 3x2 Architectural Shared-Hairline Matrix (#why-us — Cal.com / Dub.co style) */
.crss-matrix-3x2 {
  display: grid;
  grid-template-columns: 1fr;
  background-color: var(--border-subtle);
  gap: 1px;
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

@media (min-width: 768px) {
  .crss-matrix-3x2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .crss-matrix-3x2 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.crss-matrix-cell {
  background-color: var(--bg-surface);
  padding: 1.85rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: background-color 170ms ease;
}

.crss-matrix-cell:hover {
  background-color: var(--bg-surface-hover);
}

/* ==========================================================================
   8. TIMELINE (#process), ANALYTICS TABS, CONTRAST BANNER & CONTACT
   ========================================================================== */

.crss-pain-gain-pairs {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 46rem;
  margin: 2rem auto 0;
}

.crss-pair-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

@media (min-width: 640px) {
  .crss-pair-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0.75rem;
  }
}

.crss-tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 11px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
}

button.crss-tab-btn,
.crss-tab-btn {
  padding: 0.45rem 0.9rem;
  border-radius: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

button.crss-tab-btn.is-active,
.crss-tab-btn.is-active {
  background-color: var(--bg-surface-elevated);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

/* Native Vector Analytics Showcase (Synchronized 01 · 02 · 03, Zero Raster Blur) */
.crss-analytics-trigger {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.95rem 1.1rem;
  border-radius: 12px;
  border: 1px solid transparent;
  border-left: 3px solid transparent;
  cursor: pointer;
  transition: background-color 170ms ease, border-color 170ms ease, box-shadow 170ms ease;
}

.crss-analytics-trigger:hover {
  background-color: var(--bg-surface-hover);
  border-color: var(--border-subtle);
}

.crss-analytics-trigger.is-active {
  background-color: var(--bg-surface);
  border-color: var(--border-subtle);
  border-left-color: var(--brand-primary);
  box-shadow: var(--shadow-card);
}

.crss-analytics-trigger.is-active .crss-pillar-num {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
}

.crss-analytics-shell {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-card-hover);
  overflow: hidden;
}

.crss-analytics-topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.75rem 1rem;
  background-color: var(--bg-surface-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.crss-analytics-body {
  padding: 1.15rem;
}

@media (min-width: 640px) {
  .crss-analytics-body { padding: 1.35rem; }
}

.crss-analytics-view {
  animation: crssPanelIn 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes crssPanelIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.crss-kpi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.1rem;
}

@media (max-width: 479px) {
  .crss-kpi-grid {
    grid-template-columns: 1fr;
  }
}

.crss-kpi-card {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 0.75rem 0.85rem;
}

.crss-kpi-label {
  display: block;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
}

.crss-kpi-val {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.crss-kpi-delta {
  display: inline-block;
  margin-top: 0.2rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
}

.crss-channel-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.crss-channel-row {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
}

.crss-bar-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background-color: var(--bg-surface-muted);
  overflow: hidden;
  margin-top: 0.42rem;
}

.crss-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-funnel-step {
  display: block;
  width: 100%;
  box-sizing: border-box;
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.68rem 0.9rem;
}

.crss-funnel-step + .crss-funnel-step {
  margin-top: 0.55rem;
}

.crss-funnel-step.is-highlighted {
  border-color: var(--brand-border);
  background-color: var(--brand-tint);
}

.crss-analytics-foot {
  margin-top: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.crss-contrast-banner {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-contrast-banner) 100%);
  color: var(--text-contrast-banner);
  border: 1px solid var(--brand-border);
  border-radius: 18px;
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .crss-contrast-banner {
    flex-direction: row;
    align-items: center;
    padding: 2.25rem 2.75rem;
  }
}

/* Semantic Badges & Chips */
.crss-badge-pos {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background-color: var(--signal-pos-bg);
  border: 1px solid var(--signal-pos-border);
  color: var(--signal-pos);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crss-badge-warn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background-color: var(--signal-warn-bg);
  border: 1px solid var(--signal-warn-border);
  color: var(--signal-warn);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.crss-chip-pain {
  background-color: var(--signal-neg-bg);
  border: 1px solid var(--signal-neg-border);
  color: var(--signal-neg);
}

.crss-chip-gain {
  background-color: var(--signal-pos-bg);
  border: 1px solid var(--signal-pos-border);
  color: var(--signal-pos);
}

.crss-chip-pos {
  background-color: var(--signal-pos-bg);
  border: 1px solid var(--signal-pos-border);
  color: var(--signal-pos);
}

.crss-icon-box {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 10px;
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-border);
  color: var(--brand-text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Contact Interactive Pills & Cal.com Schedule Grid */
button.crss-contact-chip,
a.crss-contact-chip,
.crss-contact-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border-radius: 9999px;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-strong);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease;
}

button.crss-contact-chip:hover,
a.crss-contact-chip:hover {
  border-color: var(--brand-primary);
  background-color: var(--bg-surface-elevated);
}

.crss-schedule-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.crss-schedule-grid > .crss-schedule-date {
  grid-column: span 2;
}

@media (min-width: 640px) {
  .crss-schedule-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
  .crss-schedule-grid > .crss-schedule-date {
    grid-column: span 1;
  }
}

.crss-step-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: color 160ms ease;
}

.crss-step-pill.is-complete {
  color: var(--signal-pos);
}

.crss-step-pill.is-complete .crss-pillar-num {
  background-color: var(--signal-pos);
  border-color: var(--signal-pos);
  color: #ffffff;
}

/* Modals, Inputs & Asymmetric Editorial Footer */
.crss-modal-panel {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--shadow-modal);
}

input.crss-input,
select.crss-input,
textarea.crss-input,
.crss-input {
  background-color: var(--bg-page);
  color: var(--text-primary);
  border: 1px solid var(--border-input);
  border-radius: 9px;
  min-height: 44px;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}

.crss-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.crss-input option {
  background-color: var(--bg-surface);
  color: var(--text-primary);
}

.crss-footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.25rem;
}

@media (min-width: 640px) {
  .crss-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .crss-footer-grid {
    grid-template-columns: 1.5fr 1fr 0.85fr 1fr 0.9fr;
    gap: 2rem;
  }
}

/* Desktop Contextual Floating Pill on Homepage */
#crss-home-float-pill {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 45;
  display: none;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
  border-radius: 9999px;
  background-color: var(--bg-header-pill);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-pill);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 200ms ease, transform 200ms ease;
}

@media (min-width: 1024px) {
  #crss-home-float-pill { display: flex; }
}

#crss-home-float-pill.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Mobile 360px-430px Fit & Safe Area */
.crss-safe-bottom {
  padding-bottom: max(0.5rem, env(safe-area-inset-bottom));
}

@media (max-width: 639px) {
  .crss-card,
  .crss-card-featured {
    padding: 1.25rem;
  }
}

/* Subtle Editorial Scroll Reveal (12px, crisp, zero blur) */
.crss-reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.crss-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   9. COMPLETE UTILITY SUPPLEMENT (100% Coverage Over Pre-Purged Tailwind)
   ========================================================================== */

.invisible { visibility: hidden; }
.items-baseline { align-items: baseline; }
.justify-start { justify-content: flex-start; }
.leading-snug { line-height: 1.375; }
.accent-blue-600 { accent-color: var(--brand-primary); }

.p-0 { padding: 0 !important; }
.p-3\.5 { padding: 0.875rem; }
.px-3\.5 { padding-left: 0.875rem; padding-right: 0.875rem; }
.pt-7 { padding-top: 1.75rem; }
.pb-3 { padding-bottom: 0.75rem; }
.pb-7 { padding-bottom: 1.75rem; }
.pb-8 { padding-bottom: 2rem; }
.pb-24 { padding-bottom: 6rem; }
.pl-14 { padding-left: 3.5rem; }

.ml-0\.5 { margin-left: 0.125rem; }
.mt-1\.5 { margin-top: 0.375rem; }
.mt-14 { margin-top: 3.5rem; }
.mb-2\.5 { margin-bottom: 0.625rem; }
.mb-3\.5 { margin-bottom: 0.875rem; }
.mb-7 { margin-bottom: 1.75rem; }

.gap-2\.5 { gap: 0.625rem; }
.space-y-2\.5 > :not([hidden]) ~ :not([hidden]) { margin-top: 0.625rem; }
.space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }

.top-3\.5 { top: 0.875rem; }
.-top-11 { top: -2.75rem; }
.right-3\.5 { right: 0.875rem; }
.bottom-6 { bottom: 1.5rem; }
.left-5 { left: 1.25rem; }
.z-\[9999\] { z-index: 9999; }

.w-\[2px\] { width: 2px; }
.w-52 { width: 13rem; }
.h-28 { height: 7rem; }
.max-w-\[195px\] { max-width: 195px; }
.max-w-\[440px\] { max-width: 440px; }
.max-h-\[88vh\] { max-height: 88vh; }
.min-h-\[42px\] { min-height: 42px; }
.min-h-\[44px\] { min-height: 44px; }
.rounded-\[10px\] { border-radius: 10px; }

.-translate-y-3 { transform: translateY(-0.75rem) scale(0.75); }
.peer:placeholder-shown ~ label.-translate-y-3 { transform: translateY(0) scale(1); }
.peer:focus ~ label.peer-focus\:-translate-y-3 { transform: translateY(-0.75rem) scale(0.75); }
.peer:focus ~ label.peer-focus\:text-crss-brand { color: var(--brand-text); }

.bg-emerald-700 { background-color: #047857; }
.hover\:bg-emerald-800:hover { background-color: #065f46; }
.hover\:text-crss-primary:hover { color: var(--text-primary); }
.hover\:text-crss-brand:hover { color: var(--brand-text); }

.group:hover .group-hover\:opacity-90 { opacity: 0.9; }
.group:hover .group-hover\:pause { animation-play-state: paused; }
.group:hover .group-hover\:scale-\[1\.02\] { transform: scale(1.02); }

.statistics-section { position: relative; }

@media (min-width: 640px) {
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:p-10 { padding: 2.5rem; }
  .sm\:gap-5 { gap: 1.25rem; }
  .sm\:mx-0 { margin-left: 0; margin-right: 0; }
  .sm\:right-auto { right: auto; }
  .sm\:text-base { font-size: 1rem; line-height: 1.5rem; }
  .sm\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 768px) {
  .md\:pl-12 { padding-left: 3rem; }
  .md\:pr-12 { padding-right: 3rem; }
  .md\:text-lg { font-size: 1.125rem; line-height: 1.75rem; }
}

@media (min-width: 1024px) {
  .lg\:pl-14 { padding-left: 3.5rem; }
  .lg\:pr-14 { padding-right: 3.5rem; }
  .lg\:py-10 { padding-top: 2.5rem; padding-bottom: 2.5rem; }
  .lg\:mb-16 { margin-bottom: 4rem; }
  .lg\:gap-14 { gap: 3.5rem; }
  .lg\:space-y-10 > :not([hidden]) ~ :not([hidden]) { margin-top: 2.5rem; }
  .lg\:text-\[2\.6rem\] { font-size: 2.6rem; line-height: 1.14; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .crss-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .animate-marquee,
  .crss-stepper-beam {
    animation: none !important;
  }
}

/* ==========================================================================
   10. UNIFIED SECONDARY PAGES DESIGN SYSTEM (v3.2 — WLV2, FORMS, DOCS, VECTOR)
   ========================================================================== */

/* 10.1 .wlv2 Pillar Service Landing Pages (Warm Alabaster Light & Obsidian Dark) */
.wlv2 {
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.wlv2 h1,
.wlv2 h2,
.wlv2 h3,
.wlv2 h4 {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.wlv2 [id] {
  scroll-margin-top: 84px;
}

@media (max-width: 767px) {
  .wlv2 {
    padding-bottom: 76px;
  }
}

.wlv2 .s-hero {
  position: relative;
  background-color: var(--bg-page);
  color: var(--text-primary);
  padding: 2.75rem 0 3.5rem;
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}

.wlv2 .s-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
    linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 30%, transparent 100%);
}

@media (min-width: 1024px) {
  .wlv2 .s-hero {
    padding: 3.75rem 0 4.5rem;
  }
}

.wlv2 .s-hero > .ctn {
  position: relative;
  z-index: 1;
}

.wlv2 .s-proiecte,
.wlv2 .s-oferta,
.wlv2 .s-faq {
  background-color: var(--bg-alt);
  color: var(--text-primary);
  padding: 3.75rem 0 4.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wlv2 .s-beneficii,
.wlv2 .s-contact {
  background-color: var(--bg-page);
  color: var(--text-primary);
  padding: 3.75rem 0 4.25rem;
  border-bottom: 1px solid var(--border-subtle);
}

.wlv2 .s-faq {
  border-bottom: 0;
}

@media (min-width: 1024px) {
  .wlv2 .s-proiecte,
  .wlv2 .s-beneficii,
  .wlv2 .s-oferta,
  .wlv2 .s-contact {
    padding: 4.75rem 0 5.25rem;
  }
  .wlv2 .s-faq {
    padding: 4rem 0 5rem;
  }
}

.wlv2 .ctn {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .wlv2 .ctn { padding: 0 1.5rem; }
}

.wlv2 .ctn-narrow {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 640px) {
  .wlv2 .ctn-narrow { padding: 0 1.5rem; }
}

.wlv2 .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.25rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .wlv2 .hero-grid {
    grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
    gap: 3.25rem;
  }
}

.wlv2 .hero-media {
  display: flex;
  justify-content: center;
}

@media (min-width: 1024px) {
  .wlv2 .hero-media {
    justify-content: flex-end;
  }
}

.wlv2 .t-h1 {
  font-size: clamp(2rem, 3.5vw, 3.15rem);
  line-height: 1.09;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 1.15rem;
}

.wlv2 .t-h2 {
  font-size: clamp(1.625rem, 2.7vw, 2.4rem);
  line-height: 1.14;
  font-weight: 800;
  color: var(--text-primary);
}

.wlv2 .t-h3 {
  font-size: clamp(1.18rem, 1.5vw, 1.4rem);
  line-height: 1.26;
  font-weight: 700;
  color: var(--text-primary);
}

.wlv2 .t-body {
  font-size: 1.02rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.wlv2 .t-small {
  font-size: 0.9375rem;
  line-height: 1.58;
  color: var(--text-secondary);
}

.wlv2 .hero-accent {
  color: var(--brand-text);
  font-weight: 800;
}

.wlv2 .meta-dark,
.wlv2 .meta-light,
.wlv2 .meta-note {
  color: var(--text-muted);
}

/* Hero Price & Delivery Ledger Strip */
.wlv2 .hero-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 520px;
  margin-bottom: 1.35rem;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  box-shadow: var(--shadow-card);
}

@media (max-width: 479px) {
  .wlv2 .hero-ledger {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

.wlv2 .hero-ledger-cell + .wlv2 .hero-ledger-cell {
  border-left: 1px solid var(--border-subtle);
  padding-left: 0.65rem;
}

@media (max-width: 479px) {
  .wlv2 .hero-ledger-cell + .wlv2 .hero-ledger-cell {
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
    padding-left: 0;
    padding-top: 0.5rem;
  }
}

.wlv2 .hero-ledger-val {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.wlv2 .hero-ledger-val.is-brand { color: var(--brand-text); }
.wlv2 .hero-ledger-val.is-pos { color: var(--signal-pos); }

.wlv2 .hero-ledger-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.3;
  margin-top: 2px;
}

.wlv2 .hero-foot-strip {
  margin-top: 2.15rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.15rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.wlv2 .hero-foot-dot {
  color: var(--border-control);
}

/* Studio Showcase Card & Vector Module Frame (Zero fake Mac traffic-light dots) */
.wlv2 .hero-card {
  width: 100%;
  max-width: 550px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card-hover);
}

.wlv2 .hero-card-chrome {
  background-color: var(--bg-passepartout);
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.wlv2 .hero-card-bottom {
  padding: 0.8rem 1.05rem;
  background-color: var(--bg-surface-muted);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
}

.wlv2 .wlv2-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 0;
  padding: 0;
  cursor: pointer;
  background-color: var(--border-control);
  transition: width 200ms ease, background-color 200ms ease;
}

.wlv2 .wlv2-dot.is-active {
  width: 20px;
  background-color: var(--brand-primary);
}

/* Centered Flexbox Grid for 3, 4, 5, or 6 Cards (Centers Incomplete Last Row!) */
.wlv2 .proj-3col {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}

.wlv2 .proj-3col > * {
  flex: 0 1 100%;
  width: 100%;
}

@media (min-width: 768px) {
  .wlv2 .proj-3col > * {
    flex: 0 1 calc(50% - 0.75rem);
    width: calc(50% - 0.75rem);
  }
}

@media (min-width: 1024px) {
  .wlv2 .proj-3col > * {
    flex: 0 1 calc(33.333% - 1rem);
    width: calc(33.333% - 1rem);
  }
}

/* Project, Benefit, Offer & Package Cards */
.wlv2 .proj-card,
.wlv2 .pc-navy,
.wlv2 .pc-white {
  background-color: var(--bg-surface);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1),
              border-color 180ms ease,
              box-shadow 180ms ease;
}

.wlv2 .proj-card:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card-hover);
}

.wlv2 .proj-card-body {
  padding: 1.2rem 1.3rem 1.35rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.wlv2 .proj-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 1.15rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--border-subtle);
  margin-bottom: 0.75rem;
}

.wlv2 .proj-metric-val {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-weight: 800;
  font-size: 0.95rem;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
}

.wlv2 .proj-metric-val.is-brand { color: var(--brand-text); }
.wlv2 .proj-metric-val.is-pos { color: var(--signal-pos); }
.wlv2 .proj-metric-val.is-warn { color: var(--signal-warn); }

.wlv2 .proj-metric-sub {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.wlv2 .proj-link {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--brand-text);
  text-decoration: none;
  margin-top: auto;
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: gap 160ms ease;
}

.wlv2 .proj-link:hover {
  gap: 0.55rem;
}

.wlv2 .ben-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 180ms ease;
}

.wlv2 .ben-card:hover {
  border-color: var(--brand-border);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.wlv2 .pkg-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 15px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.wlv2 .pkg-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.wlv2 .pkg-card-featured {
  background-color: var(--bg-surface-elevated);
  border: 2px solid var(--brand-primary);
  border-radius: 16px;
  padding: 1.45rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card-hover);
  position: relative;
}

.wlv2 .pkg-price-box {
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 11px;
  padding: 0.8rem 0.95rem;
  margin-bottom: 1rem;
}

.wlv2 .pkg-card-featured .pkg-price-box {
  background-color: var(--brand-tint);
  border-color: var(--brand-border);
}

.wlv2 .pkg-price-val {
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brand-text);
  font-variant-numeric: tabular-nums;
}

.wlv2 .offer-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.65rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .wlv2 .offer-card { padding: 2.25rem; }
}

.wlv2 .offer-price-badge {
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: 12px;
  padding: 0.7rem 1.15rem;
  text-align: right;
  flex-shrink: 0;
}

.wlv2 .benefits-grid {
  padding: 1.35rem 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem 1.25rem;
  font-size: 0.885rem;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .wlv2 .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .wlv2 .benefits-grid { grid-template-columns: repeat(3, 1fr); }
}

.wlv2 .step-row {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 1rem 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
  box-shadow: var(--shadow-card);
}

@media (min-width: 640px) {
  .wlv2 .step-row {
    flex-direction: row;
    align-items: center;
    gap: 1rem;
  }
}

.wlv2 .step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--brand-text);
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-border);
  border-radius: 7px;
  padding: 0.3rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.wlv2 .guarantee-strip {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  padding: 0.95rem 1.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-size: 0.825rem;
  color: var(--text-secondary);
}

/* Contact Grid, DB-First Form Card & Inline WhatsApp Callback Box */
.wlv2 .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .wlv2 .contact-grid {
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    gap: 3.5rem;
    align-items: center;
  }
}

.wlv2 .form-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: var(--shadow-card-hover);
}

@media (min-width: 640px) {
  .wlv2 .form-card { padding: 2rem; }
}

.wlv2 .form-card label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.wlv2 .form-card input[type="text"],
.wlv2 .form-card input[type="tel"],
.wlv2 .form-card input[type="email"],
.wlv2 .form-card textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.9375rem;
  font-family: 'DM Sans', sans-serif;
  transition: border-color 160ms ease, box-shadow 160ms ease;
  min-height: 44px;
  box-sizing: border-box;
}

.wlv2 .form-card input:focus,
.wlv2 .form-card textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.wlv2 .form-card input::placeholder,
.wlv2 .form-card textarea::placeholder {
  color: var(--text-muted);
}

.wlv2 .form-card textarea {
  resize: vertical;
  min-height: 76px;
}

.wlv2 .crss-inline-wa-box {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 13px;
  background-color: var(--bg-surface);
  border: 1px solid var(--signal-pos-border);
  max-width: 470px;
  box-shadow: var(--shadow-card);
  transition: border-color 200ms ease, box-shadow 200ms ease;
}

.wlv2 .crss-inline-wa-phone {
  flex: 1;
  min-width: 155px;
  padding: 0.55rem 0.8rem;
  border-radius: 9px;
  border: 1px solid var(--border-input);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.875rem;
  min-height: 42px;
}

.wlv2 .crss-inline-wa-phone:focus {
  outline: none;
  border-color: var(--signal-pos);
  box-shadow: 0 0 0 3px var(--signal-pos-bg);
}

/* Tactile Buttons & Guaranteed Spacing inside .wlv2 */
.wlv2 .btn-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

@media (max-width: 639px) {
  .wlv2 .btn-row {
    gap: 0.75rem;
  }
}

.wlv2 .btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.35rem;
  border-radius: 10px;
  background-color: var(--brand-primary);
  color: var(--text-on-brand);
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1px solid var(--brand-primary-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24),
              0 2px 6px rgba(29, 78, 216, 0.22);
  cursor: pointer;
  text-decoration: none;
  min-height: 45px;
  transition: background-color 170ms ease, transform 160ms ease, box-shadow 170ms ease;
}

.wlv2 .btn-primary:hover {
  background-color: var(--brand-primary-hover);
  color: var(--text-on-brand);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28),
              0 8px 18px -4px rgba(29, 78, 216, 0.34);
}

.wlv2 .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  background-color: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1.5px solid var(--border-control);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45),
              0 1px 2px rgba(24, 24, 27, 0.05);
  cursor: pointer;
  text-decoration: none;
  min-height: 45px;
  transition: background-color 170ms ease, border-color 170ms ease, transform 160ms ease;
}

html[data-theme="dark"] .wlv2 .btn-secondary {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06),
              0 1px 2px rgba(0, 0, 0, 0.35);
}

.wlv2 .btn-secondary:hover {
  background-color: var(--bg-surface-muted);
  border-color: var(--text-muted);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.wlv2 .btn-wa,
a.crss-btn-wa,
button.crss-btn-wa,
.crss-btn-wa {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.72rem 1.25rem;
  border-radius: 10px;
  background-color: #047857;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1.25;
  border: 1px solid #065f46;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2),
              0 2px 6px rgba(4, 120, 87, 0.22);
  cursor: pointer;
  text-decoration: none;
  min-height: 45px;
  transition: background-color 170ms ease, transform 160ms ease;
}

.wlv2 .btn-wa:hover,
a.crss-btn-wa:hover,
button.crss-btn-wa:hover,
.crss-btn-wa:hover {
  background-color: #065f46;
  color: #ffffff;
  transform: translateY(-1px);
}

/* Tags & Semantic Studio Chips */
.wlv2 .tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.69rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
}

.wlv2 .tag-blue-dark,
.wlv2 .tag-blue-light {
  color: var(--brand-text);
  background-color: var(--brand-tint);
  border: 1px solid var(--brand-border);
}

.wlv2 .tag-emerald {
  color: var(--signal-pos);
  background-color: var(--signal-pos-bg);
  border: 1px solid var(--signal-pos-border);
}

.wlv2 .tag-amber {
  color: var(--signal-warn);
  background-color: var(--signal-warn-bg);
  border: 1px solid var(--signal-warn-border);
}

.wlv2 .checkmark {
  color: var(--brand-text);
  font-weight: 800;
  flex-shrink: 0;
}

.wlv2 .more-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: none;
  border: none;
  color: var(--brand-text);
  font-size: 0.825rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0.4rem 0;
  font-family: 'DM Sans', sans-serif;
  min-height: 44px;
}

.wlv2 .more-toggle:hover {
  text-decoration: underline;
}

/* Accessible FAQ Accordion (.wlv2 & global .crss-faq-*) */
.wlv2 .faq-item,
.crss-faq-item {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.wlv2 .faq-item:hover,
.crss-faq-item:hover {
  border-color: var(--border-strong);
}

.wlv2 .faq-item.open,
.crss-faq-item.open {
  border-color: var(--brand-border);
  box-shadow: var(--shadow-card);
}

.wlv2 .faq-btn,
.crss-faq-btn {
  width: 100%;
  padding: 1.05rem 1.25rem;
  text-align: left;
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  font-family: 'Plus Jakarta Sans', 'DM Sans', sans-serif;
  min-height: 48px;
}

@media (min-width: 640px) {
  .wlv2 .faq-btn,
  .crss-faq-btn {
    font-size: 1.05rem;
    padding: 1.15rem 1.45rem;
  }
}

.wlv2 .faq-btn:hover,
.crss-faq-btn:hover {
  color: var(--brand-text);
}

.wlv2 .faq-icon,
.crss-faq-icon {
  font-size: 1.35rem;
  line-height: 1;
  color: var(--brand-text);
  transition: transform 200ms cubic-bezier(0.2, 0.8, 0.2, 1);
  flex-shrink: 0;
}

.wlv2 .faq-item.open .faq-icon,
.crss-faq-item.open .crss-faq-icon {
  transform: rotate(45deg);
}

.wlv2 .faq-body,
.crss-faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wlv2 .faq-item.open .faq-body,
.crss-faq-item.open .crss-faq-body {
  max-height: 640px;
}

.wlv2 .faq-body-inner,
.crss-faq-body-inner {
  padding: 0 1.25rem 1.15rem;
  font-size: 0.9375rem;
  line-height: 1.64;
  color: var(--text-secondary);
}

@media (min-width: 640px) {
  .wlv2 .faq-body-inner,
  .crss-faq-body-inner {
    padding: 0 1.45rem 1.25rem;
  }
}

.wlv2 .sr {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
              transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wlv2 .sr.sr-v {
  opacity: 1;
  transform: translateY(0);
}

.wlv2 .sr-d1 { transition-delay: 0.05s; }
.wlv2 .sr-d2 { transition-delay: 0.1s; }
.wlv2 .sr-d3 { transition-delay: 0.15s; }
.wlv2 .sr-d4 { transition-delay: 0.2s; }

/* 10.2 Native Vector Architecture Diagrams (WebApp, ERP, AI, Ecom, Ads, IoT) */
.crss-arch-diagram {
  padding: 1.1rem;
  background-color: var(--bg-page);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.crss-arch-node {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--brand-primary);
  border-radius: 11px;
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  box-shadow: var(--shadow-card);
}

.crss-arch-node.is-pos {
  border-left-color: var(--signal-pos);
}

.crss-arch-node.is-warn {
  border-left-color: var(--signal-warn);
}

.crss-arch-connector {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-left: 1rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--text-muted);
}

.crss-arch-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.68rem;
  font-weight: 700;
  background-color: var(--bg-surface-muted);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  white-space: nowrap;
}

/* 10.3 Floating Label Inputs (Rule 3.9), Form Wizard & Calendar Slots */
.crss-float-field {
  position: relative;
}

input.crss-float-input,
textarea.crss-float-input,
select.crss-float-input,
.crss-float-input {
  width: 100%;
  padding: 1.1rem 0.95rem 0.5rem;
  border-radius: 10px;
  border: 1px solid var(--border-input);
  background-color: var(--bg-page);
  color: var(--text-primary);
  font-size: 0.95rem;
  line-height: 1.4;
  min-height: 50px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.crss-float-input:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-tint);
}

.crss-float-label {
  position: absolute;
  left: 0.85rem;
  top: 0.92rem;
  padding: 0 0.3rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  background-color: transparent;
  pointer-events: none;
  transform-origin: left top;
  transition: transform 150ms cubic-bezier(0.2, 0.8, 0.2, 1),
              color 150ms ease,
              background-color 150ms ease,
              top 150ms ease;
}

.crss-float-input:focus ~ .crss-float-label,
.crss-float-input:not(:placeholder-shown) ~ .crss-float-label {
  top: -0.52rem;
  transform: scale(0.78);
  background-color: var(--bg-surface);
  color: var(--brand-text);
  font-weight: 700;
}

.crss-wizard-steps {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  position: relative;
  margin-bottom: 1.75rem;
}

.crss-wizard-node {
  width: 34px;
  height: 34px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1.5px solid var(--border-control);
  background-color: var(--bg-page);
  color: var(--text-muted);
  transition: all 180ms ease;
}

.crss-wizard-node.is-active {
  background-color: var(--brand-primary);
  border-color: var(--brand-primary);
  color: #ffffff;
  box-shadow: 0 0 0 4px var(--brand-tint);
}

.crss-wizard-node.is-done {
  background-color: var(--signal-pos);
  border-color: var(--signal-pos);
  color: #ffffff;
}

.crss-radio-card {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: 11px;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-page);
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.crss-radio-card:hover {
  border-color: var(--border-control);
  background-color: var(--bg-surface-hover);
}

.crss-radio-card:has(input:checked),
.crss-radio-card.is-selected {
  border-color: var(--brand-primary);
  background-color: var(--brand-tint);
}

.crss-cal-box {
  background-color: var(--bg-page);
  border: 1px solid var(--border-subtle);
  border-radius: 13px;
  padding: 1rem;
}

button.crss-cal-day,
.crss-cal-day {
  min-height: 38px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 140ms ease;
}

button.crss-cal-day:hover:not(:disabled) {
  border-color: var(--brand-primary);
  color: var(--brand-text);
}

button.crss-cal-day.is-selected {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}

button.crss-cal-day:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  background-color: transparent;
}

button.crss-slot-btn,
.crss-slot-btn {
  min-height: 40px;
  padding: 0.45rem 0.5rem;
  border-radius: 9px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 140ms ease;
}

button.crss-slot-btn:hover {
  border-color: var(--brand-primary);
  color: var(--brand-text);
}

button.crss-slot-btn.is-selected {
  background-color: var(--brand-primary) !important;
  border-color: var(--brand-primary) !important;
  color: #ffffff !important;
}

.crss-dropzone {
  border: 1.5px dashed var(--border-control);
  border-radius: 13px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  background-color: var(--bg-page);
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease;
}

.crss-dropzone:hover,
.crss-dropzone.is-dragover {
  border-color: var(--brand-primary);
  background-color: var(--brand-tint);
}

/* 10.4 Editorial Legal, About, 404 & Package Switcher Components */
.crss-doc-shell {
  max-width: 52rem;
  margin-inline: auto;
}

.crss-doc-prose h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 0.65rem;
}

.crss-doc-prose p,
.crss-doc-prose li {
  color: var(--text-secondary);
  line-height: 1.7;
  font-size: 0.96rem;
}

.crss-pkg-nav {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem;
  border-radius: 12px;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

.crss-pkg-nav a {
  padding: 0.42rem 0.9rem;
  border-radius: 8px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.crss-pkg-nav a:hover {
  color: var(--text-primary);
  background-color: var(--bg-surface-muted);
}

.crss-pkg-nav a.is-current {
  background-color: var(--brand-primary);
  color: #ffffff;
}

/* 10.5 Verified Utility Supplement (v3.2 — Zero Missing Classes Guarantee) */
.pt-1 { padding-top: 0.25rem; }
.pb-5 { padding-bottom: 1.25rem; }
.my-2\.5 { margin-top: 0.625rem; margin-bottom: 0.625rem; }
.mx-1\.5 { margin-left: 0.375rem; margin-right: 0.375rem; }
.ml-1\.5 { margin-left: 0.375rem; }
.gap-3\.5 { gap: 0.875rem; }
.gap-x-5 { column-gap: 1.25rem; }
.gap-y-2 { row-gap: 0.5rem; }
.space-y-14 > :not([hidden]) ~ :not([hidden]) { margin-top: 3.5rem; }
.self-start { align-self: flex-start; }
.border-b-0 { border-bottom-width: 0px; }
.bottom-5 { bottom: 1.25rem; }
.top-5 { top: 1.25rem; }
.left-6 { left: 1.5rem; }
.object-left-top { object-position: left top; }
.tabular-nums { font-variant-numeric: tabular-nums; }
.max-w-\[300px\] { max-width: 300px; }
.crss-mobile-conv-bar { padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px)); }

@media (min-width: 640px) {
  .sm\:p-7 { padding: 1.75rem; }
  .sm\:p-8 { padding: 2rem; }
  .sm\:p-12 { padding: 3rem; }
  .sm\:text-xl { font-size: 1.25rem; line-height: 1.75rem; }
  .sm\:text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
}

@media (min-width: 768px) {
  .md\:w-40 { width: 10rem; }
}

@media (min-width: 1024px) {
  .lg\:flex-row { flex-direction: row; }
  .lg\:items-center { align-items: center; }
  .lg\:py-16 { padding-top: 4rem; padding-bottom: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  .wlv2 .sr {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
