/* Benefícios dos planos (beneficios.html) — a deliberately more premium room of the
   site: near-black espresso canvas, flat dark surfaces, brand logos on light tiles and
   motion everywhere (all of it off under prefers-reduced-motion).
   Tokens come from site.css (--red, --brown, --font-*, --r-*, --ease-*, --tap); nothing
   here leaks to other pages (everything is scoped to .page-beneficios or .bn-*). */

.page-beneficios {
  --bn-bg: #0c0605;
  --bn-ink: #fff4ee;
  --bn-dim: rgba(255, 244, 238, 0.7);
  --bn-faint: rgba(255, 244, 238, 0.52); /* ≥ 4.5:1 on every surface below */
  --bn-glass: #170d0b;
  --bn-glass-2: #21140f;
  --bn-bar: #120907;
  --bn-line: rgba(255, 244, 238, 0.09);
  --bn-line-2: rgba(255, 244, 238, 0.18);
  --bn-rose: #ff8a93;
  --bn-ok: #7be8a8;
  --bn-ok-bg: rgba(30, 142, 78, 0.22);
  background: var(--bn-bg);
  color: var(--bn-ink);
}
.page-beneficios .breadcrumb, .page-beneficios .breadcrumb a { color: var(--bn-faint); }
.page-beneficios .breadcrumb__current { color: var(--bn-dim); }
.page-beneficios .breadcrumb a:hover { color: var(--bn-ink); }
.bn-main { position: relative; z-index: 1; }
.bn-note { margin: 56px 0 48px; padding-top: 18px; border-top: 1px solid var(--bn-line); font-size: 11.5px; line-height: 1.55; color: var(--bn-faint); max-width: 72ch; }
#bnView { min-height: 420px; }
#bnView > * { animation: bn-in 0.7s var(--ease-out) both; }

/* one focus ring for the whole page: rose on dark (site.css supplies a radius only where
   an element has none of its own) */
.page-beneficios :is(.bn-main, .bn-sheet) :is(a, button, summary):focus-visible { outline: 2px solid var(--bn-rose); outline-offset: 3px; }
.page-beneficios .bn-main .bn-rail__it:focus-visible, .page-beneficios .bn-main .bn-sort__b:focus-visible { outline-offset: -2px; }

/* ---- loading / error states ---- */
.bn-skel { display: grid; gap: 14px; padding-top: 14px; }
.bn-skel > span, .bn-skel__cards > span { display: block; border-radius: var(--r-sm); background: var(--bn-glass-2); animation: bn-pulse 1.4s ease-in-out infinite; }
.bn-skel__t { width: min(420px, 80%); height: 34px; }
.bn-skel__t.is-2 { width: min(300px, 60%); }
.bn-skel__p { width: min(520px, 92%); height: 14px; margin-top: 6px; }
.bn-skel__cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 18px; }
.bn-skel__cards > span { height: 196px; border-radius: var(--r-xl); background: var(--bn-glass); border: 1px solid var(--bn-line); }
.bn-skel__cards > span:nth-child(2) { animation-delay: 0.15s; }
.bn-skel__cards > span:nth-child(3) { animation-delay: 0.3s; }
.bn-skel__cards > span:nth-child(4) { animation-delay: 0.45s; }
@media (min-width: 640px) { .bn-skel__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .bn-skel__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 639.98px) { .bn-skel__cards > span { height: 112px; } }

.bn-state { display: grid; justify-items: center; gap: 10px; max-width: 440px; margin: 40px auto 0; padding: 36px 24px; border: 1px solid var(--bn-line); border-radius: var(--r-xl); background: var(--bn-glass); text-align: center; }
.bn-state__ico { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 4px; border-radius: 50%; background: var(--bn-glass-2); color: var(--bn-rose); }
.bn-state h1 { margin: 0; font-family: var(--font-display); font-size: 20px; font-weight: 800; letter-spacing: -0.02em; }
.bn-state p { margin: 0; font-size: 13px; color: var(--bn-dim); }
.bn-state .bn-more { margin-top: 10px; }

/* ---- logo tile ---- */
.bn-logo { --sz: 44px; display: inline-grid; place-items: center; flex: none; width: var(--sz); height: var(--sz); padding: calc(var(--sz) * 0.17); border-radius: calc(var(--sz) * 0.3); background: #fff8f3; color: var(--brown); overflow: hidden; box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35); }
.bn-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bn-logo .ico { display: grid; place-items: center; color: var(--brown-soft); }
/* brands without a public logo: a deliberate lowercase wordmark pill, same height and
   corner as the logo tiles, padded like them so it reads as a lockup, not a fallback */
.bn-logo.is-wordmark { width: auto; min-width: var(--sz); padding: 0 calc(var(--sz) * 0.24); }
.bn-wm { font-family: var(--font-display); font-weight: 900; font-size: clamp(10px, calc(var(--sz) * 0.27), 20px); letter-spacing: -0.03em; line-height: 1; white-space: nowrap; transform: translateY(-0.04em); }
.bn-logo.is-hero { box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 55%, transparent), 0 6px 16px rgba(0, 0, 0, 0.35); }
.bn-ben { display: inline-grid; place-items: center; transition: transform var(--t-fast) var(--ease-spring); }
.bn-ben--more { min-width: 30px; height: 30px; padding: 0 6px; border: 1px dashed var(--bn-line-2); border-radius: var(--r-sm); font-size: 11.5px; font-weight: 800; color: var(--bn-dim); }
.bn-muted { font-size: 12.5px; color: var(--bn-faint); }

/* ---- type ---- */
.bn-title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: clamp(26px, 4vw, 42px); line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; max-width: 24ch; }
.bn-title em { font-style: normal; color: var(--bn-rose); }
.bn-title--cat { font-size: clamp(24px, 3.2vw, 34px); }
.bn-title:focus { outline: none; }
.bn-sub { margin: 10px 0 0; max-width: 60ch; font-size: 14px; line-height: 1.55; color: var(--bn-dim); text-wrap: pretty; }

/* ---- home: category portals ---- */
.bn-home { padding-top: 14px; }
.bn-cats { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: 32px; }
@media (min-width: 640px) { .bn-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .bn-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }

/* shared flat card with a faint cursor spotlight + gentle tilt (.bn-fx) */
.bn-fx { --mx: 50%; --my: 0%; position: relative; isolation: isolate; border: 1px solid var(--bn-line); border-radius: var(--r-xl); background: var(--bn-glass); transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform 0.25s ease-out, border-color 0.25s, box-shadow 0.35s; }
.bn-fx::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: radial-gradient(360px circle at var(--mx) var(--my), color-mix(in srgb, var(--brand, var(--red)) 12%, transparent), transparent 65%); opacity: 0; transition: opacity 0.3s; }
.bn-fx:active { border-color: color-mix(in srgb, var(--brand, var(--red)) 55%, var(--bn-line)); }
@media (hover: hover) {
  .bn-fx:hover::before { opacity: 1; }
  .bn-fx:hover { border-color: color-mix(in srgb, var(--brand, var(--red)) 55%, var(--bn-line)); box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.9); }
}
.bn-fx:focus-visible { border-color: color-mix(in srgb, var(--brand, var(--red)) 55%, var(--bn-line)); }

.bn-cat { display: grid; gap: 14px; align-content: start; min-height: 196px; padding: 20px; color: var(--bn-ink); }
.bn-cat__art, .bn-chead__art { position: relative; display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: rgba(234, 29, 44, 0.12); color: var(--bn-ink); }
.bn-cat__ring { position: absolute; inset: -3px; border-radius: 50%; background: conic-gradient(var(--red) 0 22%, transparent 0); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1.5px)); animation: bn-spin 5s linear infinite; }
.bn-cat__img { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); object-fit: contain; border-radius: 50%; }
.bn-cat__art .ico, .bn-chead__art .ico { display: grid; place-items: center; }
/* the mascot art, when present, replaces the line icon */
.bn-cat__img ~ .ico { display: none; }
.bn-cat__art .ico :is(path, circle, rect, line), .bn-chead__art .ico :is(path, circle, rect, line) { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bn-draw 1.2s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards; }
.bn-cat__art .ico :nth-child(2), .bn-chead__art .ico :nth-child(2) { animation-delay: 0.38s; }
.bn-cat__art .ico :nth-child(3), .bn-chead__art .ico :nth-child(3) { animation-delay: 0.56s; }
.bn-cat__art .ico :nth-child(4), .bn-chead__art .ico :nth-child(4) { animation-delay: 0.74s; }
.bn-cat__t { display: grid; gap: 3px; }
.bn-cat__t strong { font-family: var(--font-display); font-size: 18px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.bn-cat__t small { font-size: 12.5px; line-height: 1.35; color: var(--bn-dim); }
.bn-cat__stack { display: flex; align-items: center; margin-top: auto; padding-top: 4px; padding-left: 8px; }
.bn-logo.is-stack { margin-left: -8px; box-shadow: 0 0 0 2px var(--bn-glass); transition: transform var(--t-fast) var(--ease-spring); }
.bn-cat__more { margin-left: 8px; font-size: 11.5px; font-weight: 800; color: var(--bn-dim); }
.bn-cat__go { position: absolute; top: 18px; right: 18px; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--bn-glass-2); color: var(--bn-dim); transition: background 0.25s, color 0.25s, transform 0.3s var(--ease-spring); }
.bn-cat__go .ico { display: grid; place-items: center; }
.bn-cat:is(:focus-visible, :active) .bn-cat__go { background: var(--red); color: #fff; }
@media (hover: hover) {
  .bn-cat:hover .bn-cat__art .ico svg { animation: bn-bob 0.9s var(--ease-spring); }
  .bn-cat:hover .bn-logo.is-stack { transform: translateY(-3px); }
  .bn-cat:hover .bn-logo.is-stack:nth-child(2) { transition-delay: 40ms; }
  .bn-cat:hover .bn-logo.is-stack:nth-child(3) { transition-delay: 80ms; }
  .bn-cat:hover .bn-logo.is-stack:nth-child(4) { transition-delay: 120ms; }
  .bn-cat:hover .bn-logo.is-stack:nth-child(5) { transition-delay: 160ms; }
  .bn-cat:hover .bn-cat__go { background: var(--red); color: #fff; transform: translateX(3px) rotate(-45deg); }
}

/* phones: compact horizontal portals so all four fit in about one screen */
@media (max-width: 639.98px) {
  .bn-cats { gap: 12px; margin-top: 26px; }
  .bn-cat { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px 16px; min-height: 0; padding: 16px 16px 16px 18px; }
  .bn-cat__art { grid-row: span 2; }
  .bn-cat__t { padding-right: 40px; }
  .bn-cat__stack { margin-top: 0; padding-top: 0; }
  .bn-cat__go { top: 16px; right: 16px; }
}

/* ---- marquee of brands ---- */
.bn-marquee { display: grid; gap: 12px; margin-top: 48px; }
.bn-lane { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.bn-lane__track { display: flex; width: max-content; padding-block: 6px; animation: bn-marq 55s linear infinite; will-change: transform; }
.bn-lane.is-rev .bn-lane__track { animation-direction: reverse; animation-duration: 70s; }
.bn-lane__it { display: block; padding: 0 6px; transition: transform var(--t-base) var(--ease-spring); }
@media (hover: hover) {
  .bn-lane:hover .bn-lane__track { animation-play-state: paused; }
  .bn-lane__it:hover { transform: translateY(-5px) scale(1.08); }
}

/* ---- category view ---- */
.bn-chead { display: grid; gap: 18px; padding-top: 4px; }
.bn-back { display: inline-flex; align-items: center; gap: 6px; width: max-content; min-height: 32px; font-size: 12.5px; font-weight: 700; color: var(--bn-dim); transition: color var(--t-fast); }
.bn-back .ico { display: grid; place-items: center; transition: transform var(--t-base) var(--ease-spring); }
.bn-back:hover { color: var(--bn-ink); }
.bn-back:hover .ico { transform: translateX(-4px); }
.bn-chead__row { display: flex; align-items: center; gap: 18px; }
.bn-chead__art { width: 64px; height: 64px; flex: none; }
.bn-chead .bn-sub { margin-top: 6px; }
.bn-stats { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-stats > span { padding: 6px 12px; border: 1px solid var(--bn-line); border-radius: var(--r-pill); background: var(--bn-glass); font-size: 12.5px; color: var(--bn-dim); white-space: nowrap; }
.bn-stats b { color: var(--bn-ink); font-weight: 800; font-variant-numeric: tabular-nums; }

.bn-rail { position: sticky; top: 10px; z-index: 20; display: flex; align-items: center; gap: 10px; margin-top: 24px; padding: 6px; border: 1px solid var(--bn-line); border-radius: var(--r-pill); background: var(--bn-bar); box-shadow: 0 12px 30px -16px #000; }
.bn-rail__track { display: flex; gap: 4px; flex: 1; min-width: 0; padding: 2px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
.bn-rail__track::-webkit-scrollbar { display: none; }
.bn-rail__it { display: inline-flex; align-items: center; gap: 9px; flex: none; min-height: 38px; padding: 4px 10px 4px 4px; border-radius: var(--r-pill); color: var(--bn-dim); font-size: 13px; font-weight: 700; transition: background 0.3s, color 0.3s, box-shadow 0.4s; }
.bn-rail__it .bn-logo { box-shadow: none; }
.bn-rail__it em { font-style: normal; min-width: 22px; padding: 1px 6px; border-radius: var(--r-pill); background: var(--bn-glass-2); font-size: 11.5px; text-align: center; font-variant-numeric: tabular-nums; transition: background 0.3s; }
.bn-rail__it:hover { color: var(--bn-ink); background: var(--bn-glass); }
.bn-rail__it.is-on { color: var(--bn-ink); background: var(--bn-glass-2); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--brand) 60%, transparent); }
.bn-rail__it.is-on em { background: var(--bn-glass); }
/* sort switch: a sliding thumb; --red-dark keeps white 12px labels above 4.5:1 */
.bn-sort { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; flex: none; padding: 3px; border-radius: var(--r-pill); background: var(--bn-glass-2); }
.bn-sort::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: var(--r-pill); background: var(--red-dark); box-shadow: 0 2px 8px -2px rgba(234, 29, 44, 0.45); transform: translateX(calc(var(--pos, 0) * 100%)); transition: transform 0.4s var(--ease-spring); }
.bn-sort__b { position: relative; min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--bn-dim); font: inherit; font-size: 12px; font-weight: 800; white-space: nowrap; cursor: pointer; transition: color 0.25s; }
.bn-sort__b:hover { color: var(--bn-ink); }
.bn-sort__b.is-on { color: #fff; }
.bn-sort--head { display: none; }
@media (max-width: 759.98px) {
  .bn-rail { top: 6px; }
  .bn-sort--rail { display: none; }
  .bn-sort--head { display: inline-grid; width: 100%; }
  .bn-sort__b { min-height: 38px; }
  .bn-rail__it { min-height: var(--tap); }
  .bn-back { min-height: var(--tap); margin-block: -6px; }
}

/* ---- brand sections ---- */
.bn-brands { display: grid; gap: 56px; margin-top: 32px; }
.bn-brand { scroll-margin-top: 84px; min-width: 0; }
.bn-brand::before { content: ''; display: block; height: 1px; margin-bottom: 24px; background: color-mix(in srgb, var(--brand) 60%, transparent); transform-origin: left; transform: scaleX(0); transition: transform 1.1s var(--ease-out) 0.1s; }
.bn-brand.is-in::before { transform: scaleX(1); }
.bn-brand__head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 20px; margin-bottom: 22px; }
.bn-brand__who { display: grid; gap: 4px; min-width: 0; }
.bn-brand__who h2 { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 2.4vw, 26px); font-weight: 900; letter-spacing: -0.025em; line-height: 1.05; }
.bn-brand__who p { margin: 0; font-size: 12.5px; color: var(--bn-dim); }
.bn-brand__who b { color: var(--bn-ink); font-variant-numeric: tabular-nums; }
.bn-brand__tops { display: grid; gap: 8px; margin-left: auto; }
.bn-brand__tops small { font-size: 10.5px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--bn-faint); }
.bn-brand__tops > span { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 759.98px) { .bn-brand__tops { margin-left: 0; width: 100%; } }
.bn-plans { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 700px) { .bn-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1060px) { .bn-plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.bn-plan { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: 18px 18px 14px; color: var(--bn-ink); font: inherit; text-align: left; cursor: pointer; }
.bn-plan__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.bn-plan__who { display: grid; gap: 2px; min-width: 0; }
.bn-plan__op { overflow: hidden; font-size: 11.5px; font-weight: 700; line-height: 1.3; color: var(--bn-faint); white-space: nowrap; text-overflow: ellipsis; }
.bn-plan__op em { font-style: normal; font-weight: 500; }
.bn-plan__title { font-family: var(--font-display); font-weight: 800; font-size: 17px; line-height: 1.15; letter-spacing: -0.01em; }
.bn-plan__priceRow { display: flex; align-items: baseline; gap: 6px; }
.bn-price { display: inline-flex; align-items: baseline; gap: 4px; font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.bn-price i { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--bn-dim); }
.bn-price b { font-size: 30px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; color: #fff; }
.bn-price sup { margin-left: -3px; font-size: 13.5px; font-weight: 800; color: var(--bn-dim); }
.bn-per { font-size: 12px; color: var(--bn-faint); }
.bn-plan__bens { display: flex; flex-wrap: wrap; gap: 6px; flex: 1; align-content: flex-start; min-height: 30px; }
.bn-plan__foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; padding-top: 12px; border-top: 1px solid var(--bn-line); font-size: 11.5px; color: var(--bn-faint); }
.bn-plan__go { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--bn-rose); }
.bn-plan__go .ico { display: grid; place-items: center; transition: transform var(--t-base) var(--ease-spring); }
.bn-plan:focus-visible .bn-plan__go .ico { transform: translateX(5px); }
.bn-plan.is-busy { cursor: progress; }
.bn-plan.is-busy .bn-plan__go { animation: bn-pulse 0.9s ease-in-out infinite; }
@media (hover: hover) {
  .bn-ben:hover { transform: translateY(-3px) scale(1.08); }
  .bn-plan:hover .bn-plan__go .ico { transform: translateX(5px); }
}

.bn-more { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: var(--tap); margin: 24px auto 0; padding: 0 20px; border: 1px solid var(--bn-line-2); border-radius: var(--r-pill); background: var(--bn-glass); color: var(--bn-ink); font: inherit; font-size: 12.5px; font-weight: 800; cursor: pointer; transition: background 0.25s, border-color 0.25s, transform var(--t-fast) var(--ease-spring); }
.bn-more:hover { background: var(--bn-glass-2); border-color: var(--bn-faint); }
.bn-more:active { transform: translateY(1px); }
.bn-more .ico { display: grid; place-items: center; transition: transform 0.35s var(--ease-spring); }
.bn-more[aria-expanded='true'] .ico { transform: rotate(180deg); }
@media (hover: hover) { .bn-more:hover { transform: translateY(-2px); } }

/* ---- scroll reveal (uses `translate` so it never fights the tilt transform) ---- */
.bn-reveal { opacity: 0; translate: 0 24px; }
.bn-reveal.is-in { opacity: 1; translate: 0 0; transition: opacity 0.7s var(--ease-out) calc(var(--i, 0) * 60ms), translate 0.8s var(--ease-out) calc(var(--i, 0) * 60ms), transform 0.25s ease-out, border-color 0.25s, box-shadow 0.35s; }

/* ---- details sheet ---- */
.bn-sheet { width: min(680px, calc(100% - 32px)); max-width: none; max-height: min(88dvh, 900px); margin: auto; padding: 0; border: 1px solid var(--bn-line-2); border-radius: var(--r-xl); background: var(--bn-bar); color: var(--bn-ink); box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8); overflow: hidden; }
.bn-sheet[open] { display: flex; flex-direction: column; animation: bn-sheet-in 0.5s var(--ease-spring) both; }
.bn-sheet.is-out { animation: bn-sheet-out 0.22s ease-in both; }
.bn-sheet::backdrop { background: rgba(4, 1, 1, 0.74); animation: bn-fade 0.35s both; }
.bn-sheet.is-out::backdrop { animation: bn-fade-out 0.22s both; }
.bn-sheet__head { position: relative; display: flex; align-items: center; gap: 14px; padding: 16px 16px 14px 22px; border-bottom: 1px solid var(--bn-line); }
.bn-sheet__who { display: grid; gap: 3px; flex: 1; min-width: 0; }
.bn-sheet__title { margin: 0; font-family: var(--font-display); font-weight: 900; font-size: 22px; line-height: 1.05; letter-spacing: -0.025em; }
.bn-sheet__x { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border: 1px solid var(--bn-line); border-radius: 50%; background: var(--bn-glass); color: var(--bn-ink); cursor: pointer; transition: transform 0.3s var(--ease-spring), background 0.2s, border-color 0.2s; }
.bn-sheet__x:hover { background: var(--bn-glass-2); border-color: var(--bn-line-2); }
.bn-sheet__x .ico { display: grid; place-items: center; }
.bn-sheet__body { display: grid; gap: 26px; padding: 20px 22px 26px; overflow-y: auto; overscroll-behavior: contain; }
.bn-sheet__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.bn-sheet__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 8px; margin: 0; }
.bn-sheet__amount { font-family: var(--font-display); font-size: clamp(28px, 6vw, 34px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; color: #fff; }
.bn-sheet__price > span { font-size: 13px; color: var(--bn-faint); }
.bn-sheet__price em { align-self: center; padding: 4px 12px; border-radius: var(--r-pill); background: var(--bn-glass-2); font-style: normal; font-size: 11.5px; font-weight: 700; color: var(--bn-dim); }
.bn-sheet__price em.is-free { background: var(--bn-ok-bg); color: var(--bn-ok); }
.bn-ring { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.bn-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.bn-ringbg { fill: none; stroke: var(--bn-line); stroke-width: 5; }
.bn-ringfill { fill: none; stroke: var(--red); stroke-width: 5; stroke-linecap: round; stroke-dasharray: var(--c); stroke-dashoffset: var(--c); animation: bn-ring 1.3s var(--ease-out) 0.35s forwards; }
.bn-ring__n { position: relative; display: grid; justify-items: center; line-height: 1; }
.bn-ring__n b { font-family: var(--font-display); font-size: 18px; font-weight: 900; font-variant-numeric: tabular-nums; }
.bn-ring__n small { margin-top: 2px; font-size: 8.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--bn-faint); }
.bn-h { margin: 0 0 12px; font-size: 11px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--bn-faint); }
.bn-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bn-li { display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border: 1px solid var(--bn-line); border-radius: var(--r-md); background: var(--bn-glass); animation: bn-in 0.5s var(--ease-out) calc(0.12s + var(--i, 0) * 50ms) both; transition: background 0.2s, border-color 0.2s; }
.bn-li__t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.bn-li__t strong { font-size: 13.5px; line-height: 1.3; }
.bn-li__t small { font-size: 11.5px; color: var(--bn-dim); line-height: 1.4; }
.bn-term { flex: none; align-self: flex-start; padding: 3px 10px; border-radius: var(--r-pill); background: var(--bn-ok-bg); color: var(--bn-ok); font-size: 10.5px; font-weight: 800; }
.bn-conds { display: grid; margin: 0; }
.bn-kv { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--bn-line); font-size: 13px; }
.bn-kv:last-child { border-bottom: 0; }
.bn-kv dt { color: var(--bn-dim); }
.bn-kv dd { margin: 0; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.bn-fine { border-top: 1px solid var(--bn-line); }
.bn-fine summary { display: flex; align-items: center; gap: 8px; min-height: var(--tap); list-style: none; cursor: pointer; font-size: 12px; font-weight: 800; color: var(--bn-rose); }
.bn-fine summary::-webkit-details-marker { display: none; }
.bn-fine summary .ico { display: grid; place-items: center; transition: transform 0.35s var(--ease-spring); }
.bn-fine[open] summary .ico { transform: rotate(180deg); }
.bn-fine ul { display: grid; gap: 8px; margin: 4px 0 0; padding-left: 18px; font-size: 11.5px; line-height: 1.55; color: var(--bn-dim); }
.bn-fine[open] ul { animation: bn-in 0.4s var(--ease-out) both; }
@media (hover: hover) {
  .bn-li:hover { background: var(--bn-glass-2); border-color: var(--bn-line-2); }
  .bn-sheet__x:hover { transform: rotate(90deg); }
}
/* phones: a bottom sheet with a grab handle that rises from the edge */
@media (max-width: 639.98px) {
  .bn-sheet { width: 100%; max-height: 92dvh; margin: auto 0 0; border-width: 1px 0 0; border-radius: 26px 26px 0 0; }
  .bn-sheet[open] { animation: bn-sheet-up 0.45s var(--ease-out) both; }
  .bn-sheet.is-out { animation: bn-sheet-down 0.24s ease-in both; }
  .bn-sheet__head { padding: 22px 14px 14px 18px; }
  .bn-sheet__head::before { content: ''; position: absolute; top: 8px; left: 50%; width: 36px; height: 4px; margin-left: -18px; border-radius: var(--r-pill); background: var(--bn-line-2); }
  .bn-sheet__x { width: var(--tap); height: var(--tap); }
  .bn-sheet__body { padding: 18px 18px calc(24px + env(safe-area-inset-bottom)); }
}

/* ---- keyframes ---- */
@keyframes bn-in { from { opacity: 0; transform: translateY(18px); } }
@keyframes bn-fade { from { opacity: 0; } }
@keyframes bn-fade-out { to { opacity: 0; } }
@keyframes bn-pulse { 50% { opacity: 0.45; } }
@keyframes bn-draw { to { stroke-dashoffset: 0; } }
@keyframes bn-spin { to { transform: rotate(360deg); } }
@keyframes bn-bob { 0% { transform: scale(1); } 40% { transform: scale(1.18) rotate(-6deg); } 100% { transform: scale(1); } }
@keyframes bn-marq { to { transform: translateX(-50%); } }
@keyframes bn-ring { to { stroke-dashoffset: var(--o); } }
@keyframes bn-sheet-in { from { opacity: 0; transform: translateY(40px) scale(0.96); } }
@keyframes bn-sheet-out { to { opacity: 0; transform: translateY(24px) scale(0.97); } }
@keyframes bn-sheet-up { from { transform: translateY(100%); } }
@keyframes bn-sheet-down { to { transform: translateY(100%); } }

@media (prefers-reduced-motion: reduce) {
  .bn-cat__ring, .bn-lane__track, .bn-skel > span, .bn-skel__cards > span, .bn-plan.is-busy .bn-plan__go { animation: none; }
  #bnView > *, .bn-li, .bn-fine[open] ul, .bn-sheet[open], .bn-sheet.is-out, .bn-sheet::backdrop, .bn-sheet.is-out::backdrop { animation: none; }
  /* a still marquee can at least be scrolled by hand */
  .bn-lane { overflow-x: auto; scrollbar-width: none; }
  .bn-reveal { opacity: 1; translate: none; }
  .bn-brand::before { transform: none; transition: none; }
  .bn-cat__art .ico :is(path, circle, rect, line), .bn-chead__art .ico :is(path, circle, rect, line) { animation: none; stroke-dashoffset: 0; }
  .bn-ringfill { animation: none; stroke-dashoffset: var(--o); }
  .bn-fx { transform: none; transition: border-color 0.25s; }
  .bn-sort::before, .bn-more .ico, .bn-fine summary .ico { transition: none; }
  .bn-cat__go, .bn-ben, .bn-lane__it, .bn-sheet__x, .bn-back .ico, .bn-plan__go .ico { transition: none; transform: none !important; }
}
