/* site.css — shared style of the public site (landing, terms, privacy, API docs) */
:root {
    --ink: #0E2A22;
    --ink-2: #29463C;
    --muted: #5B6F66;
    --paper: #F3F6F2;
    --surface: #FFFFFF;
    --line: #D9E2DC;
    --green: #0B7A43;          /* brand green */
    --green-hover: #08643A;
    --signal: #25B865;
    --bubble: #D9F5D3;
    --thread: #E6EDE7;
    --read: #2A93D5;
    --band-text: #E3EEE8;
    --band-muted: #9CB7AB;
    --band-line: rgba(255,255,255,.12);
    --wa: #25B865;            /* WhatsApp green: chat demo, ticks, live dot */
    --wa-ink: #0E2A22;
    --wa-bubble: #D9F5D3;
    --r-s: 10px;
    --r-m: 16px;
    --r-l: 24px;
    --wrap: 1200px;
    --font: 'Readex Pro', 'Noto Sans Devanagari', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink-2);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.65;
    font-weight: 400;
    -webkit-font-smoothing: antialiased;
}
html[dir="rtl"] body { line-height: 1.85; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.01em; }
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3 { letter-spacing: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--bubble); color: var(--ink); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }
.sec { padding-block: 96px; }
.sec--white { background: var(--surface); }
.sec--ink { background: var(--ink); color: var(--band-text); }
.sec--ink h2, .sec--ink h3, .sec--ink h4 { color: #fff; }
.sec-head { max-width: 640px; margin-bottom: 56px; }
.sec-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.25; }
html[dir="rtl"] .sec-head h2 { line-height: 1.5; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.05rem; }
.sec--ink .sec-head p { color: var(--band-muted); }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    font: 600 1rem/1 var(--font); padding: 16px 26px; border-radius: 999px;
    border: 1.5px solid transparent; cursor: pointer;
    transition: background-color .2s, border-color .2s, color .2s;
    white-space: nowrap;
}
.btn-sm { padding: 11px 18px; font-size: .92rem; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-hover); }
.btn-ghost { border-color: var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bubble); }
.btn i { font-size: .8em; }

/* ===== Header ===== */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(243,246,242,.9);
    backdrop-filter: saturate(1.4) blur(12px);
    -webkit-backdrop-filter: saturate(1.4) blur(12px);
    border-bottom: 1px solid var(--line);
}
.nav-bar { height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 48px; width: auto; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: .02em; line-height: 1; }
.brand-sub { display: block; font-size: .7rem; color: var(--muted); margin-top: 4px; font-weight: 400; letter-spacing: 0; }
.nav-links { display: flex; gap: 26px; font-size: .95rem; color: var(--ink-2); margin-inline-start: 12px; }
.nav-links a { padding-block: 6px; border-bottom: 2px solid transparent; transition: border-color .2s, color .2s; }
.nav-links a:hover { color: var(--ink); border-color: var(--signal); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-inline-start: auto; }
.link-plain { font-weight: 500; font-size: .95rem; padding: 10px 14px; color: var(--ink); }
.link-plain:hover { color: var(--green); }

.dropdown { position: relative; }
.dropdown > summary {
    list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px;
    padding: 9px 12px; border-radius: 999px; font-size: .92rem; color: var(--ink);
    border: 1px solid transparent;
}
.dropdown > summary::-webkit-details-marker { display: none; }
.dropdown > summary:hover, .dropdown[open] > summary { border-color: var(--line); background: var(--surface); }
.dropdown-menu {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 200px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m);
    padding: 6px; box-shadow: 0 18px 40px -18px rgba(14,42,34,.35);
}
.dropdown-menu a {
    display: flex; justify-content: space-between; align-items: center;
    padding: 9px 12px; border-radius: 10px; font-size: .95rem;
}
.dropdown-menu a:hover { background: var(--paper); }
.dropdown-menu a[aria-current="true"] { color: var(--green); font-weight: 600; }

.menu-toggle { display: none; }
.mobile-nav { display: none; }

@media (max-width: 1020px) {
    .nav-links { display: none; }
    .menu-toggle {
        display: inline-flex; align-items: center; justify-content: center;
        width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--line);
        background: var(--surface); color: var(--ink); cursor: pointer;
    }
    .mobile-nav.is-open { display: block; border-top: 1px solid var(--line); background: var(--surface); }
    .mobile-nav a { display: block; padding: 14px 24px; border-bottom: 1px solid var(--line); color: var(--ink); }
}
@media (max-width: 640px) {
    .link-plain, .lang-name, .brand-sub { display: none; }
    .nav-actions .btn-sm { padding: 10px 14px; }
}

/* ===== Ads ===== */
.ad-slot { padding-top: 24px; }
.ad-block { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ad-block img { border-radius: var(--r-m); border: 1px solid var(--line); }
.ad-html { width: 100%; overflow: hidden; }
.offers { margin-top: 56px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--r-l); text-align: center; }
.offers h4 { font-size: .9rem; color: var(--muted); font-weight: 500; margin-bottom: 16px; }

/* ===== Hero ===== */
.hero { padding-block: 72px 96px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--ink);
    padding: 7px 14px 7px 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
    margin-bottom: 28px;
}
html[dir="rtl"] .hero-badge { padding: 7px 10px 7px 14px; }
.hero-badge i { color: var(--signal); font-size: 1.05rem; }
.hero h1 {
    font-size: clamp(2.3rem, 4.6vw, 3.6rem); line-height: 1.12; font-weight: 600;
    letter-spacing: -0.025em; margin-bottom: 24px; text-wrap: balance;
}
html[dir="rtl"] .hero h1 { line-height: 1.45; letter-spacing: 0; }
.hero h1 span { display: block; font-weight: 300; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34em; margin-bottom: 36px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; }
.value-props { display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: .92rem; color: var(--ink-2); }
.value-props li { display: flex; align-items: center; gap: 8px; }
.value-props .ticks { width: 17px; color: var(--signal); }

/* Hero visual: a live order thread */
.thread {
    position: relative; background: var(--thread); border-radius: 28px; overflow: hidden;
    border: 1px solid var(--line);
    box-shadow: 0 40px 80px -40px rgba(14,42,34,.45);
    max-width: 460px; margin-inline-start: auto; width: 100%;
}
.thread-head {
    display: flex; align-items: center; gap: 12px; padding: 16px 20px;
    background: var(--ink); color: #fff;
}
.thread-avatar {
    width: 40px; height: 40px; border-radius: 50%; background: var(--signal);
    display: grid; place-items: center; color: var(--ink); font-size: 1rem; flex-shrink: 0;
}
.thread-name { font-weight: 600; font-size: 1rem; line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.thread-name .fa-circle-check { color: var(--signal); font-size: .85rem; }
.thread-status { font-size: .78rem; color: var(--band-muted); line-height: 1.3; }
.thread-body { padding: 18px 16px 22px; display: flex; flex-direction: column; gap: 10px; min-height: 440px; }
.day-pill {
    align-self: center; font-size: .75rem; color: var(--muted); background: rgba(255,255,255,.75);
    padding: 3px 12px; border-radius: 8px;
}
.event {
    align-self: center; display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; color: var(--ink-2); background: #FFF6D9; border: 1px solid #F1E2AE;
    padding: 5px 12px; border-radius: 999px;
}
.event i { color: #96588A; }
.event--ship i { color: var(--green); }
.bubble {
    max-width: 84%; padding: 9px 12px 7px; border-radius: 14px; font-size: .93rem; line-height: 1.5;
    color: var(--ink); box-shadow: 0 1px 1px rgba(14,42,34,.08);
}
html[dir="rtl"] .bubble { line-height: 1.75; }
.bubble--out { align-self: flex-end; background: var(--bubble); border-end-end-radius: 4px; }
.bubble--in { align-self: flex-start; background: #fff; border-end-start-radius: 4px; }
.bubble-meta {
    display: flex; justify-content: flex-end; align-items: center; gap: 4px;
    font-size: .7rem; color: var(--muted); margin-top: 2px; direction: ltr;
}
.ticks { width: 16px; height: auto; display: inline-block; }
.bubble .ticks { color: #8FA39A; }

/* One orchestrated load moment: messages arrive, ticks turn blue */
.thread-body > * { opacity: 0; transform: translateY(10px); animation: arrive .45s cubic-bezier(.2,.8,.2,1) forwards; }
.thread-body > *:nth-child(1) { animation-delay: .15s; }
.thread-body > *:nth-child(2) { animation-delay: .5s; }
.thread-body > *:nth-child(3) { animation-delay: .9s; }
.thread-body > *:nth-child(4) { animation-delay: 1.9s; }
.thread-body > *:nth-child(5) { animation-delay: 2.3s; }
.thread-body > *:nth-child(6) { animation-delay: 3.3s; }
.thread-body > *:nth-child(7) { animation-delay: 4.1s; }
.bubble .ticks--read { animation: readTick .3s ease forwards; }
.thread-body > *:nth-child(3) .ticks--read { animation-delay: 1.6s; }
.thread-body > *:nth-child(5) .ticks--read { animation-delay: 3.0s; }
.thread-body > *:nth-child(7) .ticks--read { animation-delay: 4.8s; }
@keyframes arrive { to { opacity: 1; transform: none; } }
@keyframes readTick { to { color: var(--read); } }
@media (prefers-reduced-motion: reduce) {
    .thread-body > * { opacity: 1; transform: none; }
    .bubble .ticks--read { color: var(--read); }
}

@media (max-width: 960px) {
    .hero { padding-block: 48px 72px; }
    .hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .thread { margin-inline: auto; }
}

/* ===== Platforms strip ===== */
.platforms { border-block: 1px solid var(--line); background: var(--surface); }
.platforms .wrap { display: flex; align-items: center; gap: 24px 48px; flex-wrap: wrap; padding-block: 28px; }
.platforms-title { font-size: .92rem; color: var(--muted); }
.platforms-list { display: flex; flex-wrap: wrap; gap: 20px 44px; align-items: center; }
.platforms-list li { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.platforms-list i, .platforms-list svg { font-size: 1.6rem; width: 26px; height: 26px; }

/* ===== Live stats band ===== */
.live-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: end; }
.live-head .live-dot {
    display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; color: var(--band-muted); margin-bottom: 16px;
}
.live-dot::before {
    content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--signal);
    box-shadow: 0 0 0 0 rgba(37,184,101,.6); animation: pulse 2s infinite;
}
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(37,184,101,0); } 100% { box-shadow: 0 0 0 0 rgba(37,184,101,0); } }
.live-head h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); line-height: 1.25; margin-bottom: 12px; }
html[dir="rtl"] .live-head h2 { line-height: 1.5; }
.live-head p { color: var(--band-muted); }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); margin-top: 40px; border-top: 1px solid var(--band-line); }
.stat { padding: 24px 0; border-bottom: 1px solid var(--band-line); }
.stat:nth-child(odd) { padding-inline-end: 24px; border-inline-end: 1px solid var(--band-line); }
.stat:nth-child(even) { padding-inline-start: 24px; }
.stat-num { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 600; color: #fff; line-height: 1.15; font-variant-numeric: tabular-nums; direction: ltr; text-align: start; }
html[dir="rtl"] .stat-num { text-align: right; }
.stat-label { display: block; font-size: .92rem; color: var(--band-text); margin-top: 6px; }
.stat-note { display: block; font-size: .8rem; color: var(--band-muted); }
.chart-card { background: rgba(255,255,255,.04); border: 1px solid var(--band-line); border-radius: var(--r-l); padding: 24px; }
.chart-card h3 { font-size: 1rem; font-weight: 500; color: var(--band-text); margin-bottom: 16px; }
.chart-box { height: 260px; position: relative; }
@media (max-width: 960px) { .live-grid { grid-template-columns: 1fr; gap: 40px; } }

/* ===== Why choose ===== */
.why-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 64px; }
.why-item { display: grid; grid-template-columns: 52px 1fr; gap: 20px; padding-block: 32px; border-top: 1px solid var(--line); }
.icon-chip {
    width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center;
    background: var(--bubble); color: var(--green); font-size: 1.25rem;
}
.why-item h3 { font-size: 1.2rem; margin-bottom: 6px; }
.why-item p { color: var(--muted); }
@media (max-width: 760px) { .why-grid { grid-template-columns: 1fr; } }

/* ===== How it works (a real sequence) ===== */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; counter-reset: step; position: relative; }
.steps::before {
    content: ""; position: absolute; top: 22px; inset-inline: 22px calc(25% - 10px);
    border-top: 2px dashed var(--line);
}
.step { position: relative; counter-increment: step; }
.step-num {
    width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
    background: var(--surface); border: 2px solid var(--green); color: var(--green);
    font-weight: 600; margin-bottom: 20px; position: relative;
}
.step:last-child .step-num { background: var(--green); color: #fff; }
.step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .96rem; }
@media (max-width: 860px) {
    .steps { grid-template-columns: 1fr; gap: 0; }
    .steps::before { inset-inline: 21px auto; top: 22px; bottom: 22px; border-top: 0; border-inline-start: 2px dashed var(--line); }
    .step { display: grid; grid-template-columns: 44px 1fr; gap: 20px; padding-bottom: 32px; }
    .step-num { margin: 0; }
}

/* ===== Integrations ===== */
.integrations { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-l); background: var(--surface); overflow: hidden; }
.integration { padding: 36px 32px; display: flex; flex-direction: column; }
.integration + .integration { border-inline-start: 1px solid var(--line); }
.integration-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.integration-logo { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; }
.integration-logo svg { width: 28px; height: 28px; }
.logo-woo { background: #F1E8F0; color: #54B384; }
.logo-shopify { background: #EAF4E1; color: #5E8E3E; }
.logo-salla { background: #E1F3F1; color: #004D5A; }
.pill { font-size: .78rem; padding: 4px 12px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.integration h3 { font-size: 1.3rem; margin-bottom: 16px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; padding-block: 6px; font-size: .96rem; }
.check-list .ticks { width: 17px; flex-shrink: 0; margin-top: .45em; color: var(--signal); }
.integration .check-list { margin-bottom: 28px; }
.text-link { margin-top: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--green); font-size: .95rem; }
.text-link:hover { color: var(--green-hover); text-decoration: underline; text-underline-offset: 4px; }
.text-link i { font-size: .7em; }
@media (max-width: 900px) {
    .integrations { grid-template-columns: 1fr; }
    .integration + .integration { border-inline-start: 0; border-top: 1px solid var(--line); }
}

/* ===== Features ===== */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 48px; }
.feature { padding-block: 28px 32px; border-top: 1px solid var(--line); }
.feature .icon-chip { width: 44px; height: 44px; border-radius: 14px; font-size: 1.05rem; margin-bottom: 18px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .96rem; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ===== Multi-language ===== */
.lang-panel { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.lang-panel h2 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; margin-bottom: 14px; }
html[dir="rtl"] .lang-panel h2 { line-height: 1.55; }
.lang-panel > div > p { color: var(--muted); margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .9rem; padding: 6px 14px; border-radius: 999px; background: var(--paper); border: 1px solid var(--line); color: var(--ink); }
.code {
    background: var(--ink); color: var(--band-text); border-radius: var(--r-l); padding: 24px 26px;
    font: 400 .9rem/1.8 ui-monospace, 'SF Mono', Menlo, Consolas, monospace; direction: ltr; text-align: left;
    overflow-x: auto; white-space: pre;
}
.code-label { color: var(--band-muted); font-family: var(--font); font-size: .82rem; display: block; white-space: normal; }
html[dir="rtl"] .code-label { direction: rtl; text-align: right; }
.code .k { color: #9FE3BB; } .code .s { color: #FFD98A; } .code .p { color: var(--band-muted); }
@media (max-width: 900px) { .lang-panel { grid-template-columns: 1fr; gap: 32px; } }

/* ===== Security ===== */
.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; }
.sec-item { border-top: 1px solid var(--band-line); padding-top: 28px; }
.sec-item i { color: var(--signal); font-size: 1.4rem; margin-bottom: 18px; display: block; }
.sec-item h3 { font-size: 1.15rem; margin-bottom: 8px; }
.sec-item p { color: var(--band-muted); font-size: .96rem; }
@media (max-width: 860px) { .sec-grid { grid-template-columns: 1fr; gap: 8px; } }

/* ===== Pricing ===== */
.price-card {
    display: grid; grid-template-columns: .85fr 1.15fr; background: var(--surface);
    border: 1px solid var(--line); border-radius: var(--r-l); overflow: hidden;
}
.price-main { padding: 44px; background: var(--bubble); display: flex; flex-direction: column; gap: 8px; }
.price-main .pill { align-self: flex-start; background: #fff; border-color: transparent; color: var(--green); font-weight: 600; }
.price-amount { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 600; color: var(--ink); line-height: 1.1; margin-top: 16px; }
.price-period { color: var(--ink-2); margin-bottom: 28px; }
.price-main .btn { margin-top: auto; align-self: stretch; }
.price-features { padding: 44px; }
.price-features .check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 4px 28px; }
@media (max-width: 860px) {
    .price-card { grid-template-columns: 1fr; }
    .price-main, .price-features { padding: 32px 24px; }
    .price-features .check-list { grid-template-columns: 1fr; }
}

/* ===== FAQ ===== */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-grid .sec-head { position: sticky; top: 110px; margin: 0; }
.faq-list details { border-top: 1px solid var(--line); }
.faq-list details:last-child { border-bottom: 1px solid var(--line); }
.faq-list summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 24px;
    align-items: center; padding-block: 22px; font-weight: 500; color: var(--ink); font-size: 1.05rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-icon {
    width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
    border: 1px solid var(--line); color: var(--green); transition: transform .25s, background-color .25s;
}
.faq-list details[open] .faq-icon { transform: rotate(45deg); background: var(--bubble); border-color: transparent; }
.faq-list details p { color: var(--muted); padding-bottom: 24px; max-width: 60ch; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; gap: 24px; } .faq-grid .sec-head { position: static; } }

/* ===== Final CTA ===== */
.cta-band { background: var(--green); color: #fff; border-radius: 32px; padding: 64px 56px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.cta-band h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.6rem); line-height: 1.25; margin-bottom: 12px; }
html[dir="rtl"] .cta-band h2 { line-height: 1.5; }
.cta-band p { color: #D3EFDD; max-width: 46ch; }
.cta-ticks { position: absolute; inset-inline-end: -30px; bottom: -40px; width: 260px; color: rgba(255,255,255,.08); pointer-events: none; }
.cta-band .btn { position: relative; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; padding: 44px 28px; } }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: var(--band-muted); font-size: .94rem; padding-top: 72px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-block: 16px 24px; max-width: 36ch; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; }
.badge-box {
    display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid var(--band-line); border-radius: 14px; background: rgba(255,255,255,.03);
}
.badge-box img { height: 28px; width: auto; }
.badge-box strong { display: block; color: #fff; font-size: .82rem; font-weight: 600; line-height: 1.3; }
.badge-box span { display: block; font-size: .76rem; line-height: 1.3; }
a.badge-box:hover { border-color: #F26522; }
a.badge-box strong { color: #FF8A4C; }
.site-footer h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 16px; }
.footer-links li { padding-block: 5px; }
.footer-links a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 10px; padding-block: 5px; }
.footer-contact i { color: var(--signal); width: 16px; }
.footer-contact span { direction: ltr; unicode-bidi: isolate; }
.footer-bottom { border-top: 1px solid var(--band-line); padding-block: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 20px; }
.footer-bottom a:hover { color: #fff; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

@media (max-width: 640px) {
    body { font-size: 16px; }
    .sec { padding-block: 72px; }
    .sec-head { margin-bottom: 40px; }
}

/* ===== Support chat widget ===== */
.support { position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 60; font-family: var(--font); }
.support-btn {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 20px; border-radius: 999px;
    background: var(--ink); color: #fff; border: 0; cursor: pointer; font: 500 .95rem/1 var(--font);
    box-shadow: 0 14px 30px -12px rgba(14,42,34,.6);
}
.support-btn i { color: var(--signal); font-size: 1.1rem; }
.support-box {
    position: absolute; bottom: calc(100% + 12px); inset-inline-end: 0; width: min(360px, calc(100vw - 40px));
    height: 460px; max-height: calc(100vh - 120px); background: var(--thread); border-radius: 22px; overflow: hidden;
    display: none; flex-direction: column; border: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(14,42,34,.5);
}
.support-box.is-open { display: flex; }
.support-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: var(--ink); color: #fff; }
.support-head strong { font-weight: 600; font-size: .98rem; }
.support-close { background: none; border: 0; color: var(--band-muted); cursor: pointer; font-size: 1.1rem; padding: 4px 8px; }
.support-close:hover { color: #fff; }
.support-logs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.support-logs .bubble { font-size: .9rem; white-space: pre-wrap; }
.support-form { display: flex; gap: 8px; padding: 10px; background: var(--surface); border-top: 1px solid var(--line); }
.support-form input {
    flex: 1; min-width: 0; border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px;
    font: 400 .92rem var(--font); color: var(--ink); background: var(--paper);
}
.support-form input:focus { outline: 2px solid var(--signal); outline-offset: 0; }
.support-form button {
    width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--green); color: #fff; cursor: pointer; flex-shrink: 0;
}
html[dir="rtl"] .support-form button i { transform: scaleX(-1); }
@media (max-width: 640px) { .support-btn span { display: none; } .support-btn { padding: 15px; } }

/* ===== Sub-pages: terms, privacy, API docs ===== */
.doc-page { background: var(--paper); }
.doc-page .site-header { background: rgba(243,246,242,.94); }
html { scroll-padding-top: 92px; }

.doc-head { border-bottom: 1px solid var(--line); padding-block: 56px 44px; }
.doc-head h1 { font-size: clamp(2rem, 4vw, 2.9rem); line-height: 1.2; max-width: 22ch; }
html[dir="rtl"] .doc-head h1 { line-height: 1.45; }
.doc-lead { margin-top: 14px; max-width: 60ch; color: var(--muted); font-size: 1.08rem; }
.doc-meta { margin-top: 18px; font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.doc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.doc-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; padding-block: 48px 96px; align-items: start; }
.doc-toc { position: sticky; top: 96px; font-size: .92rem; }
.doc-toc p { font-weight: 600; color: var(--ink); margin-bottom: 10px; font-size: .9rem; }
.doc-toc ol { border-inline-start: 2px solid var(--line); }
.doc-toc a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); line-height: 1.45; }
.doc-toc a:hover { color: var(--ink); }
.doc-toc a[aria-current="true"] { color: var(--green); border-color: var(--green); font-weight: 500; }

.doc-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-l); padding: 48px 56px; min-width: 0; }
.doc-body > section + section { margin-top: 44px; padding-top: 40px; border-top: 1px solid var(--thread); }
.doc-body h2 { font-size: 1.4rem; line-height: 1.35; margin-bottom: 14px; display: flex; align-items: baseline; gap: 12px; }
.doc-body h2 .n { color: var(--green); font-weight: 500; font-size: 1rem; min-width: 1.6em; }
.doc-body h3 { font-size: 1.08rem; margin: 26px 0 10px; }
.doc-body p, .doc-body li { max-width: 68ch; }
.doc-body p + p, .doc-body p + ul, .doc-body ul + p, .doc-body p + .snip, .doc-body .snip + p { margin-top: 14px; }
.doc-body ul { margin-top: 10px; }
.doc-body ul li { position: relative; padding-inline-start: 22px; margin-top: 8px; }
.doc-body ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .75em; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); }
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a:not(.btn) { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.doc-body code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: isolate; }
.doc-contact { margin-top: 44px; padding: 22px 24px; border-radius: var(--r-m); background: var(--paper); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.doc-contact p { color: var(--ink-2); }

/* API docs */
.endpoint { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 16px; padding: 12px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-s); direction: ltr; }
.endpoint .verb { background: var(--green); color: #fff; font-weight: 700; font-size: .76rem; padding: 4px 10px; border-radius: 6px; letter-spacing: .04em; }
.endpoint code { background: none; border: 0; padding: 0; font-size: .9rem; color: var(--ink); word-break: break-all; }
.snip { position: relative; background: var(--ink); color: #DCEBE3; border-radius: var(--r-m); overflow: hidden; direction: ltr; text-align: left; }
.code-bar { display: flex; justify-content: space-between; align-items: center; padding: 8px 10px 8px 16px; border-bottom: 1px solid var(--band-line); font-size: .8rem; color: var(--band-muted); font-family: var(--font); }
.code-copy { background: none; border: 1px solid var(--band-line); color: var(--band-text); border-radius: 999px; padding: 4px 12px; font: 500 .78rem var(--font); cursor: pointer; }
.code-copy:hover { border-color: var(--signal); }
.snip pre code { background: none; border: 0; padding: 0; color: inherit; font-size: inherit; border-radius: 0; }
.snip pre { margin: 0; padding: 16px 18px; overflow-x: auto; font: .84rem/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; tab-size: 2; }
.snip .s { color: #9FE3B8; } .snip .k { color: #7CC4F2; } .snip .c { color: #86A398; }
.code-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.tabs { margin-top: 16px; }
.tabs [role="tablist"] { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; direction: ltr; }
.tabs [role="tab"] { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 999px; padding: 7px 16px; font: 500 .88rem var(--font); cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.ref-table { width: 100%; border-collapse: collapse; margin-top: 12px; font-size: .92rem; }
.ref-wrap { overflow-x: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--r-s); }
.ref-wrap .ref-table { margin: 0; }
.ref-table th { text-align: start; font-weight: 600; color: var(--ink); background: var(--paper); padding: 10px 14px; font-size: .85rem; }
.ref-table td { padding: 11px 14px; border-top: 1px solid var(--thread); vertical-align: top; }
.ref-table td:first-child code { color: var(--green); font-weight: 600; }
.req { color: var(--green); font-weight: 600; font-size: .85rem; }
.opt { color: var(--muted); font-size: .85rem; }
.http { font-weight: 700; font-family: ui-monospace, Menlo, monospace; }
.http--ok { color: var(--green); } .http--warn { color: #B86E00; } .http--err { color: #C2412D; }

@media (max-width: 960px) {
    .doc-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 28px 72px; }
    .doc-toc { position: static; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-m); padding: 16px 18px; }
    .doc-body { padding: 32px 26px; }
    .code-pair { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .doc-head { padding-block: 36px 30px; }
    .doc-body { padding: 26px 18px; border-radius: var(--r-m); }
    .wrap.doc-grid { padding-inline: 12px; }
}

/* ===== WhatsApp look stays green (chat demo, ticks, live dot) ===== */
.bubble--out { background: var(--wa-bubble); }
.thread-head { background: var(--wa-ink); }
.thread-avatar { background: var(--wa); color: var(--wa-ink); }
.thread-name .fa-circle-check, .value-props .ticks, .check-list .ticks, .hero-badge i { color: var(--wa); }
.event--ship i { color: #0B7A43; }
.live-dot::before { background: var(--wa); }
.cta-band { background: linear-gradient(135deg, #0B7A43 0%, #08643A 100%); }

/* ===== WooCommerce plugin page (/woocommerce/) ===== */
.wcp-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); line-height: 1.15; margin-bottom: 18px; }
html[dir="rtl"] .wcp-hero h1 { line-height: 1.4; }
.wcp-note { font-size: .88rem; color: var(--muted); margin: -18px 0 24px; }
.wcp-window { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 30px 60px -28px rgba(14,42,34,.45); }
.wcp-window-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: var(--paper); border-bottom: 1px solid var(--line); direction: ltr; }
.wcp-window-bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.wcp-window-bar span { margin-inline-start: 10px; font-size: .78rem; color: var(--muted); }
.wcp-window img { display: block; width: 100%; height: auto; }
.wcp-shots { display: grid; grid-auto-flow: column; grid-auto-columns: min(560px, 82%); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.wcp-shots figure { margin: 0; scroll-snap-align: start; }
.wcp-shots img { display: block; width: 100%; height: auto; aspect-ratio: 14 / 9; object-fit: cover; object-position: top; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.wcp-shots a:hover img { border-color: var(--green); }
.wcp-shots figcaption { display: flex; gap: 10px; align-items: baseline; margin-top: 12px; color: var(--ink-2); font-size: .95rem; }
.wcp-shots figcaption span { flex-shrink: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--bubble); color: var(--green); font-weight: 600; font-size: .8rem; display: inline-flex; align-items: center; justify-content: center; }
.wcp-shots:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 14px; }
@media (max-width: 960px) { .wcp-window { margin-top: 8px; } }
