/* Shared storefront polish. Loaded last to retire legacy mobile overrides. */
:root { --vex-accent: #b59aff; --surface: #14121b; }
body { background-attachment: scroll !important; }
main { min-width: 0; }
::selection { background: #7250a9; color: #fff; }
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--vex-accent); outline-offset: 5px; }
:where(button, .button, .nav-links a, .text-btn) { touch-action: manipulation; }
.nav-wrap { z-index: 70; }
.site-nav { width: min(850px, 100%); justify-content: space-between; padding: 10px 12px 10px 18px; border-radius: 24px; gap: 24px !important; }
.nav-brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 44px; }
.nav-brand img { border-radius: 50%; object-fit: cover; }
.nav-brand > span { font-size: 13px; letter-spacing: .16em; font-weight: 800; }
.nav-brand small { display: block; font-size: 8px; letter-spacing: .32em; color: #b7aacb; margin-top: 3px; }
.nav-links { display: flex; align-items: center; gap: 23px; }
.nav-links > a { display: flex; align-items: center; min-height: 44px; color: #c9c4d2; }
.nav-links .nav-cta { color: #16111e; background: linear-gradient(120deg, #fff, #dfd1f8); }
.nav-links [aria-current], .nav-links a:hover { color: var(--vex-accent); }
.nav-links .nav-cta:hover { color: #16111e; }
.site-nav [hidden] { display: none !important; }
.nav-toggle { align-items: center; justify-content: center; gap: 10px; min-width: 92px; min-height: 44px; border: 1px solid #ffffff26; border-radius: 14px; background: #ffffff0a; color: #eee9f7; font-size: 13px; }
.menu-icon { display: grid; gap: 5px; width: 17px; }
.menu-icon i { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.is-open .menu-icon i:first-child { transform: translateY(3.5px) rotate(45deg); }
.is-open .menu-icon i:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.hero { position: relative; padding-top: 182px; }
.hero h1 { font-size: clamp(48px, 7.4vw, 96px); line-height: 1.05; letter-spacing: -.065em; text-wrap: balance; overflow-wrap: anywhere; }
.hero > p { color: #b4adbf; line-height: 1.8; text-wrap: pretty; }
.eyebrow { display: inline-flex; align-items: center; border: 1px solid #b59aff30; border-radius: 999px; padding: 10px 14px; background: #b59aff09; font-size: 10px; }
.hero-art { position: relative; margin-top: 56px; border-color: #b59aff36; border-radius: 24px; box-shadow: 0 24px 80px #0007, 0 0 55px #b59aff12; }
.hero-art::after { content: ''; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px #ffffff0c; pointer-events: none; }
.hero-actions .button { min-height: 52px; padding-inline: 26px; }
.section { padding-top: 108px; scroll-margin-top: 112px; }
.section-heading { margin-bottom: 32px; }
.section-heading h2, .contact h2 { font-size: clamp(34px, 4.7vw, 62px); line-height: 1.12; letter-spacing: -.05em; text-wrap: balance; }
.kicker { color: #b5a3d2; }
.toolbar { gap: 16px; }
.chip { min-height: 44px; padding-inline: 19px; }
.chip.active { background: #e3d5ff; color: #21152e; border-color: #e3d5ff; }
.search { min-height: 48px; background: #14111c; border-color: #b59aff30; }
.search:focus-within { border-color: var(--vex-accent); box-shadow: 0 0 0 3px #b59aff12; }
.search input { min-width: 0; font-size: 16px; }
.product-card { border-radius: 22px; padding: 10px; background: linear-gradient(145deg, #1b1724, #100f14 65%); border-color: #ffffff16; }
.product-card .thumb { border-radius: 14px; }
.card-info { padding: 20px 10px 10px; }
.card-info h3 { font-size: 20px; line-height: 1.35; overflow-wrap: anywhere; }
.card-button { min-height: 48px; align-items: center; background: #e6def1; border-radius: 12px; }
.product-card .tag { border-radius: 6px; padding: 5px 8px; }
.bundle-panel { border-color: #b59aff40; background: radial-gradient(ellipse at 85% 45%, #5c35803d, transparent 65%), #121016; }
.bundle-visual img { box-shadow: 0 0 90px #ac77ff25; }
.faq details { border: 1px solid #ffffff18; border-radius: 16px; background: #15121b; padding: 0; margin-block: 12px; }
.faq summary { padding: 22px; line-height: 1.5; min-height: 64px; }
.faq details p { margin: 0; padding: 0 22px 22px; color: #bdb5c8; }
.faq details[open] { border-color: #b59aff70; background: #1b1526; }
.contact { padding-bottom: 90px; }
.footer { gap: 20px; }
.footer > div { flex-wrap: wrap; }
.footer .text-btn { min-height: 44px; display: inline-flex; align-items: center; }
.product-layout, .account-panel, .purchase-card { border-color: #b59aff28; background: linear-gradient(140deg, #19141f, #101014); }
.product-buy-column { min-width: 0; }
.product-buy-column h1, .account-page h1 { overflow-wrap: anywhere; text-wrap: balance; }
.download-links a { white-space: normal; overflow-wrap: anywhere; }
.account-panel input { font-size: 16px; }
.reveal { opacity: 1; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .product-card:hover, .product-card:focus-within { transform: translateY(-5px) !important; box-shadow: 0 20px 50px #0006, 0 0 30px #b59aff24 !important; }
  .hero-art img { transition: transform 1s ease; }
  .hero-art:hover img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .eyebrow, .hero h1, .hero > p, .hero-actions { animation: vex-arrive .65s ease both; }
  .hero h1 { animation-delay: .06s; }
  .hero > p { animation-delay: .12s; }
  .hero-actions { animation-delay: .18s; }
}
@keyframes vex-arrive { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 760px) {
  html { scrollbar-gutter: auto; }
  .container { padding-inline: 20px; }
  .nav-wrap, body.has-sale-banner .nav-wrap { top: max(12px, env(safe-area-inset-top)) !important; padding-inline: 12px; }
  .site-nav { position: relative; flex-wrap: wrap; gap: 0 !important; padding: 8px 10px 8px 14px; border-radius: 20px; background: rgba(22,18,30,.96) !important; }
  .nav-brand > span { font-size: 12px; }
  .nav-toggle { display: flex; }
  .nav-toggle:hover { transform: none !important; }
  .nav-links { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-block: 12px 4px; }
  .nav-ready .nav-links { position: absolute; top: calc(100% + 8px); left: 0; right: 0; width: auto; max-height: calc(100dvh - 110px); overflow-y: auto; padding: 12px; background: #17121ff5; border: 1px solid #b59aff40; border-radius: 20px; box-shadow: 0 24px 65px #0009; }
  .nav-links > a { min-height: 52px; padding: 14px 16px; border-radius: 12px; background: #ffffff06; font-size: 15px; }
  .nav-links .nav-cta { grid-column: 1 / -1; justify-content: space-between; background: linear-gradient(120deg, #fff, #dfd1f8); }
  .nav-links .nav-cta span { margin: 0; }
  .nav-wrap:has(.site-nav:not(.nav-ready)) { position: relative; }
  .hero { padding-top: 132px; text-align: left; }
  .hero h1 { font-size: clamp(40px, 10vw, 66px); letter-spacing: -.055em; line-height: 1.09; margin: 22px 0; }
  .hero > p { font-size: 16px; margin: 0 0 26px; max-width: 36rem; line-height: 1.7; }
  .eyebrow { font-size: 9px; letter-spacing: .1em; padding: 9px 11px; }
  .hero-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-actions .button { min-height: 52px; padding: 14px 10px; font-size: 14px; gap: 6px; }
  .hero-art { margin-top: 32px; border-radius: 18px; }
  .section { padding-top: 68px; scroll-margin-top: 96px; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading h2, .contact h2 { font-size: clamp(32px, 8vw, 48px); line-height: 1.15; }
  .section-heading > p { max-width: none; font-size: 15px; }
  .toolbar { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .search { order: -1; width: 100%; }
  .search input { width: 100%; min-height: 48px; }
  .filters { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; padding: 5px 3px 10px; scroll-padding-inline: 3px; scrollbar-width: thin; scrollbar-color: #59466e transparent; }
  .filters .chip { flex: 0 0 auto; white-space: nowrap; font-size: 13px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
  .bundle-panel { grid-template-columns: 1fr; min-height: 0; }
  .bundle-copy { padding: 28px 24px 10px; }
  .bundle-copy h3 { font-size: 32px; }
  .bundle-copy p { font-size: 15px; }
  .bundle-copy .button { width: 100%; min-height: 50px; }
  .bundle-visual { min-height: 180px; padding: 20px; }
  .bundle-visual img { width: 130px; }
  .faq summary { padding: 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }
  .contact { text-align: left; padding-bottom: 60px; }
  .contact .button { width: 100%; min-height: 52px; }
  .footer { flex-direction: column; align-items: stretch; padding-top: 26px; padding-bottom: max(26px, env(safe-area-inset-bottom)); gap: 12px; }
  .footer > div { gap: 14px; justify-content: flex-start; }
  .footer small { display: block; margin-left: 0; }
  .product-page, .account-page { padding-top: 108px; padding-bottom: 48px; }
  .product-layout { grid-template-columns: minmax(0,1fr); padding: 12px; border-radius: 20px; gap: 8px; }
  .product-buy-column { padding: 10px 4px; }
  .product-buy-column h1 { font-size: clamp(30px,8vw,42px); }
  .product-purchase { min-height: 54px; }
  .product-benefits { line-height: 1.6; gap: 10px; }
  .details-section { padding: 40px 0; }
  .details-copy { font-size: 16px; line-height: 1.8; }
  .account-panel, .purchase-card { padding: 20px; border-radius: 18px; }
  .account-page .account-actions { gap: 10px; }
  .account-actions .button { min-height: 48px; }
  .vex-event { margin-top: 90px; }
  .vex-event-copy { padding-block: 12px; }
  .vex-event-copy strong { line-height: 1.3; }
  body.has-sale-banner .hero { padding-top: 32px !important; }
  .modal { padding: 18px; width: calc(100% - 24px); max-height: 90dvh; }
  .modal .close { width: 44px; height: 44px; }
}
@media (max-width: 540px) {
  .product-grid { grid-template-columns: minmax(0,1fr); gap: 20px; }
  .card-info { padding: 18px 8px 8px; }
  .card-info h3 { font-size: 21px; }
  .card-button { font-size: 15px; min-height: 50px; }
}
@media (max-width: 360px) {
  .container { padding-inline: 16px; }
  .hero-actions { grid-template-columns: 1fr; }
  .eyebrow { font-size: 8px; }
}
@media (hover: none), (pointer: coarse) {
  .product-card:hover, .product-card:focus-within, .button:hover, .nav-cta:hover, .card-button:hover { transform: none !important; box-shadow: none !important; }
  .product-card:hover .thumb img { transform: none; }
  body::before { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .product-card:hover, .product-card:focus-within { transform: none !important; }
}

/* Reserve real header space instead of a collapsing first-child banner margin. */
@media (max-width: 760px) {
 body.has-sale-banner { padding-top: var(--sale-nav-clearance, 96px); }
 body.has-sale-banner .vex-event { margin-top: 0; }
 body.has-sale-banner .vex-event-copy { gap: 8px; padding: 12px 16px; }
 body.has-sale-banner .vex-event-copy strong { overflow-wrap: anywhere; }
}


/* Mobile viewport guard: prevent fixed nav and wide flex/grid children from
   expanding the document beyond the device viewport. */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 760px) {
  .nav-wrap {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    padding-inline: 12px;
  }

  .site-nav {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .nav-brand,
  .nav-links,
  .hero,
  .hero-actions,
  .section,
  .section-heading,
  .toolbar,
  .bundle-panel,
  .footer {
    min-width: 0;
    max-width: 100%;
  }

  .hero h1,
  .hero > p,
  .section-heading h2,
  .contact h2 {
    max-width: 100%;
    overflow-wrap: anywhere;
  }

  .hero-art,
  .product-grid,
  .bundle-panel,
  .faq {
    width: 100%;
    min-width: 0;
  }

  .hero-actions > *,
  .nav-links > * {
    min-width: 0;
    max-width: 100%;
  }
}
