/* Marketing top navigation (index, pricing). A floating pill bar: transparent over the dark hero,
   then a blurred dark bar once the page scrolls. Phones get a round menu button and a dropdown card. */
.tn { position: fixed; inset: 0 0 auto 0; z-index: 50; padding: 10px 12px; pointer-events: none; font-family: 'Outfit', system-ui, sans-serif; }
.tn-bar { pointer-events: auto; max-width: 1200px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 10px 8px 18px; border-radius: 999px; color: #F6EFDC; border: 1px solid transparent;
  transition: background-color .3s, border-color .3s, box-shadow .3s, backdrop-filter .3s; }
.tn.scrolled .tn-bar, .tn.open .tn-bar { background: rgba(18, 15, 9, .78); border-color: rgba(233, 198, 90, .16);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .32); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2); }
.tn .logo { color: #F6EFDC; }
.tn-links { display: flex; align-items: center; gap: 2px; }
.tn-links a, .tn-login { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px; text-decoration: none;
  font-size: 15px; font-weight: 600; color: rgba(246, 239, 220, .82); white-space: nowrap; transition: background-color .15s, color .15s; }
.tn-links a:hover, .tn-login:hover { background: rgba(246, 239, 220, .08); color: #F6EFDC; }
.tn-links a[aria-current="page"] { color: #E9C65A; background: rgba(233, 198, 90, .10); }
.tn-right { display: flex; align-items: center; gap: 6px; }
.tn-cta { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 20px; border-radius: 999px; text-decoration: none;
  background: #E9C65A; color: #0E0C08; font-size: 15px; font-weight: 700; white-space: nowrap; transition: filter .15s; }
.tn-cta:hover { filter: brightness(1.06); }
.tn-menu { display: none; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; place-items: center; flex: none;
  background: rgba(246, 239, 220, .1); color: #F6EFDC; }
.tn-menu:hover { background: rgba(246, 239, 220, .16); }
.tn-menu svg { width: 18px; height: 18px; }
.tn-menu .x { display: none; } .tn.open .tn-menu .x { display: block; } .tn.open .tn-menu .bars { display: none; }
.tn a:focus-visible, .tn button:focus-visible { outline: 2px solid #E9C65A; outline-offset: 2px; }
.tn-panel { pointer-events: auto; max-width: 1200px; margin: 8px auto 0; padding: 10px; border-radius: 28px; background: rgba(18, 15, 9, .94);
  border: 1px solid rgba(233, 198, 90, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .4); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); color: #F6EFDC; }
.tn-panel a.row { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 18px; border-radius: 16px; text-decoration: none; font-size: 17px; font-weight: 600; color: #F6EFDC; }
.tn-panel a.row:hover { background: rgba(246, 239, 220, .06); }
.tn-panel a.row[aria-current="page"] { color: #E9C65A; }
.tn-panel a.row svg { width: 16px; height: 16px; opacity: .6; }
.tn-panel .btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.tn-panel .btns a { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 16px; }
.tn-panel .btns .ghost { background: rgba(246, 239, 220, .1); color: #F6EFDC; }
.tn-panel .btns .gold { background: #E9C65A; color: #0E0C08; }
.tn-space { height: 76px; }
@media (max-width: 920px) {
  .tn-links, .tn-login { display: none; }
  .tn-menu { display: grid; }
}
/* Phones (every width up to 640px, incl. 440px Pro Max and landscape): compact bar, short CTA label. */
@media (max-width: 640px) {
  .tn { padding: 8px; }
  .tn-bar { padding: 6px 6px 6px 14px; }
  .tn .logo { gap: 10px !important; }
  .tn .logo b { font-size: 22px !important; }
  .tn .logo svg { width: 56px; height: 26px; }
  .tn-cta { padding: 0 16px; font-size: 14px; }
  .tn-cta .long { display: none; }
  .tn-space { height: 68px; }
}
@media (min-width: 641px) { .tn-cta .short { display: none; } }
@media (max-width: 360px) {
  .tn .logo b { font-size: 19px !important; }
  .tn .logo svg { width: 46px; height: 21px; }
  .tn-cta { padding: 0 13px; }
}
/* Sales open: the CTA reads "Start free" (wider than "Join"), so the smallest phones need a tighter bar. */
@media (max-width: 400px) {
  .sales-open .tn-bar { gap: 8px; }
  .sales-open .tn .logo { gap: 8px !important; }
  .sales-open .tn .logo b { font-size: 18px !important; }
  .sales-open .tn .logo svg { width: 42px; height: 19px; }
  .sales-open .tn-cta { padding: 0 12px; }
}
@media (max-width: 345px) {
  .tn { padding: 6px; }
  .tn-bar { gap: 6px; padding: 6px 6px 6px 10px; }
  .tn .logo { gap: 6px !important; }
  .tn .logo b, .sales-open .tn .logo b { font-size: 16px !important; }
  .tn .logo svg, .sales-open .tn .logo svg { width: 36px; height: 16px; }
  .tn-cta, .sales-open .tn-cta { padding: 0 11px; }
}
/* Narrow desktops (921-1100px): links + Log in + CTA must still fit on one row. */
@media (min-width: 921px) and (max-width: 1100px) {
  .tn-links a, .tn-login { padding: 0 11px; }
  .tn-bar { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .tn-bar { transition: none; } }
/* Phones: 48px thumb targets (UX round 1). */
@media (max-width: 640px) { .tn-menu { width: 48px; height: 48px; } .tn-cta { min-height: 48px; } }
