/* ═══════════════════════════════════════════════════════════════════════
   GRAPHITE — the public site in the dashboard's dark glass theme
   ───────────────────────────────────────────────────────────────────────
   Loaded after site.css on every public page (landing, pricing, FAQ,
   privacy, terms, refund — AR + EN). Same ground, ink, glass and controls
   as the dashboard (src/styles/graphite.css), so the whole product reads
   as one platform:
     • ground     graphite and black (liquid-graphite.jpg), soft vignette
     • sections   every card / panel is its own glass container with a
                  defined rim, inner highlight and deep shadow
     • controls   thick glass capsules; fields are sunken wells
   The WebGL stage (glass-stage.js) draws the same pill glass on top.
═══════════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;

  /* ink */
  --ink-1: #F2F4F7;
  --ink-2: #C9CDD4;
  --ink-3: #A9AEB7;
  --ink-4: #8E939C;
  --on-accent: #FFFFFF;

  /* system colours, text-safe on a dark ground */
  --accent-rgb: 92 152 255;
  --accent-hover: rgb(116 168 255);
  --accent-press: rgb(72 132 240);
  --accent-ink: #9EC2FF;
  --accent-soft: rgb(var(--accent-rgb) / 0.16);
  --success-rgb: 70 196 128;  --success-ink: #7FE0A8;
  --danger-rgb: 229 72 77;    --danger-ink: #FF9A9E;
  --warning-rgb: 236 166 72;  --warning-ink: #F2C27E;
  --info-rgb: 70 180 214;     --info-ink: #8FD8EE;
  --violet-rgb: 156 132 255;  --violet-ink: #C4B5FF;

  /* fills & separators */
  --fill-rgb: 200 206 216;
  --fill-1: rgb(255 255 255 / 0.05);
  --fill-2: rgb(255 255 255 / 0.08);
  --fill-3: rgb(255 255 255 / 0.1);
  --separator: rgb(255 255 255 / 0.09);
  --separator-strong: rgb(255 255 255 / 0.16);
  --scrim: rgb(0 0 0 / 0.55);

  /* glass (dashboard values) */
  --canvas: rgb(255 255 255 / 0);
  --card: rgb(255 255 255 / 0.03);
  --card-solid: rgb(255 255 255 / 0.03);
  --surface-solid: rgb(24 26 30);
  --glass-body: linear-gradient(180deg, rgb(255 255 255 / 0.075), rgb(255 255 255 / 0.028));
  --glass-hue: linear-gradient(135deg, rgb(150 180 255 / 0.04), rgb(255 255 255 / 0) 50%, rgb(255 205 160 / 0.025));
  --glass-streak: linear-gradient(118deg, rgb(255 255 255 / 0) 16%, rgb(255 255 255 / 0.035) 28%, rgb(255 255 255 / 0) 40%);
  --glass-sheen: var(--glass-streak), var(--glass-body), var(--glass-hue);
  --glass-border: rgb(255 255 255 / 0.12);
  --glass-ring: linear-gradient(150deg, rgb(255 255 255 / 0.46), rgb(255 255 255 / 0.09) 30%, rgb(255 255 255 / 0.03) 62%, rgb(255 255 255 / 0.22));
  --glass-rims: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 -1px 0 rgb(255 255 255 / 0.04), inset 0 0 28px rgb(255 255 255 / 0.025);
  --glass-rims-soft: inset 0 1px 0 rgb(255 255 255 / 0.12), inset 0 0 0 1px rgb(255 255 255 / 0.07);
  --glass-drop: 0 2px 6px rgb(0 0 0 / 0.35), 0 24px 48px -26px rgb(0 0 0 / 0.9);
  --glass-tone: saturate(140%) brightness(0.92);
  --glass-heavy: blur(26px) saturate(150%);
  --glass-float: rgb(26 28 33 / 0.74);
  --glass-rim: rgb(255 255 255 / 0.3);

  /* elevation */
  --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 0.35), 0 12px 28px -14px rgb(0 0 0 / 0.8);
  --shadow-3: 0 6px 16px rgb(0 0 0 / 0.4), 0 28px 56px -22px rgb(0 0 0 / 0.9);

  /* glass controls (dashboard controls.css values) */
  --gc-edge: rgb(255 255 255 / 0.1);
  --gc-lift: 0 10px 20px -12px rgb(0 0 0 / 0.85);
  --gc-bevel:
    inset 0 1.5px 0.5px rgb(255 255 255 / 0.34),
    inset 0 -1.5px 1px rgb(255 255 255 / 0.1),
    inset 0 0 14px 1px rgb(255 255 255 / 0.06),
    inset 0 -9px 12px -9px rgb(0 0 0 / 0.55);
  --gc-hover-fill: rgb(255 255 255 / 0.08);
  --gc-selected-fill: linear-gradient(180deg, rgb(255 255 255 / 0.2), rgb(255 255 255 / 0.08));
  --gc-inset: inset 3px 3px 6px rgb(0 0 0 / 0.35), inset 0 -2px 6px rgb(255 255 255 / 0.12);
  --gc-glow: 0 0 8px rgb(255 255 255 / 0.35);
}

/* ── ground ────────────────────────────────────────────────────────── */
html { background: #0A0B0D; }
body::before { background: #0A0B0D url("/liquid-graphite.jpg") center / cover no-repeat; }
body::after { background: radial-gradient(130% 90% at 50% 0%, rgb(0 0 0 / 0), rgb(0 0 0 / 0.28)); }
::selection { background: rgb(var(--accent-rgb) / 0.35); }

/* ── floating glass (nav capsule, mobile menu, lead dialog) ───────── */
[data-glass="float"] {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.08), rgb(255 255 255 / 0.02)), var(--glass-float);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(150%) brightness(0.9);
  backdrop-filter: blur(var(--glass-blur)) saturate(150%) brightness(0.9);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.16), inset 0 0 0 1px rgb(255 255 255 / 0.07), var(--shadow-3);
}
html[data-lens="on"] [data-glass="float"][data-lens-id] {
  -webkit-backdrop-filter: var(--lg-lens) blur(var(--glass-blur)) saturate(150%) brightness(0.9);
  backdrop-filter: var(--lg-lens) blur(var(--glass-blur)) saturate(150%) brightness(0.9);
}
[data-glass="float"]::before { background: radial-gradient(240px circle at var(--lg-px, 50%) var(--lg-py, -40%), rgb(255 255 255 / 0.12), transparent 62%); }
[data-glass="float"]::after { background: linear-gradient(180deg, rgb(255 255 255 / 0.32), rgb(255 255 255 / 0.06) 45%, rgb(255 255 255 / 0.14)); }

/* ── light fills from the light theme → dark glass steps ──────────── */
.nav-links a:hover,
body > nav :is(.back-link, .lang-link, .lang-switch):hover,
.nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary):hover,
.cx-tab:hover, .tab-btn:hover, .acc-head:hover, .faq-item summary:hover { background: rgb(255 255 255 / 0.06); }
.nav-links a.active, .nav-links a[aria-current="page"], .nav-mobile-panel a.active { background: var(--gc-selected-fill); }
body > nav :is(.lang-link, .lang-switch),
.nav-mobile-panel .btn-nav-secondary { background: rgb(255 255 255 / 0.05); }
.btn-secondary, .btn-nav-secondary, .nav-burger, .lead-close { background: rgb(255 255 255 / 0.04); }

.hero-badge, .pricing-hero-badge, .platforms-bar, .platform-badge, .eyebrow-chip, .section-eyebrow,
.footer-badge, .footer-social a, .empty-icon, .seg-chips, .cx-tabs, .cx-cap, .search-input {
  background-color: rgb(255 255 255 / 0.04);
  background-image: var(--glass-body);
  box-shadow: var(--glass-rims-soft), var(--shadow-1);
}
.cx-cap.lit { background: rgb(var(--success-rgb) / 0.14); color: var(--success-ink); box-shadow: inset 0 0 0 1px rgb(var(--success-rgb) / 0.3); }

/* cards: the same glass container as the dashboard sections */
.wrap { --card: rgb(255 255 255 / 0.03); }
.feature-card:hover { box-shadow: var(--glass-rims), 0 0 0 1px rgb(255 255 255 / 0.1), var(--shadow-3); }
.pricing-card.popular {
  background: var(--glass-sheen), rgb(var(--accent-rgb) / 0.07);
  box-shadow: var(--glass-rims), 0 0 0 1.5px rgb(var(--accent-rgb) / 0.6), 0 18px 40px -18px rgb(var(--accent-rgb) / 0.5);
}
.wrap :is(.intro, .toc) { background: var(--glass-body), rgb(255 255 255 / 0.02); box-shadow: var(--glass-rims-soft); }
.band, footer { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.1), inset 0 0 0 1px rgb(255 255 255 / 0.05); }

/* type on glass: no white halo on a dark ground */
:is(.band, .wrap, footer) :is(h1, h2, h3, .section-title),
:is(.feature-card, .pricing-card, .integration-card, .testimonial-card, .custom-step, .how-step) :is(h3, h4) { text-shadow: none; }

/* chat demo */
.chat-header { background: var(--glass-body), rgb(255 255 255 / 0.02); }
.chat-messages { background: radial-gradient(circle at 1px 1px, rgb(255 255 255 / 0.05) 1px, transparent 0) 0 0 / 18px 18px, rgb(0 0 0 / 0.16); }
.msg-in { background: var(--glass-body), rgb(255 255 255 / 0.05); box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.14), 0 0 0 0.5px rgb(255 255 255 / 0.1), var(--shadow-1); }
.msg-out { background: rgb(var(--accent-rgb) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.24); }

/* tables */
.pricing-compare-table th { background: var(--glass-body), rgb(30 32 37 / 0.92); }
.pricing-compare-table tbody tr:not(.pricing-cat-row):hover { background: rgb(255 255 255 / 0.03); }

/* fields: sunken glass wells */
.search-input, .lead-field {
  background: rgb(0 0 0 / 0.3);
  border: 1px solid rgb(255 255 255 / 0.08);
  box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.35), inset 0 -1px 0 rgb(255 255 255 / 0.06);
  color: var(--ink-1);
}
.lead-field:focus { background: rgb(0 0 0 / 0.36); }
.search-input:focus { box-shadow: inset 0 2px 6px rgb(0 0 0 / 0.35), 0 0 0 2px rgb(var(--accent-rgb) / 0.7), 0 0 0 6px rgb(var(--accent-rgb) / 0.14); }
::placeholder { color: var(--ink-4); }

/* glass controls: thick capsules, colour only as a faint tint */
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-card.popular .pricing-cta) {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.03)), var(--gc-tint, transparent);
}
.btn-nav, .btn-primary, .grad-btn, .pricing-card.popular .pricing-cta { --gc-tint: rgb(var(--accent-rgb) / 0.2); --gc-tint-hover: rgb(var(--accent-rgb) / 0.28); --gc-edge-tone: rgb(var(--accent-rgb) / 0.4); }
.btn-whatsapp { --gc-tint: rgb(var(--success-rgb) / 0.18); --gc-tint-hover: rgb(var(--success-rgb) / 0.26); --gc-edge-tone: rgb(var(--success-rgb) / 0.4); }
.pricing-cta { background: rgb(var(--accent-rgb) / 0.12); }
@media (hover: hover) {
  :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch)):hover {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.14), rgb(255 255 255 / 0.05)), var(--gc-tint-hover, var(--gc-hover-fill));
  }
}
:is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch), .seg-chips, .cx-tabs)::before {
  background: linear-gradient(177deg, rgb(255 255 255 / 0.34), rgb(255 255 255 / 0.08) 50%, rgb(255 255 255 / 0.2));
}
:is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)):is(.active, [aria-current="page"])::after {
  background: radial-gradient(100% 80% at 0 0, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.1) 82%, transparent);
}
[dir="rtl"] :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a):is(.active, [aria-current="page"])::after {
  background: radial-gradient(100% 80% at 100% 0, rgb(255 255 255 / 0.4), rgb(255 255 255 / 0.1) 82%, transparent);
}
.tab-btn.active { background: var(--gc-selected-fill); color: var(--ink-1); box-shadow: var(--gc-inset); }
.cx-tab .cx-progress { background: rgb(255 255 255 / 0.18); }

/* ── accessibility media (were light values) ──────────────────────── */
@media (prefers-reduced-transparency: reduce) {
  :root { --card: rgb(30 32 37 / 0.92); --canvas: rgb(20 22 26 / 0.6); --glass-float: rgb(24 26 31 / 0.96); }
  .wrap { --card: rgb(30 32 37 / 0.94); }
  body::after { background: rgb(10 11 13 / 0.5); }
}
@media (prefers-contrast: more) {
  :root { --ink-2: #E2E5EA; --ink-3: #CDD1D8; --separator: rgb(255 255 255 / 0.3); }
  body::after { background: rgb(10 11 13 / 0.8); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .band, footer, .wrap { background: var(--glass-body), rgb(24 26 31 / 0.9); }
  :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step) { background: var(--glass-body), rgb(30 32 37 / 0.92); }
}

/* ═══ PERFORMANCE — same rules as the dashboard (src/styles/perf.css) ═══
   Smooth scrolling runs on the main thread, so nothing that moves may make
   the browser re-blur or re-shadow every frame. */
*, *::before, *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
:is(body > nav, .nav-mobile-panel, .lead-overlay [data-glass="float"], [role="dialog"]:not(.lead-overlay)) {
  -webkit-backdrop-filter: blur(12px) saturate(140%) !important;
  backdrop-filter: blur(12px) saturate(140%) !important;
}
/* without the WebGL stage: a semi-opaque tint instead of the blur */
html:not([data-stage="on"]) :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap, .wrap) {
  background-color: rgb(30 32 38 / 0.5);
}
html:not([data-stage="on"]) [data-glass="float"] { background-color: rgb(24 26 31 / 0.9); }
/* the environment: its own fixed, composited layer */
body::before, body::after { transform: translateZ(0); }
/* smaller shadow blur radii */
:root {
  --glass-drop: 0 2px 6px rgb(0 0 0 / 0.35), 0 12px 20px -12px rgb(0 0 0 / 0.75);
  --shadow-2: 0 2px 6px rgb(0 0 0 / 0.35), 0 8px 16px -10px rgb(0 0 0 / 0.7);
  --shadow-3: 0 4px 10px rgb(0 0 0 / 0.38), 0 14px 24px -14px rgb(0 0 0 / 0.8);
}
/* only transform / opacity (and colour fades) transition */
*, *::before, *::after {
  transition-property: transform, opacity, color, background-color, border-color, outline-color, fill, stroke, text-decoration-color !important;
}
/* (the comparison table renders normally: rendering it only as it came into
   view changed the page's length near the bottom and cost one long frame) */
/* low power (slow frames) / no graphics card: no blur at all, light shadows */
html:is(.low-power, [data-gpu]) *, html:is(.low-power, [data-gpu]) *::before, html:is(.low-power, [data-gpu]) *::after { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html:is(.low-power, [data-gpu]) { --glass-drop: 0 1px 3px rgb(0 0 0 / 0.4); --shadow-2: 0 1px 3px rgb(0 0 0 / 0.4); --shadow-3: 0 2px 8px rgb(0 0 0 / 0.45); }

/* ═══════════════════════════════════════════════════════════════════════
   WHITE — html[data-theme="white"] (chosen in the dashboard's account
   settings; the same values as src/styles/white.css). Same structure as
   Night: every card a glass container with defined edges, capsule controls,
   sunken fields — on a sky-blue liquid ground (the old wallpaper) with bright glass.
═══════════════════════════════════════════════════════════════════════ */
html[data-theme="white"] {
  color-scheme: light;
  --ink-1: #14171C; --ink-2: #3A404A; --ink-3: #5A616C; --ink-4: #78808B;
  --accent-rgb: 22 104 227; --accent-hover: rgb(17 91 204); --accent-press: rgb(14 80 182);
  --accent-ink: #0B4FB8; --accent-soft: rgb(var(--accent-rgb) / 0.1);
  --success-rgb: 22 142 92;  --success-ink: #0A6B42;
  --danger-rgb: 214 48 49;   --danger-ink: #B3261E;
  --warning-rgb: 214 128 6;  --warning-ink: #8A5000;
  --info-rgb: 8 132 168;     --info-ink: #05627E;
  --violet-rgb: 112 84 222;  --violet-ink: #5C40C4;
  --fill-rgb: 92 104 124;
  --fill-1: rgb(20 24 32 / 0.04); --fill-2: rgb(20 24 32 / 0.065); --fill-3: rgb(20 24 32 / 0.09);
  --separator: rgb(20 24 32 / 0.1); --separator-strong: rgb(20 24 32 / 0.16);
  --scrim: rgb(15 18 24 / 0.32);
  --canvas: rgb(255 255 255 / 0);
  --card: rgb(255 255 255 / 0.55); --card-solid: rgb(255 255 255 / 0.55);
  --surface-solid: #FFFFFF;
  --glass-body: linear-gradient(180deg, rgb(255 255 255 / 0.55), rgb(255 255 255 / 0.22));
  --glass-hue: linear-gradient(135deg, rgb(200 214 240 / 0.12), rgb(255 255 255 / 0) 50%, rgb(255 236 220 / 0.08));
  --glass-streak: linear-gradient(118deg, rgb(255 255 255 / 0) 16%, rgb(255 255 255 / 0.35) 28%, rgb(255 255 255 / 0) 40%);
  --glass-sheen: var(--glass-streak), var(--glass-body), var(--glass-hue);
  --glass-border: rgb(20 24 32 / 0.08);
  --glass-ring: linear-gradient(150deg, rgb(255 255 255 / 1), rgb(255 255 255 / 0.5) 30%, rgb(20 24 32 / 0.06) 62%, rgb(255 255 255 / 0.7));
  --glass-rims: inset 0 1px 0 rgb(255 255 255 / 0.95), inset 0 -1px 0 rgb(20 24 32 / 0.05), inset 0 0 0 1px rgb(255 255 255 / 0.45);
  --glass-rims-soft: inset 0 1px 0 rgb(255 255 255 / 0.9), inset 0 0 0 1px rgb(20 24 32 / 0.06);
  --glass-drop: 0 1px 2px rgb(20 24 32 / 0.06), 0 12px 24px -14px rgb(20 24 32 / 0.22);
  --glass-tone: saturate(120%) brightness(1.04);
  --glass-heavy: blur(26px) saturate(160%);
  --glass-float: rgb(250 251 252 / 0.86);
  --glass-rim: rgb(255 255 255 / 0.95);
  --shadow-1: 0 1px 2px rgb(20 24 32 / 0.08);
  --shadow-2: 0 2px 6px rgb(20 24 32 / 0.06), 0 8px 16px -10px rgb(20 24 32 / 0.2);
  --shadow-3: 0 4px 10px rgb(20 24 32 / 0.08), 0 14px 24px -14px rgb(20 24 32 / 0.28);
  --gc-edge: rgb(20 24 32 / 0.1);
  --gc-lift: 0 6px 14px -10px rgb(20 24 32 / 0.35);
  --gc-bevel: inset 0 1.5px 0.5px rgb(255 255 255 / 0.95), inset 0 -1.5px 1px rgb(255 255 255 / 0.55), inset 0 0 10px 1px rgb(255 255 255 / 0.35), inset 0 -8px 12px -9px rgb(20 24 32 / 0.14);
  --gc-hover-fill: rgb(20 24 32 / 0.04);
  --gc-selected-fill: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.7));
  --gc-inset: inset 2px 2px 5px rgb(20 24 32 / 0.1), inset 0 -2px 6px rgb(255 255 255 / 0.6);
  --gc-glow: 0 0 6px rgb(255 255 255 / 0.9);
}
html[data-theme="white"]:is(.low-power, [data-gpu]) { --glass-drop: 0 1px 3px rgb(20 24 32 / 0.12); --shadow-2: 0 1px 3px rgb(20 24 32 / 0.12); --shadow-3: 0 2px 8px rgb(20 24 32 / 0.16); }

/* ground: the same flowing liquid as Night, in sky blue */
html[data-theme="white"] { background: #9fb2e4; }
html[data-theme="white"] body::before { background: #9fb2e4 url("/liquid-light-v2.jpg") center / cover no-repeat; }
html[data-theme="white"] body::after {
  background:
    radial-gradient(120% 70% at 50% 0%, rgb(248 250 253 / 0.42), rgb(248 250 253 / 0.1) 70%),
    linear-gradient(180deg, rgb(244 248 252 / 0.28), rgb(238 243 249 / 0.4));
}
html[data-theme="white"] ::selection { background: rgb(var(--accent-rgb) / 0.2); }

/* floating glass */
html[data-theme="white"] [data-glass="float"] {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.7), rgb(255 255 255 / 0.45)), var(--glass-float);
  box-shadow: inset 0 1px 0 #FFFFFF, inset 0 0 0 1px rgb(20 24 32 / 0.06), var(--shadow-3);
}
html[data-theme="white"] [data-glass="float"]::before { background: radial-gradient(240px circle at var(--lg-px, 50%) var(--lg-py, -40%), rgb(255 255 255 / 0.55), transparent 62%); }
html[data-theme="white"] [data-glass="float"]::after { background: linear-gradient(180deg, rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.25) 45%, rgb(255 255 255 / 0.55)); }

/* fills */
html[data-theme="white"] :is(.nav-links a:hover, body > nav :is(.back-link, .lang-link, .lang-switch):hover, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary):hover, .cx-tab:hover, .tab-btn:hover, .acc-head:hover, .faq-item summary:hover) { background: rgb(20 24 32 / 0.04); }
html[data-theme="white"] :is(body > nav :is(.lang-link, .lang-switch), .nav-mobile-panel .btn-nav-secondary, .btn-secondary, .btn-nav-secondary, .nav-burger, .lead-close) { background: rgb(255 255 255 / 0.5); }
html[data-theme="white"] :is(.hero-badge, .pricing-hero-badge, .platforms-bar, .platform-badge, .eyebrow-chip, .section-eyebrow, .footer-badge, .footer-social a, .empty-icon, .seg-chips, .cx-tabs, .cx-cap) {
  background-color: rgb(255 255 255 / 0.55);
}
html[data-theme="white"] .cx-cap.lit { background: rgb(var(--success-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--success-rgb) / 0.24); }

/* cards */
html[data-theme="white"] .wrap { --card: rgb(255 255 255 / 0.6); }
html[data-theme="white"] .feature-card:hover { box-shadow: var(--glass-rims), 0 0 0 1px rgb(20 24 32 / 0.06), var(--shadow-3); }
html[data-theme="white"] .pricing-card.popular {
  background: var(--glass-sheen), rgb(var(--accent-rgb) / 0.06);
  box-shadow: var(--glass-rims), 0 0 0 1.5px rgb(var(--accent-rgb) / 0.55), 0 18px 40px -18px rgb(var(--accent-rgb) / 0.35);
}
html[data-theme="white"] .wrap :is(.intro, .toc) { background: var(--glass-body), rgb(255 255 255 / 0.3); }
html[data-theme="white"] :is(.band, footer) { box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.7), inset 0 0 0 1px rgb(255 255 255 / 0.4); }

/* chat demo */
html[data-theme="white"] .chat-header { background: var(--glass-body), rgb(255 255 255 / 0.3); }
html[data-theme="white"] .chat-messages { background: radial-gradient(circle at 1px 1px, rgb(20 24 32 / 0.05) 1px, transparent 0) 0 0 / 18px 18px, rgb(255 255 255 / 0.25); }
html[data-theme="white"] .msg-in { background: var(--glass-body), rgb(255 255 255 / 0.8); box-shadow: inset 0 1px 0 #FFFFFF, 0 0 0 0.5px rgb(20 24 32 / 0.08), var(--shadow-1); }
html[data-theme="white"] .msg-out { background: rgb(var(--accent-rgb) / 0.1); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.16); }

/* tables */
html[data-theme="white"] .pricing-compare-table th { background: var(--glass-body), rgb(248 249 251 / 0.95); }
html[data-theme="white"] .pricing-compare-table tbody tr:not(.pricing-cat-row):hover { background: rgb(20 24 32 / 0.03); }

/* fields: sunken wells of bright glass */
html[data-theme="white"] :is(.search-input, .lead-field) {
  background: rgb(255 255 255 / 0.75);
  border: 1px solid rgb(20 24 32 / 0.12);
  box-shadow: inset 0 1px 2px rgb(20 24 32 / 0.08), inset 0 -1px 0 rgb(255 255 255 / 0.8);
}
html[data-theme="white"] .lead-field:focus { background: #FFFFFF; }
html[data-theme="white"] .search-input:focus { box-shadow: inset 0 1px 2px rgb(20 24 32 / 0.08), 0 0 0 2px rgb(var(--accent-rgb) / 0.7), 0 0 0 6px rgb(var(--accent-rgb) / 0.12); }

/* glass controls */
html[data-theme="white"] :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-card.popular .pricing-cta) {
  background: linear-gradient(180deg, rgb(255 255 255 / 0.75), rgb(255 255 255 / 0.4)), var(--gc-tint, transparent);
}
html[data-theme="white"] :is(.btn-nav, .btn-primary, .grad-btn, .pricing-card.popular .pricing-cta) { --gc-tint: rgb(var(--accent-rgb) / 0.12); --gc-tint-hover: rgb(var(--accent-rgb) / 0.18); --gc-edge-tone: rgb(var(--accent-rgb) / 0.3); }
html[data-theme="white"] .btn-whatsapp { --gc-tint: rgb(var(--success-rgb) / 0.12); --gc-tint-hover: rgb(var(--success-rgb) / 0.18); --gc-edge-tone: rgb(var(--success-rgb) / 0.32); }
html[data-theme="white"] .pricing-cta { background: rgb(var(--accent-rgb) / 0.1); }
@media (hover: hover) {
  html[data-theme="white"] :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch)):hover {
    background: linear-gradient(180deg, rgb(255 255 255 / 0.85), rgb(255 255 255 / 0.5)), var(--gc-tint-hover, var(--gc-hover-fill));
  }
}
html[data-theme="white"] :is(.btn-nav, .btn-primary, .grad-btn, .btn-whatsapp, .pricing-cta, .btn-nav-secondary, .btn-secondary, .nav-burger, .footer-social a, .lead-close, .pricing-toggle, body > nav :is(.back-link, .lang-link, .lang-switch), .seg-chips, .cx-tabs)::before {
  background: linear-gradient(177deg, rgb(255 255 255 / 0.95), rgb(20 24 32 / 0.08) 50%, rgb(255 255 255 / 0.7));
}
html[data-theme="white"] :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a:not(.btn-nav):not(.btn-nav-secondary)):is(.active, [aria-current="page"])::after {
  background: radial-gradient(100% 80% at 0 0, rgb(255 255 255 / 1), rgb(255 255 255 / 0.4) 82%, transparent);
}
html[data-theme="white"][dir="rtl"] :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a):is(.active, [aria-current="page"])::after,
html[data-theme="white"] [dir="rtl"] :is(.tab-btn, .cx-tab, .nav-links a, .nav-mobile-panel a):is(.active, [aria-current="page"])::after {
  background: radial-gradient(100% 80% at 100% 0, rgb(255 255 255 / 1), rgb(255 255 255 / 0.4) 82%, transparent);
}
html[data-theme="white"] .cx-tab .cx-progress { background: rgb(var(--accent-rgb) / 0.14); }

/* without the WebGL stage (always, in lite): a semi-opaque white tint instead of blur */
html[data-theme="white"]:not([data-stage="on"]) :is(.feature-card, .integration-card, .testimonial-card, .pricing-card, .pricing-addon-card, .faq-item, .acc-item, .faq-cta, .custom-step, .intro, .toc, .chat-demo, .cx-chat, .how-step, .hero-stats, .platforms-bar, .pricing-compare-wrap, .wrap) {
  background-color: rgb(255 255 255 / 0.55);
}
html[data-theme="white"]:not([data-stage="on"]) [data-glass="float"] { background-color: rgb(250 251 252 / 0.92); }

@media (prefers-reduced-transparency: reduce) {
  html[data-theme="white"] { --card: rgb(255 255 255 / 0.92); --glass-float: rgb(250 251 252 / 0.97); }
  html[data-theme="white"] body::after { background: rgb(243 244 246 / 0.6); }
}
@media (prefers-contrast: more) {
  html[data-theme="white"] { --ink-2: #262B33; --ink-3: #3A404A; --separator: rgb(20 24 32 / 0.3); }
}
