/* ========================================================================== 
   DevPath public marketing system
   --------------------------------------------------------------------------
   Public discovery and purchase pages intentionally use a lighter shell than
   the signed-in application. All colour and elevation decisions come from
   design-system.254abf175d7a.css; this file only defines the reusable marketing layout.
   ========================================================================== */

.marketing-page {
  margin: 0;
  min-width: 320px;
  /* `hidden` turns body into a scroll container and breaks the sticky public
     header in Chromium. `clip` prevents visual spill without stealing the
     document's vertical scroll context. */
  overflow-x: clip;
  background: var(--ds-bg);
  color: var(--ds-text);
  font-family: var(--ds-font-sans);
  line-height: var(--ds-leading-body);
}

.marketing-page *,
.marketing-page *::before,
.marketing-page *::after { box-sizing: border-box; }

.marketing-page a { text-decoration: none; }
.marketing-page button,
.marketing-page input { font: inherit; }
.marketing-page [id] { scroll-margin-top: 84px; }

.mk-skip-link {
  position: fixed;
  top: var(--ds-space-3);
  left: var(--ds-space-3);
  z-index: var(--ds-z-skiplink);
  padding: var(--ds-space-2) var(--ds-space-4);
  border-radius: var(--ds-radius);
  background: var(--must);
  color: var(--ds-text-on-fill);
  font-weight: 800;
  transform: translateY(-180%);
  transition: transform var(--ds-motion-fast) var(--ds-ease);
}
.mk-skip-link:focus { transform: translateY(0); }

.mk-container {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.mk-nav {
  position: sticky;
  top: 0;
  z-index: var(--ds-z-navbar);
  border-bottom: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface);
  box-shadow: var(--ds-shadow-sm);
}
.mk-nav__inner {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: var(--ds-space-5);
}
.mk-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--ds-text);
  font-size: var(--ds-text-md);
  font-weight: 800;
  letter-spacing: -.02em;
}
.mk-brand__mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  border-radius: var(--ds-radius);
  background: var(--must);
  color: var(--ds-text-on-fill);
  font: 800 var(--ds-text-sm) / 1 var(--ds-font-mono);
}
.mk-nav__links {
  display: flex;
  align-items: center;
  gap: var(--ds-space-1);
  margin-left: auto;
}
.mk-nav__link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 var(--ds-space-3);
  border-radius: var(--ds-radius);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-base);
  font-weight: 700;
  transition: color var(--ds-motion-fast), background var(--ds-motion-fast);
}
.mk-nav__link:hover,
.mk-nav__link[aria-current="page"] {
  background: var(--ds-surface-2);
  color: var(--ds-text);
}
.mk-nav__actions {
  display: flex;
  align-items: center;
  gap: var(--ds-space-2);
}

.mk-button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--ds-space-2);
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--ds-radius);
  cursor: pointer;
  font-size: var(--ds-text-base);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  transition: transform var(--ds-motion-fast) var(--ds-ease),
              background var(--ds-motion-fast), border-color var(--ds-motion-fast),
              color var(--ds-motion-fast), box-shadow var(--ds-motion-fast);
}
.mk-button:hover { transform: translateY(-1px); }
.mk-button:active { transform: translateY(0); }
.mk-button:disabled { opacity: .62; cursor: progress; transform: none; }
.mk-button--primary {
  background: var(--must);
  color: var(--ds-text-on-fill);
  box-shadow: var(--ds-shadow);
}
.mk-button--primary:hover { background: var(--ds-accent-hover); box-shadow: var(--ds-shadow-lg); }
/* Pricing page only: the annual plan is the one the page recommends, so its
   button gets a fixed multi-hue gradient ring rather than the plain fill -
   built from the --ds-swatch-* tokens (design-system.254abf175d7a.css) so this file stays
   free of raw hex per ui-ux-contract.test.mjs, same mid-tone hues CLAUDE.md
   already documents for JS-painted colour, chosen to read on both canvases.
   Double-background is used instead of border-image because border-image
   ignores border-radius and this button is rounded. */
.pricing-page [data-plan="annual"] {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--must), var(--must)),
    linear-gradient(120deg, var(--ds-swatch-blue), var(--ds-swatch-purple), var(--ds-swatch-rose),
      var(--ds-swatch-orange), var(--ds-swatch-green), var(--ds-swatch-cyan));
  background-origin: border-box;
  background-clip: padding-box, border-box;
}
.mk-button--secondary {
  border-color: var(--ds-border);
  background: var(--ds-surface-3);
  color: var(--ds-text);
}
.mk-button--secondary:hover { border-color: var(--ds-border-strong); background: var(--ds-surface-4); }
.mk-button--quiet {
  min-width: 44px;
  padding-inline: 0;
  border-color: var(--ds-border);
  background: transparent;
  color: var(--ds-text-2);
}
.mk-button--quiet:hover { background: var(--ds-surface-2); color: var(--ds-text); }
.mk-button--large { min-height: 50px; padding-inline: 24px; font-size: var(--ds-text-md); }
.mk-button--wide { width: 100%; }

.mk-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--ds-space-2);
  margin-bottom: var(--ds-space-3);
  color: var(--accent);
  font: 800 var(--ds-text-xs) / 1.3 var(--ds-font-mono);
  letter-spacing: var(--ds-tracking-wide);
  text-transform: uppercase;
}
.mk-eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 5px var(--accent-bg);
}

.mk-trust-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
  font-weight: 700;
}
.mk-trust-row span { display: inline-flex; align-items: center; gap: 7px; }
.mk-trust-row span::before { content: '\2713'; color: var(--done); font-weight: 900; }

.mk-final-cta {
  padding: var(--ds-space-8) 0;
  border-top: 1px solid var(--ds-border-subtle);
  background: var(--ds-surface);
}
.mk-final-cta__card {
  position: relative;
  overflow: hidden;
  padding: clamp(32px, 6vw, 64px);
  border: 1px solid var(--accent-bd);
  border-radius: var(--ds-radius-xl);
  background: linear-gradient(145deg, var(--accent-bg), var(--ds-surface-3) 58%);
  text-align: center;
  box-shadow: var(--ds-shadow-lg);
}
.mk-final-cta__card h2 {
  max-width: 720px;
  margin: 0 auto var(--ds-space-3);
  color: var(--ds-text);
  font-size: var(--ds-text-2xl);
  line-height: 1.15;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.mk-final-cta__card p {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ds-text-2);
}
.mk-final-cta__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--ds-space-3);
  margin-top: var(--ds-space-5);
}
.mk-final-cta .mk-trust-row { justify-content: center; margin-top: var(--ds-space-5); }

.mk-footer {
  padding: var(--ds-space-6) 0;
  border-top: 1px solid var(--ds-border-subtle);
  background: var(--ds-bg);
}
.mk-footer__inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--ds-space-5);
}
.mk-footer__links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--ds-space-2) var(--ds-space-5);
}
.mk-footer__links a {
  color: var(--ds-text-muted);
  font-size: var(--ds-text-sm);
  font-weight: 700;
}
.mk-footer__links a:hover { color: var(--ds-text); }
.mk-footer__copy { color: var(--ds-text-muted); font: 600 var(--ds-text-xs) / 1.5 var(--ds-font-mono); }

.marketing-page :focus-visible {
  outline: 3px solid var(--ds-warning);
  outline-offset: 3px;
}

@media (max-width: 820px) {
  .mk-footer__inner { grid-template-columns: 1fr; justify-items: center; text-align: center; }
}

@media (max-width: 560px) {
  .mk-container { width: min(100% - 32px, 1160px); }
  .mk-nav__inner { min-height: 62px; gap: var(--ds-space-2); }
  .mk-brand__mark { width: 34px; height: 34px; flex-basis: 34px; }
  .mk-nav__actions .mk-button--secondary { display: none; }
  .mk-button--large { width: 100%; }
  .mk-final-cta { padding-block: var(--ds-space-7); }
  .mk-final-cta__actions { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  .mk-button,
  .mk-skip-link { transition: none; }
}

/* Keep pricing and sign-in reachable on narrow screens, including text zoom. */
@media(max-width:820px){
 .mk-nav__inner{flex-wrap:wrap;padding-block:10px;gap:8px}
 .mk-nav__links{display:flex;order:3;width:100%;justify-content:center;flex-wrap:wrap}
 .mk-nav__link{min-height:44px;display:inline-flex;align-items:center}
 .mk-nav__actions{flex-wrap:wrap;gap:6px}
}
@media(max-width:560px){
 /* Three wrapped rows is ~160px - a third of a phone screen - to keep
    pinned while reading a price table. It scrolls away instead. */
 .mk-nav{position:static}
 .mk-nav__actions .mk-button--secondary{display:inline-flex}
 .mk-nav__actions .mk-button{padding-inline:12px}
 /* Two rows, not three: brand, theme and account share the first; the page
    links take the second. "Explore roadmap" is the one action that also
    sits on the page itself, so it is the one that goes. */
 .mk-nav__actions{margin-left:auto;flex-wrap:nowrap}
 /* Specific enough to beat design-system.254abf175d7a.css's html:root :is(.mk-button…) display rule. */
 .mk-nav .mk-nav__inner .mk-nav__actions a.mk-button--secondary{display:none}
}
.marketing-page [id]{scroll-margin-top:140px}
.marketing-page .mk-button{white-space:normal;text-align:center}

.marketing-page main p a,.marketing-page main li a{color:var(--accent);text-decoration:underline;text-underline-offset:3px}

/* A long address must wrap rather than push the page wider (pricing at 320px). */
a[href^="mailto:"]{overflow-wrap:anywhere}
