/* ============================================================
   WrapWizzard — cinematic landing (fullscreen snap sections)
   Model: every section is one full screen, native CSS scroll-snap
   (one scroll gesture = one block). Entrance animations play when
   a section comes into view (GSAP, reversible on scroll-up).
   No-JS / reduced-motion: everything visible, snap still works.
   ============================================================ */

/* ── Fonts (self-hosted, variable 400–800) ─────────────────── */
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-02AF, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope";
  src: url("../fonts/manrope-cyrillic-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}

/* ── Tokens (deep navy studio, not black) ──────────────────── */
.ww-root,
.editor-styles-wrapper { /* wp-admin block editor — expose the WW palette to previews */
  /* ── Dark theme (default) ─────────────────────────────────── */
  --ww-bg: #0a1124;
  --ww-bg-deep: #070c1a;
  --ww-surface: #121b30;
  --ww-surface-light: #1a2542;
  --ww-text: #f5f7fa;
  --ww-text-muted: #93a0b8;
  --ww-accent: #3478ff;
  --ww-accent-strong: #4a89ff;
  --ww-border: rgba(160, 190, 255, 0.14);
  /* page background layer */
  --ww-page-bg:
    radial-gradient(90% 55% at 50% 8%, rgba(52, 120, 255, 0.10), transparent 60%),
    linear-gradient(180deg, #0b1328 0%, #0c1430 50%, #080e1e 100%);
  /* header fade */
  --ww-header-bg: linear-gradient(rgba(7, 12, 26, 0.8), rgba(7, 12, 26, 0));
  /* card / stat surface */
  --ww-card-bg:
    radial-gradient(120% 90% at 50% -20%, rgba(52, 120, 255, 0.18), transparent 55%),
    linear-gradient(165deg, #1e2947, var(--ww-surface) 55%, #0e1526);
  --ww-card-border: rgba(130, 165, 240, 0.2);
  /* plan surface */
  --ww-plan-bg:
    radial-gradient(130% 80% at 50% -25%, rgba(255, 255, 255, 0.06), transparent 55%),
    linear-gradient(165deg, #1c2745, var(--ww-surface) 60%, #0d1424);
  --ww-plan-featured-bg:
    radial-gradient(130% 85% at 50% -25%, rgba(52, 120, 255, 0.3), transparent 60%),
    linear-gradient(165deg, #20305c, #141d38 60%, #0e1628);
  /* panel (palette / inputs) */
  --ww-panel-bg: linear-gradient(180deg, var(--ww-surface-light), var(--ww-surface));
  --ww-input-bg: rgba(18, 27, 48, 0.75);
  --ww-chip-btn-bg: rgba(18, 27, 48, 0.65);
  --ww-stat-num: linear-gradient(180deg, #ffffff 30%, #9fb6e4);
  --ww-sheen: rgba(255, 255, 255, 0.045);
  --ww-brand-pill: rgba(233, 237, 242, 0.88);
  --ww-brand-pill-active: #f2f5f9;
  --ww-logo-on-dark: block;   /* white-text logo, shown on dark theme */
  --ww-logo-on-light: none;   /* dark-text logo, shown on light theme */
  --ww-font: "Manrope", "Noto Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --ww-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Block editor canvas: dark WW background + base type so blocks preview like
   the live site instead of unstyled white. */
.editor-styles-wrapper {
  background: var(--ww-bg);
  color: var(--ww-text);
  font-family: var(--ww-font);
}

/* ── Light theme (palette from wrapweb marketing) ─────────────── */
.ww-root[data-theme="light"] {
  --ww-bg: #e0f7fa;
  --ww-bg-deep: #ffffff;
  --ww-surface: #ffffff;
  --ww-surface-light: #f4fbfc;
  --ww-text: rgba(0, 0, 0, 0.87);
  --ww-text-muted: rgba(0, 0, 0, 0.55);
  --ww-accent: #0097a7;
  --ww-accent-strong: #00bcd4;
  --ww-border: rgba(0, 0, 0, 0.12);
  --ww-page-bg:
    radial-gradient(95% 60% at 50% 4%, rgba(0, 151, 167, 0.12), transparent 60%),
    linear-gradient(180deg, #f2fdff 0%, #e0f7fa 55%, #d3f1f6 100%);
  --ww-header-bg: linear-gradient(rgba(224, 247, 250, 0.9), rgba(224, 247, 250, 0));
  --ww-card-bg:
    radial-gradient(120% 90% at 50% -20%, rgba(0, 151, 167, 0.12), transparent 55%),
    linear-gradient(165deg, #ffffff, #f4fbfc 60%, #eaf7f9);
  --ww-card-border: rgba(0, 151, 167, 0.22);
  --ww-plan-bg: linear-gradient(165deg, #ffffff, #f4fbfc 60%, #eaf7f9);
  --ww-plan-featured-bg:
    radial-gradient(130% 85% at 50% -25%, rgba(0, 151, 167, 0.16), transparent 60%),
    linear-gradient(165deg, #ffffff, #e8f8fa 60%, #d7f1f5);
  --ww-panel-bg: linear-gradient(180deg, #ffffff, #f4fbfc);
  --ww-input-bg: #ffffff;
  --ww-chip-btn-bg: rgba(255, 255, 255, 0.85);
  --ww-stat-num: linear-gradient(180deg, #006978 20%, #0097a7);
  --ww-sheen: rgba(0, 0, 0, 0.03);
  --ww-brand-pill: rgba(0, 0, 0, 0.04);
  --ww-brand-pill-active: #ffffff;
  --ww-logo-on-dark: none;
  --ww-logo-on-light: block;
}

/* light-theme surface tweaks: softer shadows, subtle inner light */
.ww-root[data-theme="light"] .ww-stat,
.ww-root[data-theme="light"] .ww-plan {
  box-shadow: 0 20px 44px rgba(0, 70, 80, 0.13), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ww-root[data-theme="light"] .ww-plan--featured {
  box-shadow: 0 24px 52px rgba(0, 90, 100, 0.18), 0 0 34px rgba(0, 151, 167, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ww-root[data-theme="light"] .ww-palette {
  box-shadow: 0 18px 40px rgba(0, 70, 80, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}
.ww-root[data-theme="light"] .ww-car-img { filter: drop-shadow(0 18px 30px rgba(0, 40, 50, 0.28)); }
.ww-root[data-theme="light"] .ww-lang-menu,
.ww-root[data-theme="light"] .ww-theme-menu,
.ww-root[data-theme="light"] .ww-nav,
.ww-root[data-theme="light"] .ww-totop { box-shadow: 0 12px 30px rgba(0, 70, 80, 0.16); }

/* ── Document / snap scrolling ─────────────────────────────── */
.ww-root { scroll-behavior: smooth; scroll-snap-type: y mandatory; }
.ww-body {
  margin: 0;
  /* stop the browser from auto-adjusting scroll when content resizes
     (e.g. swapping all text on a language change) */
  overflow-anchor: none;
  background: var(--ww-bg);
  color: var(--ww-text);
  font-family: var(--ww-font);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.ww-body *, .ww-body *::before, .ww-body *::after { box-sizing: border-box; }
.ww-body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background: var(--ww-page-bg);
}
.ww-body :where(img) { max-width: 100%; height: auto; }
.ww-body :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.ww-body a, .ww-body button { -webkit-tap-highlight-color: transparent; }
.ww-body :where(a) { color: inherit; text-decoration: none; }
.ww-body :focus-visible { outline: 2px solid var(--ww-accent); outline-offset: 3px; border-radius: 4px; }

/* WP admin bar on preview: don't let it break layout */
.ww-root { margin-top: 0 !important; }
#wpadminbar { position: fixed !important; }

/* Kill leftover theme widgets that hook into wp_footer (Astra scroll-to-top) */
#ast-scroll-top, .ast-scroll-top-icon, .ast-scroll-to-top-right { display: none !important; }

.ww-skip {
  position: absolute; inset-inline-start: 12px; top: -48px; z-index: 60;
  padding: 10px 16px; background: var(--ww-surface-light); border: 1px solid var(--ww-border);
  border-radius: 8px; transition: top 0.2s;
}
.ww-skip:focus-visible { top: 12px; }

/* ── 404 page ─────────────────────────────────────────────────────────── */
.ww-404 {
  min-height: calc(100vh - 220px);
  display: grid; place-items: center;
  padding: 64px 22px; text-align: center;
}
.ww-404-inner { max-width: 560px; }
.ww-404-badge {
  display: inline-block; text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700; color: var(--ww-accent);
  background: var(--ww-card-bg); border: 1px solid var(--ww-card-border);
  border-radius: 999px; padding: 6px 14px; margin: 0 0 18px;
}
.ww-404-code {
  font-size: clamp(96px, 22vw, 200px); line-height: 0.9; font-weight: 800;
  letter-spacing: -0.04em; margin: 0 0 8px;
  background: linear-gradient(135deg, var(--ww-accent), var(--ww-accent-strong));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ww-404-title { font-size: clamp(1.4rem, 4vw, 2rem); margin: 0 0 10px; color: var(--ww-text); }
.ww-404-sub {
  color: var(--ww-text-muted); font-size: 1.02rem; line-height: 1.6;
  margin: 0 auto 26px; max-width: 44ch;
}
.ww-404-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.ww-404-count { margin: 22px 0 0; color: var(--ww-text-muted); font-size: 0.9rem; }
.ww-404-n { font-weight: 700; color: var(--ww-accent); font-variant-numeric: tabular-nums; }

/* ── search results ───────────────────────────────────────────────────── */
.ww-search-form { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 22px; }
.ww-search-form input[type="search"] {
  flex: 1; min-width: 220px; padding: 12px 16px; font: inherit;
  color: var(--ww-text); background: var(--ww-input-bg);
  border: 1px solid var(--ww-border); border-radius: 10px;
}
.ww-search-count { color: var(--ww-text-muted); font-size: 0.9rem; margin: 0 0 14px; }
.ww-search-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.ww-search-item {
  padding: 16px 18px; background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border); border-radius: 14px;
}
.ww-search-link { font-weight: 700; font-size: 1.08rem; color: var(--ww-text); text-decoration: none; }
.ww-search-link:hover { color: var(--ww-accent); }
.ww-search-excerpt { color: var(--ww-text-muted); margin: 6px 0 0; line-height: 1.55; }
.ww-search-empty { color: var(--ww-text-muted); font-size: 1.02rem; margin: 0 0 16px; }

/* "Cancel anytime" reassurance under each pricing plan's CTA */
.ww-plan-note { margin: 10px 0 0; text-align: center; font-size: 0.8rem; color: var(--ww-text-muted); }

/* "from" prefix before the plan amount */
.ww-plan-from { font-size: 0.8rem; font-weight: 600; color: var(--ww-text-muted); margin-inline-end: 5px; }

/* ── Fullscreen snap sections ──────────────────────────────── */
.ww-sec {
  position: relative;
  /* svh only (NOT dvh): the small-viewport height is stable, so the iOS
     address bar collapsing/expanding never resizes a section — which with
     scroll-snap:mandatory would otherwise re-snap and jump the page. */
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: clip;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 84px 22px calc(24px + env(safe-area-inset-bottom));
}

/* ── Header ────────────────────────────────────────────────── */
.ww-header {
  position: fixed; z-index: 50; inset-inline: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between;
  /* keep the logo + tools within the same centred column as the content
     ("landscape sheet"), not pinned to the screen edges */
  padding-top: calc(14px + env(safe-area-inset-top));
  padding-bottom: 14px;
  padding-inline: max(22px, calc((100% - 1120px) / 2));
  background: var(--ww-header-bg);
  pointer-events: none;
}
.ww-header > * { pointer-events: auto; }
.ww-logo { display: inline-flex; align-items: center; }
.ww-logo .ww-logo-img { height: 36px; width: auto; }
.ww-logo .ww-logo-img--dark { display: var(--ww-logo-on-dark); }
.ww-logo .ww-logo-img--light { display: var(--ww-logo-on-light); }
.ww-logo--footer .ww-logo-img { height: 42px; }
.ww-logo--footer img { height: 42px; }

/* header tools row (theme toggle + language) — pinned to the right edge
   next to the burger (the nav itself is a fixed dropdown, out of flow) */
.ww-header-tools { display: inline-flex; align-items: center; gap: 10px; margin-inline-start: auto; }
.ww-burger { margin-inline-start: 10px; }
/* theme dropdown: one round button (current pref's icon) + options menu */
.ww-theme { position: relative; display: inline-flex; }
.ww-theme-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--ww-border); border-radius: 999px;
  background: var(--ww-chip-btn-bg); backdrop-filter: blur(6px);
  color: var(--ww-text);
}
.ww-theme-ico { display: none; }
.ww-theme[data-pref="light"] [data-theme-ico="light"],
.ww-theme[data-pref="system"] [data-theme-ico="system"],
.ww-theme[data-pref="dark"] [data-theme-ico="dark"] { display: inline-flex; }
.ww-theme-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none; min-width: 150px;
  background: var(--ww-surface); border: 1px solid var(--ww-border);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.ww-theme-menu[hidden] { display: none; }
.ww-theme-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 14px;
  text-align: start;
}
.ww-theme-menu button svg { flex: 0 0 auto; }
.ww-theme-menu button:hover, .ww-theme-menu button[aria-selected="true"] { background: var(--ww-surface-light); }

/* language switcher */
.ww-lang { position: relative; }
.ww-lang-btn {
  display: inline-flex; align-items: center; gap: 7px;
  min-width: 44px; min-height: 44px; padding: 8px 14px;
  border: 1px solid var(--ww-border); border-radius: 999px;
  background: var(--ww-chip-btn-bg); backdrop-filter: blur(6px);
  font-weight: 700; font-size: 13px; letter-spacing: 0.08em;
}
.ww-lang-menu {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px);
  margin: 0; padding: 6px; list-style: none; min-width: 170px;
  background: var(--ww-surface); border: 1px solid var(--ww-border);
  border-radius: 12px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.ww-lang-menu button {
  display: flex; align-items: center; gap: 10px; width: 100%;
  min-height: 44px; padding: 8px 12px; border-radius: 8px; font-size: 14px;
  text-align: start;
}
.ww-lang-menu button:hover, .ww-lang-menu button[aria-selected="true"] { background: var(--ww-surface-light); }
.ww-lang-code { font-weight: 800; font-size: 11px; letter-spacing: 0.1em; color: var(--ww-text-muted); width: 22px; }
.ww-lang-flag { display: inline-flex; }
.ww-lang-flag svg { display: block; width: 18px; height: 13px; border-radius: 2.5px; box-shadow: 0 0 0 1px rgba(255,255,255,0.12); }

/* ── Atmosphere ────────────────────────────────────────────── */
.ww-atmos { position: absolute; inset: 0; pointer-events: none; }
.ww-light { display: none; } /* replaced by the single fixed .ww-body::before glow */
.ww-floor { display: none; } /* removed: created a colour seam at the studio→results join; the car keeps its own .ww-car-shadow */
.ww-grain { display: none; } /* removed: per-section noise created seams at joins */

/* ── Section 1: intro ──────────────────────────────────────── */
.ww-intro { position: relative; z-index: 2; text-align: center; max-width: 900px; }
.ww-intro-points {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 13px;
  margin: 0 0 34px; padding: 0; list-style: none;
  text-align: start;
}
.ww-intro-points li {
  display: flex; align-items: center; gap: 12px;
  font-size: clamp(15px, 1.8vw, 19px); font-weight: 600; color: var(--ww-text);
}
.ww-check { flex: 0 0 auto; }
.ww-intro-title {
  margin: 18px 0 26px;
  font-size: clamp(38px, 7.2vw, 78px);
  font-weight: 800; line-height: 1.06; letter-spacing: -0.02em;
  text-wrap: balance;
}
.ww-scrollhint {
  display: inline-flex; flex-direction: column; align-items: center; gap: 4px;
  margin: 0; color: var(--ww-text-muted);
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
}
.ww-scrollhint--btn { min-height: 44px; transition: color 0.2s, transform 0.2s var(--ww-ease-out); }
/* no click/tap highlight on the arrow buttons (keyboard focus ring stays) */
.ww-scrollhint--btn:focus:not(:focus-visible) { outline: none; }
.ww-scrollhint--btn:hover { color: var(--ww-text); transform: translateY(2px); }
.ww-arrow { color: var(--ww-accent); }
.ww-arrow--circle { width: 44px; height: 44px; }
.ww-sec--intro .ww-arrow--circle { margin-top: 5px; }
.ww-arrow--circle circle { transition: fill 0.2s, stroke-opacity 0.2s; }
.ww-scrollhint--btn:hover .ww-arrow--circle circle { fill: rgba(52, 120, 255, 0.14); stroke-opacity: 0.7; }

/* ── Section 2: car + palette + CTA on one screen ──────────── */
.ww-stage {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto;
  justify-items: center;
  padding-top: 60px;
  gap: 4px;
}
.ww-anim .ww-car-wrap, .ww-anim .ww-palette, .ww-anim .ww-cta { visibility: hidden; }

.ww-stage-title {
  position: relative; z-index: 2;
  margin: 0;
  font-size: clamp(20px, 2.4vw, 28px);
  font-weight: 800; letter-spacing: -0.01em; text-align: center;
}

.ww-car-wrap {
  /* fills the leftover row; the car box inside takes the LARGEST size that
     fits both the row height and the width — section always fits one screen */
  position: relative; z-index: 2; align-self: stretch; justify-self: stretch;
  height: 100%; min-height: 0; width: 100%;
  container-type: size;
  display: flex; align-items: center; justify-content: center;
}
.ww-car {
  position: relative;
  width: min(100%, 800px, calc(100cqh * 3.2475)); /* 3.2475 = 1286/396 (config car dims) */
  aspect-ratio: 1286 / 396;
}
.ww-car-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain; opacity: 0;
  filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.45));
  transition: opacity 0.35s ease;
}
.ww-car-img.is-active { opacity: 1; }
.ww-sweep {
  position: absolute; inset: 0; opacity: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, 0.22) 50%, transparent 70%);
  background-size: 250% 100%; background-position: 120% 0;
}
.ww-sweep.is-on { animation: ww-sweep 0.45s ease-out; }
@keyframes ww-sweep {
  0% { opacity: 1; background-position: 120% 0; }
  100% { opacity: 0; background-position: -60% 0; }
}
.ww-car-shadow {
  position: absolute; left: 50%; bottom: -4%;
  width: 74%; height: 12%;
  transform: translateX(-50%);
  background: radial-gradient(50% 50% at 50% 50%, rgba(0, 0, 0, 0.7), transparent 75%);
}
.ww-car-reflection {
  position: absolute; top: 99%; left: 0; width: 100%;
  transform: scaleY(-1); opacity: 0.14; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 55%);
  mask-image: linear-gradient(to top, rgba(0,0,0,0.9), transparent 55%);
}
.ww-car-reflection img { display: block; width: 100%; height: auto; filter: blur(2px); }

/* ── Palette ───────────────────────────────────────────────── */
.ww-palette {
  position: relative; z-index: 4;
  width: min(820px, 100%);
  min-width: 0; max-width: 100%;
  padding: 10px 12px 6px;
  background: var(--ww-panel-bg);
  border: 1px solid var(--ww-border); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.07);
}
.ww-palette-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin-bottom: 8px;
}
.ww-palette-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ww-text-muted);
}
.ww-film-current { text-align: end; font-size: 12px; line-height: 1.3; }
.ww-film-current strong { font-weight: 800; }
.ww-film-current span { color: var(--ww-text-muted); }

/* strips with prev/next arrow buttons (mouse users can't touch-scroll) */
.ww-strip { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ww-strip + .ww-strip { margin-top: 6px; }
.ww-stripnav {
  flex: 0 0 auto; width: 30px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--ww-text-muted);
  border: 1px solid var(--ww-border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s, background 0.2s;
}
.ww-stripnav:hover { color: var(--ww-text); background: rgba(255, 255, 255, 0.08); }
.ww-colorstrips { flex: 1; min-width: 0; }

.ww-brands {
  flex: 1; min-width: 0;
  display: flex; gap: 8px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}
.ww-brands::-webkit-scrollbar { display: none; }
/* one shared neutral pill for every tab (logos need a light bg to read);
   the SELECTED state is an outline only — no extra fill */
.ww-brand-tab {
  flex: 0 0 96px; width: 96px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 8px;
  border: 2px solid transparent; border-radius: 10px;
  background: var(--ww-brand-pill);
  font-size: 13px; font-weight: 700; color: var(--ww-text);
  opacity: 0.75;
  transition: opacity 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s var(--ww-ease-out);
}
.ww-brand-tab:hover { opacity: 1; transform: translateY(-1px); }
.ww-brand-tab.is-active {
  opacity: 1;
  border-color: var(--ww-accent);
  box-shadow: 0 0 0 3px rgba(52, 120, 255, 0.28);
}
.ww-brand-tab img.ww-brand-logo { display: block; width: auto; height: auto; max-height: 26px; max-width: 78px; object-fit: contain; }

.ww-colors[hidden] { display: none; }
/* 10 colors as a fixed 2-row × 5-column grid — no horizontal scrolling */
.ww-colors {
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 6px 8px; padding: 4px 2px 4px;
}
.ww-swatch {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  min-height: 44px; padding: 5px 6px 5px;
  border: 1px solid transparent; border-radius: 11px;
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ww-ease-out);
}
.ww-swatch:hover { transform: translateY(-2px); background: rgba(255, 255, 255, 0.04); }
.ww-swatch.is-selected { border-color: var(--ww-accent); background: rgba(52, 120, 255, 0.1); }
.ww-swatch-chip {
  width: 58px; height: 34px; border-radius: 7px;
  background-color: var(--chip); background-size: cover; background-position: center;
  background-image: linear-gradient(155deg, rgba(255,255,255,0.35), rgba(255,255,255,0.04) 42%, rgba(0,0,0,0.25));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.ww-swatch-name {
  font-size: 10.5px; font-weight: 600; color: var(--ww-text-muted);
  max-width: 92px; text-align: center; line-height: 1.2;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.ww-swatch.is-selected .ww-swatch-name { color: var(--ww-text); }

/* ── CTA row (same screen) ─────────────────────────────────── */
.ww-cta { position: relative; z-index: 3; text-align: center; padding-top: 8px; }
.ww-sec--stage { padding-bottom: calc(128px + env(safe-area-inset-bottom)); }
.ww-cta-row { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ww-btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 13px 32px; border-radius: 999px;
  font-weight: 800; font-size: 15px; letter-spacing: 0.01em;
  transition: transform 0.2s var(--ww-ease-out), box-shadow 0.2s, background 0.2s;
}
.ww-body .ww-btn--primary {
  /* .ww-body prefix: must beat the `.ww-body button` reset for <button>s */
  background: linear-gradient(180deg, var(--ww-accent-strong), var(--ww-accent));
  color: #fff;
  box-shadow: 0 10px 30px rgba(52, 120, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.ww-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(52, 120, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35); }
.ww-btn--ghost { border: 1px solid var(--ww-border); color: var(--ww-text); }
.ww-btn--ghost:hover { border-color: rgba(255, 255, 255, 0.3); }
.ww-cta-note { margin: 0; color: var(--ww-text-muted); font-size: 12px; }

/* ── Section 4a: big round free-trial CTA ──────────────────── */
.ww-bigcta {
  position: relative;
  /* flex:none — the section is a column flexbox, so a shrinkable item would
     lose height on short viewports and the circle would render as an oval */
  flex: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px;
  width: clamp(280px, 58vmin, 520px); aspect-ratio: 1;
  /* label/note sizes are a share of the diameter, so the one-line copy always
     fits the same way at every viewport size */
  container-type: inline-size;
  border-radius: 50%;
  padding: 5%;
  text-align: center; color: #fff;
  background: radial-gradient(120% 120% at 30% 20%, var(--ww-accent-strong), var(--ww-accent) 62%, color-mix(in srgb, var(--ww-accent) 72%, #000) 100%);
  box-shadow: 0 26px 70px rgba(52, 120, 255, 0.42), inset 0 2px 0 rgba(255, 255, 255, 0.32);
  transition: transform 0.25s var(--ww-ease-out), box-shadow 0.25s;
}
.ww-bigcta::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%; border: 1px solid color-mix(in srgb, var(--ww-accent) 55%, transparent);
  animation: ww-bigcta-pulse 2.8s var(--ww-ease-out) infinite;
}
.ww-bigcta:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 32px 84px rgba(52, 120, 255, 0.52), inset 0 2px 0 rgba(255, 255, 255, 0.32); }
.ww-bigcta-label {
  font-size: 7.6cqw; font-weight: 800;
  line-height: 1.14; letter-spacing: -0.015em;
  white-space: nowrap;
}
.ww-bigcta-note {
  font-size: 4.4cqw; font-weight: 600;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.82);
  white-space: nowrap;
}
@keyframes ww-bigcta-pulse {
  0%   { transform: scale(1);    opacity: 0.75; }
  70%  { transform: scale(1.14); opacity: 0; }
  100% { transform: scale(1.14); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ww-bigcta::before { animation: none; }
}

/* ── Sections 3–4: results / pricing ───────────────────────── */
.ww-scene { text-align: center; }

.ww-h2 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5.4vw, 58px);
  font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance;
}
.ww-sub { margin: 0 0 40px; color: var(--ww-text-muted); font-size: clamp(14px, 1.6vw, 17px); }

.ww-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; width: min(980px, 100%);
}
.ww-anim .ww-stat { visibility: hidden; }
.ww-stat {
  position: relative; overflow: hidden;
  padding: 42px 20px 34px;
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border); border-radius: 20px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}
.ww-stat::before {
  content: ""; position: absolute; inset-inline: 18%; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(52, 120, 255, 0.9), transparent);
}
.ww-stat::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 42%, var(--ww-sheen) 50%, transparent 58%);
}
.ww-stat-value {
  font-size: clamp(36px, 4.8vw, 60px);
  font-weight: 800; letter-spacing: -0.02em; line-height: 1;
  background: var(--ww-stat-num);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 6px 22px rgba(52, 120, 255, 0.28));
}
.ww-stat-label { margin-top: 12px; color: var(--ww-text-muted); font-size: 14px; font-weight: 600; }
.ww-fineprint { margin-top: 26px; color: var(--ww-text-muted); font-size: 12px; opacity: 0.8; }
.ww-scrollhint--next { margin-top: 18px; }
/* desktop pricing fits one screen → dock its arrow to the same spot too */
@media (min-width: 821px) {
  /* reserve room at the bottom so the cards sit ABOVE the docked arrow */
  .ww-scene--pricing { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ww-scene--pricing .ww-plans { margin-bottom: 8px; }
  .ww-scene--pricing .ww-scrollhint--next {
    position: absolute; inset-inline: 0; margin: 0 auto; width: max-content;
    bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 6;
  }
}
/* keep the downward nav arrow at the SAME bottom spot on every screen */
/* Centered WITHOUT transform (margin:auto) — GSAP's force3D adds its own
   transform when it animates opacity, which would wipe a translateX(-50%). */
.ww-scrollhint--dock {
  position: absolute; inset-inline: 0; margin-inline: auto; width: max-content;
  bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 6;
}

/* pricing carousel dots (mobile only) */
/* carousel-component wrapper around plans + dots: display:contents keeps
   .ww-plans / .ww-plans-dots direct flex participants of the section (the
   mobile margin:auto centering relies on that) */
.ww-plans-wrap { display: contents; }
.ww-plans-dots { display: none; justify-content: center; gap: 6px; margin-top: 14px; }
/* 24x24 tap target (WCAG 2.5.8); the 10px dot is drawn via ::before */
.ww-plans-dots .ww-dot {
  width: 24px; height: 24px; padding: 0; border: 0; background: transparent;
  display: inline-grid; place-items: center; cursor: pointer;
}
.ww-plans-dots .ww-dot::before {
  content: ""; width: 10px; height: 10px; border-radius: 999px;
  background: transparent; border: 1.5px solid var(--ww-accent); opacity: 0.85;
  transition: transform 0.2s var(--ww-ease-out), background 0.2s, opacity 0.2s;
}
.ww-plans-dots .ww-dot.is-active::before { background: var(--ww-accent); opacity: 1; transform: scale(1.3); }

/* pricing */
.ww-plans {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px; width: min(1020px, 100%); align-items: stretch;
}
.ww-anim .ww-plan { visibility: hidden; }
.ww-plan {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: 36px 24px 28px;
  background: var(--ww-plan-bg);
  border: 1px solid var(--ww-border); border-radius: 22px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  transition: transform 0.25s var(--ww-ease-out), box-shadow 0.25s;
}
.ww-plan::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 44%, var(--ww-sheen) 50%, transparent 56%);
}
.ww-plan:hover { transform: translateY(-4px); }
.ww-plan--featured {
  overflow: visible;
  background: var(--ww-plan-featured-bg);
  border-color: rgba(52, 120, 255, 0.55);
  box-shadow:
    0 34px 70px rgba(0, 0, 0, 0.55),
    0 0 44px rgba(52, 120, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
@media (min-width: 821px) {
  .ww-plan--featured { transform: scale(1.04); }
  .ww-plan--featured:hover { transform: scale(1.04) translateY(-4px); }
}
.ww-plan-badge {
  position: absolute; top: -12px; inset-inline-start: 50%; transform: translateX(-50%);
  padding: 4px 14px; border-radius: 999px;
  background: var(--ww-accent); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  white-space: nowrap;
}
[dir="rtl"] .ww-plan-badge { transform: translateX(50%); }
.ww-plan-name { margin: 0 0 8px; font-size: 18px; font-weight: 800; }
.ww-plan-price { margin: 0 0 18px; }
.ww-plan-amount { font-size: clamp(34px, 4vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
.ww-plan-period { color: var(--ww-text-muted); font-size: 14px; }
.ww-plan-benefits {
  margin: 0 0 24px; padding: 0; list-style: none;
  color: var(--ww-text-muted); font-size: 14px; line-height: 2;
}
.ww-plan .ww-btn { width: 100%; }

/* ── Floating back-to-top ──────────────────────────────────── */
.ww-totop {
  position: fixed; z-index: 55;
  inset-inline-end: calc(20px + env(safe-area-inset-right));
  bottom: calc(20px + env(safe-area-inset-bottom));
  width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; color: var(--ww-accent);
  background: var(--ww-chip-btn-bg); backdrop-filter: blur(8px);
  border: 1px solid var(--ww-border);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity 0.25s, transform 0.25s var(--ww-ease-out), background 0.2s;
}
.ww-totop.is-visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.ww-totop:hover { background: rgba(52, 120, 255, 0.18); }
.ww-totop[hidden] { display: inline-flex; }

/* ── Footer ────────────────────────────────────────────────── */
.ww-footer {
  scroll-snap-align: end;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  padding: 56px 22px calc(46px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--ww-border);
  background: transparent; text-align: center;
}
.ww-footer-tagline { margin: 0; color: var(--ww-text-muted); font-size: 14px; }
.ww-footer-social, .ww-footer-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.ww-footer-menu { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.ww-footer-social a, .ww-footer-legal a {
  min-height: 44px; display: inline-flex; align-items: center;
  color: var(--ww-text-muted); font-size: 13px; font-weight: 600;
}
.ww-footer-social { gap: 8px 26px; }
.ww-footer-social a { transition: color 0.2s, transform 0.2s var(--ww-ease-out); }
.ww-footer-social a:hover { transform: translateY(-2px); }
.ww-footer-social a:hover, .ww-footer-legal a:hover { color: var(--ww-text); }
.ww-copyright { margin: 4px 0 0; color: var(--ww-text-muted); font-size: 12px; }

/* ── Mobile ────────────────────────────────────────────────── */
@media (max-width: 820px) {
  /* mandatory snap on mobile too: scroll always lands on a section edge
     (sections taller than the viewport still scroll freely inside, per spec) */
  .ww-sec { min-height: 100svh; padding: 76px 16px calc(20px + env(safe-area-inset-bottom)); }
  /* pricing = one full screen with a horizontal card carousel.
     3 fixed zones: header reserve (padding-top) · content (centered in the
     remaining space) · arrow reserve (padding-bottom, holds the docked arrow).
     justify-content:center keeps the carousel centered at ANY dvh height —
     never touching the "Stay ahead" heading nor the docked arrow. */
  .ww-scene--pricing {
    justify-content: flex-start;
    padding-top: calc(74px + env(safe-area-inset-top));
    padding-bottom: calc(96px + env(safe-area-inset-bottom)); /* arrow zone */
  }
  .ww-scene--pricing .ww-plans { margin-top: auto; }
  .ww-scene--pricing .ww-plans-dots { margin-bottom: auto; }
  .ww-scene--results {
    justify-content: flex-start;
    padding-top: calc(74px + env(safe-area-inset-top));
    padding-bottom: calc(96px + env(safe-area-inset-bottom)); /* arrow zone */
  }
  .ww-scene--results .ww-stats { margin-top: auto; }
  .ww-scene--results .ww-fineprint { margin-top: 14px; margin-bottom: auto; }
  /* results: heading + 3 stat cards + disclaimer + next-arrow = one screen */
  .ww-scene--results .ww-h2 { font-size: 28px; margin-bottom: 4px; }
  .ww-scene--results .ww-sub { font-size: 13px; margin-bottom: 16px; }
  .ww-stats { gap: 10px; }
  .ww-stat { padding: 16px 16px 15px; border-radius: 16px; }
  .ww-stat-value { font-size: 30px; }
  .ww-stat-label { margin-top: 5px; font-size: 12.5px; }
  .ww-fineprint { margin-top: 12px; font-size: 11px; }
  .ww-scrollhint--next { margin-top: 8px; }
  .ww-stage { padding-top: 64px; gap: 8px; }
  .ww-sec--stage { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
  .ww-car-wrap { max-width: 94vw; }
  .ww-intro-title { font-size: clamp(30px, 8.6vw, 42px); }
  .ww-intro-points { gap: 10px; margin-bottom: 26px; }
  .ww-intro-points li { font-size: 14.5px; gap: 10px; }
  .ww-scene--pricing .ww-h2 { font-size: 27px; margin-bottom: 3px; }
  .ww-scene--pricing .ww-sub { font-size: 13px; margin-bottom: 14px; }
  .ww-stats { grid-template-columns: 1fr; width: min(440px, 100%); }
  /* horizontal snap carousel: Basic · Pro · Enterprise, Pro centered, sides recede */
  .ww-plans {
    display: flex; grid-template-columns: none;
    width: 100vw; max-width: 100vw; gap: 0;
    overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    /* narrower center + big side gutters → neighbours clearly peek in */
    padding: 12px calc(50vw - 128px); align-items: center;
  }
  .ww-plans::-webkit-scrollbar { display: none; }
  .ww-plan {
    flex: 0 0 236px; scroll-snap-align: center;
    margin: 0 10px; order: 0;
    transform: scale(0.8); opacity: 0.42;
    transition: transform 0.35s var(--ww-ease-out), opacity 0.35s;
  }
  .ww-plan.is-center { transform: scale(1); opacity: 1; }
  .ww-plan--featured { order: 0; }
  .ww-plan { padding: 24px 20px 22px; border-radius: 18px; }
  .ww-plan-name { margin-bottom: 6px; }
  .ww-plan-price { margin-bottom: 12px; }
  .ww-plan-benefits { margin-bottom: 16px; line-height: 1.8; }
  .ww-btn { width: 100%; }
  /* dots visible only on mobile */
  .ww-plans-dots { display: flex; }
  .ww-scene--pricing .ww-scrollhint--next { position: absolute; }
  .ww-cta-row { width: 100%; }
  .ww-light { width: 180vmin; height: 180vmin; }
  /* compact palette so car + palette + CTA fit one screen */
  .ww-palette { padding: 8px 8px 5px; border-radius: 13px; }
  .ww-palette-head { margin-bottom: 6px; }
  .ww-film-current { font-size: 11px; }
  .ww-brands { gap: 6px; }
  .ww-brand-tab { flex: 0 0 76px; width: 76px; height: 40px; padding: 3px 6px; border-radius: 8px; }
  .ww-brand-tab img.ww-brand-logo { max-height: 20px; max-width: 62px; }
  .ww-stage-title { font-size: 18px; margin-top: 2px; }
  .ww-cta { padding-top: 12px; }
  .ww-stripnav { width: 26px; height: 40px; }
  .ww-colors { gap: 4px 5px; padding-bottom: 3px; }
  .ww-swatch { padding: 4px 2px 4px; border-radius: 8px; }
  .ww-swatch-chip { width: 100%; max-width: 52px; height: 28px; border-radius: 6px; }
  .ww-swatch-name { font-size: 8.5px; max-width: 62px; }
  .ww-car-wrap { max-width: 94vw; }
  .ww-cta-note { font-size: 12px; margin-bottom: 4px; }
  .ww-btn { min-height: 46px; padding: 11px 24px; font-size: 14px; }
}

/* ── RTL ───────────────────────────────────────────────────── */
[dir="rtl"] .ww-body { text-align: right; }
/* car, swatch chips and the arrows are intentionally NOT mirrored */
[dir="rtl"] .ww-car-wrap, [dir="rtl"] .ww-swatch-chip, [dir="rtl"] .ww-arrow { transform: none; }

/* ── Reduced motion (also the no-JS default) ───────────────── */
@media (prefers-reduced-motion: reduce) {
  .ww-root { scroll-behavior: auto; }
  .ww-body *, .ww-body *::before, .ww-body *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.15s !important;
  }
  .ww-car-img { transition-duration: 0.3s !important; }
}

/* ── Contact form ──────────────────────────────────────────── */
.ww-hp { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ww-form[hidden], .ww-thanks[hidden] { display: none; }
.ww-form {
  display: flex; flex-direction: column; gap: 12px;
  width: min(560px, 100%); text-align: start;
}
.ww-form-row { display: flex; gap: 12px; }
.ww-form-row .ww-input { flex: 1; min-width: 0; }
.ww-input {
  width: 100%; padding: 14px 16px;
  background: var(--ww-input-bg);
  border: 1px solid var(--ww-border); border-radius: 12px;
  color: var(--ww-text); font: inherit; font-size: 15px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.ww-input::placeholder { color: rgba(147, 160, 184, 0.75); }
.ww-input:focus {
  outline: none; border-color: var(--ww-accent);
  box-shadow: 0 0 0 3px rgba(52, 120, 255, 0.2);
}
.ww-input.is-invalid {
  border-color: #ff7b7b;
  box-shadow: 0 0 0 3px rgba(255, 123, 123, 0.18);
}
.ww-input--area { resize: vertical; min-height: 110px; max-height: 320px; }
.ww-form-submit { margin-top: 4px; }
.ww-form-submit[disabled] { opacity: 0.6; pointer-events: none; }
.ww-form-error { margin: 0; color: #ff7b7b; font-size: 13px; text-align: center; }
.ww-thanks { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.ww-thanks-check { filter: drop-shadow(0 8px 30px rgba(46, 204, 113, 0.35)); }
.ww-thanks-text { margin: 0; font-size: clamp(17px, 2vw, 21px); font-weight: 700; }
@media (max-width: 820px) {
  .ww-form-row { flex-direction: column; gap: 12px; }
  .ww-sec--contact, .ww-scene--contact { padding-top: 84px; }
}

/* Very short viewports (old iPhone SE etc.): compact the pricing screen further */
@media (max-width: 820px) and (max-height: 650px) {
  .ww-scene--pricing .ww-h2 { font-size: 22px; }
  .ww-plans { padding-top: 6px; padding-bottom: 6px; }
  .ww-plan { padding: 16px 18px 18px; }
  .ww-plan-amount { font-size: 30px; }
  .ww-plan-benefits { line-height: 1.55; margin-bottom: 12px; }
  .ww-stat { padding: 12px 14px 11px; }
  .ww-stat-value { font-size: 26px; }
}

/* ═══ WW Page (generic content template) ═════════════════════════════ */
/* Normal-flow reading page inside the shell. No snap, no scenes. The
   fixed-position header floats above, so the page reserves top padding. */

.ww-page {
  max-width: 820px;
  margin: 0 auto;
  padding: 128px 22px 72px;
}

.ww-page-title {
  margin: 0 0 28px;
  font-size: clamp(30px, 5vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  font-weight: 800;
  text-wrap: balance;
}

/* Editor content typography — scoped under .ww-page-body so nothing leaks
   into the landing. Specificity note: `.ww-body img` (0,1,1) is the global
   reset, so image rules here use `.ww-page-body img` (0,2,1) to win. */
.ww-page-body { font-size: 17px; line-height: 1.7; color: var(--ww-text); }
.ww-page-body > * + * { margin-top: 1.1em; }
.ww-page-body h2 { font-size: clamp(23px, 3.4vw, 30px); line-height: 1.25; margin-top: 1.8em; letter-spacing: -0.015em; text-wrap: balance; }
.ww-page-body h3 { font-size: clamp(19px, 2.6vw, 23px); line-height: 1.3; margin-top: 1.5em; text-wrap: balance; }
.ww-page-body h4 { font-size: 18px; margin-top: 1.4em; }
.ww-page-body p { margin-bottom: 0; }
.ww-page-body a { color: var(--ww-accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.ww-page-body a:hover { color: var(--ww-accent); }
.ww-page-body ul, .ww-page-body ol { padding-inline-start: 1.4em; }
.ww-page-body li + li { margin-top: 0.45em; }
.ww-page-body img { max-width: 100%; height: auto; border-radius: 14px; }
.ww-page-body figure { margin: 1.6em 0; }
.ww-page-body figcaption { margin-top: 8px; font-size: 13px; color: var(--ww-text-muted); text-align: center; }
.ww-page-body blockquote {
  margin: 1.6em 0;
  padding: 14px 22px;
  border-inline-start: 3px solid var(--ww-accent);
  background: var(--ww-panel-bg);
  border-radius: 0 12px 12px 0;
}
.ww-page-body blockquote p { margin: 0; }
.ww-page-body hr { border: 0; border-top: 1px solid var(--ww-border); margin: 2.2em 0; }
.ww-page-body pre, .ww-page-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.92em;
  background: var(--ww-input-bg);
  border-radius: 8px;
}
.ww-page-body code { padding: 2px 6px; }
.ww-page-body pre { padding: 14px 18px; overflow-x: auto; }
.ww-page-body pre code { padding: 0; background: none; }

/* Tables scroll inside their own box on narrow screens */
.ww-page-body table { width: 100%; border-collapse: collapse; font-size: 15px; }
.ww-page-body th, .ww-page-body td { padding: 10px 12px; border: 1px solid var(--ww-border); text-align: start; }
.ww-page-body th { background: var(--ww-panel-bg); font-weight: 700; }
.ww-page-body .wp-block-table { overflow-x: auto; }

/* Gutenberg buttons → landing button look */
.ww-page-body .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0; }
.ww-body .ww-page-body .wp-block-button__link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--ww-accent), var(--ww-accent-strong));
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: transform 0.18s var(--ww-ease-out), box-shadow 0.18s var(--ww-ease-out);
  box-shadow: 0 10px 26px rgba(52, 120, 255, 0.32);
}
.ww-body .ww-page-body .wp-block-button__link:hover { transform: translateY(-1px); }

/* Wide/full alignments cap at the viewport, not the reading column */
.ww-page-body .alignwide { margin-inline: calc(50% - min(50vw - 22px, 560px)); }
.ww-page-body .alignfull { margin-inline: calc(50% - 50vw + 22px); }

@media (max-width: 640px) {
  .ww-page { padding: 104px 18px 56px; }
  .ww-page-body { font-size: 16px; }
}

/* Content pages: normal document scroll — no snap (the footer's
   snap-align:end would otherwise be the only snap point and the browser
   snaps to it on load). */
.ww-root--page { scroll-snap-type: none; scroll-behavior: auto; }
.ww-root--page .ww-footer { scroll-snap-align: none; }

/* ═══ Header nav menu (ww-menu location) ═════════════════════════════ */
/* The menu is a burger DROPDOWN on every viewport: desktop gets a panel
   anchored under the burger, mobile a fullscreen drawer (media below). */
.ww-nav {
  display: none;
  position: fixed; z-index: 45;
  top: calc(66px + env(safe-area-inset-top));
  inset-inline-end: max(22px, calc((100% - 1120px) / 2));
  min-width: 230px;
  max-width: min(420px, calc(100vw - 44px));
  max-height: calc(100vh - 96px);
  overflow-y: auto;
  padding: 8px;
  background: var(--ww-surface);
  border: 1px solid var(--ww-border);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
}
.ww-nav.is-open { display: block; }
.ww-nav-list {
  display: flex; flex-direction: column;
  list-style: none; margin: 0; padding: 0;
}
.ww-nav-list a {
  display: block;
  color: var(--ww-text);
  font-size: 15px; font-weight: 600; letter-spacing: 0.01em;
  text-decoration: none;
  padding: 11px 14px;
  border-radius: 8px;
  transition: background 0.16s ease;
  overflow-wrap: anywhere; /* long page titles wrap instead of clipping */
}
/* hover only — no .current-menu-item highlight: on the landing every item
   is a #hash link to the same page, so WP marks ALL of them current */
.ww-nav-list a:hover { background: var(--ww-surface-light); }
/* nested pages (child menu items) — accordion: collapsed until toggled */
.ww-nav-list li { position: relative; }
.ww-nav-list .menu-item-has-children > a { padding-inline-end: 46px; }
.ww-sub-toggle {
  position: absolute; inset-inline-end: 4px; top: 3px;
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 8px; color: var(--ww-text-muted);
  background: none; border: 0; cursor: pointer;
}
.ww-sub-toggle:hover { background: var(--ww-surface-light); color: var(--ww-text); }
.ww-sub-toggle svg { transition: transform 0.18s ease; }
.ww-nav-list li.is-open > .ww-sub-toggle svg { transform: rotate(180deg); }
.ww-nav-list .sub-menu {
  display: none;
  list-style: none; margin: 0; padding: 0 0 0 16px;
  border-inline-start: 1px solid var(--ww-border);
  margin-inline-start: 14px;
}
.ww-nav-list li.is-open > .sub-menu { display: block; }
.ww-nav-list .sub-menu a { font-size: 13.5px; font-weight: 500; padding: 8px 12px; color: var(--ww-text-muted); }
.ww-nav-list .sub-menu a:hover { color: var(--ww-text); }

/* burger — visible on every viewport */
.ww-burger {
  display: flex; order: 3;
  width: 44px; height: 44px;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  border: 1px solid var(--ww-border); border-radius: 999px;
  background: var(--ww-chip-btn-bg); backdrop-filter: blur(6px);
  cursor: pointer; padding: 0;
}
.ww-burger-bar {
  display: block; width: 16px; height: 2px; border-radius: 2px;
  background: var(--ww-text);
  transition: transform 0.22s var(--ww-ease-out), opacity 0.18s ease;
}
.ww-burger[aria-expanded="true"] .ww-burger-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ww-burger[aria-expanded="true"] .ww-burger-bar:nth-child(2) { opacity: 0; }
.ww-burger[aria-expanded="true"] .ww-burger-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* keep logo / burger / tools clickable ABOVE the open drawer (the drawer
   is a sibling inside .ww-header — without z-index they'd paint under it) */
.ww-logo, .ww-burger, .ww-header-tools { position: relative; z-index: 46; }

@media (max-width: 900px) {
  /* full-screen drawer instead of the dropdown panel */
  .ww-nav {
    inset: 0; top: 0;
    min-width: 0;
    background: var(--ww-bg);
    border: 0; border-radius: 0; box-shadow: none;
    padding: calc(96px + env(safe-area-inset-top)) 22px 40px;
    overflow-y: auto;
  }
  .ww-nav.is-open { display: flex; justify-content: center; align-items: flex-start; }
  .ww-nav-list { gap: 8px; width: 100%; }
  .ww-nav-list a {
    text-align: center;
    font-size: 20px; font-weight: 700; padding: 10px 8px;
  }
  .ww-nav-list .sub-menu { border: 0; margin: 0; padding: 0; }
  .ww-sub-toggle { top: 6px; width: 40px; height: 40px; }
  .ww-nav-list .menu-item-has-children > a { padding-inline: 46px; } /* keep centered text centered */
  .ww-nav-list .sub-menu a { font-size: 15px; font-weight: 500; padding: 7px 8px; }
  .ww-nav-lock, .ww-nav-lock body { overflow: hidden; }
}

/* ═══ 4-step process (horizontal card carousel) ══════════════════════ */
.ww-scene--process { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ww-scene--process .ww-sub { margin-bottom: 26px; }

/* ── Generic carousel component ──────────────────────────────
   Markup (also produced by the [ww_carousel] shortcode):
     <div class="ww-carousel" data-ww-carousel>
       <button class="ww-stripnav" data-ww-carousel-prev>…</button>
       <div class="ww-carousel-track" data-ww-carousel-track>
         <div class="ww-carousel-item">…</div> ×N
       </div>
       <button class="ww-stripnav" data-ww-carousel-next>…</button>
       <div class="ww-carousel-dots" data-ww-carousel-dots></div>  (dots auto-generated)
     </div>
   Item width via --wwc-item, gap via --wwc-gap on .ww-carousel. */
.ww-carousel {
  --wwc-item: min(84vw, 340px);
  --wwc-gap: 18px;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  width: 100%; max-width: 1180px; margin-inline: auto;
}
.ww-carousel-track {
  flex: 1; min-width: 0;
  display: flex; gap: var(--wwc-gap);
  overflow-x: auto;
  /* desktop: free scroll (arrows + mouse drag) — no snap, so trackpad
     swipes don't fight a snap point the edge cards can't reach */
  scroll-snap-type: none;
  padding: 8px 4px 14px;
  scrollbar-width: none;
}
.ww-carousel-track::-webkit-scrollbar { display: none; }
.ww-carousel-item {
  /* Never wider than the viewport, even when a block sets a fixed --wwc-item */
  flex: 0 0 min(var(--wwc-item), 84vw);
  scroll-snap-align: center;
  min-width: 0;
}
/* cards ride the item's full height so mixed content lines up */
.ww-carousel-item > .wwb-card,
.ww-carousel-item > .wwb-callout { height: 100%; }

/* landing "popular wrap ideas" link cards */
.ww-ideas { width: min(1060px, 92vw); margin: 0 auto; }
.ww-idea {
  display: flex; flex-direction: column; height: 100%;
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border);
  border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.ww-idea:hover { transform: translateY(-4px); border-color: var(--ww-accent); box-shadow: 0 18px 40px -18px rgb(0 0 0 / 0.45); }
.ww-idea-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; display: block; }
.ww-idea-title { padding: 12px 14px 14px; font-weight: 700; font-size: 15px; text-align: left; }
.ww-carousel-dots { display: none; justify-content: center; gap: 4px; margin-top: 4px; flex-basis: 100%; }
/* 24x24 tap target (WCAG 2.5.8); the small dot is drawn via ::before */
.ww-carousel-dots .ww-dot {
  width: 24px; height: 24px; border: 0; padding: 0; cursor: pointer;
  background: transparent; display: inline-grid; place-items: center;
}
.ww-carousel-dots .ww-dot::before {
  content: ""; width: 8px; height: 8px; border-radius: 999px;
  background: var(--ww-text-muted); opacity: 0.45;
  transition: transform 0.18s ease, opacity 0.18s ease, background 0.18s ease;
}
.ww-carousel-dots .ww-dot.is-active::before { background: var(--ww-accent); opacity: 1; transform: scale(1.3); }
@media (hover: hover) and (pointer: fine) {
  .ww-carousel-track { cursor: grab; }
  .ww-carousel-track.is-dragging { cursor: grabbing; user-select: none; scroll-behavior: auto; }
}
.ww-carousel-track img,
.ww-carousel-track a { -webkit-user-drag: none; user-select: none; }
@media (max-width: 820px) {
  .ww-carousel { --wwc-gap: 12px; }
  .ww-carousel-track { scroll-snap-type: x mandatory; }
  /* edge spacers (minus their own gap) make scrollLeft:0 an exact snap
     point — without them the first touch makes the carousel jump */
  .ww-carousel-track::before, .ww-carousel-track::after {
    content: ""; flex: 0 0 max(0px, calc((100% - var(--wwc-item)) / 2 - var(--wwc-gap)));
  }
  .ww-carousel-dots { display: flex; }
  .ww-carousel .ww-stripnav { display: none; } /* swipe + dots on touch */
}

/* step cards: visual skin on top of .ww-carousel-item */
.ww-step-card {
  display: flex; flex-direction: column; gap: 12px;
  padding: 14px 14px 18px;
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border);
  border-radius: 20px;
  text-align: start;
  visibility: visible; /* gsap flips this when animating */
}
html.ww-anim .ww-step-card { visibility: hidden; }

.ww-step-media {
  aspect-ratio: 16 / 10;
  border-radius: 13px;
  overflow: hidden;
  background: var(--ww-panel-bg);
}
.ww-step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* card 4 — testimonial instead of a photo */
.ww-step-quote {
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  padding: 18px 20px;
}
.ww-step-quote[hidden] { display: none; }
.ww-step-quote-text { margin: 0; font-size: 16px; line-height: 1.5; font-weight: 600; font-style: italic; }
.ww-step-quote-author { margin: 0; font-size: 13px; color: var(--ww-text-muted); }

.ww-step-head { display: flex; align-items: center; gap: 10px; }
.ww-step-num {
  flex: 0 0 28px; width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px;
  background: rgba(52, 120, 255, 0.16);
  border: 1.5px solid var(--ww-accent);
  color: var(--ww-accent-strong);
  font-size: 14px; font-weight: 800;
}
.ww-step-title { margin: 0; font-size: 16.5px; line-height: 1.3; }
.ww-step-text { margin: 0; font-size: 13.5px; line-height: 1.55; color: var(--ww-text-muted); }

.ww-stripnav--steps { flex: 0 0 auto; }

@media (max-width: 820px) {
  .ww-scene--process { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .ww-scene--process .ww-carousel { --wwc-item: 84vw; }
  .ww-scene--process .ww-h2 { font-size: 27px; margin-bottom: 3px; }
  .ww-scene--process .ww-sub { font-size: 13px; margin-bottom: 12px; }
}

/* theme templates: post meta line + archive list */
.ww-page-meta { margin: -18px 0 24px; color: var(--ww-text-muted); font-size: 14px; }
.ww-archive-list { list-style: none; padding: 0; margin: 0; }
.ww-archive-list li {
  display: flex; justify-content: space-between; gap: 16px; align-items: baseline;
  padding: 14px 2px; border-bottom: 1px solid var(--ww-border);
}
.ww-archive-list time { color: var(--ww-text-muted); font-size: 13px; white-space: nowrap; }

/* ═══ Canvas pages (self-styled content, e.g. Tailwind SEO pages) ════ */
/* Full-bleed: no reading column, no WW typography — the content styles
   itself. Only the fixed header offset is ours. */
/* Single content width shared by every top-level block so headings, galleries,
   features, callouts etc. all align to the same left/right edges. */
.ww-canvas { --wwb-max: 1120px; padding-top: calc(64px + env(safe-area-inset-top)); }
.ww-canvas :where(img) { max-width: 100%; }

/* ═══ WW blocks (Gutenberg component library) ════════════════════════ */
/* Every block rides the --ww vars → follows dark/light/system theme. */

.wwb-hero, .wwb-features, .wwb-gallery, .wwb-faq, .wwb-cta {
  max-width: var(--wwb-max);
  margin: 0 auto;
  padding: 48px 22px;
}

.wwb-kicker {
  margin: 0 0 10px;
  color: var(--ww-accent-strong);
  font-size: 13px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.wwb-h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 3.6vw, 38px); font-weight: 800;
  line-height: 1.15; letter-spacing: -0.02em;
  text-wrap: balance; /* long headings split into balanced lines, no orphan word */
}
.wwb-badge {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px; padding: 8px 14px;
  border: 1px solid var(--ww-border); border-radius: 999px;
  background: var(--ww-chip-btn-bg);
  font-size: 13px; font-weight: 600; color: var(--ww-text-muted);
}

/* hero */
.wwb-hero { padding-top: 40px; }
.wwb-hero-grid { display: grid; grid-template-columns: 1.6fr 0.7fr; gap: 40px; align-items: center; }
.wwb-hero-title { margin: 0 0 16px; font-size: clamp(30px, 3.6vw, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -0.02em; text-wrap: balance; }
.wwb-hero-sub { margin: 0 0 22px; color: var(--ww-text-muted); font-size: clamp(16px, 1.9vw, 19px); line-height: 1.55; }
.wwb-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; margin-bottom: 16px; }
/* Secondary hero action rendered as an outline pill button (a bare text link
   wrapped badly on mobile). */
.wwb-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 12px 26px; border-radius: 999px;
  border: 1px solid var(--ww-border); color: var(--ww-text);
  font-weight: 700; font-size: 15px; white-space: nowrap;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.wwb-secondary:hover { border-color: var(--ww-accent-strong); color: var(--ww-accent-strong); }
.wwb-rating { margin: 0; color: var(--ww-text-muted); font-size: 14px; }
.wwb-hero-media img { width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--ww-card-border); }

/* features */
/* Heading spans the full block width (no narrow grid column that cramps long
   titles); the supporting text sits below at a readable measure. */
.wwb-features { border-block: 1px solid var(--ww-border); }
.wwb-features-head { margin-bottom: 14px; }
.wwb-features .wwb-h2 { margin-bottom: 0; font-size: clamp(24px, 3vw, 32px); }
.wwb-features-text { color: var(--ww-text-muted); font-size: 17px; line-height: 1.65; max-width: 70ch; }
.wwb-features-text p { margin: 0 0 0.7em; }
.wwb-features-text p:last-child { margin-bottom: 0; }

/* gallery */
.wwb-gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.wwb-card {
  margin: 0; overflow: hidden;
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border);
  border-radius: 18px;
  display: flex; flex-direction: column;
}
.wwb-card-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.wwb-card figcaption { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.wwb-card-label { color: var(--ww-accent-strong); font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.wwb-card-title { font-size: 16px; font-weight: 700; }
.wwb-card-text { color: var(--ww-text-muted); font-size: 13.5px; line-height: 1.55; }
.wwb-card-text p { margin: 0 0 6px; }
.wwb-card-text p:last-child { margin-bottom: 0; }

/* faq — native <details> accordion */
.wwb-faq-list { display: flex; flex-direction: column; gap: 12px; }
.wwb-faq-item {
  background: var(--ww-panel-bg);
  border: 1px solid var(--ww-border);
  border-radius: 14px;
  padding: 0 18px;
}
.wwb-faq-q {
  cursor: pointer; list-style: none;
  padding: 16px 30px 16px 0;
  font-weight: 700; font-size: 16px;
  position: relative;
}
.wwb-faq-q::-webkit-details-marker { display: none; }
.wwb-faq-q::after {
  content: ""; position: absolute; inset-inline-end: 4px; top: 50%;
  width: 8px; height: 8px; margin-top: -6px;
  border-inline-end: 2px solid var(--ww-text-muted);
  border-bottom: 2px solid var(--ww-text-muted);
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}
.wwb-faq-item[open] .wwb-faq-q::after { transform: rotate(225deg); margin-top: -2px; }
.wwb-faq-a { padding: 0 0 16px; color: var(--ww-text-muted); line-height: 1.6; }
.wwb-faq-a p { margin: 0 0 0.7em; }
.wwb-faq-a p:last-child { margin-bottom: 0; }

/* cta */
.wwb-cta {
  text-align: center;
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border);
  border-radius: 24px;
  padding: 56px 28px;
  margin-block: 48px;
}
.wwb-cta-text { margin: 0 auto 24px; max-width: 640px; color: var(--ww-text-muted); font-size: 17px; line-height: 1.6; }
.wwb-cta-note { margin: 14px 0 0; color: var(--ww-text-muted); font-size: 13px; }
/* Bordered boxes must not touch the screen edges when the block goes full-bleed
   below its max-width — keep a side gutter across the whole narrow range. */
@media (max-width: 1164px) {
  .wwb-cta, .wwb-callout { margin-inline: 18px; }
}

@media (max-width: 820px) {
  .wwb-hero, .wwb-features, .wwb-gallery, .wwb-faq, .wwb-cta { padding: 32px 18px; }
  .wwb-hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .wwb-gallery-grid { grid-template-columns: 1fr; }
  .wwb-cta { margin-block: 24px; border-radius: 18px; }
}
@media (min-width: 560px) and (max-width: 1020px) {
  .wwb-gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

/* content pages: opaque header (text scrolls UNDER it, not through the logo) */
.ww-root--page .ww-header {
  background: var(--ww-bg);
  border-bottom: 1px solid var(--ww-border);
}

/* contact-form block */
.wwb-contact { max-width: 680px; margin: 0 auto; padding: 48px 22px 64px; text-align: center; }
.wwb-contact-sub { margin: 0 0 26px; color: var(--ww-text-muted); font-size: 16px; }
.wwb-contact .ww-form { text-align: start; }
.wwb-contact-preview { border: 1px dashed var(--ww-border); border-radius: 12px; padding: 24px; color: var(--ww-text-muted); }

/* email line under the contact form (both landing + contact-form block) */
.ww-form-mail { margin: 16px 0 0; text-align: center; font-size: 14px; color: var(--ww-text-muted); }
.ww-form-mail a { color: var(--ww-accent-strong); font-weight: 600; }
.ww-form-mail a:hover { color: var(--ww-accent); }

/* linked step cards: lift on hover (drag-suppression already prevents
   accidental clicks after a mouse drag of the carousel) */
.ww-step-card--link { transition: transform 0.2s var(--ww-ease-out), border-color 0.2s ease; }
.ww-step-card--link:hover { transform: translateY(-3px); border-color: var(--ww-accent); }

/* ═══ WW blocks: section / callout / stats / table ═══════════════════ */

/* reading section (typography comes from .ww-page-body on the inner div) */
.wwb-section { max-width: var(--wwb-max); margin: 0 auto; padding: 28px 22px; }

/* callout — toned box */
.wwb-callout {
  --wwb-tone: var(--ww-accent);
  max-width: var(--wwb-max);
  margin: 20px auto;
  padding: 22px 24px;
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--wwb-tone) 40%, transparent);
  background: color-mix(in srgb, var(--wwb-tone) 10%, transparent);
}
.wwb-callout--success { --wwb-tone: #2ecc71; }
.wwb-callout--danger  { --wwb-tone: #f43f5e; }
.wwb-callout--neutral { --wwb-tone: var(--ww-text-muted); }
.wwb-callout .wwb-kicker { margin-bottom: 6px; color: var(--wwb-tone); }
.wwb-callout-img {
  display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  margin: 0 0 16px; border-radius: 12px; cursor: zoom-in;
  border: 1px solid var(--ww-card-border);
}
.wwb-callout-title { margin: 0 0 8px; font-size: 20px; font-weight: 800; }
.wwb-callout-text { color: var(--ww-text); line-height: 1.6; }
.wwb-callout-text p { margin: 0 0 0.6em; }
.wwb-callout-text p:last-child { margin-bottom: 0; }

/* stat cards */
.wwb-stats {
  max-width: var(--wwb-max); margin: 24px auto; padding: 0 22px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px;
}
.wwb-stats .wwb-stat {
  background: var(--ww-card-bg);
  border: 1px solid var(--ww-card-border);
  border-radius: 18px;
  padding: 22px 20px;
  text-align: center;
}
.wwb-stat-value {
  font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.02em;
  background: var(--ww-stat-num); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.wwb-stat-label { margin-top: 8px; color: var(--ww-text-muted); font-size: 14px; line-height: 1.45; }

/* theme-aware table */
.wwb-table { max-width: var(--wwb-max); margin: 24px auto; padding: 0 22px; }
.wwb-table-scroll { overflow-x: auto; border: 1px solid var(--ww-border); border-radius: 16px; }
.wwb-table figure.wp-block-table { margin: 0; }
.wwb-table table {
  width: 100%; border-collapse: collapse;
  color: var(--ww-text); font-size: 15px; line-height: 1.5;
  background: var(--ww-surface);
}
.wwb-table th, .wwb-table td {
  padding: 13px 16px; text-align: start;
  border-bottom: 1px solid var(--ww-border);
  border-inline-start: 1px solid var(--ww-border);
}
.wwb-table th:first-child, .wwb-table td:first-child { border-inline-start: 0; }
.wwb-table thead th, .wwb-table tr:first-child th {
  background: var(--ww-panel-bg);
  font-weight: 800; font-size: 13.5px; letter-spacing: 0.03em; text-transform: uppercase;
  color: var(--ww-text);
}
.wwb-table tbody tr:last-child td { border-bottom: 0; }
.wwb-table td:first-child { font-weight: 700; }

@media (max-width: 820px) {
  .wwb-stats { grid-template-columns: 1fr; padding: 0 18px; }
  .wwb-section, .wwb-callout { padding-inline: 18px; }
  .wwb-callout { margin-inline: 18px; }
  .wwb-table { padding: 0 18px; }
}

/* compare (before/after) slider */
.wwb-compare { max-width: var(--wwb-max); margin: 24px auto; padding: 0 22px; }
.wwb-compare-box {
  position: relative; overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  border: 1px solid var(--ww-card-border);
  touch-action: pan-y; /* horizontal drag belongs to the slider */
  cursor: ew-resize;
  user-select: none;
}
.wwb-compare-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.wwb-compare-clip { position: absolute; inset: 0; overflow: hidden; clip-path: inset(0 50% 0 0); }
.wwb-compare-label {
  position: absolute; top: 14px; z-index: 3;
  padding: 5px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  background: rgba(10, 17, 36, 0.72); color: #fff; backdrop-filter: blur(4px);
}
.wwb-compare-label--after { inset-inline-start: 14px; }
.wwb-compare-label--before { inset-inline-end: 14px; }
.wwb-compare-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; z-index: 2;
  width: 3px; margin-left: -1.5px;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.25);
}
.wwb-compare-handle span {
  position: absolute; top: 50%; left: 50%;
  width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 999px; background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.wwb-compare-handle span::before {
  content: "⟨ ⟩"; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #0a1124; font-size: 13px; font-weight: 800; letter-spacing: -1px;
}
@media (max-width: 820px) { .wwb-compare { padding: 0 18px; } }

/* trust badge strip */
.wwb-badges {
  max-width: 1120px; margin: 8px auto; padding: 10px 22px;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
}
.wwb-badge-item {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ww-text-muted); font-size: 14px; font-weight: 600;
}
.wwb-badge-item svg { color: var(--ww-accent-strong); flex: 0 0 auto; }

/* carousel BLOCK: inner blocks become items — neutralize their own
   page-flow sizing inside the track */
.wwb-carousel { padding-inline: 22px; }
.ww-carousel-item > .wwb-callout { max-width: none; margin: 0; height: 100%; }
.ww-carousel-item > .wwb-callout .wwb-callout-text { font-size: 14.5px; }

/* block extensions */
.wwb-callout-btn { display: inline-block; margin-top: 14px; }
.wwb-hero-caption { margin: 10px 4px 0; color: var(--ww-text-muted); font-size: 13px; }
.wwb-cta-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 22px; }

/* callout icon + hover polish (original cards had icons and lifted on hover) */
.wwb-callout {
  transition: transform 0.2s var(--ww-ease-out), border-color 0.2s ease, box-shadow 0.2s ease;
}
.wwb-callout:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--wwb-tone) 70%, transparent);
  box-shadow: 0 14px 34px color-mix(in srgb, var(--wwb-tone) 14%, transparent);
}
.wwb-callout-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 52px; height: 52px; margin-bottom: 14px;
  border-radius: 14px;
  background: color-mix(in srgb, var(--wwb-tone) 15%, transparent);
  color: var(--wwb-tone);
}

/* ── Lightbox ──────────────────────────────────────────────────────── */
img[data-ww-zoom] { cursor: zoom-in; }
html.ww-lightbox-open { overflow: hidden; }
.ww-lightbox {
	position: fixed; inset: 0; z-index: 1000;
	display: flex; align-items: center; justify-content: center;
	padding: clamp(16px, 4vw, 48px);
	background: rgba(8, 10, 14, 0.86);
	backdrop-filter: blur(4px);
}
.ww-lightbox[hidden] { display: none; }
.ww-lightbox-fig {
	margin: 0; display: flex; flex-direction: column; align-items: center;
	gap: 12px; max-width: 100%; max-height: 100%;
}
.ww-lightbox-img {
	max-width: 100%; max-height: 82vh; width: auto; height: auto;
	border-radius: 10px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
	object-fit: contain;
}
.ww-lightbox-cap {
	color: #e6e8ee; font-size: 0.9rem; text-align: center; max-width: 60ch;
}
.ww-lightbox-cap[hidden] { display: none; }
.ww-lightbox-close {
	position: absolute; top: 16px; right: 16px;
	width: 44px; height: 44px; display: flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; cursor: pointer;
	background: rgba(255, 255, 255, 0.12); color: #fff;
}
.ww-lightbox-close:hover { background: rgba(255, 255, 255, 0.22); }
@media (prefers-reduced-motion: no-preference) {
	.ww-lightbox { animation: ww-lb-fade 0.16s ease-out; }
	@keyframes ww-lb-fade { from { opacity: 0; } to { opacity: 1; } }
}
