/* Orcastra marketing — phone layout. Loaded from <helmet>; desktop mockup stays inline. */

html, body, #dc-root {
  overflow-x: hidden;
  max-width: 100%;
}

[data-mobile-hamburger] {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--om-line, #DCD9D3);
  color: currentColor;
  flex: none;
  box-sizing: border-box;
  background: transparent;
}
[data-mobile-hamburger] svg {
  display: block;
  width: 18px;
  height: 18px;
}

[data-mobile-drawer] {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--om-surface, #fff);
  border-bottom: 1px solid var(--om-line, #D9D9D9);
  padding: 8px 16px 20px;
}
[data-mobile-drawer] a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  font: 400 16px/1.3 Ubuntu, system-ui, sans-serif;
  color: var(--om-ink, #111);
  border-bottom: 1px solid var(--om-line, #DCD9D3);
}
[data-mobile-drawer] a[data-mobile-cta] {
  margin-top: 12px;
  justify-content: center;
  min-height: 48px;
  background: var(--orca-indigo, #703DEF);
  color: #fff;
  border-bottom: 0;
  border-radius: 2px;
  font-weight: 500;
}
html[data-theme="dark"] [data-mobile-drawer] a[data-mobile-cta] {
  color: #fff;
}

html[data-menu="open"],
html[data-menu="open"] body {
  overflow: hidden;
}
html[data-menu="open"] body {
  overflow-x: hidden;
}

@media (max-width: 900px) {
  html, body, #dc-root {
    overflow-x: hidden;
    max-width: 100%;
  }

  [data-mobile-hamburger] {
    display: inline-flex !important;
  }

  header[data-mega-root] > div[style*="height:68px"] {
    padding: 0 16px !important;
    gap: 10px !important;
    height: 60px !important;
    flex-wrap: nowrap !important;
    max-width: 100%;
  }
  header[data-mega-root] > div[style*="height:68px"] > a span {
    font-size: 14px !important;
    letter-spacing: .12em !important;
  }
  header[data-mega-root] [data-desktop-nav],
  header[data-mega-root] > div[style*="height:68px"] > nav,
  header[data-mega-root] [data-nav-drop],
  header[data-mega-root] [data-desktop-cta] {
    display: none !important;
  }
  header[data-mega-root] > div[style*="height:68px"] > div {
    gap: 8px !important;
  }

  /* Desktop mega / resources panels — hide overflowing 3-col grids; drawer replaces them */
  header[data-mega-root] [style*="position:absolute;left:0;right:0;top:68px"],
  header[data-mega-root] [style*="position:absolute;left:0;right:0;top:100%"] {
    display: none !important;
  }

  [style*="padding:0 56px"] {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
  [style*="padding:44px 56px 52px"] { padding: 28px 20px 32px !important; }
  [style*="padding:36px 56px 40px"] { padding: 24px 20px 28px !important; }
  [style*="padding:80px 56px 44px"] { padding: 48px 20px 28px !important; }

  [style*="padding:96px 0"] {
    padding-top: 48px !important;
    padding-bottom: 40px !important;
  }
  [style*="padding:88px 0"] {
    padding-top: 44px !important;
    padding-bottom: 40px !important;
  }
  [style*="padding:104px 0"] {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }
  [style*="padding:80px 0"] {
    padding-top: 40px !important;
    padding-bottom: 36px !important;
  }
  [style*="padding:64px 0"] {
    padding-top: 36px !important;
    padding-bottom: 32px !important;
  }
  [style*="padding:52px 0"] {
    padding-top: 32px !important;
    padding-bottom: 28px !important;
  }
  [style*="padding:56px 0 96px"] { padding: 36px 0 48px !important; }
  [style*="padding:44px 0 96px"] { padding: 32px 0 48px !important; }
  [style*="padding:64px 0 96px"] { padding: 36px 0 48px !important; }
  [style*="padding:72px 0 104px"] { padding: 40px 0 48px !important; }
  [style*="padding:84px 0 88px"] { padding: 40px 0 44px !important; }

  /* Two- and multi-column inline grids → single column */
  [style*="grid-template-columns:minmax(0,6fr) minmax(0,6.4fr)"],
  [style*="grid-template-columns:minmax(0,6fr) minmax(0,6fr)"],
  [style*="grid-template-columns:minmax(0,3fr) minmax(0,9fr)"],
  [style*="grid-template-columns:minmax(0,5fr) minmax(0,7fr)"],
  [style*="grid-template-columns:minmax(0,4fr) minmax(0,8fr)"],
  [style*="grid-template-columns:minmax(0,7fr) minmax(0,5fr)"],
  [style*="grid-template-columns:minmax(0,8fr) minmax(0,4fr)"],
  [style*="grid-template-columns:minmax(0,1fr) minmax(0,1fr)"],
  [style*="grid-template-columns:minmax(0,2fr) minmax(0,4fr) minmax(0,2fr)"],
  [style*="grid-template-columns:minmax(0,3fr) repeat("],
  [style*="grid-template-columns:minmax(0,3fr) 74px"],
  [style*="grid-template-columns:repeat(2,"],
  [style*="grid-template-columns:repeat(3,"],
  [style*="grid-template-columns:repeat(4,"],
  [style*="grid-template-columns:repeat(5,"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  [style*="display:flex;align-items:center;gap:52px"],
  [style*="display:flex;align-items:center;gap:28px;justify-content:flex-end"] {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 20px !important;
    justify-content: stretch !important;
  }
  [style*="display:flex;align-items:center;gap:28px;margin-top"] {
    flex-wrap: wrap !important;
    gap: 16px !important;
  }

  h1,
  h2[style*="font:300"] {
    font-size: clamp(28px, 8vw, 36px) !important;
    line-height: 1.2 !important;
  }

  img, svg {
    max-width: 100%;
  }
  img {
    height: auto;
  }
  [style*="width:112%"] {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    height: auto;
  }

  footer [style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }
  footer > img[style*="width:300px"] {
    width: 160px !important;
    right: 12px !important;
    opacity: .05 !important;
  }
  footer a,
  header[data-mega-root] a {
    min-height: 44px;
  }
  header[data-mega-root] > div[style*="height:68px"] a {
    min-height: 0;
  }
  header[data-mega-root] [data-mobile-hamburger] {
    min-height: 44px;
  }
}

@media (max-width: 640px) {
  header[data-mega-root] > div[style*="height:68px"] {
    padding: 0 12px !important;
    gap: 8px !important;
  }
  [style*="padding:0 56px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  [style*="padding:44px 56px 52px"],
  [style*="padding:36px 56px 40px"],
  [style*="padding:80px 56px 44px"] {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
  h1,
  h2[style*="font:300"] {
    font-size: clamp(26px, 8vw, 32px) !important;
  }
  [style*="white-space:nowrap"] {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}
