/* Shared responsive behavior across niAuthor pages */

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

.export-wrapper {
  width: 100% !important;
  min-height: auto !important;
  max-width: 100%;
  overflow-x: hidden;
}

.page {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
  min-width: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

img#brand-mark {
  width: auto !important;
  height: 64px !important;
  max-width: 390px;
  object-fit: contain;
  border-radius: 0 !important;
  background: transparent !important;
  color: transparent !important;
  padding: 0 !important;
  font-size: 0 !important;
}

iframe,
video,
canvas,
svg {
  max-width: 100%;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 40px;
  padding-right: 40px;
}

.eyebrow,
.eyebrow-soft {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 9px 18px !important;
  border-radius: 999px !important;
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 13px !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  line-height: 1.2 !important;
  text-transform: uppercase !important;
  box-shadow:
    inset 0 0 0 1px rgba(0, 51, 102, 0.12),
    0 8px 20px rgba(0, 51, 102, 0.08) !important;
}

.eyebrow {
  color: var(--primary, #003366) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(243, 246, 250, 0.93) 55%,
    rgba(255, 245, 247, 0.95) 100%
  ) !important;
}

.eyebrow-soft {
  color: var(--secondary-foreground, #0a1a3c) !important;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(238, 243, 248, 0.4) 100%
  ) !important;
}

#site-header {
  width: 100%;
  background: var(--card, #ffffff) !important;
  border-bottom: 1px solid var(--border, #e0e0e0) !important;
}

#site-header #header-row,
#site-header #header-inner {
  width: 100% !important;
  min-height: 96px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
}

#brand-link,
#brand {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  text-decoration: none !important;
  min-width: 0 !important;
}

#brand-copy,
#brand-text {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
}

#brand-name {
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
  letter-spacing: 0 !important;
  color: var(--primary, #003366) !important;
  white-space: nowrap !important;
}

#brand-sub {
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 11px !important;
  font-weight: 500 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
  color: var(--muted-foreground, #4d4d4d) !important;
  white-space: nowrap !important;
}

#primary-nav,
#header-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 24px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

#primary-nav .nav-link,
#header-nav .nav-link,
#primary-nav .nav-dropdown > summary.nav-link,
#header-nav .nav-dropdown > summary.nav-link {
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  color: var(--secondary-foreground, #0a1a3c) !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

#primary-nav .nav-link.active,
#header-nav .nav-link.active {
  color: var(--primary, #003366) !important;
}

#header-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}

#header-pill {
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
}

#header-cta,
#header-actions .btn {
  height: 44px !important;
  padding: 0 20px !important;
  font-family:
    "DM Sans",
    Inter,
    "IBM Plex Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

#header-row,
#header-inner,
#header-cta,
#footer-row,
#cta-actions,
#hero-actions,
#form-actions,
#contact-chip-row,
#hero-points,
#hero-mini-list,
#mission-pills,
#lang-badges,
#journey-inner {
  flex-wrap: wrap;
}

#primary-nav,
#header-nav {
  flex-wrap: wrap;
}

.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.nav-dropdown > summary.nav-link {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.nav-dropdown > summary.nav-link::-webkit-details-marker {
  display: none;
}

.nav-dropdown-caret {
  font-size: 10px;
  line-height: 1;
  transition: transform 0.2s ease;
}

.nav-dropdown[open] .nav-dropdown-caret {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px;
  border: 1px solid var(--border, #e0e0e0);
  border-radius: 10px;
  background: var(--card, #ffffff);
  box-shadow: 0 14px 30px rgba(0, 51, 102, 0.14);
  z-index: 100;
}

.nav-dropdown:not([open]) .nav-dropdown-menu {
  display: none;
}

.nav-dropdown:hover .nav-dropdown-menu {
  display: flex;
}

.nav-dropdown-link {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--secondary-foreground, #0a1a3c);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  line-height: 1.35;
}

.nav-dropdown-link:hover,
.nav-dropdown-link:focus-visible {
  background: var(--secondary, #f3f6fa);
  color: var(--primary, #003366);
  outline: none;
}

.nav-dropdown-link.current {
  background: var(--secondary, #f3f6fa);
  color: var(--primary, #003366);
}

#hero-grid,
#demo-hero-inner,
#about-hero-inner,
#form-layout,
.feature-grid,
.feature-grid.reverse,
#mission-inner,
#partner-card,
.field-grid,
#roles-grid,
#team-grid,
#interest-grid,
#hero-stats {
  min-width: 0;
}

[style*="white-space: nowrap"] {
  max-width: 100%;
}

@media (max-width: 1200px) {
  .container {
    padding-left: 32px !important;
    padding-right: 32px !important;
  }

  .section {
    padding: 80px 0 !important;
  }
}

@media (max-width: 1024px) {
  .container {
    padding-left: 28px !important;
    padding-right: 28px !important;
  }

  .section {
    padding: 72px 0 !important;
  }

  .section-heading,
  #hero-title,
  #cta-title,
  h1 {
    font-size: clamp(2rem, 5vw, 2.75rem) !important;
    line-height: 1.15 !important;
  }

  .section-copy,
  #hero-text,
  #hero-support,
  #cta-text,
  p {
    font-size: 16px;
    line-height: 1.6;
  }

  #hero-offer {
    font-size: clamp(1.6rem, 3.8vw, 2.2rem) !important;
  }

  #hero-powered {
    font-size: 19px !important;
  }

  #hero-grid,
  #demo-hero-inner,
  #about-hero-inner,
  #form-layout,
  .feature-grid,
  .feature-grid.reverse,
  #mission-inner,
  #partner-card,
  #roles-grid,
  #team-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  #hero-copy,
  #hero-visual,
  #hero-card,
  .feature-copy,
  .feature-visual,
  .form-card,
  .info-card {
    max-width: 100% !important;
    width: 100% !important;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .section {
    padding: 56px 0 !important;
  }

  #site-header {
    height: auto !important;
    padding: 14px 0 !important;
  }

  #site-header #header-row,
  #site-header #header-inner {
    min-height: 0 !important;
  }

  #header-row,
  #header-inner {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 14px !important;
  }

  #primary-nav,
  #header-nav {
    width: 100%;
    justify-content: flex-start !important;
    gap: 12px !important;
  }

  #header-actions,
  #header-cta {
    width: 100%;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  #primary-nav .nav-dropdown,
  #header-nav .nav-dropdown {
    width: 100%;
  }

  #primary-nav .nav-dropdown > summary.nav-link,
  #header-nav .nav-dropdown > summary.nav-link {
    width: 100%;
    justify-content: space-between;
  }

  #footer-row,
  #cta-actions,
  #hero-actions,
  #form-actions,
  #contact-chip-row,
  #mission-pills,
  #hero-points,
  #hero-mini-list,
  #lang-badges,
  #journey-inner {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
  }

  #brand-sub,
  #header-pill,
  .nav-link,
  .btn {
    white-space: normal !important;
  }

  .eyebrow,
  .eyebrow-soft {
    font-size: 12px !important;
    padding: 8px 14px !important;
    letter-spacing: 0.06em !important;
  }

  [style*="white-space: nowrap"],
  .eyebrow,
  #hero-tag,
  #hero-category,
  .hero-pill,
  .mission-pill,
  .shot-caption-pill,
  .lang-badge,
  .contact-chip,
  .interest-chip,
  .journey-step-label,
  .journey-step-name,
  .journey-step-sub {
    white-space: normal !important;
  }

  h1,
  h2,
  h3,
  p,
  .section-copy,
  #hero-text,
  #hero-support,
  #cta-text,
  #form-subtitle {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .btn {
    width: 100%;
    min-height: 44px;
    text-align: center;
  }

  #hero,
  #about-hero,
  #demo-hero {
    padding-top: 36px !important;
  }

  #hero-grid,
  #intro-grid,
  #products-grid,
  #teams-grid,
  #mission-grid,
  #team-grid,
  #roles-grid,
  #interest-grid,
  #feature-grid,
  #features-grid,
  #usecase-grid,
  #tiers-grid,
  #hero-metrics,
  #hero-stats,
  #demo-hero-inner,
  #about-hero-inner,
  #form-layout,
  #mission-inner,
  #partner-card,
  .feature-grid,
  .feature-grid.reverse,
  .field-grid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  #hero-copy,
  #hero-visual,
  #hero-card,
  #cta-inner {
    width: 100% !important;
    max-width: 100% !important;
  }

  #hero-title,
  .section-heading,
  #cta-title,
  h1 {
    font-size: clamp(1.75rem, 7vw, 2.25rem) !important;
    letter-spacing: -0.02em !important;
  }

  #hero-offer {
    font-size: clamp(1.35rem, 6.2vw, 1.85rem) !important;
    line-height: 1.22 !important;
  }

  #hero-powered {
    font-size: 17px !important;
    flex-wrap: wrap;
    justify-content: center !important;
  }

  #hero-connector {
    max-width: 320px !important;
  }

  #about-title,
  #mission-title,
  #team-title,
  #partner-title,
  #form-title {
    font-size: clamp(1.6rem, 7vw, 2.1rem) !important;
    line-height: 1.18 !important;
  }

  .browser-frame,
  .form-card,
  .info-card,
  #hero-card,
  #cta-inner,
  #diff-inner,
  #partner-card,
  .team-card,
  .role-card,
  #intro-card,
  .product-card,
  .value-panel,
  .mission-box {
    padding: 20px !important;
  }

  #brand-mark {
    max-width: min(84vw, 420px) !important;
    height: 58px !important;
  }

  .nav-dropdown-menu {
    position: static;
    top: auto;
    left: auto;
    width: 100%;
    min-width: 0;
    margin-top: 4px;
    box-shadow: none;
  }

  [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  [style*="display: grid"] {
    gap: 16px !important;
  }

  [style*="width: 1440px"],
  [style*="min-width: 1440px"] {
    width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 480px) {
  .container {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .section {
    padding: 44px 0 !important;
  }

  #primary-nav,
  #header-nav {
    gap: 8px !important;
  }

  .btn {
    font-size: 13px !important;
    padding: 0 14px !important;
  }

  .eyebrow,
  .eyebrow-soft {
    font-size: 11px !important;
    padding: 7px 12px !important;
  }

  #hero-title,
  #cta-title,
  .section-heading,
  #about-title,
  #mission-title,
  #team-title,
  #partner-title,
  #form-title,
  h1 {
    font-size: clamp(1.5rem, 8.4vw, 1.95rem) !important;
  }

  #hero-offer {
    font-size: clamp(1.2rem, 7.2vw, 1.5rem) !important;
  }

  #hero-powered {
    font-size: 15px !important;
  }
}
