.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0);
  background: rgba(7, 9, 14, 0.72);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  border-bottom: 1px solid var(--hairline);
}
.bar {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  max-width: none;
  margin: 0;
  padding: 0.75rem max(var(--margin), calc((100% - var(--content-max)) / 2), env(safe-area-inset-left, 0));
}
.bar nav {
  display: flex;
  gap: var(--s-4);
  margin-left: auto;
}
.bar nav a {
  text-decoration: none;
  color: var(--text-dim);
  font-size: var(--fs-body);
  font-weight: 500;
  padding: 0.25rem 0;
  transition: color var(--dur-fast);
}
.bar nav a:hover {
  color: #fff;
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--brand);
  text-decoration: none;
  font-size: 1.125rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0.625rem 1.5rem;
  border-radius: var(--r-sm);
  border: 1px solid;
  border-image: linear-gradient(135deg, var(--primary), var(--secondary)) 1;
  background: var(--void);
  color: var(--chrome);
  font: 600 0.8125rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms var(--ease),
    box-shadow 200ms var(--ease),
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn:hover {
    color: #fff;
    background: #0b1620;
    box-shadow:
      inset 0 0 0 1px rgba(92, 225, 230, 0.45),
      0 10px 24px -12px rgba(0, 0, 0, 0.9);
  }
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  min-height: 2.5rem;
  padding: 0.5rem 1.125rem;
  font-size: 0.6875rem;
}
.btn-ghost {
  background: transparent;
  border-image: none;
  border-color: var(--line-strong);
}
@media (hover: hover) and (pointer: fine) {
  .btn-ghost:hover {
    background: #0b1620;
    border-color: var(--secondary);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.9);
  }
}
.actions {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
}
.site-footer {
  border-top: 1px solid var(--hairline);
  padding: var(--s-5) 0 calc(var(--s-5) + env(safe-area-inset-bottom, 0));
}
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  justify-content: space-between;
  align-items: flex-start;
}
.foot p {
  color: var(--text-mute);
  font-size: var(--fs-sm);
}
.foot nav {
  display: flex;
  gap: var(--s-4);
  flex-wrap: wrap;
}
.foot nav a {
  color: var(--text-dim);
  font-size: var(--fs-sm);
}
.foot nav a:hover {
  color: #fff;
}
@media (max-width: 1080px) {
  .bar nav {
    display: none;
  }
  .bar .btn {
    margin-left: auto;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.mark {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--line-strong);
}
.site-footer .brand {
  margin-bottom: var(--s-2);
}

/* cookie banner */
.consent {
  position: fixed;
  z-index: 80;
  left: max(var(--s-3), env(safe-area-inset-left, 0));
  right: max(var(--s-3), env(safe-area-inset-right, 0));
  bottom: max(var(--s-3), env(safe-area-inset-bottom, 0));
  max-width: 34rem;
  padding: var(--s-4);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(13, 17, 23, 0.92);
  backdrop-filter: blur(var(--blur));
  -webkit-backdrop-filter: blur(var(--blur));
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, 0.9);
}
.consent h2 {
  font-size: var(--fs-title);
  margin-bottom: var(--s-2);
}
.consent p {
  font-size: var(--fs-sm);
  color: var(--text-dim);
  line-height: 1.55;
}
.consent a {
  color: var(--brand);
}
.consent-actions {
  display: flex;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.consent-actions .btn {
  flex: 1;
  min-height: 2.5rem;
  padding-inline: 1rem;
  font-size: 0.6875rem;
}
.linklike {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: var(--fs-sm);
  color: var(--text-dim);
  text-decoration: underline;
  text-underline-offset: 0.25em;
  cursor: pointer;
}
.linklike:hover {
  color: #fff;
}

@media (prefers-reduced-motion: no-preference) {
  .consent {
    animation: rise 220ms var(--ease) both;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Phone menu */
.menu-btn {
  display: none;
}
@media (max-width: 1080px) {
  .site-header .bar {
    position: relative;
    flex-wrap: wrap;
    gap: var(--s-2);
  }
  .menu-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.5rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--r-sm);
    background: transparent;
    color: var(--chrome);
    font: 600 0.6875rem/1 var(--font-mono);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    cursor: pointer;
  }
  .menu-icon,
  .menu-icon::before,
  .menu-icon::after {
    display: block;
    width: 1rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition:
      transform 200ms var(--ease),
      opacity 150ms ease;
  }
  .menu-icon {
    position: relative;
  }
  .menu-icon::before,
  .menu-icon::after {
    content: '';
    position: absolute;
    left: 0;
  }
  .menu-icon::before {
    top: -5px;
  }
  .menu-icon::after {
    top: 5px;
  }
  .open .menu-icon {
    background: transparent;
  }
  .open .menu-icon::before {
    transform: translateY(5px) rotate(45deg);
  }
  .open .menu-icon::after {
    transform: translateY(-5px) rotate(-45deg);
  }
  .bar .btn-sm {
    margin-left: auto;
  }
  .site-header .bar.open nav {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 100%;
    margin: var(--s-2) 0 var(--s-1);
    order: 10;
    border-top: 1px solid var(--hairline);
  }
  .site-header .bar.open nav a {
    padding: 0.95rem 0.25rem;
    font-size: var(--fs-body-lg);
    border-bottom: 1px solid var(--hairline);
  }
  .bar nav a[aria-current='page'] {
    color: var(--brand);
  }
}
@media (max-width: 1080px) and (prefers-reduced-motion: no-preference) {
  .site-header .bar.open nav {
    animation: rise 200ms var(--ease) both;
  }
}
@media (max-width: 480px) {
  .site-header .bar > .btn-sm {
    display: none;
  }
  .menu-btn {
    margin-left: auto;
  }
}

/* ---------- AI chat assistant ---------- */
.has-chat .wa-fab {
  bottom: calc(max(1rem, env(safe-area-inset-bottom, 0)) + 4.25rem);
}
.chat-launcher {
  position: fixed;
  z-index: 75;
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0 1.15rem 0 1rem;
  border: 1px solid rgba(135, 212, 230, 0.5);
  border-radius: 99px;
  background: linear-gradient(135deg, #0c2230, #0d1117 70%);
  color: #fff;
  font: 700 0.9375rem/1 var(--font-body);
  cursor: pointer;
  box-shadow:
    0 12px 30px -10px rgba(56, 189, 248, 0.55),
    0 4px 12px rgba(0, 0, 0, 0.45);
  transition: transform 160ms var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  .chat-launcher:hover {
    transform: translateY(-2px);
  }
}
.chat-spark {
  width: 1.25rem;
  height: 1.25rem;
  background: conic-gradient(from 45deg, var(--brand), var(--primary), var(--secondary), var(--brand));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 7.4L22 11l-7.4 2.6L12 21l-2.6-7.4L2 11l7.4-2.6z'/%3E%3C/svg%3E")
    center/contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 1l2.6 7.4L22 11l-7.4 2.6L12 21l-2.6-7.4L2 11l7.4-2.6z'/%3E%3C/svg%3E")
    center/contain no-repeat;
}
.chat-open .chat-launcher,
.chat-open .wa-fab {
  display: none;
}
.chat-panel {
  position: fixed;
  z-index: 90;
  right: max(1rem, env(safe-area-inset-right, 0));
  bottom: max(1rem, env(safe-area-inset-bottom, 0));
  width: min(24rem, calc(100vw - 2rem));
  height: min(36rem, calc(100dvh - 2rem));
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  background: linear-gradient(180deg, #121a23, #0b1017);
  box-shadow:
    0 30px 70px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(56, 189, 248, 0.08);
  overflow: hidden;
}
.chat-panel[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .chat-panel:not([hidden]) {
    animation: rise 220ms var(--ease) both;
  }
}
@media (max-width: 480px) {
  .chat-panel {
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border: 0;
  }
}
.chat-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--hairline);
  background: rgba(7, 9, 14, 0.6);
}
.chat-head strong {
  display: block;
  font: 700 1rem/1.2 var(--font-display);
  color: #fff;
}
.chat-head span {
  font: 600 0.625rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}
.chat-close {
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--text-dim);
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
}
.chat-close:hover {
  color: #fff;
  border-color: var(--line-strong);
}
.chat-log {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  overscroll-behavior: contain;
}
.chat-notice {
  font-size: var(--fs-sm);
  color: var(--text-mute);
  padding: 0.7rem 0.8rem;
  border: 1px dashed var(--line);
  border-radius: var(--r-sm);
}
.chat-notice a,
.msg a,
.chat-foot a {
  color: var(--brand);
}
.msg {
  max-width: 86%;
  padding: 0.65rem 0.85rem;
  border-radius: 14px;
  font-size: var(--fs-body);
  line-height: 1.5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.msg.user {
  align-self: flex-end;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.32), rgba(92, 225, 230, 0.2));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.msg.assistant {
  align-self: flex-start;
  background: var(--membrane);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.msg.error {
  align-self: stretch;
  max-width: none;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #ffd5dc;
  font-size: var(--fs-sm);
}
.typing {
  display: flex;
  gap: 0.3rem;
  padding: 0.85rem;
}
.typing i {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--text-mute);
  animation: blink 1.2s ease-in-out infinite;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes blink {
  50% {
    opacity: 0.25;
  }
}
.chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.2rem;
}
.chip {
  padding: 0.5rem 0.75rem;
  border: 1px solid rgba(135, 212, 230, 0.35);
  border-radius: 99px;
  background: rgba(56, 189, 248, 0.06);
  color: var(--text);
  font: 500 var(--fs-sm)/1.2 var(--font-body);
  cursor: pointer;
  text-align: left;
}
.chip:hover {
  background: rgba(56, 189, 248, 0.14);
  color: #fff;
}
/* Tap-to-answer buttons under the assistant's newest reply */
.chat-replies {
  justify-content: flex-start;
}
.chat-replies .chip {
  min-height: 2.25rem;
}
/* Links in replies look like small buttons, so the next step is obvious */
.msg a.chat-link {
  display: inline-block;
  margin: 0.1rem 0;
  padding: 0.1rem 0.55rem;
  border: 1px solid rgba(135, 212, 230, 0.45);
  border-radius: 99px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.msg a.chat-link:hover,
.msg a.chat-link:focus-visible {
  background: rgba(135, 212, 230, 0.14);
}
.chat-form {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--hairline);
}
.chat-form textarea {
  flex: 1;
  resize: none;
  min-height: 2.75rem;
  max-height: 7.5rem;
  padding: 0.7rem 0.85rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--onyx);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
}
.chat-form textarea:focus {
  outline: 2px solid rgba(56, 189, 248, 0.35);
  border-color: var(--primary);
}
.chat-send {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: var(--r-sm);
  background: var(--primary);
  color: #001e2c;
  font: 700 1.2rem/1 var(--font-body);
  cursor: pointer;
}
.chat-send:disabled {
  opacity: 0.5;
  cursor: progress;
}
.chat-foot {
  padding: 0 0.9rem 0.75rem;
  font-size: var(--fs-sm);
  color: var(--text-mute);
}
@media (max-width: 480px) {
  .chat-launcher {
    width: 3.25rem;
    padding: 0;
    justify-content: center;
  }
  .chat-launcher span:last-child {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .chat-launcher .chat-spark {
    width: 1.4rem;
    height: 1.4rem;
  }
}

/* ---------- Icons ---------- */
.ico {
  width: 1.15em;
  height: 1.15em;
  flex: none;
  vertical-align: -0.2em;
}
.wa-icon {
  width: 1.35em;
  height: 1.35em;
  flex: none;
}
.call-icon {
  color: var(--brand);
}
.field label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.field label .ico {
  color: var(--brand);
  width: 1.1rem;
  height: 1.1rem;
}
.seg span {
  gap: 0.45rem;
}
.seg span .ico {
  width: 1.15rem;
  height: 1.15rem;
}
.seg input:checked + span .ico {
  color: var(--brand);
}
@media (max-width: 400px) {
  .seg span {
    flex-direction: column;
    gap: 0.25rem;
    font-size: var(--fs-sm);
  }
}
.card-title {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.card-ico {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0.4rem;
  border-radius: var(--r-sm);
  background: rgba(56, 189, 248, 0.1);
  box-shadow: inset 0 0 0 1px rgba(135, 212, 230, 0.3);
  color: var(--brand);
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.foot-col a .ico {
  color: var(--brand);
  width: 1rem;
  height: 1rem;
}
.foot-contact {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}
.foot-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.foot-contact a:hover {
  color: #fff;
}
.foot-contact .ico {
  color: var(--brand);
  width: 1.1rem;
  height: 1.1rem;
}
.wa-card .actions {
  gap: var(--s-2);
}

/* ---------- Icon set (assets/icons/icons.svg) ---------- */
.icon,
.ico,
.wa-icon,
.card-ico {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  vertical-align: -0.22em;
}
.icon.sm {
  width: 1em;
  height: 1em;
  vertical-align: -0.15em;
}
.btn .icon {
  width: 1.15rem;
  height: 1.15rem;
  margin-right: 0.5rem;
  vertical-align: 0;
}
.btn-ghost .icon {
  color: var(--brand);
}
.h-ico {
  width: 1.35rem;
  height: 1.35rem;
  margin-right: 0.55rem;
  color: var(--brand);
  vertical-align: -0.15em;
}
.contact-list {
  list-style: none;
  margin: var(--s-3) 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.contact-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text-dim);
  text-decoration: none;
  font-size: var(--fs-sm);
}
.contact-list a:hover {
  color: #fff;
}
.contact-list .icon {
  color: var(--brand);
  width: 1.1rem;
  height: 1.1rem;
}
.foot-col a .icon {
  color: var(--brand);
  width: 1rem;
  height: 1rem;
  margin-right: 0.1rem;
}
@media (min-width: 1081px) {
  .bar nav {
    gap: var(--s-3);
  }
}

/* ---------- Language switch (EN / SW) ---------- */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.75rem;
  min-height: 2.5rem;
  padding: 0 0.6rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--chrome);
  font: 600 0.75rem/1 var(--font-mono);
  letter-spacing: 0.12em;
  text-decoration: none;
  transition:
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.lang-switch:hover {
  color: #fff;
  border-color: var(--brand);
}

.lang-switch:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

@media (max-width: 1080px) {
  .site-header .bar > .lang-switch {
    margin-left: auto;
  }

  .site-header .bar > .lang-switch + .btn-sm {
    margin-left: 0;
  }
}

@media (max-width: 480px) {
  .site-header .bar > .lang-switch ~ .menu-btn {
    margin-left: 0;
  }

  /* keep logo, language and menu on one row on small phones */
  .site-header .bar > .lang-switch {
    min-width: 2.5rem;
    padding: 0 0.45rem;
  }

  .site-header .menu-btn {
    padding: 0.5rem 0.6rem;
    gap: 0.4rem;
  }
}

/* Very narrow phones: the menu button shows just its icon (the word stays for screen readers) */
@media (max-width: 380px) {
  .site-header .menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .site-header .menu-btn {
    min-width: 2.75rem;
    justify-content: center;
  }
}

@media (max-width: 340px) {
  .site-header .wordmark {
    font-size: 0.95rem;
    letter-spacing: 0.03em;
  }

  .site-header .bar {
    gap: 0.4rem;
  }
}

/* ---------- Header spacing (desktop): links spread out, a divider, then language and quote ---------- */
@media (min-width: 1081px) {
  .site-header .bar {
    gap: 0;
    min-height: 4.5rem;
    padding-block: 0.875rem;
  }

  .site-header .bar nav {
    align-items: center;
    gap: clamp(1.25rem, 1.9vw, 2.25rem);
    margin-left: auto;
    margin-right: clamp(1.25rem, 2vw, 2rem);
    padding-right: clamp(1.25rem, 2vw, 2rem);
    border-right: 1px solid var(--line);
  }

  .site-header .bar nav a {
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
    letter-spacing: 0.01em;
  }

  /* a thin line under the link you point at, and under the page you are on */
  .site-header .bar nav a::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0.15rem;
    height: 2px;
    border-radius: 1px;
    background: var(--brand);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--dur-fast) var(--ease);
  }

  .site-header .bar nav a:hover::after,
  .site-header .bar nav a[aria-current='page']::after {
    transform: scaleX(1);
  }

  .site-header .bar nav a[aria-current='page'] {
    color: #fff;
  }

  .site-header .bar > .lang-switch {
    min-height: 2.75rem;
    margin-right: 0.75rem;
  }

  .site-header .bar > .btn-sm {
    min-height: 2.75rem;
    padding-inline: 1.25rem;
    white-space: nowrap;
  }
}

/* Touch screens: text buttons like "Cookie settings" get a finger-sized tap area */
@media (pointer: coarse) {
  .linklike {
    min-height: 2.25rem;
    padding-block: 0.4rem;
  }
  input[type='checkbox'],
  input[type='radio'] {
    width: 1.25rem;
    height: 1.25rem;
  }
}
