/* =====================================================================================================================
   "Soft" skin (owner 2026-10-21): same language as the admin panel. Light only, airy, rounded, WhatsApp-flavoured.
   - pale canvas + WhatsApp-style doodle wallpaper + pastel glows
   - floating chat bubbles / ticks / voice note in the gutters (markup: lib/wafloat.mjs)
   - pill buttons with brand gradient, softer cards and chips
   Loaded last, so it wins over the template + earlier site-*.css. No dark mode: html is forced to .light.
   ===================================================================================================================== */
:root {
  --soft-brand: #0a7f69;
  --soft-brand-hi: #12a88a;
  --soft-blue: #2f6fed;
  --soft-ink: #0f1b2d;
  --soft-line: #e6ebf3;
  --soft-canvas: #f3f7fb;
  --wa-out: #d9fdd3;      /* WhatsApp sent bubble */
  --wa-tick: #53bdeb;     /* WhatsApp read ticks */
}

html { background: var(--soft-canvas); }
body {
  background: transparent !important;
  color: var(--soft-ink);
}

/* ---- WhatsApp-style doodle wallpaper + glows (fixed, behind everything) ---- */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -2; pointer-events: none;
  background:
    radial-gradient(60rem 28rem at 6% -6%, rgb(10 127 105 / .12), transparent 62%),
    radial-gradient(54rem 26rem at 98% -4%, rgb(47 111 237 / .10), transparent 62%),
    radial-gradient(50rem 24rem at 50% 108%, rgb(18 168 138 / .09), transparent 64%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260' fill='none' stroke='%230a7f69' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' opacity='.075'%3E%3Cg transform='translate(18 20)'%3E%3Cpath d='M4 4h30a6 6 0 0 1 6 6v16a6 6 0 0 1-6 6H20l-9 8v-8H4a6 6 0 0 1-6-6V10a6 6 0 0 1 6-6z'/%3E%3C/g%3E%3Cg transform='translate(150 14)'%3E%3Cpath d='M20 34S2 24 2 12a9 9 0 0 1 18-2 9 9 0 0 1 18 2c0 12-18 22-18 22z'/%3E%3C/g%3E%3Cg transform='translate(96 92) rotate(-12)'%3E%3Crect x='0' y='6' width='34' height='24' rx='5'/%3E%3Ccircle cx='17' cy='18' r='6'/%3E%3Cpath d='M10 6l3-5h8l3 5'/%3E%3C/g%3E%3Cg transform='translate(200 96)'%3E%3Ccircle cx='16' cy='16' r='15'/%3E%3Cpath d='M16 8v8l6 4'/%3E%3C/g%3E%3Cg transform='translate(24 120) rotate(8)'%3E%3Cpath d='M2 12h32l-3 22H5z'/%3E%3Cpath d='M10 12V8a8 8 0 0 1 16 0v4'/%3E%3C/g%3E%3Cg transform='translate(156 176) rotate(-8)'%3E%3Cpath d='M2 18l8 8L28 6'/%3E%3Cpath d='M14 26l2 2L34 8'/%3E%3C/g%3E%3Cg transform='translate(70 186)'%3E%3Cpath d='M6 4c0 0 5-3 8 2l3 6c1 3-3 5-3 5 3 6 8 10 14 12 0 0 2-4 5-3l6 3c4 2 2 7 2 7-12 6-37-14-35-32z' transform='scale(.8)'/%3E%3C/g%3E%3Cg transform='translate(214 206)'%3E%3Cpath d='M16 2l4.200 9 9.800 1-7.300 6.600 2.100 9.600L16 23l-8.800 5.200 2.100-9.600L2 11l9.800-1z' transform='scale(.8)'/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 260px;
}

/* template sections that painted a flat white/grey band: let the canvas show through, keep gentle banding */
.hx, .x-sec, .d-sec, main > section { background-color: transparent !important; }
.x-sec.alt, .d-sec.alt { background-color: rgb(255 255 255 / .55) !important; }
.x-marquee-sec { background-color: rgb(255 255 255 / .7) !important; border-block: 1px solid var(--soft-line); }

/* ---- header pill ---- */
header .header-one, header > div:first-child { border-radius: 9999px; }
.site-theme-btn { display: none !important; }

/* ---- buttons: brand gradient + soft glow, pill shape ---- */
.btn { border-radius: 9999px !important; font-weight: 700; transition: transform .18s ease, box-shadow .18s ease, filter .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background-image: linear-gradient(135deg, var(--soft-brand-hi), var(--soft-brand)) !important;
  background-color: var(--soft-brand) !important; color: #fff !important; border-color: transparent !important;
  box-shadow: 0 10px 22px -10px rgb(10 127 105 / .65);
}
.btn-primary:hover { filter: brightness(1.06); box-shadow: 0 14px 28px -10px rgb(10 127 105 / .7); }
.btn-white-dark, .btn-secondary, .btn-outline {
  background: #fff !important; color: var(--soft-ink) !important; border: 1px solid var(--soft-line) !important;
  box-shadow: 0 1px 2px rgb(16 24 40 / .04);
}

/* ---- cards & panels ---- */
.x-card, .d-card, .x-panel, .x-stage, .x-plan, .x-fn, .x-code, .x-toast {
  border-radius: 24px !important; border: 1px solid rgb(255 255 255 / .9) !important;
  box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 18px 40px -22px rgb(16 24 40 / .18) !important;
}
.x-chip, .x-badge, .x-kicker, .d-kicker { border-radius: 9999px !important; }

/* ---- headings a touch bolder, like the panel ---- */
h1, h2 { letter-spacing: -.01em; }

/* =========================== floating WhatsApp elements =========================== */
/* Anchored to the top of the page (absolute, not fixed): the shapes scroll away with the first screen instead of following the visitor. */
.waf { position: absolute; inset-block-start: 0; inset-inline: 0; height: min(100vh, 860px); z-index: -1; pointer-events: none; overflow: hidden; display: none; font-size: 16px; }
/* only when the side gutters are wide enough that nothing sits behind the text */
@media (min-width: 1500px) { .waf { display: block; font-size: 13px; } }
@media (min-width: 1760px) { .waf { font-size: 16px; } }
@media (min-width: 2000px) { .waf { font-size: 18px; } }

.waf-i { position: absolute; will-change: transform; animation: waf-float 9s ease-in-out infinite; }
.waf-p1  { top: 17%; inset-inline-start: 2.2%;  animation-delay: -1s; }
.waf-p2  { top: 31%; inset-inline-start: 7.5%;  animation-delay: -4s;  animation-duration: 8s; }
.waf-p3  { top: 49%; inset-inline-start: 1.8%;  animation-delay: -2s;  animation-duration: 10s; }
.waf-p4  { top: 66%; inset-inline-start: 9%;    animation-delay: -6s; }
.waf-p5  { top: 82%; inset-inline-start: 3.5%;  animation-delay: -3s;  animation-duration: 7.5s; }
.waf-p6  { top: 14%; inset-inline-end: 2.4%;    animation-delay: -5s;  animation-duration: 10s; }
.waf-p7  { top: 33%; inset-inline-end: 8.5%;    animation-delay: -2.5s; }
.waf-p8  { top: 48%; inset-inline-end: 1.8%;    animation-delay: -7s;  animation-duration: 8.5s; }
.waf-p9  { top: 66%; inset-inline-end: 9.5%;    animation-delay: -1.5s; animation-duration: 7s; }
.waf-p10 { top: 80%; inset-inline-end: 3%;      animation-delay: -4.5s; }
@keyframes waf-float {
  0%, 100% { transform: translateY(0) rotate(-1.2deg); }
  50% { transform: translateY(-1.1em) rotate(1.2deg); }
}

/* bubbles */
.waf-b {
  position: relative; width: 12.5em; padding: .8em .9em .55em; border-radius: 1.1em;
  box-shadow: 0 1px 1px rgb(11 20 26 / .13), 0 1.4em 2.6em -1.4em rgb(11 20 26 / .28); background: #fff; color: #667781;
}
.waf-out { background: var(--wa-out); border-end-end-radius: .25em; }
.waf-in  { background: #fff; border-end-start-radius: .25em; }
.waf-sk { display: block; height: .55em; border-radius: 9em; background: rgb(11 20 26 / .12); margin-bottom: .5em; }
.waf-out .waf-sk { background: rgb(11 80 40 / .16); }
.waf-sk.w20 { width: 2.2em; margin: 0; height: .42em; } .waf-sk.w40 { width: 40%; } .waf-sk.w50 { width: 50%; } .waf-sk.w55 { width: 55%; }
.waf-sk.w65 { width: 65%; } .waf-sk.w70 { width: 70%; } .waf-sk.w75 { width: 75%; } .waf-sk.w80 { width: 80%; }
.waf-meta { display: flex; align-items: center; justify-content: flex-end; gap: .35em; margin-top: .1em; }
.waf-ticks { width: 1.25em; height: .8em; color: var(--wa-tick); }
.waf-ticks.big { width: 1.7em; height: 1.1em; }

/* typing dots */
.waf-typing { width: auto; display: flex; gap: .38em; padding: .95em 1.1em; }
.waf-typing i { width: .55em; height: .55em; border-radius: 50%; background: #9aa7ae; animation: waf-dot 1.2s infinite ease-in-out; }
.waf-typing i:nth-child(2) { animation-delay: .18s; } .waf-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes waf-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-.35em); opacity: 1; } }

/* voice note */
.waf-voice { width: 14em; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .7em; row-gap: .1em; padding-block: .7em .5em; }
.waf-play { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #fff; color: #54656f; box-shadow: 0 1px 2px rgb(0 0 0 / .12); }
.waf-play svg { width: 1.1em; height: 1.1em; }
.waf-wave { display: flex; align-items: center; gap: .17em; height: 1.8em; }
.waf-wave i { display: block; flex: 1; min-width: .16em; height: calc(var(--h) * 1.6em); border-radius: 9em; background: rgb(11 80 40 / .35); animation: waf-bar 1.6s infinite ease-in-out; }
.waf-wave i:nth-child(3n) { animation-delay: .2s; } .waf-wave i:nth-child(3n+1) { animation-delay: .5s; }
@keyframes waf-bar { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(.55); } }
.waf-voice .waf-meta { grid-column: 1 / -1; }
.waf-dur { font-size: .78em; font-weight: 600; color: #667781; font-variant-numeric: tabular-nums; margin-inline-end: auto; }

/* photo bubble */
.waf-photo { width: 11em; padding: .35em .35em .55em; }
.waf-img { display: grid; place-items: center; height: 5.6em; border-radius: .8em; margin-bottom: .55em; color: #7da79d; background: linear-gradient(135deg, #cfeee6, #d8e6fb); }
.waf-img svg { width: 3em; height: 3em; }
.waf-photo .waf-sk { margin-inline: .5em .5em; } .waf-photo .waf-meta { padding-inline: .5em; }

/* round chips */
.waf-logo, .waf-tickchip, .waf-count { display: grid; place-items: center; border-radius: 50%; background: #fff; box-shadow: 0 1px 1px rgb(11 20 26 / .12), 0 1.2em 2.4em -1.2em rgb(11 20 26 / .3); }
.waf-logo { width: 4em; height: 4em; } .waf-logo img { width: 2.3em; height: 2.3em; }
.waf-tickchip { width: 3.3em; height: 3.3em; }
.waf-count { width: 2.5em; height: 2.5em; background: #25d366; color: #fff; font-weight: 800; font-size: 1.05em; box-shadow: 0 .9em 1.8em -.9em rgb(37 211 102 / .7); }
.waf-react { display: flex; gap: .55em; padding: .55em .8em; border-radius: 9em; background: #fff; box-shadow: 0 1px 1px rgb(11 20 26 / .12), 0 1.2em 2.4em -1.2em rgb(11 20 26 / .3); }
.waf-react svg { width: 1.55em; height: 1.55em; }

@media (prefers-reduced-motion: reduce) {
  .waf-i, .waf-typing i, .waf-wave i { animation: none !important; }
}
@media print { .waf { display: none !important; } }

/* page titles: the template's lighter weight looked washed out on the soft canvas */
main h1 { font-weight: 800; }

/* =========================== home: stores & shipping (lib/ecosystem.mjs) =========================== */
.ec-steps { list-style: none; margin: 0 auto 28px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 6px; max-width: 760px; }
.ec-steps li { display: inline-flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--soft-ink); }
.ec-steps li > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e5f6f1; color: var(--soft-brand); }
.ec-steps li > i { display: block; width: 28px; height: 1.5px; margin-inline: 4px; background: linear-gradient(90deg, #bfe3d9, #cfe0fb); }
@media (max-width: 640px) { .ec-steps li > i { display: none; } .ec-steps { gap: 10px 16px; } }
.ec-grid { display: grid; gap: 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1023.98px) { .ec-grid { grid-template-columns: 1fr; } }
.ec-card { background: #fff; border: 1px solid var(--soft-line); border-radius: 24px; padding: 22px; box-shadow: 0 1px 2px rgb(16 24 40 / .04), 0 18px 40px -26px rgb(16 24 40 / .16); }
.ec-card header { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ec-ic { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 14px; background: #e5f6f1; color: var(--soft-brand); }
.ec-card h3 { margin: 0; font-size: 1.02rem; font-weight: 800; color: var(--soft-ink); }
.ec-card p { margin: 3px 0 0; font-size: .82rem; line-height: 1.5; color: #5b6778; }
.ec-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-chip { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 12px; border: 1px solid var(--soft-line); border-radius: 14px; background: #f8fafc; color: #33445a; text-decoration: none; transition: transform .18s, box-shadow .18s, background .18s, border-color .18s; }
.ec-chip:hover { transform: translateY(-2px); background: #fff; border-color: #bfe3d9; box-shadow: 0 10px 20px -14px rgb(10 127 105 / .6); }
.ec-chip .x-logo-item { gap: 7px; font-size: .84rem; font-weight: 700; }
.ec-chip .x-logo-img { width: 22px; height: 22px; object-fit: contain; }
.ec-chip em { font-style: normal; font-size: .62rem; font-weight: 800; color: #9a6700; background: #fff4d6; padding: 2px 7px; border-radius: 9999px; }
.ec-chip.is-soon { opacity: .92; }
.ec-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 20px; margin: 18px 4px 0; font-size: .8rem; color: #6b7a8c; }
.ec-foot a { font-weight: 800; color: var(--soft-brand); text-decoration: none; }
.ec-foot a:hover { text-decoration: underline; }

/* home hero: keep it quiet — only the two logo tiles around the phone card stay */
.hx-b3, .hx-b4 { display: none !important; }

/* stores & shipping chips: one clean box per brand, two per row */
.ec-chips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ec-chip { justify-content: space-between; min-width: 0; }
.ec-chip .x-logo-item { border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; min-height: 0 !important; border-radius: 0 !important; min-width: 0; }
.ec-chip .x-logo-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 420px) { .ec-chips { grid-template-columns: 1fr; } }
.ec-chip .x-logo-name { white-space: normal; overflow: visible; text-overflow: clip; line-height: 1.2; }
.ec-chip em { position: absolute; inset-block-start: -7px; inset-inline-end: 10px; font-size: .58rem; padding: 1px 7px; box-shadow: 0 1px 2px rgb(16 24 40 / .08); }

/* =========================== footer: "Pay with" (lib/paymentlogos.mjs) =========================== */
.ez-pay-unused { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 6px 0 22px; padding: 18px 12px 0; border-top: 1px solid var(--soft-line); text-align: center; }
.ez-pay-h { margin: 0; font-size: .78rem; font-weight: 800; letter-spacing: .04em; color: #5b6778; }
.ez-pay-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ez-pay .pm { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; height: 38px; padding: 0 12px; border: 1px solid var(--soft-line); border-radius: 12px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .04); transition: transform .18s, box-shadow .18s; }
.ez-pay .pm img { display: block; height: 22px; width: auto; max-width: 74px; object-fit: contain; filter: grayscale(1) opacity(.72); transition: filter .2s; }
.ez-pay .pm:hover { transform: translateY(-2px); box-shadow: 0 10px 18px -12px rgb(16 24 40 / .35); }
.ez-pay .pm:hover img { filter: none; }
.ez-pay .pm-t span { font-size: .72rem; font-weight: 800; color: #4a5a6d; white-space: nowrap; }
.ez-pay-note { margin: 0; max-width: 520px; font-size: .72rem; line-height: 1.6; color: #7a8696; }

/* ---- footer payment logos: small white pills at the very bottom (same idea as the references the owner sent) ---- */
.ez-foot-bar { align-items: center; }
.ez-foot-bar .ez-pay-list { order: 2; gap: 8px; }
.ez-foot-bar .ez-pay-list .pm { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 32px; padding: 0 10px; border: 1px solid var(--soft-line); border-radius: 9px; background: #fff; box-shadow: 0 1px 2px rgb(16 24 40 / .05); transition: transform .18s, box-shadow .18s; }
.ez-foot-bar .ez-pay-list .pm:hover { transform: translateY(-2px); box-shadow: 0 8px 14px -10px rgb(16 24 40 / .4); }
.ez-foot-bar .ez-pay-list .pm img { display: block; height: 20px; width: auto; max-width: 56px; object-fit: contain; filter: none; }
.ez-foot-bar .ez-pay-list .pm-mask { display: block; width: 40px; height: 16px; background: var(--c, #33445a); -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ez-foot-bar .ez-pay-list .pm-t span { font-size: .68rem; font-weight: 800; color: #4a5a6d; white-space: nowrap; }
.ez-foot-bar > p { order: 1; }
.ez-foot-bar > ul:not(.ez-pay-list) { order: 3; }
@media (max-width: 767px) { .ez-foot-bar .ez-pay-list { order: 1; width: 100%; justify-content: center; } .ez-foot-bar > p { order: 2; } .ez-foot-bar > ul:not(.ez-pay-list) { order: 3; } }

.ez-foot-bar .ez-pay-list .pm-mask { width: 46px; height: 20px; }
.ez-foot-bar .ez-pay-list .pm { min-width: 56px; height: 34px; }

/* guides, integrations, SMS and voice pages: no WhatsApp doodle wallpaper and no floating bubbles (owner 2026-10-21) */
body.x-nowa::before { background-image: none; }
body.x-nowa .waf { display: none !important; }

/* same rule keyed on the page id, so it also holds for pages built before the x-nowa class existed */
body[data-page^="doc-"]::before, body[data-page^="integration-"]::before, body[data-page="doc-index"]::before, body[data-page="integrations"]::before, body[data-page="sms"]::before, body[data-page="voice"]::before, body[data-page="pricing-sms"]::before, body[data-page="pricing-voice"]::before { background-image: none; }
body[data-page^="doc-"] .waf, body[data-page^="integration-"] .waf, body[data-page="integrations"] .waf, body[data-page="sms"] .waf, body[data-page="voice"] .waf, body[data-page="pricing-sms"] .waf, body[data-page="pricing-voice"] .waf { display: none !important; }

/* Header position (owner 2026-10-31: the top bar sometimes sat shifted to one side, cut off at the screen edge). The template centred it with `left:50%` plus a transform that its own
   entrance animation could overwrite. Centre it with plain left/right/auto margins instead, so no script can move it off centre. */
html .header-one { left: 0 !important; right: 0 !important; margin-inline: auto !important; transform: none !important; translate: none !important; }
