/* Budgie site-wide minimal layer 2026-11-19: footer, newsletter, price block, trial band.
   Quiet type, hairlines, generous space. Product pages keep their own palettes; the shared blocks
   borrow page background/text/accent through --bw-page-* set by site.js. */
:root {
  --bw-page-bg: #f5f6f8;
  --bw-page-fg: #18233a;
  --bw-accent-btn: #2f5fb3;
  /* Footer follows each page's own palette (set by site.js from the page body): slightly tinted page colour. */
  --bw-foot-bg: color-mix(in srgb, var(--bw-page-bg) 93%, var(--bw-page-fg));
  --bw-foot-fg: var(--bw-page-fg);
  --bw-foot-muted: color-mix(in srgb, var(--bw-page-fg) 62%, var(--bw-page-bg));
  --bw-foot-line: color-mix(in srgb, var(--bw-page-fg) 13%, transparent);
  --bw-font: BudgieBrandUI, BudgieUI, Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans CJK SC", sans-serif;
  --bw-brand-font: BudgieBrandTitle, BudgieBrandUI, -apple-system, BlinkMacSystemFont, sans-serif;
}
.bw-replaced-footer, .bw-replaced-pricing { display: none !important; }
.bw-sr, .bw-hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Footer ---------- */
.bw-footer { background: var(--bw-foot-bg); color: var(--bw-foot-fg); font-family: var(--bw-font); margin-top: 0; position: relative; z-index: 1; border-top: 1px solid var(--bw-foot-line); }
.bw-footer-in { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: clamp(48px, 7vw, 88px) 0 28px; }
.bw-footer a { color: inherit; text-decoration: none; }
.bw-footer-top { display: grid; grid-template-columns: minmax(220px, 1fr) 2.2fr; gap: 48px; }
.bw-footer-mark { display: inline-flex; align-items: center; gap: 12px; }
.bw-footer-mark img { width: 40px; height: auto; }
/* Same type as the nav brand: BudgieBrandTitle 600 + spaced BudgieBrandUI line. */
.bw-footer-mark strong { display: grid; gap: 3px; font-family: var(--bw-brand-font); font-size: 20px; font-weight: 600; line-height: 1.1; letter-spacing: 0; }
.bw-footer-mark small { font-family: BudgieBrandUI, var(--bw-font); font-size: 10.5px; font-weight: 500; letter-spacing: .16em; color: var(--bw-foot-muted); }
.bw-footer-brand p { margin: 18px 0 0; max-width: 30ch; color: var(--bw-foot-muted); font-size: 14px; line-height: 1.7; }
.bw-footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.bw-footer-cols h2 { margin: 0 0 18px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--bw-foot-muted); }
.bw-footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.bw-footer-cols a { font-size: 14.5px; opacity: .92; }
.bw-footer-cols a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.bw-footer a:focus-visible, .bw-news :focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

.bw-news { display: grid; grid-template-columns: 1fr minmax(300px, 440px); gap: 20px 48px; align-items: end; margin-top: clamp(44px, 6vw, 72px); padding-top: clamp(32px, 4vw, 44px); border-top: 1px solid var(--bw-foot-line); }
.bw-news-eyebrow { margin: 0 0 10px; font-size: 12px; font-weight: 600; letter-spacing: .14em; color: var(--bw-foot-muted); }
.bw-news h2 { margin: 0; font-size: 20px; line-height: 1.35; font-weight: 700; }
.bw-news-copy p:last-child { margin: 8px 0 0; color: var(--bw-foot-muted); font-size: 14px; line-height: 1.65; max-width: 48ch; }
.bw-news-field { display: flex; gap: 8px; }
.bw-news-field input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; border: 1px solid var(--bw-foot-line); border-radius: 12px; background: color-mix(in srgb, var(--bw-page-fg) 4%, var(--bw-foot-bg)); color: var(--bw-foot-fg); font: inherit; font-size: 15px; }
.bw-news-field input::placeholder { color: var(--bw-foot-muted); opacity: .8; }
.bw-news-field input:focus { border-color: color-mix(in srgb, var(--bw-page-fg) 45%, transparent); outline: none; }
.bw-news-field button { height: 48px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--bw-foot-fg); color: var(--bw-foot-bg); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; }
.bw-news-field button:hover { filter: brightness(1.15); }
.bw-news-msg { grid-column: 2; margin: 0; min-height: 1em; font-size: 13px; line-height: 1.5; color: var(--bw-foot-muted); }
.bw-news-msg.is-error { color: #d0485f; }
.bw-dark-page .bw-news-msg.is-error { color: #ff9aa9; }
.bw-news-msg.is-ok { color: #2f8a5a; }
.bw-dark-page .bw-news-msg.is-ok { color: #8fe0b5; }
.bw-footer-base { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--bw-foot-line); font-size: 12.5px; color: var(--bw-foot-muted); }
.bw-footer-formats { margin-left: auto; letter-spacing: .04em; }
/* CN filing footer stays directly under ours, in the same dark band. */
.bw-has-footer .china-site-footer { background: var(--bw-foot-bg) !important; color: var(--bw-foot-muted) !important; border-top: 1px solid var(--bw-foot-line); margin-top: 0 !important; }
.bw-has-footer .china-site-footer a { color: var(--bw-foot-muted) !important; }

@media (max-width: 860px) {
  .bw-footer-top { grid-template-columns: 1fr; gap: 36px; }
  .bw-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .bw-news { grid-template-columns: 1fr; }
  .bw-news-msg { grid-column: 1; }
  .bw-footer-formats { margin-left: 0; width: 100%; }
}
@media (max-width: 420px) { .bw-news-field { flex-direction: column; } .bw-news-field button { width: 100%; } }

/* ---------- Shared section look ---------- */
.bw-pricing, .bw-trial { font-family: var(--bw-font); color: var(--bw-page-fg); position: relative; z-index: 1; }
.bw-sec-head { text-align: center; margin: 0 auto clamp(30px, 4vw, 48px); max-width: 720px; }
.bw-eyebrow { margin: 0 0 12px; font-size: 12px; font-weight: 600; letter-spacing: .16em; opacity: .62; }
.bw-sec-head h2 { margin: 0; font-size: clamp(26px, 3.6vw, 38px); line-height: 1.2; letter-spacing: -.01em; font-weight: 700; }

/* ---------- Price block ---------- */
.bw-price-in { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: clamp(64px, 9vw, 120px) 0 clamp(40px, 6vw, 72px); }
.bw-buy { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 1.35fr); gap: 16px; align-items: stretch; }
.bw-buy.is-single { grid-template-columns: minmax(0, 520px); justify-content: center; }
.bw-buy .bw-pairbox { margin-top: 0; }
.bw-buy .bw-pairlist { grid-template-columns: 1fr; }
.bw-plan { display: flex; flex-direction: column; padding: 28px 26px 26px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 14%, transparent); border-radius: 18px; background: color-mix(in srgb, var(--bw-page-fg) 2.5%, transparent); }
.bw-plan.is-main { border-color: color-mix(in srgb, var(--bw-accent-btn) 70%, transparent); box-shadow: 0 0 0 1px color-mix(in srgb, var(--bw-accent-btn) 35%, transparent) inset; }
.bw-plan h3 { margin: 0; font-size: 14px; font-weight: 600; opacity: .7; }
.bw-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 18px 0 0; }
.bw-amount b { font-size: clamp(36px, 4.4vw, 48px); line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.bw-amount s { font-size: 20px; opacity: .45; font-variant-numeric: tabular-nums; }
.bw-amount span { font-size: 14px; opacity: .6; }
.bw-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; min-height: 28px; }
.bw-tag { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 18%, transparent); font-size: 12.5px; font-weight: 600; }
.bw-tag.is-strong { border-color: transparent; background: color-mix(in srgb, var(--bw-accent-btn) 18%, transparent); color: inherit; }
.bw-plan-note { flex: 1; margin: 16px 0 22px; font-size: 14.5px; line-height: 1.65; opacity: .78; }
.bw-btn-main, .bw-btn-line { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font: inherit; font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer; box-sizing: border-box; }
.bw-plan .bw-btn-main, .bw-plan .bw-btn-line { width: 100%; }
.bw-plan .bw-btn-line { margin-top: 10px; }
.bw-btn-main { border: 0; background: var(--bw-accent-btn); color: #fff; }
.bw-btn-main:hover { filter: brightness(1.08); }
.bw-btn-line { border: 1px solid color-mix(in srgb, var(--bw-page-fg) 28%, transparent); background: transparent; color: inherit; }
.bw-btn-line:hover { background: color-mix(in srgb, var(--bw-page-fg) 6%, transparent); }
.bw-btn-main:focus-visible, .bw-btn-line:focus-visible, .bw-bundle-band:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bw-price-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 18px 0 0; font-size: 12.5px; opacity: .6; text-align: center; }
.bw-pairbox { margin-top: clamp(28px, 4vw, 40px); padding: 24px 26px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 14%, transparent); }
.bw-pairbox-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px 28px; }
.bw-pairbox-head span { display: grid; gap: 6px; }
.bw-pairbox-head b { font-size: 18px; line-height: 1.35; }
.bw-pairbox-head small { font-size: 14px; line-height: 1.6; opacity: .72; }
.bw-pairbox-head a { flex: none; color: inherit; font-weight: 700; font-size: 15px; text-decoration: none; }
.bw-pairbox-head a:hover { text-decoration: underline; text-underline-offset: 4px; }
.bw-pairlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.bw-pairlist a { display: grid; grid-template-columns: 28px 1fr auto auto auto; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 12%, transparent); color: inherit; text-decoration: none; font-size: 14.5px; }
.bw-pairlist a:hover { background: color-mix(in srgb, var(--bw-page-fg) 5%, transparent); }
.bw-pairlist a:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.bw-pairlist img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.bw-pairlist s { font-size: 13px; opacity: .5; }
.bw-pairlist b { font-variant-numeric: tabular-nums; }
.bw-pair-state { font-style: normal; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.bw-pair-state.live { background: color-mix(in srgb, #33b27a 20%, transparent); }
.bw-pair-state.draft { border: 1px dashed color-mix(in srgb, var(--bw-page-fg) 40%, transparent); opacity: .7; }
@media (max-width: 860px) { .bw-pairlist { grid-template-columns: 1fr; } .bw-pairbox-head { flex-direction: column; } }
.bw-bundle-band { display: flex; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(28px, 4vw, 40px); padding: 24px 28px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 14%, transparent); color: inherit; text-decoration: none; }
.bw-bundle-band:hover { background: color-mix(in srgb, var(--bw-page-fg) 4%, transparent); }
.bw-bundle-band span { display: grid; gap: 6px; }
.bw-bundle-band b { font-size: 18px; line-height: 1.35; }
.bw-bundle-band small { font-size: 14px; line-height: 1.6; opacity: .72; }
.bw-bundle-band em { flex: none; font-style: normal; font-weight: 700; font-size: 15px; }

/* ---------- Trial band ---------- */
.bw-trial-in { width: min(820px, calc(100% - 32px)); margin: 0 auto; padding: clamp(56px, 8vw, 104px) 0; text-align: center; border-top: 1px solid color-mix(in srgb, var(--bw-page-fg) 10%, transparent); }
.bw-trial h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.15; letter-spacing: -.015em; }
.bw-trial p { margin: 16px auto 0; max-width: 54ch; font-size: 16px; line-height: 1.7; opacity: .78; }
.bw-trial-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }
.bw-trial ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; margin: 26px 0 0; padding: 0; list-style: none; font-size: 13.5px; opacity: .66; }
.bw-trial li::before { content: "✓"; margin-right: 7px; }

@media (max-width: 860px) {
  .bw-buy { grid-template-columns: 1fr; }
  .bw-bundle-band { flex-direction: column; align-items: flex-start; }
}

/* Cart: single entry to /bundle replacing the old fixed bundle panel. */
.bw-cart-bundles { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; margin: 0 0 28px; padding: 22px 26px; border: 1px solid color-mix(in srgb, var(--bw-page-fg) 14%, transparent); border-radius: 18px; color: inherit; text-decoration: none; font-family: var(--bw-font); }
.bw-cart-bundles:hover { background: color-mix(in srgb, var(--bw-page-fg) 4%, transparent); }
.bw-cart-bundles:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.bw-cart-bundles span { display: grid; gap: 6px; }
.bw-cart-bundles small { font-size: 12px; font-weight: 600; letter-spacing: .14em; opacity: .6; }
.bw-cart-bundles b { font-size: 20px; }
.bw-cart-bundles em { font-style: normal; font-size: 14px; opacity: .72; }
.bw-cart-bundles strong { flex: none; font-size: 15px; }
@media (max-width: 640px) { .bw-cart-bundles { flex-direction: column; align-items: flex-start; } }

.bw-price-notes { margin: 18px auto 0; padding: 0; max-width: 760px; list-style: none; display: grid; gap: 4px; text-align: center; font-size: 12.5px; line-height: 1.6; opacity: .62; }

