/* ── PathOS global styles ────────────────────────────────────────────────
 Shared by every page: design tokens, base type, the header nav, the mobile
 menu and the footer. This is the single place to change any of them.

 Page-specific rules stay in that page's own <style>. Anything that appears
 on more than one page belongs here instead — before this file existed the
 nav was copy-pasted into three pages and had already drifted apart.

 No build step: pages link this directly. Load it before the page's inline
 <style> so page rules can still override when they need to.
 ──────────────────────────────────────────────────────────────────────── */

:root{
  --bg: #fafbfd;
  --bg-warm: #dbe0ec;
  --bg-deep: #14171f;
  --ink: #14171d;
  --ink-soft: #3e424c;
  --ink-mute: #5b5f6a;
  --line: #d7dded;
  --pink: #ff3b9a;
  --pink-soft: #ffb0d6;
  --purple: #9b6bff;
  --purple-deep: #3d54c4;
  --cream: #ffffff;
  /* Sampled from the ring in TheRing.png, following its cool arc — blue at
     225deg through periwinkle to mauve. The ring's warm end (peach to gold)
     is left out on purpose: it reads at 1.4:1 on this background, so text
     set in it disappears. The last two stops are darkened a little from the
     sampled values to hold ~3:1, matching the gradient this replaced. */
  --brand-grad: linear-gradient(95deg, #527af6 0%, #7d7ee0 38%, #a27fbb 70%, #c6729a 100%);
  --serif: "Instrument Serif", "Cormorant Garamond", Georgia, serif;
  --sans: "DM Sans", system-ui, -apple-system, sans-serif;
  --display: "Space Grotesk", "DM Sans", system-ui, sans-serif;
}

*{ box-sizing: border-box; }
html, body{ margin:0; padding:0; overflow-x: hidden; }
body{
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img{ max-width: 100%; display:block; }
a{ color: inherit; text-decoration: none; }

.sr-only{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.skip-link{
  position: absolute; top: -200px; left: 16px;
  background: var(--ink); color: var(--cream);
  padding: 12px 18px; border-radius: 12px;
  font-weight: 600; font-size: 14px;
  z-index: 200;
  transition: top .2s ease;
}
.skip-link:focus{ top: 16px; outline: 3px solid var(--pink); outline-offset: 2px; }
:where(a, button, input, textarea, select, [tabindex]):focus-visible{
  outline: 3px solid var(--pink);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap{ max-width: 1440px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow{ max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ── Nav ── */
.nav{
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 40%, transparent);
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 35%, transparent);
}
.nav-inner{
  display:flex; align-items:center; justify-content: space-between;
  padding: 18px 32px;
  max-width: 1440px; margin: 0 auto;
}
.logo{ display:flex; align-items:center; }
.logo img{ height: 40px; width: auto; }
.nav-links{ display:flex; align-items:center; gap: 8px; }
.nav-link{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 16px;
  color: var(--ink-soft);
  transition: color .2s ease;
}
.nav-link:hover{ color: var(--ink); }
.nav-cta{
  font-family: var(--sans);
  font-weight: 500;
  font-size: 15px;
  padding: 11px 22px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  transition: transform .2s ease, background .2s ease;
  display:inline-flex; align-items:center; gap: 8px;
}
.nav-cta:hover{ background: #202329; transform: translateY(-1px); }

/* ── PathOS wordmark ──
   "Path" + the ring standing in for the O + "S", set in the display
   face. Placeholder for a supplied logo file: swap the whole .wordmark
   span for an <img> and this block can go. */
.wordmark{
  display: inline-flex; align-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 34px;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark img{
  height: 0.78em; width: auto;
  margin: -0.03em 0.004em 0;
}
footer .wordmark{ font-size: 28px; }

.burger{
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 10px;
  border-radius: 8px;
}
.burger .bar{
  width: 22px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  display: block;
  transition: transform .3s cubic-bezier(.4,0,.2,1), opacity .2s ease;
}
.burger.open .bar:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.burger.open .bar:nth-child(2){ opacity: 0; transform: scaleX(0); }
.burger.open .bar:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

.mobile-menu{
  display: none;
  position: fixed;
  inset: 0;
  z-index: 29;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 96px 32px 48px;
  text-align: center;
}
.mobile-menu.is-open{ display: flex; }
.mobile-nav-link{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(34px, 9vw, 52px);
  color: var(--ink);
  letter-spacing: -0.03em;
  line-height: 1;
  transition: opacity .2s ease;
}
.mobile-nav-link:hover{ opacity: 0.55; }
.mobile-nav-cta{
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 32px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 500;
  font-size: 17px;
  transition: background .2s ease;
}
.mobile-nav-cta .arrow{
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--brand-grad);
  color: var(--cream);
  display:grid; place-items:center; font-size: 13px;
}
.mobile-nav-cta:hover{ background: #202329; }

@media (max-width: 768px){
  .nav-links{ display: none; }
  .burger{ display: flex; }
}

/* ── Footer ── */
/* ── Footer ── */
footer{
  background: var(--bg);
  color: var(--ink-mute);
  padding: 48px 0 56px;
  border-top: 1px solid var(--line);
}
.footer-li{ color: var(--ink-mute); display:flex; align-items:center; transition: color .2s; }
.footer-li:hover{ color: var(--ink); }
.footer-privacy{ font-size: 14px; color: var(--ink-mute); transition: color .2s; }
.footer-privacy:hover{ color: var(--ink); }
footer .wrap{
  display:flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 24px;
}
footer small{ font-size: 14px; letter-spacing: 0.04em; }

@media (max-width: 640px){
  .wrap, .wrap-narrow{ padding: 0 16px; }
  .nav-inner{ padding: 14px 16px; }
  footer .wrap{ flex-direction: column; text-align: center; gap: 12px; }
}
