:root {
  color-scheme: dark;
  --bg: #143f2c;
  --surface: #ffffff;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.72);
  --line: rgba(255, 255, 255, 0.22);
  --soft: rgba(79, 190, 122, 0.14);
  --shadow: 0 14px 34px rgba(8, 42, 27, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 0;
}

.brand,
.site-nav,
.hero-actions,
.chat-topbar,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
}

.brand img {
  display: block;
  width: 148px;
  height: auto;
}

.site-nav {
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
}

.site-nav a:hover {
  color: var(--ink);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin: 4px auto;
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  align-items: center;
  gap: 48px;
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - 212px);
  margin: 0 auto;
  padding: 42px 0 72px;
}

.persona-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 520px;
}

.persona-bubble {
  position: absolute;
  top: 34px;
  right: 0;
  z-index: 1;
  max-width: 310px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #365f50;
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
  box-shadow: none;
}

.persona-bubble .typing-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(6px);
}

.persona-bubble.is-typing .typing-word {
  animation: word-in 0.36s ease forwards;
}

.persona-bubble::after {
  content: "";
  position: absolute;
  right: 218px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  border-radius: 0 0 3px 0;
  background: #365f50;
  transform: rotate(45deg);
}

@keyframes word-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.persona-stage svg {
  display: block;
  width: min(100%, 430px);
  height: auto;
  overflow: visible;
  cursor: pointer;
  filter: none;
}

#persona-mark {
  filter: none;
}

.persona-bg {
  fill: var(--bg);
}

.persona-fill {
  fill: var(--surface);
}

#left-eye,
#right-eye,
#right-eye-wink,
#mustache {
  transform-box: fill-box;
  transform-origin: center;
  will-change: transform, opacity;
}

#right-eye-wink {
  opacity: 0;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--surface);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 820px;
  margin: 0;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 0.95;
  letter-spacing: 0;
}

.intro {
  max-width: 610px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.7;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-weight: 700;
}

.button.primary {
  border-color: #16a646;
  background: #16a646;
  color: var(--surface);
}

.button.primary:hover {
  background: #1fc456;
  border-color: #1fc456;
  opacity: 1;
}

.button.secondary:hover {
  background: var(--soft);
}

.demo-section {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  align-items: start;
  gap: 64px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 26px 0 42px;
}

.demo-chat-column {
  display: grid;
  gap: 22px;
}

.chat-preview {
  min-height: 520px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.chat-preview .message {
  opacity: 0;
  transform: translateY(12px);
}

.chat-preview.is-visible .message {
  animation: chat-in 0.5s ease forwards;
}

.chat-preview.is-visible .message:nth-child(2) {
  animation-delay: 0.25s;
}

.chat-preview.is-visible .message:nth-child(3) {
  animation-delay: 0.85s;
}

.chat-preview.is-visible .message:nth-child(4) {
  animation-delay: 1.45s;
}

@keyframes chat-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.demo-copy h2 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
}

.demo-copy p:not(.eyebrow) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.chat-topbar {
  justify-content: space-between;
  padding: 4px 2px 22px;
  color: var(--muted);
  font-size: 14px;
}

.chat-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--surface);
  font-size: 18px;
  font-weight: 700;
}

.chat-brand img {
  display: block;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: contain;
}

.message {
  width: fit-content;
  max-width: 86%;
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: 8px;
  line-height: 1.55;
}

.message.bot {
  background: rgba(255, 255, 255, 0.12);
}

.message.user {
  margin-left: auto;
  background: var(--surface);
  color: var(--bg);
}

.chat-input {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin-top: 52px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.chat-placeholder,
.chat-send {
  display: flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.chat-placeholder {
  width: 100%;
  padding: 0 14px;
  background: transparent;
  color: var(--surface);
}

.chat-send {
  padding: 0 14px;
  border-color: #16a646;
  background: #16a646;
  color: var(--surface);
  font-weight: 700;
  user-select: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  border: 1px solid var(--line);
  background: var(--line);
}

.features article {
  min-height: 220px;
  padding: 28px;
  background: var(--bg);
}

.features span {
  color: var(--surface);
  font-size: 40px;
  font-weight: 800;
}

.features h2 {
  margin: 52px 0 12px;
  font-size: 22px;
}

.features p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-section {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 48px 0;
}

.faq-intro {
  max-width: 740px;
  margin: 0 auto 34px;
  text-align: center;
}

.faq-intro h2 {
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
}

.faq-list {
  display: grid;
  width: 100%;
}

.faq-list details {
  border-top: 1px solid var(--line);
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 0;
  color: var(--surface);
  font-weight: 700;
  line-height: 1.35;
}

.faq-list summary::marker {
  color: var(--muted);
}

.faq-list p {
  margin: 0;
  padding: 0 0 20px;
  color: var(--muted);
  line-height: 1.7;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  align-items: center;
  gap: 56px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto 72px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.contact-copy h2 {
  max-width: 660px;
  margin: 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.05;
}

.contact-copy p:not(.eyebrow) {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.contact-panel {
  display: grid;
  gap: 18px;
  align-content: center;
  justify-items: start;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.contact-panel p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.legal-page {
  width: min(860px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.legal-page h1 {
  font-size: clamp(48px, 7vw, 86px);
}

.legal-content {
  display: grid;
  gap: 26px;
  margin-top: 58px;
}

.legal-content h2 {
  margin: 0 0 10px;
  font-size: clamp(26px, 3vw, 36px);
}

.legal-content p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

#biskoui-cookie-policy table {
  width: 100%;
  margin: 28px 0;
  border: 1px solid rgba(48, 46, 108, 0.16);
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  background: var(--surface);
  table-layout: fixed;
  overflow: hidden;
}

#biskoui-cookie-policy th,
#biskoui-cookie-policy td {
  padding: 16px;
  border-bottom: 1px solid rgba(48, 46, 108, 0.12);
  overflow-wrap: anywhere;
  text-align: left;
  vertical-align: top;
}

#biskoui-cookie-policy th {
  background: var(--bg);
  border-bottom-color: rgba(255, 255, 255, 0.7);
  color: var(--surface);
  font-size: 14px;
  font-weight: 600;
}

#biskoui-cookie-policy td {
  background: #1f5d3d;
  color: var(--surface);
  font-size: 14px;
  line-height: 1.55;
}

#biskoui-cookie-policy td a {
  color: var(--surface);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

#biskoui-cookie-policy tr:last-child td {
  border-bottom: 0;
}

#biskoui-cookie-policy [data-language-switcher] select {
  min-width: 128px;
  border: 1px solid rgba(255, 255, 255, 0.32) !important;
  border-radius: 8px !important;
  background-color: #1f5d3d !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23fff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
  color: var(--surface);
  line-height: 1.2;
  box-shadow: none;
}

#biskoui-cookie-policy [data-language-switcher] select:focus-visible {
  outline: 2px solid var(--surface);
  outline-offset: 3px;
}

#biskoui-cookie-policy [data-language-switcher] option {
  background: var(--surface);
  color: var(--bg);
}

.ia-badge-link {
  display: inline-flex;
  margin-top: 34px;
}

.ia-badge-link img {
  display: block;
  width: 152px;
  height: auto;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: 28px 24px 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand {
  display: grid;
  gap: 14px;
  max-width: 310px;
}

.footer-brand img {
  display: block;
  width: 128px;
  height: auto;
}

.footer-brand p {
  margin: 0;
}

.footer-brand p {
  line-height: 1.55;
}

.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
}

.footer-legal-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  margin-top: 18px;
  margin-bottom: -40px;
  padding: 20px 0;
  background: #0c2f1f;
  box-shadow: -50vw 0 #0c2f1f, 50vw 0 #0c2f1f;
}

.footer-legal-row span {
  margin: 0;
}

.footer-badge {
  justify-self: center;
}

.swiss-made-link {
  display: inline-flex;
  align-items: center;
}

.swiss-made-link img {
  display: block;
  width: 102px;
  height: auto;
}

.footer-contact {
  display: grid;
  justify-self: end;
  gap: 8px;
  text-align: right;
}

.footer-contact address {
  font-style: normal;
}

.footer-contact {
  justify-self: end;
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 82px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: min(260px, calc(100% - 40px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    gap: 40px;
    padding-top: 0;
    padding-bottom: 22px;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: calc(100svh - 110px);
    padding-top: 24px;
  }

  .persona-stage {
    min-height: 335px;
    padding-top: 118px;
  }

  .persona-bubble {
    top: 20px;
    right: 50%;
    width: min(100%, 360px);
    max-width: 360px;
    padding: 16px 18px;
    font-size: 16px;
    opacity: 0;
    transform: translateX(50%) translateY(14px);
    transition: opacity 0.42s ease, transform 0.42s ease;
  }

  .persona-stage.bubble-visible .persona-bubble {
    opacity: 1;
    transform: translateX(50%) translateY(0);
  }

  .persona-stage svg {
    width: min(88%, 335px);
  }

  .persona-bubble::after {
    right: 50%;
    transform: translateX(50%) rotate(45deg);
  }

  .demo-section {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .demo-copy {
    order: 1;
  }

  .demo-chat-column {
    order: 2;
  }

  .chat-preview {
    min-height: auto;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features article {
    min-height: 190px;
  }

  .faq-section {
    padding: 38px 0;
  }

  .faq-intro {
    text-align: left;
  }

  .contact-section {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 28px;
  }

  .contact-panel {
    padding: 0;
    border: 0;
    background: transparent;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
    text-align: left;
  }

  .footer-badge,
  .footer-contact {
    justify-self: start;
    text-align: left;
  }

  .footer-contact {
    gap: 8px;
  }

  .footer-legal-row {
    align-items: flex-start;
  }

  .footer-legal {
    justify-content: flex-start;
  }
}

@media (max-width: 520px) {
  .site-header,
  .hero,
  .demo-section,
  .features,
  .faq-section,
  .contact-section,
  .legal-page,
  .site-footer {
    width: min(100% - 28px, 1120px);
  }

  h1 {
    font-size: 42px;
  }

  #biskoui-cookie-policy th,
  #biskoui-cookie-policy td {
    padding: 12px;
    font-size: 13px;
  }

  .chat-input {
    grid-template-columns: 1fr;
  }
}
