/* Shared header and footer for every generated page (products, /verify/, /guides/).
   The homepage keeps the same rules in home.css; the lines between the COPY markers are copied
   verbatim from it, and tests/site.test.mjs fails if the two drift apart. */
.site-header, .site-footer, .mobile-nav {
  --bg: #0b0b10; --line: #1f2030; --line-2: #2c2d40; --ink: #f4f5f8; --ink-2: #cdd0dc; --muted: #8f93a6; --faint: #7a7e93;
  --blue-2: #7aa7ff; --violet-2: #c4a3ff; --green-2: #4ee0b0;
  --shell: 1200px; --gutter: 24px; --header-h: 64px; --ease: cubic-bezier(.16, 1, .3, 1);
  --glass-border: rgba(255, 255, 255, .1); --glass-blur: blur(22px) saturate(1.6); --glass-highlight: inset 0 1px 0 rgba(255, 255, 255, .07);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  font-size: 14px; line-height: 1.6;
}
.site-header .shell, .site-footer .shell { width: min(var(--shell), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
:where(.site-header, .site-footer) button { font: inherit; cursor: pointer; }
:where(.site-header, .site-footer) img, :where(.site-header, .site-footer) svg { display: block; }

/* COPY:START home.css */
.pill-button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 16px; border-radius: 999px; background: #fff; color: #0b0b10; font-size: 13px; font-weight: 600; white-space: nowrap; transition: transform .4s var(--ease), box-shadow .3s; }
.pill-button:hover { box-shadow: 0 4px 18px -4px rgba(168, 85, 247, .6); }
.ghost-button { display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .1); background: transparent; color: var(--muted); font-size: 13px; white-space: nowrap; transition: color .2s, border-color .2s; }
.ghost-button:hover { color: var(--ink); border-color: rgba(255, 255, 255, .22); }
/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(11, 11, 16, .42); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.site-header.is-scrolled { border-bottom-color: rgba(255, 255, 255, .07); background: rgba(11, 11, 16, .62); }
.header-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: none; }
.brand-logo { width: 28px; height: 28px; }
.brand-word { font-size: 18px; font-weight: 700; letter-spacing: -.03em; }
.desktop-nav { position: absolute; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; }
.desktop-nav > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px; color: var(--muted); font-size: 14px; white-space: nowrap; transition: color .2s, background .2s; }
.desktop-nav > a:hover { color: var(--ink); background: rgba(255, 255, 255, .05); }
.desktop-nav > a.is-current { color: var(--ink); background: rgba(255, 255, 255, .06); box-shadow: var(--glass-highlight); }
.site-header a:focus-visible, .menu-toggle:focus-visible { outline: 2px solid var(--blue-2); outline-offset: 3px; }
.menu-toggle { display: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: transparent; }
.menu-toggle span { display: block; width: 16px; height: 1.5px; margin: 4px auto; background: var(--ink); transition: transform .3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(2.75px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-2.75px) rotate(-45deg); }
.mobile-nav { display: none; }
/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer-main { display: flex; justify-content: space-between; gap: 48px; padding: 44px 0 32px; }
.footer-brand p { margin-top: 12px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.footer-links { display: flex; gap: clamp(40px, 6vw, 88px); }
.footer-links > div { display: flex; flex-direction: column; align-items: flex-start; }
.footer-links > div > span { margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 30px; padding: 0; border: 0; background: none; font-size: 13px; color: var(--muted); transition: color .2s; }
.footer-links a:hover, .footer-links button:hover { color: var(--ink); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 22px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: 12px; color: var(--faint); }
/* COPY:END */

/* Additions shared with home.css */
.mobile-nav[hidden] { display: none; }
.admin-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 14px; }
.admin-back:hover { color: var(--ink); }
.footer-note { padding: 0 0 18px; font-size: 12px; line-height: 1.8; color: var(--faint); }

@media (max-width: 1100px) {
  .desktop-nav > a { padding: 0 8px; }
}
@media (max-width: 960px) {
  .site-header, .mobile-nav { --header-h: 58px; }
  .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-nav { display: flex; flex-direction: column; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); background: rgba(11, 11, 16, .97); }
  .mobile-nav a, .mobile-nav button { display: flex; align-items: center; min-height: 48px; padding: 0 2px; border: 0; border-bottom: 1px solid var(--line); background: none; font-size: 15px; color: var(--ink-2); text-align: left; }
  .mobile-nav a[aria-current="page"] { color: var(--ink); background: rgba(255, 255, 255, .06); }
  .footer-main { flex-direction: column; }
}
@media (max-width: 640px) {
  .site-header, .site-footer, .mobile-nav { --gutter: 18px; }
  .brand-word { font-size: 17px; }
  .footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 16px; }
  .footer-bottom { flex-direction: column; gap: 4px; }
}
@media (max-width: 370px) {
  .header-actions .pill-button { display: none; }
}
