/* Theme layer (loaded last): dark-mode foundation, plan cards + billing toggle, header theme button, modern footer, device mockups, ambient motion.
   Everything uses the site tokens (--x-*, --brand, --mint) so light and dark stay consistent. */

:root { --brand: #0a7f69; --brand-2: #12b886; --sky: #3b82f6; --ux-ease: cubic-bezier(.22, .8, .2, 1); }
html.dark { --brand: #34e3be; --brand-2: #6fe9cf; }

/* ------------------------------------------------------------------ dark foundation */
/* the template colours text per element; our own sections inherit — so the base colour must follow the theme */
html.dark body { color: var(--x-text, #f1f5fb); }
html:not(.dark) body { color: var(--x-text, #0b1220); }
html.dark .x-sec-head p, html.dark .d-head p, html.dark .x-marquee-cap, html.dark .x-fine, html.dark .d-note { color: var(--x-dim); }
html.dark .x-sec-head h2, html.dark .d-head h2, html.dark h1, html.dark h2, html.dark h3 { color: var(--x-text); }
html.dark .x-fcard h3, html.dark .x-fcard p { color: inherit; }
html.dark .x-fcard p { color: var(--x-dim); }
html.dark .x-mt-p, html.dark .x-mt-price { background: var(--x-card-2); color: var(--x-text); }
html.dark .d-formula, html.dark .d-tpl, html.dark .d-send-h .d-state { background: var(--x-card-2); color: var(--x-text); }
html.dark .d-state { color: var(--mint, #34e3be); }
html.dark .hx-cap, html.dark .x-note { color: #cfe7df; }
html.dark .x-tab { background: rgb(255 255 255 / .06); color: #d7e3ee; border-color: rgb(255 255 255 / .12); }
html.dark .x-tab[aria-selected="true"] { background: rgb(52 227 190 / .16); color: #fff; border-color: rgb(52 227 190 / .5); }
html.dark .x-tab-tx { color: inherit; }

/* ------------------------------------------------------------------ billing toggle + plan cards */
.x-bill { display: flex; width: max-content; max-width: 100%; margin: 0 auto 60px; gap: 4px; padding: 5px; border-radius: 999px; border: 1px solid var(--x-line); background: var(--x-card); box-shadow: 0 14px 34px -24px rgb(11 18 32 / .4); }
.x-bill button { display: inline-flex; align-items: center; gap: 8px; padding: 10px 22px; border: 0; border-radius: 999px; background: transparent; color: var(--x-dim); font: inherit; font-weight: 700; cursor: pointer; transition: background .25s var(--ux-ease), color .25s, box-shadow .25s; }
.x-bill button:hover { color: var(--x-text); }
.x-bill button.is-on { background: linear-gradient(135deg, #0a7f69, #12b886); color: #fff; box-shadow: 0 10px 22px -10px rgb(10 143 114 / .7); }
.x-bill-save { font-size: .72rem; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #fde68a; color: #7a4b00; white-space: nowrap; }
.x-bill button.is-on .x-bill-save { background: rgb(255 255 255 / .24); color: #fff; }
@media (max-width: 480px) { .x-bill button { padding: 9px 14px; font-size: .9rem; } .x-bill-save { display: none; } .x-bill button[data-billing="yearly"]::after { content: "-50%+"; font-size: .7rem; font-weight: 800; padding: 2px 7px; border-radius: 99px; background: #fde68a; color: #7a4b00; } .x-bill button.is-on[data-billing="yearly"]::after { background: rgb(255 255 255 / .24); color: #fff; } }

.x-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; align-items: stretch; }   /* four plans: one row on a wide screen */
@media (max-width: 1199.98px) { .x-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; } }
@media (max-width: 699.98px) { .x-plans { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 34px; } }
.x-plan { position: relative; display: flex; flex-direction: column; padding: 30px 26px 26px; border-radius: 26px; background: var(--x-card); border: 1px solid var(--x-line); color: var(--x-text);
  box-shadow: 0 26px 54px -40px rgb(11 18 32 / .4); transition: transform .35s var(--ux-ease), box-shadow .35s; }
.x-plan:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -38px rgb(11 18 32 / .5); }
.dark .x-plan:not(.is-hl) { background: var(--x-card) !important; border-color: var(--x-line) !important; }
.x-plan.is-hl { border: 2px solid transparent; z-index: 2;
  background: linear-gradient(var(--x-card), var(--x-card)) padding-box, linear-gradient(120deg, #0a7f69, #34e3be, #3b82f6, #12b886, #0a7f69) border-box; background-size: auto, 300% 300%;
  box-shadow: 0 44px 90px -44px rgb(10 143 114 / .6), 0 0 0 6px rgb(52 227 190 / .08); }
@media (min-width: 1024px) { .x-plan.is-hl { transform: translateY(-16px) scale(1.035); padding-block: 42px 30px; } .x-plan.is-hl:hover { transform: translateY(-20px) scale(1.035); } }
.x-plan-logos .x-plan-more { display: flex; align-items: center; justify-content: center; min-width: 52px; width: auto; height: 38px; padding: 0 10px; border: 1px dashed #0a8f6e; border-radius: 12px; background: rgb(10 143 110 / .06); color: #0a7f69; font-size: .8rem; font-weight: 800; white-space: nowrap; }
/* five plans: three in the first row and two wider below, so no card is thin (the six-column grid lets the lower two take half each) */
.x-plans-5 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; }
.x-plans-5 > * { grid-column: span 2; }
.x-plans-5 > :nth-child(n+4) { grid-column: span 3; }
@media (min-width: 900px) { .x-plans-5 > :nth-child(n+4) .x-pf { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; align-items: start; } }
@media (max-width: 899.98px) { .x-plans-5 > * , .x-plans-5 > :nth-child(n+4) { grid-column: span 3; } .x-plans-5 > :nth-child(5) { grid-column: span 6; } }
@media (max-width: 699.98px) { .x-plans-5 { grid-template-columns: minmax(0, 1fr); max-width: 520px; margin-inline: auto; gap: 34px; } .x-plans-5 > * { grid-column: auto !important; } }
.x-plan-logos .x-brand-t { width: auto; min-width: 52px; padding: 0 10px; font-size: .74rem; font-weight: 700; color: #475569; white-space: nowrap; }
.x-incl-l > span { display: inline-grid; place-items: center; height: 38px; min-width: 52px; padding: 0 8px; border: 1px solid var(--x-line); border-radius: 12px; background: #fff; }
.x-incl-l > span img { height: 22px; width: auto; max-width: 44px; object-fit: contain; }
.x-incl-l > .x-brand-t { font-size: .74rem; font-weight: 700; color: #475569; white-space: nowrap; }
.x-incl-l .x-plan-more { display: flex; align-items: center; justify-content: center; min-width: 52px; height: 38px; padding: 0 10px; border: 1px dashed #0a8f6e; border-radius: 12px; background: rgb(10 143 110 / .06); color: #0a7f69; font-size: .8rem; font-weight: 800; white-space: nowrap; text-decoration: none; }
.x-chhub { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; } @media (max-width: 1399.98px) { .x-chhub { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1099.98px) { .x-chhub { grid-template-columns: repeat(2, minmax(0, 1fr)); } } @media (max-width: 599.98px) { .x-chhub { grid-template-columns: minmax(0, 1fr); } }
.x-chcard { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid rgba(255, 255, 255, .9); color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 18px 40px -22px rgb(16 24 40 / .18); transition: transform .3s, box-shadow .3s; }
.x-chcard:hover { transform: translateY(-5px); box-shadow: 0 34px 60px -38px rgb(11 18 32 / .5); } .x-chcard.is-live { outline: 1.5px solid rgb(10 143 110 / .35); }
.x-chcard-top { display: flex; align-items: center; justify-content: space-between; }
.x-chcard-logo { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; border: 1px solid var(--x-line); background: #fff; }
.x-chcard-tag { padding: 4px 12px; border-radius: 99px; background: rgb(245 158 11 / .14); color: #b45309; font-size: .76rem; font-weight: 800; } .x-chcard.is-live .x-chcard-tag { background: rgb(18 184 134 / .16); color: #0a7f69; }
.x-chcard h3 { margin: 0; font-size: 1.3rem; font-weight: 800; } .x-chcard p { margin: 0; color: var(--x-dim); font-size: .92rem; line-height: 1.65; }
.x-chcard-go { margin-top: auto; color: #0a7f69; font-weight: 800; font-size: .9rem; }
.x-chans { display: flex; gap: 8px; flex-wrap: wrap; margin: 2px 0 4px; }
.x-chan { display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid var(--x-line); border-radius: 16px; background: #fff; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.x-chan:hover { transform: translateY(-2px); border-color: #0a8f6e; } .x-chan[aria-expanded="true"] { border-color: #0a8f6e; box-shadow: 0 10px 22px -12px rgb(10 143 110 / .8); background: rgb(10 143 110 / .06); }
.x-chan img { width: 28px; height: 28px; object-fit: contain; }
.x-chan-hint { margin: 6px 0 0; font-size: .78rem; color: var(--x-dim); }
.x-chan-d { margin-top: 10px; padding: 14px; border-radius: 16px; background: #f8fafc; border: 1px solid var(--x-line); } .x-chan-d .x-pf-h { margin-top: 0; }
.x-plan-logos { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 4px; }
.x-plan-logos span { display: grid; place-items: center; width: 52px; height: 38px; border: 1px solid var(--x-line); border-radius: 12px; background: #fff; }
.x-plan-logos img { width: 40px; height: 24px; object-fit: contain; }
.x-plan-more-t::before { content: '+'; margin-inline-end: 3px; }
.x-plan-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 24px 56px; }
.x-plan-wide-l { display: flex; flex-direction: column; } .x-plan-wide-l .x-plan-cta { margin-top: auto; }
.x-plan-wide .x-pf { columns: 2; column-gap: 28px; } .x-plan-wide .x-pf li { break-inside: avoid; }
@media (max-width: 899.98px) { .x-plan-wide { grid-template-columns: minmax(0, 1fr); } .x-plan-wide .x-pf { columns: 1; } }
.x-plan-ribbon { position: absolute; inset-block-start: -15px; left: 50%; transform: translateX(-50%); padding: 7px 18px; border-radius: 99px; background: linear-gradient(90deg, #0a7f69, #12b886); color: #fff; font-size: .8rem; font-weight: 800; white-space: nowrap; box-shadow: 0 12px 24px -10px rgb(10 143 114 / .8); }
.x-plan-h h3 { margin: 0; display: inline; font-size: 1.4rem; font-weight: 800; }
.x-plan-draft { margin-inline-start: 10px; padding: 2px 9px; border-radius: 99px; background: rgb(245 158 11 / .16); color: #b45309; font-size: .7rem; font-weight: 700; vertical-align: middle; }
html.dark .x-plan-draft { color: #fbbf24; }
.x-plan-h p { margin: 10px 0 0; min-height: 3.2em; color: var(--x-dim); font-size: .93rem; line-height: 1.65; }
.x-plan-price { margin: 18px 0 20px; }
.x-plan-price .price-main { font-size: 2.5rem; font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.x-plan-price .price-main .per { margin-inline-start: 6px; font-size: .92rem; font-weight: 500; letter-spacing: 0; color: var(--x-dim); }
.x-plan-price .price-old { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; color: var(--x-dim); font-size: .98rem; }
.x-plan-price .fine, .x-plan-price .sub-num { margin-top: 5px; font-size: .84rem; color: var(--x-dim); }
.x-save-chip { padding: 2px 10px; border-radius: 99px; background: #dcfce7; color: #166534; font-size: .76rem; font-weight: 800; }
html.dark .x-save-chip { background: rgb(52 227 190 / .16); color: #6fe9cf; }
.x-plan-cta { display: flex; justify-content: center; align-items: center; min-height: 52px; border-radius: 15px; border: 1.5px solid var(--x-line); background: var(--x-card-2); color: var(--x-text); font-weight: 800; text-decoration: none; transition: transform .25s var(--ux-ease), border-color .25s, color .25s, box-shadow .25s; }
.x-plan-cta:hover { transform: translateY(-2px); border-color: var(--brand); color: var(--brand); }
.x-plan-cta.is-main { border-color: transparent; background: linear-gradient(135deg, #0a7f69, #12b886); color: #fff; box-shadow: 0 18px 34px -16px rgb(10 143 114 / .75); }
.x-plan-cta.is-main:hover { color: #fff; box-shadow: 0 22px 40px -14px rgb(10 143 114 / .9); }
.x-pf-h { margin: 24px 0 10px; font-size: .76rem; font-weight: 800; letter-spacing: .05em; color: var(--x-dim); }
.x-pf-lim, .x-pf { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.x-pf-lim li, .x-pf li { display: flex; align-items: center; gap: 10px; font-size: .93rem; line-height: 1.4; }
.x-pf-ic { flex: none; color: #0a7f69; } html.dark .x-pf-ic { color: #6fe9cf; }
.x-pf-bg { fill: rgb(10 143 114 / .14); } html.dark .x-pf-bg { fill: rgb(52 227 190 / .14); }
.x-pf li.off { color: var(--x-dim); opacity: .55; text-decoration: line-through; text-decoration-thickness: 1px; }
.x-pf li.off .x-pf-ic { color: #8b95a6; } .x-pf li.off .x-pf-bg { fill: rgb(120 130 150 / .18); }

/* ------------------------------------------------------------------ header theme button */
.site-theme-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--x-line, #dfe5ec); background: var(--x-card, #fff); color: var(--x-text, #0b1220); cursor: pointer; transition: transform .3s var(--ux-ease), background .25s, border-color .25s; }
.site-theme-btn:hover { transform: rotate(18deg) scale(1.06); border-color: var(--brand); }
.site-theme-btn svg { position: absolute; width: 20px; height: 20px; transition: transform .45s var(--ux-ease), opacity .3s; }
.site-theme-btn .tt-sun { opacity: 0; transform: rotate(-90deg) scale(.4); } .site-theme-btn .tt-moon { opacity: 1; }
html.dark .site-theme-btn .tt-sun { opacity: 1; transform: none; } html.dark .site-theme-btn .tt-moon { opacity: 0; transform: rotate(90deg) scale(.4); }
#theme-toggle { display: none !important; }   /* the template's floating toggle; the header button replaces it (it still receives the click) */

/* ------------------------------------------------------------------ header + footer polish */
header .header-one { backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
html footer.ez-foot { border-radius: 36px 36px 0 0; margin-top: 40px; overflow: hidden; }
html footer.ez-foot::after { content: ""; position: absolute; inset-inline: 0; top: 0; height: 220px; background: radial-gradient(60% 100% at 50% 0%, rgb(52 227 190 / .16), transparent 70%); pointer-events: none; }
html.dark footer.ez-foot { background: linear-gradient(180deg, #0f1622 0%, #0a0f18 100%) !important; border-color: rgb(255 255 255 / .08) !important; }
html.dark .ez-foot-brand p, html.dark .ez-col a, html.dark .ez-foot-bar p, html.dark .ez-foot-bar a { color: #aeb9c9 !important; }
html.dark .ez-col a:hover, html.dark .ez-foot-bar a:hover { color: #6fe9cf !important; }
html.dark .ez-col-h { color: #f1f5fb !important; }
html.dark .ez-foot-note { color: #7f8b9c !important; }
.ez-col a { position: relative; display: inline-block; transition: color .2s, transform .25s var(--ux-ease); }
.ez-col a:hover { transform: translateX(-3px); } [dir="ltr"] .ez-col a:hover { transform: translateX(3px); }

/* ------------------------------------------------------------------ device mockups (wa-phone variants) */
/* iPhone-style Pro: titanium frame in a deep-blue / copper colourway, slim dynamic island */
.wa-phone.ph-iphone { border-radius: 56px; background: linear-gradient(145deg, #c9b8a4, #7a5f48 42%, #d6c3ad); box-shadow: 0 0 0 1.5px #3a2c20, 0 40px 70px -34px rgb(60 34 12 / .6), inset 0 0 0 1px rgb(255 255 255 / .35); }
.wa-phone.ph-iphone.ph-blue { background: linear-gradient(145deg, #8fa6c4, #34506f 45%, #a9bdd6); box-shadow: 0 0 0 1.5px #1a2a3d, 0 40px 70px -34px rgb(14 36 66 / .6), inset 0 0 0 1px rgb(255 255 255 / .35); }
.wa-phone.ph-iphone .wa-island { width: 70px; height: 20px; }
/* Galaxy-style Ultra: flat graphite frame, squarer corners, punch-hole camera */
.wa-phone.ph-galaxy { border-radius: 34px; padding: 7px; background: linear-gradient(160deg, #3b3f46, #15171b 50%, #3a3e45); box-shadow: 0 0 0 1.5px #0b0c0e, 0 40px 70px -34px rgb(10 14 22 / .6), inset 0 0 0 1px rgb(255 255 255 / .12); }
.wa-phone.ph-galaxy .wa-screen { border-radius: 27px; }
.wa-phone.ph-galaxy .wa-island { width: 11px; height: 11px; border-radius: 50%; position: absolute; left: 50%; top: 11px; translate: -50% 0; }
.wa-phone.ph-galaxy .wa-status { padding-top: 12px; }
.wa-phone.ph-galaxy .wa-side { background: #2a2d33; }
.wa-phone.ph-galaxy .wa-home { width: 34%; opacity: .55; }

/* ------------------------------------------------------------------ ambient motion (everything breathes a little, nothing needs hovering) */
@keyframes ux-gradient { 0% { background-position: 0% 50%; } 100% { background-position: 300% 50%; } }
@keyframes ux-border { 0% { background-position: 0 0, 0% 50%; } 100% { background-position: 0 0, 300% 50%; } }
@keyframes ux-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -9px; } }
@keyframes ux-sway { 0%, 100% { rotate: -1.2deg; } 50% { rotate: 1.2deg; } }
@keyframes ux-shine { 0%, 62% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(260%) skewX(-18deg); } }
@keyframes ux-glow { 0%, 100% { box-shadow: 0 18px 34px -16px rgb(10 143 114 / .65); } 50% { box-shadow: 0 22px 44px -10px rgb(52 227 190 / .75); } }
@keyframes ux-aurora { 0% { transform: translate3d(-4%, -2%, 0) scale(1); } 50% { transform: translate3d(5%, 3%, 0) scale(1.12); } 100% { transform: translate3d(-4%, -2%, 0) scale(1); } }
@keyframes ux-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: no-preference) {
  /* coloured words in headings drift through the brand gradient */
  .hx-mark, .d-accent, .x-accent, .x-grad { background: linear-gradient(90deg, #0a7f69, #12b886, #3b82f6, #34e3be, #0a7f69) 0 50% / 300% 100% !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent !important; color: transparent !important; animation: ux-gradient 9s linear infinite; }
  html.dark .hx-mark, html.dark .d-accent, html.dark .x-accent, html.dark .x-grad { background-image: linear-gradient(90deg, #34e3be, #6fe9cf, #7db4ff, #34e3be, #34e3be); }
  .hx-mark { background-color: transparent; padding-inline: .08em; box-shadow: none; }
  .x-plan.is-hl { animation: ux-border 9s linear infinite; }
  /* soft floating */
  .hx-bub { animation-duration: 7s; }
  .x-phone-wrap, .d-phone, .wa-phone.small { animation: ux-bob 7s ease-in-out infinite; }
  .x-fcard .x-fcard-ic, .x-tile-ic, .x-step-ic, .d-bullets li > span { animation: ux-bob 6s ease-in-out infinite; }
  .x-fcard:nth-child(2n) .x-fcard-ic { animation-delay: -1.5s; } .x-fcard:nth-child(3n) .x-fcard-ic { animation-delay: -3s; } .x-fcard:nth-child(5n) .x-fcard-ic { animation-delay: -4.5s; }
  /* a slow light sweep over cards */
  .x-fcard, .x-plan, .d-demo { overflow: hidden; }
  .x-fcard::after, .x-plan::after, .d-demo::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: 38%; background: linear-gradient(100deg, transparent, rgb(255 255 255 / .22), transparent); transform: translateX(-130%) skewX(-18deg); animation: ux-shine 9s ease-in-out infinite; pointer-events: none; }
  html.dark .x-fcard::after, html.dark .x-plan::after, html.dark .d-demo::after { background: linear-gradient(100deg, transparent, rgb(255 255 255 / .06), transparent); }
  .x-fcard:nth-child(2n)::after { animation-delay: 2s; } .x-fcard:nth-child(3n)::after { animation-delay: 4s; } .x-plan:nth-child(2)::after { animation-delay: 3s; } .x-plan:nth-child(3)::after { animation-delay: 6s; }
  .x-plan.is-hl { overflow: visible; } .x-plan.is-hl::after { display: none; }
  /* primary buttons pulse gently */
  .hx-btn-main, .x-plan-cta.is-main { animation: ux-glow 4.5s ease-in-out infinite; }
  /* aurora behind the hero */
  .hx-bg::before { content: ""; position: absolute; inset: -10% -10% auto -10%; height: 70%; background: radial-gradient(40% 50% at 30% 30%, rgb(52 227 190 / .22), transparent 70%), radial-gradient(35% 45% at 75% 20%, rgb(59 130 246 / .16), transparent 70%); filter: blur(10px); animation: ux-aurora 16s ease-in-out infinite; pointer-events: none; }
  /* section headings rise in once, then idle */
  .x-sec-head, .d-head { animation: ux-rise .8s var(--ux-ease) both; }
  .site-theme-btn:hover { animation: none; }
}

/* enterprise strip under the plans */
.x-ent { border-radius: 24px; background: var(--x-card); border: 1px solid var(--x-line); box-shadow: 0 22px 44px -36px rgb(11 18 32 / .35); }
html.dark .x-ent { background: var(--x-card); }

/* ------------------------------------------------------------------ dark mode: surfaces that the polish layer painted white */
html.dark { --ink: #f1f5fb; --ink-2: #d6dae2; --muted: #9aa7bb; }   /* site-v2.css redefines --ink on :root and used to win over the legacy .dark values */
html.dark :is(.x-fcard, .x-tile, .pl-card, .x-pay, .x-dev-card, .x-mt-new, .x-mt-fmt, .x-mt-fmt li, .d-search, .x-lab-us-rows > div, .x-chk span, .x-copy, .x-callout,
  .mu-card, .mu-grp, .mu-chip, .mu-search, .x-dpreview, .x-dash, .x-kpi, .x-panel, .x-fn, .x-plan-mini, .x-near a, .x-cgrid-l a, .x-cflag, .d-link, .d-stock, .ez-soc, .x-langs a,
  .accordion .accordion-item, .accordion .accordion-item .accordion-content > div p) { background: var(--x-card) !important; border-color: var(--x-line) !important; color: var(--x-text); box-shadow: none; }
html.dark :is(.x-fcard, .x-tile, .pl-card) :is(h3, h4, b, strong) { color: var(--x-text); }
html.dark :is(.x-fcard, .x-tile, .pl-card, .x-mt-new, .x-mt-fmt) p, html.dark .x-mt-fmt li { color: var(--x-dim); }
html.dark :is(.x-sec-head .badge, .badge.badge-cyan) { background: rgb(52 227 190 / .12) !important; color: #6fe9cf !important; border-color: rgb(52 227 190 / .3) !important; }
html.dark .hx-card-top, html.dark .hx-card-bot { background: rgb(255 255 255 / .05) !important; border-color: rgb(255 255 255 / .1) !important; }
html.dark .hx .x-tab, html.dark .hx .x-pp, html.dark .hx-eyebrow, html.dark .hx-btn-ghost { background: rgb(255 255 255 / .07) !important; color: #e7eef7 !important; border-color: rgb(255 255 255 / .14) !important; }
html.dark .hx .x-tab[aria-selected="true"] { background: rgb(52 227 190 / .18) !important; color: #fff !important; border-color: rgb(52 227 190 / .55) !important; }
html.dark .hx-statbar { background: rgb(255 255 255 / .05); }
html.dark .x-matrix th.us, html.dark .x-matrix td.us { background: rgb(52 227 190 / .1); }
html.dark :is(.x-mx.no, .x-mx.sep, .x-mx.api, .x-mx.unk) { background: rgb(255 255 255 / .06); color: var(--x-dim); }
html.dark .x-ent-tag { background: rgb(52 227 190 / .14); color: #6fe9cf; }
html.dark main .x-sec:not(.alt), html.dark main .d-sec:not(.alt) { background: var(--color-background-9, #1f252f); }
html.dark .d-win-bar { background: var(--x-card-2); }

/* ------------------------------------------------------------------ live demos ("try it yourself") — a more finished look */
.d-demo { border-radius: 30px; border: 1px solid transparent; background: linear-gradient(var(--x-card), var(--x-card)) padding-box, linear-gradient(135deg, rgb(10 143 114 / .35), rgb(59 130 246 / .2), rgb(52 227 190 / .35)) border-box; box-shadow: 0 40px 80px -52px rgb(11 18 32 / .45), 0 1px 0 rgb(255 255 255 / .6) inset; }
html.dark .d-demo { box-shadow: 0 40px 90px -50px rgb(0 0 0 / .8), 0 1px 0 rgb(255 255 255 / .05) inset; }
.d-demo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(60% 40% at 85% 0%, rgb(52 227 190 / .1), transparent 70%); }
.d-sample { border-radius: 99px; font-weight: 700; letter-spacing: .02em; }
.d-sample::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-inline-end: 7px; border-radius: 50%; background: #12b886; box-shadow: 0 0 0 0 rgb(18 184 134 / .6); }
@media (prefers-reduced-motion: no-preference) { .d-sample::before { animation: ux-ping 2.2s ease-out infinite; } }
@keyframes ux-ping { 0% { box-shadow: 0 0 0 0 rgb(18 184 134 / .55); } 100% { box-shadow: 0 0 0 9px rgb(18 184 134 / 0); } }
.d-run, .d-chips button, .d-qr button, .d-slots button { transition: transform .22s var(--ux-ease), box-shadow .22s, background .2s, border-color .2s; }
.d-run:hover, .d-chips button:hover, .d-qr button:hover, .d-slots button:hover { transform: translateY(-2px); box-shadow: 0 12px 22px -14px rgb(10 143 114 / .6); }
.d-chat-b, .wa-chat { scroll-behavior: smooth; }
.wa-m { box-shadow: 0 1px 1px rgb(11 20 26 / .12), 0 6px 14px -10px rgb(11 20 26 / .25); }
html.dark .d-tpl small { color: var(--x-dim); }
html.dark .ux-rp-replay { color: #6fe9cf; }
html.dark .x-post-tag.soon { background: rgb(245 158 11 / .14); color: #fbbf24; }
/* chat bubbles inside device mockups keep their own dark-on-light text in both themes */
.wa-phone, .wa-screen, .x-bub, .d-tpl p { color: #111b21; } .wa-phone .wa-out, .wa-phone .wa-m.wa-out { color: #111b21; } .wa-phone .wa-sysm { color: #54656f; } .wa-phone .wa-head .wa-who b { color: #000; }
html.dark .ez-foot-bar { border-top-color: rgb(255 255 255 / .1) !important; }
.wa-phone.ph-galaxy .wa-island::after, .wa-phone.ph-galaxy .wa-island::before { display: none; }
.d-demo > .d-sample { inset-block-start: auto; inset-block-end: 12px; }
