/* ==========================================================================
   GLASBOX UI SYSTEM — ultra-clean (2026)
   - Deterministic z-index stack
   - Single-source topbar sizing (safe-area aware)
   - Mobile drawer sidebar without !important hacks
   - Dark mode via CSS variables (no global color overrides)
   ========================================================================== */

/* ==========================================================================
   1) Design Tokens
   ========================================================================== */

:root{
  --font-ui: "Inter", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --font-mono: "Inter", system-ui, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  --topbar-fade-strong: rgba(255,255,255,0.92);
  --topbar-fade-mid: rgba(255,255,255,0.78);
  --topbar-fade-weak: rgba(255,255,255,0.00); 

  /* Surfaces */
  --bg: #fbfbfc;
  --bg-elev: #ffffff;
  --bg-elev-2: #f6f7f9;
  --bg-surface: #ffffff; /* used by sticky topbar */

  /* Text */
  --text: #0f172a;
  --muted: rgba(15, 23, 42, 0.62);

  /* Borders */
  --border: rgba(15, 23, 42, 0.10);
  --border-strong: rgba(15, 23, 42, 0.16);

  /* Accents */
  --green: #e37400;
  --amber: #e37400;
  --ring: rgba(227, 116, 0, 0.32);
  --ring-halo: rgba(255, 255, 255, 0.92);

  /* Radii & shadows */
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,0.06);
  --shadow:    0 10px 30px rgba(15,23,42,0.08);

  /* Layout */
  --content-max: 1040px;

  /* Strict z-index hierarchy */
  --z-content: 10;
  --z-topbar: 100;
  --z-overlay: 800;
  --z-sidebar: 900;
  --z-modal: 2000;
  --z-consent: 2100;

  /* Topbar sizing (single source of truth) */
  --topbar-h: 80px;
}

html[data-theme="dark"]{
  --bg: #0b0f14;
  --bg-elev: #0f151d;
  --bg-elev-2: #0c1118;
  --bg-surface: #0b0f14;

  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.64);

  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.16);

  --ring: rgba(227, 116, 0, 0.42);
  --ring-halo: rgba(11, 15, 20, 0.72);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.30);
  --shadow:    0 14px 40px rgba(0,0,0,0.35);

  --topbar-fade-strong: rgba(11,15,20,0.92);
  --topbar-fade-mid: rgba(11,15,20,0.72);
  --topbar-fade-weak: rgba(11,15,20,0.00);

}

/* ==========================================================================
   2) Base / Reset
   ========================================================================== */

*{ box-sizing:border-box; }
html, body { height: 100%; overflow: hidden; }

body{
  margin:0;
  font-family:var(--font-ui);
  color:var(--text);
  background: var(--bg);
  overflow: hidden; /* critical: disable page scroll */
  transition: background-color .18s ease, color .18s ease, opacity .18s ease;
}

html.fade-init .content{
  opacity: 0;
  transform: translateY(4px);
}

html.fade-ready .content{
  opacity: 1;
  transform: translateY(0);
  transition: opacity .18s ease, transform .18s ease;
}

body.route-transition-out .content{
  opacity: .58;
  transform: translateY(-2px);
}

body::after{
  content:"";
  position: fixed;
  inset: 0;
  z-index: 1900;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 18%, color-mix(in srgb, var(--text) 5%, transparent), transparent 32%),
    color-mix(in srgb, var(--bg) 34%, rgba(15, 23, 42, 0.18));
  transition: opacity .14s ease;
}

body.route-transition-out::after{
  opacity: 1;
}

a{ color:inherit; text-decoration:none; }
button{ font-family:inherit; }

:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring-halo), 0 0 0 6px var(--ring);
  border-radius: 10px;
}

/* Buttons keep crisp focus without doubled border emphasis */
.btn:focus-visible,
.icon-btn:focus-visible,
.seg-btn:focus-visible,
.view-btn:focus-visible{
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring-halo), 0 0 0 6px var(--ring);
}

@media (prefers-reduced-motion: reduce){
  *{ animation:none !important; transition:none !important; scroll-behavior:auto !important; }
  body::after{ content:none; }
  html.fade-init .content,
  html.fade-ready .content,
  body.route-transition-out .content{
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   3) App Shell Layout
   ========================================================================== */

.app-shell{
  height: 100vh;
  height: 100dvh; /* critical: fixes flex height so .content can overflow */
  width: 100%;
  display:flex;
  position: relative;
}

/* Main column */
.main{
  flex:1;
  display:flex;
  flex-direction:column;
  min-width:0;
  overflow:visible; /* topbar sticky requires visible, scroll lives in .content */
  min-height: 0;
}

/* Content area (scroll container) */
.content{
  flex: 1;
  min-height: 0; /* critical: flex/overflow scroll fix */
  overflow: auto;                  /* only this element scrolls */
  -webkit-overflow-scrolling: touch; /* iOS momentum scroll */
  overscroll-behavior-y: auto;     /* allow pull-to-refresh on supported devices */
  padding: 28px 22px 80px;
  scroll-behavior: smooth;
}

/* View routing */
.view-section{
  display:none;
  max-width: var(--content-max);
  margin: 0 auto;
  animation: fadeUp .22s ease-out;
}
.view-section.active{ display:block; }

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

/* ==========================================================================
   4) Overlay + Sidebar
   ========================================================================== */

.sidebar-overlay{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.42);
  backdrop-filter: blur(2px);
  display:none;
  z-index: var(--z-overlay);
  cursor: pointer;
}
.sidebar-overlay.show{ display:block; }

.sidebar{
  width: 272px;
  height: 100vh;
  position: sticky; /* desktop default */
  top: 0;

  display:flex;
  flex-direction:column;
  padding: 16px;

  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  border-right:1px solid var(--border);
  z-index: var(--z-sidebar);
}

.sidebar-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  height:40px;
  margin-bottom: 14px;
}

.logo-area{
  display:flex;
  align-items:center;
  gap:10px;
  padding-left: 10px;
  letter-spacing:-0.5px;
  font-weight:800;
  font-size: 16px;
}
.logo-hash{ color: var(--amber); }
.logo-text{ color: var(--text); }

.sidebar-cta{ margin: 10px 0 14px; }

.nav-menu{
  flex:1;
  display:flex;
  flex-direction:column;
  gap: 4px;
  overflow:auto;
  padding-right: 2px;
}

.nav-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin: 14px 0 8px 12px;
}

.nav-item{
  display:flex;
  align-items:center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  color: color-mix(in srgb, var(--text) 74%, transparent);
  border: 1px solid transparent;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}

.nav-item .icon{
  font-family:"Material Icons";
  font-size:18px;
  line-height:1;
  color: color-mix(in srgb, var(--text) 66%, transparent);
}

.nav-item:hover,
.nav-item:focus-visible{
  background: color-mix(in srgb, var(--bg-elev-2) 78%, transparent);
  color: var(--text);
  border-color: var(--border);
}
.nav-item.active{
  background: color-mix(in srgb, var(--green) 12%, transparent);
  color: var(--text);
  font-weight: 700;
  border-color: color-mix(in srgb, var(--green) 22%, var(--border));
}
.nav-item.active .icon{ color: var(--green); }

.nav-spacer{ height: 14px; }

.sidebar-footer{
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 12px 0;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}

.sidebar-lang .seg-btn{
  flex: 1;
  text-align: center;
}

/* ==========================================================================
   5) Topbar (Sticky + Safe Area)
   ========================================================================== */

.topbar{
  /* Layout */
  display:flex;
  align-items:center;
  justify-content:space-between;
  isolation: isolate;

  /* Safe area */
  padding-top: env(safe-area-inset-top, 0px);

  /* Spacing */
  padding-left: 24px;
  padding-right: 24px;

  /* Height = base + safe-area */
  height: calc(var(--topbar-h) + env(safe-area-inset-top, 0px));

  /* Style */
  background: linear-gradient(
    to bottom,
    var(--topbar-fade-strong) 0%,
    var(--topbar-fade-mid) 60%,
    var(--topbar-fade-weak) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;

  /* Sticky */
  position: sticky;
  top: 0;
  z-index: var(--z-topbar);

  transition: box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
  box-shadow: none;
}

.topbar::before{
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .18s ease;
}

.topbar.scrolled{
  box-shadow: none;
}

/* Topbar Logo — visible on mobile/tablet only (sidebar hidden on desktop) */
.topbar-logo {
  display: none;
  text-decoration: none;
}

.topbar-logo .logo-hash {
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  line-height: 1;
}

.topbar-logo .logo-text {
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .topbar-logo {
    display: flex;
    align-items: center;
    gap: 6px;
  }
}

/* Desktop header: seamless white fade into content */
@media (min-width: 769px) {
  html[data-theme="light"] .topbar {
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.82) 48%,
      rgba(255, 255, 255, 0) 100%
    );
    border-bottom: none;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  html[data-theme="light"] .topbar::before {
    display: none;
  }

  html[data-theme="light"] .topbar.scrolled {
    box-shadow: none;
  }
}

.topbar-left,
.topbar-right{
  display:flex;
  align-items:center;
  gap: 16px;
}

.context{ display:flex; align-items:baseline; gap: 10px; }
.context-label{ color: var(--muted); }
.context-value{ font-family: var(--font-mono); font-weight: 600; }

/* ==========================================================================
   6) Core Components
   ========================================================================== */
.kpi-value--green{ color: var(--green); }

.icon{
  font-family:"Material Icons";
  font-style:normal;
  font-weight:normal;
  line-height:1;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap: 10px;
  border-radius: 15px;
  padding: 10px 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor:pointer;
  transition: background .16s ease, border-color .16s ease, transform .10s ease;
}
.btn:hover{
  background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent);
  border-color: var(--border-strong);
}
.btn:active{ transform: translateY(1px); }

.btn-primary{
  background: var(--green);
  border-color: color-mix(in srgb, var(--green) 70%, black);
  color: white;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover{
  background: color-mix(in srgb, var(--green) 92%, rgb(255,255,255));
}

.btn-ghost{ width:100%; margin-top: 10px; }
.btn-full{ width:100%; border-radius: 12px; padding: 12px 14px; }

/* Icon button */
.icon-btn{
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: transparent;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  color: var(--muted);
  cursor:pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}
.icon-btn:hover{
  background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent);
  border-color: var(--border-strong);
  color: var(--text);
}
.icon-btn .icon{ font-size: 20px; }

/* Segmented control */
.segmented{
  display:inline-flex;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  border-radius: 999px;
  padding: 3px;
  gap: 4px;
}
.seg-btn{
  border:0;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.seg-btn[aria-pressed="true"]{
  background: color-mix(in srgb, var(--bg-elev-2) 85%, transparent);
  color: var(--text);
}

/* Typography */
h1{
  font-size: 30px;
  letter-spacing: -0.6px;
  margin: 0 0 10px;
  line-height: 1.15;
}
h2{
  font-size: 18px;
  margin: 0;
  letter-spacing: -0.2px;
}
h3{
  font-size: 14px;
  margin: 0 0 8px;
  font-weight: 700;
}

.subtitle{
  color: var(--muted);
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.6;
}
.desc{
  color: var(--muted);
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.7;
  max-width: 720px;
}
.muted{ color: var(--muted); }
.dot{ color: var(--muted); margin: 0 6px; }

/* Cards */
.card{
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
}

/* ==========================================================================
   7) Sections / Grids
   ========================================================================== */

.section-hero{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap: 18px;
  margin-bottom: 18px;
}

.hero-badges{ display:flex; gap: 8px; flex-wrap:wrap; }

.hero{
  margin-bottom: 40px;
}

.hero-copy{
  max-width: 620px;
}

.hero-title{
  font-size: 34px;
  line-height: 1.15;
}

.hero-subtitle{
  margin-top: 12px;
  margin-bottom: 24px;
}

.hero-actions{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-summary {
  font-size: 15px;
  line-height: 1.7;
  color: var(--muted);
  max-width: 680px;
  margin-top: 16px;
}

.trust-chips {
  margin-top: 24px;
  opacity: 0.85;
}

.trust-chip {
  border: none;
}

.trust-chip:first-child {
  padding-left: 0;
}

.trust-chip .icon {
  font-size: 14px;
  vertical-align: middle;
  margin-right: 4px;
}

.tech-logo-text {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.5px;
  margin-left: 6px;
}

.tech-logo-infomaniak {
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -1px;
  font-family: -apple-system, sans-serif;
}

.price-disclaimer {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.chat-center-head {
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

.chat-center-desc {
  margin: 0 auto;
}

.chat-placeholder-icon {
  font-size: 48px;
  color: var(--amber);
}

.btn-lg{
  padding: 12px 20px;
}

.pill{
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev-2) 82%, transparent);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
}
.pill-green{
  border-color: color-mix(in srgb, var(--green) 26%, var(--border));
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: color-mix(in srgb, var(--green) 92%, var(--text));
}

.hero-metrics{
  display:grid;
  grid-template-columns: repeat(3, minmax(90px, 1fr));
  gap: 10px;
  min-width: 320px;
}

.kpi{
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
}
.kpi-label{
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.kpi-value{
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 500;
  margin-top: 6px;
}

/* Module section */
.module-section{ margin-top: 22px; }
.list-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap: 10px;
  margin: 0 0 12px;
}
.filter-box{
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev-2) 82%, transparent);
  padding: 6px 10px;
  border-radius: 999px;
}

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

.module-card{
  text-align:left;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor:pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .14s ease, border-color .14s ease, box-shadow .14s ease;
  text-decoration: none;
  display: block;
}
.module-card:hover{
  transform: translateY(-2px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
}
.module-card:active{ transform: translateY(0); }

.module-card-highlight{
  border-color: color-mix(in srgb, var(--amber) 30%, var(--border));
  background: color-mix(in srgb, var(--amber) 6%, var(--bg-elev));
}

.module-top{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom: 10px;
}
.module-top .icon{ font-size: 22px; }

.badge{
  font-size: 11px;
  padding: 5px 8px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--muted);
  background: color-mix(in srgb, var(--bg-elev-2) 82%, transparent);
  font-weight: 800;
}
.badge-green{
  border-color: color-mix(in srgb, var(--green) 26%, var(--border));
  color: color-mix(in srgb, var(--green) 92%, var(--text));
  background: color-mix(in srgb, var(--green) 10%, transparent);
}
.badge-amber{
  border-color: color-mix(in srgb, var(--amber) 30%, var(--border));
  color: color-mix(in srgb, var(--amber) 92%, var(--text));
  background: color-mix(in srgb, var(--amber) 10%, transparent);
}
.badge-orange{ background: var(--amber); color: white; border-color: transparent; padding: 3px 8px; }

.module-content p{
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
.module-footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
.arrow{ font-weight: 900; }

/* Section head & offer */
.section-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.offer-switch{
  display:inline-flex;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev) 86%, transparent);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  height: fit-content;
}

.offer-btn{
  border:0;
  background: transparent;
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  padding: 8px 10px;
  border-radius: 999px;
  cursor:pointer;
}
.offer-btn[aria-pressed="true"]{
  background: color-mix(in srgb, var(--bg-elev-2) 86%, transparent);
  color: var(--text);
}

.offer-grid{
  display:grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 12px;
}
.offer-grid ul{
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.7;
}
.offer-grid li{ margin: 6px 0; }

.chips{ display:flex; flex-wrap:wrap; gap: 8px; margin-top: 12px; }
.chip{
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev-2) 82%, transparent);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Forms */
.form-grid{
  display:grid;
  grid-template-columns: 3fr 2fr;
  gap: 12px;
  margin-top: 10px;
}

.form-group{ margin-bottom: 12px; }

label{
  display:block;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: .02em;
}

input, select, textarea{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  color: var(--text);
  padding: 12px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

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

input:focus, select:focus, textarea:focus{
  border-color: color-mix(in srgb, var(--green) 55%, var(--border));
  box-shadow: 0 0 0 4px var(--ring);
}

.consent{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin: 10px 0 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.consent input{ width:auto; margin-top: 2px; }

.form-status{
  display:none;
  margin-top: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.form-status.success{
  display:block;
  border-color: color-mix(in srgb, var(--green) 30%, var(--border));
  background: color-mix(in srgb, var(--green) 10%, transparent);
  color: color-mix(in srgb, var(--green) 92%, var(--text));
}
.form-status.error{
  display:block;
  border-color: rgba(217,48,37,0.35);
  background: rgba(217,48,37,0.10);
  color: rgba(217,48,37,0.95);
}

.contact-card .contact-item{
  display:flex;
  gap: 10px;
  align-items:flex-start;
  margin-top: 12px;
}
.contact-card .contact-item .icon{ font-size: 18px; color: var(--muted); }

/* Language helpers */
.lang-en{ display:none; }
html[data-lang="en"] .lang-en{ display:block; }
html[data-lang="en"] .lang-de{ display:none; }

/* ==========================================================================
   8) Context Switcher (Business vs Engineering)
   ========================================================================== */

.view-switch{
  display: inline-flex;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 30px;
  position: relative;
  z-index: var(--z-content);
}

.view-btn{
  padding: 8px 24px;
  font-size: 13px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  border-radius: 999px;
  font-weight: 600;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: var(--font-ui);
  display: flex;
  align-items: center;
  gap: 8px;
}
.view-btn .icon{ font-size: 16px; }

.view-btn.active{
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  border: 1px solid var(--border-strong);
}

html[data-theme="dark"] .view-btn.active{
  background: #1e2329;
  color: #fff;
  border-color: #30363d;
}

/* Visualization states */
.state-business{ display:block; animation: fadeIn .35s ease; }
.state-engineering{ display:none; animation: fadeIn .35s ease; }

body.mode-engineering .state-business{ display:none; }
body.mode-engineering .state-engineering{ display:block; }

/* Engineering styling hints */
body.mode-engineering .tech-highlight{ color: var(--premium-copper); }
body.mode-engineering input,
body.mode-engineering textarea,
body.mode-engineering select{
  font-family: var(--font-mono);
  font-size: 12px;
}

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

/* ==========================================================================
   Service pages: card layouts, spec-tables, stack-grids (api/ai/seo pattern)
   ========================================================================== */

/* Page / section intro */
.page-intro{ margin-bottom: 30px; }
.page-intro .tech-font{ font-size: 32px; letter-spacing: -1px; margin-bottom: 16px; }
.page-intro .subtitle{ max-width: 800px; }

/* Intro card (neutral premium surface accent) */
.card--intro{
  margin-bottom: 30px;
  border-left: 1px solid var(--premium-line);
}
.card--intro .data-label{
  color: var(--text);
  margin-bottom: 16px;
  display: block;
}
.card--intro .data-value{ font-size: 16px; margin-bottom: 20px; }

/* Feature grid (3-col in intro card) */
.feature-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 24px;
}
.feature-grid strong{ display: block; }
.feature-grid .muted{ font-size: 13px; margin-top: 4px; }

/* Offer card header & price */
.card-offer-header{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}
.card-offer-header h3{ margin: 8px 0 0; }
.card-offer-price{ text-align: right; font-family: var(--font-mono); }
.card-offer-price .value{ font-size: 20px; font-weight: 700; }
.card-offer-price .muted{ font-size: 11px; }

/* Spec table (offer cards, engineering) */
.spec-table{
  width: 100%;
  font-size: 14px;
  border-collapse: collapse;
  margin-bottom: 24px;
}
.spec-table td{ padding: 12px 0; }
.spec-table tr{ border-bottom: 1px solid var(--border); }
.spec-table tr:last-child td{ border-bottom: none; }
.spec-table .tech-val{ text-align: right; color: var(--amber); }
.spec-table td:last-child{ text-align: right; }

/* Data label (// CODE_STYLE) */
.data-label{
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 700;
  color: var(--text);
}
.tech-highlight{ color: var(--amber); }

/* Button row under cards */
.btn-row{ display: flex; gap: 12px; flex-wrap: wrap; }
.btn-row .btn{ flex: 1; min-width: 140px; }

/* Tag row (data-label + pills) */
.tag-row{ margin-top: 30px; }
.tag-row .data-label{ margin-bottom: 10px; }
.tag-row .pills{ display: flex; flex-wrap: wrap; gap: 8px; }

/* Stack grid (engineering cards) */
.stack-grid{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 8px;
}
.stack-item{
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
}
.stack-item-label{
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}
.stack-item strong{ font-size: 14px; }

/* Engineering card header & lead */
.card-engineering-head{
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 14px;
}
.card-engineering-body{
  font-family: var(--font-mono);
  font-size: 13px;
  margin: 16px 0 24px;
  color: var(--text);
  line-height: 1.55;
}

/* Details list (accordion specs) */
.details-list details{ margin-bottom: 10px; }
.details-list details:last-child{ margin-bottom: 0; }
.details-list summary{
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 0;
}
.details-list summary::-webkit-details-marker{ opacity: 0.5; }
.details-list .details-content{
  padding: 16px;
  font-size: 13px;
  line-height: 1.6;
}
.details-list .details-content ul{ margin: 0 0 0 18px; padding: 0; }
.details-list .details-content li{ margin-bottom: 6px; }

/* CTA card (accent border) */
.card--cta{
  margin-top: 30px;
  border-left: 1px solid var(--premium-line);
}
.card--cta .card-cta-inner{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.card--cta .card-cta-price{ font-size: 18px; font-weight: 700; color: var(--premium-copper); font-family: var(--font-mono); }
.card--cta .card-cta-actions{ margin-top: 20px; }
.card--cta .btn--outline{ width: 100%; justify-content: center; border-color: var(--premium-copper); color: var(--premium-copper); }

.card--cta.card--cta-amber{ border-left-color: #e37400; }
.card--cta.card--cta-amber .card-cta-price{ color: #e37400; }
.card--cta.card--cta-amber .btn--outline{ border-color: #e37400; color: #e37400; }

/* Section CTA (centered bottom) */
.section-cta{ margin-top: 50px; text-align: center; }
.section-cta .muted{ font-size: 13px; margin-bottom: 16px; }

/* Chat section header (centered) */
.chat-section-head{
  justify-content: center;
  text-align: center;
  margin-bottom: 20px;
}

/* Engineering view card spacing */
.state-engineering > .card:not(.card--cta){ margin-bottom: 30px; }
.state-engineering > .card:last-child{ margin-bottom: 0; }

/* Checkbox grid (tech stack selection) */
.checkbox-grid{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 8px;
}

.check-card{ position: relative; }

.check-card input{
  position:absolute;
  opacity:0;
  cursor:pointer;
  height:0;
  width:0;
}

.check-label{
  display:flex;
  align-items:center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: all 0.2s;
}

.check-label:hover{ border-color: var(--border-strong); color: var(--text); }

.check-card input:checked ~ .check-label{
  background: color-mix(in srgb, var(--premium-copper) 10%, transparent);
  border-color: var(--premium-copper);
  color: var(--premium-copper);
  font-weight: 700;
}

.check-card input:checked ~ .check-label .icon{ color: var(--premium-copper); }

/* ==========================================================================
   9) Consent Manager (single definition)
   ========================================================================== */

.consent-shell{
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 340px;

  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);

  z-index: var(--z-consent);
  font-family: var(--font-ui);

  animation: slideInUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  display: none; /* JS should control visibility */
}

.consent-header{
  padding: 12px 16px;
  background: var(--bg-elev-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.consent-icon{ color: var(--green); font-size: 16px; }

.consent-label{
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--muted);
  text-transform: uppercase;
}

.consent-body{ padding: 16px; }

.consent-text{
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.consent-subtext{
  display:block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.consent-actions{
  padding: 0 16px 16px;
  display:flex;
  gap: 10px;
}

.consent-btn{
  flex:1;
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display:flex;
  align-items:center;
  justify-content:center;
  border: 1px solid transparent;
  background: transparent;
}

.consent-btn.primary{
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.consent-btn.primary:hover{ opacity: .92; }

.consent-btn.ghost{
  border-color: var(--border);
  color: var(--muted);
}
.consent-btn.ghost:hover{
  border-color: var(--border-strong);
  color: var(--text);
}

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

/* ==========================================================================
   10) Responsive Engine
   ========================================================================== */

/* Desktop default */
#burgerBtn, .burger-btn{ display:none; }
.sidebar-close{ display:none; }

/* Narrow desktop / half-screen windows (pre-tablet gap) */
@media (max-width: 1280px) and (min-width: 981px){
  .sidebar{
    width: 248px;
    padding: 14px;
  }

  .content{
    padding: 22px 16px 72px;
  }

  .view-section{
    max-width: 100%;
  }

  .dash-hero{
    margin-bottom: 20px;
  }

  .section-hero{
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .hero-copy{
    max-width: none;
  }

  .hero-title{
    font-size: clamp(40px, 2.9vw, 50px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
  }

  .hero-subtitle{
    margin-top: 8px;
    margin-bottom: 16px;
    max-width: 72ch;
    line-height: 1.55;
  }

  .hero-summary{
    margin-top: 12px;
    font-size: 14px;
    line-height: 1.62;
    max-width: 74ch;
  }

  .hero-actions{
    gap: 10px;
  }

  .chips.trust-chips{
    margin-top: 18px;
    gap: 6px;
  }

  .view-section:not(#dashboard) .hero-metrics{
    min-width: 0;
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .kpi{
    padding: 10px;
  }

  .kpi-label{
    font-size: 10px;
    letter-spacing: .05em;
  }

  .kpi-value{
    font-size: clamp(15px, 1.45vw, 18px);
    margin-top: 4px;
  }
}

@media (max-width: 1160px) and (min-width: 981px){
  .view-section:not(#dashboard) .hero-metrics{
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Tablet */
@media (max-width: 1020px){
  .view-section:not(#dashboard) .hero-metrics{
    min-width: 0;
    grid-template-columns: repeat(3, minmax(80px, 1fr));
  }
}

/* Mobile drawer */
@media (max-width: 980px){
  :root{ --topbar-h: 70px; }

  .content{
    padding: 18px 14px calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .offer-grid,
  .form-grid{
    grid-template-columns: 1fr;
  }

  .section-hero{ flex-direction: column; }

  /* Sidebar becomes a glass drawer */
  .sidebar{
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    height: 100dvh;
    width: 288px;

    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);

    /* ULTRA-CLEAN: Gradient instead of solid color */
    background: linear-gradient(
      180deg, 
      var(--bg-elev) 0%, 
      color-mix(in srgb, var(--bg-elev) 90%, transparent) 35%, 
      transparent 100%
    );

    /* Glass effect */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    /* Remove heavy borders/shadows for airy feel */
    box-shadow: none;
    border-right: none;
    
    padding-bottom: env(safe-area-inset-bottom, 20px);
    z-index: var(--z-sidebar);
    
    /* Ensure content structure allows for scroll masking */
    display: flex;
    flex-direction: column;
    overflow: hidden;
  }

  /* Mobile: remove inner sidebar/nav scroll */
  .sidebar .nav-menu {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding-right: 0;
  }

  .sidebar.open{ transform: translateX(0); }

  .sidebar-overlay{ 
    z-index: var(--z-overlay);
    /* Lighter overlay to match the clean style */
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
  }

  /* Burger button becomes visible and clickable */
  #burgerBtn, .burger-btn{
    display: inline-flex;
    align-items:center;
    justify-content:center;
    cursor: pointer;
    color: var(--text);

    /* z-index only works with positioning */
    position: relative;
    z-index: calc(var(--z-topbar) + 1);
  }

  .sidebar-close{ display: inline-flex; }

  /* Topbar on mobile: slightly tighter padding */
  .topbar{
  padding-left: 16px;
  padding-right: 16px;
  border-bottom: none;
  background: transparent;
}

/* Mobile fade overlay */
.topbar::before{
  opacity: 1;
  background: linear-gradient(
    to bottom,
    var(--topbar-fade-strong) 0%,
    var(--topbar-fade-mid) 55%,
    var(--topbar-fade-weak) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
}

/* Small mobile */
@media (max-width: 600px){
  .offer-switch{
    width: 100%;
    display:flex;
  }
  .offer-btn{
    flex:1;
    justify-content:center;
    text-align:center;
  }
  .icon-btn{
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 480px){
  .view-section:not(#dashboard) .hero-metrics{ grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .view-section:not(#dashboard) .kpi-label{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

  .view-section:not(#dashboard) .kpi-value{
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

  .consent-shell{
    /* Phase A.2: keep clearance above compact footer (see § V-404 mobile block) */
    right: 0;
    left: 0;
    width: auto;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
  }
}

/* ==========================================================================
   11) Dark mode practical tweaks (no global overrides)
   ========================================================================== */

html[data-theme="dark"] .icon-btn{ color: var(--text); }
html[data-theme="dark"] .nav-item{ color: rgba(255,255,255,0.78); }
html[data-theme="dark"] .nav-item:hover,
html[data-theme="dark"] .nav-item:focus-visible{ color: #fff; }
html[data-theme="dark"] .nav-item.active{ color: #fff; }
html[data-theme="dark"] .nav-item.active .icon{ color: var(--green); }

html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea{
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
}

/* ==========================================================================
   MOBILE FULL SCREEN MODE
   ========================================================================== */
@media (max-width: 980px) {

  /* 1. Fullscreen Container */
  #glasbox_chat.view-section {
    position: fixed;
    inset: 0;
    z-index: 100;
    background: var(--bg);
    margin: 0;
    padding: 0;
    height: 100dvh;
    display: none;
    flex-direction: column;
  }
  
  #glasbox_chat.view-section.active { display: flex; }

  /* 2. Shell */
  .chat-shell {
    flex: 1;
    height: auto;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: var(--bg);
  }

  /* 3. Output Area */
  .chat-output {
    /* More top padding to push text lower initially */
    padding: 100px 16px 20px 16px; 
  }

  /* 4. Input Area */
  .chat-form {
    background: var(--bg);
    border-top: 1px solid var(--border);
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 20px));
    position: relative;
    z-index: 120;
  }
  
  .chat-input-wrapper { border-radius: 24px; }

  /* 5. Header Visuals */
  .chat-header-wrapper {
    /* Push initial header down significantly for aesthetics */
    padding-top: 12vh; 
    text-align: center;
  }
  
  /* State: Hide Header */
  .chat-mode-active .chat-header-wrapper {
    max-height: 0;
    padding-top: 0;
    opacity: 0;
    margin: 0;
  }
  


  /* Adjust content when header is gone */
  .chat-mode-active .chat-output {
    padding-top: 20px; 
  }

  /* Disclaimer on mobile - ensure it doesn't break layout */
  .chat-disclaimer {
    font-size: 9px;
    margin-top: 8px;
  }

  /* Adjust Logo for Mobile */
  .chat-bg-logo {
    font-size: 100px;
    top: 45%; 
  }
  
  /* Header Fix Logic from previous step (KEEP THIS) */
  body.view-mode-chat .topbar {
    position: absolute;
    width: 100%;
    background: transparent;
    border-bottom: none;
    box-shadow: none;
    pointer-events: none;
    z-index: 101;
  }
  
  body.view-mode-chat .topbar button, 
  body.view-mode-chat .topbar a {
    pointer-events: auto;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
  }
  
  html[data-theme="dark"] body.view-mode-chat .topbar button,
  html[data-theme="dark"] body.view-mode-chat .topbar a {
    background: rgba(0, 0, 0, 0.5);
    border-color: rgba(255,255,255,0.1);
  }


  /* --- 6. General Mobile Adjustments (Existing) --- */
  :root{ --topbar-h: 70px; }

  .content{
    padding: 18px 14px calc(140px + env(safe-area-inset-bottom, 0px));
  }

  .offer-grid, .form-grid{ grid-template-columns: 1fr; }
  .section-hero{ flex-direction: column; }

  /* Sidebar Drawer Logic */
  .sidebar{
    position: fixed;
    top: 0; left: 0;
    height: 100vh; height: 100dvh;
    width: 288px;
    transform: translateX(-105%);
    transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
    background: linear-gradient(180deg, var(--bg-elev) 0%, color-mix(in srgb, var(--bg-elev) 90%, transparent) 35%, transparent 100%);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: none; border-right: none;
    padding-bottom: env(safe-area-inset-bottom, 20px);
    z-index: var(--z-sidebar);
    display: flex; flex-direction: column;
    overflow: hidden;
  }

  .sidebar .nav-menu {
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
    padding-right: 0;
  }

  .sidebar.open{ transform: translateX(0); }

  .sidebar-overlay{ 
    z-index: var(--z-overlay);
    background: rgba(0,0,0,0.25);
    backdrop-filter: blur(4px);
  }

  #burgerBtn, .burger-btn{
    display: inline-flex;
    position: relative;
    z-index: calc(var(--z-topbar) + 1);
  }

  .sidebar-close{ display: inline-flex; }
  
  /* Default Mobile Topbar (Non-Chat) */
  .topbar{
    padding-left: 16px;
    padding-right: 16px;
  }
}

/* ==========================================================================
   10b) Mobile Header — CSS Grid + Gradient Glass (max-width: 768px only)
   Grid forces dead-centre logo; gradient fade replaces broken mask-image.
   ========================================================================== */
@media (max-width: 768px) {

  /* ── 1. Grid surface ──────────────────────────────────────────── */
  .topbar {
    position: sticky;
    top: 0;
    z-index: 1000;

    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    height: 64px;
    padding: 0 16px;

    /* Transparent base — gradient creates the visible glass fill */
    background-color: transparent;
    background-image:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.74) 0%,
        rgba(255, 255, 255, 0.46) 48%,
        rgba(255, 255, 255, 0.16) 78%,
        rgba(255, 255, 255, 0)    100%
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.14) 0%,
        rgba(246, 248, 252, 0.08) 48%,
        rgba(255, 255, 255, 0.12) 100%
      );

    backdrop-filter: blur(14px) saturate(1.05);
    -webkit-backdrop-filter: blur(14px) saturate(1.05);

    /* Clean edges — gradient handles the fade, no border needed */
    border-bottom: none;
    box-shadow: none;

    /* Kill mask-image (was hiding the gradient) */
    mask-image: none;
    -webkit-mask-image: none;
  }

  /* Kill the ::before overlay inherited from the ≤980px query */
  .topbar::before {
    display: none;
  }

  /* Kill the scrolled shadow (gradient owns the edge now) */
  .topbar.scrolled {
    box-shadow: none;
  }

  /* ── 2. Left slot — burger + logo ─────────────────────────────── */
  .topbar-left {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 10px;
    position: static;
    transform: none;
  }

  /* ── 3. Right slot — tool icons ───────────────────────────────── */
  .topbar-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 12px;
    position: static;
    transform: none;
  }

  /* ── 4. Soft lower fade ─────────────────────────────────────────── */
  .topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -18px;
    height: 18px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  /* ── 5. Icon geometry — uniform hit targets ───────────────────── */
  .topbar .icon-btn,
  .topbar #burgerBtn {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* ── 7. Chat mode — fully transparent overlay ─────────────────── */
  body.view-mode-chat .topbar {
    background-color: transparent;
    background-image: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    pointer-events: none;
  }

  body.view-mode-chat .topbar::after {
    display: none;
  }

  body.view-mode-chat .topbar-logo {
    display: none;
  }

  body.view-mode-chat .topbar-left,
  body.view-mode-chat .topbar-right {
    pointer-events: auto;
  }
}

/* ==========================================================================
   Dashboard content (no inline styles)
   ========================================================================== */

.dash-hero { margin-bottom: 26px; }

.dash-packages { margin-bottom: 18px; }
.dash-packages-head { margin-bottom: 10px; }

.dash-cta-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.dash-sidecard { background: var(--bg-elev-2); }

.dash-list { margin: 8px 0 0; padding-left: 18px; }

.dash-audit { margin-top: 12px; padding: 14px; }
.dash-audit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }

.dash-note { margin-top: 12px; padding: 14px; }

.dash-list-header { margin-bottom: 16px; }

.dash-cta-row {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 15px;
}

.dash-cta-title { margin: 0 0 4px; font-size: 16px; }
.dash-cta-subtitle { margin: 0; font-size: 13px; }

/* Decision Guide ========================================================= */
.decision-guide {
  border-left: 3px solid var(--amber);
  padding: 24px 22px;
  margin-top: 28px;
  margin-bottom: 18px;
}

.decision-guide-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.decision-guide-header h2 { margin: 0 0 4px; }
.decision-guide-header .muted { margin: 0; font-size: 14px; }

.decision-guide-icon {
  font-size: 26px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.decision-guide-options {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.decision-option {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: border-color 0.15s ease;
}

.decision-option:hover {
  border-color: var(--border-strong);
}

.decision-option-badge {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 68px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 7%, transparent);
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--text) 10%, transparent);
  white-space: nowrap;
}

.decision-option-badge--pro {
  background: color-mix(in srgb, var(--amber) 12%, transparent);
  color: color-mix(in srgb, var(--amber) 90%, var(--text));
  border-color: color-mix(in srgb, var(--amber) 22%, transparent);
}

.decision-option-badge--custom {
  background: color-mix(in srgb, var(--muted) 10%, transparent);
  color: var(--muted);
  border-color: color-mix(in srgb, var(--muted) 14%, transparent);
}

.decision-option p { margin: 0; line-height: 1.6; }

.decision-guide-timeline {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--amber) 5%, var(--bg-elev-2));
  border-radius: var(--radius-sm);
  border: 1px solid color-mix(in srgb, var(--amber) 10%, var(--border));
}

.decision-guide-timeline .icon {
  font-size: 18px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 1px;
}

.decision-guide-timeline p {
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}

.privacy-card { text-align: center; padding: 40px; }
.privacy-muted { margin-bottom: 20px; }

.privacy-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.chat-send-icon {
  font-size: 18px;
}

.chat-placeholder {
  opacity: 0.6;
  text-align: center;
  margin-top: auto;
  margin-bottom: auto;
}

/* Main Footer ============================================================= */
.main-footer {
  border-top: 1px solid var(--border);
  padding: 28px 28px 20px;
  font-size: 12px;
  color: var(--muted);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  max-width: var(--content-max, 960px);
  margin: 0 auto;
  padding-bottom: 16px;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  width: fit-content;
}

.footer-logo-hash {
  color: var(--amber);
  font-weight: 800;
  font-size: 14px;
  font-family: var(--mono, 'SF Mono', 'Fira Code', ui-monospace, monospace);
}

.footer-logo-text {
  color: var(--text);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: -0.3px;
}

.footer-tagline {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
  opacity: 0.7;
}

.footer-nav {
  display: flex;
  gap: 32px;
  flex: 1;
  justify-content: flex-end;
}

.footer-nav-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.footer-nav-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text);
  margin-bottom: 2px;
  font-family: var(--mono, 'SF Mono', 'Fira Code', ui-monospace, monospace);
}

.footer-nav-col a {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  padding: 1px 0;
  transition: color 0.15s;
}

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

.footer-bottom {
  border-top: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  max-width: var(--content-max, 960px);
  margin: 0 auto;
  padding-top: 12px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.footer-legal a {
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s;
}

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

.footer-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.footer-copy {
  font-size: 11px;
  color: var(--muted);
  margin: 0;
  white-space: nowrap;
}

.footer-origin {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.5;
  font-family: var(--mono, 'SF Mono', 'Fira Code', ui-monospace, monospace);
  letter-spacing: 0.02em;
}

.footer-trust {
  font-size: 10px;
  color: var(--muted);
  opacity: 0.4;
}

.footer-origin::before {
  content: '\00b7';
  margin: 0 6px;
  opacity: 0.4;
}

.footer-trust::before {
  content: '\00b7';
  margin: 0 6px;
  opacity: 0.4;
}

/* ==========================================================================
   FOOTER — TABLET/DESKTOP COMPACT LEGAL BAR (v3)
   The sidebar (>=981px) + mobile topbar drawer (<981px) already render the
   full nav. The footer-nav inside .footer-inner was a 100% duplicate, which
   inflated footer height. From 641px upwards we hide that duplicate column
   block and present only the .footer-bottom legal/copy/trust strip.
   Mobile (<641px) keeps its current compact behaviour.
   ========================================================================== */

/* Tablet + desktop: suppress duplicated nav grid, render only the legal bar. */
@media (min-width: 641px) {
  .main-footer {
    padding: 14px 22px 12px;
    font-size: 11px;
    line-height: 1.45;
  }

  .main-footer .footer-inner {
    display: none;
  }

  .footer-bottom {
    max-width: 1180px;
    border-top: 1px solid color-mix(in srgb, var(--border) 55%, transparent);
    padding: 12px 0 0;
    gap: 6px 16px;
    align-items: center;
    row-gap: 6px;
  }

  .footer-legal {
    gap: 4px 14px;
  }

  .footer-legal a {
    font-size: 11px;
  }

  .footer-meta {
    gap: 10px;
    margin-left: auto;
    flex-wrap: wrap;
  }

  .footer-copy {
    font-size: 11px;
    line-height: 1.4;
  }

  .footer-origin,
  .footer-trust {
    font-size: 10px;
    white-space: nowrap;
  }

}

/* Mid-narrow tablet (641-820): allow the legal/meta row to wrap to a 2nd row
   instead of squeezing onto one line. Still no big footer grid. */
@media (min-width: 641px) and (max-width: 820px) {
  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
    padding-top: 10px;
  }

  .footer-meta {
    margin-left: 0;
    flex-wrap: wrap;
    justify-content: center;
  }

  .footer-legal {
    justify-content: center;
  }
}

/* Footer responsive: mobile — compact: only legal + copy (UNCHANGED). */
@media (max-width: 640px) {
  .main-footer {
    padding: 14px 16px 12px;
  }

  .footer-inner {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    border-top: 0;
    padding-top: 0;
  }

  .footer-legal {
    justify-content: center;
  }

  .footer-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .footer-origin,
  .footer-trust {
    display: none;
  }

  .footer-copy {
    white-space: normal;
    text-align: center;
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .footer-nav-col a,
  .footer-legal a {
    transition: none;
  }
}

/* Ensure interaction layers are correct */
.typing-area,
.msg-ai,
.chat-output {
  pointer-events: auto;
}

/* Consolidated Chat Link Styles */
.chat-output a.chat-link {
  color: var(--green);          /* Branding compliance */
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;   /* Better readability */
  cursor: pointer;
  pointer-events: auto;         /* Force clickable */
  position: relative;           /* Safety for z-index */
  z-index: 5;                   /* Ensure it sits above bubble background */
  transition: opacity 0.2s ease;
}

.chat-output a.chat-link:visited {
  color: var(--green);          /* Don't change color after visit */
}

.chat-output a.chat-link:hover {
  opacity: 0.8;
  text-decoration-color: currentColor;
}

.chat-output a.chat-link:active {
  opacity: 0.6;
  transform: translateY(1px);
}

/* ==========================================================================
   2026 VIEW TRANSITIONS (Native Soft-Nav)
   ========================================================================== */

.sidebar {
  view-transition-name: sidebar-area; /* Sidebar stays stable */
}

.main {
  view-transition-name: main-content; /* Content animates */
}

.topbar {
  view-transition-name: topbar-area;
}


::view-transition-old(main-content) {
  animation: fadeOut 0.2s ease-in forwards;
}

::view-transition-new(main-content) {
  animation: slideIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
  mix-blend-mode: normal;
}


@keyframes fadeOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-5px); }
}

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


::view-transition-old(sidebar-area),
::view-transition-new(sidebar-area),
::view-transition-old(topbar-area),
::view-transition-new(topbar-area) {

  animation: none;
  mix-blend-mode: normal;
}

/* --- FIX: Sliding pill for Code/Enterprise switch (contact only) --- */
.view-switch{
  position: relative;
  isolation: isolate;
  --pill-x: 0px;
  --pill-w: 0px;
}

.view-switch::before{
  content:"";
  position:absolute;
  top:4px;
  left:4px;
  height: calc(100% - 8px);
  width: var(--pill-w);
  transform: translateX(var(--pill-x));
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  transition: transform .22s cubic-bezier(0.2,0.8,0.2,1), width .22s cubic-bezier(0.2,0.8,0.2,1);
  z-index: 0;
}

/* Buttons above the slider */
.view-btn{
  position: relative;
  z-index: 1;
}

/* Active state handled by slider, not by "filled button" */
.view-btn.active{
  background: transparent;
  box-shadow: none;
  border: none;
}

/* SEO micro-dashboard (charts) */
.seo-panel-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
}

.seo-charts{
  margin-top:14px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:14px;
}

@media (max-width: 980px){
  .seo-charts{ grid-template-columns: 1fr; }
}

.seo-chart-card{
  border: 1px solid var(--border);
  background: var(--bg-elev-2);
  border-radius: 16px;
  padding: 14px;
}

.seo-chart-title{
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.seo-stage{ min-height: 140px; }

.seo-linechart{
  width:100%;
  height:140px;
  display:block;
}

.seo-grid{
  stroke: var(--border);
  stroke-width: 1;
  fill: none;
  opacity: 0.8;
}

.seo-line{
  fill: none;
  stroke: var(--amber);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 360;
  stroke-dashoffset: 360;
  animation: seoDraw 1100ms ease forwards;
}

@keyframes seoDraw{
  to{ stroke-dashoffset: 0; }
}

.seo-bars{
  height:140px;
  display:flex;
  align-items:flex-end;
  gap:8px;
  padding: 6px 2px;
}

.seo-bar{
  width: 10%;
  min-width: 14px;
  height: calc(var(--h) * 1%);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: 10px;
  position: relative;
  overflow:hidden;
  transform-origin: bottom;
  animation: seoBar 900ms ease forwards;
}

.seo-bar::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(180deg, rgba(227,116,0,0.70), rgba(227,116,0,0.10));
}

@keyframes seoBar{
  from{ transform: scaleY(0.10); opacity: 0.6; }
  to{ transform: scaleY(1); opacity: 1; }
}

.seo-legend{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-top:10px;
}

.seo-charts-head {
  display:flex;
  gap:16px;
  align-items:flex-end;
  justify-content:space-between;
  margin-bottom:16px;
  flex-wrap:wrap;
}

.seo-charts-kpis {
  display:grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap:12px;
}

.seo-kpi {
  padding:12px;
  border:1px solid var(--border);
  border-radius:14px;
  background: var(--panel);
}

.seo-charts-grid {
  display:grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap:16px;
}

.seo-chart-meta {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  margin-bottom:10px;
}

.seo-bars-legend {
  display:flex;
  gap:8px;
  align-items:center;
  margin:10px 0 8px;
}

.seo-bars { display:flex; gap:10px; align-items:flex-end; }

.seo-bar-pair { display:flex; gap:6px; align-items:flex-end; }

/* ==========================================================================
   Chat UI (Gemini / ChatGPT Style - Final Visuals)
   ========================================================================== */

/* Wrapper for the transition of the header visibility */
.chat-header-wrapper {
  transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
  overflow: hidden;
  padding-top: 12px;
}

/* State class added via JS when user interacts */
.chat-mode-active .chat-header-wrapper {
  opacity: 0;
  max-height: 0;
  margin: 0;
  padding-top: 0;
  pointer-events: none;
}

.chat-shell {
  display: flex;
  flex-direction: column;
  flex: 1;                /* fill all available vertical space */
  min-height: 0;          /* flex overflow fix */
  width: min(100%, 980px);
  margin-inline: auto;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  position: relative;     /* context for absolute background logo */
  transition: all 0.3s ease;
}

/* --- BACKGROUND LOGO ANIMATION --- */
.chat-bg-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-ui);
  font-weight: 900;
  font-size: 140px;
  color: var(--amber);
  opacity: 0.06; /* Very subtle transparency */
  filter: blur(8px); /* Blurred effect */
  pointer-events: none;
  z-index: 0; /* Behind text */
  transition: all 0.6s ease-out;
}

/* When chat starts, logo fades out and moves up */
.chat-mode-active .chat-bg-logo {
  top: 20%;
  opacity: 0;
  transform: translate(-50%, -80%) scale(0.8);
}

/* Message Area */
.chat-output {
  flex: 1;
  overflow-y: auto;
  padding: 24px 24px 10px;
  display: flex;
  flex-direction: column;
  gap: 24px; 
  scroll-behavior: smooth;
  transform: translateZ(0);
  position: relative;
  z-index: 2; /* Above the logo */
}

/* User Message */
.msg-user {
  align-self: flex-end;
  background: var(--bg-elev-2);
  color: var(--text);
  padding: 10px 16px;
  border-radius: 20px;
  border-bottom-right-radius: 4px; 
  font-size: 15px;
  line-height: 1.5;
  max-width: 85%;
  border: 1px solid var(--border);
  word-wrap: break-word;
}

/* AI Message */
.msg-ai {
  align-self: flex-start;
  background: transparent;
  color: var(--text);
  padding: 0 4px;
  font-size: 15px;
  line-height: 1.6;
  max-width: 100%;
  width: 100%;
}
.msg-ai strong { color: var(--green); font-weight: 600; }
.msg-ai ul { padding-left: 20px; margin: 8px 0; }
.msg-ai li { margin-bottom: 4px; }

/* AI Header (Avatar + Name) */
.ai-header {
  display: flex; 
  align-items: center; 
  gap: 8px; 
  margin-bottom: 6px; 
  opacity: 0.9;
}

/* Form Area */
.chat-form {
  padding: 10px 24px 20px;
  background: transparent;
  flex-shrink: 0;
  display: flex;
  flex-direction: column; /* Stack input and disclaimer */
  align-items: center;
  position: relative;
  z-index: 20;
}

@media (min-width: 981px) {
  #glasbox_chat.view-section {
    height: 100%;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  #glasbox_chat .chat-header-wrapper {
    width: min(100%, 980px);
    margin-inline: auto;
  }
}

@media (max-width: 980px) {
  .chat-header-wrapper {
    padding-top: 12vh;
  }

  .chat-shell {
    width: 100%;
    margin-inline: 0;
    border: none;
    border-radius: 0;
    background: var(--bg);
  }
}

.chat-input-wrapper {
  width: 100%;
  max-width: 760px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-radius: 26px;
  padding: 8px 8px 8px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}

.chat-input-wrapper:focus-within {
  background: var(--bg-surface);
  border-color: var(--border-strong);
  box-shadow:
    0 4px 12px rgba(0,0,0,0.08),
    0 0 0 4px rgba(227,116,0,0.16);
}

.chat-input {
  flex: 1;
  border: none !important;      
  background: transparent !important;
  box-shadow: none !important;   
  outline: none !important;     
  padding: 4px 0 !important;
  font-size: 16px; 
  color: var(--text);
  height: auto;
  max-height: 120px;
}


.chat-input:focus::placeholder {
  opacity: 0;
  transition: opacity 0.2s ease; 
}

.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: transform 0.1s;
  flex-shrink: 0;
}

/* --- DISCLAIMER FOOTER --- */
.chat-disclaimer {
  font-size: 10px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  opacity: 0.7;
  max-width: 400px;
}
.chat-disclaimer a {
  text-decoration: underline;
  color: var(--text);
}

.chat-copy-btn {
  margin-top: 6px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.chat-copy-btn:hover { color: var(--text); background: var(--bg-elev-2); }
.chat-copy-btn .material-icons { font-size: 16px; }

.chat-loading{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:8px;
}

.chat-spinner{
  font-size:18px;
  display:inline-block;
  animation: chatSpin 1s linear infinite;
}

@keyframes chatSpin{
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* ==========================================================================
   12) Legal Pages (AGB, Datenschutz, Impressum)
   Extracted from per-page <style> blocks — single source of truth.
   ========================================================================== */

.legal-block{ margin-bottom: 30px; }

.legal-title{
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  font-family: var(--font-ui);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.legal-text{
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  text-align: justify;
}
.legal-text strong{ color: var(--text); font-weight: 600; }
.legal-text ul{ padding-left: 20px; margin: 8px 0; }
.legal-text li{ margin-bottom: 6px; }

.para-num{
  color: var(--green);
  font-family: var(--font-mono);
  font-weight: 700;
  margin-right: 6px;
}

.tech-badge{
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--bg-elev-2);
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
}

/* ==========================================================================
   13) Cookie Table
   ========================================================================== */

.cookie-table{
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 10px;
  table-layout: fixed;
}
.cookie-table th{
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--border-strong);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}
.cookie-table td{
  padding: 12px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.cookie-key{
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--text);
}
.cookie-badge{
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  border: 1px solid var(--border);
}
.badge-ess{
  background: rgba(71, 219, 115, 0.1);
  color: var(--green);
  border-color: rgba(71, 219, 115, 0.2);
}
.badge-ana{
  background: color-mix(in srgb, var(--premium-copper) 12%, transparent);
  color: var(--premium-copper);
  border-color: color-mix(in srgb, var(--premium-copper) 28%, transparent);
}

@media (max-width: 640px) {
  .cookie-table,
  .cookie-table thead,
  .cookie-table tbody,
  .cookie-table tr,
  .cookie-table th,
  .cookie-table td {
    display: block;
    width: 100%;
  }

  .cookie-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }

  .cookie-table tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }

  .cookie-table td {
    padding: 5px 0;
    border-bottom: 0;
  }
}

/* ==========================================================================
   14) FAQ Accordion
   ========================================================================== */

.tech-font{ font-family: var(--font-mono); }

.section-label{
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-top: 30px;
  margin-bottom: 12px;
  font-weight: 700;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.section-label--blue{ color: var(--premium-copper); }
.section-label--amber{ color: #e37400; }
.section-label--purple{ color: #9c27b0; }

.nav-item.sys-file{
  font-family: var(--font-mono);
  font-size: 13px;
}

details{
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: all 0.2s ease;
}
details[open]{
  background: var(--bg-elev-2);
  border-color: var(--border-strong);
}

summary{
  padding: 14px 18px;
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
summary::-webkit-details-marker{ display: none; }
summary::after{
  content: '+';
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 16px;
  color: var(--muted);
}
details[open] summary::after{ content: '-'; }

.faq-answer{
  padding: 0 18px 18px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
}
.faq-answer ol,
.faq-answer ul{ padding-left: 20px; margin: 8px 0; }
.faq-answer li{ margin-bottom: 4px; }

/* ==========================================================================
   15) Contact Page
   ========================================================================== */

.contact-wrapper{
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 30px;
  align-items: start;
}
@media (max-width: 900px){
  .contact-wrapper{ grid-template-columns: 1fr; }
}

/* ==========================================================================
   16) Inline-Style Replacements (Semantic Utility Classes)
   Extracted from per-page style="" attributes — zero visual regressions.
   ========================================================================== */

/* -- Sidebar CTA hash symbol -- */
.sidebar-cta-hash{
  color: var(--amber);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
}

/* -- Active nav item emphasis -- */
.nav-icon--active{ color: var(--amber); }
.nav-label--active{ font-weight: 600; color: var(--text); }

/* -- Language switcher states -- */
.seg-btn--current{
  cursor: default;
  font-weight: 800;
  color: var(--text);
}
.seg-btn--link{
  text-decoration: none;
  display: inline-block;
}

/* -- Bordered back-link in legal sidebars -- */
.nav-item--bordered{ border: 1px solid var(--border); }

/* -- Form layout: 2-column row -- */
.form-row-2{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* -- Page section intro -- */
.section-intro{ margin-bottom: 22px; }
.section-intro-lg{ margin-bottom: 30px; }
.section-intro-badges{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

/* -- Page headings (large/medium mono-style) -- */
.page-heading-lg{
  font-size: 32px;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.page-heading-md{
  font-size: 28px;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

/* -- Pill variant: dark (emphasis) border -- */
.pill--emphasis{
  border-color: var(--text);
  color: var(--text);
}

/* -- Card variants -- */
.card--padded{ padding: 24px; }
.card--padded-sm{ padding: 20px; }
.card--intake{
  padding: 16px;
  margin-top: 14px;
  background: var(--bg-elev-2);
  border-color: var(--border);
}
.card--muted{
  background: var(--bg-elev-2);
  border-color: var(--border);
}

/* -- Card inline section header -- */
.card-section-header{
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.card-section-header strong{ font-size: 13px; }

/* -- Hidden honeypot field -- */
.u-hidden{ display: none; }

/* -- Visually hidden file input (accessible) -- */
.file-input-sr{
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* -- File upload trigger button -- */
.file-upload-trigger{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-elev);
  cursor: pointer;
}

/* -- File upload name display -- */
.file-upload-name{
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
}

/* -- Attachment row (icon + filename) -- */
.file-upload-row{
  display: flex;
  gap: 10px;
  align-items: center;
}

/* -- Label with left/right split -- */
.label-split{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

/* -- Text size helpers -- */
.text-hint{ font-size: 12px; }
.text-sm{ font-size: 13px; }

/* -- Consent small text -- */
.consent-sm{
  font-size: 12px;
  color: var(--muted);
}
.consent-sm a{ text-decoration: underline; }

/* -- Contact sidebar column -- */
.contact-sidebar{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* -- Contact info card body -- */
.contact-info-body{
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 16px;
}

/* -- Contact links column -- */
.contact-links-col{
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}
.contact-links-col a{ text-decoration: underline; }

/* -- AI CTA card body -- */
.ai-cta-body{
  font-size: 12px;
  margin-bottom: 16px;
  line-height: 1.5;
}

/* -- Centered ghost button -- */
.btn--centered{
  justify-content: center;
  background: var(--bg-elev);
}

/* -- Bottom legal footer links -- */
.contact-footer-links{
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 10px;
}
.contact-footer-links a{ font-size: 11px; }

/* -- Spacing utilities -- */
.mt-sm{ margin-top: 10px; }
.mt-md{ margin-top: 14px; }
.mt-lg{ margin-top: 18px; }



/* -- Language visibility overrides (FAQ bilingual pages) -- */
html[data-lang="de"] .lang-en{ display: none !important; }
html[data-lang="en"] .lang-de{ display: none !important; }

/* Price hint in package cards */
.price-hint {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--amber, #e37400);
  margin: 8px 0 12px 0;
  letter-spacing: 0.01em;
}

/* Form promise / SLA message */
.form-promise {
  font-size: 0.82rem;
  color: var(--green, #2e7d32);
  font-weight: 500;
  margin: 0 0 12px 0;
  opacity: 0.85;
}

/* Trust strip section */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-around;
  padding: 28px 24px;
  margin-bottom: 24px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  min-width: 120px;
}

.trust-number {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--amber, #e37400);
  letter-spacing: -0.02em;
}

.trust-label {
  font-size: 0.78rem;
  color: var(--muted, #666);
  font-weight: 500;
  line-height: 1.3;
}

/* How we work section */
.how-it-works {
  padding: 32px 28px;
  margin-bottom: 24px;
}

.how-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.how-steps {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.how-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.how-num {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--amber, #e37400);
  min-width: 36px;
  line-height: 1;
}

.how-content strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.how-content p {
  font-size: 0.85rem;
  color: var(--muted, #666);
  margin: 0;
  line-height: 1.5;
}

/* Problem section */
.problem-section {
  padding: 32px 28px;
  margin-bottom: 24px;
}

.problem-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .problem-grid {
    grid-template-columns: 1fr;
  }
}

.problem-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.problem-icon {
  font-size: 22px;
  color: var(--amber, #e37400);
  flex-shrink: 0;
  margin-top: 2px;
}

.problem-text strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.problem-text p {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.problem-cta-hint {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--amber, #e37400);
  margin: 0;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Dark mode glass topbar */
html[data-theme="dark"] .topbar {
  background: linear-gradient(
    to bottom,
    var(--topbar-fade-strong) 0%,
    var(--topbar-fade-mid) 60%,
    var(--topbar-fade-weak) 100%
  );
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: none;
  box-shadow: none;
}

/* --- Service page hero/header --- */
.service-hero{ margin-bottom: 30px; }
.service-title{ font-size: 32px; letter-spacing: -1px; margin-bottom: 16px; }
.service-subtitle{ max-width: 800px; }
.service-summary{ font-size: 15px; line-height: 1.7; color: var(--muted); max-width: 680px; margin-top: 16px; }
.service-badges{ display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }

/* --- Feature cards (neutral premium surface) --- */
.feature-card{
  margin-bottom: 30px;
  border-left: 1px solid var(--premium-line);
}
.feature-card-title{
  color: var(--text);
  margin-bottom: 16px;
}
.feature-card-desc{ font-size: 16px; margin-bottom: 20px; }
.feature-grid{ display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; margin-top: 24px; }
.feature-item-text{ font-size: 13px; margin-top: 4px; }

/* --- Package/pricing cards --- */
.package-header{ display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.package-name{ margin: 8px 0 0; }
.package-price-block{ text-align: right; }
.package-price{ font-size: 20px; font-weight: 700; }
.package-price-note{ font-size: 11px; }
.package-desc{ margin-bottom: 24px; }

/* --- Spec table rows/cells (extends .spec-table) --- */
.spec-row{ border-bottom: 1px solid var(--border); }
.spec-cell{ padding: 12px 0; }
.spec-cell-right{ padding: 12px 0; text-align: right; }

/* --- Button helpers --- */
.btn-flex{ flex: 1; }
.pill-row{ display: flex; flex-wrap: wrap; gap: 8px; }

/* --- Engineering view (accordion/details) --- */
.eng-section-title{ margin-bottom: 16px; }
.eng-detail{ margin-bottom: 10px; }
.eng-detail-content{ padding: 16px; font-size: 13px; line-height: 1.6; }
.eng-card-blue{ margin-top: 30px; border-left: 1px solid var(--premium-line); }
.eng-card-header{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.eng-card-label{ margin-bottom: 4px; }
.eng-card-sublabel{ margin: 0; font-size: 13px; }
.eng-card-metric{ font-size: 18px; font-weight: 700; color: var(--premium-copper); }

/* --- Stack/tech labels --- */
.stack-label{ color: var(--muted); font-size: 10px; }

/* --- Cookie page patterns --- */
.cookie-consent-bar{ margin-bottom: 30px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.cookie-section-blue{ margin-bottom: 30px; border-left: 1px solid var(--premium-line); }
.cookie-section-icon{ display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.cookie-section-icon .icon{ color: var(--premium-copper); }
.cookie-section-icon h3{ margin: 0; color: var(--text); }
.cookie-detail-list{ font-size: 13px; color: var(--text); margin-top: 8px; line-height: 1.6; }
.cookie-legal-footer{ margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border); }
.cookie-legal-text{ font-size: 12px; }

/* --- Chat placeholder (EN pages with inline chat) --- */
.chat-placeholder-center{ justify-content: center; text-align: center; margin-bottom: 20px; }

/* --- Answer-first / decision blocks --- */
.answer-block-title{ margin-bottom: 14px; }
.answer-block-links{ margin-top: 16px; }
.answer-block-source{ margin: 14px 0 0; }

/* --- View-switch icon --- */
.view-btn-icon{ font-size: 16px; }

/* --- Spacing utilities (extracted from service pages) --- */
.mt-20{ margin-top: 20px; }
.mt-30{ margin-top: 30px; }
.mt-40{ margin-top: 40px; }
.mt-50{ margin-top: 50px; }
.mb-14{ margin-bottom: 14px; }
.mb-16{ margin-bottom: 16px; }
.mb-20{ margin-bottom: 20px; }
.mb-30{ margin-bottom: 30px; }

/* --- Button alignment helpers --- */
.btn-center{ justify-content: center; }

/* --- Engineering card start-aligned header variant --- */
.eng-card-header-top{ display: flex; justify-content: space-between; align-items: flex-start; }

/* --- Service page unique patterns --- */
.eng-card-amber{ margin-top: 30px; border-left: 1px solid var(--premium-line); }
.eng-card-metric-amber{ font-size: 18px; font-weight: 700; color: var(--green); }
.eng-card-label-blue{ margin-bottom: 4px; color: var(--premium-copper); }
.eng-summary-text{ font-size: 13px; margin: 16px 0 24px; color: var(--text); line-height: 1.6; }
.eng-grid-2col{ margin-top: 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.eng-grid-features{ display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.eng-feature-card{ border: none; background: transparent; padding: 0; box-shadow: none; }
.eng-feature-label{ display: block; margin-bottom: 8px; }
.eng-feature-text{ font-size: 13px; line-height: 1.6; }
.eng-btn-blue-full{ width: 100%; justify-content: center; border-color: var(--premium-copper); color: var(--premium-copper); }
.eng-btn-amber-full{ width: 100%; justify-content: center; border-color: var(--green); color: var(--green); }
.cta-centered{ margin-top: 50px; text-align: center; }
.cta-centered-text{ font-size: 13px; margin-bottom: 16px; }
.chat-send-btn-icon{ font-size: 18px; }
.chat-placeholder-faded{ opacity: 0.6; text-align: center; margin-top: auto; margin-bottom: auto; }

/* --- SEO/GEO money page (seo.php only) --- */
.seo-money-hero .page-hero-title {
  max-width: 34ch;
}

.seo-section-card,
.seo-offer-grid,
.seo-final-cta {
  margin-top: 30px;
}

.seo-section-card h2,
.seo-final-cta h2 {
  margin: 6px 0 10px;
  letter-spacing: -0.03em;
}

.seo-section-lead {
  margin: 0 0 20px;
  max-width: 76ch;
  line-height: 1.65;
}

.seo-engine-grid,
.seo-proof-grid,
.seo-reporting-grid,
.seo-engineering-grid,
.seo-faq-list {
  display: grid;
  gap: 16px;
}

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

.seo-engine-grid--three,
.seo-proof-grid,
.seo-engineering-grid,
.seo-faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.seo-mini-card,
.seo-proof-grid > div,
.seo-engineering-grid > div,
.seo-faq-list > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
}

.seo-mini-card h3,
.seo-proof-grid h3,
.seo-faq-list h3 {
  margin: 0 0 8px;
}

.seo-mini-card p,
.seo-proof-grid p,
.seo-faq-list p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.seo-mini-card p:last-child,
.seo-proof-grid p:last-child,
.seo-faq-list p:last-child {
  margin-bottom: 0;
}

.seo-offer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 20px;
}

.seo-offer-card {
  min-width: 0;
}

.seo-offer-card--primary {
  border-left: 3px solid var(--green);
}

.seo-retainer-card {
  border-left: 3px solid var(--border-strong);
}

.seo-list {
  margin-bottom: 22px;
}

.seo-list li {
  overflow-wrap: anywhere;
}

.seo-authority-card {
  border-left: 3px solid var(--green);
}

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

.seo-reporting-grid span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.seo-engineering-grid > div span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.seo-engineering-grid > div strong {
  display: block;
  line-height: 1.45;
}

.seo-honesty-note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

.seo-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.7fr);
  align-items: center;
  gap: 22px;
  border-left: 3px solid var(--green);
}

.seo-cta-actions {
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .seo-engine-grid,
  .seo-engine-grid--three,
  .seo-proof-grid,
  .seo-reporting-grid,
  .seo-engineering-grid,
  .seo-faq-list,
  .seo-offer-grid,
  .seo-final-cta {
    grid-template-columns: 1fr;
  }

  .seo-final-cta {
    align-items: stretch;
  }

  .seo-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .seo-section-card,
  .seo-offer-grid,
  .seo-final-cta {
    margin-top: 22px;
  }

  .seo-mini-card,
  .seo-proof-grid > div,
  .seo-engineering-grid > div,
  .seo-faq-list > div {
    padding: 14px;
  }

  .seo-offer-card .package-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
  }

  .seo-offer-card .package-header > div:first-child {
    min-width: 0;
  }

  .seo-offer-card .package-price-block {
    min-width: max-content;
    text-align: right;
  }

  .seo-offer-card .package-price {
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .seo-offer-card .package-name {
    font-size: 16px;
    line-height: 1.25;
  }

  .seo-offer-card .pill {
    max-width: 100%;
    white-space: normal;
  }

  .seo-reporting-grid {
    gap: 8px;
  }

  .seo-reporting-grid span {
    width: 100%;
    max-width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.15;
    hyphens: auto;
  }
}

@media (max-width: 380px) {
  .seo-offer-card .package-header {
    grid-template-columns: 1fr;
  }

  .seo-offer-card .package-price-block {
    min-width: 0;
    text-align: left;
  }
}

/* --- AI/RAG money page (ai.php only) --- */
.ai-money-hero .page-hero-title {
  max-width: 34ch;
}

.ai-section-card,
.ai-offer-section,
.ai-final-cta {
  margin-top: 30px;
}

.ai-section-card h2,
.ai-offer-intro h2,
.ai-final-cta h2 {
  margin: 6px 0 10px;
  letter-spacing: -0.03em;
}

.ai-section-lead {
  margin: 0 0 20px;
  max-width: 78ch;
  line-height: 1.65;
}

.ai-system-grid,
.ai-build-grid,
.ai-rag-grid,
.ai-proof-grid,
.ai-process-grid,
.ai-view-grid,
.ai-faq-list {
  display: grid;
  gap: 16px;
}

.ai-system-grid,
.ai-rag-grid,
.ai-view-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ai-build-grid,
.ai-proof-grid,
.ai-process-grid,
.ai-faq-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-mini-card,
.ai-build-grid > div,
.ai-rag-grid > div,
.ai-proof-grid > div,
.ai-process-grid > div,
.ai-view-grid > div,
.ai-faq-list > div {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
}

.ai-mini-card h3,
.ai-build-grid h3,
.ai-process-grid h3,
.ai-faq-list h3 {
  margin: 0 0 8px;
}

.ai-mini-card p,
.ai-build-grid p,
.ai-rag-grid p,
.ai-proof-grid p,
.ai-process-grid p,
.ai-faq-list p {
  margin: 0 0 10px;
  line-height: 1.6;
}

.ai-mini-card p:last-child,
.ai-build-grid p:last-child,
.ai-rag-grid p:last-child,
.ai-proof-grid p:last-child,
.ai-process-grid p:last-child,
.ai-faq-list p:last-child {
  margin-bottom: 0;
}

.ai-process-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.ai-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 18px;
}

.ai-offer-card {
  min-width: 0;
}

.ai-offer-card--primary,
.ai-final-cta {
  border-left: 3px solid var(--green);
}

.ai-list {
  margin-bottom: 22px;
}

.ai-list li,
.ai-faq-list h3,
.ai-metric-grid span {
  overflow-wrap: anywhere;
}

.ai-tech-meaning strong {
  display: block;
  margin-top: 12px;
}

.ai-tech-meaning strong:first-child {
  margin-top: 0;
}

.ai-disclaimer {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 13px;
}

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

.ai-metric-grid span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.ai-final-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
  align-items: center;
  gap: 22px;
}

.ai-cta-actions {
  justify-content: flex-end;
}

.ai-money-hero .page-hero-kicker {
  flex-wrap: wrap;
}

.ai-money-page {
  min-width: 0;
  overflow-x: hidden;
}

.ai-money-hero .pill {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  white-space: normal;
}

.ai-hero-actions,
.ai-cta-actions {
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .ai-system-grid,
  .ai-build-grid,
  .ai-rag-grid,
  .ai-proof-grid,
  .ai-process-grid,
  .ai-view-grid,
  .ai-faq-list,
  .ai-offer-grid,
  .ai-metric-grid,
  .ai-final-cta {
    grid-template-columns: 1fr;
  }

  .ai-final-cta {
    align-items: stretch;
  }

  .ai-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .ai-section-card,
  .ai-offer-section,
  .ai-final-cta {
    margin-top: 22px;
  }

  .ai-money-hero .page-hero-title,
  .ai-money-hero .page-hero-lead,
  .ai-money-hero .page-hero-support,
  .ai-section-card h2,
  .ai-section-card h3,
  .ai-final-cta h2 {
    overflow-wrap: anywhere;
  }

  .ai-money-hero {
    max-width: 100%;
  }

  .ai-money-page .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ai-hero-actions .btn,
  .ai-cta-actions .btn {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .ai-mini-card,
  .ai-build-grid > div,
  .ai-rag-grid > div,
  .ai-proof-grid > div,
  .ai-process-grid > div,
  .ai-view-grid > div,
  .ai-faq-list > div {
    padding: 14px;
  }

  .ai-offer-card .package-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 10px 12px;
  }

  .ai-offer-card .package-header > div:first-child {
    min-width: 0;
  }

  .ai-offer-card .package-price-block {
    min-width: max-content;
    text-align: right;
  }

  .ai-offer-card .package-price {
    font-size: 18px;
    line-height: 1.1;
    white-space: nowrap;
  }

  .ai-offer-card .package-name {
    font-size: 16px;
    line-height: 1.25;
  }

  .ai-offer-card .pill {
    max-width: 100%;
    white-space: normal;
  }

  .ai-metric-grid {
    gap: 8px;
  }

  .ai-metric-grid span {
    width: 100%;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1.15;
    hyphens: auto;
  }
}

@media (max-width: 380px) {
  .ai-offer-card .package-header {
    grid-template-columns: 1fr;
  }

  .ai-offer-card .package-price-block {
    min-width: 0;
    text-align: left;
  }
}

/* --- Elite visual polish: homepage, SEO and AI money pages --- */
:root {
  --premium-copper: #e87500;
  --premium-amber: #f59f32;
  --premium-gold: #ffd08a;
  --premium-ink: #111827;
  --premium-line: color-mix(in srgb, var(--premium-copper) 22%, var(--border));
  --premium-surface: linear-gradient(
    180deg,
    color-mix(in srgb, var(--bg-elev) 96%, transparent),
    color-mix(in srgb, var(--bg-elev-2) 88%, transparent)
  );
  --premium-card-shadow: 0 8px 24px color-mix(in srgb, #0f172a 5%, transparent);
  --premium-glow: 0 10px 28px color-mix(in srgb, #0f172a 7%, transparent);
}

#dashboard,
.seo-money-page,
.ai-money-page {
  position: relative;
  isolation: isolate;
  overflow-x: hidden;
}

/* Page-level ambient wash on premium money pages.
   v3 (frame fix): drop the flat linear-gradient fill that read as a header band,
   keep only soft radial glows, and reduce opacity. #dashboard handles its own
   ambient via .content#content-display::before (see polish module). */
#dashboard::before,
.seo-money-page::before,
.ai-money-page::before {
  content: "";
  position: absolute;
  inset: -56px -24px auto -24px;
  height: 320px;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 16% 6%,  color-mix(in srgb, var(--premium-amber) 10%, transparent) 0, transparent 42%),
    radial-gradient(circle at 88% 22%, color-mix(in srgb, var(--premium-gold)  16%, transparent) 0, transparent 38%);
  opacity: .55;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 60%, transparent 100%);
}

#dashboard::before {
  content: none;
}

/* Hero surface — v3 (frame fix): NO visible card frame on any hero.
   All three heroes (dashboard, SEO money, AI money) are flat surfaces;
   premium depth comes from page-level ambient + section internals. */
#dashboard .dash-hero,
.seo-money-hero,
.ai-money-hero {
  position: relative;
  min-width: 0;
  padding: clamp(22px, 3vw, 34px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

/* Grid overlay (was decorative for the bordered card) — disabled across
   all three heroes since we no longer have a bordered container to fill. */
#dashboard .dash-hero::after,
.seo-money-hero::after,
.ai-money-hero::after {
  content: none;
}

#dashboard .hero-copy,
.seo-money-hero > *,
.ai-money-hero > * {
  position: relative;
  z-index: 1;
}

#dashboard .hero-title,
.seo-money-hero .page-hero-title,
.ai-money-hero .page-hero-title {
  letter-spacing: -0.045em;
}

#dashboard .hero-summary,
.seo-money-hero .page-hero-support,
.ai-money-hero .page-hero-support {
  max-width: 72ch;
}

#dashboard .hero-actions,
.seo-money-hero + .view-switch,
.ai-hero-actions {
  position: relative;
  z-index: 1;
}

#dashboard .btn-primary,
.seo-money-page .btn-primary,
.ai-money-page .btn-primary {
  border-color: color-mix(in srgb, var(--premium-copper) 76%, black);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--premium-amber) 96%, white), var(--premium-copper));
  box-shadow:
    0 13px 28px color-mix(in srgb, var(--premium-copper) 24%, transparent),
    inset 0 1px 0 color-mix(in srgb, white 46%, transparent);
  font-weight: 800;
}

#dashboard .btn-primary:hover,
.seo-money-page .btn-primary:hover,
.ai-money-page .btn-primary:hover {
  border-color: color-mix(in srgb, var(--premium-copper) 86%, black);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--premium-gold) 62%, var(--premium-amber)), color-mix(in srgb, var(--premium-copper) 94%, black));
  transform: translateY(-1px);
}

#dashboard .btn:not(.btn-primary),
.seo-money-page .btn:not(.btn-primary),
.ai-money-page .btn:not(.btn-primary) {
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  border-color: color-mix(in srgb, var(--border-strong) 60%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 36%, transparent);
}

#dashboard .btn:focus-visible,
.seo-money-page .btn:focus-visible,
.ai-money-page .btn:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--premium-amber) 44%, transparent);
  outline-offset: 3px;
}

/* Section surfaces — v3 (frame fix): subtle neutral hairline + soft depth
   instead of the previous amber-tinted border + 45px glow. Featured
   accents (--primary offer, final CTA copper border-left) are kept below. */
#dashboard .kpi,
#dashboard .credibility-section,
.seo-revenue-card,
.seo-section-card,
.seo-offer-card,
.seo-final-cta,
.ai-section-card,
.ai-offer-card,
.ai-final-cta {
  background: var(--premium-surface);
  border-color: color-mix(in srgb, var(--border) 90%, transparent);
  box-shadow: 0 6px 18px color-mix(in srgb, #0f172a 4%, transparent);
}

#dashboard .kpi,
.seo-mini-card,
.seo-proof-grid > div,
.seo-engineering-grid > div,
.seo-faq-list > div,
.ai-mini-card,
.ai-build-grid > div,
.ai-rag-grid > div,
.ai-proof-grid > div,
.ai-process-grid > div,
.ai-view-grid > div,
.ai-faq-list > div {
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

#dashboard .kpi:hover,
.seo-mini-card:hover,
.seo-proof-grid > div:hover,
.seo-engineering-grid > div:hover,
.seo-faq-list > div:hover,
.ai-mini-card:hover,
.ai-build-grid > div:hover,
.ai-rag-grid > div:hover,
.ai-proof-grid > div:hover,
.ai-process-grid > div:hover,
.ai-view-grid > div:hover,
.ai-faq-list > div:hover {
  /* v3 (frame fix): neutral hairline + softer shadow lift on hover. */
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--border-strong) 65%, transparent);
  box-shadow: 0 10px 22px color-mix(in srgb, #0f172a 7%, transparent);
}

#dashboard .tech-trust-section {
  padding: clamp(20px, 2.5vw, 28px);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 6px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elev) 92%, transparent), color-mix(in srgb, var(--bg-elev-2) 72%, transparent));
  box-shadow: var(--premium-card-shadow);
}

#dashboard .tech-trust-section {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

#dashboard .credibility-section {
  border: 0;
  border-left: 0;
  background: transparent;
  box-shadow: none;
}

#dashboard .cred-value,
.seo-offer-card .package-price,
.ai-offer-card .package-price {
  color: var(--premium-copper);
  text-shadow: 0 8px 28px color-mix(in srgb, var(--premium-copper) 18%, transparent);
}

.seo-offer-card--primary,
.ai-offer-card--primary {
  position: relative;
  border-left-color: var(--premium-copper);
  box-shadow:
    0 18px 50px color-mix(in srgb, var(--premium-copper) 13%, transparent),
    var(--premium-card-shadow);
}

.seo-offer-card--primary::before,
.ai-offer-card--primary::before,
.seo-final-cta::before,
.ai-final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(135deg, color-mix(in srgb, var(--premium-gold) 18%, transparent), transparent 42%);
  opacity: .72;
}

.seo-offer-card--primary > *,
.ai-offer-card--primary > *,
.seo-final-cta > *,
.ai-final-cta > * {
  position: relative;
  z-index: 1;
}

.seo-retainer-card {
  border-left-color: color-mix(in srgb, var(--premium-ink) 38%, var(--border-strong));
}

.seo-reporting-grid span,
.ai-metric-grid span,
#dashboard .trust-chip {
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  border-color: color-mix(in srgb, var(--border) 70%, var(--premium-amber));
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 32%, transparent);
}

.seo-final-cta,
.ai-final-cta {
  position: relative;
  overflow: hidden;
  border-left-color: var(--premium-copper);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elev) 94%, transparent), color-mix(in srgb, var(--premium-gold) 10%, var(--bg-elev-2))),
    radial-gradient(circle at 95% 20%, color-mix(in srgb, var(--premium-gold) 26%, transparent), transparent 38%);
}

@media (prefers-reduced-motion: reduce) {
  #dashboard .btn-primary:hover,
  .seo-money-page .btn-primary:hover,
  .ai-money-page .btn-primary:hover,
  #dashboard .kpi:hover,
  .seo-mini-card:hover,
  .seo-proof-grid > div:hover,
  .seo-engineering-grid > div:hover,
  .seo-faq-list > div:hover,
  .ai-mini-card:hover,
  .ai-build-grid > div:hover,
  .ai-rag-grid > div:hover,
  .ai-proof-grid > div:hover,
  .ai-process-grid > div:hover,
  .ai-view-grid > div:hover,
  .ai-faq-list > div:hover {
    transform: none;
  }
}

@media (min-width: 1280px) {
  #dashboard .dash-hero,
  .seo-money-hero,
  .ai-money-hero {
    margin-bottom: clamp(34px, 4vw, 56px);
  }

  .seo-section-card,
  .seo-offer-grid,
  .seo-final-cta,
  .ai-section-card,
  .ai-offer-section,
  .ai-final-cta {
    margin-top: 34px;
  }
}

@media (max-width: 640px) {
  #dashboard .dash-hero,
  .seo-money-hero,
  .ai-money-hero {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .seo-money-hero,
  .ai-money-hero {
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }

  .seo-money-hero::after,
  .ai-money-hero::after {
    content: none;
  }

  #dashboard::before,
  .seo-money-page::before,
  .ai-money-page::before {
    inset-inline: -18px;
    height: 260px;
    opacity: .6;
  }
}

/* =============================================
   CREDIBILITY SECTION
   ============================================= */

.credibility-section {
  padding: 32px 28px;
  margin-bottom: 24px;
}

.cred-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .cred-numbers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .cred-numbers {
    grid-template-columns: 1fr 1fr;
  }
}

.cred-stat {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cred-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--amber, #e37400);
  letter-spacing: -0.03em;
  line-height: 1;
}

.cred-label {
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.4;
}

.cred-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0 28px 0;
}

.cred-proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 28px;
}

@media (max-width: 768px) {
  .cred-proof {
    grid-template-columns: 1fr;
  }
}

.cred-proof-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.cred-icon {
  font-size: 20px;
  color: var(--amber, #e37400);
  flex-shrink: 0;
  margin-top: 2px;
}

.cred-proof-item strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 4px;
  color: var(--text);
}

.cred-proof-item p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.cred-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  background: rgba(227, 116, 0, 0.06);
  border: 1px solid rgba(227, 116, 0, 0.2);
  border-radius: var(--radius-sm);
}

.cred-guarantee .icon {
  font-size: 20px;
  color: var(--amber, #e37400);
  flex-shrink: 0;
  margin-top: 2px;
}

.cred-guarantee p {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
  line-height: 1.5;
}

/* =============================================
   BLOG
   ============================================= */

.blog-page-header {
  margin-bottom: 28px;
}

.blog-page-title {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.blog-page-subtitle {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}

.blog-intro-card { margin: 18px 0 22px; }
.blog-intro-card h2 { margin: 0 0 8px; font-size: 20px; }
.blog-intro-card .muted { margin: 0 0 10px; line-height: 1.65; }

.imprint-intro { margin-bottom: 16px; }
.imprint-intro .muted { margin: 0 0 8px; line-height: 1.65; }

.blog-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.blog-cat-btn {
  padding: 6px 14px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: all 0.15s;
}

.blog-cat-btn:hover {
  border-color: var(--amber);
  color: var(--amber);
}

.blog-cat-btn.active {
  background: var(--amber);
  border-color: var(--amber);
  color: #fff;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  background: var(--premium-surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--premium-card-shadow);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
}

.blog-card:hover {
  box-shadow: var(--premium-glow);
  border-color: color-mix(in srgb, var(--premium-copper) 18%, var(--border));
}

.blog-card-featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  background: var(--amber);
  color: #fff;
  border-radius: 999px;
}

.blog-card-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
}

.blog-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  margin: 0;
  flex: 1;
}

.blog-card-excerpt {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.blog-card-meta {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.blog-card-cta {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--amber);
  margin-top: 6px;
}

/* Blog Article */
.blog-article {
  max-width: 720px;
  margin: 0 auto;
  padding-bottom: 60px;
}

.blog-article-header {
  margin-bottom: 36px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 20px;
}

.blog-back-link:hover { color: var(--amber); }

.blog-article-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--amber);
  margin-bottom: 10px;
}

.blog-article-title {
  font-size: 1.9rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 0 0 14px;
}

@media (max-width: 640px) {
  .blog-article-title { font-size: 1.4rem; }
}

.blog-article-meta {
  font-size: 0.78rem;
  color: var(--muted);
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.blog-article-body {
  font-size: 0.97rem;
  line-height: 1.75;
  color: var(--text);
}

.blog-article-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 36px 0 14px;
}

.blog-article-body p { margin: 0 0 18px; }

.blog-lead {
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.65;
  border-left: 3px solid var(--amber);
  padding-left: 18px;
  margin-bottom: 24px !important;
}

.blog-checklist {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 24px;
}

.blog-check-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.blog-check-icon {
  font-size: 17px;
  color: var(--amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.blog-check-item p { margin: 0 !important; font-size: 0.9rem; }

.blog-use-cases {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 16px 0 24px;
}

@media (max-width: 600px) {
  .blog-use-cases { grid-template-columns: 1fr; }
}

.blog-use-case {
  padding: 16px 18px;
  background: var(--bg-elev-2);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.blog-use-case strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.blog-use-case p {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 !important;
  line-height: 1.5;
}

.blog-pricing-table {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin: 16px 0 8px;
}

.blog-pricing-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 10px;
  padding: 11px 14px;
  font-size: 0.83rem;
  border-bottom: 1px solid var(--border);
}

.blog-pricing-row:last-child { border-bottom: none; }

.blog-pricing-header {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  background: var(--bg-elev-2);
}

.blog-pricing-highlight {
  background: rgba(227,116,0,0.05);
  font-weight: 600;
}

@media (max-width: 520px) {
  .blog-pricing-row { grid-template-columns: 1fr; gap: 3px; }
  .blog-pricing-header { display: none; }
}

.blog-list {
  padding-left: 20px;
  margin: 14px 0 22px;
}

.blog-list li {
  font-size: 0.9rem;
  margin-bottom: 7px;
  line-height: 1.6;
}

.blog-cta-box {
  margin: 36px 0 20px;
  padding: 28px 24px;
  background: rgba(227,116,0,0.06);
  border: 1px solid rgba(227,116,0,0.22);
  border-radius: var(--radius);
  text-align: center;
}

.blog-cta-box h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.blog-cta-box p {
  color: var(--muted);
  font-size: 0.87rem;
  margin-bottom: 18px !important;
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog internal link block */
.blog-internallink {
  display: flex;
  align-items: center;
  padding: 14px 18px;
  margin: 20px 0 24px;
  background: var(--bg-elev-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-sm);
}

.blog-internallink-anchor {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--amber);
  text-decoration: none;
}

.blog-internallink-anchor:hover {
  text-decoration: underline;
}

/* Blog image */
.blog-figure {
  margin: 24px 0 28px;
}

.blog-img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.blog-caption {
  font-size: 0.75rem;
  color: var(--muted);
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* blog-index: migrated from inline — margin-bottom + font-size */
.blog-breadcrumb {
  margin-bottom: 14px;
  font-size: 14px;
}

/* blog-index: migrated from inline — font-size + line-height + max-width */
.blog-text-lg {
  font-size: 18px;
  line-height: 1.75;
  max-width: 72ch;
}

/* blog-index: migrated from inline — card margin */
.blog-card-spaced {
  margin: 0 0 22px;
}

/* blog-index: migrated from inline — heading margin */
.blog-heading-tight {
  margin: 0 0 10px;
}

/* blog-index: migrated from inline — title size + spacing */
.blog-card-title-lg {
  font-size: 1.3rem;
  line-height: 1.5;
  margin-top: 10px;
}

/* blog-index: migrated from inline — reset link decoration/color */
.blog-link-reset {
  text-decoration: none;
  color: inherit;
}

/* blog-index: migrated from inline — meta font-size */
.blog-meta-md {
  font-size: 14px;
}

/* blog-index: migrated from inline — address font style */
.blog-author-name {
  font-style: normal;
}

/* blog-index: migrated from inline — icon size + alignment */
.blog-cta-icon {
  font-size: 14px;
  vertical-align: middle;
}

/* blog-index: migrated from inline — pagination layout */
.blog-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* blog-index: migrated from inline — pagination actions spacing */
.blog-pagination-actions {
  display: flex;
  gap: 10px;
}

/* blog-index: migrated from inline — FAQ section top spacing */
.blog-faq-section {
  margin-top: 22px;
}

/* blog-index: migrated from inline — FAQ h2 margin */
.blog-faq-title {
  margin: 0 0 12px;
}

/* blog-index: migrated from inline — FAQ h3 margin */
.blog-faq-subtitle {
  margin: 0 0 8px;
}

/* blog-index: migrated from inline — FAQ h3 spaced variant */
.blog-faq-subtitle-spaced {
  margin-top: 16px;
}

/* blog-article: migrated from inline — back icon size + alignment */
.blog-inline-icon-back {
  font-size: 15px;
  vertical-align: middle;
}

/* blog-article: migrated from inline — pricing note size + spacing */
.blog-pricing-note {
  font-size: 0.8rem;
  margin-top: 8px;
}

/* blog-article: migrated from inline — forward icon size + color + spacing */
.blog-inline-icon-forward {
  font-size: 16px;
  vertical-align: middle;
  color: var(--amber);
  margin-right: 6px;
}

/* blog-article: migrated from inline — FAQ definition list spacing */
.blog-faq-dl {
  margin: 0;
}

/* blog-article: migrated from inline — FAQ question spacing */
.blog-faq-dt {
  margin: 0 0 8px;
  font-weight: 700;
}

/* blog-article: migrated from inline — FAQ answer spacing */
.blog-faq-dd {
  margin: 0 0 16px;
  color: var(--muted);
}

/* ==========================================================================
   Desktop topbar final override (light)
   - stronger white gradient
   - explicit fade tail into content
   - no shadow / no hard separation
   ========================================================================== */
@media (min-width: 769px) {
  html[data-theme="light"] .topbar {
    background:
      linear-gradient(
        to bottom,
        rgba(255, 255, 255, 0.78) 0%,
        rgba(255, 255, 255, 0.64) 42%,
        rgba(255, 255, 255, 0.30) 78%,
        rgba(255, 255, 255, 0) 100%
      ),
      linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.18) 0%,
        rgba(246, 248, 252, 0.10) 48%,
        rgba(255, 255, 255, 0.16) 100%
      ) !important;
    border-bottom: none !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.46),
      0 18px 44px rgba(15, 23, 42, 0.035) !important;
    backdrop-filter: blur(14px) saturate(1.06) !important;
    -webkit-backdrop-filter: blur(14px) saturate(1.06) !important;
    overflow: visible;
  }

  html[data-theme="light"] .topbar::before {
    display: none !important;
  }

  html[data-theme="light"] .topbar::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -34px;
    height: 34px;
    pointer-events: none;
    background: linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.26) 0%,
      rgba(255, 255, 255, 0.10) 42%,
      rgba(255, 255, 255, 0) 100%
    );
  }

  html[data-theme="light"] .topbar.scrolled {
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.48),
      0 18px 44px rgba(15, 23, 42, 0.045) !important;
  }
}

/* ==========================================================================
   TECH TRUST BAR (Logo Cloud) - FIXED
   ========================================================================== */
   .tech-trust-section {
    margin-top: 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
  }
  
  .tech-trust-label {
    text-align: center;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 20px;
  }
  
  .tech-trust-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 30px 50px;
    max-width: 900px;
    margin: 0 auto;
  }
  
  .tech-trust-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 32px;
    color: var(--text); /* Klonowanie koloru dla tekstu */
    text-decoration: none;
    filter: grayscale(100%) opacity(0.5);
    transition: filter 0.3s ease, transform 0.3s ease;
    cursor: pointer;
  }
  
  .tech-trust-logo svg {
    height: 24px; /* Zablokowanie wysokości ikony */
    width: auto;
    display: block;
  }
  
  .tech-trust-logo:hover {
    filter: grayscale(0%) opacity(1);
    transform: translateY(-2px);
  }
  
  @media (max-width: 768px) {
    .tech-trust-grid { gap: 20px 30px; }
    .tech-trust-logo { height: 28px; }
    .tech-trust-logo svg { height: 20px; }
    .tech-trust-logo span { font-size: 16px !important; }
  }

/* === HOMEPAGE READABILITY UPGRADE === */
/* Mobile-first baseline (dashboard only), desktop enhancements via min-width. */
#dashboard {
  font-size: 15px;
  line-height: 1.7;
  min-width: 0;
  overflow-x: hidden; /* clip stray overflow; vertical scroll stays on .content */
}

#dashboard h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
}

#dashboard {
  --color-text-primary: var(--text);
  --color-text-secondary: var(--muted);
  --color-background-secondary: var(--bg-elev-2);
  --color-border-tertiary: var(--border);
  --border-radius-md: var(--radius-sm);
}

/* Hero visual hierarchy refresh (mobile-first) */
#dashboard .dash-hero {
  display: flex;
  flex-direction: column;
  gap: 36px;
  padding: 56px 24px 40px;
  margin-bottom: 0;
}

#dashboard .hero-copy {
  max-width: 64ch;
}

#dashboard .hero-pain-line {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.01em;
  color: color-mix(in srgb, var(--color-text-primary) 78%, transparent);
}

#dashboard .hero-title {
  margin: 0 0 20px;
  font-size: clamp(2.1rem, 7.2vw, 2.6rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

#dashboard .hero-subtitle {
  margin: 0 0 12px;
}

#dashboard .hero-summary {
  margin: 0 0 28px;
  max-width: 62ch;
}

#dashboard .hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

#dashboard .hero-primary-cta {
  padding: 16px 32px;
  min-height: 52px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-radius: 15px;
}

#dashboard .hero-secondary-cta {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-text-secondary);
  font-size: 15px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}

#dashboard .hero-chat-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 14px;
  background: transparent;
  color: var(--color-text-primary);
  text-decoration: none;
}

#dashboard .hero-microcopy {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

#dashboard .hero-proof-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  max-width: 760px;
}

#dashboard .hero-proof-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid var(--color-border-tertiary);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
  color: var(--color-text-secondary);
  font-size: 12.5px;
  line-height: 1.35;
}

#dashboard .hero-proof-item .icon {
  flex: 0 0 auto;
  font-size: 17px;
  color: var(--premium-copper);
}

#dashboard .trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 14px;
}

#dashboard .trust-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 400;
  text-transform: none;
  color: var(--color-text-secondary);
  border: 1px solid var(--color-border-tertiary);
  background: transparent;
}

#dashboard .hero-metrics {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

#dashboard .hero-metrics .kpi {
  padding: 12px;
  min-height: 86px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--color-background-secondary);
  border: 1px solid var(--color-border-tertiary);
  border-radius: var(--border-radius-md);
  box-shadow: none;
}

#dashboard .hero-metrics .kpi-label {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-secondary);
  line-height: 1.2;
}

#dashboard .hero-metrics .kpi-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--color-text-primary);
  /* Break at word boundaries first; only fall back to mid-word break for
     a single token that genuinely cannot fit the cell. */
  overflow-wrap: break-word;
  word-break: normal;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* Narrow desktop + sidebar: flex % + gap can exceed row width; KPI grid too tight for 3 cols */
@media (min-width: 981px) and (max-width: 1320px) {
  #dashboard .dash-hero {
    gap: clamp(16px, 2.5vw, 40px);
  }
  #dashboard .hero-copy {
    min-width: 0;
  }
  #dashboard .hero-metrics {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 375px) {
  #dashboard .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* --- KPI tooltip & glass hover --- */
#dashboard .hero-metrics {
  overflow: visible;
}

#dashboard .hero-metrics .kpi.has-tip {
  position: relative;
  cursor: help;
  transition: background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

#dashboard .hero-metrics .kpi.has-tip:hover {
  z-index: 10;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

#dashboard .hero-metrics .kpi-tip {
  display: block;
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translateX(-50%) translateY(6px);
  width: auto;
  max-width: min(240px, calc(100vw - 48px));
  box-sizing: border-box;
  padding: 11px 15px;
  background: #1c1c2e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  color: #c8c8d4;
  font-size: 12.5px;
  font-weight: 400;
  font-family: inherit;
  line-height: 1.55;
  letter-spacing: 0;
  text-transform: none;
  white-space: normal;
  text-align: left;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 9999;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

#dashboard .hero-metrics .kpi.has-tip:hover .kpi-tip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

[data-theme="light"] #dashboard .hero-metrics .kpi.has-tip:hover,
:root:not([data-theme="dark"]) #dashboard .hero-metrics .kpi.has-tip:hover {
  background: rgba(0, 0, 0, 0.03);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] #dashboard .hero-metrics .kpi-tip,
:root:not([data-theme="dark"]) #dashboard .hero-metrics .kpi-tip {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  color: #4a4a5a;
}

#dashboard .subtitle,
#dashboard .desc {
  font-size: 14px;
  line-height: 1.65;
  color: var(--muted);
}

#dashboard .hero-summary,
#dashboard .module-content p,
#dashboard .problem-text p,
#dashboard .how-content p,
#dashboard .cred-proof-item p,
#dashboard .decision-option p,
#dashboard .decision-guide-timeline p,
#dashboard .dash-cta-subtitle,
#dashboard .offer-grid p,
#dashboard .offer-grid li,
#dashboard .dash-list li {
  font-size: 15px;
  line-height: 1.7;
}

#dashboard .hero-metrics .kpi-label {
  font-size: 10px;
  line-height: 1.2;
}

#dashboard .hero-metrics .kpi-value {
  font-size: 16px;
  line-height: 1.2;
}

#dashboard .decision-option-badge,
#dashboard .badge,
#dashboard .offer-btn {
  font-size: 11px;
  line-height: 1.2;
}

#dashboard .credibility-section,
#dashboard .problem-section,
#dashboard .decision-guide,
#dashboard .how-it-works {
  padding: 40px 20px;
}

#dashboard .dash-packages,
#dashboard .dash-cta-row,
#dashboard .offer-grid > .card,
#dashboard .module-card {
  padding: 20px;
}

#dashboard .module-section,
#dashboard .tech-trust-section,
#dashboard .credibility-section,
#dashboard .problem-section,
#dashboard .decision-guide,
#dashboard .dash-packages,
#dashboard .how-it-works,
#dashboard .dash-cta-row {
  margin-top: 40px;
}

#dashboard .tech-trust-section {
  margin-top: 18px;
  padding: 18px 0;
}

/* Grids / flex rows: minmax(0) + wrap so long DE/EN copy cannot widen past #dashboard */
#dashboard .section-head,
#dashboard .dash-packages-head {
  flex-wrap: wrap;
}

#dashboard .section-head > div:first-child {
  min-width: 0;
  flex: 1 1 min(100%, 28rem);
}

#dashboard .offer-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
}

#dashboard .offer-grid li,
#dashboard .offer-grid p {
  overflow-wrap: break-word;
}

#dashboard .cred-numbers {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

#dashboard .problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#dashboard .decision-option {
  min-width: 0;
}

#dashboard .decision-option p {
  overflow-wrap: break-word;
}

#dashboard .tech-trust-grid {
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#dashboard .how-step {
  gap: 16px;
}

#dashboard .how-num {
  min-width: 44px;
}

#dashboard .dash-packages-head {
  margin-bottom: 16px;
}

#dashboard .offer-pane {
  margin-top: 8px;
}

#dashboard .price-hint {
  font-size: clamp(1.1rem, 4.8vw, 1.35rem);
  line-height: 1.25;
  font-weight: 800;
  margin: 10px 0 14px;
}

#dashboard .offer-grid li,
#dashboard .dash-list li {
  margin-bottom: 6px;
}

#dashboard .dash-cta-actions .btn {
  padding: 14px 24px;
}

#dashboard .modules-grid {
  grid-template-columns: 1fr;
  gap: 14px;
}

#dashboard .module-card {
  border-radius: var(--radius);
}

#dashboard .module-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
}

#dashboard .module-content p {
  font-size: 14px;
  line-height: 1.6;
}

/* web.php view-state parity with JS class toggles */
body.state-engineering-active .state-business { display: none; }
body.state-engineering-active .state-engineering { display: block; }
body.state-business-active .state-business { display: block; }
body.state-business-active .state-engineering { display: none; }

/* web.php hero/order polish */
.service-hero .hero-microcopy {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-secondary, var(--muted));
}

/* web.php answer-first semantic FAQ */
.answer-faq-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.answer-faq-q {
  font-weight: 600;
  font-size: 15px;
  color: var(--color-text-primary, var(--text));
  margin-bottom: 4px;
}

.answer-faq-a {
  font-size: 15px;
  line-height: 1.65;
  color: var(--color-text-secondary, var(--muted));
  margin: 0;
}

.answer-block-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border-tertiary, var(--border));
}

.answer-block-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-primary, var(--text));
  text-decoration: none;
  padding: 6px 14px;
  border: 1px solid var(--color-border-secondary, var(--border));
  border-radius: var(--border-radius-md, var(--radius-sm));
}

.answer-block-links a:hover {
  border-color: var(--color-border-primary, var(--border-strong));
  background: var(--color-background-secondary, var(--bg-elev-2));
}

/* web.php cta microcopy */
.dash-cta-micro {
  font-size: 12px;
  color: var(--color-text-secondary, var(--muted));
  margin-top: 8px;
  text-align: center;
}

/* web.php common objections spacing */
.state-business > .mt-40 {
  margin-top: 40px;
}

/* web.php builder teaser */
.web-builder-teaser-inner {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.web-builder-title {
  font-size: 18px;
  font-weight: 700;
  margin: 8px 0 8px;
  color: var(--color-text-primary, var(--text));
}

.web-builder-desc {
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
}

.web-builder-cta {
  align-self: flex-start;
  white-space: nowrap;
}

/* web.php swiss-elite spacing polish (mobile-first, scoped) */
.web-service-page .service-hero {
  margin-bottom: 24px;
}

.web-service-page .service-title {
  margin-top: 0;
  margin-bottom: 14px;
  line-height: 1.15;
}

.web-service-page .service-subtitle {
  margin: 0 0 10px;
  max-width: 64ch;
}

.web-service-page .service-summary {
  margin: 0 0 16px;
  max-width: 62ch;
}

.web-service-page .hero-microcopy {
  margin-bottom: 0;
}

.web-service-page .view-switch {
  margin-bottom: 20px;
}

.web-service-page .web-builder-teaser {
  margin-top: 24px;
}

.web-service-page .state-business,
.web-service-page .state-engineering {
  margin-top: 18px;
}

.web-service-page .package-header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
}

.web-service-page .package-header > div:last-child {
  width: 100%;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  text-align: left;
  gap: 10px;
}

.web-service-page .package-name {
  margin-top: 6px;
}

.web-service-page .package-desc {
  margin-bottom: 18px;
}

.web-service-page .btn-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.web-service-page .btn-row .btn {
  width: 100%;
  min-height: 46px;
  justify-content: center;
}

.web-service-page .btn-row .btn:not(.btn-primary) {
  border-color: var(--border-strong);
  background: var(--bg-elev-2);
}

.web-service-page .feature-card {
  margin-bottom: 24px;
}

.web-service-page .feature-card-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.web-service-page .answer-block-title {
  margin-top: 0;
}

.web-service-page .dash-cta-row {
  align-items: flex-start;
}

.web-service-page .dash-cta-row > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Amber discipline: keep primary pricing/CTA accents, reduce competing accents */
#dashboard .cred-icon,
#dashboard .decision-guide-icon,
#dashboard .problem-icon {
  color: var(--muted);
}

#dashboard .problem-cta-hint {
  color: var(--text);
  font-weight: 600;
}

#dashboard .cred-guarantee p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text);
}

@media (min-width: 768px) {
  #dashboard .modules-grid {
    grid-template-columns: repeat(2, minmax(240px, 1fr));
    gap: 16px;
  }
}

@media (min-width: 981px) {
  #dashboard {
    font-size: 16px;
  }

  .answer-faq-q { font-size: 16px; }
  .answer-faq-a { font-size: 15px; }
  .dash-cta-micro { text-align: left; }
  .state-business > .mt-40 { margin-top: 48px; }

  .web-builder-teaser-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
  }

  .web-builder-title { font-size: 20px; }
  .web-service-page .service-hero { margin-bottom: 28px; }
  .web-service-page .view-switch { margin-bottom: 22px; }
  .web-service-page .web-builder-teaser { margin-top: 28px; }
  .web-service-page .state-business,
  .web-service-page .state-engineering { margin-top: 20px; }
  .web-service-page .package-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }
  .web-service-page .package-header > div:last-child {
    width: auto;
    display: block;
    text-align: right;
  }
  .web-service-page .btn-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
  }
  .web-service-page .dash-cta-row > div:last-child { align-items: flex-end; }

  #dashboard .dash-hero {
    flex-direction: row;
    align-items: center;
    /* gap is outside flex bases; shrink must be allowed or row overflows (e.g. max-width 1040px) */
    gap: clamp(24px, 4vw, 56px);
    padding: 88px 0 56px;
  }

  #dashboard .hero-copy {
    flex: 1 1 58%;
    max-width: 58%;
    min-width: 0;
  }

  #dashboard .hero-metrics {
    flex: 1 1 42%;
    max-width: 42%;
    min-width: 0;
    align-self: center;
  }

  #dashboard .hero-pain-line {
    margin-bottom: 20px;
    font-size: 16px;
  }

  #dashboard .hero-title {
    font-size: clamp(2.8rem, 4.2vw, 3.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
  }

  #dashboard .hero-summary {
    margin-bottom: 32px;
  }

  #dashboard .hero-actions {
    gap: 20px;
  }

  #dashboard .hero-primary-cta {
    padding: 18px 40px;
    min-height: 56px;
  }

  #dashboard .hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--color-text-primary);
    text-decoration: none;
  }

  #dashboard .hero-chat-cta {
    padding: 12px 20px;
    border-radius: 15px;
  }

  #dashboard .hero-secondary-cta:hover {
    background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent);
    border-color: var(--border-strong);
  }

  #dashboard .trust-chips {
    margin-bottom: 28px;
  }

  #dashboard .hero-metrics .kpi {
    min-height: 94px;
    padding: 16px 20px;
  }

  #dashboard .hero-metrics .kpi-label {
    font-size: 11px;
  }

  #dashboard .hero-metrics .kpi-value {
    font-size: 17px;
  }

  #dashboard .subtitle,
  #dashboard .desc {
    font-size: 15px;
  }

  #dashboard .hero-metrics .kpi-label {
    font-size: 11px;
  }

  #dashboard .credibility-section,
  #dashboard .problem-section,
  #dashboard .decision-guide,
  #dashboard .how-it-works {
    padding: 64px 28px;
  }

  #dashboard .dash-packages,
  #dashboard .dash-cta-row,
  #dashboard .offer-grid > .card,
  #dashboard .module-card {
    padding: 28px;
  }

  #dashboard .module-section,
  #dashboard .tech-trust-section,
  #dashboard .credibility-section,
  #dashboard .problem-section,
  #dashboard .decision-guide,
  #dashboard .dash-packages,
  #dashboard .how-it-works,
  #dashboard .dash-cta-row {
    margin-top: 64px;
  }

  #dashboard .tech-trust-section {
    margin-top: 28px;
    padding: 20px 0;
  }

  #dashboard .offer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }

  #dashboard .dash-cta-actions .btn,
  #dashboard .dash-cta-actions .btn-full {
    width: auto;
  }

  #dashboard .modules-grid {
    grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr));
  }
}

/* Homepage responsive overrides (dashboard only) */
@media (max-width: 700px) {
  #dashboard .dash-hero {
    padding: 32px 12px 28px;
    gap: 28px;
  }

  #dashboard .hero-title {
    font-size: clamp(2rem, 9vw, 2.45rem);
  }
}

@media (max-width: 700px) {
  #dashboard .problem-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 819px) {
  #dashboard .offer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  #dashboard .cred-numbers {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: start;
  }

  #dashboard .cred-stat {
    gap: 8px;
  }

  #dashboard .cred-value {
    font-size: 1.65rem;
  }

  #dashboard .cred-label {
    font-size: 13px;
    line-height: 1.45;
  }

  #dashboard .hero-metrics .kpi-value {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
  }
}

@media (max-width: 430px) {
  #dashboard .cred-numbers {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  #dashboard .card,
  #dashboard .credibility-section,
  #dashboard .problem-section,
  #dashboard .decision-guide,
  #dashboard .dash-packages,
  #dashboard .how-it-works,
  #dashboard .dash-cta-row,
  #dashboard .offer-grid > .card,
  #dashboard .module-card {
    padding: 18px 16px;
  }
}

@media (max-width: 639px) {
  #dashboard .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 640px) and (max-width: 980px) {
  #dashboard .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 701px) and (max-width: 980px) {
  #dashboard .problem-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 820px) and (max-width: 980px) {
  #dashboard .offer-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 980px) {
  #dashboard .modules-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

/* ──────────────────────────────────────────────────────────────────
   2026 mobile/tablet hero refinement (dashboard only)
   Goal: ascetic, single-focus hero. Less density, tighter typography,
   clearer hierarchy. Applies to <=980px; CSS-only, scoped to #dashboard.
   ────────────────────────────────────────────────────────────────── */

/* Tablet & mobile: hide redundant summary paragraph (subtitle carries it) */
@media (max-width: 980px) {
  #dashboard .hero-summary {
    display: none;
  }
}

/* Tablet (701-980px) */
@media (min-width: 701px) and (max-width: 980px) {
  #dashboard .dash-hero {
    padding: 40px 20px 32px;
    gap: 32px;
  }

  #dashboard .hero-pain-line {
    margin: 0 0 14px;
    font-size: 14px;
    color: var(--muted);
  }

  #dashboard .hero-title {
    font-size: clamp(2.25rem, 5.4vw, 2.85rem);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 18px;
  }

  #dashboard .hero-subtitle {
    font-size: 16px;
    line-height: 1.55;
    margin: 0 0 24px;
    max-width: 60ch;
  }

  #dashboard .hero-actions {
    gap: 12px;
    margin-top: 4px;
  }

  #dashboard .hero-primary-cta {
    padding: 14px 26px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 15px;
  }

  #dashboard .hero-chat-cta {
    padding: 12px 22px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  #dashboard .hero-microcopy {
    margin-top: 14px;
    font-size: 13px;
  }

  #dashboard .trust-chips {
    margin-top: 22px;
    gap: 8px;
  }

  #dashboard .trust-chip {
    font-size: 12px;
    padding: 5px 12px;
  }
}

/* Mobile (<=700px) - single-column, single-focus, full-width CTAs */
@media (max-width: 700px) {
  #dashboard .dash-hero {
    padding: 28px 16px 24px;
    gap: 24px;
  }

  #dashboard .hero-pain-line {
    margin: 0 0 12px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    color: var(--muted);
    letter-spacing: 0;
  }

  #dashboard .hero-title {
    font-size: clamp(1.85rem, 8.4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0 0 16px;
  }

  #dashboard .hero-subtitle {
    font-size: 15px;
    line-height: 1.55;
    margin: 0 0 22px;
    color: var(--muted);
    max-width: none;
  }

  #dashboard .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    margin-top: 4px;
  }

  #dashboard .hero-primary-cta {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    min-height: 50px;
    border-radius: 14px;
    font-size: 15px;
  }

  #dashboard .hero-chat-cta {
    width: 100%;
    justify-content: center;
    padding: 12px 20px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
  }

  #dashboard .hero-microcopy {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
    color: var(--muted);
  }

  #dashboard .trust-chips {
    margin-top: 20px;
    gap: 6px;
    justify-content: center;
  }

  #dashboard .trust-chip {
    font-size: 11px;
    padding: 4px 10px;
  }
}

/* Ultra-narrow (<=380px) - guard against awkward title breaks */
@media (max-width: 380px) {
  #dashboard .hero-title {
    font-size: clamp(1.7rem, 8.6vw, 2rem);
  }

  #dashboard .hero-pain-line {
    font-size: 12px;
  }
}

/* Accessible visually-hidden label */
.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;
}

/* Skip-to-content link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 10000;
  padding: 10px 16px;
  background: var(--bg-elev);
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.16);
  transform: translateY(-100%);
  transition: transform 0.18s ease, top 0.18s ease;
}

.skip-link:focus,
.skip-link:focus-visible {
  top: 12px;
  transform: translateY(0);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* Hero secondary CTA — demoted on mobile */
.hero-secondary-cta {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  border-radius: 0;
}

.hero-secondary-cta:hover,
.hero-secondary-cta:focus-visible {
  background: transparent;
  border-color: transparent;
  color: var(--text);
}

/* Sticky mobile CTA bar */
.sticky-cta-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1200;
  padding: 10px 14px calc(10px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(100%);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.sticky-cta-bar.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.sticky-cta-btn {
  min-height: 44px;
}

body.has-sticky-cta {
  padding-bottom: 84px;
}

@media (min-width: 981px) {
  .hero-secondary-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 15px;
    padding: 12px 20px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    text-decoration: none;
  }

  .hero-secondary-cta:hover {
    background: color-mix(in srgb, var(--bg-elev-2) 80%, transparent);
    border-color: var(--border-strong);
  }

  .sticky-cta-bar {
    display: none;
  }

  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

@media (max-width: 980px) {
  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    height: 100%;
    height: 100dvh;
    overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-sizing: border-box;
  }

  .sidebar .sidebar-header {
    flex: 0 0 auto;
    margin-bottom: 6px;
  }

  .sidebar .sidebar-cta {
    flex: 0 0 auto;
    margin: 4px 0 6px;
  }

  .sidebar .nav-menu {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    gap: 1px;
  }

  .sidebar .nav-item {
    padding-top: 6px;
    padding-bottom: 6px;
    font-size: 14px;
  }

  .sidebar .nav-label {
    margin-top: 6px;
    margin-bottom: 2px;
    font-size: 10px;
  }

  .sidebar .nav-spacer {
    display: none;
  }

  .sidebar .sidebar-footer {
    flex: 0 0 auto;
    padding-top: 10px;
  }

  .sidebar .sidebar-lang {
    flex: 0 0 auto;
  }

  body.has-sticky-cta .sidebar {
    height: 100%;
    height: 100dvh;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
}

@media (max-width: 980px) and (max-height: 680px) {
  .sidebar .sidebar-header {
    margin-bottom: 4px;
  }

  .sidebar .sidebar-cta {
    margin: 2px 0 4px;
  }

  .sidebar .nav-item {
    padding-top: 5px;
    padding-bottom: 5px;
    font-size: 13px;
  }

  .sidebar .nav-label {
    font-size: 10px;
    margin-top: 4px;
    margin-bottom: 1px;
  }

  .sidebar .sidebar-footer {
    padding-top: 8px;
    gap: 6px;
  }
}

@media (max-width: 980px) and (max-height: 580px) {
  .sidebar .sidebar-header {
    height: 32px;
    margin-bottom: 2px;
  }

  .sidebar .logo-area {
    font-size: 14px;
    gap: 8px;
  }

  .sidebar .sidebar-cta {
    margin: 0 0 2px;
  }

  .sidebar .nav-item {
    padding-top: 3px;
    padding-bottom: 3px;
    font-size: 12px;
  }

  .sidebar .nav-label {
    font-size: 9px;
    margin-top: 4px;
    margin-bottom: 0;
  }

  .sidebar .sidebar-footer {
    padding-top: 6px;
  }
}

body.sidebar-open .sticky-cta-bar {
  display: none;
}

/* ==========================================================================
   SEO / AI Money Pages - Final Frame System
   ========================================================================== */

.seo-money-page::before,
.ai-money-page::before,
.seo-money-hero::after,
.ai-money-hero::after,
.seo-offer-card--primary::before,
.ai-offer-card--primary::before,
.seo-final-cta::before,
.ai-final-cta::before {
  content: none;
}

.seo-money-hero,
.ai-money-hero,
.seo-revenue-card,
.seo-section-card,
.ai-section-card,
.ai-offer-section {
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.seo-money-page .seo-mini-card,
.seo-money-page .seo-proof-grid > div,
.seo-money-page .seo-engineering-grid > div,
.seo-money-page .seo-faq-list > div,
.seo-money-page .seo-offer-card,
.seo-money-page .seo-final-cta,
.ai-money-page .ai-mini-card,
.ai-money-page .ai-build-grid > div,
.ai-money-page .ai-rag-grid > div,
.ai-money-page .ai-proof-grid > div,
.ai-money-page .ai-process-grid > div,
.ai-money-page .ai-view-grid > div,
.ai-money-page .ai-faq-list > div,
.ai-money-page .ai-offer-card,
.ai-money-page .ai-final-cta {
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 88%, transparent), color-mix(in srgb, var(--bg-elev) 76%, transparent));
  box-shadow: 0 8px 24px color-mix(in srgb, #0f172a 5%, transparent);
  overflow: hidden;
}

.seo-money-page .seo-mini-card,
.seo-money-page .seo-proof-grid > div,
.seo-money-page .seo-engineering-grid > div,
.seo-money-page .seo-faq-list > div,
.ai-money-page .ai-mini-card,
.ai-money-page .ai-build-grid > div,
.ai-money-page .ai-rag-grid > div,
.ai-money-page .ai-proof-grid > div,
.ai-money-page .ai-process-grid > div,
.ai-money-page .ai-view-grid > div,
.ai-money-page .ai-faq-list > div {
  padding: 16px;
}

.seo-money-page .seo-offer-card--primary,
.ai-money-page .ai-offer-card--primary {
  border-color: color-mix(in srgb, var(--premium-copper) 24%, var(--border));
  box-shadow: 0 10px 28px color-mix(in srgb, var(--premium-copper) 8%, transparent);
}

.seo-money-page .seo-retainer-card,
.seo-money-page .seo-authority-card {
  border-left: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.seo-money-page .seo-final-cta,
.ai-money-page .ai-final-cta {
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elev) 90%, transparent), color-mix(in srgb, var(--premium-gold) 5%, var(--bg-elev)));
}

.seo-money-page .seo-mini-card:hover,
.seo-money-page .seo-proof-grid > div:hover,
.seo-money-page .seo-engineering-grid > div:hover,
.seo-money-page .seo-faq-list > div:hover,
.ai-money-page .ai-mini-card:hover,
.ai-money-page .ai-build-grid > div:hover,
.ai-money-page .ai-rag-grid > div:hover,
.ai-money-page .ai-proof-grid > div:hover,
.ai-money-page .ai-process-grid > div:hover,
.ai-money-page .ai-view-grid > div:hover,
.ai-money-page .ai-faq-list > div:hover {
  transform: none;
  border-color: color-mix(in srgb, var(--border-strong) 74%, transparent);
  box-shadow: 0 10px 26px color-mix(in srgb, #0f172a 6%, transparent);
}

.seo-reporting-grid span,
.ai-metric-grid span {
  box-shadow: none;
}

@media (max-width: 640px) {
  .seo-money-page .seo-mini-card,
  .seo-money-page .seo-proof-grid > div,
  .seo-money-page .seo-engineering-grid > div,
  .seo-money-page .seo-faq-list > div,
  .seo-money-page .seo-offer-card,
  .seo-money-page .seo-final-cta,
  .ai-money-page .ai-mini-card,
  .ai-money-page .ai-build-grid > div,
  .ai-money-page .ai-rag-grid > div,
  .ai-money-page .ai-proof-grid > div,
  .ai-money-page .ai-process-grid > div,
  .ai-money-page .ai-view-grid > div,
  .ai-money-page .ai-faq-list > div,
  .ai-money-page .ai-offer-card,
  .ai-money-page .ai-final-cta {
    border-radius: 14px;
    box-shadow: none;
  }
}

/* ==========================================================================
   Solution Pages - Unified App Surface
   ========================================================================== */

.solution-page {
  --solution-section-gap: clamp(22px, 3vw, 30px);
  display: flex;
  flex-direction: column;
  min-height: calc(100dvh - var(--topbar-h) - 96px);
  padding-bottom: clamp(36px, 6vw, 72px);
}

.solution-page > * {
  order: 4;
}

.view-section.solution-page:not(.active) {
  display: none;
}

.view-section.active.solution-page {
  display: flex;
}

.content:has(> .solution-page) {
  display: flex;
  flex-direction: column;
}

.content:has(> .solution-page) > .solution-page {
  flex: 1 0 auto;
  width: 100%;
}

.solution-page .page-hero--subpage {
  order: 1;
  border: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.solution-page .hero-copy {
  max-width: none;
}

.solution-page .page-hero-meta,
.solution-page .hero-metrics {
  display: none;
}

.solution-page .page-hero-title {
  max-width: 34ch;
  letter-spacing: -0.045em;
}

.solution-page .page-hero-lead {
  max-width: 72ch;
}

.solution-page .page-hero-support {
  max-width: 64ch;
}

.solution-page .view-switch {
  order: 2;
  margin: 0 0 var(--solution-section-gap);
}

.solution-action-row {
  order: 2;
  margin: 0 0 var(--solution-section-gap);
}

.solution-action-row.view-switch {
  display: inline-flex;
}

.solution-page .state-business,
.solution-page .state-engineering,
.solution-page > .solution-first-card {
  order: 3;
}

.solution-page .web-builder-teaser {
  order: 4;
  margin-top: var(--solution-section-gap);
}

.solution-page .btn-row {
  gap: 12px;
}

.solution-page .feature-card-title {
  color: var(--text);
  letter-spacing: -0.03em;
}

.solution-first-card {
  border: 1px solid var(--border);
  border-left-color: var(--premium-line);
  border-radius: 16px;
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
  margin-bottom: var(--solution-section-gap);
  overflow: hidden;
}

.solution-first-card .data-label {
  margin-bottom: 8px;
}

.solution-first-card .feature-card-title {
  margin-top: 0;
  margin-bottom: 12px;
}

.solution-first-card .feature-card-desc {
  max-width: 78ch;
  margin-bottom: 18px;
}

.solution-page:not(.seo-money-page):not(.ai-money-page) .card {
  border: 1px solid var(--border);
  border-left: 1px solid var(--border);
  border-radius: 16px;
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
  overflow: hidden;
}

.solution-page:not(.seo-money-page):not(.ai-money-page) .feature-card {
  border-left-color: color-mix(in srgb, var(--premium-copper) 20%, var(--border));
}

.solution-page:not(.seo-money-page):not(.ai-money-page) .feature-grid > div,
.solution-page:not(.seo-money-page):not(.ai-money-page) .problem-item,
.solution-page:not(.seo-money-page):not(.ai-money-page) .stack-item {
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 58%, transparent);
  padding: 14px;
}

.solution-page:not(.seo-money-page):not(.ai-money-page) .spec-table {
  border-radius: 14px;
  overflow: hidden;
}

.solution-page:not(.seo-money-page):not(.ai-money-page) .service-badges,
.solution-page:not(.seo-money-page):not(.ai-money-page) .chips {
  gap: 8px;
}

.web-service-page .service-hero {
  margin-bottom: var(--solution-section-gap);
}

@media (min-width: 981px) {
  .solution-page .page-hero-title {
    font-size: clamp(2.35rem, 4vw, 3.15rem);
    line-height: 1.06;
  }

  .solution-page:not(.seo-money-page):not(.ai-money-page) .state-business,
  .solution-page:not(.seo-money-page):not(.ai-money-page) .state-engineering {
    margin-top: 0;
  }
}

@media (max-width: 640px) {
  .solution-page .view-switch {
    margin-bottom: 18px;
  }

  .solution-page {
    min-height: calc(100dvh - var(--topbar-h));
    padding-bottom: 44px;
  }

  .solution-page:not(.seo-money-page):not(.ai-money-page) .card {
    border-radius: 14px;
    box-shadow: none;
  }

  .solution-page:not(.seo-money-page):not(.ai-money-page) .feature-grid > div,
  .solution-page:not(.seo-money-page):not(.ai-money-page) .problem-item,
  .solution-page:not(.seo-money-page):not(.ai-money-page) .stack-item {
    padding: 12px;
  }
}

/* ==========================================================================
   Subpage title-section unification
   ========================================================================== */

.page-hero--subpage {
  min-width: 0;
  margin-bottom: clamp(22px, 3vw, 30px);
}

.page-hero-inner {
  min-width: 0;
}

.section-head.page-hero--subpage,
.section-intro.page-hero--subpage,
.section-intro-lg.page-hero--subpage,
.service-hero.page-hero--subpage,
.blog-page-header.page-hero--subpage,
.blog-article-header.page-hero--subpage,
.wb-entry-inner.page-hero--subpage {
  margin-bottom: clamp(22px, 3vw, 30px);
}

.page-hero-title {
  max-width: 28ch;
  overflow-wrap: break-word;
  text-wrap: balance;
}

.page-hero-kicker {
  margin-bottom: 12px;
}

.service-badges.page-hero-kicker,
.section-intro-badges.page-hero-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.service-hero .page-hero-title,
.blog-page-header .page-hero-title,
.blog-article-header .page-hero-title,
.wb-entry-inner .page-hero-title {
  max-width: 30ch;
}

.page-hero-lead {
  max-width: 72ch;
}

.page-hero-support {
  max-width: 64ch;
}

@media (max-width: 640px) {
  .page-hero--subpage,
  .section-head.page-hero--subpage,
  .section-intro.page-hero--subpage,
  .section-intro-lg.page-hero--subpage,
  .service-hero.page-hero--subpage,
  .blog-page-header.page-hero--subpage,
  .blog-article-header.page-hero--subpage,
  .wb-entry-inner.page-hero--subpage {
    margin-bottom: 22px;
  }

  .section-head.page-hero--subpage,
  .section-hero.page-hero--subpage {
    flex-direction: column;
    gap: 14px;
  }

  .page-hero-title {
    max-width: 100%;
    font-size: clamp(1.45rem, 6.7vw, 1.85rem);
    line-height: 1.12;
    letter-spacing: -0.03em;
  }

  .blog-article-header .page-hero-title {
    font-size: clamp(1.4rem, 6.2vw, 1.75rem);
  }

  .page-hero-lead,
  .page-hero-support {
    max-width: 100%;
    font-size: 14px;
    line-height: 1.6;
  }

  .wb-entry-inner.page-hero--subpage {
    padding-top: 28px;
    padding-bottom: 24px;
  }

  .wb-entry-inner.page-hero--subpage .wb-entry-title {
    margin-top: 14px;
  }
}

@media (max-width: 380px) {
  .page-hero-title {
    font-size: clamp(1.38rem, 6.4vw, 1.72rem);
  }
}

/* ==========================================================================
   App Screen Contract - dashboard + solutions
   ========================================================================== */

#dashboard,
.solution-page {
  --app-screen-max: min(var(--content-max, 960px), 100%);
  --app-screen-pad-top: clamp(38px, 7vh, 72px);
  --app-hero-gap: clamp(24px, 4vw, 48px);
  --app-hero-copy: 64ch;
  --app-title-size: clamp(2.1rem, 4.7vw, 3.15rem);
  --app-title-line: 1.08;
  --app-section-gap: clamp(22px, 3vw, 30px);
  width: 100%;
  max-width: var(--app-screen-max);
}

/* Web Platforms: pull hero slightly closer to top */
.solution-page.web-service-page {
  --app-screen-pad-top: clamp(30px, 6vh, 64px);
}

/* Web Builder: app-shell rhythm + wider column for the stepper/preview tool */
.solution-page.web-builder-page {
  --app-screen-max: min(1200px, 100%);
}

.solution-page.web-builder-page .wb-page {
  width: 100%;
  max-width: 100%;
  margin-left: 0;
  margin-right: 0;
}

.solution-page.web-builder-page .wb-entry-title.page-hero-title {
  max-width: none;
  font-size: clamp(1.6rem, 5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.content:has(> #dashboard),
.content:has(> .solution-page) {
  display: flex;
  flex-direction: column;
}

.content:has(> #dashboard) > #dashboard,
.content:has(> .solution-page) > .solution-page {
  flex: 1 0 auto;
}

#dashboard .dash-hero,
.solution-page .page-hero--subpage {
  display: flex;
  flex-direction: column;
  gap: var(--app-hero-gap);
  width: 100%;
  padding: var(--app-screen-pad-top) 24px 40px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

#dashboard .hero-copy,
.solution-page .hero-copy,
.solution-page .page-hero-inner {
  width: 100%;
  max-width: var(--app-hero-copy);
}

#dashboard .hero-title,
.solution-page .page-hero-title {
  max-width: 34ch;
  margin-top: 0;
  font-size: var(--app-title-size);
  line-height: var(--app-title-line);
  letter-spacing: -0.035em;
  text-wrap: balance;
}

#dashboard .hero-subtitle,
.solution-page .page-hero-lead {
  max-width: 72ch;
  margin-bottom: 12px;
}

#dashboard .hero-summary,
.solution-page .page-hero-support {
  max-width: 64ch;
}

.solution-page .page-hero-meta {
  display: flex;
}

.solution-page .hero-metrics {
  display: none;
}

#dashboard .trust-chips,
.solution-page .trust-chips,
.solution-page .service-badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  margin-bottom: 0;
}

#dashboard .trust-chip,
.solution-page .trust-chip,
.solution-page .pill {
  border-color: color-mix(in srgb, var(--border) 74%, var(--premium-amber));
  background: color-mix(in srgb, var(--bg-elev) 82%, transparent);
}

.solution-action-row,
.solution-page .view-switch,
.solution-page .btn-row.ai-hero-actions {
  width: 100%;
  max-width: var(--app-hero-copy);
  margin: 0 24px var(--app-section-gap);
}

.solution-action-row.view-switch {
  display: inline-flex;
}

.solution-page .state-business,
.solution-page .state-engineering {
  width: 100%;
}

.solution-first-card {
  border: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-left: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
  border-radius: 16px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 90%, transparent), color-mix(in srgb, var(--bg-elev) 78%, transparent));
  box-shadow: 0 10px 28px color-mix(in srgb, #0f172a 5%, transparent);
  margin-bottom: var(--app-section-gap);
  overflow: hidden;
}

.solution-first-card.feature-card,
.solution-page:not(.seo-money-page):not(.ai-money-page) .solution-first-card.feature-card {
  border-left: 1px solid color-mix(in srgb, var(--border) 82%, transparent);
}

.solution-first-card .feature-card-title {
  color: var(--text);
}

/* Premium language switch - sidebar/drawer treatment */
.sidebar-lang {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: 100%;
  padding: 4px;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 92%, transparent), color-mix(in srgb, var(--bg-elev-2) 74%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 62%, transparent),
    0 8px 22px color-mix(in srgb, #0f172a 4%, transparent);
}

.sidebar-lang .seg-btn {
  min-height: 30px;
  min-width: 38px;
  border: 0;
  border-radius: 999px;
  color: color-mix(in srgb, var(--muted) 88%, var(--text));
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: color .16s ease, background .16s ease, box-shadow .16s ease, transform .12s ease;
}

.sidebar-lang .seg-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--bg-elev-2) 72%, transparent);
}

.sidebar-lang .seg-btn--current,
.sidebar-lang .seg-btn[aria-pressed="true"] {
  color: var(--text);
  background:
    linear-gradient(180deg, color-mix(in srgb, #fff 82%, var(--bg-elev)), color-mix(in srgb, var(--bg-elev-2) 88%, transparent));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, #fff 82%, transparent),
    0 5px 14px color-mix(in srgb, var(--premium-copper) 12%, transparent);
}

.sidebar-lang .seg-btn:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--premium-amber) 72%, var(--amber));
  outline-offset: 3px;
}

@media (min-width: 981px) {
  #dashboard .dash-hero {
    flex-direction: row;
    align-items: center;
    padding-top: var(--app-screen-pad-top);
  }

  #dashboard .hero-copy {
    flex: 1 1 58%;
    max-width: 58%;
  }

  #dashboard .hero-metrics {
    flex: 1 1 42%;
    max-width: 42%;
  }

  .solution-page .page-hero--subpage {
    min-height: 220px;
    justify-content: center;
  }
}

/* ==========================================================================
   PHASE B — Service page desktop/tablet visual rhythm (2026)
   Scope: service pages only. Homepage, blog, legal and contact stay untouched.
   ========================================================================== */

.solution-page:not(#dashboard) {
  --service-hero-pad-top: clamp(24px, 3.4vw, 46px);
  --service-hero-pad-bottom: clamp(28px, 3.8vw, 48px);
  --service-hero-gutter: clamp(18px, 2.4vw, 30px);
  --service-first-gap: clamp(18px, 2.4vw, 28px);
  --service-bottom-safe: clamp(72px, 9vw, 132px);
}

@media (min-width: 768px) {
  .content:has(> .solution-page) {
    --service-bottom-safe: clamp(72px, 9vw, 132px);
    padding-top: clamp(16px, 2vw, 24px);
    padding-bottom: var(--service-bottom-safe);
  }

  .solution-page:not(#dashboard) {
    --app-screen-pad-top: var(--service-hero-pad-top);
    --app-hero-gap: clamp(14px, 2vw, 24px);
    --app-title-line: 1.04;
    padding-bottom: var(--service-bottom-safe);
  }

  .solution-page .page-hero--subpage {
    position: relative;
    min-height: 0;
    justify-content: flex-start;
    gap: clamp(12px, 1.8vw, 20px);
    padding:
      var(--service-hero-pad-top)
      var(--service-hero-gutter)
      var(--service-hero-pad-bottom);
    isolation: isolate;
  }

  .solution-page .page-hero--subpage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: 22px;
    background:
      radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--premium-copper) 8%, transparent), transparent 38%),
      linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 42%, transparent), transparent 74%);
    opacity: .82;
    pointer-events: none;
  }

  .solution-page .page-hero--subpage::after {
    content: "";
    position: absolute;
    left: var(--service-hero-gutter);
    bottom: 0;
    width: min(140px, 28%);
    height: 1px;
    background: color-mix(in srgb, var(--premium-copper) 28%, var(--border));
    pointer-events: none;
  }

  .solution-page .page-hero-title {
    max-width: min(32ch, 100%);
    margin-bottom: 2px;
    line-height: var(--app-title-line);
  }

  .solution-page .page-hero-lead {
    max-width: 68ch;
    margin-bottom: 6px;
  }

  .solution-page .page-hero-support {
    max-width: 62ch;
  }

  .solution-page .service-badges,
  .solution-page .page-hero-kicker {
    margin-top: 0;
    margin-bottom: 2px;
  }

  .solution-action-row,
  .solution-page .view-switch,
  .solution-page .btn-row.ai-hero-actions {
    margin:
      calc(-1 * clamp(4px, .8vw, 10px))
      var(--service-hero-gutter)
      var(--service-first-gap);
  }

  .solution-first-card {
    margin-top: 0;
  }

  .solution-page.web-builder-page .wb-page {
    padding-top: clamp(10px, 1.6vw, 20px);
    padding-bottom: var(--service-bottom-safe);
  }

  .solution-page.web-builder-page .wb-entry-inner.page-hero--subpage {
    padding-top: clamp(22px, 2.2vw, 34px);
    padding-bottom: clamp(28px, 3vw, 44px);
  }
}

@media (min-width: 981px) {
  .solution-page .page-hero--subpage {
    min-height: 0;
    justify-content: flex-start;
  }

  .seo-money-page .page-hero--subpage,
  .ai-money-page .page-hero--subpage {
    --service-hero-pad-top: clamp(16px, 2.1vw, 34px);
    --service-hero-pad-bottom: clamp(22px, 2.4vw, 40px);
  }

  .seo-money-page .page-hero-title,
  .ai-money-page .page-hero-title {
    font-size: clamp(2.15rem, 3.95vw, 2.85rem);
    line-height: 1.05;
  }

  .solution-page:not(.seo-money-page):not(.ai-money-page) .page-hero--subpage {
    --service-hero-pad-top: clamp(20px, 2.4vw, 36px);
    --service-hero-pad-bottom: clamp(26px, 2.8vw, 42px);
  }
}

@media (min-width: 1280px) {
  .solution-page:not(#dashboard) {
    --app-title-size: clamp(2.25rem, 3.15vw, 3rem);
  }

  .seo-money-page .page-hero-title,
  .ai-money-page .page-hero-title {
    font-size: clamp(2.35rem, 2.95vw, 3rem);
  }

  .solution-page.web-builder-page {
    --service-hero-pad-top: clamp(24px, 2.4vw, 40px);
  }
}

@media (max-width: 980px) {
  .sidebar-lang .seg-btn {
    min-height: 36px;
    min-width: 44px;
    font-size: 12px;
  }

  .sidebar-footer {
    padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 640px) {
  #dashboard .dash-hero,
  .solution-page .page-hero--subpage {
    padding: 30px 2px 26px;
    gap: 18px;
  }

  #dashboard .hero-title,
  .solution-page .page-hero-title {
    max-width: 100%;
    font-size: clamp(1.55rem, 7vw, 1.95rem);
    line-height: 1.12;
  }

  .solution-action-row,
  .solution-page .view-switch,
  .solution-page .btn-row.ai-hero-actions {
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

/* ==========================================================================
   HOMEPAGE — SWISS ELITE 2026 POLISH
   Visual-only refinement scoped to #dashboard. No content/markup changes.
   ========================================================================== */

#dashboard {
  --hp-hairline: color-mix(in srgb, var(--border) 78%, transparent);
  --hp-hairline-strong: color-mix(in srgb, var(--border) 92%, transparent);
  --hp-accent-grad: linear-gradient(90deg, var(--premium-copper), var(--premium-amber));
  --hp-accent-grad-v: linear-gradient(180deg, var(--premium-amber), var(--premium-copper));
}

/* Ambient light wash — full content surface (not boxed inside hero).
   Anchored to .content#content-display so it spans the entire homepage
   canvas and bleeds gracefully under the hero, KPIs and tech-trust strip. */
.content#content-display {
  position: relative;
  isolation: isolate;
}

.content#content-display::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: clamp(440px, 60vh, 760px);
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(72% 100% at 14% -8%,  color-mix(in srgb, var(--premium-amber)  14%, transparent), transparent 62%),
    radial-gradient(60% 90%  at 88% 14%,  color-mix(in srgb, var(--green)           9%, transparent), transparent 70%),
    radial-gradient(58% 80%  at 50% -2%,  color-mix(in srgb, var(--premium-copper)  6%, transparent), transparent 75%);
  opacity: 1;
  /* Soft fade at the bottom so the wash dissolves into the page. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}

/* Reset the previous hero-scoped wash (kept for backward-compat, now neutral). */
#dashboard .dash-hero { position: relative; }
#dashboard .dash-hero::before { content: none; }

/* Pain line — Swiss precision eyebrow with vertical copper rule */
#dashboard .hero-pain-line {
  position: relative;
  margin: 0 0 18px;
  padding-left: 14px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.55;
  letter-spacing: 0.003em;
  color: color-mix(in srgb, var(--text) 72%, transparent);
}

#dashboard .hero-pain-line::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 3px;
  border-radius: 2px;
  background: var(--hp-accent-grad-v);
  box-shadow: 0 4px 14px color-mix(in srgb, var(--premium-copper) 22%, transparent);
}

@media (min-width: 981px) {
  #dashboard .hero-pain-line {
    font-size: 15px;
    margin-bottom: 22px;
  }
}

/* Title contrast tightened on desktop only (no content shift) */
@media (min-width: 981px) {
  #dashboard .hero-subtitle {
    font-size: 17px;
    line-height: 1.55;
    color: color-mix(in srgb, var(--text) 80%, transparent);
  }
  #dashboard .hero-summary {
    font-size: 15.5px;
    line-height: 1.65;
    color: color-mix(in srgb, var(--text) 72%, transparent);
  }
}

/* Trust chips — refined hairline, lighter rhythm */
#dashboard .trust-chips {
  gap: 10px;
}

#dashboard .trust-chip {
  padding: 6px 12px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.002em;
  color: color-mix(in srgb, var(--text) 78%, transparent);
  border: 1px solid var(--hp-hairline);
  background: color-mix(in srgb, var(--bg-elev) 78%, transparent);
}

#dashboard .trust-chip .icon {
  font-size: 15px;
}

/* CTA microcopy spacing */
#dashboard .hero-microcopy {
  margin-top: 12px;
  letter-spacing: 0.003em;
}

/* KPI grid — Swiss-precise cards with copper top tab */
#dashboard .hero-metrics {
  gap: 10px;
}

#dashboard .hero-metrics .kpi {
  position: relative;
  padding: 16px 16px 14px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 96%, transparent), color-mix(in srgb, var(--bg-elev-2) 86%, transparent));
  border: 1px solid var(--hp-hairline);
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 36%, transparent),
    0 6px 20px color-mix(in srgb, #0f172a 4%, transparent);
  overflow: visible;
}

#dashboard .hero-metrics .kpi::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  width: 26px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: var(--hp-accent-grad);
  opacity: .85;
}

#dashboard .hero-metrics .kpi-label {
  margin: 4px 0 6px;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  font-weight: 700;
  color: color-mix(in srgb, var(--muted) 96%, transparent);
}

#dashboard .hero-metrics .kpi-value {
  font-size: 16px;
  letter-spacing: -0.005em;
  color: var(--text);
}

@media (min-width: 981px) {
  #dashboard .hero-metrics {
    gap: 12px;
  }
  #dashboard .hero-metrics .kpi {
    min-height: 108px;
    padding: 20px 20px 16px;
  }
  #dashboard .hero-metrics .kpi::before {
    left: 20px;
    width: 28px;
  }
  #dashboard .hero-metrics .kpi-label {
    font-size: 11px;
    letter-spacing: 0.16em;
  }
  #dashboard .hero-metrics .kpi-value {
    font-size: 18px;
  }
}

/* Tech trust — tighter hairlines, mono label, breathing rhythm */
#dashboard .tech-trust-section {
  border-top-color: var(--hp-hairline);
  border-bottom-color: var(--hp-hairline);
}

#dashboard .tech-trust-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: color-mix(in srgb, var(--muted) 96%, transparent);
}

#dashboard .tech-trust-grid {
  gap: 28px 56px;
}

#dashboard .tech-trust-logo {
  filter: grayscale(100%) opacity(0.44);
  transition: filter 0.3s ease, transform 0.3s ease;
}

#dashboard .tech-trust-logo:hover {
  filter: grayscale(0%) opacity(1);
  transform: translateY(-1px);
}

@media (min-width: 981px) {
  #dashboard .tech-trust-section {
    margin-top: 36px;
    padding: 28px 0;
  }
  #dashboard .tech-trust-label {
    margin-bottom: 22px;
  }
  #dashboard .tech-trust-grid {
    gap: 32px 72px;
  }
}

/* Narrow desktop (sidebar visible, 2-col KPI grid) — pull values down so
   "Mehr Sichtbarkeit" / "Enterprise-Niveau" fit cleanly without mid-word breaks.
   Placed AFTER the desktop @media so it wins source-order in the cascade. */
@media (min-width: 981px) and (max-width: 1320px) {
  #dashboard .hero-metrics .kpi {
    padding: 16px 14px 14px;
    min-height: 96px;
  }
  #dashboard .hero-metrics .kpi::before {
    left: 14px;
    width: 24px;
  }
  #dashboard .hero-metrics .kpi-label {
    font-size: 10.5px;
    letter-spacing: 0.14em;
  }
  #dashboard .hero-metrics .kpi-value {
    font-size: 14.5px;
    letter-spacing: -0.003em;
  }
}

/* Hero KPI hover — premium soft lift + copper-tinted glow */
#dashboard .hero-metrics .kpi.has-tip:hover {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 98%, transparent), color-mix(in srgb, var(--bg-elev-2) 92%, transparent));
  border-color: color-mix(in srgb, var(--premium-copper) 28%, var(--border));
  box-shadow:
    inset 0 1px 0 color-mix(in srgb, white 50%, transparent),
    0 14px 32px color-mix(in srgb, var(--premium-copper) 12%, transparent);
}

/* Reduced motion: keep new hover states static */
@media (prefers-reduced-motion: reduce) {
  #dashboard .tech-trust-logo:hover {
    transform: none;
  }
}

/* ==========================================================================
   ACCESSIBILITY & I18N RECOMMENDATIONS (2026)
   - Strong focus rings (keyboard navigation)
   - German hyphenation for narrow phones (long compounds)
   - Architect external-link metadata
   - <abbr> tooltip styling (e.g. RAG)
   ========================================================================== */

/* Fallback :focus for older agents that don't support :focus-visible */
.btn:focus:not(:focus-visible),
.icon-btn:focus:not(:focus-visible),
.seg-btn:focus:not(:focus-visible),
.view-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Inputs in legacy browsers — keep visible focus */
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--ring-halo, color-mix(in srgb, var(--amber) 18%, transparent));
}

/* Pills / chips / view-btn focus parity */
.pill:focus-visible,
.chip:focus-visible,
.trust-chip:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

/* Architect link metadata badge (sidebar + footer) */
.nav-item-meta,
.footer-link-meta {
  display: inline;
  margin-left: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: color-mix(in srgb, var(--muted) 96%, transparent);
}

.nav-item-meta {
  font-size: 10.5px;
}

/* abbr[title] — visible underline + native tooltip cursor */
abbr[title] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--premium-amber) 70%, transparent);
  cursor: help;
}

/* Narrow-phone hyphenation & word-break for German compounds.
   Targets <380px (e.g. iPhone SE 1st gen 320px, Galaxy Fold 280px). */
:root :where(html)[lang^="de"] body {
  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
}

@media (max-width: 380px) {
  html[lang^="de"] :is(h1, h2, h3, p, li, strong, .feature-card-title, .package-name, .hero-title, .page-hero-title, .hero-subtitle, .hero-summary, .feature-card-desc) {
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  html[lang^="en"] :is(h1, h2, h3, p, li, .hero-title, .page-hero-title) {
    overflow-wrap: break-word;
  }

  /* Reduce horizontal stress on already-tight grids */
  #dashboard .hero-metrics .kpi-value {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   PHASE A — Card tiers + accent unification (2026)
   Tier 1: flagship offers (existing .seo-offer-card--primary / .ai-offer-card--primary).
   Tier 2: service, feature, blog, contact, FAQ cards.
   Tier 3: legal, cookies, privacy — calm readable surfaces (no sales glow).
   ========================================================================== */

/* Tier 3 — legal / privacy / AGB / impressum blocks */
.card.legal-block {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.card.legal-block[style*="1967d2"],
.card.legal-block[style*="border-left: 3px solid var(--green)"] {
  border-left: 1px solid var(--premium-line) !important;
}

.legal-title[style*="1967d2"],
h3.legal-title[style*="#1967d2"] {
  color: var(--text) !important;
}

/* Tier 2 — utility / contact / FAQ / blog intro (not money-page offers) */
.view-section:not(#dashboard):not(.seo-money-page):not(.ai-money-page):not(.solution-page) .card:not(.legal-block):not(.eng-feature-card):not(.seo-offer-card):not(.ai-offer-card):not(.check-card) {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
}

.card.blog-intro-card {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
}

/* Tier 1 support — soften non-primary money-page cards (no stacked heavy glow) */
.seo-money-page .card:not(.seo-offer-card--primary),
.ai-money-page .card:not(.ai-offer-card--primary) {
  box-shadow: var(--premium-card-shadow);
}

/* ==========================================================================
   PHASE C — Utility / blog / legal visual alignment (2026)
   Scope: contact, FAQ, blog, blog articles, legal and cookie pages.
   Keeps these pages calm/editorial; no money-page glow or new markup required.
   ========================================================================== */

/* Shared non-service page rhythm */
.section-intro.page-hero--subpage,
.blog-page-header.page-hero--subpage,
.blog-article-header.page-hero--subpage {
  position: relative;
  padding: clamp(20px, 3vw, 34px) clamp(2px, 1.6vw, 18px) clamp(18px, 2.6vw, 30px);
  margin-bottom: clamp(20px, 3vw, 34px);
  isolation: isolate;
}

.section-intro.page-hero--subpage::before,
.blog-page-header.page-hero--subpage::before,
.blog-article-header.page-hero--subpage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 20px;
  background:
    radial-gradient(circle at 10% 0%, color-mix(in srgb, var(--premium-copper) 6%, transparent), transparent 36%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 34%, transparent), transparent 76%);
  pointer-events: none;
}

.section-intro.page-hero--subpage .page-hero-title,
.blog-page-header .page-hero-title,
.blog-article-header .page-hero-title {
  max-width: min(34ch, 100%);
  line-height: 1.08;
}

.section-intro.page-hero--subpage .page-hero-lead,
.blog-page-header .page-hero-lead {
  max-width: 68ch;
}

/* Contact: premium support/conversion page, without loud sales treatment */
.contact-wrapper {
  gap: clamp(20px, 3vw, 34px);
}

.contact-wrapper > .card,
.contact-sidebar,
.contact-sidebar .card,
.card--padded {
  border-radius: 18px;
}

.contact-wrapper > .card,
.contact-sidebar .card,
.card--padded:not(.legal-block) {
  box-shadow: var(--premium-card-shadow);
}

.contact-wrapper input,
.contact-wrapper select,
.contact-wrapper textarea {
  border-radius: 12px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 96%, transparent), color-mix(in srgb, var(--bg-elev-2) 72%, transparent));
}

.contact-wrapper .check-label,
.file-upload-trigger {
  border-radius: 12px;
}

.contact-wrapper .form-promise {
  color: color-mix(in srgb, var(--premium-copper) 82%, var(--text));
}

.anchor-target[name="quick-brief"] {
  display: block;
  width: 0;
  height: 0;
  overflow: hidden;
  scroll-margin-top: calc(var(--topbar-h, 70px) + 24px);
}

.quick-optional-details {
  margin: 14px 0;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
}

.quick-optional-details summary {
  min-height: 48px;
  padding: 14px 16px;
  font-size: 13px;
  font-weight: 750;
}

.quick-optional-body {
  padding: 0 16px 16px;
}

@media (max-width: 900px) {
  #dashboard .hero-proof-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #dashboard .hero-proof-strip {
    grid-template-columns: 1fr;
  }

  #dashboard .hero-primary-cta,
  #dashboard .hero-secondary-cta {
    min-height: 50px;
  }

  .quick-optional-body {
    padding-inline: 14px;
  }
}

/* FAQ: clean knowledge-base treatment */
.faq-controls {
  padding: clamp(14px, 2vw, 20px);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
}

.faq-list {
  max-width: 920px;
  margin-inline: auto;
}

.faq-group {
  margin-bottom: clamp(22px, 3vw, 34px);
}

.faq-list details {
  border-radius: 14px;
  background: var(--bg-elev);
  box-shadow: var(--shadow-sm);
}

.faq-list details[open] {
  background: var(--premium-surface);
  box-shadow: var(--premium-card-shadow);
}

.faq-list summary {
  min-height: 52px;
  padding: 15px 18px;
  gap: 16px;
}

.faq-answer {
  color: color-mix(in srgb, var(--text) 88%, var(--muted));
  line-height: 1.72;
}

.faq-answer a[style*="var(--blue)"] {
  color: var(--premium-copper) !important;
}

/* Blog index: quieter premium editorial grid */
.blog-page-header.page-hero--subpage {
  max-width: 880px;
}

.blog-grid {
  gap: clamp(18px, 2.6vw, 28px);
}

.blog-card {
  min-height: 100%;
  border-radius: 18px;
  box-shadow: var(--premium-card-shadow);
}

.blog-card:hover {
  box-shadow: 0 10px 26px color-mix(in srgb, #0f172a 7%, transparent);
}

.blog-card-title {
  font-size: clamp(1.02rem, 1vw, 1.12rem);
}

.blog-card-excerpt {
  font-size: .86rem;
  line-height: 1.68;
}

.blog-card-tag,
.blog-card-cta,
.blog-article-tag,
.blog-back-link:hover {
  color: var(--premium-copper);
}

.blog-card-featured-badge {
  background: var(--premium-copper);
}

/* Blog article: premium technical insight, not raw CMS text */
.blog-article {
  max-width: 760px;
  padding-bottom: clamp(80px, 10vw, 140px);
}

.blog-article-header.page-hero--subpage {
  margin-bottom: clamp(26px, 4vw, 44px);
}

.blog-article-title {
  font-size: clamp(1.55rem, 3.2vw, 2.2rem);
  line-height: 1.12;
}

.blog-article-body {
  font-size: clamp(.98rem, 1vw, 1.04rem);
  line-height: 1.82;
}

.blog-article-body h2 {
  margin-top: clamp(34px, 5vw, 52px);
}

.blog-lead,
.blog-internallink {
  border-left: 1px solid var(--premium-line);
}

.blog-lead {
  background: color-mix(in srgb, var(--bg-elev-2) 42%, transparent);
  border-radius: 0 14px 14px 0;
  padding: 14px 18px;
}

.blog-cta-box {
  background: color-mix(in srgb, var(--premium-copper) 6%, var(--bg-elev));
  border-color: color-mix(in srgb, var(--premium-copper) 18%, var(--border));
  box-shadow: var(--shadow-sm);
}

/* Legal / trust: readable, calm and narrower than marketing pages */
.card.legal-block {
  max-width: 860px;
  margin: 0 auto clamp(16px, 2.4vw, 24px);
  padding: clamp(18px, 2.5vw, 26px);
  border-radius: 18px;
}

.legal-title {
  margin-bottom: 10px;
  color: var(--text);
}

.legal-text {
  max-width: 76ch;
  color: color-mix(in srgb, var(--text) 78%, var(--muted));
  line-height: 1.78;
  text-align: left;
}

.legal-text a {
  color: color-mix(in srgb, var(--premium-copper) 82%, var(--text));
  text-underline-offset: 3px;
}

.legal-text ul {
  padding-left: 18px;
}

.card.legal-block[style*="1967d2"],
.card.legal-block[style*="border-left: 3px solid var(--green)"] {
  border-left: 1px solid var(--premium-line) !important;
}

.card.legal-block h3[style*="1967d2"],
.card.legal-block .legal-title[style*="1967d2"] {
  color: var(--text) !important;
}

/* Cookies: tabular/legal utility page, calm but structured */
.cookie-consent-bar,
.cookie-section-blue {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.cookie-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--bg-elev);
}

.cookie-table th {
  background: color-mix(in srgb, var(--bg-elev-2) 84%, transparent);
}

@media (min-width: 981px) {
  .contact-wrapper {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .85fr);
  }
}

@media (max-width: 640px) {
  .section-intro.page-hero--subpage,
  .blog-page-header.page-hero--subpage,
  .blog-article-header.page-hero--subpage {
    padding: 20px 0 18px;
  }

  .faq-controls,
  .card.legal-block,
  .blog-card {
    border-radius: 14px;
  }

  .faq-list summary {
    min-height: 48px;
    padding: 14px 15px;
  }

  .faq-answer {
    padding: 0 15px 16px;
  }

  .blog-lead {
    padding: 12px 14px;
  }
}

/* ==========================================================================
   PHASE A.2 — V-404: cookie panel above compact footer (320–640px)
   Root cause: .consent-shell is position:fixed at bottom:0 while .main-footer
   sits in the flex column at the viewport foot — panel stacked on legal links.
   Fix: lift consent by footer clearance; cap height; internal scroll.
   ========================================================================== */
@media (max-width: 640px) {
  :root {
    --consent-footer-clearance: 88px;
  }

  .main-footer {
    flex-shrink: 0;
    position: relative;
    z-index: 1;
  }

  .consent-shell {
    bottom: calc(var(--consent-footer-clearance) + env(safe-area-inset-bottom, 0px));
    left: max(10px, env(safe-area-inset-left, 0px));
    right: max(10px, env(safe-area-inset-right, 0px));
    width: auto;
    max-width: none;
    border-radius: 12px;
    border-bottom: 1px solid var(--border);
    max-height: min(
      46dvh,
      calc(100dvh - var(--topbar-h, 70px) - var(--consent-footer-clearance) - 12px)
    );
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  /* Homepage sticky CTA (fixed bottom) — stack consent above it + footer */
  body.has-sticky-cta .consent-shell {
    bottom: calc(var(--consent-footer-clearance) + 76px + env(safe-area-inset-bottom, 0px));
    max-height: min(
      42dvh,
      calc(100dvh - var(--topbar-h, 70px) - var(--consent-footer-clearance) - 76px - 12px)
    );
  }

  .content {
    padding-bottom: max(120px, calc(96px + env(safe-area-inset-bottom, 0px)));
  }
}

@media (max-width: 640px) and (max-height: 740px) {
  .consent-shell {
    max-height: min(
      40dvh,
      calc(100dvh - var(--topbar-h, 70px) - var(--consent-footer-clearance) - 8px)
    );
  }

  body.has-sticky-cta .consent-shell {
    max-height: min(
      36dvh,
      calc(100dvh - var(--topbar-h, 70px) - var(--consent-footer-clearance) - 76px - 8px)
    );
  }
}

@media (max-width: 390px) {
  :root {
    --consent-footer-clearance: 96px;
  }

  .consent-header {
    padding: 10px 12px;
  }

  .consent-body {
    padding: 12px;
  }

  .consent-actions {
    padding: 0 12px 12px;
    gap: 8px;
  }

  .consent-btn {
    padding: 9px 8px;
    font-size: 10px;
  }
}

/* Visually-hidden helper if needed for SR-only context */
.sr-only:not(:focus):not(:active) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   PHASE D.1 — surgical pre-deploy visual corrections
   Scope: header gap, web hero badges, compact mobile footer, mobile chat shell.
   ========================================================================== */

.content {
  padding-top: 18px;
}

@media (min-width: 768px) {
  .content:has(> .solution-page) {
    padding-top: clamp(8px, 1.2vw, 14px);
  }

  .solution-page:not(#dashboard) {
    --service-hero-pad-top: clamp(14px, 1.8vw, 28px);
  }
}

.web-service-page .service-badges.page-hero-kicker {
  gap: 6px;
  margin-bottom: 8px;
}

.web-service-page .service-badges .pill {
  padding: 5px 10px;
  line-height: 1.2;
}

@media (max-width: 980px) {
  .content {
    padding-top: 8px;
  }

  body.view-mode-chat .main-footer {
    display: none !important;
  }

  .main:has(#glasbox_chat.active) .main-footer {
    display: none !important;
  }

  .content:has(#glasbox_chat.active) {
    padding-bottom: 0 !important;
  }

  .main:has(#glasbox_chat.active) {
    overflow: hidden !important;
  }

  body.view-mode-chat #glasbox_chat.view-section.active {
    min-height: 100dvh !important;
    padding-top: 0 !important;
  }

  #glasbox_chat.view-section.active {
    inset: 0 !important;
    z-index: 950 !important;
    height: 100dvh !important;
    min-height: 100dvh !important;
  }

  body.view-mode-chat #glasbox_chat:not(.chat-mode-active) .chat-header-wrapper {
    padding-top: calc(var(--topbar-h, 70px) + env(safe-area-inset-top, 0px) + 112px) !important;
  }

  body.view-mode-chat #glasbox_chat.chat-mode-active .chat-header-wrapper {
    padding-top: 0 !important;
  }

  #glasbox_chat .chat-shell {
    height: 100% !important;
    max-height: none !important;
  }

  #glasbox_chat .chat-form {
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
}

@media (max-width: 640px) {
  .main-footer {
    padding: 12px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  }

  .footer-bottom {
    width: 100%;
    gap: 6px;
  }

  .footer-legal {
    width: 100%;
    justify-content: space-evenly;
    gap: 6px 10px;
  }

  .footer-legal a {
    line-height: 1.4;
  }

  .footer-meta {
    width: 100%;
    margin-left: 0;
    justify-content: center;
  }

  .footer-copy {
    width: 100%;
    line-height: 1.45;
    text-align: center;
  }
}

/* ==========================================================================
   Header structural milk-glass fade layer
   - Bridges the sticky topbar into the content area
   - CSS-only; no layout geometry changes
   ========================================================================== */
.main {
  position: relative;
}

.main::before {
  content: "";
  position: absolute;
  top: calc(var(--topbar-h, 80px) + env(safe-area-inset-top, 0px));
  left: 0;
  right: 0;
  height: clamp(104px, 9vw, 136px);
  z-index: 90;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.56) 0%,
      rgba(255, 255, 255, 0.34) 36%,
      rgba(255, 255, 255, 0.14) 68%,
      rgba(255, 255, 255, 0) 100%
    ),
    radial-gradient(
      80% 120% at 50% 0%,
      rgba(255, 255, 255, 0.22) 0%,
      rgba(255, 255, 255, 0) 72%
    );
}

@media (max-width: 768px) {
  .main::before {
    top: calc(64px + env(safe-area-inset-top, 0px));
    height: 104px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.46) 0%,
        rgba(255, 255, 255, 0.28) 40%,
        rgba(255, 255, 255, 0.10) 72%,
        rgba(255, 255, 255, 0) 100%
      );
  }
}

html[data-theme="dark"] .main::before,
body.view-mode-chat .main::before,
.main:has(#glasbox_chat.active)::before {
  content: none;
}

/* ==========================================================================
   GlasBox milky glass capsule — top-right icon cluster only
   No full-width topbar slab. Legacy §5097 / §8434 gradients neutralized here.
   ========================================================================== */
.main::before {
  content: none;
}

.topbar,
.topbar.scrolled,
html[data-theme="light"] .topbar,
html[data-theme="light"] .topbar.scrolled,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar.scrolled {
  background: transparent !important;
  background-image: none !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  mask-image: none !important;
  -webkit-mask-image: none !important;
}

.topbar::before,
.topbar::after,
html[data-theme="light"] .topbar::before,
html[data-theme="light"] .topbar::after,
html[data-theme="dark"] .topbar::before,
html[data-theme="dark"] .topbar::after {
  display: none !important;
  content: none !important;
}

@media (min-width: 769px) {
  html[data-theme="light"] .topbar,
  html[data-theme="light"] .topbar.scrolled {
    background: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }

  html[data-theme="light"] .topbar::after {
    display: none !important;
    content: none !important;
  }
}

/* Milky glass pill behind theme + mail + chat */
.topbar-right {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.46)
  );
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(1.08);
  -webkit-backdrop-filter: blur(18px) saturate(1.08);
}

html[data-theme="dark"] .topbar-right {
  background: linear-gradient(
    135deg,
    rgba(28, 34, 44, 0.78),
    rgba(11, 15, 20, 0.54)
  );
  border-color: rgba(255, 255, 255, 0.10);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.topbar-right .icon-btn {
  background: rgba(255, 255, 255, 0.38);
  border-color: rgba(15, 23, 42, 0.06);
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.topbar-right .icon-btn:hover,
.topbar-right .icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.58);
  border-color: rgba(15, 23, 42, 0.11);
  color: var(--text);
}

html[data-theme="dark"] .topbar-right .icon-btn {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .topbar-right .icon-btn:hover,
html[data-theme="dark"] .topbar-right .icon-btn:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.14);
}

/* Desktop: floating cluster only (sidebar owns nav) */
@media (min-width: 981px) {
  .topbar,
  .topbar.scrolled,
  html[data-theme="light"] .topbar,
  html[data-theme="light"] .topbar.scrolled,
  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .topbar.scrolled {
    position: fixed;
    top: clamp(14px, 1.2vw, 22px);
    right: clamp(14px, 1.4vw, 24px);
    left: auto;
    width: auto;
    height: auto;
    min-height: 0;
    padding: 0;
    display: block;
    pointer-events: none;
    z-index: var(--z-topbar, 1000);
  }

  .topbar-left {
    display: none !important;
  }
}

/* Mobile/tablet: burger stays separate; icon cluster keeps capsule */
@media (max-width: 980px) {
  .topbar #burgerBtn {
    background: rgba(255, 255, 255, 0.64);
    border-color: rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(12px) saturate(1.05);
    -webkit-backdrop-filter: blur(12px) saturate(1.05);
  }

  html[data-theme="dark"] .topbar #burgerBtn {
    background: rgba(11, 15, 20, 0.52);
    border-color: rgba(255, 255, 255, 0.10);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
  }
}

@media (max-width: 430px) {
  .topbar-right {
    gap: 6px;
    padding: 5px;
  }

  .topbar-right .icon-btn {
    width: 36px;
    height: 36px;
  }
}

body.view-mode-chat .topbar,
body.view-mode-chat .topbar.scrolled {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.view-mode-chat .topbar::before,
body.view-mode-chat .topbar::after {
  display: none !important;
  content: none !important;
}

body.view-mode-chat .topbar {
  pointer-events: none;
}

body.view-mode-chat .topbar-right {
  pointer-events: auto;
}

/* ==========================================================================
   FINAL TOPBAR CAPSULE OVERRIDE — last cascade win (production hard fix)
   Kills full-width milk fade (.main::before) and legacy topbar pseudo bands.
   ========================================================================== */
.main::before,
.main::after {
  content: none !important;
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  background: none !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

.topbar,
.topbar.scrolled,
html[data-theme="light"] .topbar,
html[data-theme="light"] .topbar.scrolled,
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .topbar.scrolled,
body.view-mode-chat .topbar,
body.view-mode-chat .topbar.scrolled {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  border-bottom: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.topbar::before,
.topbar::after,
html[data-theme="light"] .topbar::before,
html[data-theme="light"] .topbar::after,
html[data-theme="dark"] .topbar::before,
html[data-theme="dark"] .topbar::after,
body.view-mode-chat .topbar::before,
body.view-mode-chat .topbar::after {
  content: none !important;
  display: none !important;
  opacity: 0 !important;
  height: 0 !important;
  background: none !important;
  background-image: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  pointer-events: none !important;
}

@media (max-width: 980px) {
  .topbar::before {
    opacity: 0 !important;
    background: none !important;
    background-image: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
}

.topbar-right {
  isolation: isolate;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(255, 255, 255, 0.56)
  ) !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  border-radius: 999px !important;
  box-shadow:
    0 20px 48px rgba(15, 23, 42, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: blur(20px) saturate(1.1) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.1) !important;
  pointer-events: auto !important;
}

html[data-theme="dark"] .topbar-right {
  background: linear-gradient(
    135deg,
    rgba(32, 40, 52, 0.86),
    rgba(11, 15, 20, 0.62)
  ) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  box-shadow:
    0 20px 48px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

.topbar-right .icon-btn {
  background: rgba(255, 255, 255, 0.45) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

html[data-theme="dark"] .topbar-right .icon-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* ==========================================================================
   FINAL MOBILE/TABLET TOPBAR FOOTPRINT FIX
   Removes full-width 64px sticky row from document flow (audit 2027).
   ========================================================================== */
@media (max-width: 980px) {
  .main {
    position: relative;
  }

  .topbar,
  .topbar.scrolled,
  html[data-theme="light"] .topbar,
  html[data-theme="light"] .topbar.scrolled,
  html[data-theme="dark"] .topbar,
  html[data-theme="dark"] .topbar.scrolled,
  body.view-mode-chat .topbar,
  body.view-mode-chat .topbar.scrolled {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    left: 12px !important;
    right: 12px !important;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    grid-template-columns: unset !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    border: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    pointer-events: none !important;
    z-index: var(--z-topbar, 1000) !important;
    isolation: isolate;
  }

  .topbar-left,
  .topbar-right {
    pointer-events: auto !important;
    position: static !important;
    transform: none !important;
  }

  .topbar-left {
    display: inline-flex !important;
    align-items: center !important;
    gap: 10px !important;
    justify-self: auto !important;
  }

  .topbar-right {
    justify-self: auto !important;
  }

  #burgerBtn,
  .burger-btn {
    position: relative !important;
    display: inline-flex !important;
    z-index: calc(var(--z-topbar, 1000) + 1);
  }

  .topbar-logo {
    display: flex !important;
  }

  .content {
    padding-top: calc(72px + env(safe-area-inset-top, 0px)) !important;
  }

  body.view-mode-chat .topbar {
    pointer-events: none !important;
  }

  body.view-mode-chat .topbar-left,
  body.view-mode-chat .topbar-right {
    pointer-events: auto !important;
  }
}

@media (max-width: 430px) {
  .topbar,
  .topbar.scrolled,
  html[data-theme="light"] .topbar,
  html[data-theme="dark"] .topbar {
    left: 10px !important;
    right: 10px !important;
  }

  .content {
    padding-top: calc(68px + env(safe-area-inset-top, 0px)) !important;
  }
}

/* ==========================================================================
   Projects & Systems proof-of-work page
   ========================================================================== */
.projects-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.projects-proof-strip {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
}

.projects-proof-strip-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.projects-proof-strip-list strong {
  color: var(--text);
  font-weight: 800;
}

.projects-proof-anchors {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

.projects-proof-anchors-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.projects-proof-anchor {
  display: inline-flex;
  align-items: center;
  padding: 6px 11px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--bg-elev-2) 70%, transparent);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.projects-proof-anchor:hover,
.projects-proof-anchor:focus-visible {
  border-color: color-mix(in srgb, var(--green) 28%, var(--border));
  color: var(--green);
}

.projects-inventory {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.projects-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-group-title {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  padding-bottom: 8px;
  border-bottom: 1px solid color-mix(in srgb, var(--border) 78%, transparent);
}

.projects-trust-panel {
  border-radius: 22px;
  padding: clamp(20px, 3vw, 28px);
}

.projects-trust-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.projects-trust-chips li {
  border-radius: 999px;
  padding: 7px 11px;
  font-size: 12px;
  font-weight: 700;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
}

.pill-compact {
  font-size: 11px;
  padding: 4px 8px;
}

.project-detail-label {
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.project-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
}

.projects-page .project-link {
  margin-top: 0;
}

.projects-page .project-card-details {
  background: color-mix(in srgb, var(--bg-elev-2) 42%, transparent);
}

.projects-page .project-card[open] .project-card-details {
  padding-top: 4px;
}

.projects-page .project-detail-note {
  font-size: 14px;
  line-height: 1.55;
  max-width: 62ch;
}

.project-status--live {
  color: color-mix(in srgb, var(--text) 78%, var(--green));
  background: color-mix(in srgb, var(--green) 12%, transparent);
  border-color: color-mix(in srgb, var(--green) 28%, transparent);
}

.projects-page .projects-section-head .data-label {
  display: none;
}

.projects-page .projects-ecosystem-core .project-logo {
  width: 128px;
  max-height: 40px;
}

.projects-page .project-card summary::after,
.projects-page .project-card-summary::after {
  content: none;
}

.projects-hero {
  margin-bottom: 4px;
}

.projects-section,
.projects-section-card,
.projects-promise-card,
.projects-ecosystem-card {
  position: relative;
}

.projects-section-head {
  margin-bottom: 16px;
}

.projects-section-head h2,
.projects-section-card h2,
.projects-promise-card h2,
.projects-ecosystem-card h2 {
  margin-bottom: 10px;
}

.projects-proof-grid,
.projects-featured-grid,
.projects-grid {
  display: grid;
  gap: 16px;
}

.projects-proof-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 18px;
}

.projects-proof-grid > div,
.project-card,
.projects-ecosystem-card {
  border: 1px solid color-mix(in srgb, var(--border) 84%, transparent);
  background: color-mix(in srgb, var(--bg-elev) 90%, transparent);
  box-shadow: var(--shadow-sm);
}

.projects-proof-grid > div {
  border-radius: 18px;
  padding: 18px;
}

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

.projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
}

.project-card {
  min-width: 0;
  border-radius: 22px;
  overflow: clip;
}

.project-card--featured {
  min-height: 100%;
}

.project-card[open] {
  box-shadow: var(--shadow-md);
}

.project-card p {
  margin: 0;
}

.project-pill-row,
.projects-check-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.project-card-summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  min-height: 0;
  padding: 18px;
  cursor: pointer;
  list-style: none;
}

.project-card-summary::-webkit-details-marker {
  display: none;
}

.project-card-summary:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--green) 34%, transparent);
  outline-offset: -3px;
}

.project-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-width: 120px;
  height: 64px;
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev-2) 62%, transparent);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
}

.project-logo {
  display: block;
  width: 112px;
  max-width: 100%;
  height: auto;
}

.project-card-main,
.project-summary-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.project-card-main strong {
  font-size: clamp(18px, 1.6vw, 22px);
  letter-spacing: -0.025em;
}

.project-short {
  color: var(--muted);
  line-height: 1.55;
}

.project-kicker,
.project-status,
.project-expand-label {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 11px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.project-kicker {
  color: var(--muted);
  text-transform: uppercase;
}

.project-status {
  width: max-content;
  max-width: 210px;
  padding: 6px 9px;
  color: color-mix(in srgb, var(--text) 76%, var(--green));
  background: color-mix(in srgb, var(--green) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 22%, transparent);
}

.project-status--planned,
.project-status--roadmap {
  color: color-mix(in srgb, var(--text) 76%, var(--amber));
  background: color-mix(in srgb, var(--amber) 10%, transparent);
  border-color: color-mix(in srgb, var(--amber) 22%, transparent);
}

.project-status--in-development,
.project-status--in-expansion,
.project-status--ecosystem {
  color: color-mix(in srgb, var(--text) 80%, #476bff);
  background: color-mix(in srgb, #476bff 9%, transparent);
  border-color: color-mix(in srgb, #476bff 18%, transparent);
}

.project-expand-label {
  position: relative;
  align-self: flex-end;
  padding: 7px 10px;
  color: var(--muted);
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev-2) 66%, transparent);
}

.project-expand-label::after {
  content: "+";
  margin-left: 7px;
  color: var(--green);
  font-weight: 900;
}

.project-card[open] .project-expand-label::after {
  content: "–";
}

.project-card-details {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 18px 18px;
  border-top: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
}

.project-card-details > p:first-child {
  padding-top: 16px;
}

.project-detail-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.project-detail-list li {
  color: var(--muted);
}

.project-detail-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: 16px;
}

.project-detail-columns strong {
  display: block;
  margin-bottom: 8px;
}

.project-link {
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin-top: auto;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
}

.project-link:hover,
.project-link:focus-visible {
  color: var(--text);
  text-decoration: underline;
}

.projects-ecosystem-card {
  border-radius: 24px;
  padding: clamp(22px, 3vw, 32px);
}

.projects-ecosystem-layout {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1fr);
  gap: clamp(18px, 3vw, 34px);
  align-items: center;
}

.projects-ecosystem-core {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.projects-ecosystem-core .project-logo {
  width: 160px;
}

.projects-ecosystem-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.project-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  border-radius: 16px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-elev-2) 70%, transparent);
  font-weight: 800;
  font-size: 12px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
}

.project-node-name {
  line-height: 1.2;
}

.project-node-domain {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.25;
}

.project-node:hover,
.project-node:focus-visible {
  border-color: color-mix(in srgb, var(--green) 26%, var(--border));
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 18%, transparent);
}

.projects-check-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.projects-check-list li {
  border-radius: 999px;
  padding: 8px 11px;
  background: color-mix(in srgb, var(--green) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--green) 20%, transparent);
  font-weight: 700;
}

.projects-final-cta {
  position: relative;
  border-radius: 28px;
  padding: clamp(26px, 4vw, 44px);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--bg-elev) 96%, transparent), color-mix(in srgb, var(--bg-elev-2) 86%, transparent));
  border: 1px solid color-mix(in srgb, var(--border-strong) 68%, transparent);
  box-shadow: var(--shadow-md);
}

.projects-final-cta h2 {
  margin-bottom: 10px;
}

.projects-final-cta p {
  max-width: 720px;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .projects-proof-grid,
  .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card-summary {
    grid-template-columns: 1fr;
  }

  .project-logo-wrap {
    width: 100%;
    justify-content: flex-start;
    padding-left: 12px;
  }

  .project-summary-meta {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
  }
}

@media (max-width: 760px) {
  .projects-proof-grid,
  .projects-featured-grid,
  .projects-grid {
    grid-template-columns: 1fr;
  }

  .project-card-summary {
    min-height: 0;
    padding: 16px;
  }

  .project-logo-wrap {
    height: 58px;
  }

  .project-detail-columns,
  .projects-ecosystem-layout {
    grid-template-columns: 1fr;
  }

  .projects-ecosystem-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-link {
    width: auto;
  }
}

/* ==========================================================================
   Projects & Systems UX recovery: stable compact cards
   ========================================================================== */
.projects-page .projects-featured-grid,
.projects-page .projects-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  align-items: stretch;
}

.projects-page .project-card {
  contain: layout paint;
}

.projects-page .project-card-summary {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  min-height: 0;
  height: 100%;
  padding: 20px;
  list-style: none;
  list-style-type: none;
}

.projects-page .project-card-summary::marker {
  content: "";
  font-size: 0;
}

.projects-page .project-card-summary::-webkit-details-marker {
  display: none;
}

.projects-page .project-logo-wrap {
  width: 100%;
  min-width: 0;
  height: 62px;
  box-sizing: border-box;
  justify-content: flex-start;
  padding: 0 12px;
}

.projects-page .project-logo {
  width: 128px;
  max-height: 42px;
  object-fit: contain;
  object-position: left center;
}

.projects-page .project-card-main {
  gap: 7px;
}

.projects-page .project-card-main strong {
  max-width: 100%;
  font-size: clamp(18px, 1.35vw, 21px);
  line-height: 1.12;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.projects-page .project-short {
  max-width: 58ch;
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: auto;
}

.projects-page .project-kicker {
  width: fit-content;
  max-width: 100%;
  white-space: normal;
}

.projects-page .project-pill-row {
  gap: 7px;
}

.projects-page .project-card-summary > .project-summary-meta {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-top: auto;
}

.projects-page .project-status {
  width: auto;
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}

.projects-page .project-expand-label {
  align-self: auto;
  margin-left: auto;
  white-space: nowrap;
}

.projects-page .project-card-details {
  padding: 0 20px 20px;
}

.projects-page .project-detail-columns {
  grid-template-columns: 1fr;
}

@media (min-width: 1500px) {
  .projects-page .projects-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .projects-page .projects-featured-grid,
  .projects-page .projects-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .projects-page .project-card-summary {
    padding: 16px;
  }

  .projects-page .project-logo-wrap {
    height: 56px;
  }

  .projects-page .project-summary-meta {
    align-items: flex-start;
  }

  .projects-page .project-expand-label {
    margin-left: 0;
  }
}

/* ==========================================================================
   Projects & Systems final enterprise proof command center
   ========================================================================== */
.projects-page .projects-focus-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--bg-elev-2) 72%, transparent);
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.projects-page .projects-focus-chip:hover,
.projects-page .projects-focus-chip:focus-visible {
  border-color: color-mix(in srgb, var(--green) 34%, var(--border));
  color: var(--green);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--green) 16%, transparent);
}

.projects-page .projects-command-center {
  display: grid;
  gap: 16px;
}

.projects-page .projects-command-layout {
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.4vw, 24px);
  align-items: stretch;
}

.projects-page .project-detail-wrap {
  order: 1;
  min-width: 0;
}

.projects-page .projects-selector-column {
  order: 2;
  display: grid;
  gap: 18px;
  min-width: 0;
}

.projects-page .projects-selector-group {
  display: grid;
  gap: 10px;
}

@media (min-width: 980px) {
  .projects-page .projects-command-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.72fr);
    gap: 24px;
    align-items: start;
  }

  .projects-page .project-detail-wrap {
    order: unset;
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 24px;
  }

  .projects-page .projects-selector-column {
    order: unset;
    grid-column: 1;
    grid-row: 1;
  }
}

.projects-page .project-selector-grid {
  display: grid;
  gap: 10px;
}

.projects-page .project-selector {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  width: 100%;
  min-width: 0;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 86%, transparent);
  border-radius: 18px;
  background: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: none;
}

.projects-page .project-selector:hover,
.projects-page .project-selector:focus-visible,
.projects-page .project-selector.is-active,
.projects-page .project-selector[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--green) 32%, var(--border));
  background: color-mix(in srgb, var(--bg-elev-2) 84%, transparent);
  outline: none;
}

.projects-page .project-selector.is-active,
.projects-page .project-selector[aria-pressed="true"] {
  box-shadow:
    inset 3px 0 0 color-mix(in srgb, var(--green) 72%, transparent),
    0 18px 42px color-mix(in srgb, #000 10%, transparent);
}

.projects-page .project-selector .project-logo-wrap {
  width: 92px;
  min-width: 0;
  height: 52px;
  padding: 0 10px;
  box-sizing: border-box;
  justify-content: flex-start;
  border-radius: 14px;
}

.projects-page .project-selector .project-logo {
  width: 76px;
  max-height: 30px;
  object-fit: contain;
  object-position: left center;
}

.projects-page .project-selector-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.projects-page .project-selector-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 7px 10px;
}

.projects-page .project-selector-head .project-selector-title,
.projects-page .project-selector-head .project-card-title {
  flex: 1 1 180px;
  min-width: 0;
  font-size: clamp(16px, 1.05vw, 18px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.projects-page .project-selector .project-short {
  max-width: 62ch;
  font-size: 13px;
  line-height: 1.45;
  color: var(--muted);
}

.projects-page .project-selector .project-pill-row {
  flex-wrap: wrap;
  gap: 6px;
}

.projects-page .project-selector .project-expand-label,
.projects-page .project-selector-footer {
  display: none;
}

.projects-page .project-detail-wrap {
  min-width: 0;
}

.projects-page .project-detail-stack {
  position: static;
}

.projects-page .project-detail-panel {
  display: grid;
  gap: 16px;
  min-height: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid color-mix(in srgb, var(--border-strong) 62%, transparent);
  border-radius: 26px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bg-elev) 96%, transparent), color-mix(in srgb, var(--bg-elev-2) 76%, transparent));
  box-shadow: var(--shadow-md);
}

.projects-page .project-detail-panel[hidden] {
  display: none;
}

.projects-page .project-detail-panel-head,
.projects-page .project-detail-head {
  display: grid;
  gap: 10px;
}

.projects-page .project-detail-head-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 16px;
}

.projects-page .project-detail-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  height: 52px;
  padding: 0 10px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-elev-2) 70%, transparent);
}

.projects-page .project-detail-head-text {
  display: grid;
  gap: 8px;
  min-width: 0;
  flex: 1 1 180px;
}

.projects-page .project-detail-panel-head h3,
.projects-page .project-detail-head h3 {
  margin: 0;
  font-size: clamp(24px, 2vw, 34px);
  letter-spacing: -0.045em;
}

.projects-page .project-detail-panel-head .project-status,
.projects-page .project-detail-head .project-status {
  justify-self: start;
}

.projects-page .project-proof-line {
  margin: 0;
  max-width: 66ch;
  color: var(--text);
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
}

.projects-page .project-proof-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.projects-page .project-proof-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.55;
}

.projects-page .project-proof-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--green) 72%, transparent);
}

.projects-page .project-detail-panel .project-link-row {
  padding-top: 4px;
}


@media (max-width: 700px) {
  .projects-page .project-selector {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 13px;
  }

  .projects-page .project-selector .project-logo-wrap,
  .projects-page .project-selector-logo {
    width: 100%;
    height: 46px;
  }

  .projects-page .project-selector .project-logo {
    width: 104px;
    max-height: 30px;
  }

  .projects-page .project-detail-panel {
    border-radius: 22px;
    padding: 18px;
  }

  .projects-page .projects-ecosystem-map {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 380px) {
  .projects-page .projects-ecosystem-map {
    grid-template-columns: 1fr;
  }
}