/* BasesCovered marketing — the shared shell.
   The design was exported from a React prototype where the header was one
   inline flex row that never wrapped: 531px of nav on a 375px phone, clipped
   by an overflow:hidden on the home page and simply hanging off the side of
   every other one. And "Who it's for" was a hover dropdown whose menu lived in
   the component, so it came out of the export as a dead label.
   Both are rebuilt here — no framework, two <details> disclosures, and a
   breakpoint where the row genuinely stops fitting. */

:root {
  --ink: #1A1A1A;
  --ink-inv: #FFFFFF;
  --muted: #8C877C;
  --gold: #D4A84B;
  --rule: rgba(255, 255, 255, 0.08);
}

.hdr {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  font-family: "Manrope", system-ui, sans-serif;
}

.hdr-in {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  position: relative;   /* the phone panel hangs off this */
  display: flex;
  align-items: center;
  gap: 20px;
}

.hdr a { text-decoration: none; }

.hdr-logo { display: block; flex: 0 1 auto; min-width: 0; }

.nav-link {
  font-family: Lexend, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.nav-link:hover,
.nav-link[aria-current="page"] { color: var(--ink-inv); }

.nav-ace { display: flex; align-items: center; gap: 7px; color: var(--gold); }
.nav-ace:hover { color: var(--gold); }
.nav-ace .dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold); color: var(--ink);
  display: grid; place-items: center;
  font-size: 9px; font-weight: 800;
}

.cta {
  display: inline-flex; align-items: center;
  height: 38px; padding: 0 16px;
  background: var(--gold); color: var(--ink);
  border-radius: 8px;
  font-family: Lexend, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
.cta:hover { background: #E3BC69; color: var(--ink); }

/* ── the "Who it's for" disclosure ─────────────────────────────────────── */

/* The padding makes the summary's box the full height of the bar, so the
   panel hangs from the bar's edge rather than from the middle of the text. */
.menu { position: relative; padding: 24px 0; }
.menu > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  font-family: Lexend, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { color: var(--ink-inv); }
.menu > summary .caret { font-size: 9px; transition: transform 120ms ease; }
.menu[open] > summary .caret { transform: rotate(180deg); }

.menu-panel {
  position: absolute;
  top: calc(100% + 3px);
  left: -14px;
  min-width: 210px;
  background: #221F1B;
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 8px;
  box-shadow: rgba(0, 0, 0, 0.4) 0 18px 40px -20px;
  display: flex;
  flex-direction: column;
}
.menu-panel a {
  padding: 9px 12px;
  border-radius: 8px;
  font-family: Lexend, sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.menu-panel a:hover { background: rgba(255, 255, 255, 0.06); color: var(--ink-inv); }

/* ── the phone nav ─────────────────────────────────────────────────────── */

.burger { margin-left: auto; }
.burger > summary {
  list-style: none;
  cursor: pointer;
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border: 1px solid var(--rule);
  border-radius: 9px;
  color: var(--ink-inv);
}
.burger > summary::-webkit-details-marker { display: none; }
.burger .bars { display: block; width: 17px; height: 11px; position: relative; }
.burger .bars::before,
.burger .bars::after,
.burger .bars i {
  content: ""; position: absolute; left: 0; right: 0;
  height: 1.5px; background: currentColor; border-radius: 1px;
}
.burger .bars::before { top: 0; }
.burger .bars i { top: 4.75px; }
.burger .bars::after { bottom: 0; }

.burger-panel {
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--ink);
  border-bottom: 1px solid var(--rule);
  padding: 8px 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
}
.burger-panel a {
  padding: 13px 8px;
  border-bottom: 1px solid var(--rule);
  font-family: Lexend, sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}
.burger-panel a:hover, .burger-panel a[aria-current="page"] { color: var(--ink-inv); }
.burger-panel .group {
  font-family: Lexend, sans-serif;
  font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
  padding: 18px 8px 6px;
}
/* .burger-panel a (0,1,1) outranks .cta (0,1,0), so the button has to be
   re-stated here or it renders as one more muted row with a rule under it. */
.burger-panel a.cta {
  height: 48px;
  justify-content: center;
  margin-top: 16px;
  padding: 0 16px;
  border-bottom: 0;
  color: var(--ink);
  font-size: 12px;
}
.burger-panel a.cta:hover { color: var(--ink); }

/* ── the breakpoint ────────────────────────────────────────────────────── */

.nav-desktop { display: none; }
.hdr-cta { display: none; }

@media (min-width: 980px) {
  .nav-desktop { display: flex; align-items: center; gap: 16px; margin-left: 2px; }
  .hdr-cta { display: flex; align-items: center; gap: 14px; margin-left: auto; }
  .burger { display: none; }
}

/* ── shared ────────────────────────────────────────────────────────────── */

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

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

/* ── the phone ─────────────────────────────────────────────────────────────
   The export is one long tree of inline styles, so there is nowhere to put a
   breakpoint per component. Every multi-column grid in it was authored for a
   desktop width and none of them collapse on their own — a five-across feature
   row simply ran 40px off the side of a 375px phone, and the split-screen
   signup ran 31px off. Two rules do the whole job: below the tablet width a
   grid is one column, and a flex row is allowed to wrap. Both are no-ops where
   the content already fits, which is why they are safe to apply this broadly.
   The header is excluded — it has its own treatment above.                  */
@media (max-width: 760px) {
  #dc-root [style*="grid-template-columns"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  #dc-root [style*="display: flex"] { flex-wrap: wrap; }
  #dc-root [style*="white-space: nowrap"] { white-space: normal; }
  #dc-root img { height: auto; }
  /* Feature group intros are a sticky left column on desktop. In one column
     they would pin over the cards (transparent, 92px down), so they scroll. */
  #dc-root [style*="position: sticky"] { position: static !important; }
}

/* ── display type on a narrow screen ───────────────────────────────────────
   The export hard-codes a pixel size on every heading, so a 52px headline
   stayed 52px on a 375px phone and the word EVERYTHING alone measured 357px
   inside a 319px column. There is no class to hook, so each size the design
   actually uses gets a clamp keyed off its own inline value. The maximum is
   the original number, which makes every one of these a no-op from roughly
   the tablet width up — desktop renders exactly as designed.               */
#dc-root [style*="font-size: 60px"] { font-size: clamp(38px, 10.1vw, 60px) !important; }
#dc-root [style*="font-size: 56px"] { font-size: clamp(36px, 9.6vw, 56px) !important; }
#dc-root [style*="font-size: 54px"] { font-size: clamp(35px, 9.3vw, 54px) !important; }
#dc-root [style*="font-size: 52px"] { font-size: clamp(34px, 9.1vw, 52px) !important; }
#dc-root [style*="font-size: 50px"] { font-size: clamp(33px, 8.8vw, 50px) !important; }
#dc-root [style*="font-size: 44px"] { font-size: clamp(30px, 8.0vw, 44px) !important; }
#dc-root [style*="font-size: 42px"] { font-size: clamp(29px, 7.7vw, 42px) !important; }
#dc-root [style*="font-size: 40px"] { font-size: clamp(28px, 7.5vw, 40px) !important; }
#dc-root [style*="font-size: 36px"] { font-size: clamp(28px, 7.5vw, 36px) !important; }
#dc-root [style*="font-size: 34px"] { font-size: clamp(26px, 6.9vw, 34px) !important; }
#dc-root [style*="font-size: 32px"] { font-size: clamp(25px, 6.7vw, 32px) !important; }
#dc-root [style*="font-size: 30px"] { font-size: clamp(23px, 6.1vw, 30px) !important; }
#dc-root [style*="font-size: 28px"] { font-size: clamp(22px, 5.9vw, 28px) !important; }

/* The Ace job panels carry an inline display:grid, which beats the hidden
   attribute; make hidden win so the tabs actually switch. */
#dc-root .ace-panel[hidden] { display: none !important; }
