/* ══════════════════════════════════════════════════════════════════
   Chirp marketing site — shared chrome (nav + footer partials + 404)
   Loaded from partials/head-common.html after css/site.css, so it only
   carries what the stamped partials need beyond the shell.

   The nav is the teardown's floating pill: fixed, rounded, one
   always-visible App Store action in every state. No sticky bottom
   bar, ever (SITE-ARCHITECTURE.md §4).
   ══════════════════════════════════════════════════════════════════ */

/* ── the floating pill ────────────────────────────────────────── */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 14px var(--gutter) 0;
  pointer-events: none;
}

.nav-pill {
  pointer-events: auto;
  position: relative;
  max-width: 980px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 251, 240, 0.86);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(212, 202, 184, 0.7);
  box-shadow: 0 2px 12px rgba(62, 36, 21, 0.05);
  transition: box-shadow 0.35s var(--ease-breathe), background 0.35s var(--ease-breathe);
}

.nav.is-scrolled .nav-pill {
  background: rgba(255, 251, 240, 0.94);
  box-shadow: var(--shadow-lift);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 28;
  font-size: 21px;
  font-weight: 600;
  color: var(--espresso);
  text-decoration: none;
  margin-right: auto;
  min-height: 44px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: var(--radius-pill);
  font-size: 15.5px;
  font-weight: 520;
  color: var(--ink);
  text-decoration: none;
  transition: background 0.2s var(--ease-breathe), color 0.2s var(--ease-breathe);
}

.nav-links a:hover { background: var(--clay-5); }
.nav-links a[aria-current="page"] { color: var(--espresso); background: var(--clay-5); }

.nav-badge { margin-left: 6px; flex: 0 0 auto; }
.nav-badge img { height: 35px; width: auto; }

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--espresso);
  cursor: pointer;
}

.nav-toggle line { transition: transform 0.3s var(--ease-breathe); transform-origin: 12px 12px; }

.nav-scrim {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(42, 24, 16, 0.32);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}

/* every page begins below the floating pill */
main { padding-top: 96px; }

/* ── nav, collapsed (≤1024: the shell's hinge) ────────────────── */

@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px;
    border-radius: var(--radius-band);
    background: rgba(255, 251, 240, 0.97);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-card);
    opacity: 0;
    transform: translateY(-8px) scale(0.99);
    visibility: hidden;
    transition: opacity 0.3s var(--ease-breathe), transform 0.3s var(--ease-breathe), visibility 0.3s;
  }

  .nav-open .nav-links {
    opacity: 1;
    transform: none;
    visibility: visible;
  }

  .nav-links a {
    min-height: 50px;
    padding: 0 16px;
    font-size: 17px;
  }

  .nav-open .nav-toggle .nav-toggle__top { transform: rotate(45deg) translate(0, 3.5px); }
  .nav-open .nav-toggle .nav-toggle__bottom { transform: rotate(-45deg) translate(0, -3.5px); }

  .nav-open, .nav-open body { overflow: hidden; }

  main { padding-top: 88px; }
}

@media (max-width: 430px) {
  .nav { padding-top: 10px; }
  .nav-pill { padding-left: 14px; }
  .nav-brand { font-size: 19px; }
  .nav-badge img { height: 33px; }
  main { padding-top: 80px; }
}

/* narrower than any iPhone (fold cover screens, zoomed embeds): keep the
   pill's three items clear of each other instead of colliding */
@media (max-width: 340px) {
  .nav-pill { gap: 6px; padding-left: 12px; }
  .nav-brand { font-size: 17px; gap: 7px; }
  .nav-brand img { width: 22px; height: 22px; }
  .nav-badge img { height: 29px; }
}

/* ── footer: the floating card ────────────────────────────────── */

.footer { padding: 0 0 28px; margin-top: var(--pad-section); }

.footer-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-band);
  box-shadow: var(--shadow-lift);
  padding: clamp(32px, 5vw, 56px) clamp(24px, 5vw, 56px) 28px;
}

.footer .bird {
  position: absolute;
  top: -68px;
  right: clamp(24px, 8vw, 84px);
}
.footer .bird img { width: 96px; height: 96px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 34px;
}

.footer-brandline {
  font-family: var(--font-display);
  font-variation-settings: 'opsz' 40;
  font-size: 24px;
  font-weight: 560;
  color: var(--espresso);
  margin: 0 0 10px;
}

.footer-entity {
  font-size: var(--size-small);
  color: var(--ink-soft);
  max-width: 34ch;
  margin: 0 0 18px;
}

.footer-head {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 640;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clay-3);
  margin: 4px 0 12px;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: var(--ink);
  text-decoration: none;
  font-size: 16px;
}
.footer-grid li a:hover { color: var(--espresso); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.22em; }

.footer-base {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-soft);
  padding-top: 20px;
}

.footer-copy, .footer-small {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}

@media (max-width: 768px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-brandcol { grid-column: 1 / -1; }
  .footer .bird { top: -62px; }
  .footer .bird img { width: 84px; height: 84px; }
}

/* ── 404 ──────────────────────────────────────────────────────── */

.notfound {
  padding: var(--pad-section) 0;
  text-align: center;
}

.notfound .eyebrow { font-family: var(--font-mono); letter-spacing: 0.2em; }

.notfound p {
  color: var(--ink-soft);
  max-width: 44ch;
  margin-inline: auto;
}

.notfound-links {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.notfound-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--panel);
  text-decoration: none;
  font-size: 15.5px;
  transition: border-color 0.2s var(--ease-breathe), box-shadow 0.2s var(--ease-breathe);
}
.notfound-links a:hover { border-color: var(--clay-3); box-shadow: var(--shadow-lift); }
