/* Commerce uses the site's Living Glass shell; these rules own its content. */
[hidden] { display: none !important; }
.commerce-main { max-width: 1160px; margin: 0 auto; padding: 152px 28px 100px; }
.page-header.downloads-header { padding-top: 104px; padding-bottom: 24px; }
.downloads-header .page-title { font-size: clamp(32px, 3.4vw, 44px); margin-bottom: 12px; }
.downloads-header .page-subtitle { max-width: 112ch; font-size: 15px; }
.downloads-header .page-subtitle + .page-subtitle { margin-top: 10px; }
.downloads-header .page-subtitle a { color: var(--accent-light); text-underline-offset: 4px; text-decoration: underline; white-space: nowrap; }
.download-shortcuts { display: none; }
.commerce-main.download-options { max-width: 1200px; padding: 0 40px 40px; scroll-margin-top: 140px; }
.download-tiers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.download-tiers .tier-card { padding: 24px; scroll-margin-top: 140px; }
.download-tiers .tier-card h2 { font-size: 22px; line-height: 1.2; }
.download-tiers .tier-price { margin: 12px 0; gap: 10px; }
.download-tiers .tier-price strong { font-size: 40px; line-height: 1.1; letter-spacing: -.03em; }
.download-tiers .tier-price span { font-size: 13px; }
.download-tiers .tier-intro { font-size: 14px; line-height: 1.5; min-height: 42px; }
.download-tiers .tier-features { margin: 20px 0 0; flex: none; }
.download-tiers .tier-features li { padding-top: 8px; padding-bottom: 8px; font-size: 13px; }
.download-tiers .commerce-button { padding-inline: 12px; }
/* The button sits with the price, above the feature list, so every tier's action is on screen without scrolling.
   Rows are shared across the three cards so the prices, intros and buttons line up. */
@media (min-width: 761px) {
  .download-tiers { grid-template-rows: repeat(5, auto); }
  .download-tiers .tier-card { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 0; }
  .download-tiers .tier-intro { min-height: 0; margin-bottom: 18px; }
  .download-tiers .commerce-button { align-self: start; }
}
/* Under the tier cards: what concerns those cards, then the reason to support, then the other ways to do it. */
.tier-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin-top: 16px; font-size: 14px; color: var(--t-secondary); }
.tier-manage { margin-left: auto; }
.purchase-status { padding: 8px 12px; border: 1px solid var(--border-card); border-radius: var(--r-md); background: rgba(255,255,255,.04); color: var(--t-primary); font-size: 14px; }
.support-more { margin-top: 72px; }
.support-more h2 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.02em; line-height: 1.2; color: var(--t-primary); text-wrap: balance; }
.support-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.more-option { display: flex; flex-direction: column; padding: 24px; scroll-margin-top: 140px; }
.more-option h3 { font-size: 22px; font-weight: 500; line-height: 1.2; }
.more-option > p { margin-top: 8px; color: var(--t-secondary); font-size: 14px; line-height: 1.6; }
.more-option-action { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-top: auto; padding-top: 24px; }
.more-option-action .tier-price { margin: 0; gap: 10px; }
.more-option-action .tier-price strong { font-size: 28px; letter-spacing: -.03em; }
.more-option-action .tier-price span { font-size: 13px; }
.more-option-action .commerce-button { min-width: 200px; }
.more-option > .more-option-status { margin-top: 8px; font-size: 13px; }
.more-option-status:empty { display: none; }
.support-notes { margin-top: 24px; max-width: 80ch; font-size: 13px; line-height: 1.6; color: var(--t-secondary); }
.support-notes p + p { margin-top: 6px; }
@media (max-width: 760px) {
  .support-more { margin-top: 56px; }
  .support-more-grid { grid-template-columns: 1fr; }
  .more-option-action .commerce-button { width: 100%; }
  .tier-manage { margin-left: 0; }
}
.companion-download { padding-bottom: 64px; }
.commerce-main a { color: var(--accent-light); text-underline-offset: 4px; }
.commerce-main p { line-height: 1.65; }
.commerce-hero { margin-bottom: 42px; max-width: 800px; }
.commerce-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.08; letter-spacing: -.045em; font-weight: 600; margin-bottom: 22px; }
.commerce-hero p { color: var(--t-secondary); font-size: 17px; max-width: 650px; }
.commerce-subnav { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 24px; font-size: 14px; }
.free-strip { display: flex; gap: 28px; align-items: center; justify-content: space-between; padding: 25px 28px; border: 1px solid var(--border-card); border-radius: var(--r-lg); background: rgba(255,255,255,.035); margin-bottom: 32px; }
.free-strip h2 { font-size: 20px; font-weight: 500; margin-bottom: 7px; }
.free-strip p { color: var(--t-secondary); font-size: 14px; }
.commerce-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 12px 22px; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.07); color: white !important; font: 500 14px/1.4 var(--font); text-decoration: none; cursor: pointer; transition: background .15s; }
.commerce-button:hover { background: rgba(255,255,255,.13); }
.commerce-button.primary { background: #0078d4; border-color: #148ae6; }
.commerce-button.primary:hover { background: #006bc0; }
.commerce-button:disabled { opacity: .55; cursor: not-allowed; }
.commerce-button.secondary { background: transparent; }
.commerce-button.small { min-height: 38px; padding: 8px 14px; font-size: 13px; }
.commerce-main :focus-visible { outline: 2px solid var(--accent-light); outline-offset: 4px; }
.pricing-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.commerce-card { background: var(--glass-light); border: 1px solid var(--border-card); border-radius: var(--r-lg); padding: 32px; backdrop-filter: var(--glass-blur-sm); }
.tier-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.tier-card::before { content: ''; position: absolute; inset: 0 15% auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent); }
.tier-card.early { border-color: rgba(96,205,255,.4); background: linear-gradient(145deg, rgba(0,120,212,.14), rgba(255,255,255,.04)); }
.tier-card h2 { font-size: 24px; font-weight: 500; }
.tier-price { display: flex; align-items: baseline; gap: 12px; margin: 22px 0 17px; }
.tier-price strong { font-size: 48px; font-weight: 500; letter-spacing: -.045em; }
.tier-price span { color: var(--t-secondary); font-size: 14px; }
.tier-intro { color: var(--t-secondary); font-size: 15px; min-height: 50px; }
.tier-features { list-style: none; margin: 22px 0 30px; padding: 0; flex: 1; }
.tier-features li { padding: 10px 0 10px 24px; position: relative; font-size: 14px; line-height: 1.5; border-top: 1px solid rgba(255,255,255,.07); }
.tier-features li::before { content: '✓'; color: var(--accent-light); position: absolute; left: 0; }
.tier-card .commerce-button { width: 100%; }
.commerce-faq { max-width: 800px; margin: 62px 0 0; }
.commerce-faq h2 { font-size: 26px; font-weight: 500; margin-bottom: 22px; }
.commerce-faq details { border-top: 1px solid var(--border-card); padding: 19px 0; }
.commerce-faq summary { cursor: pointer; font-size: 16px; line-height: 1.5; }
.commerce-faq details p { color: var(--t-secondary); font-size: 14px; margin-top: 14px; }
.commerce-status { border-left: 2px solid var(--accent-light); padding: 12px 16px; background: rgba(0,120,212,.07); margin: 20px 0; color: #d9e8f3; font-size: 14px; line-height: 1.6; }
.commerce-status:empty { display: none; }
.purchase-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(280px,.8fr); gap: 24px; align-items: start; }
.purchase-layout h2, .purchase-dashboard h2 { font-size: 23px; font-weight: 500; margin-bottom: 14px; }
.purchase-layout p, .purchase-dashboard p { color: var(--t-secondary); font-size: 14px; }
.purchase-layout .commerce-button { margin-top: 18px; }
.commerce-form { display: grid; gap: 14px; }
.commerce-form label { display: grid; gap: 8px; font-size: 14px; line-height: 1.5; }
.commerce-form input:not([type=checkbox]) { width: 100%; min-height: 46px; background: rgba(0,0,0,.2); color: white; font: 15px var(--font); border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: 11px 13px; }
.commerce-form input::placeholder { color: rgba(255,255,255,.45); }
.commerce-form label.consent { display: flex; align-items: flex-start; gap: 10px; color: var(--t-secondary); }
.consent input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--accent); margin-top: 2px; }
.purchase-dashboard { display: grid; gap: 24px; }
.dashboard-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.dashboard-heading h2 { margin: 0; }
.purchase-code { display: block; font: 500 clamp(19px,2.7vw,28px)/1.5 ui-monospace, monospace; letter-spacing: .025em; overflow-wrap: anywhere; margin: 12px 0; color: white; user-select: all; }
.purchase-section { border-top: 1px solid var(--border-card); margin-top: 28px; padding-top: 24px; }
.purchase-section h3 { font-size: 18px; font-weight: 500; margin-bottom: 12px; }
.device-list { list-style: none; padding: 0; margin-top: 12px; }
.device-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.device-row span { overflow-wrap: anywhere; }
.device-row small { display: block; margin-top: 5px; color: var(--t-secondary); }
.credit-form { max-width: 560px; margin-top: 18px; }
.commerce-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.producer-list { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 0 32px; list-style: none; padding: 0; }
.producer-list li { font-size: 20px; overflow-wrap: anywhere; padding: 22px 0; border-bottom: 1px solid var(--border-card); }
.producer-empty { max-width: 720px; padding: 40px; }
.producer-empty h2 { font-size: 25px; font-weight: 500; margin-bottom: 12px; }
.producer-empty p { color: var(--t-secondary); margin-bottom: 24px; }
.commerce-main .back-link { display: inline-block; font-size: 14px; margin-bottom: 24px; }
.commerce-main .muted { color: var(--t-secondary); }
.checkout-note { margin-top: 18px; }
@media (max-width: 760px) {
  .page-header.downloads-header { padding-top: 100px; }
  .download-shortcuts { display: flex; flex-wrap: wrap; column-gap: 20px; margin-top: 16px; }
  .download-shortcuts a { display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-light); font-size: 13px; text-underline-offset: 4px; }
  .commerce-main.download-options { padding: 0 16px 40px; }
  .download-tiers { grid-template-columns: 1fr; }
  .download-tiers .tier-card { padding: 24px; scroll-margin-top: 160px; }
  .download-tiers .free { display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .download-tiers .free h2 { align-self: center; }
  .download-tiers .free .tier-price { margin: 0; }
  .download-tiers .free .tier-price strong { font-size: 32px; }
  .download-tiers .free .tier-intro, .download-tiers .free .tier-features, .download-tiers .free .commerce-button { grid-column: 1 / -1; }
  .download-tiers .free .tier-intro { min-height: 0; }
  .download-tiers .tier-card:not(.free) .tier-intro { margin-bottom: 16px; }
  .download-tiers .free .tier-features { margin: 4px 0 0; }
  .download-tiers .free .tier-features li { padding: 0; border: 0; }
  .download-tiers .free .tier-features li::before { content: none; }
  footer { position: relative; height: auto; padding: 20px; flex-direction: column; gap: 14px; }
  .footer-left, .footer-right { flex-wrap: wrap; justify-content: center; gap: 14px; }
  body { padding-bottom: 0; }
  .commerce-main { padding: 120px 20px 100px; }
  .commerce-hero { margin-bottom: 30px; }
  .commerce-hero p { font-size: 16px; }
  .pricing-pair, .purchase-layout { grid-template-columns: 1fr; }
  .commerce-card { padding: 25px; }
  .free-strip { flex-direction: column; align-items: stretch; padding: 24px; gap: 18px; }
  .tier-intro { min-height: 0; }
  .producer-list { grid-template-columns: 1fr 1fr; gap: 0 22px; }
  .dashboard-heading { align-items: flex-start; }
}
@media (max-width: 420px) { .commerce-card { padding: 21px; } .producer-list { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .bg-artwork, .bg-glow { animation: none !important; } html { scroll-behavior: auto; } }

