/* ==========================================================================
   Wexofy: navy rail world
   A deep navy rail on the left (top bar on phones), a bright lavender-white
   page, white rounded cards, one violet for actions, colour-coded icon tiles.
   Sits over theme.css (the component layer) and sets its tokens.
   The previous dark "shipping label" world is archived in world-label.css.
   ========================================================================== */

:root {
  --navy: #181838;
  --navy-2: #232552;
  --navy-line: rgba(255, 255, 255, .12);
  --on-navy: #e6e8f6;
  --on-navy-2: #b4b9d6;
  --violet: #5838e8;
  --violet-deep: #4325c9;
  --violet-tint: #efecfd;
  --band: #f7fafd;  /* matches the hero illustration's ground */

  --ink: #0f1b43;
  --ink-70: #4a5578;
  --ink-40: #5b6686;
  --ink-30: #646d8a;  /* 4.5:1 on the fog band */
  --mint: #057a55;     /* green as text: 5:1 on white */
  --paper: #ffffff;
  --fog: #f4f5fb;
  --line: #e3e6f1;
  --cobalt: var(--violet);
  --cobalt-deep: var(--violet-deep);
  --cobalt-tint: var(--violet-tint);
  --sky-line: #d8d1fb;

  --font-display: "Onest", "Segoe UI", Arial, sans-serif;
  --font-body: "Onest", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --radius-s: 6px;
  --radius: 10px;
  --radius-l: 14px;
  --shadow: 0 10px 30px -14px rgba(24, 24, 56, .22);
  --shadow-s: 0 1px 3px rgba(24, 24, 56, .08);

  --rail-w: 256px;
  --pad: clamp(16px, 3.3vw, 50px);
}

html { background: var(--paper); }
body { background: var(--paper); font-family: var(--font-body); color: var(--ink-70); }
h1, h2, h3, h4, .wx-h1, .wx-h2, .wx-h3, .wx-h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
::selection { background: var(--sky-line); color: var(--ink); }
:where(a, button, summary, [role="radio"], [tabindex]):focus-visible { outline: 2px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
.wx-reveal, .wx-reveal.is-in { opacity: 1 !important; transform: none !important; transition: none !important; }

/* ---------------------------------------------------------------- shell */
.wx-main { margin-left: var(--rail-w); }
.wx-footer { margin-left: var(--rail-w); }

.wx-rail {
  position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--rail-w);
  display: flex; flex-direction: column;
  background: var(--navy); color: var(--on-navy);
}
.admin-bar .wx-rail { top: 32px; }
.wx-rail__top { display: flex; align-items: center; justify-content: space-between; padding: 46px 26px 20px; }
.wx-rail__logo { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 600 35px/1 var(--font-display); letter-spacing: -0.035em; }
.wx-rail__logo:hover { color: #fff; }
.wx-rail__logo .wx-wmark { width: 56px; height: 42px; margin-left: -4px; }
.wx-rail__burger, .wx-rail__cart--bar { display: none; }
.wx-rail__body { flex: 1; display: flex; flex-direction: column; min-height: 0; overflow-y: auto; padding: 0 14px 28px; }

.wx-rail__nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wx-rail__nav a { display: flex; align-items: center; gap: 16px; min-height: 46px; padding: 0 16px; border-radius: 8px; color: var(--on-navy); text-decoration: none; font: 600 16px/1.2 var(--font-body); transition: background .15s; }
.wx-rail__nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.wx-rail__nav a.is-active, .wx-rail__nav .current-menu-item > a, .wx-rail__nav .current_page_item > a, .wx-rail__nav .current-menu-ancestor > a, .wx-rail__nav a[aria-current] { background: var(--navy-2); color: #fff; box-shadow: inset 0 0 0 1px rgba(124, 116, 255, .25); }
.wx-rail__ico { display: inline-flex; width: 24px; height: 24px; flex: none; color: var(--on-navy-2); }
.wx-rail__nav a.is-active .wx-rail__ico, .wx-rail__nav .current-menu-item .wx-rail__ico, .wx-rail__nav a:hover .wx-rail__ico { color: #9d93ff; }
.wx-rail__ico svg, .wx-rail__account svg, .wx-rail__cart--bar svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.wx-rail__plugins { display: none; }

.wx-rail__account { margin: auto 20px 0; padding-top: 26px; border-top: 1px solid var(--navy-line); display: grid; gap: 18px; }
.wx-rail__account a { display: flex; align-items: center; gap: 14px; color: var(--on-navy); text-decoration: none; font: 500 16px/1.2 var(--font-body); }
.wx-rail__account a:hover { color: #fff; }
.wx-cart__count { position: static; display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: var(--violet); color: #fff; font: 700 12px/1 var(--font-body); }
.wx-cart__count[hidden] { display: none; }

@media (max-width: 900px) {
  :root { --rail-w: 0px; }
  .wx-main, .wx-footer { margin-left: 0; }
  .wx-rail { position: sticky; top: 0; inset: auto; width: auto; height: auto; }
  .admin-bar .wx-rail { top: 0; }
  .wx-rail__top { gap: 12px; padding: 10px 16px; }
  .wx-rail__logo { margin-right: auto; font-size: 25px; }
  .wx-rail__logo svg { width: 34px; height: 34px; }
  .wx-rail__cart--bar { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 6px; color: var(--on-navy); }
  .wx-rail__burger { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 14px; border: 1px solid var(--navy-line); border-radius: 8px; background: none; color: var(--on-navy); font: 600 15px var(--font-body); cursor: pointer; }
  .wx-rail__burger-lines { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
  .wx-rail__burger-lines::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }
  .wx-rail__body { display: none; position: fixed; inset: 65px 0 0; padding: 18px 12px 28px; background: var(--navy); overflow-y: auto; }
  .wx-rail.is-open .wx-rail__body { display: flex; }
  .wx-rail__account { margin: 28px 16px 0; }
  html.wx-rail-open { overflow: hidden; }
}

/* ---------------------------------------------------------------- buttons */
.wx-btn, .button, button.button, input[type="submit"] { border-radius: var(--radius-s); font-family: var(--font-body); font-weight: 600; }
.wx-btn--primary { min-height: 48px; padding: 0 30px; background: var(--violet); color: #fff; font-size: 16px; }
.wx-btn--primary:hover { background: var(--violet-deep); color: #fff; box-shadow: 0 10px 24px -12px rgba(88, 56, 232, .7); }
.wx-btn--outline { min-height: 48px; padding: 0 24px; background: #fff; color: var(--violet); border: 1.5px solid #c9c1f5; font-size: 16px; }
.wx-btn--outline:hover { background: var(--violet-tint); color: var(--violet-deep); border-color: var(--violet); box-shadow: none; }
.wx-btn svg { width: 18px; height: 18px; }

/* ---------------------------------------------------------------- home: hero */
.wx-hero2 {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(20px, 3vw, 48px);
  padding: clamp(28px, 4vw, 56px) var(--pad) clamp(24px, 2.4vw, 34px);
  background: var(--band);
}
.wx-hero2 h1 { margin: 0 0 14px; font-size: clamp(44px, 4.9vw, 76px); line-height: 1.02; letter-spacing: -0.03em; text-wrap: balance; }
.wx-hero2__lead { margin: 0 0 26px; max-width: 27em; font-size: clamp(17px, 1.35vw, 20px); line-height: 1.5; color: var(--ink-40); }
.wx-hero2__cta { display: flex; flex-wrap: wrap; gap: 18px; }
.wx-hero2__art { position: relative; container-type: inline-size; margin-right: calc(var(--pad) * -0.6); }
.wx-hero2__art > img { display: block; width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, transparent 0, #000 8%, #000 92%, transparent 100%); mask-composite: intersect; }
/* live labels on the illustration's cards (the plate carries blank card faces) */
.wx-hero2__notes { list-style: none; margin: 0; padding: 0; }
.wx-hero2__note { position: absolute; display: flex; flex-direction: column; justify-content: center; gap: .25em; padding: 0 .4em; background: #fff; font-size: clamp(12px, 2.05cqi, 17px); line-height: 1.15; }
.wx-hero2__note b, .wx-hero2__note span { white-space: nowrap; overflow: hidden; text-overflow: clip; }
.wx-hero2__note b { color: var(--ink); font-weight: 700; }
.wx-hero2__note .wx-s { display: none; }
@container (max-width: 420px) {
  .wx-hero2__note { font-size: clamp(9px, 2.6cqi, 13px); }
  .wx-hero2__note .wx-l, .wx-hero2__note > span { display: none; }
  .wx-hero2__note .wx-s { display: inline; }
  .wx-hero2__btn { display: none; }
}
.wx-hero2__note > span { color: var(--ink-40); font-size: .86em; }
.wx-hero2__note--a { left: 62.4%; top: 17.5%; width: 21%; height: 9.5%; }
.wx-hero2__note--b { left: 9.2%; top: 52%; width: 16.8%; height: 9%; }
.wx-hero2__note--c { left: 76.4%; top: 73%; width: 16.5%; height: 9%; }
.wx-hero2__btn { position: absolute; left: 57.4%; top: 69.6%; color: #fff; font-weight: 700; font-size: clamp(8px, 1.55cqi, 15px); letter-spacing: -0.01em; line-height: 1; white-space: nowrap; pointer-events: none; }

/* ---------------------------------------------------------------- headings and blocks */
.wx-featured { padding: clamp(28px, 3vw, 40px) var(--pad) clamp(28px, 3vw, 34px); }
.wx-block { padding: clamp(40px, 5vw, 64px) var(--pad); }
.wx-block { border-top: 1px solid var(--line); }
.wx-featured + .wx-promise + .wx-block { border-top: 0; }
.wx-head { max-width: 58ch; margin-bottom: clamp(18px, 2vw, 24px); }
.wx-head h2, .wx-block h2 { margin: 0 0 10px; font-size: clamp(28px, 2.6vw, 36px); line-height: 1.12; }
.wx-head p { margin: 0; font-size: 17px; color: var(--ink-40); }
.wx-main .wx-section .wx-container, .wx-main .wx-proof .wx-container { max-width: none; padding-left: var(--pad); padding-right: var(--pad); }
.wx-section__head h2 { font-size: clamp(28px, 2.6vw, 36px); }

/* ---------------------------------------------------------------- plugin tiles */
.wx-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 20px; }
.wx-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .wx-tiles--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wx-tiles--4 { grid-template-columns: 1fr; } }
.wx-tile { position: relative; display: flex; flex-direction: column; padding: 18px 20px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .15s, box-shadow .2s, transform .2s cubic-bezier(.2, .7, .2, 1); }
.wx-tile:hover { border-color: #cfd3ea; box-shadow: var(--shadow); transform: translateY(-2px); }
.wx-tile__icon { display: grid; place-items: center; width: 60px; height: 58px; border-radius: 10px; background: var(--tint); color: #fff; }
.wx-tile__icon svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
/* Any other square showing a plugin with its own glyph wears that plugin's tint, like the tile. */
span.wx-icon.wx-icon--plugin { background: var(--tint); color: #fff; border-color: transparent; }
.wx-tile__name { margin: 16px 0 6px; font-size: 18px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.wx-tile__name a { color: var(--ink); text-decoration: none; }
.wx-tile__name a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.wx-tile__text { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-40); }
.wx-tile__price { margin: auto 0 10px; font-size: 14px; color: var(--ink-40); }
.wx-tile__price b { font-size: 19px; font-weight: 700; color: var(--ink); }
.wx-tile__more { display: inline-flex; align-items: center; gap: 6px; font-size: 14.5px; font-weight: 600; color: var(--violet); }
.wx-tile__text + .wx-tile__more { margin-top: auto; } /* no price row: keep the link on the card's bottom edge */
.wx-tile__more svg { width: 15px; height: 15px; transition: transform .2s; }
.wx-tile:hover .wx-tile__more svg { transform: translateX(3px); }
.wx-tile.is-soon { opacity: .7; }

/* ---------------------------------------------------------------- promise strip */
.wx-promise { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 26px var(--pad); background: #f3f4fa; }
.wx-promise > div { display: flex; gap: 14px; align-items: flex-start; }
.wx-promise svg { flex: none; width: 30px; height: 30px; fill: none; stroke: var(--violet); stroke-width: 1.7; }
.wx-promise p { margin: 0; }
.wx-promise b { display: block; margin-bottom: 4px; font-size: 16px; color: var(--ink); }
.wx-promise span { display: block; max-width: 20ch; font-size: 14px; line-height: 1.45; color: var(--ink-40); }
@media (max-width: 1000px) { .wx-promise { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .wx-promise { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- closing call */
.wx-cta2 { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 20px 40px; padding: clamp(28px, 4vw, 44px); border-radius: var(--radius-l); background: var(--navy); color: var(--on-navy-2); }
.wx-cta2 h2 { color: #fff; margin: 0 0 8px; }
.wx-cta2 p { margin: 0; max-width: 60ch; }

/* ---------------------------------------------------------------- inner pages */
.wx-main > .wx-container, .wx-main > .wx-page-head, .wx-product { padding-left: var(--pad); padding-right: var(--pad); }
.wx-steps .wx-step::before { color: var(--violet); font-family: var(--font-body); font-weight: 700; font-size: 15px; letter-spacing: 0; }
.wx-footer .mono, .wx-footer p.mono { font-family: var(--font-body) !important; }
/* review stars are drawn SVG (wx_stars_html / starsHtml), never glyphs or gradient text */
.wx-stars { display: inline-flex; gap: 2px; align-items: center; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: inherit; -webkit-text-fill-color: currentColor; letter-spacing: 0; font-size: inherit; }
.wx-stars svg { width: 15px; height: 15px; }
.wx-stars svg.is-on { fill: #f5a524; }
.wx-stars svg.is-off { fill: #d6dbe6; }
.wx-wall__item .wx-stars svg { width: 11px; height: 11px; }
.wx-star { width: .85em; height: .85em; margin-left: 2px; vertical-align: -1px; fill: #f5a524; }
.wxr__stars button svg { width: 22px; height: 22px; fill: currentColor; }
.wx-meter { position: relative; display: inline-block; line-height: 0; }
.wx-meter__base, .wx-meter__fill { display: inline-flex; gap: 2px; }
.wx-meter svg { width: 18px; height: 18px; margin: 0; }
.wx-meter__base svg { fill: #d6dbe6; }
.wx-meter__fill svg { fill: #f5a524; }
.wx-rsum__star .wx-star { width: 13px; height: 13px; }
.wx-meter__base { color: #d6dbe6; }
.wx-meter__fill { position: absolute; inset: 0 auto 0 0; width: var(--p); overflow: hidden; white-space: nowrap; color: #f5a524; }
/* plugin page: what it does, beside the plan card */
.wx-product__does { list-style: none; margin: 26px 0 0; padding: 22px 0 0; border-top: 1px solid var(--line); display: grid; gap: 14px; max-width: 60ch; }
.wx-product__does li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; line-height: 1.5; color: var(--ink-40); }
.wx-product__does svg { flex: none; width: 20px; height: 20px; margin-top: 2px; fill: none; stroke: var(--violet); stroke-width: 2; }
.wx-product__does b { color: var(--ink); font-weight: 600; }
/* phones: the full catalogue reads as a compact list */
@media (max-width: 560px) {
  .wx-tiles:not(.wx-tiles--4) { gap: 10px; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 0 14px; padding: 12px 14px; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__icon { width: 44px; height: 44px; grid-row: span 2; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__icon svg { width: 22px; height: 22px; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__name { margin: 0; font-size: 16px; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__text, .wx-tiles:not(.wx-tiles--4) .wx-tile__more { display: none; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__price { margin: 0; grid-column: 2; font-size: 13px; }
  .wx-tiles:not(.wx-tiles--4) .wx-tile__price b { font-size: 15px; }
}
.wx-compat { padding: 34px var(--pad); border-top: 1px solid var(--line); }
.wx-compat__track { width: auto; animation: none; flex-wrap: wrap; justify-content: center; gap: 22px 44px; }
.wx-compat__label { margin-bottom: 18px; color: var(--ink-40); }
.wx-logo .wx-wmark, .wx-footer .wx-wmark { width: 44px; height: 33px; }
.wx-footer .wx-logo { display: inline-flex; align-items: center; gap: 8px; color: #fff; font: 600 26px/1 var(--font-display); letter-spacing: -0.03em; text-decoration: none; }
.wx-bundle { background: var(--navy); }
.wx-bundle::before { display: none; }
.wx-bundle__buy { background: none; border: 0; border-left: 1px solid var(--navy-line); border-radius: 0; text-align: left; padding: 6px 0 6px clamp(20px, 3vw, 40px); }
.wx-bundle__price { align-items: flex-start; }
@media (max-width: 860px) { .wx-bundle__buy { border-left: 0; border-top: 1px solid var(--navy-line); padding: 22px 0 0; } }
.wx-bundle, .wx-cta2, .wx-footer { --ink-40: #b4b9d6; --ink-70: #cfd3ea; }
.wx-footer { background: var(--navy); }

@media (max-width: 900px) {
  .wx-hero2 { grid-template-columns: 1fr; }
  .wx-hero2__art { max-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { .wx-tile, .wx-tile__more svg { transition: none; } .wx-tile:hover { transform: none; } }

/* Frequently-bought-together box in the plugin page's left column: items stack, names stay on one or two lines */
.wx-product .wxfbt__list { flex-direction: column !important; align-items: stretch !important; gap: 10px; }
.wx-product .wxfbt__item { width: 100%; max-width: none; flex: none; }
.wx-product .wxfbt__plus { display: none; }

/* Free or Pro? table on freemium plugin pages (wx_free_vs_pro): green check in both
   columns, a quiet grey dash where Free stops (never a red X), Pro column washed violet. */
.wx-fvp { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--line); }
.wx-fvp h2 { margin: 0 0 6px; font-size: clamp(24px, 2.4vw, 30px); font-weight: 800; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.wx-fvp__lead { margin: 0 0 20px; color: var(--ink-40); max-width: 62ch; }
.wx-fvp__scroll { overflow-x: auto; }
.wx-fvp__table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 15px; }
.wx-fvp__table th, .wx-fvp__table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.wx-fvp__table tbody th { font-weight: 400; color: var(--ink-70); }
.wx-fvp__col { width: 150px; text-align: center !important; }
.wx-fvp__table thead th { padding-top: 14px; padding-bottom: 12px; }
.wx-fvp__table thead b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); }
.wx-fvp__table thead span { display: block; white-space: nowrap; margin-top: 2px; font-size: 13px; color: var(--ink-40); font-variant-numeric: tabular-nums; }
.wx-fvp__pro { background: var(--violet-tint); }
.wx-fvp__table thead .wx-fvp__pro { border-radius: var(--radius) var(--radius) 0 0; }
.wx-fvp__foot .wx-fvp__pro { border-radius: 0 0 var(--radius) var(--radius); }
.wx-fvp__group th { background: var(--fog); color: var(--ink) !important; font-weight: 700 !important; font-size: 14px; padding-top: 8px; padding-bottom: 8px; }
.wx-fvp__yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e6f4ee; color: var(--mint); }
.wx-fvp__yes svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wx-fvp__pro .wx-fvp__yes { background: var(--paper); }
.wx-fvp__no { color: #9aa2bd; font-weight: 600; }
.wx-fvp__foot td { border-bottom: 0; padding-top: 16px; padding-bottom: 16px; }
.wx-fvp__foot .wx-btn { white-space: nowrap; }
/* Phones: both columns stay on screen (no sideways scroll), buttons stack under the table. */
@media (max-width: 600px) {
  .wx-fvp__table { min-width: 0; font-size: 14px; }
  .wx-fvp__col { width: 64px; }
  .wx-fvp__table th, .wx-fvp__table td { padding: 10px 6px; }
  .wx-fvp__table tbody th { padding-left: 0; }
  .wx-fvp__group th { padding-left: 8px !important; }
  .wx-fvp__table thead b { font-size: 15px; }
  .wx-fvp__table thead span { white-space: normal; font-size: 11.5px; line-height: 1.25; }
  .wx-fvp__foot { display: none; }
  .wx-fvp__ctas { display: flex !important; }
}
.wx-fvp__ctas { display: none; gap: 10px; margin-top: 16px; }
.wx-fvp__ctas .wx-btn { flex: 1; justify-content: center; }