/* Mega-menu panels (Product, Solutions). A wide, calm, multi-column dropdown; loaded site-wide after chrome.css.
   Desktop: absolutely positioned under the sticky header (opening never moves the page). <=1100px: part of the drawer. */
.am-has-mega { position: static; }

/* A tab is a link to its hub page plus a chevron button that opens the panel. */
.am-tabwrap { display: inline-flex; align-items: center; border-radius: 8px; transition: background var(--d-fast, 120ms) ease; }
.am-tabwrap:hover, .am-has-menu:focus-within > .am-tabwrap { background: var(--surface-2, #F6F9FB); }
.am-nav .am-tab {
  display: inline-flex; align-items: center; min-height: 40px; padding: 6px 2px 6px 10px; border-radius: 8px 0 0 8px;
  font: 600 0.94rem "DM Sans", system-ui, sans-serif; color: var(--navy, #1A2332); text-decoration: none; white-space: nowrap;
}
.am-nav .am-tabwrap .am-trigger { min-height: 40px; padding: 6px 8px 6px 4px; border-radius: 0 8px 8px 0; background: none; color: var(--navy, #1A2332); }
.am-nav .am-tabwrap .am-trigger:hover, .am-nav .am-tabwrap .am-trigger[aria-expanded="true"] { background: none; }
.am-nav .am-tabwrap .am-trigger.is-section { box-shadow: none; }
.am-has-mega.is-active > .am-tabwrap { box-shadow: inset 0 -2px 0 var(--accent, #0ABFBC); border-radius: 8px 8px 0 0; }
.am-has-mega.is-active:has(.am-tab.is-current) > .am-tabwrap { box-shadow: none; }
.am-has-mega.is-active .am-tab { color: var(--accent-ink, #066E6B); }
.am-nav .am-tab.is-current { background: var(--accent-soft, #E7F8F8); }
.am-ext { margin-left: 4px; vertical-align: -1px; opacity: 0.8; }
@media (max-width: 1280px) { .am-nav .am-tab { padding-left: 8px; } .am-nav .am-tabwrap .am-trigger { padding-right: 6px; } }
@media (max-width: 1150px) and (min-width: 1101px) { .am-nav .am-tab { font-size: 0.88rem; padding-left: 6px; } }
.am-panel.am-mega {
  position: absolute; top: 100%; left: 50%; right: auto; width: min(1180px, calc(100vw - 32px)); min-width: 0; padding: 0;
  margin-top: 8px; border-radius: 20px; border-color: var(--line, #E4EBF2);
  box-shadow: 0 28px 64px rgba(26, 35, 50, 0.14), 0 4px 14px rgba(26, 35, 50, 0.06);
  transform: translate(-50%, -6px); max-height: calc(100vh - var(--am-header, 64px) - 24px); overflow-y: auto;
  transition: opacity 160ms ease, transform 160ms ease, visibility 0s linear 160ms;
}
.am-panel.am-mega::before { content: ""; position: absolute; left: 0; right: 0; top: -10px; height: 10px; } /* hover bridge */
.am-panel.am-mega.is-open, html:not(.am-js) .am-has-mega:hover > .am-mega, html:not(.am-js) .am-has-mega:focus-within > .am-mega {
  transform: translate(-50%, 0); transition: opacity 160ms ease, transform 160ms ease;
}
.am-mega-in { display: grid; grid-template-columns: 200px 1fr 200px; gap: 8px 26px; padding: 32px 28px 28px; align-items: start; }
.am-mintro { padding-right: 4px; }
.am-panel .am-mtitle { margin: 0 0 10px; font: 300 2.6rem/1.05 "DM Sans", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--navy, #1A2332); }
.am-mlede { margin: 0 0 18px; font-size: 0.95rem; line-height: 1.5; color: var(--ink-2, #4A586B); }
.am-mquick { list-style: none; margin: 0; padding: 14px 0 0; border-top: 1px solid var(--line, #E4EBF2); }
.am-panel .am-mquick a { display: inline-block; padding: 6px 0; font-weight: 600; font-size: 0.93rem; border-radius: 6px; color: var(--accent-ink, #066E6B); }
.am-panel .am-mquick a:hover { background: none; text-decoration: underline; text-underline-offset: 3px; }
.am-mcols { display: grid; grid-template-columns: repeat(var(--am-cols, 3), minmax(0, 1fr)); gap: 8px 14px; }
.am-mega-solutions .am-mcols { --am-cols: 2; }
.am-mcol { display: flex; flex-direction: column; gap: 22px; min-width: 0; }
.am-mgrp ul { list-style: none; margin: 0; padding: 0; }
.am-mh { margin: 0 0 6px 10px; font: 600 0.72rem "DM Sans", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3, #5B6B80); }

.am-panel a.am-mi { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 8px; border-radius: 12px; position: relative; }
.am-panel a.am-mi:hover, .am-panel a.am-mi:focus-visible { background: var(--accent-soft, #E7F8F8); }
.am-mi-ic { position: relative; width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface-2, #F6F9FB); color: var(--accent-ink, #066E6B); }
.am-mi:hover .am-mi-ic, .am-mi:focus-visible .am-mi-ic { background: #fff; }
.am-mi-tx { display: block; min-width: 0; }
.am-mi-t { display: block; font-weight: 600; font-size: 0.92rem; line-height: 1.3; color: var(--navy, #1A2332); }
.am-mi-s { display: block; margin-top: 2px; font-size: 0.8rem; line-height: 1.4; color: var(--ink-2, #4A586B); }
.am-mi-go { position: absolute; right: 8px; top: 12px; color: var(--accent-ink, #066E6B); opacity: 0; transform: translateX(-4px); transition: opacity 140ms ease, transform 140ms ease; }
.am-mi:hover .am-mi-go, .am-mi:focus-visible .am-mi-go { opacity: 1; transform: none; }

.am-chip { margin-left: 6px; vertical-align: 1px; font: 600 0.66rem/1 "DM Sans", system-ui, sans-serif; letter-spacing: 0.03em; white-space: nowrap; }
/* Live is plain: a small status dot on the icon, with the word kept for screen readers. */
.am-chip.is-live { display: block; position: absolute; left: 30px; top: 5px; margin: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--success, #0B6E43); border: 2px solid #fff; box-sizing: content-box; }
.am-chip.is-soon { padding: 3px 7px; border-radius: 999px; background: var(--surface-2, #F6F9FB); color: var(--ink-3, #5B6B80); border: 1px solid var(--line, #E4EBF2); }

.am-panel a.am-mcard {
  display: flex; flex-direction: column; gap: 10px; align-self: stretch; justify-content: flex-end; min-height: 220px; padding: 22px; border-radius: 18px;
  background: linear-gradient(155deg, var(--wash-teal, #DDF6F5) 0%, var(--wash-sky, #E4EEFA) 100%); border: 1px solid var(--line, #E4EBF2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.am-panel a.am-mcard:hover { background: linear-gradient(155deg, var(--wash-teal, #DDF6F5) 0%, var(--wash-sky, #E4EEFA) 100%); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 35, 50, 0.1); }
.am-mcard-k { font: 700 1.25rem/1.2 "Sora", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--navy, #1A2332); }
.am-mcard-p { font-size: 0.9rem; line-height: 1.45; color: var(--ink-2, #4A586B); }
.am-mcard-go { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 0.9rem; color: var(--accent-ink, #066E6B); }
.am-mcard-go svg { transition: transform 140ms ease; }
.am-mcard:hover .am-mcard-go svg { transform: translateX(3px); }

@media (max-width: 1240px) { .am-mega-in { grid-template-columns: 170px 1fr 180px; gap: 8px 18px; padding: 26px 20px 22px; } .am-panel .am-mtitle { font-size: 2.1rem; } .am-mlede { font-size: 0.88rem; } }

/* Drawer: the group opens as an accordion; the panel is a flat, stacked list. */
@media (max-width: 1100px) {
  .am-has-mega { position: static; }
  .am-panel.am-mega, .am-panel.am-mega.is-open, html:not(.am-js) .am-has-mega:hover > .am-mega, html:not(.am-js) .am-has-mega:focus-within > .am-mega { position: static; width: auto; max-height: none; overflow: visible; margin: 0; border: 0; border-radius: 0; box-shadow: none; transform: none; padding: 0 0 10px; }
  .am-panel.am-mega::before { display: none; }
  .am-mega-in { display: block; padding: 0; }
  .am-mintro { display: none; }
  .am-mcols { display: block; }
  .am-mcol { gap: 4px; }
  .am-mgrp { margin-top: 10px; }
  .am-mh { margin-left: 6px; }
  .am-panel a.am-mi { padding: 10px 6px; }
  .am-mi-go { display: none; }
  .am-mi-s { font-size: 0.85rem; }
  .am-panel a.am-mcard { min-height: 0; margin: 14px 6px 4px; padding: 16px; }
}
@media (max-width: 1100px) {
  .am-tabwrap { display: flex; width: 100%; border-radius: 0; }
  .am-tabwrap:hover, .am-has-menu:focus-within > .am-tabwrap { background: none; }
  .am-nav .am-tab { flex: 1; min-height: 52px; padding: 10px 6px; font-size: 1.1rem; border-radius: 0; }
  .am-nav .am-tabwrap .am-trigger { width: 56px; min-height: 52px; padding: 0; justify-content: center; border-radius: 0; flex: none; }
  .am-has-mega.is-active > .am-tabwrap { box-shadow: none; border-radius: 0; background: var(--accent-soft, #E7F8F8); }
  .am-nav .am-tab.is-current { background: none; }
}

/* Hub pages (/developers/, /company/): a calm heading, one sentence, grouped lists. */
.hub-hero { padding: clamp(40px, 7vw, 88px) 0 clamp(20px, 3vw, 36px); background: linear-gradient(180deg, var(--surface-2, #F6F9FB), #fff); }
.hub-title { margin: 0 0 14px; font: 300 clamp(2.6rem, 6vw, 4.4rem)/1.04 "DM Sans", system-ui, sans-serif; letter-spacing: -0.02em; color: var(--navy, #1A2332); }
.hub-lede { margin: 0; max-width: 46ch; font-size: clamp(1.05rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--ink-2, #4A586B); }
.hub-body { padding: clamp(24px, 4vw, 48px) 0 clamp(48px, 7vw, 96px); }
.hub-body .container { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 36px; align-items: start; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 36px 32px; }
.hub-h { margin: 0 0 8px 10px; font: 600 0.78rem "DM Sans", system-ui, sans-serif; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-3, #5B6B80); }
.hub-list { list-style: none; margin: 0; padding: 0; }
.hub-link, .hub-link:hover { text-decoration: none; }
.hub-grp a.am-mi { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 11px 10px; border-radius: 12px; position: relative; color: var(--navy, #1A2332); }
.hub-grp a.am-mi:hover, .hub-grp a.am-mi:focus-visible { background: var(--accent-soft, #E7F8F8); }
.hub-grp a.am-mi:focus-visible, .hub-card:focus-visible { outline: 2px solid var(--accent-ink, #066E6B); outline-offset: 2px; }
.hub-grp .am-mi-t { font-size: 1rem; } .hub-grp .am-mi-s { font-size: 0.9rem; }
a.hub-card { display: flex; flex-direction: column; gap: 10px; justify-content: flex-end; min-height: 240px; padding: 24px; border-radius: 20px; text-decoration: none;
  background: linear-gradient(155deg, var(--wash-teal, #DDF6F5) 0%, var(--wash-sky, #E4EEFA) 100%); border: 1px solid var(--line, #E4EBF2); transition: transform 160ms ease, box-shadow 160ms ease; }
a.hub-card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(26, 35, 50, 0.1); }
@media (max-width: 900px) { .hub-body .container { grid-template-columns: 1fr; } a.hub-card { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { a.hub-card { transition: none; } a.hub-card:hover { transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .am-panel.am-mega, .am-mi-go, .am-panel a.am-mcard, .am-mcard-go svg { transition: none !important; }
  .am-panel a.am-mcard:hover { transform: none; }
}

/* A backdrop-filter on the header makes it the containing block of the fixed drawer, clipping the drawer to 64px.
   Below the drawer breakpoint the header is solid instead. */
@media (max-width: 1100px) { .am-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; } }

/* A closed drawer must not catch clicks or focus: its open panel would otherwise sit invisibly over the page. */
@media (max-width: 1100px) { html.am-js .am-drawer:not(.is-open), html.am-js .am-drawer:not(.is-open) * { visibility: hidden !important; pointer-events: none !important; } }

/* cleaner header: search is an icon button (Ctrl/Cmd+K still works), Contact lives under Company */
.am-cta .am-search { padding: 0; width: 40px; height: 40px; justify-content: center; border-radius: 999px; }
.am-cta .am-search .am-search-label, .am-cta .am-search .am-kbd { display: none; }

/* feature-card illustration: outline art on a soft gradient disc, above the title */
.am-mart { display: block; width: 132px; height: 106px; margin: 0 auto auto; padding: 14px 16px; box-sizing: border-box; color: var(--accent-ink, #066E6B);
  background: radial-gradient(circle at 50% 45%, #fff 0%, rgba(255,255,255,0.55) 58%, rgba(255,255,255,0) 72%); border-radius: 22px; }
.am-panel a.am-mcard:hover .am-mart { color: var(--navy, #1A2332); }
@media (max-width: 1100px) { .am-mart { display: none; } }
