/*
 * Shared site chrome — the nav, phone menu, footer and store badges used on
 * every public page. Pages keep their own inline CSS for their content; this
 * file owns only the .sn-* (nav) and .sf-* (footer) blocks, so the two never
 * fight over a selector. The markup it styles is copied into each page; when
 * you change it, change it everywhere (grep for class="sn").
 *
 * Fonts: every page already loads Geist from Google Fonts.
 */

.sn, .sf, .badges {
  --sc-blue: #2563EB;
  --sc-blue-deep: #1742B0;
  --sc-ink: #0B1220;
  --sc-ink-2: #2A3245;
  --sc-mute: #5C6678;
  --sc-paper: #FAFBFD;
  --sc-line: rgba(11, 18, 32, 0.10);
  --sc-line-2: rgba(11, 18, 32, 0.18);
}

/* ===== Nav ===== */
.sn {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 251, 253, 0.9);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--sc-line);
  font-family: 'Geist', system-ui, sans-serif;
}
.sn-wrap {
  max-width: 1200px; margin: 0 auto; padding: 0 24px; height: 64px;
  display: flex; align-items: center; gap: 28px;
}
.sn a { text-decoration: none; }
.sn-brand { display: flex; align-items: center; gap: 10px; color: var(--sc-ink); }
.sn-brand img { width: 28px; height: 28px; display: block; }
.sn-brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.04em; }
.sn-brand b { color: var(--sc-blue); font-weight: 700; }
.sn-links { display: flex; gap: 24px; margin-left: 12px; }
.sn-links a { font-size: 15px; font-weight: 500; color: var(--sc-ink-2); }
.sn-links a:hover, .sn-links a[aria-current="page"] { color: var(--sc-ink); }
.sn-links a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--sc-blue); padding-bottom: 2px; }
.sn-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.sn-signin {
  font-size: 14px; font-weight: 600; color: var(--sc-ink-2);
  padding: 8px 14px; border: 1px solid var(--sc-line-2); border-radius: 8px;
}
.sn-signin:hover { border-color: var(--sc-ink-2); color: var(--sc-ink); }
.sn-cta {
  font-size: 14px; font-weight: 600; color: #fff;
  background: var(--sc-blue); padding: 9px 16px; border-radius: 8px;
}
.sn-cta:hover { background: var(--sc-blue-deep); }

/* Phone menu: a <details> so it works without JavaScript. */
.sn-menu { display: none; position: relative; }
.sn-menu > summary {
  list-style: none; cursor: pointer;
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--sc-line-2); color: var(--sc-ink);
}
.sn-menu > summary::-webkit-details-marker { display: none; }
.sn-menu > summary svg { display: block; }
.sn-menu .sn-close { display: none; }
.sn-menu[open] .sn-open { display: none; }
.sn-menu[open] .sn-close { display: block; }
.sn-panel {
  position: absolute; right: 0; top: 52px; width: min(300px, calc(100vw - 32px));
  background: #fff; border: 1px solid var(--sc-line); border-radius: 12px;
  box-shadow: 0 20px 40px -16px rgba(11, 18, 32, 0.3);
  padding: 8px; display: flex; flex-direction: column;
}
.sn-panel a {
  display: block; padding: 12px 14px; border-radius: 8px;
  font-size: 16px; font-weight: 500; color: var(--sc-ink);
}
.sn-panel a:hover { background: var(--sc-paper); }
.sn-panel hr { border: 0; border-top: 1px solid var(--sc-line); margin: 6px 0; width: 100%; }

@media (max-width: 900px) {
  .sn-links, .sn-signin { display: none; }
  .sn-menu { display: block; }
  .sn-wrap { padding: 0 16px; gap: 12px; }
}
@media (max-width: 380px) {
  .sn-cta { padding: 9px 12px; }
}

/* ===== Store badges (official artwork, unmodified) ===== */
.badges { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.badges a { display: block; line-height: 0; border-radius: 9px; }
.badges img { height: 44px; width: auto; display: block; }
.badges a:focus-visible { outline: 2px solid var(--sc-blue); outline-offset: 3px; }

/* ===== Footer ===== */
.sf {
  background: var(--sc-ink); color: rgba(255, 255, 255, 0.6);
  font-family: 'Geist', system-ui, sans-serif;
  padding: 56px 0 32px;
}
.sf a { text-decoration: none; }
.sf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.sf-top {
  display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px;
  padding-bottom: 40px; border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.sf-brand { display: flex; align-items: center; gap: 10px; color: #fff; }
.sf-brand img { width: 28px; height: 28px; display: block; }
.sf-brand span { font-size: 19px; font-weight: 700; letter-spacing: -0.04em; }
.sf-brand b { color: #6EA0FF; font-weight: 700; }
.sf-about p { font-size: 14px; line-height: 1.55; margin: 14px 0 18px; max-width: 300px; }
.sf h5 {
  color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0;
  margin: 0 0 14px;
}
.sf ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sf ul a { font-size: 14px; color: rgba(255, 255, 255, 0.6); }
.sf ul a:hover { color: #fff; }
.sf-bottom {
  padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px;
}
.sf-bottom a { color: rgba(255, 255, 255, 0.6); }
.sf-bottom a:hover { color: #fff; }

@media (max-width: 900px) {
  .sf-top { grid-template-columns: 1fr 1fr; }
  .sf-about { grid-column: 1 / -1; }
  .sf-wrap { padding: 0 16px; }
}
