/* ==========================================================================
   WattSwap Premium — shared design system  (css/ws-premium.css)
   Apple / Tesla language: restraint, one typeface, huge type, generous space,
   cinematic dark surfaces + light "paper" surfaces for transactional pages.
   Load order: ws-premium.css first, then the page file (home-premium / pdp-premium / store-premium).
   Contract: this file never styles ids/hooks the backend scripts depend on
   (#ws-cart-btn, #ws-cart-count, [data-ws-*], [data-sku]) beyond cosmetics.
   ========================================================================== */

/* Inter (self-hosted, variable 400-800) */
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/inter-latin.woff2') format('woff2');unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 800;font-display:swap;src:url('../fonts/inter-latin-ext.woff2') format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}


/* ---------- 1. Tokens ---------- */
:root {
  --bg: #010308;
  --bg-2: #040b16;
  --bg-3: #07101e;
  --glow: #051937;
  --blue: #0066ff;
  --mint: #00f5a0;
  --cyan: #00d9f5;
  --violet: #9b51e0;
  --iri: linear-gradient(100deg, #00f5a0 0%, #00d9f5 48%, #9b51e0 100%);
  --iri-soft: linear-gradient(100deg, rgba(0, 245, 160, 0.16), rgba(0, 217, 245, 0.16) 48%, rgba(155, 81, 224, 0.16));

  --t1: #f5f7fa;
  --t2: #9ba7b8;
  --t3: #66738a;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --card: rgba(255, 255, 255, 0.035);
  --card-2: rgba(255, 255, 255, 0.06);
  --ok: #34d399;
  --warn: #fbbf24;
  --err: #f87171;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --nav-h: 56px;
  --wrap: 1200px;
  --wrap-wide: 1440px;
  --pad: clamp(20px, 5vw, 72px);
  --sec: clamp(88px, 12vw, 168px);
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
  --shadow-card: 0 1px 0 rgba(255, 255, 255, 0.05) inset, 0 24px 60px -24px rgba(0, 0, 0, 0.7);

  color-scheme: dark;
}

/* Paper surface: checkout, forms, legal. Same tokens, flipped. */
[data-surface='paper'] {
  --bg: #f5f5f7;
  --bg-2: #ffffff;
  --bg-3: #ececf0;
  --t1: #1d1d1f;
  --t2: #515154;
  --t3: #86868b;
  --line: rgba(0, 0, 0, 0.1);
  --line-2: rgba(0, 0, 0, 0.18);
  --card: #ffffff;
  --card-2: #f0f0f3;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.06), 0 18px 40px -22px rgba(0, 0, 0, 0.25);
  color-scheme: light;
}
[data-surface='ink2'] {
  --bg: #040b16;
  --bg-2: #07101e;
}

/* Legacy aliases so any not-yet-migrated markup keeps working */
:root {
  --hx-bg: var(--bg);
  --hx-bg2: var(--bg-2);
  --hx-glow: var(--glow);
  --hx-blue: var(--blue);
  --hx-t1: var(--t1);
  --hx-t2: var(--t2);
  --hx-t3: var(--t3);
  --hx-line: var(--line);
  --hx-iri: var(--iri);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  background: var(--bg);
}
html.lenis,
html.lenis body {
  height: auto;
}
.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}
.lenis.lenis-stopped {
  overflow: hidden;
}
body.wp {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  color: var(--t1);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: 'cv11', 'ss01';
  overflow-x: clip;
}
body.wp img,
body.wp svg,
body.wp video {
  max-width: 100%;
  display: block;
}
body.wp a {
  color: inherit;
  text-decoration: none;
}
body.wp button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
/* Sprite icons (images/icons.svg): Lucide-style line icons, colour via currentColor */
body.wp svg:has(> use) {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
::selection {
  background: rgba(0, 217, 245, 0.28);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}
.wp-sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.wp-skip {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 200;
  padding: 10px 16px;
  background: #fff;
  color: #000 !important;
  border-radius: 999px;
  font-weight: 600;
  transition: top 0.2s;
}
.wp-skip:focus {
  top: 12px;
}
.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: 'tnum', 'cv11';
}

/* Cross-page continuity (progressive enhancement) */
@view-transition {
  navigation: auto;
}
::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.35s;
  animation-timing-function: var(--ease);
}

/* ---------- 3. Layout ---------- */
.wp-wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.wp-wrap.wide {
  max-width: calc(var(--wrap-wide) + var(--pad) * 2);
}
.wp-sec {
  position: relative;
  padding-block: var(--sec);
  background: var(--bg);
  color: var(--t1);
}
.wp-sec.tight {
  padding-block: clamp(56px, 8vw, 104px);
}
.wp-sec[data-surface='ink2'] {
  background: var(--bg-2);
}
.wp-sec[data-surface='paper'] {
  background: var(--bg);
}
.wp-sec.glow::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 0%, rgba(5, 25, 55, 0.9), transparent 70%);
  pointer-events: none;
}
.wp-grid {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
}
.wp-grid.c2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.wp-grid.c3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.wp-grid.c4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1000px) {
  .wp-grid.c4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wp-grid.c3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .wp-grid.c2,
  .wp-grid.c3,
  .wp-grid.c4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- 4. Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--t2);
}
.eyebrow::before {
  content: '';
  width: 22px;
  height: 1px;
  background: var(--iri);
}
.display {
  font-size: clamp(44px, 8.4vw, 112px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 700;
  margin: 0;
}
.h1 {
  font-size: clamp(38px, 6.2vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin: 0;
}
.h2 {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 0;
}
.h3 {
  font-size: clamp(22px, 2.2vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 650;
  margin: 0;
}
.lede {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.45;
  color: var(--t2);
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.body-copy {
  color: var(--t2);
  margin: 0;
  max-width: 62ch;
  text-wrap: pretty;
}
.iri {
  background: var(--iri);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.wp-sec-head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.wp-sec-head.center {
  text-align: center;
  justify-items: center;
}
.wp-sec-head.center .lede {
  margin-inline: auto;
}
.h1,
.h2,
.display {
  text-wrap: balance;
}

/* ---------- 5. Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--h);
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active {
  transform: scale(0.97);
}
.btn svg {
  width: 18px;
  height: 18px;
  flex: none;
}
.btn-primary {
  background: #fff;
  color: #05080f !important;
}
.btn-primary:hover {
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.12), 0 12px 36px -8px rgba(0, 217, 245, 0.5);
  transform: translateY(-1px);
}
[data-surface='paper'] .btn-primary,
.btn-primary.on-paper {
  background: #1d1d1f;
  color: #fff !important;
}
.btn-blue {
  background: var(--blue);
  color: #fff !important;
}
.btn-blue:hover {
  background: #1a77ff;
  box-shadow: 0 12px 36px -10px rgba(0, 102, 255, 0.8);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--t1) !important;
  border-color: var(--line-2);
}
.btn-ghost:hover {
  background: var(--card-2);
  border-color: var(--t3);
}
.btn-lg {
  --h: 56px;
  padding: 0 32px;
  font-size: 17px;
}
.btn-sm {
  --h: 34px;
  padding: 0 16px;
  font-size: 14px;
}
.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.45;
  pointer-events: none;
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--cyan) !important;
}
.link-arrow svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}
[data-surface='paper'] .link-arrow {
  color: #0066cc !important;
}
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
}

/* ---------- 6. Cards, chips, badges ---------- */
.wp-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: clamp(22px, 2.6vw, 34px);
  box-shadow: var(--shadow-card);
  transition: border-color 0.4s var(--ease), transform 0.5s var(--ease), background 0.4s;
}
a.wp-card:hover,
.wp-card.hover:hover {
  border-color: var(--line-2);
  background: var(--card-2);
  transform: translateY(-3px);
}
.wp-ico {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--iri-soft);
  border: 1px solid var(--line);
  margin-bottom: 20px;
  color: var(--cyan);
}
.wp-ico svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
}
.wp-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 13px;
  font-weight: 600;
  color: var(--t2);
  background: var(--card);
  backdrop-filter: blur(10px);
}
.wp-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}
.wp-pill-live {
  animation: wpPulse 2.4s ease-in-out infinite;
}
@keyframes wpPulse {
  50% {
    opacity: 0.45;
  }
}

/* Product art: studio-plate renders melted into the page (radial x linear mask) */
.wp-art {
  position: relative;
  isolation: isolate;
}
.wp-art picture,
.wp-art img {
  width: 100%;
  height: auto;
}
.wp-art img {
  -webkit-mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 52%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  mask-image: radial-gradient(ellipse 72% 72% at 50% 50%, #000 52%, transparent 100%),
    linear-gradient(to bottom, transparent 0, #000 10%, #000 90%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.wp-art::after {
  content: '';
  position: absolute;
  inset: 8% 12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(0, 102, 255, 0.28), transparent 75%);
  filter: blur(30px);
}
.wp-art.flat img {
  -webkit-mask-image: none;
  mask-image: none;
  border-radius: var(--r-md);
}

/* ---------- 7. Navigation ---------- */
.wp-nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--nav-h);
  color: #f5f7fa;
}
.wp-nav-bg {
  position: absolute;
  inset: 0;
  background: rgba(1, 3, 8, 0.0);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s, backdrop-filter 0.4s;
}
.wp-nav.is-solid .wp-nav-bg,
body[data-nav='solid'] .wp-nav .wp-nav-bg {
  background: rgba(1, 3, 8, 0.68);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}
.wp-nav-row {
  position: relative;
  height: 100%;
  max-width: calc(var(--wrap-wide) + var(--pad) * 2);
  margin-inline: auto;
  padding-inline: var(--pad);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wp-logo {
  display: inline-flex;
  align-items: center;
  flex: none;
}
.wp-logo img {
  height: 15px;
  width: auto;
  display: block;
}
.wp-logo .mark-only {
  display: none;
  height: 22px;
}
.wp-nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.wp-nav-links a {
  position: relative;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: rgba(245, 247, 250, 0.72);
  padding: 8px 2px;
  transition: color 0.25s;
}
.wp-nav-links a:hover,
.wp-nav-links a[aria-current='page'] {
  color: #fff;
}
.wp-nav-links a[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  height: 1px;
  background: var(--iri);
}
.wp-nav-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.wp-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: rgba(245, 247, 250, 0.85);
  transition: background 0.25s, color 0.25s;
}
.wp-icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.wp-icon-btn svg {
  width: 19px;
  height: 19px;
}
#ws-cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
#ws-cart-count:empty,
#ws-cart-count[data-count='0'] {
  display: none;
}
.wp-burger {
  display: none;
}
.wp-burger span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: currentColor;
  border-radius: 2px;
  transition: transform 0.4s var(--ease), opacity 0.2s, top 0.4s var(--ease);
}
.wp-burger span:nth-child(1) {
  top: 15px;
}
.wp-burger span:nth-child(2) {
  top: 22px;
}
.wp-burger[aria-expanded='true'] span:nth-child(1) {
  top: 18.5px;
  transform: rotate(45deg);
}
.wp-burger[aria-expanded='true'] span:nth-child(2) {
  top: 18.5px;
  transform: rotate(-45deg);
}
.wp-menu {
  position: fixed;
  inset: 0;
  z-index: 90;
  padding: calc(var(--nav-h) + 24px) var(--pad) 40px;
  background: rgba(1, 3, 8, 0.94);
  -webkit-backdrop-filter: blur(28px);
  backdrop-filter: blur(28px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s;
}
.wp-menu.open {
  opacity: 1;
  visibility: visible;
  transition-delay: 0s;
}
.wp-menu a.m-link {
  font-size: clamp(28px, 8vw, 40px);
  font-weight: 650;
  letter-spacing: -0.035em;
  padding: 10px 0;
  color: #f5f7fa;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}
.wp-menu.open a.m-link {
  opacity: 1;
  transform: none;
}
.wp-menu.open a.m-link:nth-child(2) { transition-delay: 0.04s; }
.wp-menu.open a.m-link:nth-child(3) { transition-delay: 0.08s; }
.wp-menu.open a.m-link:nth-child(4) { transition-delay: 0.12s; }
.wp-menu.open a.m-link:nth-child(5) { transition-delay: 0.16s; }
.wp-menu.open a.m-link:nth-child(6) { transition-delay: 0.2s; }
.wp-menu.open a.m-link:nth-child(7) { transition-delay: 0.24s; }
.wp-menu .m-foot {
  margin-top: auto;
  padding-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 960px) {
  .wp-nav-links,
  .wp-nav-right .btn,
  .wp-nav-right .wa {
    display: none;
  }
  .wp-burger {
    display: grid;
  }
}
@media (max-width: 380px) {
  .wp-logo img:not(.mark-only) {
    display: none;
  }
  .wp-logo .mark-only {
    display: block;
  }
}
/* Page content that starts under the fixed nav (non-hero pages) */
.wp-main-pad {
  padding-top: var(--nav-h);
}

/* ---------- 8. Footer ---------- */
.wp-footer {
  background: var(--bg-2);
  color: var(--t2);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 40px;
  font-size: 14px;
}
.wp-footer a {
  color: var(--t2);
  transition: color 0.2s;
}
.wp-footer a:hover {
  color: #fff;
}
.wp-foot-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.wp-foot-brand img {
  height: 15px;
  width: auto;
  margin-bottom: 18px;
}
.wp-foot-brand p {
  margin: 0 0 18px;
  max-width: 30ch;
  color: var(--t3);
}
.wp-foot-col h4 {
  margin: 0 0 14px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--t1);
  font-weight: 600;
}
.wp-foot-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.wp-foot-bot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  color: var(--t3);
  font-size: 13px;
}
@media (max-width: 1000px) {
  .wp-foot-top {
    grid-template-columns: repeat(2, 1fr);
  }
  .wp-foot-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 520px) {
  .wp-foot-top {
    grid-template-columns: 1fr 1fr;
    gap: 32px 20px;
  }
}
/* Mobile bottom padding when a sticky buy bar is present */
body.has-buybar .wp-footer {
  padding-bottom: 110px;
}

/* ---------- 9. Accordion (native <details>) ---------- */
.wp-acc {
  border-top: 1px solid var(--line);
}
.wp-acc details {
  border-bottom: 1px solid var(--line);
}
.wp-acc summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 24px 0;
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--t1);
}
.wp-acc summary::-webkit-details-marker {
  display: none;
}
.wp-acc summary::after {
  content: '';
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(currentColor, currentColor) center / 100% 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 100% no-repeat;
  color: var(--t2);
  transition: transform 0.4s var(--ease);
}
.wp-acc details[open] summary::after {
  transform: rotate(45deg);
}
.wp-acc .ans {
  padding: 0 0 26px;
  max-width: 70ch;
  color: var(--t2);
}
.wp-acc .ans p {
  margin: 0 0 10px;
}
.wp-acc .ans a {
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- 10. Spec / compare tables ---------- */
.wp-spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
}
.wp-spec th,
.wp-spec td {
  text-align: left;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.wp-spec th {
  width: 38%;
  font-weight: 500;
  color: var(--t3);
  padding-right: 24px;
}
.wp-spec td {
  color: var(--t1);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.wp-compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 15px;
}
.wp-compare th,
.wp-compare td {
  padding: 18px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.wp-compare thead th {
  font-weight: 650;
  color: var(--t1);
  letter-spacing: -0.015em;
  font-size: 16px;
}
.wp-compare tbody th {
  color: var(--t3);
  font-weight: 500;
  width: 22%;
}
.wp-compare td.on {
  color: var(--t1);
}
.wp-compare .cur th,
.wp-compare .cur td {
  background: rgba(0, 102, 255, 0.08);
}
.wp-scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

/* ---------- 11. Big numbers ---------- */
.wp-stat-n {
  font-size: clamp(44px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wp-stat-l {
  margin-top: 10px;
  color: var(--t2);
  font-size: 15px;
  max-width: 28ch;
}

/* ---------- 12. Reveal (progressive enhancement) ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].in {
  opacity: 1;
  transform: none;
}
.js [data-reveal='fade'] {
  transform: none;
}
.js [data-reveal='scale'] {
  transform: scale(0.96);
}
.js [data-reveal='scale'].in {
  transform: none;
}

/* ---------- 13. Storefront toast (script-created #ws-toast / .ws-toast) ---------- */
#ws-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  z-index: 300;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  background: rgba(20, 24, 34, 0.9);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border: 1px solid var(--line-2);
  color: #f5f7fa;
  font-size: 15px;
  font-weight: 500;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7);
}
#ws-toast a {
  color: var(--cyan);
  font-weight: 600;
}

/* ---------- 14. Reduced motion / no-JS ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
  @view-transition {
    navigation: none;
  }
}
@media print {
  .wp-nav,
  .wp-menu,
  .wp-footer,
  .wp-buybar {
    display: none !important;
  }
}

/* ---------- 15. Graphics effects (js/ws-fx.js) ---------- */
.wp-fx {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.6s var(--ease);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22%, #000 78%, transparent 100%);
}
.wp-fx.is-live { opacity: 0.9; }
.js [data-split]:not(.split-ready) { opacity: 0; }
.wp-line { will-change: transform; }
/* SplitText line masks clip at the line box; give descenders (g, p, y) room without changing layout. */
.wp-mask-line-mask { padding-bottom: 0.16em; margin-bottom: -0.16em; }
.wp-line .iri, .iri .wp-line { padding-bottom: 0.08em; }
@media (prefers-reduced-motion: reduce) { .wp-fx { display: none; } }

/* ---------- 16. Steps (shared) ---------- */

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; position: relative; }
.step { position: relative; padding: 0 clamp(14px, 2vw, 28px) 0 0; }
.step::before { content: ''; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: var(--line-2); }
.step:last-child::before { right: 50%; }
.step .n { position: relative; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line-2); font-size: 14px; font-weight: 650; font-variant-numeric: tabular-nums; margin-bottom: 26px; }
.step:first-child .n { background: var(--iri); color: #01040a; border-color: transparent; }
.step h3 { margin: 0 0 10px; font-size: 21px; letter-spacing: -0.025em; }
.step p { margin: 0; color: var(--t2); font-size: 15.5px; max-width: 30ch; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step { padding: 0 0 0 64px; }
  .step::before { left: 19px; right: auto; top: 40px; bottom: -36px; width: 1px; height: auto; }
  .step:last-child::before { display: none; }
  .step .n { position: absolute; left: 0; top: 0; margin: 0; }
}

/* ---------- 17. Product cards (shared: home + store) ---------- */
/* hooks for store-backend-integration.js: .ws-product-card, .ws-product-img img, .ws-product-name, .ws-product-note, data-ws-*) */
.pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1100px) { .pcards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .pcards { grid-template-columns: 1fr; } }
.ws-product-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.ws-product-card .ws-product-img { position: relative; aspect-ratio: 4 / 3; background: radial-gradient(70% 70% at 50% 45%, #0a1c36, var(--bg-2)); overflow: hidden; }
.ws-product-card .ws-product-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 58%, transparent 100%); mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, #000 58%, transparent 100%); }
.ws-product-card:hover .ws-product-img img { transform: scale(1.05); }
.pc-top { position: absolute; left: 14px; right: 14px; top: 14px; z-index: 2; display: flex; justify-content: space-between; align-items: center; gap: 8px; pointer-events: none; }
.pc-tag { padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.04em; background: rgba(1, 3, 8, 0.6); backdrop-filter: blur(10px); border: 1px solid var(--line-2); color: var(--t1); }
.pc-off { font-size: 11.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: rgba(52, 211, 153, 0.14); color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.3); font-variant-numeric: tabular-nums; }
.pc-off:empty, .pc-price .mrp:empty { display: none; }
.pc-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 24px; flex: 1; }
.pc-body h3 { margin: 0; font-size: 22px; font-weight: 650; letter-spacing: -0.03em; }
.pc-spec { margin: 0; font-size: 13.5px; color: var(--t3); font-variant-numeric: tabular-nums; }
.pc-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin-top: 14px; }
.pc-price .sale { font-size: 28px; font-weight: 700; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.pc-price .mrp { font-size: 15px; color: var(--t3); text-decoration: line-through; font-variant-numeric: tabular-nums; }
.pc-note.ws-product-note { margin: 2px 0 0; font-size: 13px; color: var(--t3); }
.pc-cta { margin-top: auto; padding-top: 18px; display: grid; gap: 10px; }
.pc-cta .btn { width: 100%; }
.pc-cta .link-arrow { justify-content: center; font-size: 14.5px; }
[data-ws-stock-live] { font-size: 12.5px !important; margin: 10px 0 2px !important; }
.included { margin-top: 28px; color: var(--t3); font-size: 14px; text-align: center; }
