/* ── Nav ── */
:root { --balance-gray: #d8d8d8; }
.nav { position: fixed; z-index: 60; top: 12px; left: 50%; translate: -50% 0; width: min(calc(100% - 24px), 1000px); }
.js .nav { animation: navIn 240ms var(--out) both; }
@keyframes navIn { from { opacity: 0; translate: -50% -6px; } }
.nav__bar { position: relative; display: flex; align-items: center; gap: 4px; height: 54px; padding: 0 7px 0 18px; border-radius: 999px; background: var(--night); color: var(--cream);
  -webkit-backdrop-filter: blur(18px) saturate(1.25); backdrop-filter: blur(18px) saturate(1.25); box-shadow: inset 0 0 0 1px rgba(255, 255, 255,.07), 0 14px 34px -16px rgba(13, 13, 13,.55); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font: 600 16px/1 var(--sans); letter-spacing: -0.01em; color: var(--cream); flex: none; }
.brand svg { width: 22px; height: 22px; }
.brand--ink { color: var(--ink); }
.nav__menu { position: relative; margin-left: 18px; }
.nav__menu ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; position: relative; z-index: 1; }
.nav__trigger, .nav__link { display: inline-flex; align-items: center; gap: 4px; height: 40px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; color: rgba(241, 243, 246,.84); font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: color 160ms ease; }
.nav__trigger svg { width: 14px; height: 14px; opacity: .7; transition: transform 200ms var(--out); }
.nav__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__trigger[aria-expanded="true"] { color: var(--cream); }
.nav__hover { position: absolute; z-index: 0; top: 0; left: 0; height: 40px; width: 0; border-radius: 999px; background: rgba(241, 243, 246,.1); opacity: 0;
  transition: transform 260ms var(--out), width 260ms var(--out), opacity 160ms ease; pointer-events: none; }
.nav--site .nav__hover { background: var(--balance-gray); }
.nav--site .nav__trigger[aria-expanded='true'] { color: var(--ink); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav__signin { color: rgba(241, 243, 246,.84); text-decoration: none; font: 500 14px/1 var(--sans); padding: 0 10px; height: 40px; display: inline-flex; align-items: center; border-radius: 999px; transition: color 160ms ease, background-color 160ms ease; }
.nav__burger { display: none; width: 44px; height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--cream); cursor: pointer; place-items: center; }
.nav__burger svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .nav__trigger:hover, .nav__link:hover { color: var(--cream); }
  .nav__signin:hover { color: var(--cream); background: rgba(241, 243, 246,.08); }
}

.mega { position: absolute; top: calc(100% + 10px); left: 0; width: var(--mw, 680px); height: var(--mh, 300px); translate: var(--mx, 0px) 0;
  border-radius: var(--r-lg); background: rgba(33, 35, 38,.95); -webkit-backdrop-filter: blur(22px) saturate(1.2); backdrop-filter: blur(22px) saturate(1.2);
  box-shadow: 0 30px 60px -24px rgba(13, 13, 13,.6); color: var(--cream);
  opacity: 0; scale: 0.97; transform-origin: var(--mo, 30%) top; pointer-events: none; visibility: hidden;
  transition: opacity 140ms ease, scale 140ms var(--out), width 300ms var(--drawer), height 300ms var(--drawer), translate 300ms var(--drawer), visibility 0s linear 140ms; }
.mega[data-open="true"] { opacity: 1; scale: 1; pointer-events: auto; visibility: visible; transition: opacity 200ms var(--out), scale 200ms var(--out), width 300ms var(--drawer), height 300ms var(--drawer), translate 300ms var(--drawer), visibility 0s; }
.mega[data-instant] { transition: none; }
.mega__clip { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; }
.mega__view { position: absolute; top: 0; left: 0; padding: 14px; width: max-content; opacity: 0; translate: var(--from, 0) 0; transition: opacity 180ms var(--out), translate 300ms var(--drawer); }
.mega__view[data-active] { opacity: 1; translate: 0 0; }
.mega[data-instant] .mega__view { transition: none; }
.mega__cols { display: flex; gap: 10px; }
.mega__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 236px); gap: 2px; align-content: start; }
.mega__list a { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; text-decoration: none; transition: background-color 160ms ease; }
html[data-kbd] .mega__list a:focus-visible { background: rgba(241, 243, 246,.07); }
.mega__list svg { width: 20px; height: 20px; flex: none; margin-top: 1px; color: var(--gold); }
.mega__list b { display: block; font: 500 15px/1.3 var(--sans); color: var(--cream); }
.mega__list em { display: block; font: 400 13.5px/1.45 var(--sans); font-style: normal; color: rgba(241, 243, 246,.66); margin-top: 3px; }
.mega__feature { width: 268px; flex: none; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-md); text-decoration: none; color: var(--cream);
  background: rgba(204, 206, 209,.08); box-shadow: inset 0 0 0 1px rgba(204, 206, 209,.16); transition: background-color 200ms ease; }
.mega__feature b { font: 400 26px/1.05 var(--serif); letter-spacing: -0.015em; text-wrap: balance; }
.mega__feature :is(em, p) { margin: 0; font: 400 13.5px/1.5 var(--sans); font-style: normal; color: rgba(241, 243, 246,.7); }
.mega__balance { display: grid; gap: 3px; margin-block: 1px 2px; padding: 9px 12px; border-radius: 12px;
  background: linear-gradient(110deg, rgb(204 206 209 / .10), transparent 76%), rgb(0 0 0 / .19); }
.mega__balance-label { color: rgb(241 243 246 / .74); font: 400 13px/1.4 var(--sans); }
.mega__balance-value { color: var(--cream); font: 500 15px/28px var(--sans); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mega__balance-value[data-amount="true"] { font-size: 24px; letter-spacing: -.025em; }
@media (prefers-reduced-motion: no-preference) {
  .mega__balance-value[data-amount="true"] { animation: navBalanceIn 200ms var(--out) both; }
  @keyframes navBalanceIn { from { opacity: .45; translate: 0 3px; } }
}
.mega__savings { gap: 8px; }
.mega__savings-modes {
  position: relative; isolation: isolate; display: grid; grid-template-columns: repeat(2, 1fr);
  padding: 3px; border-radius: 999px; background: rgb(0 0 0 / .2);
}
.mega__savings-modes::before {
  content: ''; position: absolute; z-index: -1; inset: 3px auto 3px 3px; width: calc(50% - 3px);
  border-radius: inherit; background: var(--balance-gray); transition: translate 240ms var(--out);
}
.mega__savings-modes[data-payg="true"]::before { translate: 100% 0; }
.mega__savings-modes button {
  min-height: 36px; border: 0; border-radius: 999px; background: transparent;
  color: var(--cream); font: 500 12.5px/1 var(--sans); cursor: pointer; transition: color 180ms ease;
}
.mega__savings-modes button[aria-pressed="true"] { color: var(--ink); }
.mega__savings-modes button:focus-visible { outline: 2px solid var(--cream); outline-offset: -2px; }
.mega__savings-modes button[aria-pressed="true"]:focus-visible { outline-color: var(--ink); }
.mega__savings-panel {
  display: grid; gap: 7px; padding: 10px 11px; border-radius: 12px;
  background: linear-gradient(115deg, rgb(204 206 209 / .12), transparent 75%), rgb(0 0 0 / .18);
}
.mega__savings-result { font: 400 24px/1.12 var(--serif); letter-spacing: -.02em; }
.mega__savings-bars { display: grid; gap: 5px; }
.mega__savings-row { display: grid; grid-template-columns: 8ch minmax(0, 1fr); align-items: center; gap: 6px; font: 500 11px/1.4 var(--sans); }
.mega__savings-track { height: 4px; overflow: hidden; border-radius: 999px; background: rgb(241 243 246 / .13); }
.mega__savings-track i {
  display: block; height: 100%; border-radius: inherit; background: var(--cream);
  scale: 0 1; transform-origin: left; transition: scale 420ms var(--out);
}
.mega__savings-row + .mega__savings-row i { opacity: .46; }
.mega__view[data-active] .mega__savings-track i,
.sheet[data-open="true"] .sheet__group[data-expanded="true"] .mega__savings-track i { scale: var(--cost-share) 1; }
@media (prefers-reduced-motion: reduce) {
  .mega__savings :is(button, .mega__savings-track i), .mega__savings-modes::before { transition: none; }
}
.mega__go { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font: 500 13.5px/1 var(--sans); color: var(--cream); text-decoration: none; padding-top: 6px; }
.mega__go svg { width: 13px; height: 13px; transition: transform 200ms var(--out); }
.mega__credit .mega__go {
  gap: 8px; align-self: stretch; min-height: 40px; padding: 4px 10px 4px 4px; border-radius: 999px;
  background: linear-gradient(110deg, rgb(204 206 209 / .12), transparent 76%), rgb(0 0 0 / .18);
  transition: background-color 200ms ease;
}
.mega__credit a.mega__go:is(:hover, :focus-visible) { background-color: rgb(204 206 209 / .11); }
.mega__credit-value {
  display: grid; flex: none; place-items: center; width: 32px; height: 32px; border-radius: 50%;
  background: var(--balance-gray); color: var(--ink); font: 550 14px/1 var(--sans);
}
.mega__credit .mega__go svg { flex: none; margin-inline-start: auto; }
@media (prefers-reduced-motion: no-preference) {
  .mega__view[data-active] .mega__credit-value,
  .sheet[data-open="true"] .sheet__group[data-expanded="true"] .mega__credit-value { animation: navCreditIn 320ms var(--out) both; }
  @keyframes navCreditIn { from { opacity: .55; scale: .72; } }
}
.mega__logos { list-style: none; margin: 2px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 9px 10px; }
.mega__logos li { display: flex; align-items: center; gap: 7px; font: 400 13px/1.2 var(--sans); color: rgba(241, 243, 246,.8); }
.mega__logos img { width: 15px; height: 15px; }
.mega__more { color: rgba(241, 243, 246,.56) !important; }
.mega__copy { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(241, 243, 246,.12); cursor: pointer; background: rgba(0, 0, 0,.28); color: var(--cream); transition: background-color 160ms ease; }
.mega__copy--static { cursor: default; }
.mega__copy code { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mega__copy svg { width: 15px; height: 15px; opacity: .75; flex: none; }
.mega__copy[data-copied="copied"] svg { color: var(--ok-lt); opacity: 1; }
html[data-kbd] .mega__copy:focus-visible { outline-color: var(--cream); }
@media (hover: hover) and (pointer: fine) {
  .mega__list a:hover { background: rgba(241, 243, 246,.07); }
  a.mega__feature:hover { background-color: rgba(204, 206, 209,.13); }
  .mega__feature:hover .mega__go svg, .mega__go:hover svg { transform: translateX(3px); }
  .mega__copy:not(.mega__copy--static):hover { background: rgba(0, 0, 0,.32); }
}
.inv { filter: brightness(0) saturate(100%) invert(12%) sepia(14%) saturate(1500%) hue-rotate(338deg); }
.inv-light { filter: brightness(0) invert(94%) sepia(10%) saturate(300%) hue-rotate(340deg); }

.sheet { position: fixed; z-index: 59; top: 76px; left: 12px; right: 12px; display: grid; grid-template-rows: 0fr;
  overflow: clip; border-radius: 22px; background: rgba(33, 35, 38,.97); color: var(--cream);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  --ink-3: rgb(241 243 246 / .74);
  opacity: 0; translate: 0 -8px; pointer-events: none; visibility: hidden;
  transition: grid-template-rows 280ms var(--drawer), opacity 220ms ease, translate 280ms var(--out), visibility 0s linear 280ms; }
.sheet[data-open="true"] { grid-template-rows: 1fr; opacity: 1; translate: 0 0; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.sheet__body { min-height: 0; max-height: calc(100svh - 92px); overflow: auto; overscroll-behavior: contain; scrollbar-width: none; }
.sheet__body::-webkit-scrollbar { display: none; }
.sheet__content { display: grid; gap: 2px; padding: 10px; }
.sheet__trigger { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; text-align: left;
  border: 0; border-radius: 14px; padding: 14px; background: none; color: var(--cream); font: 400 24px/1 var(--serif); cursor: pointer; }
.sheet__trigger svg { width: 16px; height: 16px; flex: none; opacity: .7; transition: transform 240ms var(--out); }
.sheet__trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.sheet__panel { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows 260ms var(--drawer), opacity 200ms ease; }
.sheet__group[data-expanded="true"] .sheet__panel { grid-template-rows: 1fr; opacity: 1; }
.sheet__links { min-height: 0; overflow: clip; }
.sheet__links > a:not(.sheet__feature) { display: block; padding: 11px 14px 11px 26px; color: rgba(241, 243, 246,.8); text-decoration: none; font-size: 15.5px; }
.sheet__links > .sheet__feature { width: auto; margin: 2px 4px 6px; padding: 18px; }
.sheet__feature:not(.mega__credit) a.mega__go { align-self: start; min-height: 40px; padding-top: 0; }
.sheet__feature .mega__copy { min-height: 44px; }
.sheet__feature .mega__logos li { min-width: 0; overflow-wrap: anywhere; }
.sheet :focus-visible { outline-color: var(--cream); outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) {
  .sheet, .sheet__panel, .sheet__trigger svg { transition: none; }
}
.sheet__end { display: flex; gap: 8px; padding: 12px 6px 4px; }
.sheet__end .btn { flex: 1; padding-inline: 14px; }
@media (min-width: 1021px) {
  .mega__credit { gap: 7px; padding-block: 14px; }
  .mega__savings { gap: 5px; padding-block: 12px; }
  .mega__savings-panel { gap: 5px; padding-block: 8px; }
}
@media (max-width: 1020px) {
  .nav__menu, .nav__signin { display: none; }
  .nav__burger { display: grid; }
  .mega { display: none; }
}

.nav__end > .btn { flex: none; }
@media (max-width: 360px) {
  .nav__bar .nav__end > .btn { padding-inline: 10px; font-size: 12px; }
  .nav__bar .nav__burger { flex: 0 0 38px; }
}
