/* ==========================================================================
   MYRH V2.0 - ULTRA-MODERN TECH & BENTO GRID DESIGN SYSTEM
   Inspired by Linear, Vercel & Apple Pro
   ========================================================================== */

/* Fonts are self-hosted (assets/fonts) – no third-party requests, GDPR friendly */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* Colors */
  --bg-primary: #07090e;
  --bg-secondary: #0c0f17;
  --bg-tertiary: #121722;
  --bg-elevated: #181f2e;
  
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: rgba(56, 189, 248, 0.4);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-inverse: #07090e;
  
  /* Brand Accents */
  --accent-cyan: #38bdf8;
  --accent-blue: #3b82f6;
  --accent-indigo: #6366f1;
  --accent-purple: #a855f7;
  --accent-emerald: #10b981;
  --accent-lime: #84cc16;
  
  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #6366f1 50%, #a855f7 100%);
  --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.01) 100%);
  --gradient-glow: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  
  /* Typography */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
  
  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4.5rem;
  --space-4xl: 6rem;
  
  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  
  /* Shadows & Glass */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 35px rgba(56, 189, 248, 0.2);
  --backdrop-blur: blur(16px);
  
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: clip !important;
  max-width: 100% !important;
  width: 100% !important;
  margin: 0;
  padding: 0;
  position: relative;
  touch-action: pan-y;
}

h1, h2, h3, h4, h5, h6 {
  line-height: 1.2;
  text-wrap: balance;
}

/* Site Viewport Container (Guarantees zero horizontal overflow across entire layout) */
.site-viewport-container {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
  position: relative;
}

/* Subtle background grid & ambient light */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(circle at 50% 20%, black, transparent 85%);
  -webkit-mask-image: radial-gradient(circle at 50% 20%, black, transparent 85%);
  pointer-events: none;
  z-index: 0;
}

/* Background Ambient Wrapper (Disabled: Eliminates ambient glow interference on site and cards) */
.ambient-glow-wrapper,
.ambient-glow-top,
.ambient-glow-middle {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--space-xl);
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast);
}

ul {
  list-style: none;
}

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

/* ==========================================================================
   FLOATING PILL NAVBAR
   ========================================================================== */
.modern-header {
  position: fixed;
  top: 20px;
  left: 0;
  width: 100%;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 var(--space-md);
  pointer-events: none;
}

.navbar-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-xl);
  background: rgba(12, 15, 23, 0.75);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-medium);
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(255, 255, 255, 0.03);
  padding: 8px 12px 8px 18px;
  border-radius: var(--radius-full);
  max-width: 1080px;
  width: 100%;
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

.navbar-pill:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img-modern {
  height: var(--logo-h);
  width: auto;
  max-width: var(--logo-max-w);
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
  transition: transform var(--transition-fast), filter var(--transition-fast);
}

.footer-logo-modern {
  height: 62px;
  max-width: 220px;
}

.logo-wrapper:hover .logo-img-modern {
  transform: scale(1.02);
  filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.5));
}

.logo-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-item {
  position: relative;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.nav-link.active {
  font-weight: 600;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu-modern {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: rgba(12, 15, 23, 0.95);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-medium);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.1);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 250px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 1000;
}

/* Invisible bridge so mouse hover is never lost across the 12px gap */
.dropdown-menu-modern::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  width: 100%;
  height: 14px;
}

.nav-dropdown:hover .dropdown-menu-modern,
.nav-dropdown:focus-within .dropdown-menu-modern,
.nav-dropdown.open .dropdown-menu-modern {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.dropdown-item-modern {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all var(--transition-fast);
}

.dropdown-item-modern:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-nav-cta {
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.15), rgba(99, 102, 241, 0.2));
  color: #fff;
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-cta:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.28), rgba(99, 102, 241, 0.35));
  border-color: rgba(56, 189, 248, 0.6);
  transform: translateY(-1px);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.3);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn-primary {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: var(--text-primary);
  color: var(--text-inverse);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 20px rgba(255, 255, 255, 0.15);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(255, 255, 255, 0.25);
  background: #ffffff;
}

.btn-secondary {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 13px 26px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--accent-emerald);
  box-shadow: 0 0 10px var(--accent-emerald);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-tech {
  padding-top: calc(var(--space-4xl) + 50px);
  padding-bottom: var(--space-4xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-headline {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

.hero-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.28rem);
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: var(--space-2xl);
  line-height: 1.6;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  margin-bottom: var(--space-3xl);
  flex-wrap: wrap;
}

/* ==========================================================================
   INTERACTIVE TECH CONSOLE / TERMINAL (HERO SHOWCASE)
   ========================================================================== */
.hero-console-container {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  background: rgba(12, 15, 23, 0.85);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(56, 189, 248, 0.08);
  overflow: hidden;
  text-align: left;
  transition: border-color var(--transition-smooth);
}

.hero-console-container:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.console-tab-btn {
  background: none;
  border: 1px solid transparent;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}

.console-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.console-tab-btn.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: rgba(56, 189, 248, 0.3);
}

.console-panel {
  display: none;
  padding: var(--space-xl);
}

.console-panel.active {
  display: block;
}

/* Panel 2: n8n Node Workflow */
.n8n-flow-visual {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md) 0;
  overflow-x: auto;
}

@keyframes flow-pulse {
  0%, 100% { opacity: 0.4; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

/* Bento Grid System */

.bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bento-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.05), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.bento-card:hover {
  border-color: var(--border-medium);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-card:hover::before {
  opacity: 1;
}

/* ==========================================================================
   PORTFOLIO & CASE STUDIES SHOWCASE
   ========================================================================== */

.filter-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 8px 20px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--border-medium);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.filter-pill-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 700;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.filter-pill-btn .filter-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: inherit;
}

.filter-pill-btn.active .filter-count {
  background: rgba(0, 0, 0, 0.15);
  color: #000;
}

/* ==========================================================================
   ADVANCED BENTO PORTFOLIO SHOWCASE
   ========================================================================== */

.portfolio-card-bento {
  background: rgba(18, 23, 34, 0.7);
  backdrop-filter: var(--backdrop-blur);
  -webkit-backdrop-filter: var(--backdrop-blur);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

.portfolio-card-bento:hover {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 30px rgba(56, 189, 248, 0.12);
}

.portfolio-card-bento::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(56, 189, 248, 0.08), transparent 40%);
  pointer-events: none;
  z-index: 1;
}

@media (max-width: 1024px) {
  
  .portfolio-card-bento {
    grid-column: span 1 !important;
  }
}

.project-card-modern {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-smooth);
  display: flex;
  flex-direction: column;
}

.project-card-modern:hover {
  border-color: var(--border-active);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 25px rgba(56, 189, 248, 0.12);
}

/* ==========================================================================
   PRICING & RETAIER TEASER
   ========================================================================== */

.pricing-tech-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition-smooth);
}

/* ==========================================================================
   CALL TO ACTION BANNER (BOOKING / CONSULTATION)
   ========================================================================== */
.cta-tech-banner {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.12) 0%, rgba(99, 102, 241, 0.12) 50%, rgba(168, 85, 247, 0.1) 100%);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-tech-banner::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 250px;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25), transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.cta-banner-title {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-sm);
}

.cta-banner-text {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto var(--space-xl) auto;
}

.cta-banner-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

/* ==========================================================================
   MODERN TECH FOOTER
   ========================================================================== */
.modern-footer {
  border-top: 1px solid var(--border-subtle);
  background: #05070a;
  padding: var(--space-4xl) 0 var(--space-2xl) 0;
  position: relative;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-3xl);
}

.footer-brand-col {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.footer-bio {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
}

.footer-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  width: fit-content;
}

.footer-heading {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-lg);
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link-item a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--text-primary);
}

.footer-socials {
  display: flex;
  gap: 12px;
}

.social-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: all var(--transition-fast);
}

.social-icon-btn:hover {
  color: #fff;
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}

/* Desktop / Mobile Footer Visibility Toggles */
.footer-desktop-view {
  display: grid;
}

.footer-mobile-view {
  display: none !important;
}

/* ==========================================================================
   DEDICATED SLEEK MOBILE FOOTER CARD
   ========================================================================== */

.f-mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.f-mob-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.f-mob-logo {
  height: 42px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  display: block;
}

.f-mob-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
}

/* 2-Column Links Grid */
.f-mob-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 18px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 18px;
}

.f-mob-nav-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.f-mob-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.f-mob-nav-list a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  display: inline-block;
  padding: 2px 0;
  transition: color var(--transition-fast);
}

.f-mob-nav-list a:hover {
  color: var(--text-primary);
}

/* Social Row */
.f-mob-social-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px dashed var(--border-subtle);
}

.f-mob-social-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  font-weight: 500;
}

.f-mob-social-icons {
  display: flex;
  gap: 10px;
}

/* Micro Bottom */
.f-mob-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.f-mob-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* ==========================================================================
   MOBILE DRAWER NAVIGATION
   ========================================================================== */
body.drawer-locked {
  overflow: hidden !important;
  touch-action: none;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  transition: visibility 0.25s ease, opacity 0.25s ease;
}

.mobile-drawer.open {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 6, 10, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.mobile-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(85vw, 360px);
  background: #0a0d14;
  border-left: 1px solid var(--border-medium);
  box-shadow: -12px 0 40px rgba(0, 0, 0, 0.7);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 20px;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow-y: auto;
  z-index: 1001;
}

.mobile-drawer.open .mobile-drawer-panel {
  transform: translateX(0);
}

.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.mobile-drawer-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-drawer-close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--border-medium);
}

.mobile-drawer-nav {
  padding: 24px 0;
  flex-grow: 1;
}

.mobile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mobile-nav-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  border: 1px solid transparent;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--border-subtle);
}

.mobile-nav-link .nav-arrow {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  opacity: 0.8;
}

.mobile-drawer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mobile-cta-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
}

.mobile-info-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.mobile-info-footer a {
  color: var(--accent-cyan);
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES (TABLET & MOBILE)
   ========================================================================== */
@media (max-width: 1024px) {
  
  [class*="col-span-"] {
    grid-column: span 1 !important;
  }
  .bento-card {
    padding: 26px 20px !important;
  }
  
  
  
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
  }
}

@media (max-width: 768px) {
  html, body {
    overflow-x: clip !important;
    max-width: 100% !important;
    width: 100% !important;
  }
  .container {
    padding: 0 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: clip;
  }
  .modern-header {
    position: fixed;
    top: 10px;
    left: 0;
    right: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 12px;
    box-sizing: border-box;
    display: flex;
    justify-content: center;
  }
  .navbar-pill {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: 7px 12px;
    gap: 8px;
    justify-content: space-between;
  }
  .nav-links, .nav-actions {
    display: none !important;
  }
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    cursor: pointer;
    transition: all var(--transition-fast);
  }
  .mobile-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--border-medium);
  }
  .hero-tech {
    padding-top: 92px;
    padding-bottom: 36px;
    overflow-x: clip;
  }
  .hero-inner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
  }
  .hero-headline {
    font-size: clamp(1.85rem, 7.5vw, 2.5rem);
    letter-spacing: -0.03em;
    margin-bottom: 14px;
    word-break: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    width: 100%;
  }
  .hero-lead {
    font-size: 0.95rem;
    line-height: 1.55;
    margin-bottom: 24px;
    width: 100%;
  }
  
  .hero-actions {
    flex-direction: column;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    gap: 10px;
    margin-bottom: 30px;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    justify-content: center;
    padding: 12px 18px;
    font-size: 0.92rem;
  }
  .hero-console-container {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    border-radius: var(--radius-md);
    overflow: hidden;
  }
  
  
  
  .console-tab-btn {
    font-size: 0.72rem;
    padding: 6px 10px;
    flex-shrink: 0;
    white-space: nowrap;
  }
  .console-panel {
    padding: 14px 12px;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    overflow: hidden;
  }
  
  
  
  
  
  .n8n-flow-visual {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 0;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }
  
  
  
  
  
  
  
  
  
  
  
  .bento-card {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden;
    padding: 20px 16px !important;
  }
  
  
  
  
  
  
  
  .project-card-modern {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  
  
  
  .pricing-tech-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 22px 16px !important;
  }
  
  .cta-tech-banner {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: 28px 16px !important;
    overflow: hidden;
  }
  .cta-banner-title {
    font-size: 1.55rem;
    word-break: break-word;
  }
  .cta-banner-text {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .cta-banner-btns {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .cta-banner-btns .btn-primary,
  .cta-banner-btns .btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    justify-content: center;
  }
  .modern-footer {
    padding: 30px 0 20px 0;
  }
  .footer-desktop-view {
    display: none !important;
  }
  .footer-mobile-view {
    display: block !important;
  }
}

/* Interactive Founder Tech & Identity Card (about.html) */

.founder-console-box {
  padding: 18px 20px;
  background: rgba(8, 11, 17, 0.92);
  --sol-accent: #38bdf8;
  --sol-accent-rgb: 56, 189, 248;
}

/* Timeline High-Tech Cards */

.timeline-card-modern {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all var(--transition-fast);
}

.timeline-card-modern:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
  box-shadow: var(--shadow-md), 0 0 20px rgba(56, 189, 248, 0.08);
}

/* Skills Bento Matrix */

.skill-category-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 28px;
  position: relative;
  overflow: hidden;
}

/* Values Bento Grid */

.value-bento-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: all var(--transition-fast);
}

.value-bento-card:hover {
  border-color: var(--border-active);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md), 0 0 24px rgba(56, 189, 248, 0.08);
}

/* ==========================================================================
   QUOTE / BOOKING / CONTACT MODERN FORMS
   ========================================================================== */
.modern-form-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 36px 32px;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(56, 189, 248, 0.05);
  position: relative;
  overflow: hidden;
}

.modern-form-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
}

.modern-input-group {
  margin-bottom: 20px;
}

.modern-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.modern-input,
.modern-textarea {
  width: 100%;
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 13px 16px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  outline: none;
  box-sizing: border-box;
}

.modern-input:focus,
.modern-textarea:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
  background: rgba(12, 15, 23, 0.95);
}

/* Custom Titanium Dark Select Dropdowns */
select,
.modern-select {
  width: 100%;
  display: block;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-color: #0c1017 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: calc(100% - 18px) center !important;
  background-size: 16px 16px !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-md) !important;
  padding: 14px 48px 14px 18px !important;
  color: var(--text-primary) !important;
  font-family: var(--font-sans) !important;
  font-size: 0.95rem !important;
  font-weight: 500 !important;
  line-height: 1.5 !important;
  cursor: pointer !important;
  transition: all var(--transition-fast) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.04) !important;
  outline: none !important;
  box-sizing: border-box !important;
}

select:hover,
.modern-select:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background-color: #101624 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.14), inset 0 1px 1px rgba(255, 255, 255, 0.08) !important;
}

select:focus,
.modern-select:focus {
  border-color: var(--accent-cyan) !important;
  background-color: #121a2c !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 0 20px rgba(56, 189, 248, 0.25) !important;
}

select option,
.modern-select option {
  background-color: #0c1017 !important;
  color: #f8fafc !important;
  font-size: 0.95rem !important;
  padding: 12px 16px !important;
}

select option:checked,
.modern-select option:checked {
  background-color: #162032 !important;
  color: var(--accent-cyan) !important;
}

select option:disabled,
.modern-select option:disabled {
  color: #64748b !important;
  font-style: italic !important;
}

.modern-textarea {
  min-height: 120px;
  resize: vertical;
}

/* ==========================================================================
   MODERN DATE PICKER & HIGH-CONTRAST CALENDAR INDICATOR
   ========================================================================== */
input[type="date"],
.modern-input[type="date"] {
  color-scheme: dark !important;
  direction: ltr !important;
  text-align: left !important;
  cursor: pointer !important;
  font-family: var(--font-sans) !important;
  font-size: 0.98rem !important;
  font-weight: 600 !important;
  color: #f8fafc !important;
  background-color: #0c1017 !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-md) !important;
  padding: 13px 18px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  transition: all var(--transition-fast) !important;
  position: relative;
  box-sizing: border-box !important;
}

input[type="date"]:hover,
.modern-input[type="date"]:hover {
  border-color: rgba(56, 189, 248, 0.5) !important;
  background-color: #101624 !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.14) !important;
}

input[type="date"]:focus,
.modern-input[type="date"]:focus {
  border-color: var(--accent-cyan) !important;
  background-color: #121a2c !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.22), 0 0 20px rgba(56, 189, 248, 0.25) !important;
  outline: none !important;
}

/* Custom Neon Cyan Calendar Picker Indicator Button */
input[type="date"]::-webkit-calendar-picker-indicator,
.modern-input[type="date"]::-webkit-calendar-picker-indicator {
  cursor: pointer !important;
  opacity: 1 !important;
  display: inline-block !important;
  width: 24px !important;
  height: 24px !important;
  padding: 5px !important;
  border-radius: 6px !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='22' height='22' viewBox='0 0 24 24' fill='none' stroke='%2338bdf8' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3Ccircle cx='8' cy='14' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3Ccircle cx='12' cy='14' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3Ccircle cx='16' cy='14' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3Ccircle cx='8' cy='18' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3Ccircle cx='12' cy='18' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3Ccircle cx='16' cy='18' r='1.2' fill='%2338bdf8'%3E%3C/circle%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: 18px 18px !important;
  background-color: rgba(56, 189, 248, 0.15) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2) !important;
  transition: all var(--transition-fast) !important;
}

input[type="date"]::-webkit-calendar-picker-indicator:hover,
.modern-input[type="date"]::-webkit-calendar-picker-indicator:hover {
  background-color: rgba(56, 189, 248, 0.3) !important;
  border-color: var(--accent-cyan) !important;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45) !important;
  transform: scale(1.08);
}

/* Crisp high-contrast date field text */
input[type="date"]::-webkit-datetime-edit {
  color: #f8fafc !important;
  font-weight: 600 !important;
  padding: 2px 0 !important;
}

input[type="date"]::-webkit-datetime-edit-fields-wrapper {
  padding: 0 !important;
}

input[type="date"]::-webkit-datetime-edit-text {
  color: var(--accent-cyan) !important;
  font-weight: 700 !important;
  padding: 0 5px !important;
}

input[type="date"]::-webkit-datetime-edit-month-field,
input[type="date"]::-webkit-datetime-edit-day-field,
input[type="date"]::-webkit-datetime-edit-year-field {
  color: #f8fafc !important;
  font-weight: 600 !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
}

input[type="date"]::-webkit-datetime-edit-month-field:focus,
input[type="date"]::-webkit-datetime-edit-day-field:focus,
input[type="date"]::-webkit-datetime-edit-year-field:focus {
  background-color: rgba(56, 189, 248, 0.3) !important;
  color: #ffffff !important;
  outline: none !important;
}

/* Contact Cards Grid */

.contact-direct-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.contact-direct-card:hover {
  border-color: var(--border-active);
  transform: translateX(4px);
  background: var(--bg-tertiary);
}

/* Responsive Overrides for New Pages */

@media (max-width: 600px) {
  
  .modern-form-card {
    padding: 24px 16px;
  }
  
  
}

/* Service Selection Cards Grid (Step 1) */

.service-card {
  background: rgba(18, 23, 34, 0.6);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-fast);
}

.service-card:hover {
  background: rgba(18, 23, 34, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.service-card.selected {
  background: rgba(18, 23, 34, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.2);
}

.service-card.selected::before {
  background: linear-gradient(90deg, var(--accent-cyan), var(--accent-indigo));
}

/* Service Options Grid (Step 2) */

.service-option-card {
  background: rgba(18, 23, 34, 0.6);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  position: relative;
}

.service-option-card:hover {
  background: rgba(18, 23, 34, 0.9);
  border-color: rgba(56, 189, 248, 0.4);
  transform: translateY(-2px);
}

.service-option-card.active {
  background: rgba(18, 23, 34, 0.95);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.2);
}

.service-option-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.service-option-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0 0 10px 0;
}

/* Booking summary output */
#summary {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Step Transitions */
@keyframes modernFormFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Service Grid (Step 1) */

.service-card {
  width: 100%;
  background: rgba(12, 15, 23, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 24px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12), transparent 70%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card.selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  box-shadow: 0 0 28px rgba(56, 189, 248, 0.22), 0 12px 28px rgba(0, 0, 0, 0.5) !important;
}

.service-card.selected::before {
  opacity: 1;
}

/* Specific Service Grid (Step 2) */

.service-option-card {
  background: rgba(12, 15, 23, 0.65);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.service-option-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(18, 22, 34, 0.8);
  transform: translateY(-2px);
}

.service-option-card.active {
  border-color: var(--accent-cyan) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

/* Radio Group (Step 1) */

.radio-card {
  display: block;
  background: rgba(12, 15, 23, 0.7);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 22px 24px;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.radio-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
}

.radio-card:has(input[type="radio"]:checked),
.radio-card.selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(15, 23, 42, 0.85) !important;
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.18), 0 12px 28px rgba(0, 0, 0, 0.4) !important;
}

/* Summary Card (Step 4) */
#summary {
  background: rgba(7, 9, 14, 0.85);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-xl);
  padding: 24px;
}

#summary h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 16px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
}

#summary ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#summary li {
  font-size: 0.94rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
}

#summary li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* ==========================================================================
   DROPDOWN MENU - 100% SOLID OPAQUE (NO BLEED-THROUGH)
   ========================================================================== */

.dropdown-menu-modern {
  position: absolute !important;
  top: calc(100% + 10px) !important;
  left: 50% !important;
  transform: translateX(-50%) translateY(8px) !important;
  background: #080b12 !important; /* Completely solid, zero translucency */
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.98), 0 0 30px rgba(56, 189, 248, 0.15) !important;
  border-radius: var(--radius-lg) !important;
  padding: 8px !important;
  min-width: 280px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  z-index: 999999 !important;
}

.nav-dropdown:hover .dropdown-menu-modern,
.nav-dropdown:focus-within .dropdown-menu-modern,
.nav-dropdown.open .dropdown-menu-modern {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateX(-50%) translateY(0) !important;
}

.dropdown-item-modern {
  padding: 9px 14px !important;
  font-size: 0.85rem !important;
  color: #cbd5e1 !important;
  border-radius: var(--radius-md) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: all 0.15s ease !important;
  background: transparent !important;
  border-left: 2px solid transparent !important;
  text-decoration: none !important;
}

.dropdown-item-modern:hover {
  color: #ffffff !important;
  background: rgba(56, 189, 248, 0.1) !important;
  border-left-color: var(--accent-cyan) !important;
  transform: translateX(4px) !important;
}

/* Active Dropdown Item: Clearly marks current open page */
.dropdown-item-modern.active {
  color: #ffffff;
  background: rgba(56, 189, 248, 0.12);
  font-weight: 600;
}

.dropdown-item-modern.active .dropdown-item-text {
  color: #ffffff;
}

/* active page: badge stays calm – cyan text, no fill (same weight as the other badges) */
.dropdown-item-modern.active .dropdown-item-badge {
  color: var(--accent-cyan);
}

.nav-dropdown .nav-link {
  cursor: pointer !important;
  user-select: none !important;
}

/* ==========================================================================
   Page & Footer Separation Safeguards
   ========================================================================== */
main > section:last-of-type {
  padding-bottom: 120px !important;
}

.cta-tech-banner {
  margin-bottom: 40px !important;
}

/* Solid Titanium Stat Cards - Zero Blur Bleed */

.case-stat-card {
  background: #0c1017 !important;
  border: 1px solid #1a2233 !important;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

.case-stat-card:hover {
  border-color: rgba(56, 189, 248, 0.4) !important;
  transform: translateY(-2px);
}

.case-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-cyan), transparent);
}

/* Solution Architecture Blueprint - Solid */
.solution-blueprint-box {
  background: #080b10 !important;
  border: 1px solid #1a2233 !important;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-top: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

/* Bento Deep-Dive Main Cards - Solid Titanium */
.case-card-bento {
  background: #0c1017 !important;
  border: 1px solid #1a2233 !important;
  border-radius: var(--radius-xl);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35) !important;
}

/* Sidebar Cards - Solid Titanium */
.case-sidebar-card {
  background: #0c1017 !important;
  border: 1px solid #1a2233 !important;
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35) !important;
}

/* Radiant Ambient Light Ray (تأثير شعاع الضوء العلوي) */

@keyframes beamRayPulse {
  0% { opacity: 0.55; transform: translateX(-50%) scale(0.92); }
  100% { opacity: 0.95; transform: translateX(-50%) scale(1.12); }
}

/* Cybernetic Travelling Border Beam (شعاع الحافة النبضي المتحرك) */

@keyframes borderBeamMove {
  0% { background-position: -200% 0; }
  50% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* ==========================================================================
   MYRH V2.0 - FAQ ACCORDION (Vanliga Frågor)
   ========================================================================== */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: rgba(12, 16, 23, 0.75) !important;
  border: 1px solid var(--border-medium) !important;
  border-radius: var(--radius-lg) !important;
  overflow: hidden;
  transition: border-color 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.35) !important;
  background: rgba(18, 24, 38, 0.85) !important;
}

.faq-item.active {
  border-color: var(--accent-cyan) !important;
  background: rgba(15, 23, 42, 0.95) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 16px rgba(56, 189, 248, 0.12) !important;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
  background: transparent !important;
  border: none !important;
  color: var(--text-primary) !important;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  transition: color 0.2s ease;
  gap: 16px;
  user-select: none;
}

.faq-question:hover {
  color: var(--accent-cyan) !important;
}

.faq-item.active .faq-question {
  color: var(--accent-cyan) !important;
}

.faq-toggle {
  font-size: 0.85rem;
  color: var(--accent-cyan);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.faq-item.active .faq-toggle {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;
  opacity: 0;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), padding 0.35s ease, opacity 0.28s ease;
}

.faq-answer p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.65;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 24px 22px 24px;
  opacity: 1;
}

/* Radio Card & Service Card Active States */

.service-option-card.selected {
  border-color: var(--accent-cyan) !important;
  background: rgba(15, 23, 42, 0.9) !important;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.18);
}

/* Interactive Challenge-to-Solution Diagnostic Console */
.sol-diagnostic-console {
  background: linear-gradient(165deg, rgba(16, 21, 33, 0.96) 0%, rgba(9, 12, 19, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 22px;
  padding: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6), 0 0 40px rgba(56, 189, 248, 0.08);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sol-diag-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 11px 14px;
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sol-diag-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.18);
}

.sol-diag-btn.active {
  background: rgba(56, 189, 248, 0.13);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  box-shadow: 0 4px 20px rgba(56, 189, 248, 0.15);
}

.sol-diag-pane {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.sol-diag-pane.active {
  display: block;
}

/* --- B. SOLUTIONS HUB: HORIZONTAL BLUEPRINT DOSSIER ROWS --- */

.sol-blueprint-row {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr) 300px;
  background: linear-gradient(180deg, rgba(16, 20, 30, 0.92) 0%, rgba(10, 13, 20, 0.96) 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 22px;
  overflow: hidden;
  transition: var(--transition-smooth);
  position: relative;
}

.sol-blueprint-row:hover {
  border-color: rgba(56, 189, 248, 0.42);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 35px rgba(56, 189, 248, 0.08);
  transform: translateY(-2px);
}

/* Zone 3: Deliverables & Action Column */

.btn-blueprint-primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(99, 102, 241, 0.18));
  border: 1px solid rgba(56, 189, 248, 0.42);
  color: var(--text-primary);
  font-size: 0.86rem;
  font-weight: 700;
  transition: var(--transition-fast);
}

.btn-blueprint-primary:hover {
  background: var(--accent-cyan);
  color: #07090e;
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.3);
}

.btn-blueprint-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  transition: var(--transition-fast);
}

.btn-blueprint-secondary:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}

/* --- C. INTERACTIVE 360° STACK BUILDER ON SOLUTIONS.HTML --- */
.sol-interactive-builder {
  background: linear-gradient(180deg, rgba(16, 21, 32, 0.95) 0%, rgba(9, 12, 19, 0.98) 100%);
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: 24px;
  padding: 36px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.sol-builder-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 28px 0;
}

.sol-builder-col {
  background: rgba(7, 9, 14, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px;
}

.sol-builder-col-head {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.sol-builder-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 13px;
  margin-bottom: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  transition: var(--transition-fast);
  font-size: 0.84rem;
  color: var(--text-secondary);
}

.sol-builder-item:last-child {
  margin-bottom: 0;
}

.sol-builder-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
  color: var(--text-primary);
}

.sol-builder-item.selected {
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
  color: var(--text-primary);
  font-weight: 700;
}

.sol-builder-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding: 20px 24px;
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 16px;
}

/* Section 2: 2-Column Interactive Scope & Tier Builder on Detail Pages */
.sol-scope-workbench {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
  margin-top: 28px;
  align-items: start;
}

.sol-tier-tab-btn {
  appearance: none;
  width: 100%;
  text-align: left;
  background: rgba(12, 15, 23, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  padding: 18px 20px;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sol-tier-tab-btn:hover {
  border-color: rgba(56, 189, 248, 0.35);
  background: rgba(18, 23, 35, 0.95);
}

.sol-tier-tab-btn.active {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(99, 102, 241, 0.12));
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 20px rgba(56, 189, 248, 0.15);
}

.sol-tier-panel {
  display: none;
  animation: fadeIn 0.22s ease-out;
}

.sol-tier-panel.active {
  display: block;
}

/* Responsive Breakpoints for New Solutions System */
@media (max-width: 1100px) {
  .sol-scope-workbench {
    grid-template-columns: 1fr;
  }
  .sol-blueprint-row {
    grid-template-columns: 1fr;
  }
  
  
}

@media (max-width: 820px) {
  
  .sol-builder-cols {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V3.5 BESPOKE SOLUTION ARCHITECTURE & MULTI-THEME DOSSIER SYSTEM
   ========================================================================== */

:root {
  --sol-accent: #38bdf8;
  --sol-accent-alt: #6366f1;
  --sol-accent-rgb: 56, 189, 248;
  --sol-accent-alt-rgb: 99, 102, 241;
  --sol-gradient: linear-gradient(135deg, #38bdf8 0%, #6366f1 100%);
}

[data-sol-theme="commerce"] {
  --sol-accent: #10b981;
  --sol-accent-alt: #38bdf8;
  --sol-accent-rgb: 16, 185, 129;
  --sol-accent-alt-rgb: 56, 189, 248;
  --sol-gradient: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
}

[data-sol-theme="saas"] {
  --sol-accent: #6366f1;
  --sol-accent-alt: #38bdf8;
  --sol-accent-rgb: 99, 102, 241;
  --sol-accent-alt-rgb: 56, 189, 248;
  --sol-gradient: linear-gradient(135deg, #818cf8 0%, #38bdf8 100%);
}

[data-sol-theme="fintech"] {
  --sol-accent: #f59e0b;
  --sol-accent-alt: #06b6d4;
  --sol-accent-rgb: 245, 158, 11;
  --sol-accent-alt-rgb: 6, 182, 212;
  --sol-gradient: linear-gradient(135deg, #fbbf24 0%, #38bdf8 100%);
}

[data-sol-theme="ai-rag"] {
  --sol-accent: #a855f7;
  --sol-accent-alt: #ec4899;
  --sol-accent-rgb: 168, 85, 247;
  --sol-accent-alt-rgb: 236, 72, 153;
  --sol-gradient: linear-gradient(135deg, #c084fc 0%, #f472b6 55%, #38bdf8 100%);
}

[data-sol-theme="automation"] {
  --sol-accent: #14b8a6;
  --sol-accent-alt: #10b981;
  --sol-accent-rgb: 20, 184, 166;
  --sol-accent-alt-rgb: 16, 185, 129;
  --sol-gradient: linear-gradient(135deg, #2dd4bf 0%, #34d399 60%, #38bdf8 100%);
}

[data-sol-theme="cinema"] {
  --sol-accent: #f97316;
  --sol-accent-alt: #fbbf24;
  --sol-accent-rgb: 249, 115, 22;
  --sol-accent-alt-rgb: 251, 191, 36;
  --sol-gradient: linear-gradient(135deg, #fb923c 0%, #fbbf24 65%, #f43f5e 100%);
}

[data-sol-theme="studio-photo"] {
  --sol-accent: #fb7185;
  --sol-accent-alt: #fcd34d;
  --sol-accent-rgb: 251, 113, 133;
  --sol-accent-alt-rgb: 252, 211, 77;
  --sol-gradient: linear-gradient(135deg, #fda4af 0%, #fde68a 60%, #f43f5e 100%);
}

[data-sol-theme="design-sys"] {
  --sol-accent: #d946ef;
  --sol-accent-alt: #6366f1;
  --sol-accent-rgb: 217, 70, 239;
  --sol-accent-alt-rgb: 99, 102, 241;
  --sol-gradient: linear-gradient(135deg, #e879f9 0%, #818cf8 60%, #38bdf8 100%);
}

[data-sol-theme="rebrand"] {
  --sol-accent: #8b5cf6;
  --sol-accent-alt: #f59e0b;
  --sol-accent-rgb: 139, 92, 246;
  --sol-accent-alt-rgb: 245, 158, 11;
  --sol-gradient: linear-gradient(135deg, #a78bfa 0%, #fbbf24 100%);
}

[data-sol-theme="commercial"] {
  --sol-accent: #f43f5e;
  --sol-accent-alt: #38bdf8;
  --sol-accent-rgb: 244, 63, 94;
  --sol-accent-alt-rgb: 56, 189, 248;
  --sol-gradient: linear-gradient(135deg, #fb7185 0%, #f97316 50%, #38bdf8 100%);
}

[data-sol-theme="custom-360"] {
  --sol-accent: #38bdf8;
  --sol-accent-alt: #818cf8;
  --sol-accent-rgb: 56, 189, 248;
  --sol-accent-alt-rgb: 129, 140, 248;
  --sol-gradient: linear-gradient(135deg, #38bdf8 0%, #818cf8 55%, #c084fc 100%);
}

/* Hero Meta Spec Strip */

.btn-sol-accent {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 800;
  color: #07090e;
  background: var(--sol-accent);
  border: 1px solid var(--sol-accent);
  box-shadow: 0 8px 28px rgba(var(--sol-accent-rgb), 0.3);
  transition: var(--transition-fast);
}

.btn-sol-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 34px rgba(var(--sol-accent-rgb), 0.45);
  filter: brightness(1.06);
  color: #07090e;
}

.btn-sol-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.14);
  transition: var(--transition-fast);
}

.btn-sol-outline:hover {
  border-color: var(--sol-accent);
  background: rgba(var(--sol-accent-rgb), 0.1);
  color: var(--text-primary);
}

/* Interactive Live Architecture Console inside Showcase Card */
.sol-live-console {
  padding: 20px;
  background: rgba(8, 11, 17, 0.92);
}

.sol-console-btn {
  appearance: none;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sol-console-btn:hover {
  border-color: rgba(var(--sol-accent-rgb), 0.35);
  color: var(--text-primary);
}

.sol-console-btn.active {
  background: rgba(var(--sol-accent-rgb), 0.14);
  border-color: var(--sol-accent);
  color: var(--text-primary);
  box-shadow: 0 4px 16px rgba(var(--sol-accent-rgb), 0.15);
}

.sol-console-pane {
  display: none;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(14, 18, 28, 0.9);
  border: 1px solid rgba(var(--sol-accent-rgb), 0.25);
  animation: fadeIn 0.2s ease-out;
}

.sol-console-pane.active {
  display: block;
}

/* 5. Theme-Aware Interactive Scope Workbench Overrides */
[data-sol-theme] .sol-tier-tab-btn.active {
  background: linear-gradient(135deg, rgba(var(--sol-accent-rgb), 0.18), rgba(var(--sol-accent-alt-rgb), 0.12));
  border-color: var(--sol-accent);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 22px rgba(var(--sol-accent-rgb), 0.16);
}

/* ==========================================================================
   PRO PAGES (About & Solutions redesign)
   Calm editorial layout: clear hierarchy, generous spacing, few accents.
   ========================================================================== */
.pro-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
  margin-bottom: 14px;
}

.pro-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: currentColor;
}

.pro-h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.pro-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0;
}

.pro-section {
  padding: var(--space-4xl) 0;
}

.pro-section--tight {
  padding-top: var(--space-2xl);
}

.pro-section-head {
  max-width: 720px;
  margin-bottom: var(--space-2xl);
}

.pro-section-head--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.pro-section-head--center .pro-lead {
  margin: 0 auto;
}

.pro-section-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-xl);
  flex-wrap: wrap;
}

/* Hero */
.pro-hero {
  padding: calc(var(--space-4xl) + 60px) 0 var(--space-3xl);
  position: relative;
}

.pro-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--space-3xl);
  align-items: center;
}

.pro-hero-title {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text-primary);
  margin: 0 0 22px;
}

.pro-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.pro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin-top: 28px;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pro-facts li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pro-facts li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-emerald);
}

.pro-figure {
  margin: 0;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-medium);
  background: var(--bg-secondary);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.pro-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.pro-figure figcaption {
  padding: 14px 18px;
  font-size: 0.85rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-subtle);
}

/* Stats strip */
.pro-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.pro-stat {
  padding: 28px 24px;
  border-left: 1px solid var(--border-subtle);
}

.pro-stat:first-child {
  border-left: none;
}

.pro-stat dt {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1.1;
}

.pro-stat dd {
  margin: 6px 0 0;
  font-size: 0.88rem;
  color: var(--text-secondary);
}

/* Editorial split (sticky title + prose) */
.pro-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: var(--space-3xl);
  align-items: start;
}

.pro-split-aside {
  position: sticky;
  top: 110px;
}

.pro-prose p {
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 20px;
}

.pro-quote {
  margin: 32px 0 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent-cyan);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.5;
  color: var(--text-primary);
}

/* Generic cards */
.pro-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color var(--transition-smooth), transform var(--transition-smooth);
}

.pro-card:hover {
  border-color: var(--border-medium);
}

.pro-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.pro-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Discipline cards (About) */
.pro-discipline {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pro-discipline img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-bottom: 1px solid var(--border-subtle);
}

.pro-discipline-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.pro-discipline h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

.pro-discipline p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.pro-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pro-chips li {
  font-size: 0.8rem;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 4px 11px;
}

.pro-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent-cyan);
  margin-top: auto;
}

.pro-link:hover {
  color: var(--text-primary);
}

/* Comparison table */
.pro-compare {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-size: 0.95rem;
}

.pro-compare th,
.pro-compare td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.pro-compare tr:last-child th,
.pro-compare tr:last-child td {
  border-bottom: none;
}

.pro-compare thead th {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.pro-compare tbody th {
  font-weight: 600;
  color: var(--text-primary);
  width: 22%;
}

.pro-compare td {
  color: var(--text-secondary);
}

.pro-compare .pro-compare-us {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.05);
  border-left: 1px solid rgba(56, 189, 248, 0.25);
}

.pro-compare thead .pro-compare-us {
  color: var(--accent-cyan);
}

/* Timeline */
.pro-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 880px;
}

.pro-timeline li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--border-subtle);
}

.pro-timeline li:last-child {
  border-bottom: 1px solid var(--border-subtle);
}

.pro-timeline-year {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-muted);
  padding-top: 3px;
}

.pro-timeline li.is-current .pro-timeline-year {
  color: var(--accent-cyan);
}

.pro-timeline h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0 0 4px;
}

.pro-timeline-org {
  font-size: 0.88rem;
  color: var(--accent-indigo);
  margin-bottom: 10px;
}

.pro-timeline p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

/* Tool groups */
.pro-tool-group {
  padding: 24px;
}

.pro-tool-group h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.pro-tool-group h3 span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* Principles */
.pro-principle {
  padding: 28px 24px;
}

.pro-principle-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-cyan);
  margin-bottom: 14px;
  display: block;
}

.pro-principle h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.pro-principle p {
  font-size: 0.93rem;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Needs / problem cards (Solutions) */
.pro-need {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pro-need-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 6px;
}

.pro-need h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.pro-need p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pro-need-recs {
  list-style: none;
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pro-need-recs a {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.pro-need-recs a::after {
  content: ' →';
  color: var(--accent-cyan);
}

.pro-need-recs a:hover {
  color: var(--accent-cyan);
}

/* Filter row */
.pro-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* Solution cards */
.pro-sol-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.pro-sol-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  scroll-margin-top: 110px;
}

.pro-sol-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.35);
}

.pro-sol-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
}

.pro-sol-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.pro-sol-card:hover .pro-sol-media img {
  transform: scale(1.03);
}

.pro-sol-num {
  position: absolute;
  top: 14px;
  left: 14px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
  background: rgba(7, 9, 14, 0.75);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  padding: 4px 10px;
}

.pro-sol-body {
  padding: 26px 28px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.pro-sol-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
}

.pro-track {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pro-track::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.pro-track--web { color: var(--accent-cyan); }
.pro-track--ai { color: var(--accent-purple); }
.pro-track--film { color: #f59e0b; }

.pro-sol-time {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.pro-sol-title {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}

.pro-sol-title a {
  color: var(--text-primary);
}

.pro-sol-title a:hover {
  color: var(--accent-cyan);
}

.pro-sol-problem {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pro-sol-problem strong {
  color: var(--text-primary);
  font-weight: 600;
}

.pro-check-list {
  list-style: none;
  margin: 4px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pro-check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pro-check-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.9' fill='none' stroke='%2310B981' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

.pro-sol-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}

.pro-sol-actions .pro-link {
  margin-top: 0;
  color: var(--text-secondary);
}

.pro-sol-actions .pro-link:hover {
  color: var(--text-primary);
}

.pro-btn-sm {
  padding: 10px 20px;
  font-size: 0.9rem;
}

/* Process steps */
.pro-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  counter-reset: pro-step;
}

.pro-steps li {
  padding: 0 24px 0 0;
  position: relative;
}

.pro-steps li::before {
  counter-increment: pro-step;
  content: counter(pro-step, decimal-leading-zero);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-cyan);
  background: var(--bg-primary);
  border: 1px solid rgba(56, 189, 248, 0.4);
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

.pro-steps li::after {
  content: '';
  position: absolute;
  top: 22px;
  left: 44px;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(56, 189, 248, 0.4), var(--border-subtle));
}

.pro-steps li:last-child::after {
  display: none;
}

.pro-steps h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 8px;
}

.pro-steps p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .pro-hero-grid,
  .pro-split {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .pro-split-aside {
    position: static;
  }

  .pro-grid-4,
  .pro-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 36px;
  }

  .pro-steps li::after {
    display: none;
  }
}

@media (max-width: 860px) {
  .pro-sol-grid,
  .pro-grid-3 {
    grid-template-columns: 1fr;
  }

  .pro-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pro-stat:nth-child(3) {
    border-left: none;
  }

  .pro-stat:nth-child(n + 3) {
    border-top: 1px solid var(--border-subtle);
  }
}

@media (max-width: 600px) {
  .pro-hero {
    padding-top: calc(var(--space-3xl) + 60px);
  }

  .pro-section {
    padding: var(--space-3xl) 0;
  }

  .pro-grid-4,
  .pro-steps {
    grid-template-columns: 1fr;
  }

  .pro-stat {
    padding: 20px 16px;
  }

  .pro-sol-body {
    padding: 22px 20px 24px;
  }

  .pro-timeline li {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .pro-compare thead {
    display: none;
  }

  .pro-compare,
  .pro-compare tbody,
  .pro-compare tr,
  .pro-compare th,
  .pro-compare td {
    display: block;
    width: 100%;
  }

  .pro-compare tr {
    border-bottom: 1px solid var(--border-subtle);
    padding: 6px 0;
  }

  .pro-compare th,
  .pro-compare td {
    border: none;
    padding: 6px 18px;
  }

  .pro-compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 2px;
  }

  .pro-compare .pro-compare-us {
    border-left: 2px solid rgba(56, 189, 248, 0.5);
    margin: 4px 18px 10px;
    width: auto;
    border-radius: 8px;
    padding: 10px 12px;
  }
}

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

.pro-hero-grid .pro-hero-title {
  font-size: clamp(2.2rem, 4.2vw, 3.4rem);
}

/* Typography scale */
.hero-tech {
  padding-top: calc(var(--space-4xl) + 60px);
  padding-bottom: var(--space-3xl);
}

.hero-headline {
  font-size: clamp(2.4rem, 5.2vw, 4.2rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.hero-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.cta-banner-title {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* Cards: one radius, one border, quiet hover */
.bento-card,
.pricing-tech-card,
.value-bento-card,
.project-card-modern,
.skill-category-card,
.timeline-card-modern,
.faq-item,
.contact-direct-card,
.sol-interactive-builder,
.sol-tier-panel {
  border-radius: var(--radius-lg) !important;
  border-color: var(--border-subtle);
}

.bento-card:hover,
.project-card-modern:hover {
  border-color: var(--border-medium);
  box-shadow: none;
}

.cta-tech-banner {
  border-radius: var(--radius-xl);
}

/* Services page helpers */

.pro-discipline--wide img {
  aspect-ratio: 16 / 9;
}

.pro-figure picture img {
  aspect-ratio: auto;
}

.btn-nav-cta.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
}

/* Pricing cards (shared: index + services) */
.pro-pricing {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.pro-price {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 30px 28px;
}

.pro-price--featured {
  border-color: rgba(56, 189, 248, 0.45);
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.06) 0%, var(--bg-secondary) 60%);
}

.pro-price-badge {
  position: absolute;
  top: -12px;
  left: 28px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
  padding: 4px 12px;
}

.pro-price h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.pro-price p {
  font-size: 0.93rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pro-price .pro-check-list {
  margin-bottom: 8px;
}

.pro-price > .btn-primary,
.pro-price > .btn-secondary {
  margin-top: auto;
  justify-content: center;
  width: 100%;
}

@media (max-width: 960px) {
  .pro-pricing {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }
}

.pro-featured .pro-sol-title {
  font-size: 1.2rem;
}

.pro-featured .pro-sol-body {
  padding: 22px 22px 24px;
}

/* Form pages (contact, quote, booking) */
.pro-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.pro-form-card {
  padding: 32px;
}

.pro-form-card .pro-h3 {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.pro-form-card > p {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 24px;
}

.pro-form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.pro-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 22px;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.pro-check input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-cyan);
  flex-shrink: 0;
}

.pro-aside {
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: sticky;
  top: 110px;
}

.pro-contact-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  color: inherit;
}

a.pro-contact-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.pro-contact-item .pro-need-icon {
  margin: 0;
  flex-shrink: 0;
}

.pro-contact-item small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 2px;
}

.pro-contact-item strong {
  display: block;
  font-size: 1rem;
  color: var(--text-primary);
}

.pro-contact-item span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.pro-note {
  padding: 20px;
}

.pro-note h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
}

.pro-note p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0;
}

.pro-faq {
  max-width: 820px;
}

.pro-section-head--center + .pro-faq {
  margin: 0 auto;
}

@media (max-width: 960px) {
  .pro-form-layout {
    grid-template-columns: 1fr;
  }

  .pro-aside {
    position: static;
  }
}

@media (max-width: 600px) {
  .pro-form-card {
    padding: 22px 18px;
  }

  .pro-form-row {
    grid-template-columns: 1fr;
  }
}

/* Solution detail pages */

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

.pro-module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.pro-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.pro-panel {
  padding: 26px;
}

.pro-panel h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0 0 16px;
}

.pro-spec {
  margin: 0;
}

.pro-spec div {
  display: grid;
  grid-template-columns: 38% 1fr;
  gap: 16px;
  padding: 12px 0;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.92rem;
}

.pro-spec div:first-child {
  border-top: none;
  padding-top: 0;
}

.pro-spec dt {
  color: var(--text-muted);
}

.pro-spec dd {
  margin: 0;
  color: var(--text-primary);
}

.pro-x-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.pro-x-list li {
  position: relative;
  padding-left: 26px;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-secondary);
}

.pro-x-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  line-height: 1;
  color: #f87171;
  background: rgba(248, 113, 113, 0.14);
}

.pro-panel--muted h3 {
  color: var(--text-secondary);
}

.pro-panel--good {
  border-color: rgba(16, 185, 129, 0.35);
}

.pro-quote-card {
  margin-top: 20px;
  padding: 28px;
}

.pro-quote-card .pro-quote {
  margin: 0 0 14px;
}

.pro-quote-card cite {
  font-style: normal;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.pro-price-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pro-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  color: inherit;
}

.pro-next:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.pro-next small {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.pro-next strong {
  display: block;
  font-size: 1.15rem;
  color: var(--text-primary);
}

.pro-next span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.pro-next-arrow {
  font-size: 1.4rem;
  color: var(--accent-cyan);
}

@media (max-width: 860px) {
  .pro-two,
  .pro-steps--3 {
    grid-template-columns: 1fr;
  }
}

.pro-stat {
  min-width: 0;
}

.pro-stat dt {
  font-size: clamp(1.5rem, 2.2vw, 1.85rem);
  hyphens: auto;
}

@media (max-width: 600px) {
  .pro-stat dt {
    font-size: 1.35rem;
    overflow-wrap: break-word;
  }
}

.pro-eyebrow a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(56, 189, 248, 0.4);
  text-underline-offset: 3px;
}

.pro-eyebrow a:hover {
  text-decoration-color: currentColor;
}

/* Vertical rhythm: one spacing value between all sections */
.pro-section,
.pro-section--tight {
  padding: 56px 0;
}

.pro-hero {
  padding-bottom: 56px;
}

.pro-section-head {
  margin-bottom: 40px;
}

@media (max-width: 600px) {
  .pro-section,
  .pro-section--tight {
    padding: 40px 0;
  }

  .pro-hero {
    padding-bottom: 40px;
  }

  .pro-section-head {
    margin-bottom: 28px;
  }
}

.modern-footer {
  padding-top: 64px;
}

.pro-section .cta-tech-banner {
  margin-bottom: 0 !important;
}

main > section.pro-section:last-of-type {
  padding-bottom: 56px !important;
}

@media (max-width: 600px) {
  main > section.pro-section:last-of-type {
    padding-bottom: 40px !important;
  }
}

/* Tjänstekatalog */
.cat-toolbar {
  position: sticky;
  top: 100px;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 18px;
  margin-bottom: calc(40px + var(--cat-gap, 0px));
  transition: margin-bottom 0.28s ease, box-shadow 0.2s ease;
  background: rgba(12, 15, 23, 0.92);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.cat-search {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 18px;
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  color: var(--text-muted);
}

.cat-search:focus-within {
  border-color: var(--accent-cyan);
}

.cat-search input {
  flex: 1;
  min-width: 0;
  height: 48px;
  border: 0;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 1rem;
  outline: none;
}

.cat-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

.cat-kinds {
  display: inline-flex;
  padding: 3px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
}

.cat-kind-btn {
  border: 0;
  background: none;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
}

.cat-kind-btn.active {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.cat-result {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.cat-section {
  margin-bottom: 56px;
  scroll-margin-top: 260px;
}

.cat-section-head {
  margin-bottom: 24px;
}

.cat-section-head .pro-h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  margin-bottom: 6px;
}

.cat-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
}

.cat-count {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.cat-grid {
  gap: 16px;
}

.cat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.cat-card[hidden],
.cat-section[hidden] {
  display: none;
}

.cat-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cat-kind {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: var(--radius-full);
}

.cat-kind--abonnemang {
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
}

.cat-kind--projekt {
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.12);
}

.cat-kind--konsult {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.12);
}

.cat-cat {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.cat-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
}

.cat-card p {
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.cat-card .pro-check-list li {
  font-size: 0.85rem;
}

.cat-card .pro-link {
  margin-top: auto;
  padding-top: 6px;
}

@media (max-width: 600px) {
  .cat-toolbar {
    top: 76px;
    padding: 12px;
  }

  .cat-filters .pro-filter {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .cat-filters .filter-pill-btn {
    flex-shrink: 0;
  }

  .cat-kinds {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .cat-kind-btn {
    font-size: 0.74rem;
    padding: 7px 4px;
    white-space: nowrap;
  }
}

.cat-kind--produkt {
  color: #a3e635;
  background: rgba(132, 204, 22, 0.12);
}

.prod-grid .pro-discipline-body {
  padding: 20px;
}

.prod-grid .pro-discipline h3 {
  font-size: 1.1rem;
}

.prod-grid .pro-discipline p,
.prod-grid .pro-check-list li {
  font-size: 0.88rem;
}

/* ==========================================================================
   HEADER V3 – full content width, service categories, two CTAs
   ========================================================================== */
.modern-header {
  padding: 0 var(--space-xl);
}

.navbar-pill {
  max-width: calc(1240px - 2 * var(--space-xl));
  gap: var(--space-lg);
}

.nav-links {
  margin: 0 auto;
}

.nav-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
}

.dropdown-menu-wide {
  min-width: 290px;
}

.dropdown-item-modern.active {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
}

.btn-nav-cta--ghost {
  background: transparent;
  border-color: var(--border-medium);
  box-shadow: none;
}

.btn-nav-cta--ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.btn-nav-cta--ghost.active {
  border-color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
}

.mobile-drawer-bottom .btn-secondary.mobile-cta-btn {
  justify-content: center;
}

@media (max-width: 1080px) {
  .nav-links,
  .nav-actions {
    display: none !important;
  }

  .mobile-toggle {
    display: flex;
  }
}

@media (max-width: 768px) {
  .modern-header {
    padding: 0 12px;
  }
}

.dropdown-item-modern.active::before,
.dropdown-item-modern[aria-current="page"]::before {
  content: none;
  display: none;
}

.dropdown-item-modern.active,
.dropdown-item-modern[aria-current="page"] {
  padding-left: 12px;
  box-shadow: none;
  border-left: 0;
}

/* ---------------------------------------------------------------- service picker (quote + booking) */

.svc-picker {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.svc-picker-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.svc-picker-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
}

.svc-picker-chip-remove {
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1;
  cursor: pointer;
}

.svc-picker-chip-remove:hover {
  background: rgba(244, 63, 94, 0.2);
  color: var(--text-primary);
}

.svc-picker-filters {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.svc-picker-filter {
  flex: none;
  padding: 6px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.svc-picker-filter[aria-selected="true"] {
  color: var(--text-primary);
  background: var(--bg-elevated);
  border-color: var(--accent-cyan);
}

.svc-picker-list {
  max-height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(7, 9, 14, 0.6);
}

.svc-picker-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border-subtle);
}

.svc-picker-row:last-child {
  border-bottom: 0;
}

.svc-picker-row:hover {
  background: rgba(255, 255, 255, 0.03);
}

.svc-picker-row.is-selected {
  background: rgba(56, 189, 248, 0.07);
}

.svc-picker-row input {
  flex: none;
  width: 18px;
  height: 18px;
  accent-color: var(--accent-cyan);
}

.svc-picker-row-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.svc-picker-row-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-primary);
}

.svc-picker-row-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.svc-picker-row .cat-kind {
  flex: none;
}

.svc-picker-status {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

@media (max-width: 600px) {
  .svc-picker-row .cat-kind {
    display: none;
  }
}

/* ================================================================ flow: shared layout for quote + booking wizards */
.flow {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

.flow-main {
  padding: 32px;
  min-width: 0;
}

.flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.flow-title {
  margin: 6px 0 0;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  line-height: 1.2;
  color: var(--text-primary);
}

.flow-count {
  flex: none;
  padding: 5px 12px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
  grid-auto-flow: column;
  gap: 8px;
  margin: 24px 0;
  padding: 0;
  list-style: none;
}

.flow-step button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px 12px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-top: 3px solid var(--border-medium);
  cursor: pointer;
}

.flow-step button:disabled {
  cursor: default;
}

.flow-step button > span {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 24px;
  height: 24px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
}

.flow-step.is-current button {
  color: var(--text-primary);
  border-top-color: var(--accent-cyan);
}

.flow-step.is-current button > span {
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.flow-step.is-done button {
  color: var(--text-secondary);
  border-top-color: var(--accent-emerald);
}

.flow-step.is-done button > span {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.5);
}

.flow-step.is-done button:hover {
  color: var(--text-primary);
}

.flow-error {
  margin-bottom: 16px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: #fecaca;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: var(--radius-md);
}

.flow-error[hidden] {
  display: none;
}

.flow-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px 18px;
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: var(--radius-md);
}

.flow-notice div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.flow-notice strong {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

.flow-notice span {
  font-weight: 600;
  color: var(--text-primary);
}

.flow-notice-close {
  flex: none;
  width: 30px;
  height: 30px;
  font-size: 1.1rem;
  color: var(--text-secondary);
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  cursor: pointer;
}

.flow-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.flow-nav [data-el="next"],
.flow-nav [data-el="submit"] {
  margin-left: auto;
}

.flow-nav button[hidden] {
  display: none;
}

.flow-submit {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
}

/* aside */
.flow-aside {
  position: sticky;
  top: 104px;
}

.flow-aside-card {
  padding: 22px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.flow-aside-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.flow-aside-count {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}

.flow-aside-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 46vh;
  margin: 0;
  padding: 0;
  overflow-y: auto;
  list-style: none;
}

.flow-aside-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.flow-aside-list span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.flow-aside-list strong {
  font-size: 0.88rem;
  color: var(--text-primary);
}

.flow-aside-list small {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.flow-remove {
  flex: none;
  width: 24px;
  height: 24px;
  font-size: 1rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.flow-remove:hover {
  color: var(--text-primary);
  background: rgba(244, 63, 94, 0.18);
}

.flow-aside-empty {
  margin: 0;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.flow-aside-facts {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.flow-aside-facts div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.85rem;
}

.flow-aside-facts dt {
  color: var(--text-muted);
}

.flow-aside-facts dd {
  margin: 0;
  text-align: right;
  color: var(--text-primary);
}

.flow-aside-promises {
  display: grid;
  gap: 6px;
  margin: 16px 0 0;
  padding: 14px 0 0;
  list-style: none;
  border-top: 1px solid var(--border-subtle);
}

.flow-aside-promises li {
  position: relative;
  padding-left: 22px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.flow-aside-promises li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
}

.flow-aside-alt {
  display: block;
  margin-top: 14px;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

.flow-bar {
  display: none;
}

/* chips */
.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  padding: 8px 14px;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.chip:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.chip.is-on {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.14);
  border-color: var(--accent-cyan);
}

.chip:focus-visible,
.qw-opt:focus-visible,
.flow-step button:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* success */
.flow.is-sent {
  display: block;
}

.flow-success {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.flow-success-icon {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  font-size: 1.8rem;
  color: var(--accent-emerald);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.4);
  border-radius: 50%;
}

.flow-success h2 {
  margin: 8px 0;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}

.flow-success-lead {
  color: var(--text-secondary);
}

.flow-timeline {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0;
  padding: 0;
  text-align: left;
  list-style: none;
  counter-reset: step;
}

.flow-timeline li {
  padding: 16px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.flow-timeline strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.flow-timeline span {
  font-size: 0.88rem;
  color: var(--text-secondary);
}

.flow-success-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* ================================================================ quote wizard */
.qw-search {
  position: relative;
}

.qw-search svg {
  position: absolute;
  top: 50%;
  left: 16px;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--text-muted);
  stroke-width: 2;
  stroke-linecap: round;
  transform: translateY(-50%);
}

.qw-search input {
  padding-left: 44px;
}

.qw-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 16px 0 20px;
}

.qw-pillar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  text-align: left;
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.qw-pillar svg {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--text-muted);
}

.qw-pillar > span:not(.qw-badge) {
  flex: 1;
  min-width: 0;
  line-height: 1.3;
}

.qw-pillar:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
}

.qw-pillar[aria-selected="true"] {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
  border-color: var(--accent-cyan);
}

.qw-pillar[aria-selected="true"] svg {
  color: var(--accent-cyan);
}

.qw-pillar .qw-badge {
  position: absolute;
  top: -7px;
  right: -7px;
  box-shadow: 0 0 0 3px var(--bg-primary);
}

@media (max-width: 640px) {
  .qw-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qw-pillar {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}

.qw-badge {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.qw-area,
.qw-card {
  margin-bottom: 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.qw-area.is-open,
.qw-card.is-open {
  border-color: var(--border-medium);
}

.qw-area-head,
.qw-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  font: inherit;
  text-align: left;
  color: var(--text-primary);
  background: none;
  border: 0;
  cursor: pointer;
}

.qw-card-head.static {
  cursor: default;
}

.qw-area-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
}

.qw-area-icon svg {
  width: 20px;
  height: 20px;
}

.qw-area-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.qw-area-text span,
.qw-card-head > span:not(.qw-progress):not(.qw-chevron) {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.qw-card-head > strong {
  font-size: 1rem;
}

.qw-card-head > span:first-of-type {
  flex: 1;
}

.qw-chevron {
  flex: none;
  width: 10px;
  height: 10px;
  margin-left: auto;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

[aria-expanded="true"] > .qw-chevron {
  transform: rotate(-135deg);
}

.qw-area-body,
.qw-card-body {
  padding: 4px 18px 20px;
}

.qw-sub {
  margin: 12px 0 10px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.qw-sub span {
  font-family: var(--font-sans);
  text-transform: none;
  letter-spacing: 0;
  color: var(--text-muted);
}

.qw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}

.qw-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.qw-opt {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  font: inherit;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.qw-grid .qw-opt {
  flex-wrap: wrap;
}

.qw-grid .qw-kind {
  display: none;
}

.qw-opt--row {
  align-items: center;
  padding: 11px 14px;
}

.qw-opt:hover {
  border-color: var(--border-active);
}

.qw-opt.is-on {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-cyan);
}

.qw-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--border-medium);
  border-radius: 6px;
  transition: all 0.15s ease;
}

.qw-opt.is-on .qw-check {
  background: var(--accent-cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2307090e' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 14px no-repeat;
  border-color: var(--accent-cyan);
}

.qw-opt-body {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.qw-opt-name {
  font-size: 0.93rem;
  font-weight: 600;
}

.qw-opt-desc {
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.qw-kind {
  flex: none;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.qw-kind--track { color: var(--accent-cyan); background: rgba(56, 189, 248, 0.1); }
.qw-kind--abonnemang { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.qw-kind--projekt { color: #a5b4fc; background: rgba(99, 102, 241, 0.14); }
.qw-kind--konsult { color: #fbbf24; background: rgba(245, 158, 11, 0.12); }

.qw-more,
.qw-back-link,
.qw-edit {
  padding: 0;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: none;
  border: 0;
  cursor: pointer;
}

.qw-more {
  margin-top: 12px;
}

.qw-back-link {
  margin-top: 8px;
}

.qw-empty,
.qw-result-count {
  margin: 0 0 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.qw-progress {
  flex: none;
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
}

.qw-progress.is-done {
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.45);
}

.qw-q {
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.qw-q legend {
  margin-bottom: 10px;
  padding: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.qw-q legend span {
  margin-left: 6px;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.qw-help {
  margin: -4px 0 12px;
  font-size: 0.84rem;
  color: var(--text-muted);
}

.qw-picked {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}

.qw-picked li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  font-size: 0.92rem;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.qw-picked li > span:first-child {
  display: flex;
  flex-direction: column;
}

.qw-picked small {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.qw-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 16px;
  margin-bottom: 8px;
}

.qw-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.qw-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  cursor: pointer;
}

.qw-terms input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--accent-cyan);
}

.qw-review {
  padding: 18px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.qw-review:first-child {
  padding-top: 0;
}

.qw-review-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.qw-review-head h3 {
  margin: 0;
  font-size: 1rem;
}

.qw-review .qw-picked {
  margin: 0;
}

.qw-dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.qw-dl div {
  padding: 10px 14px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
}

.qw-dl dt {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.qw-dl dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  color: var(--text-primary);
}

.qw-promise {
  margin: 18px 0 0;
}

/* ================================================================ flow: tablet + mobile */
@media (max-width: 1024px) {
  .flow {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 64px;
  }

  .flow-aside {
    position: fixed;
    right: 0;
    bottom: 56px;
    left: 0;
    top: auto;
    z-index: 60;
    max-height: 70vh;
    padding: 0 12px;
    overflow-y: auto;
    transform: translateY(110%);
    transition: transform 0.25s ease;
  }

  .flow.aside-open .flow-aside {
    transform: none;
  }

  .flow-aside-card {
    box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.55);
  }

  .flow-bar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 61;
    display: block;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: rgba(7, 9, 14, 0.94);
    border-top: 1px solid var(--border-medium);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
  }

  .flow-bar-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 8px 14px;
    font: inherit;
    font-size: 0.9rem;
    color: var(--text-primary);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-medium);
    border-radius: var(--radius-full);
    cursor: pointer;
  }

  .flow-bar-toggle span {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent-cyan);
  }

  .flow.is-sent {
    padding-bottom: 0;
  }
}

@media (max-width: 640px) {
  .flow-main {
    padding: 20px 16px;
  }

  .flow-head {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .flow-step button {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 8px 4px 4px;
    font-size: 0.74rem;
  }

  .flow-step:not(.is-current) button {
    font-size: 0;
  }

  .flow-step:not(.is-current) button > span {
    font-size: 0.72rem;
  }

  .qw-fields,
  .qw-dl,
  .flow-timeline {
    grid-template-columns: minmax(0, 1fr);
  }

  .qw-area-head,
  .qw-card-head {
    padding: 14px;
  }

  .qw-area-body,
  .qw-card-body {
    padding: 4px 14px 16px;
  }

  .qw-area-icon {
    width: 34px;
    height: 34px;
  }

  .qw-opt--row .qw-kind {
    display: none;
  }

  .flow-nav .btn-primary,
  .flow-nav .btn-secondary {
    padding: 12px 18px;
  }
}

.flow {
  scroll-margin-top: 110px;
}

@media (max-width: 1024px) {
  .flow-aside {
    visibility: hidden;
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .flow.aside-open .flow-aside {
    visibility: visible;
    transition: transform 0.25s ease;
  }
}

/* ================================================================ booking wizard */
.bk-types {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.bk-type {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px;
  font: inherit;
  text-align: left;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bk-type:hover {
  border-color: var(--border-active);
}

.bk-type.is-on {
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 0 1px var(--accent-cyan) inset;
}

.bk-type-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.bk-type-min {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.bk-type strong {
  font-size: 1.05rem;
}

.bk-type-desc {
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.bk-badge {
  padding: 3px 9px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: var(--radius-full);
}

.bk-badge--free { color: #34d399; background: rgba(16, 185, 129, 0.12); }
.bk-badge--rec { color: var(--accent-cyan); background: rgba(56, 189, 248, 0.12); }
.bk-badge--paid { color: #c084fc; background: rgba(168, 85, 247, 0.14); }

.bk-paid {
  margin-top: 12px;
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  background: rgba(168, 85, 247, 0.08);
  border: 1px solid rgba(168, 85, 247, 0.3);
  border-radius: var(--radius-md);
}

.bk-paid[hidden] {
  display: none;
}

.bk-paid strong {
  color: #e9d5ff;
}

.bk-topic {
  margin-top: 28px;
}

.bk-service {
  border-top: 1px solid var(--border-subtle);
}

.bk-service-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 0;
  font: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: none;
  border: 0;
  cursor: pointer;
}

.bk-service-toggle small {
  font-weight: 400;
  color: var(--text-muted);
}

#bkServicePicker[hidden] {
  display: none;
}

.bk-when {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 20px;
}

.bk-cal,
.bk-slots {
  padding: 18px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
}

.bk-cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.bk-nav {
  width: 34px;
  height: 34px;
  font-size: 1.2rem;
  color: var(--text-primary);
  background: none;
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  cursor: pointer;
}

.bk-nav:disabled {
  opacity: 0.3;
  cursor: default;
}

.bk-week,
.bk-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  text-align: center;
}

.bk-week span {
  padding-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}

.bk-day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font: inherit;
  font-size: 0.88rem;
  border-radius: var(--radius-md);
}

.bk-day.is-off {
  color: var(--text-muted);
  opacity: 0.35;
}

button.bk-day {
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.18);
  cursor: pointer;
}

button.bk-day:hover {
  border-color: var(--accent-cyan);
}

button.bk-day.is-today {
  border-style: dashed;
}

button.bk-day.is-on {
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.bk-slots-date {
  margin: 0 0 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.bk-slot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.bk-slot {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  padding: 11px 8px;
  font: inherit;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  cursor: pointer;
}

.bk-slot small {
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--text-muted);
}

.bk-slot:hover {
  border-color: var(--accent-cyan);
}

.bk-slot.is-on {
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.bk-slot.is-on small {
  color: rgba(7, 9, 14, 0.7);
}

.bk-tz {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.bk-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bk-summary {
  display: grid;
  gap: 10px;
  margin: 0;
}

.bk-summary div {
  padding: 10px 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.bk-summary dt {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.bk-summary dd {
  margin: 2px 0 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
}

@media (max-width: 860px) {
  .bk-types,
  .bk-when {
    grid-template-columns: minmax(0, 1fr);
  }
}

.flow-nav .btn-primary,
.flow-nav .btn-secondary {
  white-space: nowrap;
}

/* ================================================================ wizard icons (assets/js/icons.js) */
.ico {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chip--icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip--icon .ico {
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.chip--icon.is-on .ico {
  color: var(--accent-cyan);
}

.chip-code {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 18px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-muted);
  border: 1px solid var(--border-medium);
  border-radius: 4px;
}

.chip.is-on .chip-code {
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.5);
}

.bk-type-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
}

.bk-type-icon .ico {
  width: 20px;
  height: 20px;
}

.bk-type.is-on .bk-type-icon {
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.bk-type-min {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bk-type-min .ico {
  width: 14px;
  height: 14px;
}

.bk-paid {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.bk-paid .ico {
  margin-top: 2px;
  color: #c084fc;
}

.bk-service-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.bk-service-label .ico {
  color: var(--accent-cyan);
}

.bk-quick {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-bottom: 16px;
  padding: 12px 16px;
  font: inherit;
  font-size: 0.9rem;
  text-align: left;
  color: var(--text-secondary);
  background: rgba(16, 185, 129, 0.07);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.bk-quick:hover {
  background: rgba(16, 185, 129, 0.12);
  border-color: var(--accent-emerald);
}

.bk-quick .ico {
  color: var(--accent-emerald);
}

.bk-quick strong {
  color: var(--text-primary);
}

.bk-nav {
  display: grid;
  place-items: center;
}

.bk-slots-date {
  display: flex;
  align-items: center;
  gap: 8px;
}

.bk-slots-date .ico {
  color: var(--accent-cyan);
}

.bk-chosen {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: -6px 0 14px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.bk-chosen .ico {
  width: 16px;
  height: 16px;
  color: var(--accent-emerald);
}

.bk-chosen strong {
  color: var(--text-primary);
}

.bk-chosen--hint {
  color: var(--text-muted);
}

.bk-summary div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.bk-summary-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.08);
  border-radius: var(--radius-sm);
}

.bk-summary-icon .ico {
  width: 16px;
  height: 16px;
}

.flow-success-actions a .ico {
  width: 18px;
  height: 18px;
}

.modern-input[aria-invalid="true"],
.modern-textarea[aria-invalid="true"] {
  border-color: rgba(244, 63, 94, 0.7);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
}

/* booking availability */
.bk-day.is-full {
  color: var(--text-muted);
  text-decoration: line-through;
  text-decoration-color: rgba(244, 63, 94, 0.6);
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed var(--border-subtle);
  opacity: 0.7;
  cursor: not-allowed;
}

button.bk-day.is-few {
  position: relative;
}

button.bk-day.is-few::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  width: 5px;
  height: 5px;
  background: var(--accent-amber, #f59e0b);
  border-radius: 50%;
  transform: translateX(-50%);
}

button.bk-day.is-few.is-on::after {
  background: var(--text-inverse);
}

.bk-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--text-muted);
}

.bk-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.bk-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.bk-dot--open { background: rgba(56, 189, 248, 0.7); }
.bk-dot--few { background: #f59e0b; }
.bk-dot--full { border: 1px dashed var(--text-muted); }

.bk-slot.is-taken {
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.015);
  border-style: dashed;
  border-color: var(--border-subtle);
  cursor: not-allowed;
}

.bk-slot.is-taken s {
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.bk-slot.is-taken small {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.bk-slots-note {
  margin: 12px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* catalog toolbar: compact bar + collapsible filter panel (assets/js/catalog.js) */
.cat-toolbar.is-stuck {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.cat-bar {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cat-bar .cat-search {
  flex: 1;
  min-width: 0;
}

.cat-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  height: 50px;
  padding: 0 18px;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.cat-toggle:hover,
.cat-toggle[aria-expanded="true"] {
  border-color: var(--accent-cyan);
}

.cat-toggle-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-inverse);
  background: var(--accent-cyan);
  border-radius: var(--radius-full);
}

.cat-toggle-count[hidden] {
  display: none;
}

.cat-toggle-chevron {
  color: var(--text-muted);
  transition: transform 0.25s ease;
}

.cat-toggle[aria-expanded="true"] .cat-toggle-chevron {
  transform: rotate(180deg);
}

.cat-panel {
  height: var(--cat-panel-h, auto);
  overflow: hidden;
  transition: height 0.28s ease, margin-top 0.28s ease, opacity 0.2s ease, visibility 0s linear 0s;
}

/* collapsed: the panel and the gap above it both shrink to nothing */
.cat-toolbar.is-collapsed .cat-panel {
  height: 0;
  margin-top: -12px;
  opacity: 0;
  visibility: hidden;
  transition: height 0.28s ease, margin-top 0.28s ease, opacity 0.2s ease, visibility 0s linear 0.28s;
}

.cat-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}

.cat-active {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px 4px 12px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  cursor: pointer;
}

.cat-chip span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  border-radius: 50%;
}

.cat-chip:hover span {
  color: var(--text-primary);
  background: rgba(244, 63, 94, 0.25);
}

.cat-chip--reset {
  padding: 4px 12px;
  color: var(--text-secondary);
  background: none;
  border-color: var(--border-medium);
}

@media (max-width: 600px) {
  .cat-toggle {
    height: 44px;
    padding: 0 14px;
  }

  .cat-toggle-label {
    display: none;
  }

  .cat-search input {
    height: 44px;
    font-size: 0.95rem;
  }

  .cat-kinds {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

/* ================================================================ footer – developed (tools/build_header.py) */
.modern-footer {
  overflow: hidden;
}

.modern-footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  width: min(900px, 90%);
  height: 1px;
  background: linear-gradient(90deg, transparent, #38bdf8, #6366f1, #a855f7, transparent);
  opacity: 0.7;
  transform: translateX(-50%);
}

.modern-footer::after {
  content: '';
  position: absolute;
  top: -180px;
  left: 50%;
  width: 760px;
  height: 320px;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(99, 102, 241, 0.10), transparent);
  transform: translateX(-50%);
}

.modern-footer .container {
  position: relative;
  z-index: 1;
}

/* bigger logo */
.footer-logo-link {
  align-items: center;
  gap: 12px;
}

.footer-logo-modern {
  /* same size as the logo in the header (.logo-img-modern) */
  height: var(--logo-h);
  max-width: var(--logo-max-w);
}

.footer-bio {
  max-width: 360px;
  font-size: 0.95rem;
}

/* links */
.footer-link-item a {
  display: inline-block;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer-link-item a:hover {
  color: var(--accent-cyan);
  transform: translateX(3px);
}

.footer-link-item a[aria-current="page"],
.f-mob-nav-list a[aria-current="page"] {
  color: var(--accent-cyan);
}

/* contact column (was inline styles) */
.footer-contact-text {
  margin: 0 0 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.footer-contact-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--accent-cyan);
  transition: color var(--transition-fast);
}

.footer-contact-mail:hover {
  color: var(--text-primary);
}

@media (min-width: 1101px) {
  .footer-top-grid {
    grid-template-columns: 1.6fr 0.85fr 1.3fr 1.3fr;
  }
}

@media (min-width: 769px) and (max-width: 1100px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.footer-socials {
  flex-wrap: wrap;
  gap: 8px;
}

.social-icon-btn {
  width: 40px;
  height: 40px;
}

.social-icon-btn:hover,
.social-icon-btn:focus-visible {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
  border-color: var(--accent-cyan);
}

/* desktop bottom bar (had no styles before) */
.footer-bottom.footer-desktop-view {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.footer-bottom p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom-links a {
  color: var(--text-secondary);
  transition: color var(--transition-fast);
}

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

.footer-crafted {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  color: var(--accent-cyan);
}

/* mobile card */
.f-mob-logo {
  /* same size as the header logo on phones */
  height: var(--logo-h);
  max-width: var(--logo-max-w);
}

.f-mob-social-row {
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.f-mob-social-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.f-mob-social-icons {
  justify-content: space-between;
}

.f-mob-social-icons .social-icon-btn {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
}

.f-mob-bottom {
  gap: 8px;
}

/* social icons in the mobile drawer */
.mobile-drawer-social {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 16px;
}

.mobile-drawer-social .sf-social-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}

.mobile-drawer-social .sf-social-btn:hover {
  color: var(--text-primary);
  border-color: var(--accent-cyan);
}

@media (min-width: 1101px) and (max-width: 1200px) {
  .footer-socials {
    gap: 6px;
  }

  .footer-socials .social-icon-btn {
    width: 36px;
    height: 36px;
  }
}

/* logo size – shared by header, mobile drawer and footer */
:root {
  --logo-h: 54px;
  --logo-max-w: 200px;
}

@media (max-width: 768px) {
  :root {
    --logo-h: 42px;
    --logo-max-w: 150px;
  }
}

/* footer columns – same language as the rest of the site */
.modern-footer {
  /* the footer logo is a bit bigger than the header's so it carries the footer */
  --logo-h: 72px;
  --logo-max-w: 260px;
}

@media (max-width: 768px) {
  .modern-footer {
    --logo-h: 52px;
    --logo-max-w: 190px;
  }
}

/* headings styled like the site's section eyebrows (.pro-eyebrow) */
.footer-heading,
.f-mob-nav-title,
.f-mob-social-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-cyan);
}

.footer-heading::before,
.f-mob-nav-title::before,
.f-mob-social-label::before {
  content: '';
  flex: none;
  width: 18px;
  height: 1px;
  background: currentColor;
}

/* area links get the same colour dots as the header's Tjänster menu */
.footer-link-item a,
.f-mob-nav-list a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.modern-footer .nav-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0;
  border-radius: 50%;
  box-shadow: 0 0 10px currentColor;
}

/* contact facts – same wording as the contact page */
.footer-contact-facts {
  display: grid;
  gap: 8px;
  margin: -8px 0 20px;
  padding: 0;
  list-style: none;
}

.footer-contact-facts li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.footer-contact-facts svg {
  flex: none;
  color: var(--accent-cyan);
}

.f-mob-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 16px;
  margin: -8px 0 20px;
  padding: 0 4px;
}

.f-mob-facts li {
  font-size: 0.8rem;
}

.f-mob-nav-grid {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 14px;
}

.f-mob-nav-list .nav-dot + * ,
.f-mob-col[aria-label="Discipliner"] .f-mob-nav-list a {
  font-size: 0.84rem;
}

.f-mob-col[aria-label="Discipliner"] .f-mob-nav-list a {
  gap: 8px;
}

/* phones: the two link columns are narrow, so their headings drop the leading line */
.f-mob-nav-grid {
  gap: 22px;
}

.f-mob-nav-title::before {
  display: none;
}

/* mobile summary bar of the quote/booking forms: visible only while the form is on screen */
@media (max-width: 1024px) {
  .flow-bar {
    visibility: hidden;
    transform: translateY(calc(100% + 24px));
    transition: transform 0.25s ease, visibility 0s linear 0.25s;
  }

  .flow.in-view .flow-bar {
    visibility: visible;
    transform: none;
    transition: transform 0.25s ease, visibility 0s linear 0s;
  }
}

/* ================================================================ mobile footer – open and centred */
.footer-mobile-open {
  padding: 8px 4px 0;
  text-align: center;
}

.footer-mobile-open .f-mob-header {
  justify-content: center;
  margin-bottom: 16px;
}

.footer-mobile-open .f-mob-logo-wrap {
  gap: 12px;
}

.footer-mobile-open .f-mob-logo {
  margin: 0;
}

.footer-mobile-open .f-mob-desc {
  max-width: 330px;
  margin: 0 auto 24px;
  font-size: 0.92rem;
  line-height: 1.6;
}

.f-mob-mail-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.06);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: var(--radius-full);
  transition: background var(--transition-fast), border-color var(--transition-fast);
}

.f-mob-mail-btn:hover,
.f-mob-mail-btn:active {
  background: rgba(56, 189, 248, 0.12);
  border-color: var(--accent-cyan);
}

.footer-mobile-open .f-mob-facts {
  justify-content: center;
  gap: 8px 22px;
  margin: 16px 0 32px;
  padding: 0;
}

.footer-mobile-open .f-mob-nav-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin: 0 0 30px;
  padding: 28px 4px;
  text-align: left;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.footer-mobile-open .f-mob-nav-list {
  gap: 12px;
}

.footer-mobile-open .f-mob-nav-list a,
.footer-mobile-open .f-mob-col[aria-label="Discipliner"] .f-mob-nav-list a {
  font-size: 0.95rem;
}

.footer-mobile-open .f-mob-social-row {
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 0;
  border: 0;
}

.footer-mobile-open .f-mob-social-label::after {
  content: '';
  flex: none;
  width: 18px;
  height: 1px;
  background: currentColor;
}

.footer-mobile-open .f-mob-social-icons {
  justify-content: center;
  gap: 10px;
}

.footer-mobile-open .f-mob-social-icons .social-icon-btn {
  width: 48px;
  height: 48px;
}

.footer-mobile-open .f-mob-bottom {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 10px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-mobile-open .f-mob-bottom a {
  color: var(--text-secondary);
}

/* ================================================================ area pages + overview (tools/build_catalog.py) */
.cat-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.cat-section-head .pro-h3 {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
}

.cat-section {
  margin-bottom: 48px;
}

/* overview cards on services.html */
.area-grid {
  align-items: stretch;
}

.area-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.area-card:hover,
.area-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--area);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.45), 0 0 0 1px var(--area);
}

.area-card img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.area-card .pro-discipline-body {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.area-card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--area);
}

.area-card h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.area-card h3 .nav-dot {
  flex: none;
  margin: 0;
}

.area-card .pro-link {
  margin-top: auto;
  padding-top: 12px;
  color: var(--area);
}

/* mobile drawer: areas as indented sub-links under Tjänster */
.mobile-nav-link.mobile-nav-sub {
  padding-left: 28px;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.mobile-nav-link.mobile-nav-sub .nav-dot {
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 10px 0 0;
  vertical-align: middle;
}

/* dropdown: the open page is clearly marked (row highlight, bold text, ring on the dot) */
.dropdown-item-modern[aria-current="page"] {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.12) !important;
}

.dropdown-item-modern[aria-current="page"] .dropdown-item-text {
  color: var(--text-primary);
  font-weight: 700;
}

.dropdown-item-modern[aria-current="page"] .nav-dot {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.16);
}

/* ---------- Service icons on the area pages (generated by tools/service_icons.py) ---------- */
.si-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.cat-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.cat-icon {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--ic, var(--accent-cyan));
  transition: transform 0.25s ease;
}

.cat-icon::before,
.cat-icon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transition: opacity 0.25s ease;
}

.cat-icon::before {
  background: currentColor;
  opacity: 0.12;
}

.cat-icon::after {
  border: 1px solid currentColor;
  opacity: 0.28;
}

.cat-icon .si {
  position: relative;
  width: 21px;
  height: 21px;
}

.cat-card:hover .cat-icon {
  transform: translateY(-2px);
}

.cat-card:hover .cat-icon::before {
  opacity: 0.2;
}

.cat-card:hover .cat-icon::after {
  opacity: 0.5;
}

@media (max-width: 480px) {
  .cat-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }

  .cat-icon .si {
    width: 19px;
    height: 19px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cat-icon,
  .cat-card:hover .cat-icon {
    transition: none;
    transform: none;
  }
}
