@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-600.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-700.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-800.ttf") format("truetype");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-400.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("/fonts/ibm-plex-mono-500.ttf") format("truetype");
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  background: #0d120f;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  scroll-behavior: smooth;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: #0d120f;
}

body {
  color: #f4f0e6;
  font-family: "Archivo", ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: #173f35;
  text-decoration: none;
}

button:not(:disabled),
a[href] {
  cursor: pointer;
}

[hidden] {
  display: none !important;
}

summary::-webkit-details-marker {
  display: none;
}

:focus-visible {
  outline: 3px solid #c8933d;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 12px 16px;
  border-radius: 10px;
  background: #f4f0e6;
  color: #151817;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 150ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

[data-problem-grid] {
  grid-template-columns: minmax(0, 1fr) !important;
}

[data-menu-toggle] {
  display: grid !important;
}

[data-desktop-nav],
[data-header-cta],
[data-hero-aside] {
  display: none !important;
}

[data-mobile-nav] button,
[data-start-link],
[data-demo-link] {
  touch-action: manipulation;
}

[data-target-choice][aria-pressed="true"],
[data-miles-choice][aria-pressed="true"] {
  border-color: #c8933d !important;
  background: rgba(200, 147, 61, 0.12) !important;
  color: #f4f0e6 !important;
}

@keyframes kwBar {
  0%,
  100% { transform: scaleY(0.28); }
  50% { transform: scaleY(1); }
}

@keyframes kwPulse {
  0%,
  100% { opacity: 1; }
  50% { opacity: 0.35; }
}

@media (min-width: 768px) {
  [data-problem-grid] {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 940px) {
  [data-menu-toggle],
  [data-mobile-nav] {
    display: none !important;
  }

  [data-desktop-nav] {
    display: flex !important;
  }

  [data-header-cta] {
    display: flex !important;
  }

  [data-hero-aside] {
    display: grid !important;
  }
}

@media (min-width: 1280px) {
  [data-problem-grid] {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 520px) {
  h1,
  h2,
  h3,
  p {
    overflow-wrap: anywhere;
  }

  [data-sticky-cta] {
    padding-bottom: max(10px, env(safe-area-inset-bottom)) !important;
  }
}

@media (hover: hover) {
  button:hover,
  a:hover {
    filter: brightness(1.08);
  }
}

@media (prefers-reduced-motion: reduce) {
  :root {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
