/* Shared presentation only. Existing checkout/account scripts stay in their pages. */
:root {
  color-scheme: dark;
  --bg: #101112;
  --bg-1: #18191b;
  --bg-2: #202225;
  --line: #34373b;
  --line-hot: #4a4e54;
  --line-accent: #a94149;
  --fg: #f1f1f2;
  --fg-dim: #b1b4b9;
  --fg-faint: #92969e;
  --accent: #f08088;
  --accent-dim: rgba(240,128,136,.08);
  --ui-action: #a94149;
  --ui-radius: 16px;
  --ui-ease: cubic-bezier(.2,.8,.2,1);
}
html { scroll-padding-top: 100px; scrollbar-gutter: stable; }
body { background: var(--bg); color: var(--fg); font-size: 16px; line-height: 1.65; }
body p { text-wrap: pretty; }
body h1, body h2, body h3 { text-wrap: balance; text-shadow: none; }
body :is(.page-head,.status-hero,.det-hero,.cl-hero,.guide-hero,.game-hero,.legal-hero,.ref-hero,.thx-hero) h1 {
  font-size: clamp(38px,5vw,68px); font-weight: 750; letter-spacing: -.045em;
  line-height: 1.05; background: none; color: var(--fg); -webkit-text-fill-color: currentColor;
}
body :is(.page-head,.status-hero,.det-hero,.cl-hero,.guide-hero,.game-hero) { padding-top: 64px; padding-bottom: 40px; }
body :is(.lede,.hero-lede,.sh-sub,.section-note) { font-size: 16px; line-height: 1.7; color: var(--fg-dim); max-width: 65ch; }
body :is(.sh-title,.prod-block-head .name,.ac-name) { background: none; -webkit-text-fill-color: currentColor; color: var(--fg); text-shadow: none; }
body :is(.eyebrow,.label,.lbl,.kicker,.product-type,.crumbs,.footer-links a) { font-family: var(--sans); letter-spacing: .02em; text-transform: none; }
body :is(.price,.amt,.p-price-amount,.pv-btn .vp,table) { font-variant-numeric: tabular-nums; }
body :is(.statusbar,.amb-blob,.amb-orb,.amb-watermark,.amb-scanlines,.amb-scan,.amb-vignette,.status-hero-glow,.det-hero-glow,.cl-hero-glow,.guide-hero-glow) { display: none; }
body .amb-grid { opacity: .35; }
body .noise { opacity: .018; animation: none; }
body :is(.dot,.lw-dot,.qq-dot,.banner-dot) { box-shadow: none; animation: none; }
body a:focus-visible, body button:focus-visible, body input:focus-visible, body summary:focus-visible, body [tabindex]:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 4px;
}
body .ui-skip { position: fixed; left: 16px; top: -100px; z-index: 120; padding: 12px 18px; border-radius: 8px; background: var(--fg); color: var(--bg); }
body .ui-skip:focus { top: 12px; }

/* Same stable navigation geometry on every route. */
body nav.top, body nav.top.scrolled {
  position: sticky; top: 0; padding: 0 24px; margin: 0;
  width: 100%; border: 0; border-bottom: 1px solid var(--line); border-radius: 0;
  background: rgba(16,17,18,.94); backdrop-filter: blur(12px); box-shadow: none;
}
body nav.top .nav-inner, body nav.top.scrolled .nav-inner {
  height: 76px; min-height: 76px; max-width: var(--container); width: 100%; padding: 0;
  margin: 0 auto; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 24px;
}
body nav.top .brand, body .mobile-menu .brand { font-family: var(--sans); font-size: 16px; font-weight: 800; letter-spacing: .06em; white-space: nowrap; }
body nav.top .brand::after { display: none; }
body nav.top .nav-links { display: flex; align-items: center; gap: 24px; }
body nav.top .nav-link {
  font-family: var(--sans); font-size: 14px; font-weight: 500; padding: 12px 0;
  text-transform: none; letter-spacing: 0; color: var(--fg-dim);
  transition: color .16s ease;
}
body nav.top .nav-link::before { display: none; }
body nav.top .nav-link::after { height: 2px; bottom: 5px; background: var(--accent); }
body nav.top .nav-link:hover, body nav.top .nav-link.active, body nav.top .nav-link[aria-current="page"] { color: var(--fg); }
body .nav-cta { gap: 10px; }
body nav.top .nav-cta .btn { min-height: 44px; padding: 10px 16px; background: var(--bg-1); border-color: var(--line); color: var(--fg); box-shadow: none; }
body nav.top .nav-cta .btn:hover { background: var(--bg-2); border-color: var(--line-hot); }
body .nav-burger, body .mm-close { width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 8px; flex-shrink: 0; }
body .mobile-menu {
  background: var(--bg); padding: 24px max(24px,calc((100vw - 700px)/2)); overflow-y: auto;
  transition: opacity .18s ease, transform .18s var(--ui-ease), visibility .18s;
}
body .mobile-menu a { min-height: 48px; font-family: var(--sans); font-size: 22px; font-weight: 550; letter-spacing: -.02em; text-transform: none; }
body .mobile-menu > .row { margin-bottom: 36px; }
body .mobile-menu .mm-close { font-size: 26px; }
body .mobile-menu a:hover { transform: none; color: var(--accent); }
body .mobile-menu a::before { display: none; }

/* Quiet tactile controls, including existing license selectors. */
body :is(.btn,.p-cta,.go,.d-btn,.su-btn,.filter,.cl-filter,.var,.pv-btn,.lic-btns a,.lic-btns button,.fix-btn,.pw-toggle) {
  min-height: 44px; border-radius: 8px; font-family: var(--sans); letter-spacing: 0;
  text-transform: none; font-weight: 650;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .12s ease;
}
body .btn { padding: 12px 20px; background: var(--bg-1); border: 1px solid var(--line); color: var(--fg); box-shadow: none; }
body :is(.btn-primary,.p-cta,.buy-cta .go,.d-btn,.su-btn,.sticky-buy .go) {
  background: var(--ui-action); color: #fff; border: 1px solid var(--ui-action); box-shadow: none;
}
body :is(.btn,.p-cta)::before { display: none; }
body :is(.btn-primary,.p-cta,.buy-cta .go,.d-btn,.su-btn,.sticky-buy .go):hover {
  background: #b64852; border-color: #b64852; color: #fff; box-shadow: none; transform: none;
}
body :is(.btn,.p-cta,.go,.d-btn,.su-btn,.filter,.cl-filter,.var,.pv-btn):active { transform: translateY(1px); }
body :is(.review-search,.faq-search,.cl-search,.d-input,.su-input) { min-height: 48px; font-family: var(--sans); font-size: 16px; border-radius: 8px; background: var(--bg); }
body :is(.filter,.cl-filter) { padding: 10px 16px; }
body :is(.filter.active,.cl-filter.active) { color: var(--fg); background: var(--bg-2); border-color: var(--line-hot); }
body :is(.d-error,.su-error,.r-msg) { line-height: 1.6; }
body #b2t, body #b2t button { min-width: 44px; min-height: 44px; }
body #b2t { border-radius: 8px; background: var(--bg-1); }
body #b2t button { padding: 0; }
body #scroll-prog { display: none; }
body :is(.ocl-icon-btn,.ocl-spoof-btn,.ocl-tab) { min-height: 44px; }
body .ocl-icon-btn { min-width: 44px; }

/* Product-first hero: preserve real supplied media, no new decoration. */
body .hero { padding: 64px 0 56px; }
body .hero-layout { gap: 48px; align-items: center; }
body .hero-title { font-size: clamp(38px,4.8vw,70px); line-height: 1.02; font-weight: 750; letter-spacing: -.045em; text-shadow: none; }
body .hero-tag { font-family: var(--sans); font-size: 13px; letter-spacing: .04em; }
body .hero-cta { gap: 12px; margin-top: 28px; }
body .hero-preview { border: 1px solid var(--line); border-radius: var(--ui-radius); background: var(--bg-1); box-shadow: 0 16px 36px rgba(0,0,0,.18); }
body .hero-preview img { opacity: 1; outline: 1px solid rgba(255,255,255,.06); outline-offset: -1px; }
body .hero-preview a { min-height: 48px; font-family: var(--sans); font-size: 14px; }

/* Native subgrid aligns the title, feature, selector, price and CTA rows. */
body #products .product-grid { gap: 24px; }
body #products .product {
  display: grid; grid-template-rows: auto auto 1fr auto auto; padding: 0; min-width: 0;
  border: 1px solid var(--line); border-radius: var(--ui-radius); background: var(--bg-1);
  box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: none;
  transition: border-color .18s ease;
}
body #products .product:hover { border-color: var(--line-hot); box-shadow: 0 8px 28px rgba(0,0,0,.12); transform: none; }
body #products .product::before, body #products .product::after { display: none; }
body #products .p-status { padding: 20px 28px 0; border: 0; background: none; }
body #products .product-type { color: var(--accent); font-size: 13px; font-weight: 600; }
body #products [data-product="xydma"] .product-type { color: var(--fg-dim); }
body #products .p-title-block { padding: 12px 28px 24px; }
body #products .p-name { font-family: var(--sans); font-size: clamp(25px,2.5vw,32px); line-height: 1.15; font-weight: 750; letter-spacing: -.03em; background: none; -webkit-text-fill-color: currentColor; }
body #products .p-subtitle { font-family: var(--sans); font-size: 14px; color: var(--fg-dim); letter-spacing: 0; margin-top: 10px; }
body #products .p-features { padding: 0 28px 24px; }
body #products .p-feat { padding: 7px 0; gap: 12px; }
body #products .p-feat-text { font-size: 15px; line-height: 1.6; }
body #products .p-variants { padding: 0 28px; margin: 0 0 24px; }
body #products .pv-label { font-family: var(--sans); font-size: 13px; color: var(--fg-dim); text-transform: none; letter-spacing: 0; }
body #products .pv-control { background: var(--bg); border-color: var(--line); border-radius: 10px; }
body #products .pv-btn { padding: 12px 6px; gap: 5px; }
body #products .pv-btn .vn { font-family: var(--sans); font-size: 12px; letter-spacing: 0; text-transform: none; }
body #products .pv-btn .vp { font-size: 18px; text-shadow: none; }
body #products .pv-btn.active .vn { color: var(--fg); }
body #products .pv-btn.active .vp { text-shadow: none; }
body #products .pv-indicator { background: var(--bg-2); border-color: var(--line-hot); box-shadow: none; transition: none; }
body #products .pv-btn.active { background: var(--bg-2); box-shadow: inset 0 0 0 1px var(--line-hot); }
body #products .pv-control:has(.pv-btn:nth-of-type(2)) .pv-indicator {
  left: 4px !important; width: calc((100% - 8px) / var(--ui-options,4)) !important;
  transform: translateX(calc(var(--ui-selected,0) * 100%)); transition: transform .2s var(--ui-ease);
}
body #products .pv-control:has(.pv-btn:nth-of-type(2)) .pv-btn.active { background: transparent; box-shadow: none; }
body #products .p-checkout { padding: 24px 28px 28px; margin: 0; border-top: 1px solid var(--line); background: none; }
body #products .p-price-row { min-height: 48px; gap: 10px; flex-wrap: wrap; }
body #products .p-price-amount { font-size: 34px; letter-spacing: -.04em; animation: none; }
body #products .p-price-period { font-family: var(--sans); font-size: 14px; color: var(--fg-dim); }
body #products .p-cta { min-height: 52px; padding: 14px 20px; font-size: 15px; }
body #products [data-product="xydma"] .p-cta { background: var(--bg-2); border-color: var(--line-hot); }
body #products [data-product="xydma"] .p-cta:hover { background: #292c30; }
body :is(.buy-panel,.prod-block,.ac-card,.review,.summary,.login-card,.signup-card,.ref-share,.ref-gate,.upsell,.cta-card,.patch-frame,.spec-block,.cl-entry,.step-card) {
  border-color: var(--line); border-radius: var(--ui-radius); background: var(--bg-1); box-shadow: none;
}
body :is(.prod-block,.ac-card,.review,.buy-panel):hover { transform: none; border-color: var(--line-hot); box-shadow: none; }
body :is(.buy-panel,.signup-card,.login-card)::before { display: none; }
body .product-layout { grid-template-columns: minmax(0,1fr); }
body .product-layout > * { min-width: 0; }
body .buy-panel { top: 100px; overflow: hidden; }
body .buy-head { padding: 24px; }
body .buy-head .name { font-family: var(--sans); font-size: 17px; letter-spacing: -.01em; }
body .variant-list { padding: 20px 24px; gap: 10px; }
body .variant-list .vlabel { font-family: var(--sans); font-size: 13px; letter-spacing: 0; text-transform: none; color: var(--fg-dim); }
body .variant-list .var { padding: 14px 16px; border: 1px solid var(--line); background: var(--bg); }
body .variant-list .var.selected { background: var(--bg-2); border-color: var(--accent); box-shadow: none; }
body .variant-list .var .vn { font-family: var(--sans); font-size: 15px; color: var(--fg); }
body .buy-cta { padding: 24px; }
body .buy-cta .go { min-height: 52px; font-size: 15px; }
body .buy-cta .note { font-family: var(--sans); font-size: 12px; line-height: 1.6; }
body .sticky-buy { background: rgba(16,17,18,.96); box-shadow: none; padding-bottom: max(12px,env(safe-area-inset-bottom)); }
body .sticky-buy .brand { font-family: var(--sans); letter-spacing: 0; }
body .sticky-buy .go { min-height: 44px; font-family: var(--sans); text-transform: none; letter-spacing: 0; }
body:has(.sticky-buy) footer.site { padding-bottom: 112px; }
body :is(.cmp-block,.spec-block) { overflow-x: auto; }
body .cmp-table { min-width: 560px; }
body .xy-demo { border-radius: var(--ui-radius); box-shadow: none; }
body .xy-demo::before, body .xy-demo-tag::before { display: none; }
body .xy-demo-tag { font-family: var(--sans); letter-spacing: 0; text-transform: none; }

/* FAQ uses the existing accordion; details motion falls back natively. */
body .faq-list { border-color: var(--line); }
body .faq-item { border-color: var(--line); background: var(--bg-1); border-radius: 10px; }
body .faq-list .faq-item { margin-bottom: 8px; }
body .faq-btn { padding: 20px 24px; min-height: 64px; }
body .faq-question, body .faq-mini summary { font-family: var(--sans); font-size: 16px; line-height: 1.5; }
body .faq-item.open .faq-question { color: var(--fg); }
body .faq-answer { transition: grid-template-rows .22s var(--ui-ease); }
body .faq-answer-inner p, body .faq-mini .a { font-size: 15px; color: var(--fg-dim); line-height: 1.75; }
body .faq-mini { interpolate-size: allow-keywords; }
body .faq-mini details::details-content { block-size: 0; opacity: 0; transition: block-size .22s ease, opacity .22s ease, content-visibility .22s allow-discrete; }
body .faq-mini details[open]::details-content { block-size: auto; opacity: 1; }
body .faq-mini summary { min-height: 56px; }
body footer.site { padding-top: 48px; border-top: 1px solid var(--line); background: var(--bg); }
body .footer-grid { align-items: flex-start; gap: 24px; }
body .footer-brand { font-family: var(--sans); font-size: 16px; letter-spacing: .03em; }
body .footer-brand .dim { display: block; font-size: 12px; margin-top: 6px; letter-spacing: 0; }
body .footer-links { gap: 4px 18px; }
body .footer-links a { display: inline-flex; align-items: center; min-height: 44px; font-size: 14px; color: var(--fg-dim); }
body .footer-note { font-family: var(--sans); font-size: 12px; line-height: 1.7; letter-spacing: 0; text-align: left; color: var(--fg-faint); }
body .reveal { transition: opacity .28s ease, transform .28s var(--ui-ease); }

/* ponytail: native cross-document fades only; unsupported browsers navigate normally. */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: ui-page-out .12s ease both; }
::view-transition-new(root) { animation: ui-page-in .16s ease both; }
@keyframes ui-page-out { to { opacity: 0; } }
@keyframes ui-page-in { from { opacity: 0; } }
@media (min-width: 960px) {
  body .sticky-buy { display: none; }
  body:has(.sticky-buy) footer.site { padding-bottom: 32px; }
  body .product-layout { grid-template-columns: minmax(0,1fr) 360px; gap: 40px; }
  body #products .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  @supports (grid-template-rows: subgrid) {
    body #products .product-grid { grid-template-rows: auto auto 1fr auto auto; }
    body #products .product { grid-row: span 5; grid-template-rows: subgrid; }
  }
}
@media (max-width: 960px) {
  body nav.top .nav-links { display: none; }
  body .nav-burger { display: flex; align-items: center; justify-content: center; }
  body .nav-cta > .btn { display: none; }
  body #products .product-grid { grid-template-columns: minmax(0,1fr); }
  body .hero-layout { gap: 32px; }
}
@media (max-width: 600px) {
  body nav.top { padding: 0 20px; }
  body nav.top .nav-inner, body nav.top.scrolled .nav-inner { height: 68px; min-height: 68px; }
  body .hero { padding: 40px 0; }
  body .hero-title { font-size: clamp(36px,9.8vw,52px); }
  body .hero-cta { display: grid; grid-template-columns: 1fr; }
  body .hero-cta .btn { justify-content: center; width: 100%; }
  body :is(.page-head,.status-hero,.det-hero,.cl-hero,.guide-hero,.game-hero) { padding-top: 40px; padding-bottom: 28px; }
  body .wrap, body .wrap-sm { padding-left: 20px; padding-right: 20px; }
  body #products :is(.p-title-block,.p-features,.p-variants,.p-checkout) { padding-left: 20px; padding-right: 20px; }
  body #products .p-status { padding-left: 20px; padding-right: 20px; }
  body #products .pv-btn .vn { font-size: 11px; }
  body #products .pv-btn .vp { font-size: 16px; }
  body .buy-panel { position: static; }
  body .faq-btn { padding: 18px 16px; gap: 10px; }
  body .faq-answer-inner p { padding: 0 16px 20px 54px; }
  body .signup-card, body .login-card { padding: 32px 24px; }
  body .other-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  body .footer-grid { flex-direction: column; }
  body .footer-links { gap: 4px 18px; }
  body .footer-note { margin-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  html { scroll-behavior: auto; }
  body *, body *::before, body *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body .reveal { opacity: 1; transform: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
