/* ============================================================================
   whips.pro - wx design system core ("night showroom", 2026-07-18)
   ----------------------------------------------------------------------------
   Shared by every dark marketing/public page on the apex: landing, /pricing,
   /vs, /features, /signup, /claim, stubs. Pages load this first, then their
   own page stylesheet (landing.css) or an inline <style> block.

   Contains: font-face, tokens, base/backdrop, wx-wrap, headings, buttons,
   nav, section scaffolding + reveal choreography, FAQ, testimonials,
   dark restyles for the shared .mdd-* pricing fragment, footer, and the
   prefers-reduced-motion kill-switch.

   Emit chrome via includes/wx_chrome.php (wx_head/wx_body_start/wx_body_end).
   ============================================================================ */

@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 400 800;
  font-stretch: 100%;
  font-display: swap;
  src: url('/assets/fonts/bricolage-var-latin.woff2') format('woff2');
}

:root {
  --wx-bg:        #05080f;
  --wx-bg-2:      #0a1322;
  --wx-ink:       #f2f6fb;
  --wx-body:      #9fadbf;
  --wx-dim:       #64748b;
  --wx-teal:      #22d3ee;
  --wx-teal-deep: #0891b2;
  --wx-amber:     #fbbf24;
  --wx-amber-deep:#f59e0b;
  --wx-line:      rgba(148, 163, 184, .14);
  --wx-line-soft: rgba(148, 163, 184, .08);
  --wx-glass:     rgba(255, 255, 255, .028);
  --wx-glass-2:   rgba(255, 255, 255, .05);
  --wx-max:       1120px;
  --wx-r:         18px;
  --wx-display:   'Bricolage Grotesque', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wx-mono:      ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;
  --wx-grad-text: linear-gradient(92deg, #67e8f9 0%, #22d3ee 34%, #38bdf8 55%, #fbbf24 100%);
  --wx-ease:      cubic-bezier(.22, .61, .2, 1);

  /* Legacy vars referenced by inline styles inside reused fragments. */
  --mdd-ink:         var(--wx-ink);
  --mdd-ink-2:       var(--wx-body);
  --mdd-muted:       var(--wx-dim);
  --mdd-accent:      var(--wx-teal);
  --mdd-accent-deep: var(--wx-teal-deep);
  --mdd-accent-warm: var(--wx-amber-deep);
}

/* ---------------------------------------------------------------- base ---- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

body.wx {
  background: var(--wx-bg);
  color: var(--wx-body);
  font: 16px/1.6 system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
}

.wx ::selection { background: rgba(34, 211, 238, .28); color: #fff; }

.wx a { color: var(--wx-teal); text-decoration: none; }
.wx a:hover { color: #7de6f7; }

.wx-skip {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--wx-amber); color: #111827; font-weight: 700;
  padding: 10px 18px; border-radius: 0 0 10px 0;
}
.wx-skip:focus { left: 0; }

/* Ambient backdrop: aurora blobs + fine noise. Fixed so every section
   floats above the same field. */
.wx-backdrop {
  position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(52rem 30rem at 82% -6%,  rgba(8, 145, 178, .17), transparent 64%),
    radial-gradient(40rem 26rem at -10% 22%, rgba(14, 116, 144, .13), transparent 60%),
    radial-gradient(44rem 30rem at 108% 62%, rgba(245, 158, 11, .05), transparent 62%),
    radial-gradient(36rem 26rem at 12% 108%, rgba(8, 145, 178, .09), transparent 60%),
    var(--wx-bg);
}
.wx-backdrop::before,
.wx-backdrop::after {
  content: ""; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; will-change: transform;
}
.wx-backdrop::before {
  width: 46rem; height: 46rem; left: -14rem; top: -18rem;
  background: radial-gradient(circle at 40% 40%, rgba(34, 211, 238, .16), transparent 65%);
  animation: wx-drift-a 26s ease-in-out infinite alternate;
}
.wx-backdrop::after {
  width: 40rem; height: 40rem; right: -16rem; top: 22rem;
  background: radial-gradient(circle at 60% 40%, rgba(251, 191, 36, .10), transparent 65%);
  animation: wx-drift-b 32s ease-in-out infinite alternate;
}
@keyframes wx-drift-a { to { transform: translate3d(9rem, 7rem, 0) scale(1.12); } }
@keyframes wx-drift-b { to { transform: translate3d(-8rem, -6rem, 0) scale(.94); } }

.wx-noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wx-wrap { max-width: var(--wx-max); margin: 0 auto; padding: 0 22px; }

/* ------------------------------------------------------------ headings ---- */

.wx-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font: 700 11.5px/1 var(--wx-mono);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--wx-teal);
  margin: 0 0 16px;
}
.wx-eyebrow::before {
  content: ""; width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--wx-teal), transparent);
}

.wx-h2 {
  font-family: var(--wx-display);
  font-size: clamp(1.9rem, 3.6vw, 2.7rem);
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -.022em;
  color: var(--wx-ink);
  margin: 0 0 14px;
  text-wrap: balance;
}
.wx-h2 em {
  font-style: normal;
  background: var(--wx-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

.wx-lede {
  max-width: 62ch; margin: 0;
  font-size: 1.06rem; color: var(--wx-body);
  text-wrap: pretty;
}
.wx-lede a { font-weight: 600; }

/* ------------------------------------------------------------- buttons ---- */

.wx-btn {
  position: relative; display: inline-flex; align-items: center; gap: 9px;
  padding: 15px 26px; border-radius: 13px;
  font: 700 15px/1 system-ui, -apple-system, sans-serif;
  text-decoration: none; cursor: pointer;
  border: 1px solid transparent;
  transition: transform .16s var(--wx-ease), box-shadow .2s, background .2s, border-color .2s;
  overflow: hidden;
}
.wx .wx-btn--primary {
  background: linear-gradient(135deg, #fcd34d, var(--wx-amber-deep) 78%);
  color: #17130a;
  box-shadow: 0 10px 30px -8px rgba(245, 158, 11, .55), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.wx .wx-btn--primary:hover {
  transform: translateY(-2px);
  color: #17130a;
  box-shadow: 0 16px 38px -8px rgba(245, 158, 11, .65), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.wx .wx-btn--primary::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 32%, rgba(255, 255, 255, .55) 50%, transparent 68%);
  transform: translateX(-120%);
  opacity: 0;
  transition: transform .7s var(--wx-ease), opacity .2s;
}
.wx .wx-btn--primary:hover::after { transform: translateX(120%); opacity: 1; }

.wx .wx-btn--ghost {
  background: var(--wx-glass);
  color: var(--wx-ink);
  border-color: var(--wx-line);
  backdrop-filter: blur(6px);
}
.wx .wx-btn--ghost:hover {
  background: var(--wx-glass-2); color: #fff;
  border-color: rgba(148, 163, 184, .3); transform: translateY(-2px);
}

.wx a:focus-visible, .wx button:focus-visible, .wx summary:focus-visible {
  outline: 2px solid var(--wx-teal); outline-offset: 3px; border-radius: 6px;
}

/* ----------------------------------------------------------------- nav ---- */

.wx-nav {
  position: sticky; top: 14px; z-index: 60;
  padding: 0 14px;
}
.wx-nav__bar {
  max-width: var(--wx-max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 10px 12px 10px 18px;
  border-radius: 999px;
  background: rgba(8, 13, 24, .58);
  border: 1px solid var(--wx-line-soft);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  transition: background .3s, border-color .3s, box-shadow .3s;
  position: relative;
}
.wx-nav.is-scrolled .wx-nav__bar {
  background: rgba(7, 11, 20, .82);
  border-color: var(--wx-line);
  box-shadow: 0 14px 40px -18px rgba(0, 0, 0, .8);
}
.wx-nav__brand { display: inline-flex; align-items: center; gap: 10px; }
.wx-nav__brand img { display: block; height: 26px; width: auto; }
.wx-nav__brand .wx-nav__mark { height: 28px; width: 28px; }
.wx-nav__brand { position: relative; overflow: hidden; border-radius: 8px; }
.wx-nav__brand::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255,255,255,.35) 50%, transparent 66%);
  transform: translateX(-130%);
}
.wx-nav__brand:hover::after { transition: transform .8s var(--wx-ease); transform: translateX(130%); }

.wx-nav ul {
  list-style: none; display: flex; align-items: center; gap: 4px;
  margin: 0; padding: 0;
}
.wx-nav ul a {
  display: inline-block; padding: 9px 14px; border-radius: 999px;
  color: #cdd8e4; font-size: 14.5px; font-weight: 600;
  transition: color .15s, background .15s;
}
.wx-nav ul a:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.wx-nav ul a.wx-nav__cta {
  margin-left: 6px;
  background: linear-gradient(135deg, #fcd34d, var(--wx-amber-deep) 78%);
  color: #17130a; font-weight: 700;
  box-shadow: 0 6px 20px -6px rgba(245, 158, 11, .5);
}
.wx-nav ul a.wx-nav__cta:hover { color: #17130a; box-shadow: 0 10px 26px -6px rgba(245, 158, 11, .6); }

.wx-nav__burger {
  display: none; background: none; border: 0; cursor: pointer;
  color: #e2e8f0; padding: 8px; border-radius: 999px;
}
.wx-nav__burger:hover { background: rgba(255, 255, 255, .08); }
.wx-nav__burger svg { display: block; width: 24px; height: 24px; }

@media (max-width: 760px) {
  .wx-nav__burger { display: inline-flex; }
  .wx-nav ul {
    position: absolute; top: calc(100% + 10px); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: rgba(8, 13, 24, .96);
    border: 1px solid var(--wx-line);
    border-radius: 22px; padding: 10px;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .9);
    display: none;
  }
  .wx-nav__bar[data-open="1"] ul { display: flex; }
  .wx-nav ul a { display: block; padding: 13px 16px; font-size: 16px; text-align: center; }
  .wx-nav ul a.wx-nav__cta { margin: 6px 0 0; }
}

/* ------------------------------------------------------------ sections ---- */

.wx-sec { position: relative; padding: clamp(72px, 9vw, 116px) 0 0; }
.wx-sec__foot { margin: 34px 0 0; }

.wx-divider {
  height: 1px; margin: clamp(72px, 9vw, 116px) auto 0;
  max-width: var(--wx-max);
  background: linear-gradient(90deg, transparent, rgba(34, 211, 238, .25) 30%, rgba(251, 191, 36, .25) 70%, transparent);
}

/* reveal choreography */
.wx [data-reveal] {
  opacity: 0; transform: translateY(26px);
  transition: opacity .75s var(--wx-ease), transform .75s var(--wx-ease);
  transition-delay: var(--d, 0s);
}
.wx [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------ pricing (mdd restyle) ---- */

.wx .mdd-pricing {
  display: grid; gap: 16px; margin-top: 38px;
  grid-template-columns: 1fr;
  align-items: stretch;
}
@media (min-width: 720px)  { .wx .mdd-pricing--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .wx .mdd-pricing--4 { grid-template-columns: repeat(4, 1fr); } }

.wx .mdd-price {
  position: relative;
  display: flex; flex-direction: column; gap: 13px;
  padding: 28px 24px 24px;
  border-radius: 20px;
  background: linear-gradient(rgba(255, 255, 255, .03), rgba(255, 255, 255, .012));
  border: 1px solid var(--wx-line-soft);
  transition: transform .25s var(--wx-ease), border-color .25s, box-shadow .25s;
}
.wx .mdd-price:hover { transform: translateY(-4px); border-color: rgba(148, 163, 184, .28); }

.wx .mdd-price h3 {
  font-family: var(--wx-display); font-weight: 720;
  font-size: 1.12rem; letter-spacing: -.012em;
  color: var(--wx-ink); margin: 0;
}
.wx .mdd-price__amount {
  font-family: var(--wx-display);
  font-size: 2.5rem; font-weight: 780; letter-spacing: -.035em;
  color: var(--wx-ink); line-height: 1;
}
.wx .mdd-price__amount small { font: 600 .82rem/1 var(--wx-mono); color: var(--wx-dim); letter-spacing: 0; margin-left: 2px; }
.wx .mdd-price__tag {
  font: 700 10.5px/1.4 var(--wx-mono);
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--wx-teal); margin-top: -6px;
}
.wx .mdd-price ul { list-style: none; margin: 2px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wx .mdd-price li { position: relative; padding-left: 26px; font-size: .92rem; color: var(--wx-body); }
.wx .mdd-price li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 16px; height: 16px; border-radius: 6px;
  background: rgba(34, 211, 238, .12);
  border: 1px solid rgba(34, 211, 238, .3);
}
.wx .mdd-price li::after {
  content: ""; position: absolute; left: 4.5px; top: 7.5px;
  width: 7px; height: 4px;
  border-left: 1.6px solid var(--wx-teal); border-bottom: 1.6px solid var(--wx-teal);
  transform: rotate(-45deg);
}
.wx .mdd-price__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.wx .mdd-price__note { font-size: .8rem; color: var(--wx-dim); text-align: center; margin: 0; }

/* featured (Pro) card: animated conic border + lift */
@property --wx-spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.wx .mdd-price--featured {
  background:
    linear-gradient(rgba(17, 24, 39, .94), rgba(12, 19, 33, .97)) padding-box,
    conic-gradient(from var(--wx-spin), rgba(251, 191, 36, .85), rgba(34, 211, 238, .5), rgba(251, 191, 36, .12), rgba(251, 191, 36, .85)) border-box;
  border: 1.4px solid transparent;
  box-shadow: 0 30px 70px -34px rgba(245, 158, 11, .5), 0 0 50px -26px rgba(251, 191, 36, .45);
  animation: wx-spin 7s linear infinite;
}
@keyframes wx-spin { to { --wx-spin: 360deg; } }
@media (min-width: 1040px) { .wx .mdd-price--featured { transform: scale(1.045); } .wx .mdd-price--featured:hover { transform: scale(1.045) translateY(-4px); } }
.wx .mdd-price--featured::after {
  content: "Recommended";
  position: absolute; top: -13px; right: 18px;
  font: 700 10px/1 var(--wx-mono); letter-spacing: .14em; text-transform: uppercase;
  color: #17130a;
  background: linear-gradient(135deg, #fcd34d, var(--wx-amber-deep));
  padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 8px 20px -8px rgba(245, 158, 11, .7);
}
.wx .mdd-price--featured .mdd-price__tag { color: var(--wx-amber); }

.wx .mdd-pricing__count { margin: 0 0 6px; font-size: .95rem; }

/* reused button classes inside fragments */
.wx .mdd-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 12px;
  font: 700 14.5px/1 system-ui, -apple-system, sans-serif;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--wx-ease), box-shadow .2s, background .2s, border-color .2s, color .2s;
}
.wx .mdd-btn--full { width: 100%; }
.wx .mdd-btn--primary {
  background: linear-gradient(135deg, #fcd34d, var(--wx-amber-deep) 78%);
  color: #17130a;
  box-shadow: 0 10px 26px -10px rgba(245, 158, 11, .6);
}
.wx .mdd-btn--primary:hover { transform: translateY(-2px); color: #17130a; }
.wx .mdd-btn--outline {
  background: transparent; color: var(--wx-teal);
  border-color: rgba(34, 211, 238, .35);
}
.wx .mdd-btn--outline:hover { background: rgba(34, 211, 238, .1); color: #9deefb; border-color: rgba(34, 211, 238, .6); }
.wx .mdd-btn--ghost {
  background: var(--wx-glass); color: var(--wx-ink); border-color: var(--wx-line);
}
.wx .mdd-btn--ghost:hover { background: var(--wx-glass-2); color: #fff; }

/* ----------------------------------------------------------------- faq ---- */

.wx-faq {
  columns: 2; column-gap: 14px;
  margin-top: 38px;
}
@media (max-width: 860px) { .wx-faq { columns: 1; } }

.wx-faq details {
  break-inside: avoid;
  margin: 0 0 14px;
  border-radius: 15px;
  background: linear-gradient(rgba(255, 255, 255, .026), rgba(255, 255, 255, .012));
  border: 1px solid var(--wx-line-soft);
  padding: 4px 18px;
  transition: border-color .2s, background .2s;
}
.wx-faq details[open] { border-color: rgba(34, 211, 238, .3); background: linear-gradient(rgba(255, 255, 255, .04), rgba(255, 255, 255, .018)); }
.wx-faq summary {
  list-style: none; cursor: pointer;
  position: relative;
  padding: 13px 34px 13px 0;
  font-weight: 650; font-size: .98rem; color: #dae4ee;
  transition: color .15s;
}
.wx-faq summary:hover { color: #fff; }
.wx-faq summary::-webkit-details-marker { display: none; }
.wx-faq summary::after {
  content: ""; position: absolute; right: 2px; top: 50%;
  width: 11px; height: 11px; translate: 0 -50%;
  background:
    linear-gradient(var(--wx-teal), var(--wx-teal)) center/11px 1.6px no-repeat,
    linear-gradient(var(--wx-teal), var(--wx-teal)) center/1.6px 11px no-repeat;
  transition: transform .3s var(--wx-ease);
}
.wx-faq details[open] summary::after { transform: rotate(135deg); }
.wx-faq details p {
  margin: 0; padding: 2px 0 16px;
  font-size: .92rem; line-height: 1.62; color: var(--wx-body);
  animation: wx-faq-in .35s var(--wx-ease);
}
@keyframes wx-faq-in { from { opacity: 0; transform: translateY(-5px); } }

/* -------------------------------------------------------- testimonials ---- */

.wx-tmnl { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 15px; margin-top: 38px; }
.wx-tmnl figure {
  position: relative; margin: 0;
  padding: 26px 24px 22px;
  border-radius: var(--wx-r);
  background: linear-gradient(rgba(255, 255, 255, .028), rgba(255, 255, 255, .012));
  border: 1px solid var(--wx-line-soft);
}
.wx-tmnl figure::before {
  content: "\201C";
  position: absolute; top: 4px; left: 16px;
  font: 800 64px/1 var(--wx-display);
  background: var(--wx-grad-text);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: .5;
}
.wx-tmnl blockquote { margin: 26px 0 16px; font-size: 1rem; line-height: 1.6; color: #d7e1ea; }
.wx-tmnl figcaption { font-size: .88rem; color: var(--wx-dim); }
.wx-tmnl figcaption strong { color: var(--wx-ink); font-weight: 650; }
.wx-tmnl .wx-tmnl__biz { margin-top: 2px; font: 600 11px/1.4 var(--wx-mono); color: var(--wx-teal); }

/* -------------------------------------------------------------- footer ---- */

.wx-footer {
  border-top: 1px solid var(--wx-line-soft);
  background: rgba(3, 6, 12, .6);
  padding: 52px 22px 40px;
}
.wx-footer__grid {
  max-width: var(--wx-max); margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 34px;
}
@media (max-width: 720px) { .wx-footer__grid { grid-template-columns: 1fr; gap: 26px; } }
.wx-footer__brand img { height: 24px; width: auto; display: block; margin-bottom: 12px; }
.wx-footer__brand p { margin: 0; font-size: .88rem; color: var(--wx-dim); max-width: 34ch; }
.wx-footer h4 {
  font: 700 11px/1 var(--wx-mono); letter-spacing: .18em; text-transform: uppercase;
  color: var(--wx-dim); margin: 4px 0 14px;
}
.wx-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.wx-footer ul a { color: #aab7c7; font-size: .93rem; }
.wx-footer ul a:hover { color: #fff; }
.wx-footer__legal {
  max-width: var(--wx-max); margin: 38px auto 0; padding-top: 22px;
  border-top: 1px solid var(--wx-line-soft);
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between;
  font-size: .8rem; color: #55627a;
}

/* ------------------------------------------------------ reduced motion ---- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wx *, .wx *::before, .wx *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .wx [data-reveal] { opacity: 1; transform: none; }
  .wx-hero h1 .wx-w, .wx-hero h1 .wx-payoff { opacity: 1; transform: none; }
  .wx-spark i { transform: scaleY(1); }
  .wx-steps::before { transform: scaleX(1); }
  .wx-ticker__track { animation: none; }
  .wx-toast { opacity: 1; transform: none; position: static; }
  .wx-toasts { height: auto; display: flex; flex-direction: column; gap: 8px; }
  .wx-console { transform: none; }
}
