/* Public marketing site: shared layout, theme tokens and components. */
/* Theme tokens. Light is the default; the Super Admin "Website Theme"
   setting puts data-theme="dark" on <html> to swap in the dark set. */
:root {
    color-scheme: light;
    --bg: #f7f8fb;
    --bg-soft: #ffffff;
    --page-bg: linear-gradient(160deg, #f7f8fb 0%, #fbfbfd 45%, #eef8fb 100%) fixed #f7f8fb;
    --surface: #ffffff;
    --surface-2: #ffffff;
    --border: rgba(108, 99, 255, 0.10);
    --border-strong: rgba(108, 99, 255, 0.24);
    --text: #161a33;
    --muted: #5a6078;
    --primary: #6c63ff;
    --primary-2: #5b8def;
    --accent: #0891b2;
    --accent-bg: rgba(8, 145, 178, 0.08);
    --accent-border: rgba(8, 145, 178, 0.25);
    --success: #059669;
    --success-bg: rgba(5, 150, 105, 0.09);
    --success-border: rgba(5, 150, 105, 0.28);
    --danger: #e11d48;
    --grad: linear-gradient(100deg, #6c63ff, #5b8def 55%, #22b8d9);
    --radius: 18px;
    --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    --card-shadow-hover: 0 22px 50px rgba(15, 23, 42, 0.10);
    --font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --orb-1: #c4bdff; --orb-2: #a8eaf7; --orb-3: #ddd3ff; --orb-opacity: 0.55;
    --nav-bg: rgba(255, 255, 255, 0.75);
    --nav-mobile-bg: rgba(255, 255, 255, 0.98);
    --footer-bg: rgba(255, 255, 255, 0.7);
    --btn-shadow: none;
    --btn-shadow-hover: none;
    --ghost-hover-bg: #ffffff;
    --eyebrow-color: var(--primary);
    --eyebrow-bg: rgba(108, 99, 255, 0.08);
    --eyebrow-border: rgba(108, 99, 255, 0.2);
    --icon-bg: rgba(108, 99, 255, 0.09);
    --icon-border: rgba(108, 99, 255, 0.16);
    --popular-bg: linear-gradient(160deg, #ffffff, #f1efff 60%, #e6f7fc);
    --popular-border: rgba(108, 99, 255, 0.5);
    --popular-shadow: 0 24px 60px rgba(15, 23, 42, 0.10);
    --band-bg: linear-gradient(120deg, #e9e6ff, #f6f5ff 50%, #dcf3fa);
    --band-border: rgba(108, 99, 255, 0.22);
    --band-sweep: rgba(108, 99, 255, 0.12);
    --input-bg: #f8f7ff;
    --focus-ring: rgba(108, 99, 255, 0.18);
    --kpi-bg: #ffffff;
    --kpi-border: var(--border);
    --tier-max-border: rgba(8, 145, 178, 0.45);
    --tier-max-bg: linear-gradient(160deg, #e3f6fb, #ffffff 60%, #f1efff);
    --example-bg: linear-gradient(160deg, #e6f7f0, #ffffff 60%, #e3f6fb);
    --dot-glow: 0 0 10px rgba(108, 99, 255, 0.4);

    /* Home hero product mock-up */
    --av-border: #ffffff;
    --av-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    --hv-glow-1: transparent;
    --hv-glow-2: rgba(34, 184, 217, 0.25);
    --hv-window-bg: linear-gradient(180deg, #ffffff, #f8f7ff);
    --hv-window-shadow: 0 30px 70px rgba(15, 23, 42, 0.10);
    --hv-glass: rgba(255, 255, 255, 0.6);
    --hv-bar-bg: #f6f5ff;
    --hv-url-bg: #ffffff;
    --hv-url-border: var(--border);
    --hv-node-bg: #f6f5ff;
    --hv-done-bg: rgba(108, 99, 255, 0.1);
    --hv-done-border: rgba(108, 99, 255, 0.45);
    --hv-done-color: var(--primary);
    --hv-active-shadow: 0 0 0 5px rgba(108, 99, 255, 0.14), 0 10px 26px rgba(108, 99, 255, 0.4);
    --hv-chip-bg: #ffffff;
    --hv-row-bg: #f8f7ff;
    --hv-row-flash: rgba(108, 99, 255, 0.18);
    --pipe-glow: 0 0 10px rgba(34, 184, 217, 0.45);
    --st-go-color: #0e7490;
    --st-go-bg: rgba(8, 145, 178, 0.1);
    --st-bk-color: #4f46e5;
    --st-bk-bg: rgba(108, 99, 255, 0.12);
    --float-bg: rgba(255, 255, 255, 0.92);
    --float-border: var(--border);
    --float-shadow: 0 18px 44px rgba(15, 23, 42, 0.10);
    --wa-bg: rgba(37, 211, 102, 0.12);
    --wa-color: #16a34a;
    --donut-track: rgba(108, 99, 255, 0.1);
    --grid-stroke: rgba(108, 99, 255, 0.08);
}
html[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0b1020;
    --bg-soft: #161D31;
    --page-bg: #0b1020;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --border: rgba(255, 255, 255, 0.09);
    --border-strong: rgba(255, 255, 255, 0.16);
    --text: #F8F8F8;
    --muted: #9aa3c0;
    --primary: #7367F0;
    --primary-2: #9E95F5;
    --accent: #22d3ee;
    --accent-bg: rgba(34, 211, 238, 0.09);
    --accent-border: rgba(34, 211, 238, 0.3);
    --success: #34d399;
    --success-bg: rgba(52, 211, 153, 0.1);
    --success-border: rgba(52, 211, 153, 0.35);
    --danger: #fb7185;
    --grad: linear-gradient(100deg, #7367F0, #9E95F5 45%, #22d3ee);
    --card-shadow: none;
    --card-shadow-hover: none;

    --orb-1: #4338ca; --orb-2: #0e7490; --orb-3: #6d28d9; --orb-opacity: 0.35;
    --nav-bg: rgba(11, 16, 32, 0.72);
    --nav-mobile-bg: rgba(11, 16, 32, 0.97);
    --footer-bg: rgba(5, 8, 18, 0.6);
    --btn-shadow: none;
    --btn-shadow-hover: none;
    --ghost-hover-bg: rgba(255, 255, 255, 0.12);
    --eyebrow-color: var(--accent);
    --eyebrow-bg: rgba(34, 211, 238, 0.08);
    --eyebrow-border: rgba(34, 211, 238, 0.25);
    --icon-bg: rgba(115, 103, 240, 0.14);
    --icon-border: rgba(115, 103, 240, 0.3);
    --popular-bg: linear-gradient(160deg, rgba(115, 103, 240, 0.16), rgba(34, 211, 238, 0.07));
    --popular-border: rgba(115, 103, 240, 0.55);
    --popular-shadow: 0 24px 60px rgba(3, 6, 20, 0.5);
    --band-bg: linear-gradient(120deg, rgba(115, 103, 240, 0.2), rgba(34, 211, 238, 0.1));
    --band-border: rgba(115, 103, 240, 0.35);
    --band-sweep: rgba(158, 149, 245, 0.25);
    --input-bg: rgba(11, 16, 32, 0.6);
    --focus-ring: rgba(115, 103, 240, 0.22);
    --kpi-bg: rgba(11, 16, 32, 0.7);
    --kpi-border: var(--border-strong);
    --tier-max-border: rgba(34, 211, 238, 0.5);
    --tier-max-bg: linear-gradient(160deg, rgba(34, 211, 238, 0.1), rgba(115, 103, 240, 0.06));
    --example-bg: linear-gradient(160deg, rgba(52, 211, 153, 0.09), rgba(34, 211, 238, 0.05));
    --dot-glow: 0 0 12px rgba(115, 103, 240, 0.6);

    --av-border: var(--bg);
    --av-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    --hv-glow-1: transparent;
    --hv-glow-2: rgba(34, 211, 238, 0.30);
    --hv-window-bg: linear-gradient(180deg, rgba(24, 31, 54, 0.94), rgba(13, 18, 36, 0.96));
    --hv-window-shadow: 0 44px 100px rgba(3, 6, 20, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    --hv-glass: rgba(255, 255, 255, 0.07);
    --hv-bar-bg: rgba(255, 255, 255, 0.02);
    --hv-url-bg: rgba(255, 255, 255, 0.05);
    --hv-url-border: transparent;
    --hv-node-bg: #141a33;
    --hv-done-bg: rgba(115, 103, 240, 0.18);
    --hv-done-border: rgba(115, 103, 240, 0.55);
    --hv-done-color: #cdc8ff;
    --hv-active-shadow: 0 0 0 5px rgba(115, 103, 240, 0.18), 0 10px 26px rgba(115, 103, 240, 0.55);
    --hv-chip-bg: #1b2240;
    --hv-row-bg: rgba(255, 255, 255, 0.03);
    --hv-row-flash: rgba(115, 103, 240, 0.25);
    --pipe-glow: 0 0 12px rgba(34, 211, 238, 0.6);
    --st-go-color: #93e7f5;
    --st-go-bg: rgba(34, 211, 238, 0.12);
    --st-bk-color: #cdc8ff;
    --st-bk-bg: rgba(115, 103, 240, 0.18);
    --float-bg: rgba(17, 23, 44, 0.88);
    --float-border: var(--border-strong);
    --float-shadow: 0 18px 44px rgba(3, 6, 20, 0.6);
    --wa-bg: rgba(37, 211, 102, 0.15);
    --wa-color: #25d366;
    --donut-track: rgba(255, 255, 255, 0.08);
    --grid-stroke: rgba(255, 255, 255, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font-body);
    background: var(--page-bg);
    color: var(--text);
    line-height: 1.65;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.18; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
/* Side gutter scales with the viewport (20px on phones → 64px on laptops),
   so mid-size screens don't run edge to edge before the 1460px cap applies. */
:root { --gutter: clamp(20px, 5vw, 64px); }
.container { width: min(1460px, calc(100% - 2 * var(--gutter))); margin: 0 auto; }

/* ---------- Background ornaments ---------- */
.orb {
    position: fixed; border-radius: 50%; filter: blur(110px);
    opacity: var(--orb-opacity); pointer-events: none; z-index: 0;
    /* Own GPU layer: the blur is rasterised once and the drift just moves it. */
    will-change: transform;
}
.orb-1 { width: 520px; height: 520px; background: var(--orb-1); top: -180px; left: -120px; animation: drift 16s ease-in-out infinite alternate; }
.orb-2 { width: 460px; height: 460px; background: var(--orb-2); top: 30%; right: -180px; animation: drift 20s ease-in-out infinite alternate-reverse; }
.orb-3 { width: 420px; height: 420px; background: var(--orb-3); bottom: -160px; left: 30%; animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(60px, 40px) scale(1.12); }
}
main { position: relative; z-index: 1; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 50;
    backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; }
.brand img { height: 30px; width: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; }
.nav-links a { font-size: 0.92rem; font-weight: 500; color: var(--muted); transition: color 0.2s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-menu { display: contents; }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: 12px; font-family: var(--font-display);
    font-weight: 700; font-size: 0.95rem; cursor: pointer; border: 0;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: var(--btn-shadow); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--btn-shadow-hover); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--border-strong); }
.btn-ghost:hover { background: var(--ghost-hover-bg); box-shadow: var(--card-shadow); transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 0.88rem; }
.btn-lg { padding: 15px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; position: relative; }
.section-tight { padding: 64px 0; }
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--eyebrow-color); background: var(--eyebrow-bg);
    border: 1px solid var(--eyebrow-border);
    padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 14px; }
.section-head p { color: var(--muted); font-size: 1.06rem; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 28px; box-shadow: var(--card-shadow);
    transition: transform 0.25s, border-color 0.25s, background 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-5px); border-color: var(--border-strong); background: var(--surface-2); box-shadow: var(--card-shadow-hover); }
.card-icon {
    width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center;
    font-size: 1.4rem; margin-bottom: 18px;
    background: var(--icon-bg); border: 1px solid var(--icon-border);
}
.card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card ul { color: var(--muted); font-size: 0.92rem; padding-left: 18px; margin-top: 10px; display: grid; gap: 6px; }
.card h2 a, .card h3 a { transition: color 0.2s; }
.card h2 a:hover, .card h3 a:hover { color: var(--primary); }

/* ---------- Inline links ---------- */
.card-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 700; font-size: 0.92rem; color: var(--primary); }
.card-link:hover, .text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Pricing cards (shared: home teaser + pricing page) ---------- */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; align-items: stretch; }
.plan {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: 22px; padding: 32px 26px; display: flex; flex-direction: column;
    box-shadow: var(--card-shadow);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}
.plan:hover { transform: translateY(-6px); border-color: var(--border-strong); box-shadow: var(--card-shadow-hover); }
.plan.popular {
    background: var(--popular-bg);
    border-color: var(--popular-border);
    box-shadow: var(--popular-shadow);
}
.plan-tag {
    position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
    background: var(--grad); color: #fff; font-size: 0.7rem; font-weight: 800;
    letter-spacing: 0.12em; padding: 5px 16px; border-radius: 999px;
}
.plan h2, .plan h3 { font-size: 1.05rem; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.plan .price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.plan .price small { font-size: 0.9rem; color: var(--muted); font-weight: 500; }
.plan-meta { margin: 18px 0 26px; display: grid; gap: 10px; color: var(--muted); font-size: 0.92rem; }
.plan-meta span { display: flex; align-items: center; gap: 9px; }
.plan-meta .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.plan .btn { margin-top: auto; }

/* ---------- CTA banner ---------- */
.cta-banner {
    background: var(--band-bg);
    border: 1px solid var(--band-border); box-shadow: var(--card-shadow);
    border-radius: 26px; padding: 56px 40px; text-align: center;
    position: relative; overflow: hidden;
}
.cta-banner::before {
    content: ''; position: absolute; inset: -60%;
    background: conic-gradient(from 0deg, transparent 70%, var(--band-sweep), transparent 85%);
    animation: spin 9s linear infinite;
    will-change: transform;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cta-banner > * { position: relative; }
.cta-banner h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 12px; }
.cta-banner p { color: var(--muted); max-width: 560px; margin: 0 auto 28px; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--border); background: var(--footer-bg); position: relative; z-index: 1; }
.footer-grid { display: grid; grid-template-columns: 1.8fr 1fr 1.2fr 1fr 1.2fr; gap: 36px; padding: 64px 0 48px; }
.footer-grid h2 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; display: grid; gap: 10px; }
.footer-grid ul a { color: var(--muted); font-size: 0.92rem; transition: color 0.2s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-brand p { color: var(--muted); font-size: 0.92rem; margin-top: 14px; max-width: 300px; }
.footer-bottom {
    border-top: 1px solid var(--border); padding: 22px 0;
    display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap;
    color: var(--muted); font-size: 0.85rem;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding: 168px 0 72px; text-align: center; }
.page-hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; margin-bottom: 16px; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin: 0 auto; }

/* ---------- Breadcrumbs (site.partials.breadcrumbs, nested pages) ---------- */
.breadcrumbs ol {
    list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
    font-size: 0.85rem; color: var(--muted); margin-bottom: 18px;
}
.breadcrumbs li + li::before { content: '›'; margin-right: 6px; opacity: 0.6; }
.breadcrumbs a { transition: color 0.2s; }
.breadcrumbs a:hover { color: var(--text); text-decoration: underline; }

/* ---------- FAQ accordion (site.partials.faq) ---------- */
.faq-list { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
    box-shadow: var(--card-shadow); transition: border-color 0.2s;
}
.faq-item[open] { border-color: var(--border-strong); }
.faq-item summary {
    list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
    padding: 20px 24px; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; flex: none; width: 28px; height: 28px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.15rem; line-height: 1; color: var(--primary);
    background: var(--icon-bg); border: 1px solid var(--icon-border); transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item summary:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 16px; }
.faq-a { padding: 0 24px 22px; color: var(--muted); font-size: 0.96rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
    .grid-4, .plans { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    /* The six links + logo + CTA need ~940px, so tablets get the toggle menu too. */
    .nav-links {
        position: fixed; top: 72px; left: 0; right: 0; flex-direction: column;
        background: var(--nav-mobile-bg); box-shadow: var(--card-shadow); padding: 24px 0 30px; gap: 20px;
        border-bottom: 1px solid var(--border);
        transform: translateY(-130%); transition: transform 0.3s ease;
    }
    .nav-links.open { transform: none; }
    .nav-toggle { display: block; }
}
@media (max-width: 680px) {
    .grid-2, .grid-3, .grid-4, .plans { grid-template-columns: 1fr; }
    .section { padding: 64px 0; }
    .nav-cta .btn-ghost { display: none; }
    .footer-grid { grid-template-columns: 1fr; }
    /* Phones: keep the glow but skip the drift and use a cheaper blur. */
    .orb { animation: none; filter: blur(70px); will-change: auto; }
    .cta-banner::before { animation: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utilities (keep last so they win over component padding) ---------- */
.pt-0 { padding-top: 0; }
.pt-10 { padding-top: 10px; }
.pt-20 { padding-top: 20px; }
.pt-30 { padding-top: 30px; }
.mb-0 { margin-bottom: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }
.text-center { text-align: center; }
.items-start { align-items: start; }
.btn-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
