/* Shared styling for the static marketing pages (pricing.html, tree-work.html).
   atlas-v2: ink and cool grey; only the four BS 5837 categories are saturated.
   No-JS friendly and crawler-safe. Prices in those pages come from
   src/marketing/pricing-display.ts at build time (vite.config.ts,
   marketingPages plugin).

   Fonts are the app's own self-hosted files (no Google Fonts request). The
   /__font/… URLs below are rewritten at build time to the fingerprinted
   files Vite already emits for the app, so the browser and the service
   worker share one copy. */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/archivo-latin-600-normal-3BBy0ZsW.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/geist-latin-400-normal-B40WzpMT.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/geist-latin-500-normal-CTWBw9NS.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/jetbrains-mono-latin-500-normal-BWZEU5yA.woff2") format("woff2");
}

:root {
  --ink: #0e1620;
  --ink2: #566270;
  --ink3: #7d8794;
  --line: #d3d9e0;
  --rec: #e9ecf0;
  --base: #f3f5f7;
  --surf: #ffffff;
  --cat-a: #188a4e;
  --cat-b: #2b6fd6;
  --cat-c: #6b7582;
  --cat-u: #a12b2b;
  --head: "Archivo", system-ui, sans-serif;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  font-synthesis-weight: none;
}
body {
  margin: 0;
  background: var(--base);
  color: var(--ink);
  font: 16px / 1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
[hidden] {
  display: none !important;
}
a {
  color: var(--ink);
}
a:hover {
  color: var(--ink2);
}
:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
}
p {
  margin: 0;
}
.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px;
}
.mono {
  font-family: var(--mono);
  font-weight: 500;
}
.h {
  font-family: var(--head);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  line-height: 1.1;
}
.h1 {
  font-size: clamp(36px, 5vw, 56px);
}
.h2 {
  font-size: clamp(28px, 3.4vw, 38px);
}
.sub {
  color: var(--ink2);
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 60;
  background: var(--ink);
  color: #fff;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
}
.skip:focus {
  left: 16px;
  color: #fff;
}
.eyebrow {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink2);
  margin: 0 0 10px;
}

/* Header */
.hdr {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surf);
  border-bottom: 1px solid var(--line);
}
.hdr-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 68px;
}
.wm {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
  font-family: var(--head);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.nav {
  display: flex;
  gap: 4px;
  margin-left: 8px;
}
.nav a {
  text-decoration: none;
  color: var(--ink2);
  font-weight: 500;
  font-size: 15px;
  padding: 0 12px;
  border-radius: 8px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.nav a:hover {
  color: var(--ink);
}
.nav a[aria-current="page"] {
  color: var(--ink);
  background: var(--rec);
}
.hr {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surf);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}
.menu {
  border-top: 1px solid var(--line);
  padding: 8px 0 16px;
}
.menu a {
  display: flex;
  align-items: center;
  min-height: 48px;
  font-size: 17px;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid var(--rec);
}
.menu .btn {
  margin-top: 16px;
  width: 100%;
  border-bottom: 0;
}

/* Buttons, chips, cards */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  font: 500 16px / 1.2 var(--sans);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}
.bp {
  background: var(--ink);
  color: #fff;
}
.bp:hover {
  color: #fff;
  background: #1e2a36;
}
.bs {
  background: var(--surf);
  color: var(--ink);
  border-color: var(--line);
}
.bs:hover {
  color: var(--ink);
  border-color: var(--ink3);
}
.bt {
  background: transparent;
  color: var(--ink);
  padding: 0 12px;
}
.ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}
.card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 16px;
  min-width: 0;
}
.chip {
  display: inline-flex;
  align-items: center;
  font-family: var(--mono);
  font-weight: 500;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 8px;
  border: 1.5px solid currentColor;
  color: var(--ink);
  line-height: 1.4;
  white-space: nowrap;
}
.cA {
  color: var(--cat-a);
}
.cB {
  color: var(--cat-b);
}
.cU {
  color: var(--cat-u);
}
.tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink2);
  border: 1px dashed var(--ink3);
  border-radius: 6px;
  padding: 1px 6px;
  margin-left: 6px;
  vertical-align: 1px;
}
.vat {
  color: var(--ink2);
  font-family: var(--mono);
  font-size: 13px;
  background: var(--rec);
  border-radius: 6px;
  padding: 1px 6px;
}
.risk {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  font-size: 14px;
  color: var(--ink2);
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.crumb {
  font-size: 14px;
  color: var(--ink2);
  padding: 20px 0 0;
}
.crumb ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}
.crumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.crumb li {
  display: flex;
  align-items: center;
}
.crumb li + li::before {
  content: "›";
  margin-right: 8px;
  color: var(--ink3);
}
.sec {
  padding: 88px 0 0;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}
details {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
}
summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 22px;
  min-height: 56px;
  font-weight: 500;
  font-size: 17px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--ink2);
  font-size: 20px;
}
details[open] summary::after {
  content: "–";
}
details p {
  padding: 0 22px 20px;
  color: var(--ink2);
}

/* Dark CTA band */
.cta {
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 56px 48px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: center;
  justify-content: space-between;
}
.cta .sub,
.cta .risk {
  color: #c9d0d8;
}
.cta a:not(.btn) {
  color: #fff;
}
.cta .bp {
  background: #fff;
  color: var(--ink);
}
.cta .bp:hover {
  background: var(--rec);
  color: var(--ink);
}
.cta .bs {
  background: transparent;
  color: #fff;
  border-color: var(--ink3);
}
.cta :focus-visible {
  outline-color: #fff;
}

/* Store badges: stand-ins until the official artwork replaces them. */
.badges {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #000;
  color: #fff;
  border-radius: 10px;
  padding: 0 14px 0 12px;
  min-height: 44px;
  text-decoration: none;
  border: 1px solid #566270;
}
.badge:hover {
  color: #fff;
}
.badge b {
  display: block;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.1;
}
.badge small {
  display: block;
  font-size: 10px;
  line-height: 1.1;
}
.badge-soon {
  background: var(--surf);
  color: var(--ink);
  border: 1px dashed var(--ink3);
}
.badge-soon path {
  stroke: var(--ink);
}
.cta .badge {
  border-color: #a6a6a6;
}
.cta .badge-soon {
  background: transparent;
  color: #fff;
  border-color: #a6a6a6;
}
.cta .badge-soon path {
  stroke: #fff;
}

/* Footer */
.ftr {
  margin-top: 88px;
  background: var(--surf);
  border-top: 1px solid var(--line);
  padding: 48px 0 40px;
  font-size: 14px;
  color: var(--ink2);
}
.ftr .cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
}
.ftr h2 {
  font-family: var(--sans);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 10px;
  font-weight: 500;
}
.ftr ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.ftr li a {
  color: var(--ink2);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
}
.ftr li a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.ftr .legal {
  margin: 36px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

@media (min-width: 901px) {
  .menu {
    display: none !important;
  }
}
@media (max-width: 900px) {
  .nav,
  .hr .bt,
  .hr .bp {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
}
@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }
  .cta {
    padding: 36px 20px;
  }
  .cta .btn {
    width: 100%;
  }
  .sec {
    padding-top: 64px;
  }
  .ftr .cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ftr .cols > div:first-child {
    grid-column: 1 / -1;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}
