@font-face {
  font-family: "ClashDisplayBold";
  src: url("assets/fonts/ClashDisplay-Bold.woff2");
}

/* === Theme variables === */
:root {
  --brand-primary: 166 90 241;
  --brand-bgStrong: 247 201 15;
  --brand-bgSoft: 255 253 252;
  --brand-text: 14 20 33;
  --color-border: #0e1421;
  --color-card-bg: #fffdfc;
  --color-card-hover-shadow: rgba(14, 20, 33, 0.14);
  --color-hero-accent: #F7C90F;
}

[data-theme="dark"] {
  --brand-primary: 192 132 252;
  --brand-bgStrong: 14 20 33;
  --brand-bgSoft: 21 29 43;
  --brand-text: 235 235 240;
  --color-border: #2a3a4a;
  --color-card-bg: #1a2535;
  --color-card-hover-shadow: rgba(0, 0, 0, 0.3);
  --color-hero-accent: #F7C90F;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'ClashDisplayBold', Courier, monospace
}


/* === General layout === */
body {
  margin: 0;
  font-family: "Clash Display", sans-serif;
  background: rgb(var(--brand-bgStrong));
  color: rgb(var(--brand-text));
  transition: background-color 0.3s ease, color 0.3s ease;
}

.slider-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0 5rem 0 3.25rem;
}

.slider-item:first-child {
  padding-left: 0;
}

.slider-item:not(:first-child)::before {
  content: "//";
  position: absolute;
  left: 0;
  transform: translateX(-60%);
  font-size: 0.85em;
  font-weight: 600;
  color: rgba(14, 20, 33, 0.55);
  line-height: 1;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  border: 2px solid #0e1421;
  border-radius: 9999px;
  background: #fffdfc;
  padding: 0.45rem 1.3rem;
  color: #0e1421;
  box-shadow: 0 8px 16px rgba(14, 20, 33, 0.08);
}


.system-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
}

@media (min-width: 768px) {
  .system-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.system-tile {
  border: 2px solid #0e1421;
  border-radius: 22px;
  background: #fffdfc;
  padding: 1.75rem;
  box-shadow: 0 16px 28px rgba(14, 20, 33, 0.12);
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.system-tile--primary {
  background: linear-gradient(135deg, #fffdfc 0%, #ffe98f 100%);
}

.system-heading {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.system-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  border: 2px solid #0e1421;
  background: #fff;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.system-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.system-meta span {
  border: 2px solid #0e1421;
  border-radius: 9999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  background: #fff;
}

.system-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
  line-height: 1.5;
}

.system-list li::before {
  content: "•";
  margin-right: 0.4rem;
}

.system-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.product-subline {
  display: block;
  font-size: 0.45em;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-top: 0.35rem;
}

.b2c-card {
  border: 2px solid #0e1421;
  border-radius: 22px;
  background: #fffdfc;
  padding: 1.75rem;
  box-shadow: 0 14px 26px rgba(14, 20, 33, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  position: relative;
}

.b2c-card--accent {
  background: linear-gradient(135deg, #fffdfc 0%, #ffe98f 100%);
}

.b2c-icon {
  font-size: 1.9rem;
  line-height: 1;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 2px solid #0e1421;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}

.b2c-icon img {
  display: block;
  width: 1.55rem;
  height: 1.55rem;
  object-fit: contain;
  transition: filter 0.3s ease, opacity 0.3s ease;
}

.b2c-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  opacity: 0.78;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.b2c-list li::before {
  content: "•";
  margin-right: 0.4rem;
}

.b2c-list li {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.nav-links {
  align-items: center;
  gap: 1.5rem;
}

/* Ensure hero and intro sections fill the full mobile viewport */
.hero-viewport {
  min-height: 100vh;
}

@supports (min-height: 100svh) {
  .hero-viewport {
    min-height: 100svh;
  }
}

@supports (min-height: 100dvh) {
  .hero-viewport {
    min-height: 100dvh;
  }
}

#intro {
  min-height: 100vh;
}

@supports (min-height: 100svh) {
  #intro {
    min-height: 100svh;
  }
}

@supports (min-height: 100dvh) {
  #intro {
    min-height: 100dvh;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  text-decoration: none;
  color: #0e1421;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: -0.35rem;
  height: 2px;
  background: #0e1421;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.nav-link:hover::after,
.nav-link:focus-visible::after {
  transform: scaleX(1);
}

/* --- Produkt-Aufklappmenue ------------------------------------------------
   Der Ausloeser ist ein <button>, kein Link: er fuehrt nirgendwohin, er
   oeffnet etwas. Er bekommt hier nur die Optik eines .nav-link zurueck, die
   der Browser einem Button nicht von selbst gibt. */
.nav-dropdown {
  position: relative;
}

.nav-dropdown__toggle {
  border: 0;
  background: transparent;
  padding: 0;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.nav-dropdown__chevron {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.2s ease;
}

.nav-dropdown.is-open .nav-dropdown__chevron {
  transform: rotate(180deg);
}

.nav-dropdown__menu {
  display: none;
  position: absolute;
  top: calc(100% + 0.9rem);
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  min-width: 11rem;
  flex-direction: column;
  gap: 0.15rem;
  border: 2px solid #0e1421;
  border-radius: 14px;
  background: #fffdfc;
  padding: 0.5rem;
  box-shadow: 4px 4px 0 #0e1421;
}

.nav-dropdown.is-open .nav-dropdown__menu {
  display: flex;
}

/* Der unsichtbare Streifen ueberbrueckt den Abstand zwischen Ausloeser und
   Menue. Ohne ihn schliesst das Menue, sobald der Zeiger die Luecke quert. */
.nav-dropdown__menu::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -0.9rem;
  height: 0.9rem;
}

.nav-dropdown__link {
  display: block;
  border-radius: 8px;
  padding: 0.45rem 0.7rem;
  font-weight: 600;
  text-decoration: none;
  color: #0e1421;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-dropdown__link:hover,
.nav-dropdown__link:focus-visible {
  background: #0e1421;
  color: #fffdfc;
}

/* --- Screenshot in der Case-Study-Vorschau -------------------------------- */
.case-shot {
  border: 2px solid #0e1421;
  border-radius: 22px;
  overflow: hidden;
  background: #fffdfc;
  margin: 0;
}

.case-shot img {
  display: block;
  width: 100%;
  height: auto;
}

/* Kennzahlenzeile: gleiche Optik wie die Fakten in der Case Study selbst. */
.case-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.case-facts li {
  border: 2px solid #0e1421;
  border-radius: 9999px;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #0e1421;
  border-radius: 9999px;
  padding: 0.45rem 0.6rem;
  background: transparent;
  color: #0e1421;
  transition: background 0.2s ease, color 0.2s ease;
}

.nav-toggle:hover,
.nav-toggle:focus-visible {
  background: #0e1421;
  color: #fffdfc;
}

.mobile-menu {
  border: 2px solid #0e1421;
  border-radius: 18px;
  background: #fffdfc;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.mobile-menu .nav-link {
  font-size: 1rem;
}

.mobile-menu__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.55;
}

.mobile-menu__sub {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-left: 0.85rem;
  border-left: 2px solid rgba(14, 20, 33, 0.18);
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.lang-switcher__link {
  border: 2px solid #0e1421;
  border-radius: 9999px;
  padding: 0.3rem 0.75rem;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: #0e1421;
  background: #fffdfc;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.lang-switcher__link:hover,
.lang-switcher__link:focus-visible {
  transform: translateY(-1px);
  background: #0e1421;
  color: #fffdfc;
}

.lang-switcher__link:focus-visible {
  outline: 3px solid rgba(14, 20, 33, 0.2);
  outline-offset: 2px;
}

.lang-switcher__link--active {
  background: #0e1421;
  color: #fffdfc;
}

.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 2px solid #0e1421;
  border-radius: 9999px;
  background-color: #0e1421;
  color: #fffdfc;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(14, 20, 33, 0.18);
}

.cta-link svg {
  stroke: currentColor;
}

.cta-link--outline {
  background-color: transparent;
  color: #0e1421;
}

.cta-link--outline:hover {
  background-color: #0e1421;
  color: #fffdfc;
}

.cta-link--light {
  background-color: #f7c90f;
  border-color: #f7c90f;
  color: #0e1421;
}

.cta-link--light:hover {
  background-color: #fffdfc;
  border-color: #fffdfc;
}

.form-card {
  border: 2px solid #0e1421;
  border-radius: 22px;
  background: #fffdfc;
  padding: 2.5rem;
  box-shadow: 0 18px 32px rgba(14, 20, 33, 0.14);
}

.form-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-weight: 600;
  font-size: 0.95rem;
}

.input-field,
.form-group select {
  border: 2px solid #0e1421;
  border-radius: 16px;
  background: #ffffff;
  color: #0e1421;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.input-field:focus,
.form-group select:focus {
  outline: none;
  border-color: #0e1421;
  box-shadow: 0 0 0 3px rgba(14, 20, 33, 0.1);
}

textarea.input-field {
  min-height: 160px;
  resize: vertical;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.checkbox-field input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.2rem;
}

.hero-header {
  display: flex;
  height: 100vh;
  background: #f7c90f;
  overflow: hidden;
}

/* === Diagonal boxes === */
.pattern-box {
  position: relative;
  flex-basis: 10%;
  overflow: hidden;
  background: #f7c90f;
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.pattern-row {
  position: static;
  left: auto;
  width: 220%;
  font-weight: 700;
  font-size: 4vw;
  line-height: 1.1;
  white-space: nowrap;
  letter-spacing: 0.05em;
  color: #0e1421;
  opacity: 1;
  transform: rotate(-50.64deg);
}

/* === Center content === */
.hero-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  background: #f7c90f;
  height: 100%;
}

.hero-top {
  flex: 7;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-bottom {
  flex: 2;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* === Chat white box === */
.white-box {
  width: 90%;
  height: 100%;
  background: #fffdfc;
  border: 3px solid #0e1421;
  border-radius: 0.75rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Chat header */
.chat-header {
  font-size: 1.5rem;
  font-weight: 700;
  text-align: left;
}

/* Chat messages */
.chat-messages {
  flex: 1;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 1rem;
}

.chat-profile {
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #0e1421;
}

.chat-bubble {
  background: #0e1421;
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 1rem;
  border-bottom-left-radius: 0.25rem;
  max-width: 70%;
  font-size: 0.95rem;
}

/* Chat buttons and input */
.chat-actions {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.chat-buttons {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-start;
}

.chat-buttons button {
  border: 2px solid #0e1421;
  border-radius: 9999px;
  padding: 0.5rem 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease;
}

.chat-buttons .demo-btn {
  background: #fffdfc;
  color: #0e1421;
}

.chat-buttons .contact-btn {
  background: #0e1421;
  color: #fff;
}

.chat-buttons button:hover {
  opacity: 0.8;
}

/* Input area */
.chat-input-area {
  display: flex;
  align-items: center;
  border: 2px solid #0e1421;
  border-radius: 9999px;
  overflow: hidden;
}

.chat-input-area input {
  flex: 1;
  border: none;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  outline: none;
  background: #fffdfc;
  color: #0e1421;
}

.chat-input-area button {
  background: #0e1421;
  color: #fffdfc;
  border: none;
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  border-left: 2px solid #0e1421;
}

/* === Marquee Section === */
.marquee {
  --speed: 28s;
  --gap: 3rem;
  overflow: hidden;
  position: relative;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: var(--gap);
  white-space: nowrap;
  will-change: transform;
  animation: marquee var(--speed) linear infinite;
}

.marquee:hover .marquee__track {
  animation-play-state: paused;
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track {
    animation: none;
  }
}

/* === Simple fade slider === */
.text-slider {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 180px;
  margin: 0 auto;
  overflow: hidden;
}

.text-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.7s ease-in-out;
}

input[name="slide-toggle"] {
  display: none;
}

/* active slide */
#t1:checked~.slides .text-slide:nth-child(1),
#t2:checked~.slides .text-slide:nth-child(2),
#t3:checked~.slides .text-slide:nth-child(3) {
  opacity: 1;
  transform: translateY(0);
}

/* Dots */
.dots {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.dots label {
  width: 12px;
  height: 12px;
  border-radius: 9999px;
  background-color: rgba(14, 20, 33, 0.2);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#t1:checked~.dots label[for="t1"],
#t2:checked~.dots label[for="t2"],
#t3:checked~.dots label[for="t3"] {
  background-color: #0e1421;
}


/* In: main.css */

[data-chat-frame] > df-messenger {
  display: block;
  width: 100%;
  flex: 1 1 auto;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.site-chat-shell {
  position: fixed;
  right: 1.25rem;
  bottom: var(--site-chat-offset, 1.25rem);
  z-index: 70;
  width: 68px;
  height: 68px;
  pointer-events: none;
}

.site-chat-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border: 2px solid #0e1421;
  border-radius: 999px;
  background: #0e1421;
  box-shadow: 0 20px 40px rgba(14, 20, 33, 0.18);
  cursor: pointer;
  pointer-events: auto;
  transition: transform 0.18s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}

.site-chat-toggle:hover,
.site-chat-toggle:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 24px 44px rgba(14, 20, 33, 0.22);
}

.site-chat-toggle:focus-visible {
  outline: 3px solid rgba(14, 20, 33, 0.18);
  outline-offset: 2px;
}

.site-chat-toggle img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.site-chat-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 0.75rem);
  width: min(380px, calc(100vw - 2rem));
  height: min(620px, 72vh);
  border-radius: 24px;
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transform-origin: bottom right;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.site-chat-shell--open .site-chat-panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

[data-site-chat] {
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #0e1421;
  border-radius: 24px;
  background: #fffdfc;
  box-shadow: 0 12px 24px rgba(14, 20, 33, 0.12);
}

[data-chat-frame] {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  overflow: hidden;
  min-height: 0;
}

.demo-layout {
  display: grid;
  gap: 2rem;
  align-items: start;
}

.demo-layout > :first-child {
  order: 2;
}

.demo-layout > :last-child {
  order: 1;
}

.demo-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.9rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: #fffdfc;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-intro-list {
  display: grid;
  gap: 0.75rem;
}

.demo-intro-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  border-bottom: 1px solid rgba(14, 20, 33, 0.12);
  padding-bottom: 0.75rem;
}

.demo-intro-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.demo-intro-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2rem;
  width: 2rem;
  height: 2rem;
  border: 2px solid var(--color-border);
  border-radius: 999px;
  background: #fffdfc;
  font-size: 0.78rem;
  font-weight: 800;
}

.demo-intro-copy strong {
  display: block;
  font-size: 0.98rem;
}

.demo-intro-copy p {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0.82;
}

.demo-intro-note {
  border: 2px solid var(--color-border);
  border-radius: 22px;
  background: rgba(255, 253, 252, 0.82);
  padding: 1rem 1.1rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.demo-shell {
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-border);
  border-radius: 30px;
  padding: 1rem;
  background: linear-gradient(180deg, #fff4bf 0%, #fffdfc 34%, #ffe68c 100%);
  box-shadow: 0 20px 40px rgba(14, 20, 33, 0.12);
}

.demo-shell::before {
  content: "";
  position: absolute;
  inset: auto -10% 54% 46%;
  height: 220px;
  background: radial-gradient(circle, rgba(247, 201, 15, 0.28), transparent 70%);
  pointer-events: none;
}

.demo-shell > * {
  position: relative;
}

.demo-shell__header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
}

.demo-shell__eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.7;
}

.demo-shell__copy {
  margin-top: 0.75rem;
  max-width: 42rem;
  font-size: 0.95rem;
  line-height: 1.6;
  opacity: 0.82;
}

.demo-status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border: 2px solid var(--color-border);
  background: #fffdfc;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-status::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.16);
}

.demo-chat-stage {
  margin-top: 1rem;
  border: 1px solid rgba(14, 20, 33, 0.12);
  border-radius: 24px;
  background: #fffdfc;
  padding: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: clamp(420px, 50vh, 560px);
  max-height: 50vh;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(14, 20, 33, 0.08);
}

.demo-chat-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.demo-chat-meta__item {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(14, 20, 33, 0.06);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-quick-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0;
}

.chat-quick-prompt {
  border: 2px solid #0e1421;
  background: #fffdfc;
  color: #0e1421;
  border-radius: 999px;
  padding: 0.4rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 0 rgba(14, 20, 33, 0.08);
  transition: all 0.2s ease;
}

.chat-quick-prompt:hover,
.chat-quick-prompt:focus-visible {
  background: #0e1421;
  color: #fffdfc;
  transform: translateY(-1px);
}

.chat-quick-prompt:focus-visible {
  outline: 3px solid #18213a;
  outline-offset: 2px;
}

/* === Offering cards === */
.offering-card {
  border: 2px solid var(--color-border);
  border-radius: 22px;
  background: var(--color-card-bg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.offering-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 28px var(--color-card-hover-shadow);
}

.offering-card--hero {
  background: linear-gradient(135deg, #fffdfc 0%, #ffe98f 100%);
  grid-column: 1 / -1;
}

[data-theme="dark"] .offering-card--hero {
  background: linear-gradient(135deg, #1a2535 0%, #2a3020 100%);
}

@media (min-width: 768px) {
  .offering-card--hero {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .demo-layout {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  }

  .demo-layout > :first-child {
    order: 1;
  }

  .demo-layout > :last-child {
    order: 2;
  }
}

@media (max-width: 767px) {
  .demo-shell,
  .demo-chat-stage {
    padding: 0.9rem;
  }

  .demo-chat-stage {
    height: min(56vh, 480px);
    max-height: 56vh;
  }

  .demo-intro-list {
    gap: 0.65rem;
  }

  .demo-intro-item {
    gap: 0.7rem;
  }

  .site-chat-shell {
    right: 0.75rem;
    width: 60px;
    height: 60px;
  }

  .site-chat-panel {
    width: min(380px, calc(100vw - 1.5rem));
    height: min(68vh, 520px);
    border-radius: 22px;
  }

  .site-chat-toggle {
    width: 60px;
    height: 60px;
  }

  .site-chat-toggle img {
    width: 30px;
    height: 30px;
  }
}

/* === Dark mode overrides === */
[data-theme="dark"] .border-black {
  border-color: var(--color-border);
}

[data-theme="dark"] .border-b-2.border-black,
[data-theme="dark"] .border-t-2.border-black,
[data-theme="dark"] .border-y-2.border-black {
  border-color: var(--color-border);
}

[data-theme="dark"] .text-black {
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .bg-white,
[data-theme="dark"] .bg-white\/95 {
  background-color: var(--color-card-bg);
}

[data-theme="dark"] .bg-white\/70 {
  background-color: rgba(26, 37, 53, 0.9);
}

[data-theme="dark"] .demo-pill,
[data-theme="dark"] .demo-intro-index,
[data-theme="dark"] .demo-status,
[data-theme="dark"] .demo-chat-stage {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .demo-intro-item {
  border-bottom-color: rgba(235, 235, 240, 0.14);
}

[data-theme="dark"] .demo-intro-note {
  background: rgba(26, 37, 53, 0.84);
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .demo-shell {
  background: linear-gradient(180deg, #152033 0%, #1a2535 42%, #202a1e 100%);
  border-color: var(--color-border);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
}

[data-theme="dark"] .demo-shell::before {
  background: radial-gradient(circle, rgba(247, 201, 15, 0.12), transparent 70%);
}

[data-theme="dark"] .demo-chat-meta__item {
  background: rgba(235, 235, 240, 0.08);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] [data-site-chat] {
  background: #1a2535;
  border-color: var(--color-border);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
}

[data-theme="dark"] .site-chat-toggle {
  background: #f7c90f;
  border-color: rgba(235, 235, 240, 0.14);
}

[data-theme="dark"] .site-chat-toggle:focus-visible {
  outline-color: rgba(247, 201, 15, 0.26);
}

[data-theme="dark"] .system-step {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .system-tile {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .system-tile--primary {
  background: linear-gradient(135deg, #1a2535 0%, #2a3020 100%);
}

[data-theme="dark"] .confidence-pill {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .system-meta span {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .b2c-card {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .b2c-card--accent {
  background: linear-gradient(135deg, #1a2535 0%, #2a3020 100%);
}

[data-theme="dark"] .b2c-icon {
  background: #152033;
  border-color: var(--color-border);
}

[data-theme="dark"] .b2c-icon img {
  filter: brightness(0) saturate(100%) invert(92%) sepia(7%) saturate(163%) hue-rotate(183deg) brightness(101%) contrast(96%);
}

[data-theme="dark"] .nav-link {
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .nav-link::after {
  background: rgb(var(--brand-text));
}

[data-theme="dark"] .case-shot {
  border-color: var(--color-border);
  background: var(--color-card-bg);
}

[data-theme="dark"] .case-facts li {
  border-color: var(--color-border);
}

[data-theme="dark"] .nav-dropdown__menu {
  background: var(--color-card-bg);
  border-color: var(--color-border);
  box-shadow: 4px 4px 0 var(--color-border);
}

[data-theme="dark"] .nav-dropdown__link {
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .nav-dropdown__link:hover,
[data-theme="dark"] .nav-dropdown__link:focus-visible {
  background: rgb(var(--brand-text));
  color: rgb(var(--brand-bgStrong));
}

[data-theme="dark"] .mobile-menu__sub {
  border-left-color: var(--color-border);
}

[data-theme="dark"] .nav-toggle {
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .nav-toggle:hover,
[data-theme="dark"] .nav-toggle:focus-visible {
  background: rgb(var(--brand-text));
  color: rgb(var(--brand-bgStrong));
}

[data-theme="dark"] .mobile-menu {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .lang-switcher__link {
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
  background: var(--color-card-bg);
}

[data-theme="dark"] .lang-switcher__link:hover,
[data-theme="dark"] .lang-switcher__link:focus-visible {
  background: rgb(var(--brand-text));
  color: rgb(var(--brand-bgStrong));
}

[data-theme="dark"] .lang-switcher__link--active {
  background: rgb(var(--brand-text));
  color: rgb(var(--brand-bgStrong));
}

[data-theme="dark"] .chat-quick-prompt {
  border-color: var(--color-border);
  background: rgba(21, 29, 43, 0.92);
  color: rgb(var(--brand-text));
  box-shadow: none;
}

[data-theme="dark"] .chat-quick-prompt:hover,
[data-theme="dark"] .chat-quick-prompt:focus-visible {
  background: #F7C90F;
  border-color: #F7C90F;
  color: #0e1421;
}

[data-theme="dark"] .cta-link {
  background-color: #F7C90F;
  border-color: #F7C90F;
  color: #0e1421;
}

[data-theme="dark"] .cta-link--outline {
  background-color: transparent;
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .cta-link--outline:hover {
  background-color: #F7C90F;
  border-color: #F7C90F;
  color: #0e1421;
}

[data-theme="dark"] .form-card {
  background: var(--color-card-bg);
  border-color: var(--color-border);
}

[data-theme="dark"] .input-field,
[data-theme="dark"] .form-group select {
  background: #0e1421;
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .pattern-box {
  background: rgb(var(--brand-bgStrong));
}

[data-theme="dark"] .pattern-row {
  color: #1e2a3a;
}

/* Dark mode logo inversion */
[data-theme="dark"] footer img[alt="Outcept logo"],
[data-theme="dark"] nav img[alt="Outcept logo"] {
  filter: brightness(0) invert(1);
}

/* Theme toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
  border: 2px solid var(--color-border);
  border-radius: 9999px;
  background: transparent;
  color: rgb(var(--brand-text));
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.theme-toggle:hover {
  transform: translateY(-1px);
}

.theme-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
}

.theme-toggle .icon-moon { display: none; }
.theme-toggle .icon-sun { display: block; }

[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }

/* === Hero shapes visual === */
.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 2.5;
}

[data-theme="dark"] .hero-shapes {
  opacity: 1;
}

[data-theme="dark"] .cookie-banner {
  background: #1a2535;
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .cookie-banner__button {
  background: #1a2535;
  border-color: var(--color-border);
  color: rgb(var(--brand-text));
}

[data-theme="dark"] .cookie-banner__button--primary {
  background: #F7C90F;
  color: #0e1421;
}

/* === Cookie banner === */
.cookie-banner {
  position: fixed;
  right: 1.25rem;
  bottom: var(--cookie-banner-offset, 1.25rem);
  width: min(360px, calc(100% - 1.5rem));
  display: none;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem 1.05rem;
  border: 2px solid #0e1421;
  border-radius: 16px;
  background: #fffdfc;
  box-shadow: 0 12px 26px rgba(14, 20, 33, 0.16);
  z-index: 60;
}

.cookie-banner--visible {
  display: flex;
}

.cookie-banner-visible footer {
  padding-right: min(24rem, calc(100vw - 2rem));
}

.cookie-banner__text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cookie-banner__title {
  margin: 0;
  font-family: 'ClashDisplayBold', 'Epilogue', sans-serif;
  font-size: 1rem;
  letter-spacing: 0.01em;
}

.cookie-banner__copy {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.45;
}

.cookie-banner__link {
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
}

.cookie-banner__link:hover,
.cookie-banner__link:focus-visible {
  text-decoration-thickness: 2px;
}

.cookie-banner__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.cookie-banner__button {
  flex: 1 1 120px;
  border: 2px solid #0e1421;
  border-radius: 12px;
  background: #fffdfc;
  color: #0e1421;
  padding: 0.55rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cookie-banner__button:hover,
.cookie-banner__button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(14, 20, 33, 0.14);
}

.cookie-banner__button:focus-visible {
  outline: 3px solid rgba(14, 20, 33, 0.18);
  outline-offset: 2px;
}

.cookie-banner__button--primary {
  background: #f7c90f;
}

@media (max-width: 640px) {
  .cookie-banner-visible .hero-viewport__content {
    justify-content: flex-start;
    padding-top: 3.5rem;
    padding-bottom: 12rem;
  }

  .cookie-banner-visible footer {
    padding-right: 2rem;
    padding-bottom: 9rem;
  }

  .cookie-banner {
    left: 0.75rem;
    right: 0.75rem;
    bottom: max(var(--cookie-banner-offset, 0.75rem), env(safe-area-inset-bottom));
    width: auto;
    gap: 0.55rem;
    padding: 0.8rem 0.85rem;
    border-radius: 14px;
  }

  .cookie-banner__title {
    display: none;
  }

  .cookie-banner__copy {
    font-size: 0.84rem;
    line-height: 1.35;
  }

  .cookie-banner__actions {
    flex-wrap: nowrap;
    gap: 0.45rem;
  }

  .cookie-banner__button {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.7rem;
    font-size: 0.9rem;
  }
}
