/* Acquisition shell — public-funnel shared nav/footer/skip primitives on Meridian.
 *
 * Scope: loaded ONLY by acquisition surfaces (landing, pricing, auth /
 * verification / legal). Phase 2 migrates the SHARED shell primitives (skip
 * link, nav, wordmark, buttons, footer) onto the fixed Meridian `--orc-*`
 * tokens (spec §6, identity §2/§3/§9): teal current on a paper field, one
 * accent, borders-first depth, no glow. The shell's own teal fills carry
 * theme-correct `--orc-on-current` text.
 *
 * The temporary teal token bridge this shell used to define for the unmigrated
 * page sheets is fully RETIRED as of Task 6.4: landing / auth / pricing / legal
 * now consume `--orc-*` directly, so the bridge has no consumers left and its
 * definition blocks (light + `.dark-theme`) are deleted.
 */

/* Sticky-nav offset so keyboard focus / in-page anchors never land under the
   sticky .acq-nav (WCAG 2.4.11 / C43). Must sit on the ROOT element: the
   document's scroll container is the viewport, which takes scroll-padding
   from <html>, never from <body> (same reason themes.css puts
   scroll-behavior on html). */
html:has(> body.landing-page),
html:has(> body.auth-page),
html:has(> body.pricing-page),
html:has(> body.legal-page) {
  --orc-sticky-offset: 4rem;
  scroll-padding-top: var(--orc-sticky-offset);
}

body.landing-page,
body.auth-page,
body.pricing-page,
body.legal-page {
  font-family: var(--orc-font-ui);
}

/* --- Skip link (shared) ------------------------------------------------- */
.acq-skip-link {
  position: absolute;
  top: -100px;
  left: var(--orc-space-4);
  background: var(--orc-current);
  color: var(--orc-on-current);
  padding: var(--orc-space-3) var(--orc-space-4);
  border-radius: var(--orc-radius-md);
  font-weight: 600;
  text-decoration: none;
  z-index: var(--orc-z-fixed);
  transition: top var(--orc-dur) var(--orc-ease-enter);
}
.acq-skip-link:focus,
.acq-skip-link:focus-visible {
  top: var(--orc-space-4);
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}

/* --- Nav ---------------------------------------------------------------- */
.acq-nav {
  position: sticky;
  top: 0;
  z-index: var(--orc-z-sticky);
  background: var(--orc-surface);
  border-bottom: 1px solid var(--orc-border);
}
.acq-nav-inner {
  display: flex;
  align-items: center;
  gap: var(--orc-space-6);
  padding-block: var(--orc-space-4);
}
.acq-wordmark {
  display: inline-flex;
  align-items: center;
  gap: var(--orc-space-2);
  font-weight: 700;
  font-size: var(--orc-text-lg);
  color: var(--orc-ink);
  text-decoration: none;
}
.acq-wordmark:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 4px;
  border-radius: var(--orc-radius-sm);
}
/* The brand mark: a short teal Rail current (underline-current, identity §9
   ctx 5), not a dot. */
.acq-wordmark-mark {
  width: 18px;
  height: 3px;
  border-radius: var(--orc-radius-pill);
  background: var(--orc-current);
  display: inline-block;
  flex-shrink: 0;
}
.acq-nav-links {
  display: flex;
  gap: var(--orc-space-6);
  margin-left: auto;
}
.acq-nav-links a {
  color: var(--orc-ink-muted);
  text-decoration: none;
  font-weight: 500;
}
.acq-nav-links a:hover { color: var(--orc-ink); }
/* aria-current uses BOTH color and underline (color is never the sole
   current-page indicator) — teal tick + underline. */
.acq-nav-links a[aria-current="page"] {
  color: var(--orc-current-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
.acq-nav-links a:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
  border-radius: var(--orc-radius-sm);
}
.acq-nav-actions {
  display: flex;
  align-items: center;
  gap: var(--orc-space-2);
}
.acq-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--orc-space-2);
  padding: var(--orc-space-3) var(--orc-space-4);
  border-radius: var(--orc-radius-md);
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
.acq-btn:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}
/* Pin hover away from the product-wide `a:hover` (base.css, specificity 0,1,1)
   which otherwise recolours these anchor CTAs to --link-hover and underlines
   them. Class+pseudo (0,2,0) out-ranks it. */
.acq-btn:hover {
  text-decoration: none;
}
.acq-btn-primary {
  background: var(--orc-current);
  color: var(--orc-on-current);
}
.acq-btn-primary:hover,
.acq-btn-primary:focus-visible {
  color: var(--orc-on-current);
  text-decoration: none;
}
.acq-btn-ghost {
  background: transparent;
  color: var(--orc-ink-muted);
  border-color: var(--orc-border);
}
/* Ghost intentionally darkens muted -> ink on hover (its own affordance, not
   the product link colour); the pin above already blocks the a:hover underline. */
.acq-btn-ghost:hover {
  color: var(--orc-ink);
  border-color: var(--orc-ink-subtle);
}
.acq-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--orc-border);
  background: transparent;
  border-radius: var(--orc-radius-md);
  cursor: pointer;
  margin-left: auto;
  position: relative;
}
.acq-nav-toggle span,
.acq-nav-toggle span::before,
.acq-nav-toggle span::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 18px;
  height: 2px;
  background: var(--orc-ink);
  transform: translateX(-50%);
}
.acq-nav-toggle span { top: 50%; transform: translate(-50%, -50%); }
.acq-nav-toggle span::before { top: -6px; }
.acq-nav-toggle span::after { top: 6px; }
.acq-nav-toggle:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .acq-nav-links,
  .acq-nav-actions { display: none; }
  .acq-nav-toggle { display: inline-flex; }
  .acq-nav[data-expanded="true"] .acq-nav-inner { flex-wrap: wrap; }
  /* Row 1 = wordmark + toggle (open OR closed); expanded menu regions wrap
     below via flex-basis:100%. Without explicit order the DOM sequence
     (wordmark, links, actions, toggle) dropped the close toggle beneath the
     actions when expanded. */
  .acq-wordmark { order: 0; }
  .acq-nav-toggle { order: 1; }
  .acq-nav-links { order: 2; }
  .acq-nav-actions { order: 3; }
  .acq-nav[data-expanded="true"] .acq-nav-links,
  .acq-nav[data-expanded="true"] .acq-nav-actions {
    display: flex;
    flex-direction: column;
    gap: var(--orc-space-3);
    flex-basis: 100%;
    padding: var(--orc-space-4) 0 0;
    margin-left: 0;
  }
}

/* --- Footer ------------------------------------------------------------- */
/* Paper footer with a hairline top border (borders-first depth, identity §4);
   theme-aware, no fixed dark band. */
.acq-footer {
  background: var(--orc-surface);
  border-top: 1px solid var(--orc-border);
  color: var(--orc-ink-muted);
  padding-block: var(--orc-space-9);
}
.acq-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--orc-space-6);
  flex-wrap: wrap;
}
.acq-footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--orc-space-2);
}
.acq-footer-brand p {
  margin: 0;
  font-size: var(--orc-text-sm);
  color: var(--orc-ink-muted);
  max-width: 42ch;
}
.acq-wordmark--dark { color: var(--orc-ink); }
.acq-footer-links {
  display: flex;
  gap: var(--orc-space-5);
  flex-wrap: wrap;
}
.acq-footer-links a {
  color: var(--orc-ink-muted);
  text-decoration: none;
  font-size: var(--orc-text-sm);
}
.acq-footer-links a:hover { color: var(--orc-ink); }
.acq-footer-links a[aria-current="page"] {
  color: var(--orc-current-text);
  text-decoration: underline;
  text-underline-offset: 4px;
  font-weight: 600;
}
.acq-footer-links a:focus-visible {
  outline: 2px solid var(--orc-focus);
  outline-offset: 3px;
  border-radius: var(--orc-radius-sm);
}
.acq-footer-copy {
  font-size: var(--orc-text-xs);
  color: var(--orc-ink-muted);
  margin: 0;
}

@media (max-width: 576px) {
  .acq-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}
