:root {
    --ink: #071327;
    --muted: #5a6f69;
    --line: #dfe8e3;
    --green: #13a463;
    --green-dark: #0d7a4a;
    --green-soft: #e9f9f2;
    --bg: #f4fbf8;
    --card: #ffffff;
    --radius: 16px;
    --shadow: 0 18px 48px rgba(7, 19, 39, 0.08);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body.uk-demo {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
[x-cloak] { display: none !important; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-weight: 750;
    font-size: 14px;
    cursor: pointer;
}
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn-primary { background: var(--green); color: #fff; }
.btn-soft { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.uk-full { width: 100%; margin-top: 8px; }

.pill {
    display: inline-block;
    padding: 4px 9px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    text-transform: lowercase;
    background: var(--green-soft);
    color: var(--green-dark);
}
.pill.unpaid { background: #fff4e5; color: #b45309; }
.pill.ok { background: var(--green-soft); color: #067647; }
.pill.processing { background: #eef2ff; color: #4338ca; }

.uk-demo-nav {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.uk-demo-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}
.uk-demo-mark {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--green);
    color: #fff;
    font-weight: 900;
    font-size: 13px;
}
.uk-demo-brand strong { display: block; line-height: 1.1; }
.uk-demo-brand small { color: var(--muted); font-size: 11px; }
.uk-demo-links {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    font-size: 14px;
    font-weight: 650;
}
.uk-demo-links a:not(.btn) { color: var(--muted); }

.uk-hero {
    position: relative;
    overflow: hidden;
    padding: 56px 20px 72px;
}
.uk-hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.uk-hero-mesh {
    position: absolute;
    inset: -20% -10%;
    background:
        radial-gradient(ellipse 55% 45% at 18% 22%, rgba(19, 164, 99, 0.18), transparent 58%),
        radial-gradient(ellipse 50% 40% at 82% 18%, rgba(13, 122, 74, 0.12), transparent 55%),
        linear-gradient(165deg, #f4fbf8 0%, #eef5f2 42%, #fff 100%);
}
.uk-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    opacity: 0.55;
}
.uk-hero-orb-a {
    width: min(42vw, 380px);
    height: min(42vw, 380px);
    left: -6%;
    top: 8%;
    background: radial-gradient(circle, rgba(19, 164, 99, 0.35) 0%, transparent 70%);
}
.uk-hero-orb-b {
    width: min(48vw, 440px);
    height: min(48vw, 440px);
    right: -8%;
    top: -12%;
    background: radial-gradient(circle, rgba(32, 214, 139, 0.28) 0%, transparent 70%);
}
.uk-hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(19, 164, 99, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(19, 164, 99, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 65% at 50% 40%, #000 20%, transparent 75%);
}
.uk-hero-inner {
    position: relative;
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}
.uk-eyebrow {
    margin: 0 0 10px;
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.uk-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(1.9rem, 4.5vw, 3rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}
.uk-lead {
    margin: 0 auto 22px;
    max-width: 640px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.55;
}
.uk-hero-cta {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.uk-hero-badges {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
}
.uk-hero-badges span {
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

.uk-section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 20px 64px;
}
.uk-section-head {
    max-width: 680px;
    margin-bottom: 28px;
}
.uk-section-head h2 {
    margin: 0 0 8px;
    font-size: clamp(1.4rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}
.uk-section-head p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.uk-compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.uk-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 22px;
    box-shadow: var(--shadow);
}
.uk-card-muted { background: #fafcfd; }
.uk-card-accent { border-color: rgba(19, 164, 99, 0.25); background: linear-gradient(180deg, #fff, #f7fcf9); }
.uk-card h3 { margin: 0 0 12px; font-size: 1.05rem; }
.uk-card ul, .uk-card ol {
    margin: 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.6;
    font-size: 14px;
}
.uk-card li + li { margin-top: 8px; }

.uk-demo-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}
.uk-demo-tab {
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-weight: 750;
    font-size: 13px;
    cursor: pointer;
}
.uk-demo-tab.active {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.uk-demo-stage {
    display: grid;
    grid-template-columns: 1.4fr 0.9fr;
    gap: 18px;
    align-items: start;
}
.uk-browser {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow);
}
.uk-browser-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f7faf8;
    border-bottom: 1px solid var(--line);
}
.uk-browser-bar span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #e2e8f0;
}
.uk-browser-bar span:nth-child(1) { background: #fca5a5; }
.uk-browser-bar span:nth-child(2) { background: #fde68a; }
.uk-browser-bar span:nth-child(3) { background: #86efac; }
.uk-browser-bar code {
    margin-left: auto;
    font-size: 11px;
    color: var(--muted);
}
.uk-browser-body {
    min-height: 420px;
    padding: 16px;
    background: linear-gradient(180deg, #f8fcfa, #fff);
}
.uk-screen { animation: fadeIn 0.35s ease; }
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.uk-mini-topbar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 13px;
}
.uk-mini-topbar span {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 10px;
    font-weight: 900;
}
.uk-screen-card, .uk-billplz, .uk-agreement {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 16px;
}
.uk-kicker {
    margin: 0 0 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--green-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.uk-screen-card h3, .uk-billplz h3 { margin: 0 0 12px; font-size: 1.1rem; }
.uk-fake-input {
    margin: 6px 0 12px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #fafafa;
    font-weight: 650;
}
.uk-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: var(--muted);
}
.uk-screen-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    font-weight: 800;
}
.uk-bill-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
}
.uk-bill-card.muted { opacity: 0.72; }
.uk-bill-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 6px;
    font-size: 12px;
    color: var(--muted);
    font-weight: 700;
}
.uk-bill-card strong { display: block; margin-bottom: 8px; }
.uk-bill-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 10px;
}
.uk-agreement h3, .uk-agreement h4 { margin: 0 0 8px; font-size: 14px; }
.uk-agreement p { margin: 0 0 14px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.uk-signatures {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.uk-sign-box {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    background: #fff;
}
.uk-sign-box svg { width: 100%; height: 40px; }
.uk-sign-box small {
    display: block;
    margin-top: 6px;
    font-size: 10px;
    color: var(--muted);
}
.uk-amount {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    margin: 8px 0 14px;
}
.uk-pay-methods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.uk-pay-method {
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 10px;
    text-align: center;
    font-size: 11px;
}
.uk-pay-method strong { display: block; font-size: 13px; }
.uk-pay-method span { color: var(--muted); }
.uk-pay-method.active {
    border-color: var(--green);
    background: var(--green-soft);
}
.uk-receipt {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.uk-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 12px;
}
.uk-stats div {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 12px;
}
.uk-stats span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    font-weight: 700;
}
.uk-stats strong { font-size: 1.4rem; }
.uk-admin-list div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    font-size: 13px;
}

.uk-demo-notes {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 20px;
    box-shadow: var(--shadow);
}
.uk-step {
    margin: 0 0 6px;
    color: var(--green-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}
.uk-demo-notes h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
}
.uk-demo-notes p {
    margin: 0 0 14px;
    color: var(--muted);
    line-height: 1.55;
    font-size: 14px;
}

.uk-cta-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 18px;
    align-items: start;
}
.uk-cta ul {
    margin: 12px 0 0;
    padding-left: 18px;
    color: var(--muted);
    line-height: 1.7;
}

.uk-footer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 24px 20px 40px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13px;
    border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
    .uk-compare-grid,
    .uk-demo-stage,
    .uk-cta-grid {
        grid-template-columns: 1fr;
    }
    .uk-demo-links a:not(.btn) { display: none; }
    .uk-browser-body { min-height: 380px; }
}

@media (max-width: 560px) {
    .uk-signatures,
    .uk-pay-methods,
    .uk-stats {
        grid-template-columns: 1fr;
    }
}
