/* WhatsCommerce public website. Plain CSS, no framework; mobile first; 16px base; no layout shift. */
:root { --safe-top: env(safe-area-inset-top, 0px); --safe-right: env(safe-area-inset-right, 0px); --safe-bottom: env(safe-area-inset-bottom, 0px); --safe-left: env(safe-area-inset-left, 0px); }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; overflow-x: hidden; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
a, button, summary { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
body.ws-lock { overflow: hidden; }

.ws {
  --ws-ink: #0b1220;
  --ws-text: #1e293b;
  --ws-muted: #475569;
  --ws-subtle: #64748b;
  --ws-line: #e2e8f0;
  --ws-soft: #f8fafc;
  --ws-tint: #eef2ff;
  --ws-brand: #4f46e5;
  --ws-brand-dark: #3730a3;
  --ws-green: #15803d;
  --ws-chat: #efeae2;
  --ws-bubble-out: #d9fdd3;
  --ws-radius: 16px;
  --ws-shadow: 0 1px 2px rgba(15, 23, 42, .05), 0 12px 32px rgba(15, 23, 42, .08);
  color: var(--ws-text);
  background: #fff;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
.ws *:focus-visible { outline: 3px solid var(--ws-brand); outline-offset: 3px; border-radius: 6px; }
.ws a { color: inherit; }
.ws img, .ws svg { max-width: 100%; }
.ws-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 max(1.25rem, var(--safe-left)) 0 max(1.25rem, var(--safe-right)); }
.ws-narrow { max-width: 820px; }
.ws-center { text-align: center; }
.ws-skip { position: absolute; left: -999px; top: .5rem; z-index: 100; background: var(--ws-ink); color: #fff; padding: .6rem 1rem; border-radius: 8px; }
.ws-skip:focus { left: 1rem; }
.ws main:focus { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Type */
.ws h1, .ws h2, .ws h3 { color: var(--ws-ink); letter-spacing: -0.025em; line-height: 1.15; }
.ws h1 { font-size: clamp(2.2rem, 5.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.ws h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); font-weight: 800; }
.ws h3 { font-size: 1.15rem; font-weight: 700; }
.ws-eyebrow { display: inline-flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ws-brand); margin-bottom: .8rem; }
.ws-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--ws-muted); max-width: 40rem; }
.ws-muted { color: var(--ws-muted); }
.ws-note { font-size: .82rem; color: var(--ws-subtle); }

/* Buttons */
.ws-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.2rem; border-radius: 999px; font-weight: 700; font-size: .95rem; text-decoration: none; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s; font-family: inherit; }
.ws-btn-lg { min-height: 52px; padding: .8rem 1.6rem; font-size: 1.02rem; }
.ws-btn-sm { min-height: 38px; padding: .4rem .9rem; font-size: .86rem; }
.ws-btn-primary { background: var(--ws-brand); color: #fff !important; }
.ws-btn-primary:hover { background: var(--ws-brand-dark); }
.ws-btn-green { background: #16a34a; color: #fff !important; }
.ws-btn-green:hover { background: var(--ws-green); }
.ws-btn-outline { border-color: var(--ws-line); color: var(--ws-ink) !important; background: #fff; }
.ws-btn-outline:hover { border-color: var(--ws-brand); color: var(--ws-brand) !important; }
.ws-btn-ghost { color: var(--ws-ink) !important; }
.ws-btn-ghost:hover { background: var(--ws-soft); }
.ws-btn-light { background: #fff; color: var(--ws-ink) !important; }
.ws-btn-outline-light { border-color: rgba(255, 255, 255, .5); color: #fff !important; }
.ws-btn-outline-light:hover { background: rgba(255, 255, 255, .1); }
.ws-cta-row { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
.ws-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.6) blur(12px); -webkit-backdrop-filter: saturate(1.6) blur(12px); border-bottom: 1px solid transparent; padding-top: var(--safe-top); transition: border-color .2s, box-shadow .2s; }
.ws-header.scrolled { border-bottom-color: var(--ws-line); box-shadow: 0 1px 12px rgba(15, 23, 42, .04); }
.ws-header-inner { display: flex; align-items: center; gap: 1rem; height: 68px; }
.ws-brand { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ws-ink); font-size: 1.12rem; letter-spacing: -.02em; flex-shrink: 0; }
.ws-brand span { font-weight: 700; color: var(--ws-brand); }
.ws-brand b { font-weight: 800; color: var(--ws-ink); }
.ws-nav { display: flex; align-items: center; flex: 1; gap: 1rem; }
.ws-nav-list { list-style: none; display: flex; align-items: center; gap: .25rem; margin: 0 auto; padding: 0; }
.ws-nav-link { display: inline-flex; align-items: center; gap: .3rem; padding: .5rem .8rem; border-radius: 10px; border: 0; background: none; color: var(--ws-text); font: inherit; font-weight: 600; font-size: .95rem; text-decoration: none; cursor: pointer; min-height: 44px; }
.ws-nav-link:hover { background: var(--ws-soft); color: var(--ws-ink); }
.ws-nav-group { position: relative; }
.ws-nav-group.open .ws-nav-link svg { transform: rotate(180deg); }
.ws-mega { display: none; position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); width: min(560px, 90vw); background: #fff; border: 1px solid var(--ws-line); border-radius: 16px; box-shadow: var(--ws-shadow); padding: .6rem; grid-template-columns: 1fr 1fr; gap: .15rem; }
.ws-nav-group.open .ws-mega { display: grid; }
.ws-mega-item { display: flex; flex-direction: column; gap: .1rem; padding: .7rem .8rem; border-radius: 12px; text-decoration: none; }
.ws-mega-item:hover { background: var(--ws-tint); }
.ws-mega-item strong { font-size: .95rem; color: var(--ws-ink); }
.ws-mega-item small { font-size: .82rem; color: var(--ws-subtle); line-height: 1.4; }
.ws-nav-actions { display: flex; gap: .5rem; align-items: center; }
.ws-burger { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: none; border-radius: 10px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.ws-burger span { width: 22px; height: 2px; background: var(--ws-ink); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ws-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ws-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.ws-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 960px) {
  .ws-burger { display: inline-flex; }
  .ws-nav { display: none; position: fixed; left: 0; right: 0; top: calc(68px + var(--safe-top)); bottom: 0; background: #fff; flex-direction: column; align-items: stretch; padding: 1rem max(1.25rem, var(--safe-left)) calc(1.5rem + var(--safe-bottom)); overflow-y: auto; overscroll-behavior: contain; gap: 1.25rem; border-top: 1px solid var(--ws-line); }
  .ws-nav.open { display: flex; }
  .ws-nav-list { flex-direction: column; align-items: stretch; margin: 0; gap: 0; }
  .ws-nav-list > li { border-bottom: 1px solid var(--ws-line); }
  .ws-nav-link { width: 100%; justify-content: space-between; font-size: 1.05rem; padding: .9rem .25rem; }
  .ws-mega { position: static; transform: none; width: 100%; box-shadow: none; border: 0; padding: 0 0 .6rem; grid-template-columns: 1fr; }
  .ws-nav-actions { flex-direction: column; align-items: stretch; }
  .ws-nav-actions .ws-btn { width: 100%; min-height: 50px; }
}

/* Sections */
.ws-section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.ws-section-alt { background: var(--ws-soft); }
.ws-section-head { max-width: 44rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ws-section-head.ws-center { margin-left: auto; margin-right: auto; }
.ws-section-head p { margin-top: .8rem; color: var(--ws-muted); font-size: 1.08rem; }

/* Hero */
.ws-hero { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(3rem, 7vw, 5.5rem); background: radial-gradient(1200px 500px at 85% -10%, #e0e7ff 0%, rgba(224, 231, 255, 0) 60%), radial-gradient(900px 400px at -10% 10%, #dcfce7 0%, rgba(220, 252, 231, 0) 55%); overflow: hidden; }
.ws-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.ws-hero h1 .ws-rotate { display: block; color: var(--ws-brand); min-height: 2.2em; }
@media (min-width: 1100px) { .ws-hero h1 .ws-rotate { min-height: 1.1em; } }
.ws-rotate-word { display: inline-block; animation: ws-rise .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes ws-rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: none; } }
.ws-hero .ws-lead { margin: 1.3rem 0 1.8rem; }
.ws-hero-points { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1.6rem; padding: 0; color: var(--ws-muted); font-size: .92rem; }
.ws-hero-points li { display: inline-flex; align-items: center; gap: .4rem; }
.ws-hero-points li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: #dcfce7 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%2315803d' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; flex-shrink: 0; }
@media (max-width: 900px) {
  .ws-hero-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Proof strip */
.ws-proof { border-top: 1px solid var(--ws-line); border-bottom: 1px solid var(--ws-line); background: #fff; }
.ws-proof ul { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem 2.2rem; padding: 1.1rem 0; margin: 0; }
.ws-proof li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .92rem; color: var(--ws-text); }
.ws-proof svg { color: var(--ws-green); flex-shrink: 0; }

/* Cards and grids */
.ws-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.ws-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ws-card { background: #fff; border: 1px solid var(--ws-line); border-radius: var(--ws-radius); padding: 1.5rem; }
.ws-card p { color: var(--ws-muted); margin-top: .45rem; font-size: .96rem; }
@media (max-width: 900px) { .ws-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .ws-grid-2, .ws-grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Feature rows (text + live mini-demo) */
.ws-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; scroll-margin-top: 90px; }
.ws-feature + .ws-feature { margin-top: clamp(4rem, 9vw, 7rem); }
.ws-feature.flip > :first-child { order: 2; }
.ws-feature ul { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .6rem; }
.ws-feature li { display: flex; gap: .6rem; color: var(--ws-text); }
.ws-feature li::before { content: ''; margin-top: .3rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ws-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; flex-shrink: 0; }
.ws-feature h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
.ws-feature p.ws-lead { margin-top: .8rem; }
@media (max-width: 900px) { .ws-feature { grid-template-columns: minmax(0, 1fr); } .ws-feature.flip > :first-child { order: 0; } }

/* Mini demo frame */
.ws-demo { background: #fff; border: 1px solid var(--ws-line); border-radius: 20px; box-shadow: var(--ws-shadow); padding: 1.1rem; position: relative; }
.ws-demo-tag { position: absolute; top: -.7rem; right: 1rem; background: #fff; border: 1px solid var(--ws-line); border-radius: 999px; padding: .1rem .6rem; font-size: .72rem; font-weight: 600; color: var(--ws-subtle); }

/* Pricing */
.ws-price-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.ws-price { display: flex; flex-direction: column; gap: .6rem; }
.ws-price .ws-amount { font-size: 2.3rem; font-weight: 800; color: var(--ws-ink); letter-spacing: -.03em; line-height: 1.1; }
.ws-price .ws-amount small { font-size: .95rem; font-weight: 600; color: var(--ws-subtle); letter-spacing: 0; }
.ws-price ul { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .45rem; font-size: .93rem; color: var(--ws-text); }
.ws-price li { display: flex; gap: .5rem; }
.ws-price li::before { content: '✓'; color: var(--ws-green); font-weight: 800; }
.ws-price.featured { border: 2px solid var(--ws-brand); box-shadow: var(--ws-shadow); }
@media (max-width: 900px) { .ws-price-grid { grid-template-columns: minmax(0, 1fr); } }
.ws-table-wrap { overflow-x: auto; border: 1px solid var(--ws-line); border-radius: var(--ws-radius); background: #fff; }
.ws-table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.ws-table th, .ws-table td { text-align: left; padding: .85rem 1rem; border-bottom: 1px solid var(--ws-line); vertical-align: top; }
.ws-table thead th { background: var(--ws-soft); font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ws-subtle); }
.ws-table tr:last-child td { border-bottom: 0; }
.ws-table td strong { color: var(--ws-ink); }

/* FAQ */
.ws-faq details { border-bottom: 1px solid var(--ws-line); }
.ws-faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2.2rem 1.15rem 0; font-weight: 700; color: var(--ws-ink); position: relative; font-size: 1.05rem; }
.ws-faq summary::-webkit-details-marker { display: none; }
.ws-faq summary::after { content: '+'; position: absolute; right: .25rem; top: 50%; transform: translateY(-50%); font-size: 1.5rem; font-weight: 400; color: var(--ws-subtle); }
.ws-faq details[open] summary::after { content: '–'; }
.ws-faq details p { padding: 0 0 1.2rem; color: var(--ws-muted); }

/* Final CTA */
.ws-final { background: linear-gradient(135deg, #312e81, #4f46e5 55%, #16a34a 160%); color: #fff; border-radius: 28px; padding: clamp(2.5rem, 6vw, 4rem) clamp(1.5rem, 5vw, 4rem); text-align: center; }
.ws-final h2 { color: #fff; }
.ws-final p { color: rgba(255, 255, 255, .85); margin: .8rem auto 1.8rem; max-width: 36rem; }
.ws-final .ws-cta-row { justify-content: center; }

/* Footer */
.ws-footer { background: #0b1220; color: #cbd5e1; padding: 4rem 0 calc(2rem + var(--safe-bottom)); margin-top: 0; }
.ws-footer .ws-brand { color: #fff; }
.ws-footer .ws-brand b { color: #fff; }
.ws-footer .ws-brand span { color: #a5b4fc; }
.ws-footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 2rem; }
.ws-footer-about p { margin: .9rem 0 1.2rem; font-size: .93rem; color: #94a3b8; max-width: 22rem; }
.ws-footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; margin-bottom: .9rem; }
.ws-footer ul { list-style: none; padding: 0; display: grid; gap: .5rem; }
.ws-footer ul a { color: #cbd5e1; text-decoration: none; font-size: .93rem; }
.ws-footer ul a:hover { color: #fff; text-decoration: underline; }
.ws-footer .ws-btn-outline { background: transparent; color: #fff !important; border-color: #334155; }
.ws-fine { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid #1e293b; font-size: .82rem; color: #64748b; }
@media (max-width: 900px) { .ws-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ws-footer-about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { .ws-rotate-word { animation: none; } html { scroll-behavior: auto; } }

/* ---- Hero phone demo ---- */
.pd { width: 100%; }
.pd-tabs { display: flex; gap: .35rem; overflow-x: auto; scrollbar-width: none; padding: .25rem; margin: 0 -.25rem .9rem; }
.pd-tabs::-webkit-scrollbar { display: none; }
.pd-tabs button { flex-shrink: 0; border: 1px solid var(--ws-line); background: #fff; color: var(--ws-text); border-radius: 999px; padding: .45rem .9rem; font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; min-height: 40px; }
.pd-tabs button.on { background: var(--ws-ink); color: #fff; border-color: var(--ws-ink); }
.pd-stage { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 1rem; align-items: start; }
.pd-phone { margin: 0; background: #0b1220; border-radius: 40px; padding: 10px; box-shadow: 0 30px 60px -20px rgba(15, 23, 42, .45), 0 0 0 1px rgba(15, 23, 42, .08); max-width: 360px; width: 100%; justify-self: center; }
.pd-top { display: flex; align-items: center; gap: .6rem; background: #1f2c34; color: #fff; border-radius: 30px 30px 0 0; padding: 1rem 1rem .8rem; }
.pd-top b { display: block; font-size: .95rem; }
.pd-top small { font-size: .74rem; color: #a7b4bd; }
.pd-avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .8rem; flex-shrink: 0; }
.pd-chat { height: 440px; overflow-y: auto; scrollbar-width: none; background: var(--ws-chat); border-radius: 0 0 30px 30px; padding: .9rem .7rem 1.2rem; display: flex; flex-direction: column; gap: .45rem; }
.pd-chat::-webkit-scrollbar { display: none; }
.pd-msg { max-width: 84%; padding: .5rem .7rem; border-radius: 12px; font-size: .86rem; line-height: 1.4; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); display: flex; flex-direction: column; gap: .35rem; animation: pd-pop .28s ease-out; color: #111b21; }
.pd-msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 4px; }
.pd-msg.out { align-self: flex-end; background: var(--ws-bubble-out); border-top-right-radius: 4px; }
@keyframes pd-pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.pd-btns { display: flex; flex-direction: column; margin: .1rem -.7rem -.5rem; }
.pd-btns span { border-top: 1px solid #e9edef; text-align: center; color: #008069; font-weight: 600; padding: .45rem; font-size: .84rem; }
.pd-card { display: flex; flex-direction: column; margin: -.5rem -.7rem; overflow: hidden; border-radius: 12px; }
.pd-card-img { height: 86px; }
.pd-card-body { display: flex; flex-direction: column; padding: .5rem .7rem .3rem; }
.pd-card-body small, .pd-cart small { color: #667781; font-size: .76rem; }
.pd-cta { border-top: 1px solid #e9edef; text-align: center; color: #008069; font-weight: 600; padding: .45rem; font-size: .84rem; }
.pd-cta.light { border-top-color: rgba(0, 0, 0, .06); color: #667781; font-weight: 500; font-size: .74rem; padding: .3rem 0 0; margin: 0; text-align: left; }
.pd-cart { display: flex; flex-direction: column; gap: .1rem; }
.pd-amt { font-size: .95rem; }
.pd-pdf { display: flex; align-items: center; gap: .5rem; background: #f0f2f5; border-radius: 8px; padding: .5rem .6rem; font-size: .8rem; font-weight: 600; }
.pd-pdf-icon { background: #dc2626; color: #fff; font-size: .62rem; font-weight: 800; border-radius: 4px; padding: .2rem .3rem; }
.pd-typing { display: inline-flex; gap: 4px; padding: .65rem .8rem; border-radius: 12px; background: #fff; width: fit-content; }
.pd-typing.out { align-self: flex-end; background: var(--ws-bubble-out); }
.pd-typing i { width: 6px; height: 6px; border-radius: 50%; background: #8696a0; animation: pd-dot 1s infinite ease-in-out; }
.pd-typing i:nth-child(2) { animation-delay: .15s; } .pd-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes pd-dot { 0%, 80%, 100% { opacity: .3; transform: none; } 40% { opacity: 1; transform: translateY(-3px); } }
.pd-log { background: #fff; border: 1px solid var(--ws-line); border-radius: 18px; padding: 1rem; box-shadow: var(--ws-shadow); font-size: .84rem; position: sticky; top: 90px; }
.pd-log-title { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ws-ink); font-size: .86rem; margin-bottom: .6rem; }
.pd-live { width: 8px; height: 8px; border-radius: 50%; background: #16a34a; box-shadow: 0 0 0 4px #dcfce7; flex-shrink: 0; }
.pd-log ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; min-height: 180px; align-content: start; }
.pd-log li { display: flex; gap: .45rem; color: var(--ws-text); line-height: 1.35; animation: pd-pop .3s ease-out; }
.pd-log li::before { content: '✓'; color: #16a34a; font-weight: 800; }
.pd-log li.pd-wait { color: var(--ws-subtle); }
.pd-log li.pd-wait::before { content: '…'; color: var(--ws-subtle); }
.pd-pause { margin-top: .8rem; border: 0; background: none; color: var(--ws-brand); font: inherit; font-weight: 600; font-size: .8rem; cursor: pointer; padding: .3rem 0; min-height: 32px; }
.pd-pause:disabled { color: var(--ws-subtle); cursor: default; }
.pd-note { margin-top: .8rem; }
@media (max-width: 1100px) { .pd-stage { grid-template-columns: minmax(0, 1fr); } .pd-log { position: static; max-width: 360px; width: 100%; justify-self: center; } .pd-log ul { min-height: 0; } }
@media (max-width: 420px) { .pd-chat { height: 400px; } }
@media (prefers-reduced-motion: reduce) { .pd-msg, .pd-log li { animation: none; } .pd-typing i { animation: none; } }

/* ---- Mini demos ---- */
.md-tabs { display: flex; gap: .3rem; background: var(--ws-soft); border-radius: 10px; padding: 3px; margin-bottom: .6rem; font-size: .8rem; font-weight: 600; }
.md-tabs span { flex: 1; text-align: center; padding: .35rem; border-radius: 8px; color: var(--ws-subtle); }
.md-tabs span.on { background: #fff; color: var(--ws-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .06); }
.md-inbox ul { list-style: none; padding: 0; margin: 0; }
/* The feature-list check bullet (.ws-feature li::before) must not leak into these previews: as an extra grid/flex item it pushes the row contents out of place. */
.md-inbox li::before, .md-commerce li::before { content: none; display: none; }
.md-inbox li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: .7rem; padding: .7rem .3rem; border-bottom: 1px solid var(--ws-line); }
.md-inbox li:last-child { border-bottom: 0; }
.md-av { grid-row: 1 / 3; width: 38px; height: 38px; border-radius: 50%; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .85rem; }
.md-main { display: flex; flex-direction: column; min-width: 0; }
.md-main b { font-size: .9rem; color: var(--ws-ink); }
.md-main small { font-size: .82rem; color: var(--ws-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.md-meta { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; font-size: .72rem; color: var(--ws-subtle); }
.md-meta i { font-style: normal; background: var(--ws-brand); color: #fff; border-radius: 999px; padding: 0 .4rem; font-size: .7rem; font-weight: 700; }
.md-chips { grid-column: 2 / 4; display: flex; gap: .35rem; margin-top: .3rem; }
.md-chips em { font-style: normal; font-size: .7rem; font-weight: 600; border: 1px solid var(--ws-line); border-radius: 999px; padding: .05rem .5rem; color: var(--ws-muted); }
.md-chips em.ok { color: var(--ws-green); border-color: #bbf7d0; }
.md-commerce ol { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .6rem; }
.md-commerce li { display: flex; gap: .7rem; align-items: flex-start; }
.md-commerce li > b { width: 28px; height: 28px; border-radius: 50%; background: var(--ws-tint); color: var(--ws-brand); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.md-commerce li span { display: flex; flex-direction: column; }
.md-commerce li small { color: var(--ws-muted); font-size: .84rem; }
.md-invoice { border: 1px dashed var(--ws-line); border-radius: 12px; padding: .8rem 1rem; background: var(--ws-soft); font-size: .88rem; }
.md-invoice > div { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.md-invoice dl { display: grid; gap: .25rem; margin: 0; }
.md-invoice dl div { display: flex; justify-content: space-between; color: var(--ws-muted); }
.md-invoice dl div.t { border-top: 1px solid var(--ws-line); padding-top: .35rem; color: var(--ws-ink); font-weight: 700; }
.md-invoice dd { margin: 0; }
.md-funnel .md-bar { display: grid; grid-template-columns: 80px minmax(0, 1fr) 54px; gap: .7rem; align-items: center; font-size: .86rem; margin-bottom: .55rem; }
.md-funnel .md-bar > div { height: 12px; background: var(--ws-soft); border-radius: 999px; overflow: hidden; }
.md-funnel .md-bar i { display: block; height: 100%; background: linear-gradient(90deg, #6366f1, #4f46e5); border-radius: 999px; }
.md-funnel .md-bar b { text-align: right; color: var(--ws-ink); }
.md-funnel .ws-note { margin-top: .6rem; }
.md-flow { display: flex; flex-direction: column; align-items: center; text-align: center; }
.md-node { background: #fff; border: 1.5px solid var(--ws-line); border-radius: 12px; padding: .5rem .8rem; font-size: .84rem; font-weight: 600; color: var(--ws-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.md-node.start { background: var(--ws-tint); border-color: #c7d2fe; }
.md-node.human { border-color: #fed7aa; background: #fff7ed; }
.md-line { width: 2px; height: 18px; background: #cbd5e1; margin: 0 auto; }
.md-split { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; width: 100%; }
.md-auto { display: grid; gap: .4rem; margin-top: 1rem; width: 100%; text-align: left; }
.md-auto span { background: var(--ws-soft); border-radius: 10px; padding: .5rem .7rem; font-size: .84rem; color: var(--ws-text); }
.md-ai-qs { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .7rem; }
.md-ai-qs button { border: 1px solid var(--ws-line); background: #fff; border-radius: 999px; padding: .4rem .8rem; font: inherit; font-size: .82rem; cursor: pointer; min-height: 38px; color: var(--ws-text); }
.md-ai-qs button.on { border-color: var(--ws-brand); color: var(--ws-brand); background: var(--ws-tint); }
.md-ai-chat { height: auto; min-height: 130px; border-radius: 14px; }
.md-source { font-size: .82rem; color: var(--ws-green); margin-top: .6rem; font-weight: 600; }
.md-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin-bottom: .8rem; }
.md-kpis div { background: var(--ws-soft); border-radius: 12px; padding: .6rem .7rem; }
.md-kpis small { display: block; font-size: .74rem; color: var(--ws-subtle); }
.md-kpis b { font-size: 1.2rem; color: var(--ws-ink); }
.md-code { background: #0b1220; border-radius: 18px; overflow: hidden; box-shadow: var(--ws-shadow); }
.md-code-bar { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .6rem .9rem; background: #111a2e; color: #94a3b8; font-size: .78rem; font-family: 'JetBrains Mono', ui-monospace, monospace; }
.md-code-bar button { border: 1px solid #334155; background: none; color: #e2e8f0; border-radius: 8px; padding: .25rem .7rem; font: inherit; cursor: pointer; min-height: 32px; }
.md-code pre { margin: 0; padding: 1.1rem; overflow-x: auto; color: #e2e8f0; font-size: .8rem; line-height: 1.65; font-family: 'JetBrains Mono', ui-monospace, monospace; }
@media (max-width: 480px) { .md-split { grid-template-columns: minmax(0, 1fr); } .md-split .md-line { display: none; } .md-split > div { margin-top: .4rem; } }
.ws-steps { list-style: none; padding: 0; margin: 0; }
.ws-step { width: 40px; height: 40px; border-radius: 12px; background: var(--ws-tint); color: var(--ws-brand); display: grid; place-items: center; font-weight: 800; margin-bottom: 1rem; }
.ws-hero-sm { padding-bottom: clamp(2.5rem, 6vw, 4rem); }
.pr-toggle { display: flex; justify-content: center; gap: .3rem; background: var(--ws-soft); border: 1px solid var(--ws-line); border-radius: 999px; padding: 4px; width: fit-content; margin: 0 auto 1.8rem; }
.pr-toggle button { border: 0; background: none; border-radius: 999px; padding: .5rem 1.1rem; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; color: var(--ws-muted); min-height: 40px; }
.pr-toggle button.on { background: #fff; color: var(--ws-ink); box-shadow: 0 1px 3px rgba(15, 23, 42, .12); }
.pr-toggle small { color: var(--ws-green); font-weight: 700; margin-left: .25rem; }
.pr-plans { max-width: 860px; margin: 0 auto; }
.nf-code { font-size: clamp(4rem, 14vw, 7rem); font-weight: 800; letter-spacing: -.05em; background: linear-gradient(135deg, #4f46e5, #16a34a); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; margin-bottom: 1rem; }
.nf-links { list-style: none; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.5rem; margin-top: 2rem; }
.nf-links a { color: var(--ws-brand); font-weight: 600; }

/* Buttons and containers keep the native [hidden] behaviour (used to swap "Start free" / "Open dashboard"). */
.ws [hidden], [hidden] { display: none !important; }
.pd-top > span:not(.pd-avatar) { display: flex; flex-direction: column; line-height: 1.3; }
.pd-top b { display: block; }
.pd-log-title { line-height: 1.35; }

.ws-soon { display: inline-block; vertical-align: middle; font-size: .68rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: 999px; padding: .1rem .55rem; margin-left: .4rem; }

/* ---- inner pages ---- */
.ws-page-hero { background: linear-gradient(180deg, #f8fafc, #fff); }
.ws-page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); }
.ws-crumbs { margin-bottom: 1.2rem; font-size: .86rem; }
.ws-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .3rem; padding: 0; color: var(--ws-subtle); }
.ws-crumbs li + li::before { content: '/'; margin-right: .3rem; color: var(--ws-line); }
.ws-crumbs a { color: var(--ws-muted); text-decoration: none; } .ws-crumbs a:hover { color: var(--ws-brand); text-decoration: underline; }
.ws-linkcards { align-items: stretch; }
.ws-linkcard { text-decoration: none; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ws-linkcard:hover { border-color: var(--ws-brand); box-shadow: var(--ws-shadow); transform: translateY(-2px); }
.ws-linkcard h3 { color: var(--ws-ink); }
.ws-checklist { list-style: none; padding: 0; display: grid; gap: .7rem; }
.ws-checklist li { display: flex; gap: .6rem; }
.ws-checklist li::before { content: ''; margin-top: .3rem; width: 18px; height: 18px; border-radius: 50%; background: var(--ws-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 12 4 4 8-8' fill='none' stroke='%234f46e5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; flex-shrink: 0; }
.ws-steplist { list-style: none; padding: 0; display: grid; gap: 1.2rem; }
.ws-steplist li { display: flex; gap: 1rem; align-items: flex-start; }
.ws-steplist .ws-step { margin-bottom: 0; flex-shrink: 0; }
.ws-steplist p { color: var(--ws-muted); margin-top: .2rem; }
.ws-callout { background: var(--ws-tint); border: 1px solid #c7d2fe; border-radius: 12px; padding: .9rem 1.1rem; color: var(--ws-text); }
.ws-prose section + section { margin-top: 2rem; }
.ws-prose h2 { font-size: 1.5rem; margin-bottom: .7rem; }
.ws-prose p { font-size: 1.06rem; margin-top: .8rem; color: var(--ws-text); }
.ws-glossary { display: grid; gap: 1.2rem; }
.ws-glossary dt { font-weight: 700; font-size: 1.05rem; } .ws-glossary dt a { color: var(--ws-brand); text-decoration: none; } .ws-glossary dd { color: var(--ws-muted); margin-top: .2rem; }
.ws-compare th[scope=row] { background: var(--ws-soft); width: 16%; font-size: .9rem; }
.ws-compare { min-width: 760px; }
.ws-linkbtn { border: 0; background: none; color: #cbd5e1; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; min-height: 32px; }
.ws-footer-nl { margin-top: 1.2rem; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #fff; font-weight: 700; }
.ws-footer-grid { grid-template-columns: 1.7fr repeat(5, minmax(0, 1fr)); }
@media (max-width: 1100px) { .ws-footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ws-footer-about { grid-column: 1 / -1; } }
@media (max-width: 560px) { .ws-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* newsletter */
.nl { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; max-width: 460px; }
.nl input[type=email] { flex: 1 1 200px; min-width: 0; min-height: 44px; border: 1.5px solid var(--ws-line); border-radius: 999px; padding: .5rem 1rem; font: inherit; font-size: 1rem; color: var(--ws-ink); background: #fff; }
.nl input[type=email]:focus { outline: 3px solid var(--ws-brand); outline-offset: 2px; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.nl-msg { flex-basis: 100%; font-size: .88rem; min-height: 1.3em; } .nl-msg.good { color: #16a34a; } .nl-msg.bad { color: #dc2626; }
.nl-compact input[type=email] { background: #111a2e; border-color: #334155; color: #fff; } .nl-compact .nl-msg { color: #94a3b8; } .nl-compact .nl-msg.good { color: #4ade80; } .nl-compact .nl-msg.bad { color: #fca5a5; }

/* tools */
.tl-card { padding: clamp(1.1rem, 3vw, 2rem); }
.tl { display: grid; gap: 1rem; }
.tl-field { display: grid; gap: .35rem; font-weight: 600; font-size: .92rem; color: var(--ws-ink); }
.tl-field input, .tl-field select, .tl-field textarea { min-height: 46px; border: 1.5px solid var(--ws-line); border-radius: 12px; padding: .55rem .9rem; font: inherit; font-size: 1rem; font-weight: 400; color: var(--ws-ink); background: #fff; width: 100%; }
.tl-field input[type=color] { padding: .2rem; } .tl-field textarea { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .8rem; }
.tl-field input:focus, .tl-field select:focus, .tl-field textarea:focus { outline: 3px solid var(--ws-brand); outline-offset: 1px; }
.tl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } @media (max-width: 560px) { .tl-row { grid-template-columns: 1fr; } }
.tl-out { display: grid; gap: .25rem; background: var(--ws-soft); border-radius: 12px; padding: .8rem 1rem; }
.tl-out span { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ws-subtle); font-weight: 700; }
.tl-out output { font-weight: 700; color: var(--ws-ink); font-size: 1.15rem; word-break: break-all; }
.tl-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.tl-actions a[aria-disabled=true] { opacity: .5; pointer-events: none; }
.tl-qr { display: grid; place-items: center; min-height: 220px; background: var(--ws-soft); border-radius: 14px; padding: 1rem; color: var(--ws-subtle); text-align: center; }
.tl-qr svg { width: min(280px, 100%); height: auto; background: #fff; border-radius: 8px; }
.tl-preview { background: var(--ws-soft); border-radius: 12px; padding: 1rem; min-height: 70px; }
.tl-error { color: #dc2626; font-size: .9rem; min-height: 1.2em; }
.tl-verdict { padding: 1rem; border-radius: 12px; background: var(--ws-soft); font-weight: 600; } .tl-verdict.ok { background: #dcfce7; color: #166534; } .tl-verdict.bad { background: #fee2e2; color: #991b1b; }

/* cookie consent */
/* The banner sits outside .ws, so it needs its own copy of the colour variables (otherwise Accept is white on white). */
.ck { --ws-ink: #0b1220; --ws-text: #1e293b; --ws-muted: #475569; --ws-subtle: #64748b; --ws-line: #e2e8f0; --ws-soft: #f8fafc; --ws-tint: #eef2ff; --ws-brand: #4f46e5; --ws-brand-dark: #3730a3; --ws-radius: 16px; color: var(--ws-text); }
.ck { position: fixed; left: max(1rem, var(--safe-left)); right: max(1rem, var(--safe-right)); bottom: calc(1rem + var(--safe-bottom)); z-index: 90; max-width: 720px; margin: 0 auto; background: #fff; border: 1px solid var(--ws-line); border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 23, 42, .22); padding: 1.1rem 1.2rem; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.ck-text { flex: 1 1 320px; } .ck-text strong { color: var(--ws-ink); } .ck-text p { font-size: .9rem; color: var(--ws-muted); margin-top: .2rem; } .ck-text a { color: var(--ws-brand); }
.ck-actions { display: flex; gap: .6rem; } .ck-actions .ws-btn { min-width: 110px; }
@media (max-width: 520px) { .ck-actions { width: 100%; } .ck-actions .ws-btn { flex: 1; } }

.nl-hp { font-size: 16px; }

.ws-hero-sm + .ws-section, .ws-hero-sm + article.ws-section { padding-top: clamp(1.5rem, 4vw, 2.75rem); }
.ws-callout { margin-bottom: 2rem; }
.ws-callout .ws-soon { margin: 0 .35rem 0 0; }

/* UPI pay page */
.pay { padding: 2rem 1.25rem; display: flex; flex-direction: column; gap: .8rem; align-items: center; }
.pay-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pay-id { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; justify-content: center; margin: 1rem 0; overflow-wrap: anywhere; }
.pay-qr { width: min(240px, 70vw); margin: 0 auto 1rem; } .pay-qr svg { width: 100%; height: auto; display: block; }
