/* Responsive layer for the original exported company website. */
html { -webkit-text-size-adjust: 100%; }
.site-page { width: 100%; }
.site-page *, .site-nav * { box-sizing: border-box; }
.site-page section { scroll-margin-top: 20px; }
.site-page img, .site-page video { max-width: 100%; }
.company-footer .footer-links a, .company-footer .footer-bottom a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.company-footer #contact > a:last-child { display: block; }
.mobile-nav { display: none; }
.site-page a:focus-visible, .site-page button:focus-visible,
.site-nav a:focus-visible, .site-nav summary:focus-visible {
  outline: 3px solid #f5b21a;
  outline-offset: 4px;
}

@media (max-width: 899px) {
  .site-page section *, .company-footer * { min-width: 0; }
  .site-page p, .site-page h1, .site-page h2, .site-page h3 { overflow-wrap: break-word; }
  .site-page .rvw > *, .site-page .rv0 > *,
  #industries .lay-a > *, #industries .lay-b > * > * {
    animation: none !important;
    opacity: 1 !important;
    translate: none !important;
  }
  .site-page button, .site-page a, .site-nav a, .site-nav summary {
    touch-action: manipulation;
  }
  .site-page button { min-height: 44px; }
  .site-page .pill-cta, .site-page a.ghost {
    min-height: 48px !important;
    justify-content: center;
    padding: 12px 22px !important;
    font-size: 14px !important;
    line-height: 1.4;
    text-align: center;
  }

  /* Keep the brand and app link together; a native menu exposes all sections. */
  .site-nav-wrap { padding: 16px 20px 0 !important; }
  .site-nav-row { gap: 8px 12px !important; padding-bottom: 12px !important; }
  .site-nav-row > a:first-child { flex: 1; }
  .site-nav-row > a:first-child img { width: min(100%, 194px) !important; height: auto !important; margin: 0 !important; }
  .site-nav .desktop-nav { display: none !important; }
  .site-nav .nav-app-link { font-size: 14px !important; min-height: 44px; }
  .mobile-nav { display: block; order: 3; width: 100%; }
  .mobile-nav summary {
    min-height: 44px;
    padding: 10px 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    border: 1px solid #344362;
    border-radius: 12px;
  }
  .mobile-nav[open] summary { border-color: #f5b21a; }
  .mobile-nav nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding-top: 12px; }
  .mobile-nav nav a { display: flex; align-items: center; min-height: 48px; padding: 10px 12px; font-size: 14px; text-decoration: none; border-radius: 10px; background: #0e1b40; line-height: 1.4; }

  #top, #wiseorder > .rvw, #how, #industries .indstick,
  #industries > .rvw, #video > .rvw, #marketing > .rvw {
    width: 100% !important;
    max-width: 100% !important;
    padding: 48px 20px !important;
    gap: 28px !important;
  }
  #top { padding-top: 32px !important; }
  #top > p:first-child, #wiseorder > .rvw > p:first-child,
  #marketing > .rvw > p:first-child { display: none; }
  .hero-layout { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 28px !important; }
  .hero-copy { gap: 22px !important; }
  #top h1.h-xl { font-size: clamp(32px, 7.8vw, 44px) !important; line-height: 1.12 !important; }
  .hero-copy > p { font-size: 16px !important; line-height: 1.65 !important; }
  .hero-copy > div { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-page .hero-copy > div a { padding-inline: 10px !important; letter-spacing: .03em !important; }
  .hero-visual { width: 100%; max-width: 460px; margin-inline: auto; gap: 0 !important; }
  .hero-visual > div:first-child { aspect-ratio: 1 !important; }
  #wiseorder .h-xl { font-size: clamp(30px, 7vw, 42px) !important; }
  #wiseorder > .rvw > div:last-child { gap: 28px !important; }
  #wiseorder > .rvw > div:last-child > p { flex-basis: 100% !important; font-size: 27px !important; line-height: 1.2 !important; }
  #wiseorder > .rvw > div:last-child > div { flex-basis: 100% !important; }
  .bld-wrap { width: 100%; }
  .bld-wrap svg { display: block; width: 100%; height: auto; }
  .smart-carousel { display: grid !important; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px !important; }
  .smart-window { grid-column: 1 / -1; grid-row: 1; height: 190px !important; width: 100%; }
  .smart-carousel > button:first-child { grid-column: 1; grid-row: 2; }
  .smart-carousel > button:last-child { grid-column: 3; grid-row: 2; }

  /* Feature tabs can be swiped; the samples fit within the phone's width. */
  .f-grid { grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; }
  .f-controls { padding: 14px !important; }
  .f-list { scrollbar-width: thin !important; scrollbar-color: #f5b21a #16213f; padding-bottom: 10px !important; }
  .f-btn { min-height: 48px !important; }
  .f-title { font-size: 14px !important; }
  .f-num { width: 28px !important; height: 28px !important; }
  .f-h { font-size: clamp(28px, 6.5vw, 38px) !important; }
  .f-stage { min-height: 640px !important; padding: 52px 14px 24px !important; }
  .f-tag, .f-sample { font-size: 11px !important; letter-spacing: .04em !important; }
  .f-tag { left: 14px !important; }
  .f-sample { right: 14px !important; }
  .f-vis { zoom: 1 !important; gap: 18px !important; }
  .f-vis > * { max-width: 100% !important; }
  .f-vis > .card, .f-vis > .chat { flex-shrink: 1; }
  .f-mdesc { font-size: 15px !important; line-height: 1.6 !important; min-height: 6.4em !important; }

  #industries .industry-layout { grid-template-columns: minmax(0, 1fr) !important; }
  #industries .industry-panel { grid-template-columns: minmax(0, 1fr) !important; padding: 22px !important; }
  #industries .industry-panel > div:last-child > div { grid-template-columns: minmax(0, 1fr) !important; }
  #industries .lay-a button.ind { padding: 16px 12px !important; }
  #industries .lay-a button.ind > span:first-child { font-size: 14px !important; letter-spacing: 0 !important; }
  #industries .lay-a button.ind > span:last-child { font-size: 16px !important; }
  #industries .people-panel { grid-template-columns: minmax(0, 1fr) !important; min-height: 440px; }
  #industries .lay-b button.ind { flex-basis: calc(50% - 8px) !important; min-width: 0 !important; }

  /* Remove the fixed desktop canvas so both copy and camera image stay visible. */
  #video { width: 100% !important; height: auto !important; }
  #video > .rvw { height: auto !important; }
  #video > .rvw > div { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 28px !important; }
  #video .h-l { font-size: 30px !important; line-height: 1.2 !important; }
  #video p { font-size: 17px !important; line-height: 1.65 !important; }
  #video > .rvw > div > div:last-child { width: 100%; border-radius: 18px !important; }
  #video > .rvw > div > div:first-child > div > div { flex-direction: column; align-items: start !important; gap: 6px !important; }
  #video span[style*="min-width: 120px"] { min-width: 0 !important; font-size: 14px !important; }

  .site-page #marketing > .rvw { gap: 28px !important; padding-top: 48px !important; padding-bottom: 48px !important; }
  #marketing .rvw > div:empty { display: none !important; }
  .marketing-intro p { font-size: 18px !important; }
  .marketing-intro h2.h-l { font-size: 28px !important; }
  .marketing-demo { border-radius: 22px !important; }
  .marketing-demo-header { padding: 22px 18px !important; gap: 16px !important; }
  .marketing-demo-header > span:first-child { font-size: 25px !important; line-height: 1.25; align-items: start !important; }
  .marketing-demo-header > span:first-child > span { flex-shrink: 0; margin-top: 5px; }
  .marketing-demo-header > p { width: 100% !important; height: auto !important; font-size: 15px !important; text-align: start !important; line-height: 1.65 !important; }
  .marketing-demo-header > span:last-child { font-size: 12px !important; }
  .marketing-demo > div:last-child { display: grid !important; grid-template-columns: minmax(0, 1fr); }
  .marketing-demo > div:last-child > div { width: 100%; padding: 24px 18px !important; border-right: 0 !important; border-bottom: 1px solid #e0e0e3; }
  .marketing-demo button { min-height: 44px !important; padding-block: 10px !important; font-size: 14px !important; }
  .marketing-demo [role="group"] { flex-wrap: wrap; gap: 6px; border-radius: 16px !important; }
  .marketing-demo [role="group"] button { white-space: nowrap; }
  .marketing-demo > div:last-child > div:nth-child(2) > div:first-child { flex-wrap: wrap; }
  .marketing-demo > div:last-child > div > span:first-child { font-size: 14px !important; }
  .marketing-demo .rise { padding: 24px 18px !important; }

  .company-footer .footer-inner { padding: 48px 20px 28px !important; gap: 36px !important; }
  .company-footer .footer-start { gap: 24px !important; }
  .company-footer .footer-start h2 { font-size: 34px !important; line-height: 1.15 !important; }
  .company-footer .footer-actions { width: 100%; margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .company-footer .footer-actions a { min-height: 50px !important; font-size: 14px !important; justify-content: center; text-align: center; }
  .company-footer .footer-main { display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 36px !important; }
  .company-footer .footer-brand { gap: 22px !important; }
  .company-footer .footer-brand img { margin: 0 !important; aspect-ratio: 1600 / 610; }
  .company-footer .footer-brand p { font-size: 22px !important; }
  .company-footer .footer-brand > a { min-height: 48px !important; padding: 12px 20px !important; font-size: 14px !important; justify-content: center; line-height: 1.4; }
  .company-footer .footer-links { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px !important; }
  .company-footer .footer-links > div { gap: 8px !important; }
  .company-footer .footer-links > div > span { font-size: 14px !important; }
  .company-footer .footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 15px !important; line-height: 1.55 !important; overflow-wrap: anywhere; }
  .company-footer #contact { grid-column: 1 / -1; max-width: none !important; }
  .company-footer #contact > a:last-child { display: block; }
  .company-footer .footer-members { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px !important; }
  .company-footer .footer-members > span { grid-column: 1 / -1; font-size: 14px !important; margin: 0 !important; }
  .company-footer .footer-members img { width: 100% !important; height: auto !important; max-height: 90px; object-fit: contain; }
  .company-footer .footer-bottom { font-size: 14px !important; letter-spacing: 0 !important; gap: 12px !important; }
  .company-footer .footer-bottom a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; }
}

@media (max-width: 359px) {
  .site-nav-wrap { padding-inline: 16px !important; }
  .site-nav-row > a:first-child img { max-width: 166px !important; }
  .site-nav .nav-app-link { font-size: 14px !important; letter-spacing: 0 !important; }
  #top, #wiseorder > .rvw, #how, #industries .indstick,
  #industries > .rvw, #video > .rvw, #marketing > .rvw { padding-inline: 16px !important; }
  .hero-copy > div { grid-template-columns: minmax(0, 1fr); }
  .company-footer .footer-inner { padding-inline: 16px !important; }
  .company-footer .footer-links { grid-template-columns: minmax(0, 1fr); }
  .f-stage { padding-inline: 10px !important; }
}

@media (min-width: 900px) and (max-width: 1199px) {
  /* Tablet touch controls must not be shrunk by the desktop demo's zoom. */
  .site-page #marketing .rvw > .marketing-demo { zoom: 1 !important; }
  .marketing-demo button { min-height: 44px !important; }
}

@media (prefers-reduced-motion: reduce) {
  .site-page .rv-pre { opacity: 1 !important; translate: none !important; }
}
