/* =========================================================
   BillbAce Marketing Site — styles.css
   Mobile-first, dark app landing page
   ========================================================= */

*, *::before, *::after { box-sizing: border-box; }

:root {
    --bg:            #07080f;
    --surface:       #0d1019;
    --card:          #131825;
    --card-border:   rgba(255,255,255,0.07);
    --text:          #f0f4ff;
    --muted:         #8898aa;
    --subtle:        rgba(255,255,255,0.12);
    --accent:        #0f766e;
    --accent-hover:  #115e59;
    --accent-muted:  #6b9e96;
    --accent-glow:   rgba(15,118,110,0.12);
    --accent-soft:   rgba(15,118,110,0.08);
    --accent-border: rgba(15,118,110,0.22);
    --radius:        14px;
    --radius-lg:     22px;
    --nav-h:         72px;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
a { text-decoration: none; }
img { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap {
    width: min(1160px, 100% - 2.5rem);
    margin-inline: auto;
}

/* ── GLOW BACKGROUND ──────────────────────────────────── */
.glow-layer {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 55% at 80% 30%, rgba(15,118,110,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 50% at 10% 80%, rgba(15,118,110,0.04) 0%, transparent 70%);
}

/* ── NAV ──────────────────────────────────────────────── */
.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid transparent;
    transition: background 0.3s, border-color 0.3s;
}

.nav.scrolled,
.nav--static {
    background: rgba(7,8,15,0.92);
    backdrop-filter: blur(14px);
    border-color: var(--card-border);
}

.nav-shell {
    min-height: var(--nav-h);
    display: flex;
    align-items: center;
}

.nav-inner {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    font-weight: 800;
    font-size: 1.05rem;
    color: #fff;
    letter-spacing: -0.015em;
    flex-shrink: 0;
    z-index: 2;
}

.nav-brand img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.nav-links {
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 0.75rem 1.25rem 1rem;
    background: rgba(7,8,15,0.98);
    border-bottom: 1px solid var(--card-border);
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}

.nav.is-open .nav-links {
    display: flex;
}

.nav-links a {
    color: #b4c2d0;
    font-size: 0.92rem;
    font-weight: 500;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    transition: color 0.15s, background 0.15s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    flex-shrink: 0;
    z-index: 2;
}

.nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--subtle);
    background: rgba(255,255,255,0.04);
    color: #fff;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.nav-toggle:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.22);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
    transition: 0.2s;
    white-space: nowrap;
}

.nav-cta-outline {
    color: #fff;
    border: 1.5px solid var(--subtle);
}

.nav-cta-outline:hover { border-color: rgba(255,255,255,0.3); }

.nav-cta-filled {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid transparent;
}

.nav-cta-filled:hover { background: var(--accent-hover); }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
    position: relative;
    height: calc(100svh - var(--nav-h));
    max-height: calc(100svh - var(--nav-h));
    overflow: hidden;
}

.hero-bg-img {
    position: absolute;
    inset: 0;
    background: url('assets/landing-page-bg.jpg') center/cover no-repeat;
    opacity: 0.06;
    z-index: 0;
}

.hero-phone {
    position: absolute;
    inset: 0;
    z-index: 1;
    margin: 0;
    pointer-events: none;
    overflow: hidden;
}

.phone-img {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    object-position: right bottom;
    filter: drop-shadow(0 24px 48px rgba(15,118,110,0.12));
}

.hero-inner {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: min(34rem, 100%);
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 5px 12px;
    border-radius: 999px;
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--accent-muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.hero-h1 {
    font-size: clamp(2.4rem, 6.5vw, 4.2rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.05;
    margin-bottom: 1.1rem;
}

.hero-h1 span { color: var(--accent-muted); }

.hero-desc {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.65;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}

.btn-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 13px 22px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    transition: 0.2s;
    cursor: pointer;
    border: 1.5px solid transparent;
}

.btn-cta-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 6px 20px var(--accent-glow);
}
.btn-cta-primary:hover { background: var(--accent-hover); box-shadow: 0 8px 22px var(--accent-glow); }

.btn-cta-ghost {
    background: rgba(255,255,255,0.07);
    color: #fff;
    border-color: var(--subtle);
}
.btn-cta-ghost:hover { background: rgba(255,255,255,0.12); }

.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.stat {
    padding: 0.4rem 1.6rem 0.4rem 0;
    margin-right: 1.6rem;
    position: relative;
}

.stat + .stat {
    border-left: 1px solid var(--subtle);
    padding-left: 1.6rem;
    margin-right: 0;
}

.stat-val {
    display: block;
    font-size: 1.55rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.stat-lbl {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 3px;
}

/* ── FEATURES ─────────────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    padding: 72px 0;
}

.section-divider {
    border: none;
    border-top: 1px solid var(--card-border);
    margin: 0;
}

.section-tag {
    display: inline-block;
    margin-bottom: 10px;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--accent-muted);
}

.section-title {
    font-size: clamp(1.7rem, 4vw, 2.5rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.section-sub {
    color: var(--muted);
    font-size: 1rem;
    max-width: 460px;
    line-height: 1.65;
    margin-bottom: 48px;
}

.feat-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr;
}

.feat-card {
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 22px 20px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: border-color 0.2s, background 0.2s;
}

.feat-card:hover {
    border-color: var(--accent-border);
    background: rgba(15,118,110,0.03);
}

.feat-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-muted);
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.feat-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #e2ecff;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}

.feat-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.58;
}

/* ── HOW IT WORKS ─────────────────────────────────────── */
.steps {
    display: grid;
    gap: 12px;
}

.step-card {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--card);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    padding: 20px;
}

.step-num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    color: var(--accent-muted);
    font-size: 0.85rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.step-card h3 {
    font-size: 0.97rem;
    font-weight: 700;
    color: #e2ecff;
    margin-bottom: 4px;
}

.step-card p {
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

/* ── PRO PANEL ────────────────────────────────────────── */
.pro-panel {
    background: linear-gradient(135deg, rgba(15,118,110,0.07) 0%, rgba(13,16,25,0.9) 60%);
    border: 1px solid var(--accent-border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
}

.pro-panel h2 {
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    font-weight: 900;
    color: #fff;
    margin-bottom: 10px;
}

.pro-panel p {
    color: var(--muted);
    font-size: 0.97rem;
    max-width: 460px;
    line-height: 1.65;
    margin-bottom: 24px;
}

/* ── FOOTER ───────────────────────────────────────────── */
.site-footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--card-border);
    padding: 28px 0;
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--muted);
    line-height: 1.55;
}

.footer-copy a {
    color: #a8bcc8;
}

.footer-copy a:hover {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.footer-links a {
    color: var(--muted);
    font-size: 0.85rem;
    padding: 4px 8px;
    border-radius: 7px;
    transition: color 0.15s, background 0.15s;
}
.footer-links a:hover { color: #fff; background: rgba(255,255,255,0.07); }

/* ── LEGAL PAGES ──────────────────────────────────────── */
.legal-topbar {
    position: static;
}

.legal-body {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 0 auto;
    padding: 44px 0 72px;
}

.legal-header-block {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
    padding: 16px 18px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid var(--card-border);
}

.legal-header-ic {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: var(--accent-soft);
    color: var(--accent-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.legal-kicker {
    margin: 0 0 2px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-muted);
}

.legal-body h1 {
    margin: 0;
    font-size: 1.45rem;
    color: #fff;
}

.legal-date {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: var(--muted);
}

.legal-body h2 {
    font-size: 1rem;
    font-weight: 700;
    color: #d0dff0;
    margin: 26px 0 8px;
}

.legal-body h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: #c4d4e4;
    margin: 18px 0 8px;
}

.legal-body > p {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.72;
    margin-bottom: 12px;
}

.legal-body a { color: var(--accent-muted); }
.legal-body a:hover { text-decoration: underline; }

.delete-steps {
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
    counter-reset: delete-step;
}

.delete-steps li {
    counter-increment: delete-step;
    position: relative;
    margin: 0 0 12px;
    padding: 14px 14px 14px 48px;
    border-radius: var(--radius);
    border: 1px solid var(--card-border);
    background: var(--card);
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.65;
}

.delete-steps li::before {
    content: counter(delete-step);
    position: absolute;
    left: 14px;
    top: 14px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 800;
    color: var(--accent-muted);
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
}

.delete-callout {
    margin: 20px 0;
    padding: 16px 18px;
    border-radius: var(--radius);
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
}

.delete-callout p {
    margin: 0;
    color: #b8d4cf;
    font-size: 0.95rem;
    line-height: 1.65;
}

.delete-table-wrap {
    overflow-x: auto;
    margin: 16px 0 20px;
}

.delete-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.delete-table th,
.delete-table td {
    padding: 10px 12px;
    border: 1px solid var(--card-border);
    text-align: left;
    vertical-align: top;
}

.delete-table th {
    background: var(--card);
    color: #dce8f5;
    font-weight: 700;
}

.delete-table td {
    color: var(--muted);
}

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (min-width: 680px) {
    .feat-grid { grid-template-columns: 1fr 1fr; }
    .steps { grid-template-columns: 1fr 1fr 1fr; }
    .pro-panel { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
    .pro-panel p { margin-bottom: 0; }
}

@media (max-width: 899px) {
    .nav-actions .nav-cta-filled {
        display: none;
    }

    .footer-inner {
        align-items: center;
        text-align: center;
    }

    .footer-links {
        justify-content: center;
    }

    .hero-phone {
        display: none;
    }

    .hero-bg-img {
        opacity: 0.14;
    }

    .hero-inner {
        align-items: center;
        justify-content: center;
        padding: 1.25rem 0;
    }

    .hero-copy {
        max-width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-eyebrow {
        margin-bottom: 0.85rem;
    }

    .hero-h1 {
        font-size: clamp(2.1rem, 8vw, 2.75rem);
        margin-bottom: 0.85rem;
    }

    .hero-desc {
        font-size: 0.97rem;
        margin-bottom: 1.35rem;
        max-width: 22rem;
    }

    .hero-actions {
        margin-bottom: 1.5rem;
        justify-content: center;
        width: 100%;
    }

    .hero-actions .btn-cta {
        width: 100%;
        max-width: 20rem;
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
        width: 100%;
        max-width: 22rem;
    }

    .stat {
        flex: 1;
        text-align: center;
        padding: 0.35rem 0.5rem;
        margin: 0;
    }

    .stat + .stat {
        border-left: 1px solid var(--subtle);
        padding-left: 0.5rem;
    }
}

@media (min-width: 900px) {
    .nav-inner {
        display: grid;
        grid-template-columns: 1fr auto 1fr;
        align-items: center;
    }

    .nav-brand {
        justify-self: start;
    }

    .nav-links {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;
        gap: 0.25rem;
        position: static;
        padding: 0;
        background: none;
        border: none;
        box-shadow: none;
        justify-self: center;
    }

    .nav-links a {
        padding: 7px 12px;
        font-size: 0.875rem;
    }

    .nav-actions {
        justify-self: end;
    }

    .nav-toggle {
        display: none;
    }

    .hero-copy {
        max-width: min(40rem, 58%);
    }

    .hero-desc {
        max-width: 34rem;
    }

    .feat-grid { grid-template-columns: repeat(3, 1fr); }

    .footer-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

@media (min-width: 1100px) {
    .hero-copy {
        max-width: min(44rem, 56%);
    }

    .phone-img {
        right: -2%;
    }
}
