/* ============ THEME ============ */
/*
Color system:
--primary  = brand orange → process, borders, CTAs, default card accents
--amber    = warm amber   → decisions / CHECK labels (adjacent, not same)
--green    = semantic     → OUTPUT / success only (universal convention)
--red      = semantic     → errors / fallbacks only (universal convention)
Warm neutrals everywhere else. No decorative color.
*/
:root {
  --font-head: 'Oswald', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Warm neutrals — bakedwith.com clean/airy feel, slightly warm-toned */
  --bg: #FAF8F5;
  --surface: #FFFFFF;
  --surface2: #F3EDE6;
  --border: rgba(60, 30, 10, 0.07);
  --border-bright: rgba(60, 30, 10, 0.13);
  --text: #1C1410;
  /* warm near-black */
  --text-dim: #6E5C50;
  /* warm mid-gray */
  --text-dimmer: #AA927E;
  /* warm light-gray */

  /* Brand orange — primary action, process, borders */
  --primary: #E55225;
  --primary-bg: rgba(229, 82, 37, 0.07);
  --primary-mid: rgba(229, 82, 37, 0.18);

  /* Amber — decision / CHECK only. Adjacent to orange, distinct enough */
  --amber: #C47A1A;
  --amber-bg: rgba(196, 122, 26, 0.08);
  --amber-mid: rgba(196, 122, 26, 0.18);

  /* Green — semantic success / OUTPUT only */
  --green: #1A9963;
  --green-bg: rgba(26, 153, 99, 0.08);

  /* Red — semantic error / FEHLER only */
  --red: #D63B2A;
  --red-bg: rgba(214, 59, 42, 0.08);
  --red-mid: rgba(214, 59, 42, 0.15);

  --shadow-sm: 0 1px 3px rgba(60, 30, 10, 0.07), 0 1px 2px rgba(60, 30, 10, 0.04);
  --shadow-md: 0 4px 14px rgba(60, 30, 10, 0.07), 0 2px 4px rgba(60, 30, 10, 0.04);
  --shadow-lg: 0 8px 36px rgba(60, 30, 10, 0.10), 0 4px 8px rgba(60, 30, 10, 0.05);
}

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

body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(100, 50, 15, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100, 50, 15, 0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ============ ANIMATIONS ============ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}

.anim {
  animation: fadeUp 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.d1 {
  animation-delay: 0.06s;
}

.d2 {
  animation-delay: 0.12s;
}

.d3 {
  animation-delay: 0.18s;
}

.d4 {
  animation-delay: 0.24s;
}

.d5 {
  animation-delay: 0.30s;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}

/* ============ PAGE / LAYOUT ============ */
.page {
  max-width: 1024px;
  margin: 0 auto;
  padding: 0 28px 88px;
}

section {
  margin-bottom: 76px;
}

.section-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--text-dimmer);
}

h2 {
  font-family: var(--font-head);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.6px;
  color: var(--text);
  margin-bottom: 24px;
  line-height: 1.15;
}

/* ============ HERO ============ */
.hero {
  padding: 88px 0 18px;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid var(--primary-mid);
  border-radius: 100px;
  padding: 5px 14px;
  margin-bottom: 22px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  animation: pulse 2.2s ease-in-out infinite;
}

.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(38px, 6.5vw, 62px);
  font-weight: 800;
  letter-spacing: -2.5px;
  line-height: 1.02;
  color: var(--text);
  margin-bottom: 22px;
  /* max-width: 720px; */
  text-wrap: balance;
}

.hero h1 em {
  font-style: normal;
  color: var(--primary);
}

.hero-sub {
  font-size: 17px;
  color: var(--text-dim);
  line-height: 1.68;
  /* max-width: 520px; */
  margin-bottom: 38px;
}

.tech-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tech-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 9px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.tech-chip-icon {
  width: 20px;
  height: 20px;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.tc-ff .tech-chip-icon {
  background: none;
  color: white;
}

.tc-crm .tech-chip-icon {
  background: none;
  color: white;
  font-size: 10px;
}

.tc-gm .tech-chip-icon {
  background: none;
  color: white;
}

.chip-sep {
  color: var(--text-dimmer);
  font-size: 12px;
  margin-left: 2px;
}

.hero-divider {
  margin-top: 68px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-bright) 20%, var(--border-bright) 80%, transparent);
}

/* ============ KONTEXT GRID ============ */
.kontext-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.kontext-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 26px 28px;
  box-shadow: var(--shadow-sm);
}

.kontext-card h3 {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}

.kontext-card ul {
  list-style: none;
}

.kontext-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
  line-height: 1.55;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}

.kontext-card ul li:last-child {
  border-bottom: none;
}

.kontext-card ul li::before {
  content: '→';
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  font-size: 13px;
}

.goal-card {
  background: var(--primary-bg);
  border-color: var(--primary-mid);
}

.goal-highlight {
  background: var(--surface);
  border: 1px solid var(--primary-mid);
  border-radius: 9px;
  padding: 14px 16px;
  margin-top: 18px;
  font-size: 13px;
  color: var(--primary);
  line-height: 1.6;
}

.goal-highlight strong {
  display: block;
  margin-bottom: 4px;
  font-weight: 700;
  font-family: var(--font-head);
}

/* ============ STEPS GRID ============ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.step-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  /* background: var(--primary); */
}

.step-card.sc-green::before {
  /* background: var(--green); */
}

.step-card.sc-red::before {
  /* background: var(--red); */
}

.step-card.sc-amber::before {
  background: var(--amber);
}

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

.step-num {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--text-dimmer);
  letter-spacing: 0.06em;
  margin-bottom: 5px;
}

.step-title {
  font-family: var(--font-head);
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 13px;
  line-height: 1.25;
}

.step-io {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.step-io-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.sio-label {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 2px;
  letter-spacing: 0.04em;
}

.l-in {
  background: var(--primary-bg);
  color: var(--primary);
}

.l-out {
  background: var(--green-bg);
  color: var(--green);
}

.l-dec {
  background: var(--amber-bg);
  color: var(--amber);
}

.l-err {
  background: var(--red-bg);
  color: var(--red);
}

.sio-text {
  color: var(--text-dim);
}

/* ============ MERMAID CONTAINER ============ */
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mermaid-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 36px 20px 28px;
  box-shadow: var(--shadow-md);
  overflow: auto;
  min-height: 180px;
  cursor: default;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.mermaid-wrap::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.mermaid-wrap::-webkit-scrollbar-track {
  background: transparent;
}

.mermaid-wrap::-webkit-scrollbar-thumb {
  background: var(--border-bright);
  border-radius: 3px;
}

.mermaid-wrap .mermaid {
  display: flex;
  justify-content: center;
  transition: transform 0.18s ease;
  transform-origin: top center;
  min-width: 0;
}

.zoom-controls {
  position: absolute;
  top: 10px;
  right: 10px;
  display: flex;
  gap: 2px;
  z-index: 10;
  background: var(--surface);
  border: 1px solid var(--border-bright);
  border-radius: 7px;
  padding: 2px;
  box-shadow: var(--shadow-sm);
}

.zoom-controls button {
  width: 29px;
  height: 29px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 15px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s, color 0.12s;
}

.zoom-controls button:hover {
  background: var(--surface2);
  color: var(--text);
}

.mermaid-wrap.is-zoomed {
  cursor: grab;
}

.mermaid-wrap.is-panning {
  cursor: grabbing;
  user-select: none;
}

.chart-legend {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.chart-legend2 {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  flex-shrink: 0;
}

/* ============ GMAIL MOCKUP ============ */
.gmail-wrap {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-bright);
  background: #F2F6FC;
  font-family: 'DM Sans', 'Google Sans', Arial, sans-serif;
}

.gm-topbar {
  background: #F2F6FC;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #E0E0E0;
  justify-content: space-between;
}

.gm-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.gm-logo svg {
  width: 36px;
  height: 27px;
  display: block;
}

.gm-logo .g {
  color: #4285F4;
}

.gm-logo .m {
  color: #EA4335;
}

.gm-logo .a {
  color: #FBBC04;
}

.gm-logo .i {
  color: #4285F4;
}

.gm-logo .l {
  color: #34A853;
}

.gm-searchbar {
  flex: 1;
  background: #EAF0FB;
  border: none;
  border-radius: 24px;
  padding: 8px 18px;
  font-size: 13px;
  color: #3C4043;
  max-width: 500px;
  outline: none;
  pointer-events: none;
}

.gm-avatar {
  width: 30px;
  height: 30px;
  background: #1E3A8A;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.gm-body {
  display: grid;
  grid-template-columns: 225px 1fr;
  min-height: 620px;
}

/* Sidebar */
.gm-sidebar {
  background: #F2F6FC;
  padding: 10px 0 10px 8px;
  border-right: 1px solid #E0E0E0;
}

.gm-compose-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #C2E7FF;
  border-radius: 18px;
  padding: 14px 20px 14px 14px;
  margin: 0 8px 12px 0;
  font-size: 13px;
  font-weight: 600;
  color: #001D35;
  cursor: default;
  user-select: none;
}

.gm-compose-btn-circle {
  width: 22px;
  height: 22px;
  background: #001D35;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #C2E7FF;
  font-size: 16px;
  line-height: 1;
  flex-shrink: 0;
}

.gm-nav {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 7px 14px 7px 12px;
  border-radius: 0 20px 20px 0;
  font-size: 13px;
  color: #444746;
  cursor: default;
  margin-right: 8px;
  transition: background 0.12s;
}

.gm-nav:hover {
  background: rgba(0, 0, 0, 0.055);
}

.gm-nav.active {
  background: #D3E3FD;
  font-weight: 700;
  color: #001D35;
}

.gm-nav-bar {
  width: 18px;
  height: 7px;
  background: #9AA0A6;
  border-radius: 2px;
  flex-shrink: 0;
}

.gm-nav-bar.blue {
  background: #1A73E8;
}

.gm-divider-line {
  height: 1px;
  background: #E0E0E0;
  margin: 8px 8px 8px 0;
}

.gm-nav-count {
  margin-left: auto;
  font-size: 12px;
  font-weight: 700;
}

/* Main area */
.gm-main {
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

.gm-list-tabs {
  padding: 0 16px;
  border-bottom: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  gap: 0;
}

.gm-tab {
  font-size: 12.5px;
  color: #5F6368;
  padding: 10px 12px;
  border-bottom: 2.5px solid transparent;
  cursor: default;
  white-space: nowrap;
}

.gm-tab.active {
  color: #1A73E8;
  border-bottom-color: #1A73E8;
  font-weight: 600;
}

/* Email rows */
.gm-row {
  display: flex;
  align-items: center;
  padding: 9px 16px;
  border-bottom: 1px solid #F1F3F4;
  font-size: 13px;
  gap: 12px;
  cursor: default;
  transition: background 0.1s;
}

.gm-row:hover {
  background: #F1F3F4;
}

.gm-row.unread {
  font-weight: 700;
}

.gm-row-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid #9AA0A6;
  border-radius: 3px;
  flex-shrink: 0;
}

.gm-row-check.checked {
  background: #E8F0FE;
  border-color: #1A73E8;
}

.gm-sender {
  width: 130px;
  flex-shrink: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3C4043;
}

.gm-subject {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #3C4043;
}

.gm-snippet {
  color: #5F6368;
  font-weight: 400;
}

.gm-date {
  width: 50px;
  flex-shrink: 0;
  text-align: right;
  color: #5F6368;
  font-size: 12px;
  font-weight: 400;
}

.gm-badge {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  background: #1E3A8A;
  color: white;
  margin-right: 5px;
  flex-shrink: 0;
}

/* ── Compose window ── */
.gm-compose {
  position: absolute;
  bottom: 0;
  right: 20px;
  width: 450px;
  background: #FFFFFF;
  border-radius: 9px 9px 0 0;
  box-shadow: 0 8px 48px rgba(0, 0, 0, 0.24), 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
  z-index: 20;
}

.compose-hdr {
  background: #404040;
  color: white;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.compose-hdr-actions {
  display: flex;
  gap: 10px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 17px;
  line-height: 1;
}

.compose-field {
  display: flex;
  align-items: center;
  border-bottom: 1px solid #E0E0E0;
  padding: 6px 14px;
  font-size: 13px;
  gap: 8px;
}

.cf-label {
  color: #5F6368;
  flex-shrink: 0;
  min-width: 46px;
  font-size: 12.5px;
}

.cf-val {
  color: #3C4043;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compose-body {
  padding: 12px 14px;
  font-size: 13px;
  color: #3C4043;
  line-height: 1.7;
  min-height: 220px;
  max-height: 300px;
  overflow-y: auto;
}

.compose-body ul {
  padding-left: 18px;
  margin: 5px 0;
}

.compose-body li {
  margin-bottom: 3px;
}

.compose-toolbar {
  padding: 8px 14px;
  border-top: 1px solid #E0E0E0;
  display: flex;
  align-items: center;
  gap: 14px;
}

.compose-send {
  background: #1A73E8;
  color: white;
  border: none;
  border-radius: 22px;
  padding: 7px 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: 'DM Sans', sans-serif;
}

@keyframes send-hint-pulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

.send-hint {
  margin-left: 6px;
  font-size: 12px;
  color: var(--primary);
  font-family: 'DM Sans', sans-serif;
  animation: send-hint-pulse 2s ease-in-out infinite;
  cursor: default;
  user-select: none;
}

.tb-icon {
  width: 18px;
  height: 12px;
  background: #9AA0A6;
  border-radius: 2px;
  opacity: 0.55;
}

/* Dynamic field chips */
.fd {
  display: inline;
  background: #FEF9C3;
  color: #713F12;
  border: 1px solid #FDE047;
  border-radius: 4px;
  padding: 1px 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  white-space: nowrap;
}

.fd-blue {
  background: #DBEAFE;
  color: #1E3A8A;
  border-color: #93C5FD;
}

.fd-red {
  background: #FEE2E2;
  color: #991B1B;
  border-color: #FCA5A5;
}

/* Field legend */
.field-legend {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  font-size: 12px;
}

.fl-item {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--text-dim);
}

.fl-chip {
  height: 16px;
  padding: 0 7px;
  border-radius: 3px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
}

/* ============ DESIGN DECISION CARDS ============ */
.decisions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.dd-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 22px 24px;
  box-shadow: var(--shadow-sm);
}

.dd-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  margin-bottom: 12px;
}

.dd-card h3 {
  font-family: var(--font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.dd-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

.dd-card ul {
  list-style: none;
  margin-top: 9px;
}

.dd-card ul li {
  font-size: 12.5px;
  color: var(--text-dim);
  padding: 3px 0 3px 14px;
  position: relative;
  line-height: 1.5;
}

.dd-card ul li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: var(--primary);
  font-weight: 900;
  font-size: 16px;
  line-height: 1.1;
}

/* ============ NEXT STEPS ============ */
.ns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  list-style: none;
}

.ns-grid li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 11px;
  padding: 17px 20px;
  font-size: 13.5px;
  color: var(--text);
  display: flex;
  align-items: flex-start;
  gap: 11px;
  box-shadow: var(--shadow-sm);
  line-height: 1.55;
}

.ns-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-bg);
  min-width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============ NEXT STEPS CTA BANNER ============ */
.ns-cta-block {
  margin-top: 28px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary-bg) 0%, var(--surface) 100%);
  border: 1px solid var(--primary-mid);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  position: relative;
}

.ns-cta-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--primary);
  border-radius: 14px 0 0 14px;
}

.ns-cta-inner {
  padding: 28px 32px 28px 38px;
}

.ns-cta-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 7px;
}

.ns-cta-headline {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.2;
}

.ns-cta-body {
  font-size: 13.5px;
  color: var(--text-dim);
  line-height: 1.7;
  max-width: 620px;
  margin-bottom: 22px;
}

.ns-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 11px 26px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  box-shadow: 0 3px 12px rgba(229, 82, 37, 0.28);
}

.ns-cta-btn:hover {
  opacity: 0.92;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(229, 82, 37, 0.38);
}

.ns-cta-btn:active {
  transform: translateY(0);
  opacity: 1;
}

/* ============ FOOTER ============ */

footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 0;
  margin-top: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-dimmer);
  font-family: var(--font-mono);
}

/* ============ MERMAID OVERRIDES ============ */
.mermaid .nodeLabel {
  font-family: var(--font-body) !important;
  font-size: 13px !important;
}

.mermaid .edgeLabel {
  font-family: var(--font-mono) !important;
  font-size: 11px !important;
}

.mermaid .node rect,
.mermaid .node polygon,
.mermaid .node circle {
  stroke-width: 1.5px !important;
}

/* ============ ABOUT MODAL ============ */
.about-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.about-modal.is-open {
  display: flex;
}

.about-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 10, 5, 0.45);
  backdrop-filter: blur(3px);
}

.about-modal-dialog {
  position: relative;
  background: var(--surface);
  border-radius: 18px;
  padding: 24px 26px 22px;
  border: 1px solid var(--border-bright);
  box-shadow: var(--shadow-lg);
  max-width: 420px;
  width: min(90vw, 420px);
  font-size: 14px;
}

.about-modal-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dimmer);
  margin-bottom: 6px;
}

.about-modal-title {
  font-family: var(--font-head);
  font-size: 19px;
  margin-bottom: 10px;
  letter-spacing: -0.4px;
}

.about-modal-text {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
  margin-bottom: 10px;
}

.about-modal-list {
  margin: 6px 0 12px 18px;
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.5;
}

.about-modal-list li {
  margin-bottom: 4px;
}

.about-modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: none;
  background: transparent;
  color: var(--text-dimmer);
  font-size: 16px;
  cursor: pointer;
}

.about-modal-close:hover {
  color: var(--text);
}

.about-modal-cta {
  display: block;
  width: 100%;
  margin-top: 18px;
  padding: 11px 20px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: opacity 0.15s, transform 0.15s;
}

.footer-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

.about-modal-cta2 {
  display: inline-block;
  padding: 4px 10px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: -0.1px;
  transition: opacity 0.15s, transform 0.15s;
  white-space: nowrap;
  vertical-align: middle;
}

.about-modal-cta:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .page {
    padding: 0 16px 60px;
  }

  .hero {
    padding: 52px 0 24px;
  }

  .hero h1 {
    letter-spacing: -1.8px;
  }

  .kontext-grid,
  .steps-grid,
  .decisions-grid,
  .ns-grid {
    grid-template-columns: 1fr;
  }

  .gm-body {
    grid-template-columns: 1fr;
  }

  .gm-sidebar {
    display: none;
  }

  .gm-compose {
    position: static;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
  }

  footer {
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

