/* ============================================================================
   chrome.css — nav + footer.
   Modelled directly on attio.com's top bar: white, 64px, a hairline underline
   that is present AT REST (ref/attio-hero.png is a scroll-0 capture and the
   rule is visible there — an earlier note in this file claimed otherwise and
   was wrong), wordmark left, plain text links, ghost + dark button pair right.
   Scrolling changes only the background to a blur, never the rule.
   ========================================================================== */

/* ---------- wordmark ------------------------------------------------------ */

.ga-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.022em;
}
.ga-mark__box {
  display: grid;
  place-items: center;
  width: 23px; height: 23px;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font: 700 11px/1 var(--font);
  letter-spacing: .01em;
  flex: none;
}
.ga-mark__word { font-size: 16px; font-weight: 500; white-space: nowrap; }

/* ---------- nav ----------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--bg);
  /* Drawn as a box-shadow, not a border, so the bar's height never changes.
     Present at rest — Attio's is. */
  box-shadow: 0 1px 0 0 var(--line);
  transition: box-shadow .18s ease, background .18s ease;
}
/* Attio can use a translucent blurred bar because its whole page is light.
   Ours has a dark video band, and a .82-alpha bar with a backdrop blur samples
   that black and turns muddy grey as it scrolls over it. Opaque instead —
   correctness beats the effect. */
.nav.is-stuck {
  background: var(--bg);
  -webkit-backdrop-filter: none;
          backdrop-filter: none;
  box-shadow: 0 1px 0 0 var(--line);
}

.nav__in {
  height: 64px;
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 34px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: 10px;
}
.nav__links a {
  font-size: 16px;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
  text-decoration: none;
  transition: color .14s ease;
}
.nav__links a:hover { color: var(--ink-mute); }

.nav__spacer { flex: 1 1 auto; }

.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { height: 36px; padding: 0 15px; font-size: 15px; text-decoration: none; }

/* hamburger — two rules, exactly as Attio draws it */
.nav__burger {
  display: none;
  width: 40px; height: 40px;
  margin-right: -8px;
  border: 0; background: none; padding: 0;
  cursor: pointer;
  position: relative;
}
.nav__burger i {
  position: absolute;
  left: 8px; right: 8px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), opacity .14s ease;
}
.nav__burger i:nth-child(1) { top: 15px; }
.nav__burger i:nth-child(2) { top: 23px; }
.nav__burger[aria-expanded="true"] i:nth-child(1) { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] i:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- mobile menu — a real panel, not a hidden desktop nav ---------- */

.navmenu {
  position: fixed;
  inset: 64px 0 0;
  z-index: 89;
  background: var(--bg);
  padding: 10px 26px 34px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s;
}
.navmenu.is-open { opacity: 1; visibility: visible; transform: none; }

.navmenu a.navmenu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
  font-size: 20px;
  font-weight: 400;
  letter-spacing: -0.024em;
  color: var(--ink);
  text-decoration: none;
}
.navmenu a.navmenu__link svg { color: var(--ink-ghost); }
.navmenu__foot { margin-top: 26px; display: grid; gap: 10px; }
.navmenu__foot .btn { height: 46px; width: 100%; font-size: 16px; text-decoration: none; }

@media (max-width: 900px) {
  .nav__in { height: 56px; padding: 0 22px; }
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
  .navmenu { inset: 56px 0 0; padding-inline: 22px; }
}

/* ---------- footer -------------------------------------------------------- */

.foot {
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 64px 0 30px;
}
.foot__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.foot__blurb {
  margin-top: 14px;
  max-width: 310px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-mute);
}
/* Two columns of links, gridded across the right half on an even pitch.
   Laying them out as a flex row with a fixed 76px gap clumped them against
   the right edge and left a 503px hole in the middle of the rail. */
.foot__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  flex: 1 1 460px;
  max-width: 560px;
}
.foot__col { display: flex; flex-direction: column; gap: 11px; }
.foot__h {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 3px;
}
.foot__col a {
  font-size: 15px;
  color: var(--ink-mute);
  text-decoration: none;
  letter-spacing: -0.012em;
  transition: color .14s ease;
}
.foot__col a:hover { color: var(--ink); }

.foot__rule { height: 1px; background: var(--line); margin: 52px 0 0; }
.foot__bar {
  padding-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--ink-mute);
  letter-spacing: -0.008em;
}
.foot__legal { display: flex; align-items: center; gap: 14px; }
.foot__legal a { color: var(--ink-mute); text-decoration: none; }
.foot__legal a:hover { color: var(--ink); }
.foot__legal span[aria-hidden] { color: var(--ink-ghost); }

@media (max-width: 760px) {
  .foot { padding-top: 48px; }
  .foot__cols { gap: 48px; }
  .foot__bar { flex-direction: column; align-items: flex-start; gap: 12px; }
}
