/* VoiceCore Enterprise — shared marketing site design system.
   Plain CSS, no build step, no framework — matches the site's static IIS deployment. */

:root {
    --primary: #00A3FF;
    --primary-dark: #0086D1;
    --primary-light: #5FC5FF;
    --success: #2ECC71;
    --warning: #F5A623;
    --danger: #E5484D;
    --bg: #0D1117;
    --bg-alt: #0a1628;
    --surface: #161B22;
    --surface-2: #1C1E26;
    --surface-3: #20242e;
    --border: rgba(255, 255, 255, 0.08);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #E8EAF6;
    --muted: #9EA6C0;
    --muted-2: #6B7390;
    --radius-sm: 8px;
    --radius: 14px;
    --radius-lg: 20px;
    --max-width: 1160px;
    --header-h: 68px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: "Segoe UI", Roboto, -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }
.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
    font-family: inherit;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: #06111f; }
.btn-primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn-secondary { border-color: var(--border-strong); color: var(--text); background: transparent; }
.btn-secondary:hover { border-color: var(--primary); text-decoration: none; }
.btn-sm { padding: 9px 18px; font-size: 13px; border-radius: 8px; }
.btn-block { width: 100%; }

/* ── Header / nav ────────────────────────────────────────────────────── */
header.nav {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-h);
    padding: 0 24px;
    background: rgba(13, 17, 23, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; max-width: var(--max-width); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--text); flex-shrink: 0; }
.brand svg { flex-shrink: 0; }
.brand:hover { text-decoration: none; }

.nav-links { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links > li { position: relative; }
.nav-link {
    display: flex; align-items: center; gap: 5px;
    padding: 10px 14px;
    color: var(--text);
    font-size: 14.5px;
    font-weight: 600;
    border-radius: 8px;
}
.nav-link:hover { background: rgba(255,255,255,0.06); text-decoration: none; }
.nav-link.active { color: var(--primary); }
.nav-link .chevron { width: 9px; height: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: 0.7; }

.nav-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 280px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.45);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.nav-links > li:hover .nav-dropdown,
.nav-links > li:focus-within .nav-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown a {
    display: flex; flex-direction: column; gap: 2px;
    padding: 10px 12px;
    border-radius: 8px;
    color: var(--text);
}
.nav-dropdown a:hover { background: var(--surface-2); text-decoration: none; }
.nav-dropdown a strong { font-size: 14px; font-weight: 700; }
.nav-dropdown a span { font-size: 12.5px; color: var(--muted); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.nav-cta {
    display: inline-block;
    padding: 9px 20px;
    background: var(--primary);
    color: #06111f;
    font-weight: 700;
    font-size: 14px;
    border-radius: 8px;
}
.nav-cta:hover { background: var(--primary-dark); text-decoration: none; }

.nav-toggle {
    display: none;
    background: none; border: 1px solid var(--border-strong); border-radius: 8px;
    width: 40px; height: 40px; padding: 0; cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span, .nav-toggle::before, .nav-toggle::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto;
}

@media (max-width: 880px) {
    .nav-links, .nav-right .btn-secondary { display: none; }
    .nav-toggle { display: block; }
    header.nav.mobile-open .nav-links {
        display: flex; flex-direction: column; align-items: stretch; gap: 0;
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: var(--bg); padding: 16px; overflow-y: auto; border-top: 1px solid var(--border);
    }
    header.nav.mobile-open .nav-dropdown {
        position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
        border: none; background: var(--surface-2); margin: 4px 0 10px;
    }
}

/* ── Hero ────────────────────────────────────────────────────────────── */
.hero {
    text-align: center;
    padding: 88px 24px 72px;
    background: radial-gradient(circle at 50% 0%, var(--bg-alt) 0%, var(--bg) 62%);
}
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border-strong);
    border-radius: 100px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.3px;
    color: var(--primary-light);
    margin-bottom: 22px;
}
.eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(46,204,113,0.2); }
.hero h1, .page-header h1 {
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    margin: 0 0 20px;
    letter-spacing: -0.7px;
    line-height: 1.1;
}
.hero p.subtitle, .page-header p.subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 36px;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-note { font-size: 13px; color: var(--muted-2); }

.page-header { text-align: center; padding: 64px 24px 48px; background: radial-gradient(circle at 50% 0%, var(--bg-alt) 0%, var(--bg) 70%); }
.page-header p.subtitle { margin-bottom: 0; }

/* ── Sections ────────────────────────────────────────────────────────── */
section, .section { padding: 76px 24px; max-width: var(--max-width); margin: 0 auto; }
section.tight { padding-top: 44px; padding-bottom: 44px; }
section.alt-bg, .section.alt-bg { max-width: none; background: var(--bg-alt); }
section.alt-bg > .inner, .section.alt-bg > .inner { max-width: var(--max-width); margin: 0 auto; }
section h2, .section h2 { text-align: center; font-size: clamp(24px, 3vw, 36px); font-weight: 800; margin: 0 0 12px; letter-spacing: -0.4px; }
section p.section-sub, .section p.section-sub { text-align: center; color: var(--muted); max-width: 580px; margin: 0 auto 52px; font-size: 16px; }
.section-label { display: block; text-align: center; color: var(--primary); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }

/* ── Feature / info cards ────────────────────────────────────────────── */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }

.card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--border-strong); }
.card .icon {
    width: 46px; height: 46px; border-radius: 12px;
    background: rgba(0,163,255,0.12); color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px; font-size: 22px;
}
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card ul.check-list { margin: 14px 0 0; padding: 0; list-style: none; }

.check-list li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; font-size: 14px; color: var(--muted); }
.check-list li::before {
    content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; border-radius: 5px;
    background: rgba(46,204,113,0.15);
    background-image: linear-gradient(135deg, transparent, transparent);
    position: relative;
}
.check-list li { position: relative; padding-left: 0; }
.check-list { --check-color: var(--success); }
.check-list li svg { flex-shrink: 0; margin-top: 2px; }

/* ── How it works / steps ───────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: step; }
.step { position: relative; padding-left: 0; }
.step .step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(0,163,255,0.12); color: var(--primary);
    font-weight: 800; font-size: 16px; margin-bottom: 16px;
    border: 1px solid rgba(0,163,255,0.3);
}
.step h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; }
.step p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* ── Trust / stat strip ──────────────────────────────────────────────── */
.trust-strip {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
    padding: 28px 24px; max-width: var(--max-width); margin: 0 auto;
}
.trust-pill {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 100px;
    background: var(--surface); border: 1px solid var(--border);
    font-size: 13.5px; font-weight: 600; color: var(--muted);
}
.trust-pill svg { color: var(--primary); flex-shrink: 0; }

.logo-strip { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 40px; opacity: 0.75; }
.logo-strip span { font-weight: 700; font-size: 15px; color: var(--muted); letter-spacing: 0.3px; }

/* ── FAQ accordion ───────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.faq-q {
    width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 20px 24px; background: none; border: none; color: var(--text);
    font-size: 15.5px; font-weight: 700; text-align: left; cursor: pointer; font-family: inherit;
}
.faq-q .plus { width: 16px; height: 16px; position: relative; flex-shrink: 0; }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; background: var(--primary); transition: transform 0.2s ease; }
.faq-q .plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-q .plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item.open .faq-q .plus::after { transform: rotate(90deg); opacity: 0; }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-item.open .faq-a { max-height: 400px; }
.faq-a-inner { padding: 0 24px 20px; color: var(--muted); font-size: 14.5px; line-height: 1.7; }

/* ── Pricing table ───────────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; align-items: stretch; }
.price-card {
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
    padding: 32px 28px; display: flex; flex-direction: column;
}
.price-card.featured { border-color: var(--primary); background: linear-gradient(180deg, rgba(0,163,255,0.08), var(--surface) 40%); position: relative; }
.price-card.featured::before {
    content: "Most popular"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: #06111f; font-size: 11.5px; font-weight: 800;
    padding: 4px 14px; border-radius: 100px; letter-spacing: 0.3px;
}
.price-card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; }
.price-card .price-tagline { color: var(--muted); font-size: 14px; margin: 0 0 24px; min-height: 40px; }
.price-card .btn { margin-bottom: 24px; }
.price-card .check-list { flex: 1; }
.price-card .check-list li { color: var(--text); font-size: 14px; }

.compare-table-wrap { overflow-x: auto; margin-top: 56px; }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 720px; }
table.compare-table th, table.compare-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; }
table.compare-table th { color: var(--muted); font-weight: 700; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.4px; }
table.compare-table td.cat { font-weight: 700; color: var(--text); padding-top: 28px; border-bottom: none; }
table.compare-table td.center, table.compare-table th.center { text-align: center; }
table.compare-table td.center svg { display: inline-block; }

/* ── CTA band ────────────────────────────────────────────────────────── */
.cta-band {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--surface-2) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-align: center;
    padding: 64px 32px;
    margin: 0 24px 80px;
    max-width: calc(var(--max-width) - 0px);
    margin-left: auto; margin-right: auto;
}
.cta-band h2 { margin-bottom: 14px; font-size: clamp(22px,3vw,32px); font-weight: 800; }
.cta-band p { color: var(--muted); margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-ctas { margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────────── */
footer.site-footer { border-top: 1px solid var(--border); padding: 64px 24px 32px; }
.footer-grid {
    max-width: var(--max-width); margin: 0 auto 40px;
    display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 32px;
}
.footer-brand .brand { margin-bottom: 12px; }
.footer-brand p { color: var(--muted); font-size: 13.5px; max-width: 260px; margin: 0; }
.footer-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--muted); margin: 0 0 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text); font-size: 14px; }
.footer-col a:hover { color: var(--primary); text-decoration: none; }
.footer-bottom {
    max-width: var(--max-width); margin: 0 auto; padding-top: 28px; border-top: 1px solid var(--border);
    display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--muted-2);
}
.footer-bottom a { color: var(--muted-2); }
.footer-bottom a:hover { color: var(--primary); }
@media (max-width: 860px) {
    .footer-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* ── Demo widget ─────────────────────────────────────────────────────── */
.demo-widget {
    max-width: 480px; margin: 0 auto;
    background: var(--surface);
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    padding: 28px;
    box-shadow: 0 30px 80px rgba(0,163,255,0.08);
    text-align: left;
}
.demo-widget h3 { margin: 0 0 4px; font-size: 16px; font-weight: 700; text-align: center; }
.demo-widget p.demo-sub { text-align: center; color: var(--muted); font-size: 13.5px; margin: 0 0 20px; }
.demo-form { display: flex; gap: 10px; }
.demo-form input[type="tel"], .demo-form input[type="text"] {
    flex: 1; padding: 13px 16px; border-radius: 10px;
    border: 1px solid var(--border-strong); background: var(--bg);
    color: var(--text); font-size: 15px; font-family: inherit;
}
.demo-form input[type="tel"]:focus, .demo-form input[type="text"]:focus { outline: none; border-color: var(--primary); }
.demo-form input[type="tel"]::placeholder, .demo-form input[type="text"]::placeholder { color: var(--muted-2); }
.demo-disclaimer { font-size: 11.5px; color: var(--muted-2); margin: 14px 0 0; text-align: center; line-height: 1.6; }

.demo-status { display: none; text-align: center; padding: 12px 0; }
.demo-status.active { display: block; }
.demo-status .pulse-dot {
    display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--primary);
    margin-right: 8px; animation: pulse 1.2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.8); } }
.demo-status.error .pulse-dot { background: var(--warning); animation: none; }
.demo-status.done .pulse-dot { background: var(--success); animation: none; }
.demo-status-text { font-size: 14.5px; font-weight: 600; }
.demo-status-detail { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── Voice/text demo widget (in-browser, no phone number) ───────────── */
.demo-mode-tabs { display: flex; gap: 6px; margin-bottom: 18px; background: var(--bg); border: 1px solid var(--border-strong); border-radius: 10px; padding: 4px; }
.demo-mode-tab {
    flex: 1; padding: 9px 0; border: none; background: transparent; color: var(--muted);
    font-size: 13.5px; font-weight: 600; font-family: inherit; border-radius: 7px; cursor: pointer;
}
.demo-mode-tab.active { background: var(--surface); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.demo-panel { display: block; }

.demo-call-bar {
    display: flex; align-items: center; gap: 10px;
    padding: 12px 16px; border-radius: 12px; margin-bottom: 16px;
    background: var(--bg); border: 1px solid var(--border-strong);
}
.demo-call-dot {
    width: 10px; height: 10px; border-radius: 50%; background: var(--success);
    animation: pulse 1.2s ease-in-out infinite; flex-shrink: 0;
}
.demo-call-bar.ringing .demo-call-dot { background: var(--warning); }
.demo-call-label { font-size: 14px; font-weight: 600; flex: 1; }
.demo-call-timer { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.demo-call-stop {
    display: flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; border: none; background: var(--danger);
    color: #fff; cursor: pointer; flex-shrink: 0;
}
.demo-call-stop:hover { opacity: 0.85; }

.btn-call { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.btn-call-icon { flex-shrink: 0; }

.demo-chat-log {
    max-height: 260px; overflow-y: auto; margin-bottom: 12px; padding: 4px 2px;
    display: flex; flex-direction: column; gap: 10px;
}
.demo-chat-log .bubble { max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.demo-chat-log .bubble.ai { align-self: flex-start; background: var(--bg); border: 1px solid var(--border-strong); border-bottom-left-radius: 4px; }
.demo-chat-log .bubble.caller { align-self: flex-end; background: var(--primary); color: #06111f; border-bottom-right-radius: 4px; }

.demo-alt-link {
    display: block; width: 100%; margin-top: 16px; padding: 0; border: none; background: transparent;
    color: var(--muted); font-size: 12.5px; font-family: inherit; text-decoration: underline;
    text-align: center; cursor: pointer;
}
.demo-alt-link:hover { color: var(--primary); }

/* ── Contact form ────────────────────────────────────────────────────── */
.contact-form { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.form-row { display: flex; flex-direction: column; gap: 6px; }
.form-row label { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.form-row input, .form-row select, .form-row textarea {
    padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong);
    background: var(--surface); color: var(--text); font-size: 15px; font-family: inherit;
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus { outline: none; border-color: var(--primary); }

/* ── Industries / verticals ──────────────────────────────────────────── */
.industry-card { display: flex; flex-direction: column; gap: 14px; }
.industry-card .icon { width: 50px; height: 50px; font-size: 24px; }
.industry-card ul.check-list { margin-top: auto; padding-top: 6px; }

/* ── Use cases ───────────────────────────────────────────────────────── */
.use-case-card { display: flex; flex-direction: column; gap: 14px; }
.use-case-card .icon { width: 50px; height: 50px; font-size: 24px; }
.use-case-card ul.check-list { margin-top: auto; padding-top: 6px; }

/* ── "Coming soon" badge (roadmap items, not shipped) ───────────────────── */
.soon-badge {
    display: inline-block; padding: 3px 10px; border-radius: 100px;
    background: rgba(0,163,255,0.12); color: var(--primary);
    font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
    margin-left: 8px; vertical-align: middle;
}

/* ── Illustrative example stories — explicitly NOT real customers, see badge ── */
.story-card { display: flex; flex-direction: column; gap: 12px; }
.story-card .example-badge {
    align-self: flex-start; padding: 4px 10px; border-radius: 100px;
    background: rgba(46,204,113,0.12); color: var(--success);
    font-size: 11px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase;
}
.story-card h3 { margin: 0; font-size: 17px; font-weight: 700; }
.story-card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.story-card .story-quote {
    margin: 0; padding-left: 14px; border-left: 3px solid var(--border-strong);
    color: var(--text); font-size: 14.5px; font-style: italic;
}

/* ── Reveal-on-scroll ────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* ── Legal pages ─────────────────────────────────────────────────────── */
.legal-body { max-width: 800px; margin: 0 auto; padding: 40px 24px 80px; }
.legal-body h1 { font-size: 30px; font-weight: 800; margin: 0 0 6px; }
.legal-body .legal-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 32px; }
.legal-body h2 { color: var(--primary); font-size: 19px; margin: 32px 0 12px; font-weight: 700; }
.legal-body p, .legal-body li { color: var(--text); font-size: 15px; }
.legal-body ul { padding-left: 22px; }
.legal-body .contact-box { margin-top: 40px; padding: 22px; background: var(--surface); border-radius: 12px; border-left: 4px solid var(--primary); }

@media (max-width: 640px) {
    .hero { padding: 64px 20px 56px; }
    section, .section { padding: 56px 20px; }
    .demo-form { flex-direction: column; }
}

/* ── Language switcher (nav) ─────────────────────────────────────────── */
.lang-switcher { position: relative; }
.lang-switcher-btn {
    display: flex; align-items: center; gap: 4px; background: none; border: none;
    color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    padding: 6px 4px;
}
.lang-switcher-menu {
    position: absolute; top: calc(100% + 8px); right: 0; min-width: 160px;
    background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
    box-shadow: 0 20px 50px rgba(0,0,0,0.35);
    opacity: 0; visibility: hidden; transform: translateY(-6px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    padding: 6px; z-index: 20;
}
.lang-switcher:hover .lang-switcher-menu,
.lang-switcher:focus-within .lang-switcher-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switcher-menu a {
    display: block; padding: 8px 12px; border-radius: 6px; color: var(--text);
    font-size: 13.5px; text-decoration: none;
}
.lang-switcher-menu a:hover { background: var(--surface-3); text-decoration: none; }
.lang-switcher-menu a.active { color: var(--primary); font-weight: 700; }

/* ── RTL (Urdu, Arabic) ──────────────────────────────────────────────────
   dir="rtl" on <html> already mirrors this flexbox-based layout (gap-based,
   not directional margins) automatically in modern browsers. These are just
   the handful of explicitly-directional declarations that don't auto-flip. */
[dir="rtl"] .faq-q,
[dir="rtl"] table.compare-table th,
[dir="rtl"] table.compare-table td,
[dir="rtl"] .demo-widget {
    text-align: right;
}
[dir="rtl"] table.compare-table td.center,
[dir="rtl"] table.compare-table th.center {
    text-align: center;
}
[dir="rtl"] .demo-status .pulse-dot { margin-right: 0; margin-left: 8px; }
[dir="rtl"] .soon-badge { margin-left: 0; margin-right: 8px; }
[dir="rtl"] .story-card .story-quote {
    padding-left: 0; padding-right: 14px;
    border-left: none; border-right: 3px solid var(--border-strong);
}
[dir="rtl"] .legal-body ul { padding-left: 0; padding-right: 22px; }
[dir="rtl"] .legal-body .contact-box { border-left: none; border-right: 4px solid var(--primary); }
[dir="rtl"] .lang-switcher-menu { right: auto; left: 0; }
