/* Home page "Pricing bundle" card (web/home-bundles.js). Same card language as
   the checkout's bundle tiles (src/components/web/screens/checkoutStyles.ts),
   drawn with the marketing site's tokens from styles.css. */
.hb-wrap {
  --hb-amber: #EAA423;       /* COLORS.accent */
  --hb-keepsake: #FFE8BE;    /* COLORS.surfaceKeepsake */
  --hb-selected: #FBFAF4;    /* checkout selected-card tint */
  --hb-ease: cubic-bezier(.33,.1,.25,1);
  max-width: 640px; margin: 28px auto 0; text-align: left;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 2px 6px rgba(47,54,33,0.06); padding: 26px 28px 28px;
}
/* Hero CTA sized to match the pricing card below it. */
.btn--wide { display: block; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 26px; font-size: 18px; }

.hb-head { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.hb-head-title { font-size: 18px; font-weight: 800; letter-spacing: -0.3px; color: var(--text); margin: 0; }
.hb-head-sub { margin-left: auto; font-size: 12.5px; color: var(--text-muted); }

/* Matches the app's Sign in / Register toggle (.bbm-sp-toggle). */
.hb-binding { display: flex; width: 100%; gap: 0; padding: 4px; margin: 0 0 18px; background: var(--surface-warm); border-radius: var(--radius-full); }
.hb-binding button { flex: 1; font: inherit; font-weight: 800; font-size: 15px; color: var(--text-muted); background: transparent; border: 0; border-radius: var(--radius-full); padding: 10px 18px; cursor: pointer; transition: background 160ms var(--hb-ease), color 160ms var(--hb-ease); }
.hb-binding button[aria-checked="true"] { background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgba(47,54,33,0.06); }

.hb-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.hb-tile { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius-md); padding: 16px 18px; font-family: inherit; color: var(--text); cursor: pointer; transition: border-color 160ms var(--hb-ease), background 160ms var(--hb-ease), box-shadow 160ms var(--hb-ease); }
.hb-tile.is-flagged { margin-top: 10px; }
.hb-tile:hover:not(.is-selected) { border-color: var(--primary-light); }
.hb-tile.is-selected { border-color: var(--primary-strong); background: var(--hb-selected); box-shadow: 0 0 0 1px var(--primary-strong), 0 2px 6px rgba(47,54,33,0.06); }
.hb-tile-custom { cursor: default; }
.hb-pick { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; background: none; border: 0; padding: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }

.hb-radio { width: 20px; height: 20px; border-radius: 50%; flex: none; border: 2px solid var(--primary); display: flex; align-items: center; justify-content: center; }
.hb-radio-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary-strong); opacity: 0; transform: scale(0.4); transition: opacity 140ms var(--hb-ease), transform 140ms var(--hb-ease); }
.is-selected .hb-radio-dot { opacity: 1; transform: scale(1); }

.hb-flag { position: absolute; top: -11px; left: 18px; background: var(--primary-strong); color: var(--on-dark); font-size: 10.5px; font-weight: 800; letter-spacing: 0.8px; text-transform: uppercase; padding: 3px 10px; border-radius: var(--radius-full); }
.hb-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.hb-title { font-size: 16px; font-weight: 800; color: var(--text); }
.hb-per { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-secondary); }
.hb-badge { background: var(--hb-amber); color: var(--text); font-size: 11px; font-weight: 800; letter-spacing: 0.4px; text-transform: uppercase; padding: 2px 8px; border-radius: var(--radius-full); white-space: nowrap; }
.hb-note { font-size: 12.5px; color: var(--text-secondary); }

.hb-price { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; font-variant-numeric: tabular-nums; }
.hb-was { font-size: 12px; color: var(--text-muted); }
.hb-amount { font-size: 19px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); }
.hb-small { font-size: 11.5px; color: var(--text-muted); font-weight: 700; }
.hb-total-save { font-size: 12.5px; font-weight: 800; color: var(--success); }

.hb-stepper { display: inline-flex; align-items: center; gap: 10px; flex: none; background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-full); padding: 5px; }
.hb-step { width: 34px; height: 34px; border-radius: 50%; border: none; background: var(--surface); color: var(--primary-dark); font-family: inherit; font-size: 18px; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 6px rgba(47,54,33,0.06); cursor: pointer; }
.hb-step:hover:not(:disabled) { background: var(--surface-warm); }
.hb-step:disabled { opacity: 0.35; cursor: not-allowed; }
.hb-step-value { min-width: 30px; text-align: center; font-size: 15px; font-weight: 800; color: var(--text); font-variant-numeric: tabular-nums; }

.hb-nudge { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; background: var(--hb-keepsake); border-radius: var(--radius-md); padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--text); }
.hb-nudge[hidden] { display: none; } /* the marketing site has no [hidden] reset, and display:flex above beats the UA rule */
.hb-nudge svg { flex: none; margin-top: 1px; }
.hb-nudge-btn { margin-top: 8px; border: 1.5px solid var(--primary-dark); background: transparent; color: var(--primary-dark); font-family: inherit; font-weight: 800; font-size: 13px; border-radius: var(--radius-full); padding: 5px 12px; cursor: pointer; }

.hb-binding button:focus-visible, .hb-tile:focus-visible, .hb-pick:focus-visible, .hb-step:focus-visible, .hb-nudge-btn:focus-visible { outline: 3px solid var(--primary-light); outline-offset: 2px; }

@media (max-width: 520px) {
  .hb-wrap { padding: 20px 16px 22px; }
  .hb-tile { padding: 14px; gap: 10px; flex-wrap: wrap; }
  .hb-pick { flex-basis: 100%; }
  /* Price drops under the text so the badges keep the full width. */
  .hb-price { flex-basis: 100%; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; padding-left: 30px; }
  .hb-head { flex-wrap: wrap; }
  .hb-head-sub { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hb-binding button, .hb-tile, .hb-radio-dot { transition: none; }
}

/* Pricing page: light like the home hero (the site's main is dark); CTA under the card. */
.pricing-page { background: var(--bg); color: var(--text); }
.pricing-page .btn--wide { margin-top: 28px; }
/* Signed in (set by home-dashboard.js): the dashboard replaces the hero's
   CTA, pricing card and store badges. Pricing stays reachable at /pricing. */
.bbm-signed-in .hero .btn--wide, .bbm-signed-in .hero .hb-wrap, .bbm-signed-in .hero .get-app { display: none; }

/* Pricing page: plain price list (readable without JavaScript). */
.price-list { max-width: 640px; margin: 48px auto 0; text-align: left; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.price-list__title { font-size: 24px; font-weight: 900; color: var(--text); margin-bottom: 8px; }
.price-list__subtitle { font-size: 18px; font-weight: 800; color: var(--text); margin: 24px 0 8px; }
.price-list ul { padding-left: 20px; display: grid; gap: 6px; }
.price-list p { margin: 0 0 8px; }
.price-list__scroll { overflow-x: auto; margin: 12px 0 0; }
.price-list__table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius-md); overflow: hidden; }
.price-list__table th, .price-list__table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
.price-list__table thead th { font-weight: 800; color: var(--text); background: var(--surface-warm); }
.price-list__table tbody th { font-weight: 700; color: var(--text); }
.price-list__table tbody tr:last-child > * { border-bottom: 0; }
@media (max-width: 520px) {
  .price-list__table th, .price-list__table td { padding: 9px 8px; font-size: 14px; }
  .price-list__table thead th { white-space: normal; }
}
