/* Top navigation for the static pages (pricing, refund policy). It mirrors
   src/marketing/site-header.tsx measurement for measurement, so the bar does
   not shift when a visitor moves between these pages and the rest of the site.
   Change one and change the other. Colours come from each page's own
   variables: --bg, --fg, --muted, --line, --accent, --accent-fg. */
/* Same slim scrollbar as the app (src/index.css). The default one is wider,
   which narrows the page and nudges the whole bar sideways by a few pixels. */
* {
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--muted) 35%, transparent) transparent;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  -webkit-backdrop-filter: blur(24px);
  backdrop-filter: blur(24px);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
}
.site-header .bar {
  max-width: 1152px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-header a { text-decoration: none; }
.site-header .brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
  font-family: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  font-size: 20px;
  line-height: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
}
.site-header .brand img { width: 36px; height: 36px; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
  color: var(--muted);
  transition: color 150ms;
}
.site-nav a:hover { color: var(--fg); }
.site-nav a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.site-actions { display: flex; align-items: center; gap: 8px; }
.site-actions a {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 16px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  transition: background-color 150ms;
}
.site-actions a:hover { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.site-actions a.primary {
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-weight: 600;
}
.site-actions a.primary:hover { background: color-mix(in srgb, var(--accent) 90%, transparent); }

/* Phone: the links fold into a menu that needs no JavaScript. */
.site-menu { display: none; }
.site-menu summary {
  list-style: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  color: var(--muted);
  display: flex;
}
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu .panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.site-menu .panel a {
  display: block;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}
.site-menu .panel a[aria-current="page"] {
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
}
.site-menu .panel a.primary {
  margin-top: 8px;
  border-radius: 9999px;
  text-align: center;
  background: var(--accent);
  color: var(--accent-fg, #fff);
  font-weight: 600;
  padding: 10px 12px;
}
@media (max-width: 767px) {
  .site-nav, .site-actions { display: none; }
  .site-menu { display: block; }
}
