/*
 * The marketing site's header (nav.top) and footer (footer.bot), for public
 * pages that don't carry them inline (compare.html, blog, changelog, privacy,
 * terms). Copied from landing.html and scoped to the two blocks, with their own
 * colour tokens, so a page's own styles can't restyle them.
 * Markup: content/site-chrome/*.html, synced by scripts/sync-site-chrome.mjs.
 */
nav.top, footer.bot {
  --paper: #EFF1F1;
  --ink: #0E1428;
  --ink-2: #1B2340;
  --accent: #E8B14F;
  --accent-2: #1B2340;
  --serif: "Wix Madefor Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, "Helvetica Neue", Arial, sans-serif;
  box-sizing: border-box;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
nav.top *, footer.bot * { box-sizing: border-box; }
nav.top a, footer.bot a { color: inherit; text-decoration: none; }

body { padding-top: 88px; }

/* ---- Nav: floating pill + mobile menu ---- */
/* Fixed, but it slides out of the way while reading: hidden on scroll down,
   back as soon as the reader scrolls up (site-chrome.js toggles .nav-hidden). */
nav.top {
  position: fixed; top: 20px; left: 0; right: 0; z-index: 50;
  transition: transform .28s ease;
  display: flex; justify-content: center;
  pointer-events: none;
  font-family: var(--sans); font-size: 17px; color: var(--ink);
}
nav.top .pill {
  pointer-events: auto;
  display: inline-flex; align-items: center; gap: 28px;
  padding: 10px 14px 10px 22px;
  background: color-mix(in oklab, var(--paper) 92%, white);
  border: 1px solid color-mix(in oklab, var(--ink) 10%, transparent);
  border-radius: 999px;
  box-shadow: 0 8px 24px -12px rgba(14,20,40,0.18), 0 2px 6px rgba(14,20,40,0.04);
  backdrop-filter: blur(8px);
}
nav.top .brand {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--serif); font-weight: 700;
  font-size: 20px; letter-spacing: -0.03em;
  color: var(--ink);
}
nav.top .brand-mark {
  width: 24px; height: 24px;
  background: var(--ink);
  display: grid; place-items: center;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px hsla(0,0%,100%,0.12);
}
nav.top .brand-mark svg { width: 18px; height: 18px; display: block; }
nav.top .brand-mark path {
  fill: none; stroke: var(--paper); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1 1; stroke-dashoffset: 0;
}
nav.top .brand-mark.drawing .r0 { animation: rhqDrawR 0.9s cubic-bezier(0.23,0.88,0.26,0.92) both; }
nav.top .brand-mark.drawing .r1 { animation: rhqDrawR 0.9s cubic-bezier(0.23,0.88,0.26,0.92) both; animation-delay: 0.18s; }
@keyframes rhqDrawR { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) {
  nav.top .brand-mark.drawing .r0, nav.top .brand-mark.drawing .r1 { animation: none; }
}
nav.top .nav-links { display: inline-flex; gap: 28px; font-size: 14px; color: var(--ink); font-weight: 500; }
nav.top .nav-links a { padding: 4px 2px; }
nav.top .nav-links a:hover { color: var(--accent-2); }
nav.top .nav-cta { display: inline-flex; gap: 6px; align-items: center; }
nav.top .btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1.5;
  border: 1px solid transparent; cursor: pointer;
  background: var(--ink); color: var(--paper);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
}
nav.top .btn:hover { transform: translateY(-1px); background: var(--ink-2); }
nav.top .nav-install-icon { display: none; }
nav.top .link-ic {
  width: 15px; height: 15px; flex-shrink: 0;
  vertical-align: -2px; margin-left: 2px; display: inline-block;
  transition: transform 0.2s ease;
}
nav.top a:hover > .link-ic { transform: translateX(2px); }

nav.top .nav-burger {
  display: none;
  width: 40px; height: 40px;
  background: color-mix(in oklab, var(--paper) 96%, white);
  border: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
  border-radius: 12px;
  cursor: pointer; position: relative;
  align-items: center; justify-content: center;
  margin: 0; padding: 0;
  transition: background 200ms ease, transform 200ms ease;
}
nav.top .nav-burger:hover { background: color-mix(in oklab, var(--paper) 88%, white); }
nav.top .nav-burger span {
  display: block; width: 4px; height: 4px; border-radius: 999px;
  background: var(--ink); position: relative;
  transition: transform 200ms ease, opacity 200ms ease;
}
nav.top .nav-burger span::before, nav.top .nav-burger span::after {
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 4px; height: 4px; border-radius: 999px;
  background: var(--ink);
  transition: transform 200ms ease, opacity 200ms ease, width 200ms ease, height 200ms ease, background 200ms ease;
}
nav.top .nav-burger span::before { transform: translate(-50%, -50%) translateX(-7px); }
nav.top .nav-burger span::after { transform: translate(-50%, -50%) translateX(7px); }
nav.top .nav-burger[aria-expanded="true"] { background: var(--ink); }
nav.top .nav-burger[aria-expanded="true"] span { background: transparent; }
nav.top .nav-burger[aria-expanded="true"] span::before {
  width: 18px; height: 2px; border-radius: 2px; background: var(--paper);
  transform: translate(-50%, -50%) rotate(45deg);
}
nav.top .nav-burger[aria-expanded="true"] span::after {
  width: 18px; height: 2px; border-radius: 2px; background: var(--paper);
  transform: translate(-50%, -50%) rotate(-45deg);
}

nav.top.nav-hidden { transform: translateY(calc(-100% - 40px)); }
@media (prefers-reduced-motion: reduce) { nav.top { transition: none; } }
nav.top .nav-sheet {
  display: none;
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: color-mix(in oklab, var(--paper) 96%, white);
  border: 1px solid color-mix(in oklab, var(--ink) 12%, transparent);
  border-radius: 18px;
  box-shadow: 0 24px 48px -16px rgba(14,20,40,0.25);
  padding: 18px; z-index: 49;
  backdrop-filter: blur(8px);
  pointer-events: auto;
}
nav.top .nav-sheet.open { display: block; }
nav.top .nav-sheet a {
  display: block; padding: 14px 8px;
  font-size: 16px; font-weight: 500;
  border-bottom: 1px solid color-mix(in oklab, var(--ink) 8%, transparent);
}
nav.top .nav-sheet a:last-child { border-bottom: 0; }
nav.top .nav-sheet a:hover { color: var(--accent-2); }

@media (max-width: 760px) {
  nav.top { top: max(14px, env(safe-area-inset-top, 14px)); left: 14px; right: 14px; }
  nav.top .pill { width: 100%; gap: 12px; padding: 8px 14px 8px 18px; }
  nav.top .nav-links { display: none; }
  nav.top .nav-burger { display: inline-flex; }
  body { padding-top: calc(76px + env(safe-area-inset-top, 0px)); }
  nav.top .nav-cta { margin-left: auto; }
  nav.top .nav-install-text { display: none; }
  nav.top .nav-install {
    position: relative; padding: 0;
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  nav.top .nav-install-icon { display: inline-flex; align-items: center; justify-content: center; }
  nav.top .nav-install-icon svg { width: 18px; height: 18px; }
  nav.top .nav-install-free {
    position: absolute; top: -5px; right: -7px;
    font-family: var(--sans); font-size: 8px; font-weight: 700;
    line-height: 1; text-transform: uppercase; letter-spacing: 0.04em;
    background: var(--accent); color: var(--ink);
    padding: 2px 4px; border-radius: 999px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  }
}

/* ---- Footer ---- */
footer.bot {
  position: relative;
  background: #111014;
  color: color-mix(in oklab, var(--paper) 72%, transparent);
  padding: 80px 0 0;
  overflow: hidden;
  font-family: var(--sans); font-size: 17px;
}
footer.bot .container { max-width: 1280px; margin: 0 auto; padding: 0 32px; position: relative; z-index: 1; }
footer.bot .bot-top { display: flex; justify-content: space-between; align-items: start; gap: 40px; padding-bottom: 90px; }
footer.bot .bot-top > .bot-tagline { flex: 0 1 auto; }
footer.bot .bot-top > .bot-col { flex: 0 0 auto; }
footer.bot .bot-tagline { margin: 0; color: var(--paper); display: block; width: fit-content; width: -moz-fit-content; font-size: inherit; }
footer.bot .bot-tagline-small {
  display: block;
  font-family: var(--sans); font-weight: 500; font-style: italic;
  font-size: clamp(38px, 11.3vw, 68px); letter-spacing: -0.01em; line-height: 1.0;
  color: color-mix(in oklab, var(--paper) 45%, transparent);
  margin-bottom: 10px; white-space: nowrap;
}
footer.bot .bot-tagline-small strong { font-weight: inherit; font-style: inherit; color: inherit; }
footer.bot .bot-tagline-big {
  display: block;
  font-family: var(--serif); font-weight: 800;
  font-size: clamp(34px, 10vw, 62px);
  line-height: 0.95; letter-spacing: -0.045em;
  text-transform: uppercase; color: #fff; white-space: nowrap;
  text-shadow: 0 2px 30px rgba(255,255,255,0.12);
}
footer.bot .bot-col-head { display: block; margin-bottom: 18px; font-family: var(--sans); font-size: 16px; font-weight: 600; color: var(--paper); }
footer.bot .bot-chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 280px; }
footer.bot .bot-chip {
  display: inline-flex; align-items: center;
  padding: 7px 14px; border-radius: 8px;
  background: color-mix(in oklab, var(--paper) 92%, white);
  color: var(--ink);
  font-family: var(--sans); font-size: 13px; font-weight: 500; line-height: 1.5;
  transition: background 0.2s ease, transform 0.2s ease;
}
footer.bot .bot-chip:hover { background: var(--paper); transform: translateY(-2px); }
footer.bot .bot-email {
  display: inline-block;
  color: color-mix(in oklab, var(--paper) 85%, transparent);
  font-family: var(--sans); font-size: 15px;
  border-bottom: 1px solid color-mix(in oklab, var(--paper) 25%, transparent);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
footer.bot .bot-email:hover { color: var(--paper); border-color: var(--paper); }
footer.bot .bot-note { display: block; margin-top: 16px; font-family: var(--sans); font-size: 13px; color: color-mix(in oklab, var(--paper) 45%, transparent); }
footer.bot .bot-wordmark {
  position: absolute; left: 50%; bottom: -0.18em;
  transform: translateX(-50%);
  width: 110%; text-align: center;
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(120px, 23vw, 360px);
  line-height: 0.8; letter-spacing: -0.04em;
  color: color-mix(in oklab, var(--paper) 11%, transparent);
  pointer-events: none; user-select: none; white-space: nowrap;
}
footer.bot .bot-base { position: relative; z-index: 1; padding: 24px 0 28px; font-family: var(--sans); font-size: 12px; color: color-mix(in oklab, var(--paper) 40%, transparent); }
@media (max-width: 860px) {
  footer.bot { padding-top: 56px; }
  footer.bot .bot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 24px; padding-bottom: 70px; }
  footer.bot .bot-tagline { grid-column: 1 / -1; }
  footer.bot .bot-wordmark { font-size: clamp(90px, 30vw, 240px); }
}
@media (max-width: 640px) { footer.bot .container { padding: 0 18px; } }
@media (max-width: 520px) { footer.bot .bot-top { grid-template-columns: 1fr; gap: 32px; } }
