@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-400.ttf') format('truetype');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-500.ttf') format('truetype');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-600.ttf') format('truetype');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-700.ttf') format('truetype');
}

@font-face {
  font-family: 'Hanken Grotesk';
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url('assets/fonts/hanken-grotesk-800.ttf') format('truetype');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('assets/fonts/roboto-latin-300-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/roboto-latin-700-normal.woff2') format('woff2');
}

html { min-width:275px; scroll-behavior:smooth; }
  body { margin:0; min-width:275px; background:#fff; }
  * { box-sizing:border-box; }
  section { scroll-margin-top:82px; }
  details > summary { list-style:none; cursor:pointer; }
  details > summary::-webkit-details-marker { display:none; }
  details[open] .faq-chev { transform:rotate(180deg); }
  .faq-chev { transition:transform .2s ease; }
  .nav-link { color:#5C6B7A; text-decoration:none; transition:color .15s ease; }
  .nav-link:hover { color:#1a5dab; }
  .btn-primary { transition:transform .12s ease, box-shadow .12s ease; }
  .btn-primary:hover { transform:translateY(-1px); box-shadow:0 10px 24px rgba(26,93,171,.34); }

.page {
  font-family: 'Hanken Grotesk', system-ui, sans-serif;
  color: #16263A;
  background: #fff;
  overflow-x: clip;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

img {
  max-width: 100%;
}

.brand-wordmark {
  color: #1867C0;
  font-family: 'Roboto', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 2rem;
  margin-left: 6px !important;
  min-width: 0;
  white-space: nowrap;
}

.brand-wordmark-ki {
  color: rgba(33, 33, 33, 0.83);
  font-weight: 300;
}

.brand-wordmark-footer {
  font-size: 1.1875rem;
  line-height: 1.6rem;
}

.product-card {
  min-width: 0;
}

.product-card-header {
  flex-wrap: wrap;
  gap: 10px;
}

.product-card-header-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
  min-width: 0;
}

.product-controls {
  flex-wrap: wrap;
}

.product-control-fields {
  flex-wrap: wrap;
  min-width: 0;
}

.product-generate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.demo-arrow-symbol {
  color: transparent !important;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 400 !important;
  padding-bottom: 2px;
  position: relative;
}

.demo-arrow-symbol::before {
  color: #fff;
  content: "→";
  left: 50%;
  line-height: 1;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -56%);
}

@media (max-width: 1080px) {
  .desktop-nav {
    gap: 18px !important;
  }

  .nav-actions {
    gap: 12px !important;
  }

  .hero-layout,
  .security-layout {
    gap: 38px !important;
  }

  .hero-copy {
    width: 470px !important;
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }

  .trust-strip {
    flex-wrap: wrap !important;
    justify-content: center !important;
    text-align: center !important;
  }
}

@media (max-width: 860px) {
  .page section {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  .hero-section {
    padding-top: 56px !important;
  }

  .page section > div,
  .nav-inner,
  .trust-wrap,
  .footer-layout {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  .hero-layout,
  .security-layout {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
  }

  .hero-copy,
  .security-copy {
    width: auto !important;
    flex: 0 1 auto !important;
  }

  .hero-copy h1 {
    font-size: 44px !important;
  }

  .page h2 {
    font-size: 36px !important;
  }

  .product-card {
    width: 100% !important;
  }

  .product-controls {
    justify-content: flex-start !important;
  }

  .product-card-header-controls {
    justify-content: flex-start !important;
  }

  .video-update-badge {
    display: none !important;
  }

  .demo-panel {
    flex-direction: column !important;
  }

  .demo-arrow {
    width: auto !important;
    min-height: 64px !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 1px solid #E4EAF0 !important;
    border-bottom: 1px solid #E4EAF0 !important;
  }

  .demo-arrow-symbol {
    padding-bottom: 0;
    padding-right: 0;
    transform: none;
  }

  .demo-arrow-symbol::before {
    content: "↓";
    transform: translate(-50%, -66%);
  }
}

@media (max-width: 965px) {
  .nav-inner {
    gap: 14px !important;
    justify-content: flex-start !important;
  }

  .desktop-nav {
    display: none !important;
  }

  .nav-actions {
    margin-left: auto !important;
    flex-shrink: 0 !important;
  }

  .nav-actions .btn-primary {
    display: none !important;
  }

  .trust-strip {
    align-items: stretch !important;
    flex-direction: column !important;
    gap: 10px !important;
    text-align: left !important;
  }

  .trust-separator {
    display: none !important;
  }

  .feature-grid {
    grid-template-columns: 1fr !important;
  }

  .feature-grid > div {
    display: grid !important;
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 14px !important;
    align-items: start !important;
  }

  .feature-grid > div > span:first-child {
    grid-row: 1 / span 2 !important;
    margin-bottom: 0 !important;
  }

  .feature-grid > div > h3 {
    grid-column: 2 !important;
  }

  .feature-grid > div > p {
    grid-column: 2 !important;
  }

  .footer-layout {
    flex-direction: column !important;
    gap: 28px !important;
  }
}

@media (max-width: 520px) {
  section {
    scroll-margin-top: 72px;
  }

  .page section {
    padding-top: 58px !important;
    padding-bottom: 58px !important;
  }

  .page section > div,
  .nav-inner,
  .trust-wrap,
  .footer-layout {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  .nav-inner {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  .nav-actions .btn-primary {
    display: none !important;
  }

  .hero-copy h1 {
    font-size: 36px !important;
    line-height: 1.08 !important;
  }

  .hero-copy p,
  .page h2 + p {
    font-size: 16px !important;
  }

  .page h2 {
    font-size: 30px !important;
  }

  .hero-ctas {
    align-items: stretch !important;
    flex-direction: column !important;
  }

  .hero-ctas > a {
    justify-content: center !important;
    text-align: center !important;
  }

  .product-card {
    padding: 14px !important;
  }

  .product-card-header,
  .product-card > div:nth-child(3) {
    align-items: flex-start !important;
    flex-direction: column !important;
  }

  .product-generate {
    width: 100% !important;
  }

  .demo-input,
  .demo-output {
    padding: 24px 20px !important;
  }

  .video-update-icon {
    display: none !important;
  }

  .final-cta {
    padding: 42px 22px !important;
    border-radius: 18px !important;
  }

  .final-cta h2 {
    font-size: 30px !important;
  }

  .final-cta a {
    width: 100% !important;
  }
}

@media (max-width: 420px) {
  .brand-wordmark {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }
}

@media (max-width: 340px) {
  .feature-grid > div {
    display: block !important;
  }

  .feature-grid > div > span:first-child {
    margin-bottom: 16px !important;
  }
}
