/* ═══════════════════════════════════════════════════════════════
   AlkaPay — Design System v2
   Light, high-trust fintech. System fonts, zero external requests.
   ═══════════════════════════════════════════════════════════════ */

:root {
    /* Ink & surfaces — matches the plugin's Tailwind gray scale */
    --bg: #f9fafb;
    --surface: #ffffff;
    --surface-2: #f3f4f6;
    --ink: #1f2937;
    --ink-soft: #374151;
    --muted: #6b7280;
    --border: #e5e7eb;
    --border-strong: #d1d5db;

    /* Brand greens — identical to the plugin admin palette */
    --green: #16a34a;
    --green-deep: #15803d;
    --green-ink: #166534;
    --green-050: #f0fdf4;
    --green-tint: #dcfce7;
    --green-bright: #22c55e;

    /* Dark band — plugin's green-900/800 */
    --forest: #14532d;
    --forest-2: #166534;
    --on-forest: #f0fdf4;
    --on-forest-muted: #86efac;

    /* Signals — plugin's amber/red/blue pairs */
    --amber: #92400e;
    --amber-tint: #fef3c7;
    --red: #b91c1c;
    --red-tint: #fee2e2;
    --blue: #1d4ed8;
    --blue-tint: #eff6ff;

    /* Shape & depth */
    --radius: 14px;
    --radius-sm: 9px;
    --radius-lg: 20px;
    --shadow-sm: 0 1px 2px rgba(16, 22, 19, 0.05), 0 1px 6px rgba(16, 22, 19, 0.04);
    --shadow-md: 0 2px 6px rgba(16, 22, 19, 0.05), 0 12px 32px rgba(16, 22, 19, 0.08);
    --shadow-lg: 0 4px 12px rgba(16, 22, 19, 0.06), 0 24px 60px rgba(16, 22, 19, 0.12);

    /* Type */
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas,
        "Liberation Mono", monospace;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.65;
    font-size: 16px;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; }
input { font: inherit; }
a { color: var(--green-deep); text-decoration: none; }
a:hover { color: var(--green); }
ul, ol { padding-left: 1.3em; }
code { overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Layout & utilities ────────────────────────────────────── */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.text-green { color: var(--green); }
.text-muted { color: var(--muted); }
.text-gradient {
    /* Plugin signature gradient (135deg, green-700 -> green-600 -> emerald) */
    background: linear-gradient(135deg, #15803d 0%, #16a34a 50%, #059669 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* ── Legacy icon shim ──────────────────────────────────────────
   Font Awesome has been removed. Retained pages still carry
   <i class="fas fa-*"> tags; unmapped icons collapse harmlessly,
   a few meaningful ones get text glyphs. */
i[class*="fa-"] { font-style: normal; font-family: inherit; display: inline-block; }
i[class*="fa-"]::before { content: ""; }
i.fa-chevron-right::before { content: "\203A"; }        /* › */
i.fa-chevron-down::before { content: "\2304"; }
i.fa-check::before, i.fa-circle-check::before { content: "\2713"; color: var(--green); }
i.fa-check-circle::before { content: "\2713"; color: var(--green); }
i.fa-times-circle::before { content: "\2715"; color: var(--border-strong); }
i.fa-xmark::before { content: "\2715"; }
i.fa-bolt::before, i.fa-bolt-lightning::before { content: "\26A1\FE0E"; }
i.fa-infinity::before { content: "\221E"; }
i.fa-envelope::before { content: "\2709\FE0E"; }
i.fa-arrow-up-right-from-square::before { content: "\2197\FE0E"; }
.callout i, .section-badge i, .logo-icon i, .search-icon, .footer-socials { display: none; }

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.2;
    border: 1.5px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, transform 0.1s ease;
    min-height: 48px; /* touch target */
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%); color: #fff; }
.btn-primary:hover { background: linear-gradient(135deg, #15803d 0%, #16a34a 100%); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-outline:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); background: var(--surface-2); }
.btn-white { background: #fff; color: var(--green-ink); }
.btn-white:hover { background: var(--green-tint); color: var(--green-ink); }
.btn-ghost-light { background: transparent; color: var(--on-forest); border-color: rgba(255,255,255,0.25); }
.btn-ghost-light:hover { border-color: rgba(255,255,255,0.6); color: #fff; }
.btn-sm { padding: 8px 16px; font-size: 14px; min-height: 40px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-block { display: flex; width: 100%; }
.btn-caption { font-size: 13px; color: var(--muted); margin-top: 8px; }

/* ── Navbar ────────────────────────────────────────────────── */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(249, 250, 251, 0.92);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}
.navbar.scrolled { border-bottom-color: var(--border); }
.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 66px;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-icon {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    background-color: transparent;
    background-image: url("images/alkapay-logo.svg");
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}
.logo-text { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.nav-links {
    display: flex;
    list-style: none;
    gap: 28px;
    padding: 0;
    margin: 0;
}
.nav-links a { color: var(--ink-soft); font-weight: 500; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: none;
    border: 0;
    padding: 10px;
}
.mobile-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--ink);
    border-radius: 2px;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ── Section scaffolding ───────────────────────────────────── */
section { padding: 84px 0; }
.section-header { max-width: 660px; margin: 0 auto 52px; text-align: center; }
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 999px;
    background: var(--green-tint);
    color: var(--green-ink);
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.section-title {
    font-size: clamp(1.75rem, 3.6vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.section-subtitle { color: var(--muted); font-size: 17px; }

/* ── Hero ──────────────────────────────────────────────────── */
.hero {
    position: relative;
    display: flex;
    align-items: center;
    /* Fill the viewport below the 66px sticky nav (svh avoids the
       mobile URL-bar jump; vh is the fallback). */
    min-height: calc(100vh - 66px);
    min-height: calc(100svh - 66px);
    padding: 56px 0 96px;
    background:
        /* faint blueprint grid */
        linear-gradient(rgba(22, 163, 74, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(22, 163, 74, 0.045) 1px, transparent 1px),
        /* brand washes */
        radial-gradient(700px 380px at 85% -10%, rgba(34, 197, 94, 0.10), transparent 65%),
        radial-gradient(600px 320px at 0% 10%, rgba(22, 163, 74, 0.07), transparent 60%),
        var(--bg);
    background-size: 44px 44px, 44px 44px, auto, auto, auto;
    overflow: hidden;
}
.hero > .container { position: relative; z-index: 1; }

/* Ambient drifting orbs — soft radial gradients (no blur filter,
   so they cost nothing on low-end phones) */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    z-index: 0;
    border-radius: 50%;
    pointer-events: none;
}
.hero::before {
    width: 620px;
    height: 620px;
    top: -180px;
    right: -120px;
    background: radial-gradient(circle at center, rgba(34, 197, 94, 0.20), transparent 62%);
    animation: orbDrift 16s ease-in-out infinite;
}
.hero::after {
    width: 520px;
    height: 520px;
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle at center, rgba(22, 163, 74, 0.14), transparent 62%);
    animation: orbDrift 22s ease-in-out -6s infinite reverse;
}
@keyframes orbDrift {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-46px, 34px, 0) scale(1.1); }
}

/* Pulsing scroll cue */
.scroll-cue {
    position: absolute;
    left: 50%;
    bottom: 26px;
    z-index: 1;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    animation: cueFloat 2.2s ease-in-out infinite;
    transition: opacity 0.3s ease;
}
.scroll-cue-chevron {
    width: 10px;
    height: 10px;
    margin-top: -4px;
    border-right: 2px solid var(--green-deep);
    border-bottom: 2px solid var(--green-deep);
    transform: rotate(45deg);
}
.scroll-cue.hidden { opacity: 0; pointer-events: none; }
@keyframes cueFloat {
    0%, 100% { transform: translateY(0); opacity: 0.85; }
    50% { transform: translateY(7px); opacity: 1; }
}
.hero-container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 48px;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink-soft);
    margin-bottom: 22px;
}
.hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-bright);
}
.hero-title {
    font-size: clamp(2.15rem, 5vw, 3.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.08;
    margin-bottom: 20px;
}
.hero-subtitle {
    font-size: 18px;
    color: var(--ink-soft);
    max-width: 33em;
    margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 12px; }
.hero-note { font-size: 14px; color: var(--muted); margin-bottom: 34px; }
.hero-proof {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    padding-top: 22px;
    border-top: 1px solid var(--border);
}
.proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-soft);
}
.proof-chip::before {
    content: "\2713";
    color: var(--green);
    font-weight: 800;
}

/* Hero visual: STK phone + order card */
.hero-visual { position: relative; display: flex; justify-content: center; }
.stk-phone {
    width: 290px;
    background: #10161a;
    border-radius: 34px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
}
.stk-screen {
    background: linear-gradient(180deg, #f2f6f3, #e7efe9);
    border-radius: 24px;
    padding: 46px 14px 22px;
    position: relative;
    min-height: 380px;
}
.stk-screen::before {
    content: "";
    position: absolute;
    top: 12px; left: 50%;
    transform: translateX(-50%);
    width: 88px; height: 22px;
    background: #10161a;
    border-radius: 12px;
}
.stk-dialog {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(16,22,19,0.14);
    padding: 18px 16px;
    font-size: 13.5px;
}
.stk-dialog-head {
    font-weight: 800;
    font-size: 12px;
    letter-spacing: 0.1em;
    color: var(--green-deep);
    margin-bottom: 10px;
}
.stk-dialog p { color: #24312a; line-height: 1.5; margin-bottom: 12px; }
.stk-pin {
    display: flex;
    gap: 8px;
    justify-content: center;
    padding: 10px 0 14px;
}
.stk-pin span {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--ink);
    opacity: 0.85;
}
.stk-actions {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 10px;
    font-weight: 700;
    font-size: 13px;
}
.stk-actions .cancel { color: var(--muted); }
.stk-actions .ok { color: var(--green-deep); }

.order-card {
    position: absolute;
    right: -8px;
    bottom: 26px;
    width: 250px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    padding: 14px 16px;
    font-size: 13.5px;
}
.order-card .order-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}
.order-card .order-id { font-weight: 700; }
.order-card .order-amount { color: var(--muted); font-family: var(--font-mono); font-size: 12.5px; white-space: nowrap; }
.status-pill {
    font-size: 11.5px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}
.status-pill.processing { background: var(--green-tint); color: var(--green-ink); }
.status-pill.onhold { background: var(--amber-tint); color: var(--amber); }
.order-receipt {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    color: var(--muted);
    font-size: 12px;
}
.order-receipt code { font-family: var(--font-mono); color: var(--green-deep); font-weight: 600; }

/* Status swap animation (STK moment) */
.swap { position: relative; display: inline-grid; }
.swap > * { grid-area: 1 / 1; }
.swap .status-pill.onhold { animation: swapOut 7s ease-in-out infinite; }
.swap .status-pill.processing { animation: swapIn 7s ease-in-out infinite; }
@keyframes swapOut { 0%, 34% { opacity: 1; } 44%, 100% { opacity: 0; } }
@keyframes swapIn { 0%, 34% { opacity: 0; } 44%, 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
    .swap .status-pill.onhold { opacity: 0; }
    .swap .status-pill.processing { opacity: 1; }
}

/* ── Pain vs Solution ──────────────────────────────────────── */
.pain { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pain-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: stretch;
}
.pain-card {
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    border: 1px solid var(--border);
}
.pain-card.before { background: var(--surface-2); }
.pain-card.after { background: linear-gradient(135deg, var(--green-050) 0%, var(--green-tint) 100%); border-color: #bbf7d0; }
.pain-card .pain-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.pain-card.before .pain-tag { color: var(--red); }
.pain-card.after .pain-tag { color: var(--green-ink); }
.pain-card h3 { font-size: 20px; letter-spacing: -0.01em; margin-bottom: 16px; }
.pain-card ul { list-style: none; padding: 0; display: grid; gap: 12px; }
.pain-card li {
    padding-left: 26px;
    position: relative;
    color: var(--ink-soft);
    font-size: 15px;
}
.pain-card.before li::before {
    content: "\2715";
    position: absolute; left: 0; top: 1px;
    color: var(--red);
    font-weight: 700;
    font-size: 13px;
}
.pain-card.after li::before {
    content: "\2713";
    position: absolute; left: 0; top: 1px;
    color: var(--green-deep);
    font-weight: 800;
}

/* ── How it works ──────────────────────────────────────────── */
.hiw-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 40px;
}
.hiw-tab {
    padding: 10px 22px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface);
    color: var(--ink-soft);
    font-weight: 600;
    font-size: 15px;
    min-height: 44px;
}
.hiw-tab.active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}
.hiw-content { display: none; }
.hiw-content.active { display: block; }
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    max-width: 1040px;
    margin: 0 auto;
}
.hiw-step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 20px;
}
.step-number {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: var(--green-tint);
    color: var(--green-ink);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
}
.hiw-step h3 { font-size: 16.5px; margin-bottom: 8px; letter-spacing: -0.01em; }
.hiw-step p { font-size: 14.5px; color: var(--muted); }

/* ── Feature deep dives ────────────────────────────────────── */
.deep-dive {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    padding: 44px 0;
}
.deep-dive + .deep-dive { border-top: 1px solid var(--border); }
.deep-dive.flip .deep-copy { order: 2; }
.deep-copy .deep-kicker {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--green-deep);
    margin-bottom: 10px;
}
.deep-copy h3 {
    font-size: clamp(1.35rem, 2.4vw, 1.75rem);
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 14px;
}
.deep-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.deep-proof {
    display: inline-block;
    font-size: 13px;
    font-family: var(--font-mono);
    color: var(--green-ink);
    background: var(--green-tint);
    border-radius: 8px;
    padding: 8px 12px;
}

/* deep-dive visuals: log card & email card */
.mini-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    max-width: 460px;
    margin: 0 auto;
}
.mini-card-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.mini-card-head .dots { display: flex; gap: 5px; }
.mini-card-head .dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mini-card-body { padding: 16px; font-size: 13.5px; }
.log-lines { font-family: var(--font-mono); font-size: 12.5px; display: grid; gap: 8px; color: var(--ink-soft); }
.log-lines .t { color: var(--muted); }
.log-lines .ok { color: var(--green-deep); font-weight: 700; }
.log-lines .warn { color: var(--amber); font-weight: 700; }
.email-card p { margin-bottom: 10px; color: var(--ink-soft); }
.email-meta { font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); padding-bottom: 10px; margin-bottom: 12px; }
.email-highlight {
    background: var(--amber-tint);
    border-radius: 8px;
    padding: 10px 12px;
    font-weight: 600;
    color: var(--amber);
    font-size: 13px;
}

/* ── Dashboard preview ─────────────────────────────────────── */
.preview-section { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.preview-image-wrapper {
    max-width: 960px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}
.preview-image { width: 100%; height: auto; }

/* ── Demo section ──────────────────────────────────────────── */
.demo-card {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
    border-radius: var(--radius-lg);
    padding: 56px 40px;
    color: var(--on-forest);
    position: relative;
    overflow: hidden;
}
.demo-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(560px 280px at 90% 0%, rgba(34, 197, 94, 0.18), transparent 70%);
    pointer-events: none;
}
.demo-header { position: relative; z-index: 1; text-align: center; max-width: 620px; margin: 0 auto 36px; }
.demo-header .section-badge { background: rgba(34, 197, 94, 0.16); color: var(--on-forest-muted); }
.demo-header h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.02em; margin-bottom: 12px; }
.demo-header p { color: var(--on-forest-muted); }
.demo-options {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 880px;
    margin: 0 auto;
}
.demo-option {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.demo-tag {
    display: inline-block;
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 999px;
    margin-bottom: 12px;
}
.demo-tag.pro { background: rgba(34, 197, 94, 0.2); color: var(--on-forest-muted); }
.demo-tag.free { background: rgba(255, 255, 255, 0.1); color: var(--on-forest-muted); }
.demo-option h3 { font-size: 18px; margin-bottom: 8px; }
.demo-option p { font-size: 14.5px; color: var(--on-forest-muted); margin-bottom: 18px; }
.demo-option .btn-outline { color: var(--on-forest); border-color: rgba(255,255,255,0.3); }
.demo-option .btn-outline:hover { border-color: #fff; color: #fff; }

/* Live-demo video (click-to-load YouTube facade) */
.demo-video {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto 26px;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background:
        radial-gradient(420px 200px at 50% 40%, rgba(34, 197, 94, 0.14), transparent 70%),
        rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    overflow: hidden;
}
.demo-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.demo-video-play {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.3);
    transition: transform 0.15s ease;
}
.demo-video-play:hover { transform: scale(1.06); }
.demo-video-tri {
    width: 0; height: 0;
    border-left: 18px solid var(--forest);
    border-top: 11px solid transparent;
    border-bottom: 11px solid transparent;
    margin-left: 5px;
}
.demo-video-note { font-size: 13px; color: var(--on-forest-muted); }
.demo-video.is-empty .demo-video-play { opacity: 0.5; cursor: default; }
.demo-video.is-empty .demo-video-play:hover { transform: none; }
.demo-video.has-video .demo-video-note { display: none; }

.demo-cta { position: relative; z-index: 1; text-align: center; }
.demo-cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.demo-cta .btn-outline { color: var(--on-forest); border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.demo-cta .btn-outline:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.08); }
.demo-disclaimer {
    max-width: 560px;
    margin: 18px auto 0;
    font-size: 12.5px;
    line-height: 1.6;
    color: var(--on-forest-muted);
}

/* ── Money flow / no middleman ─────────────────────────────── */
.moneyflow { padding: 20px 0 40px; }
.moneyflow-card {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 36px;
    align-items: center;
    background: var(--green-050);
    border: 1px solid var(--green-tint);
    border-radius: var(--radius-lg);
    padding: 36px 40px;
}
.moneyflow-copy .section-badge { background: var(--green-tint); color: var(--green-ink); margin-bottom: 14px; }
.moneyflow-copy h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); letter-spacing: -0.02em; margin-bottom: 12px; color: var(--ink); }
.moneyflow-copy p { color: var(--ink-soft); font-size: 15px; line-height: 1.7; margin: 0; }
.moneyflow-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.mf-node { background: var(--surface); border: 1px solid var(--border-strong); border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: var(--shadow-sm); }
.mf-node-you { background: var(--green); color: #fff; border-color: var(--green-deep); box-shadow: none; }
.mf-arrow { color: var(--green); font-weight: 800; font-size: 18px; }
.mf-note { width: 100%; font-size: 12.5px; color: var(--muted); margin-top: 6px; }
@media (max-width: 760px) {
    .moneyflow-card { grid-template-columns: 1fr; gap: 24px; padding: 28px 24px; }
}

/* ── Comparison table ──────────────────────────────────────── */
.comparison-table-wrapper {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}
.comparison-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.comparison-table th, .comparison-table td {
    padding: 14px 18px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    font-size: 14.5px;
}
.comparison-table th { background: var(--surface-2); font-weight: 700; }
.comparison-table td:first-child, .comparison-table th.feature-col {
    text-align: left;
}
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table .pro-col { color: var(--green-ink); }

/* ── Pricing ───────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: stretch;
    max-width: 1040px;
    margin: 0 auto;
}
.pricing-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    position: relative;
}
.pricing-card.popular {
    border-color: var(--green);
    box-shadow: var(--shadow-md);
}
.popular-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--green);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    padding: 4px 14px;
    border-radius: 999px;
    white-space: nowrap;
}
.plan-name { font-size: 17px; font-weight: 800; margin-bottom: 10px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.price-currency { font-size: 15px; font-weight: 700; color: var(--muted); }
.price-amount { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; }
.price-period { font-size: 14px; color: var(--muted); }
.plan-description { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.plan-features {
    list-style: none;
    padding: 0;
    display: grid;
    gap: 10px;
    margin-bottom: 26px;
    flex: 1;
}
.plan-features li {
    position: relative;
    padding-left: 26px;
    font-size: 14.5px;
    color: var(--ink-soft);
}
.plan-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 800;
}
.plan-features li i { display: none; }
.pricing-note {
    text-align: center;
    max-width: 620px;
    margin: 34px auto 0;
    font-size: 14.5px;
    color: var(--muted);
}
.pricing-links { text-align: center; margin-top: 16px; font-size: 14.5px; }

/* Manual-cost callout */
.cost-math {
    max-width: 680px;
    margin: 44px auto 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px;
    text-align: center;
}
.cost-math strong { color: var(--green-ink); }
.cost-math .figures {
    font-family: var(--font-mono);
    font-size: 15px;
    color: var(--ink);
    display: block;
    margin: 10px 0 6px;
}

/* ── FAQ ───────────────────────────────────────────────────── */
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
details.faq-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0 22px;
}
details.faq-item[open] { border-color: var(--border-strong); }
details.faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 18px 0;
    font-weight: 650;
    font-size: 15.5px;
    cursor: pointer;
    min-height: 48px;
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: "+";
    font-size: 22px;
    font-weight: 400;
    color: var(--muted);
    flex: 0 0 auto;
    transition: transform 0.15s ease;
}
details.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-answer { padding: 0 0 20px; color: var(--ink-soft); font-size: 15px; }
.faq-answer p + p { margin-top: 10px; }

/* ── CTA band ──────────────────────────────────────────────── */
.cta-section { padding-bottom: 96px; }
.cta-card {
    background: linear-gradient(135deg, var(--forest) 0%, var(--forest-2) 100%);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    color: var(--on-forest);
    position: relative;
    overflow: hidden;
}
.cta-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(520px 300px at 15% 110%, rgba(34, 197, 94, 0.2), transparent 70%);
    pointer-events: none;
}
.cta-card h2 {
    position: relative;
    z-index: 1;
    font-size: clamp(1.6rem, 3.4vw, 2.3rem);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}
.cta-card p {
    position: relative;
    z-index: 1;
    color: var(--on-forest-muted);
    max-width: 480px;
    margin: 0 auto 28px;
}
.cta-buttons {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
    background: var(--forest);
    color: var(--on-forest-muted);
    padding: 60px 0 34px;
}
.footer a { color: var(--on-forest-muted); }
.footer a:hover { color: var(--on-forest); }
.footer .logo-text { color: var(--on-forest); }
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 44px;
}
.footer-brand p { font-size: 14.5px; margin-top: 16px; max-width: 30em; }
.footer-links h4 {
    color: var(--on-forest);
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    margin-bottom: 16px;
}
.footer-links ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.footer-links a { font-size: 14.5px; }
.footer-bottom {
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}
.footer-bottom p { font-size: 13px; }
.footer-trademarks {
    margin-top: 10px;
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
    font-size: 11px;
    line-height: 1.6;
    opacity: 0.65;
}

/* ── Polish layer ──────────────────────────────────────────── */

/* Cross-page fade (View Transitions API — progressive enhancement) */
@view-transition { navigation: auto; }

::selection { background: rgba(34, 197, 94, 0.22); }

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
    border-radius: 4px;
}

h1, h2, h3, .section-title { text-wrap: balance; }

/* Anchor jumps land below the 66px sticky navbar */
section[id], header[id] { scroll-margin-top: 74px; }

/* Hero entrance */
@keyframes riseIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: none; }
}
.hero-content { animation: riseIn 0.6s ease-out both; }
.hero-visual { animation: riseIn 0.7s 0.12s ease-out both; }

/* Scroll reveal — the .reveal class is added by JS only when
   IntersectionObserver exists and motion is allowed, so content
   is never hidden for no-JS or reduced-motion visitors. */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* Hover elevation */
.pricing-card, .info-card, .hiw-step, .demo-option {
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pricing-card:hover, .info-card:hover, .hiw-step:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.btn-primary:hover { box-shadow: 0 6px 18px rgba(22, 163, 74, 0.28); }

/* FAQ answer ease-in */
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
details.faq-item[open] .faq-answer { animation: faqIn 0.22s ease-out; }

/* Sticky mobile CTA (landing page) */
.mobile-cta {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 90;
    display: none;
    gap: 10px;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-top: 1px solid var(--border);
}
.mobile-cta .btn { flex: 1; }
@media (max-width: 860px) {
    .mobile-cta.show { display: flex; }
}

/* Back-to-top button (injected by script.js on every page) */
.scroll-top {
    position: fixed;
    right: 18px;
    bottom: calc(18px + env(safe-area-inset-bottom));
    z-index: 95;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid var(--border-strong);
    border-radius: 999px;
    background: var(--surface);
    box-shadow: var(--shadow-md);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px) scale(0.9);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s,
        bottom 0.25s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.scroll-top.show { opacity: 1; visibility: visible; transform: none; }
.scroll-top:hover { border-color: var(--green); background: var(--green-050); }
.scroll-top:active { transform: scale(0.94); }
.scroll-top-chevron {
    width: 10px;
    height: 10px;
    margin-top: 4px;
    border-left: 2px solid var(--green-deep);
    border-top: 2px solid var(--green-deep);
    transform: rotate(45deg);
}
@media (max-width: 860px) {
    /* Ride above the sticky mobile CTA bar when it's visible */
    .mobile-cta.show ~ .scroll-top { bottom: calc(80px + env(safe-area-inset-bottom)); }
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .hiw-steps { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-container { gap: 32px; }
}

@media (max-width: 860px) {
    section { padding: 60px 0; }
    .hero { padding: 44px 0; min-height: auto; }
    .scroll-cue { display: none; }
    .hero-container { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 8px; }
    .order-card { right: 0; }
    .pain-grid, .deep-dive, .demo-options, .pricing-grid { grid-template-columns: 1fr; }
    .deep-dive { gap: 28px; padding: 36px 0; }
    .deep-dive.flip .deep-copy { order: 0; }
    .pricing-card.popular { order: -1; }

    /* Mobile nav */
    .nav-links {
        position: absolute;
        top: 66px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
        display: none;
        padding: 8px 0;
    }
    .nav-links.active { display: flex; }
    .nav-links a {
        display: block;
        padding: 14px 24px;
        font-size: 16px;
    }
    .mobile-toggle { display: flex; }
    .nav-actions .btn { display: none; }
    .nav-actions .mobile-toggle { display: flex; }
}

@media (max-width: 560px) {
    .hiw-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .stk-phone { width: 250px; }
    .order-card { width: 220px; bottom: 10px; }
    .demo-card, .cta-card { padding: 40px 22px; }
    .btn-lg { width: 100%; }
    .hero-cta { flex-direction: column; }
}
