/* =========================================================
   MAPPING BILLS / NORTRUVA LABS — DESIGN SYSTEM
   Concept: the page is a single unspooling paper receipt.
   ========================================================= */

:root {
    /* Backgrounds & surfaces (unchanged brand tokens) */
    --bg-base: #F8FAFC;
    --bg-surface: #FFFFFF;
    --bg-surface-soft: #F1F5F9;
    --bg-surface-elevated: #FFFFFF;
    --bg-glass: rgba(255, 255, 255, 0.85);

    /* Borders */
    --border-subtle: #E2E8F0;
    --border-strong: #CBD5E1;
    --border-accent: rgba(255, 107, 74, 0.35);

    /* Brand accents */
    --primary-orange: #FF6B4A;
    --primary-amber: #FF8A3D;
    --primary-gradient: linear-gradient(135deg, #FF6B4A 0%, #FF8A3D 100%);
    --primary-soft: rgba(255, 107, 74, 0.1);

    --emerald-green: #059669;
    --emerald-light: #10B981;
    --emerald-soft: rgba(16, 185, 129, 0.12);
    --emerald-gradient: linear-gradient(135deg, #10B981 0%, #059669 100%);

    --accent-gold: #D97706;
    --gold-soft: rgba(245, 158, 11, 0.12);
    --accent-cyan: #0284C7;
    --cyan-soft: rgba(14, 165, 233, 0.12);

    /* Text */
    --text-primary: #0F172A;
    --text-secondary: #475569;
    --text-muted: #64748B;
    --text-inverted: #FFFFFF;

    /* Shadows */
    --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.05);
    --shadow-card: 0 12px 32px -4px rgba(15, 23, 42, 0.06), 0 4px 12px -2px rgba(15, 23, 42, 0.03);
    --shadow-glow: 0 16px 36px -4px rgba(255, 107, 74, 0.22);
    --shadow-emerald: 0 16px 36px -4px rgba(16, 185, 129, 0.2);
    --shadow-paper: 0 30px 70px -20px rgba(15, 23, 42, 0.18), 0 10px 24px -8px rgba(15, 23, 42, 0.08);

    /* Fonts */
    --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
    --font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    --font-mono: 'Space Grotesk', monospace, sans-serif;

    /* Layout */
    --tape-width: 700px;
    --insert-width: 1080px;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-family);
    line-height: 1.65;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.tape { max-width: var(--tape-width); margin: 0 auto; padding: 0 24px; position: relative; }
.insert { max-width: var(--insert-width); margin: 0 auto; padding: 0 24px; position: relative; }

/* Ambient background spheres */
.glow-sphere { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: 0; opacity: 0.5; }
.glow-1 { top: -60px; left: 8%; width: 420px; height: 420px; background: var(--primary-soft); }
.glow-2 { top: 40%; right: 5%; width: 380px; height: 380px; background: var(--emerald-soft); }
.glow-3 { bottom: 0; left: 30%; width: 340px; height: 340px; background: var(--cyan-soft); }

/* =========================================================
   TYPOGRAPHY
   ========================================================= */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.15;
}

h2 { font-size: clamp(1.7rem, 4vw, 2.35rem); }
h3 { font-size: 1.25rem; font-weight: 600; }

p { color: var(--text-secondary); font-size: 1rem; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--primary-orange);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.eyebrow::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--primary-orange);
}

.gradient-text { background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.emerald-text { color: var(--emerald-green); }

/* =========================================================
   NAV
   ========================================================= */
.navbar {
    position: sticky; top: 0; z-index: 40;
    backdrop-filter: blur(14px);
    background: rgba(248, 250, 252, 0.78);
    border-bottom: 1px solid var(--border-subtle);
}
.nav-container { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; max-width: var(--insert-width); margin: 0 auto; }
.brand-logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: var(--primary-gradient);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-weight: 700; color: #fff; font-size: 0.95rem;
}
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; }
.brand-divider { color: var(--border-strong); margin: 0 4px; }
.sub-brand-name { color: var(--text-muted); font-size: 0.9rem; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 0.92rem; color: var(--text-secondary); transition: color 0.2s var(--ease); }
.nav-links a:hover { color: var(--primary-orange); }

.btn-primary-sm {
    background: var(--primary-gradient); color: #fff; font-weight: 600; font-size: 0.9rem;
    padding: 10px 18px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px;
    box-shadow: var(--shadow-glow); transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn-primary-sm:hover { transform: translateY(-2px); box-shadow: 0 20px 40px -8px rgba(255,107,74,0.32); }
.btn-secondary-sm {
    border: 1px solid var(--border-strong); color: var(--text-primary); font-weight: 600; font-size: 0.9rem;
    padding: 10px 18px; border-radius: 10px; display: inline-flex; align-items: center; gap: 8px;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.btn-secondary-sm:hover { border-color: var(--primary-orange); background: var(--primary-soft); }

/* =========================================================
   TORN PAPER EDGES — the one bold device, used only twice
   ========================================================= */
.torn-edge {
    height: 18px;
    background:
        linear-gradient(135deg, var(--bg-surface) 50%, transparent 50%),
        linear-gradient(45deg, var(--bg-surface) 50%, transparent 50%);
    background-size: 18px 18px;
    background-position: 0 0, 9px 0;
    background-repeat: repeat-x;
    position: relative; z-index: 2;
}
.torn-edge.flip { transform: scaleY(-1); }
.torn-edge.dark {
    background:
        linear-gradient(135deg, var(--text-primary) 50%, transparent 50%),
        linear-gradient(45deg, var(--text-primary) 50%, transparent 50%);
    background-size: 18px 18px; background-position: 0 0, 9px 0; background-repeat: repeat-x;
}

/* =========================================================
   HERO — thermal-printer receipt
   ========================================================= */
.hero-wrap { position: relative; z-index: 1; padding-top: 56px; }
.hero-inner { text-align: center; padding-bottom: 40px; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    padding: 7px 14px; border-radius: 100px; font-size: 0.82rem; color: var(--text-secondary);
    box-shadow: var(--shadow-sm); margin-bottom: 22px;
}
.hero-title {
    font-size: clamp(2.3rem, 6vw, 3.4rem);
    margin-bottom: 18px;
}
.hero-subtitle {
    max-width: 560px; margin: 0 auto 30px; font-size: 1.08rem; color: var(--text-secondary);
}
.hero-cta-group { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 26px; }
.btn-store {
    display: flex; align-items: center; gap: 10px; background: var(--text-primary); color: #fff;
    padding: 11px 20px; border-radius: 12px; transition: transform 0.2s var(--ease);
}
.btn-store.btn-android { background: var(--primary-gradient); box-shadow: var(--shadow-glow); }
.btn-store:hover { transform: translateY(-2px); }
.store-icon { font-size: 1.3rem; }
.btn-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-sub { font-size: 0.68rem; opacity: 0.8; }
.btn-main { font-size: 0.95rem; font-weight: 700; font-family: var(--font-display); }

.trust-strip { display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap; font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }
.trust-strip span::before { content: none; }

/* --- receipt paper strip --- */
.receipt-printer { position: relative; max-width: 420px; margin: 0 auto; }
.printer-slot {
    height: 14px; background: var(--text-primary); border-radius: 4px 4px 0 0;
    position: relative; z-index: 3; box-shadow: 0 6px 18px rgba(15,23,42,0.25);
}
.printer-slot::after {
    content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
    width: 60%; height: 3px; background: rgba(255,255,255,0.15); border-radius: 2px;
}
.receipt-paper {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-top: none;
    box-shadow: var(--shadow-paper);
    padding: 22px 22px 26px;
    font-family: var(--font-mono);
    animation: feed-out 1.1s var(--ease) both;
    transform-origin: top center;
}
@keyframes feed-out {
    from { transform: scaleY(0.15); opacity: 0; }
    to { transform: scaleY(1); opacity: 1; }
}
.receipt-head { text-align: center; border-bottom: 1px dashed var(--border-strong); padding-bottom: 12px; margin-bottom: 12px; }
.receipt-head .rh-name { font-weight: 700; letter-spacing: 0.02em; font-size: 1rem; }
.receipt-head .rh-meta { font-size: 0.72rem; color: var(--text-muted); margin-top: 4px; }
.receipt-line {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    font-size: 0.82rem; padding: 7px 0;
    opacity: 0; animation: line-in 0.5s var(--ease) forwards;
}
.receipt-line:nth-child(1) { animation-delay: 1.15s; }
.receipt-line:nth-child(2) { animation-delay: 1.35s; }
.receipt-line:nth-child(3) { animation-delay: 1.55s; }
.receipt-line:nth-child(4) { animation-delay: 1.75s; }
@keyframes line-in { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: translateX(0); } }
.receipt-line .rl-name { color: var(--text-primary); }
.receipt-line .rl-tag {
    font-size: 0.66rem; padding: 2px 7px; border-radius: 100px; font-weight: 600;
    background: var(--bg-surface-soft); color: var(--text-muted);
    opacity: 0; transform: scale(0.6); animation: tag-pop 0.4s var(--ease) forwards;
}
.receipt-line:nth-child(1) .rl-tag { animation-delay: 2.05s; background: var(--emerald-soft); color: var(--emerald-green); }
.receipt-line:nth-child(2) .rl-tag { animation-delay: 2.2s; background: var(--gold-soft); color: var(--accent-gold); }
.receipt-line:nth-child(3) .rl-tag { animation-delay: 2.35s; background: var(--cyan-soft); color: var(--accent-cyan); }
.receipt-line:nth-child(4) .rl-tag { animation-delay: 2.5s; background: var(--emerald-soft); color: var(--emerald-green); }
@keyframes tag-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.receipt-total-row {
    display: flex; justify-content: space-between; border-top: 1px dashed var(--border-strong);
    margin-top: 10px; padding-top: 12px; font-weight: 700; font-size: 0.92rem;
    opacity: 0; animation: line-in 0.5s var(--ease) forwards; animation-delay: 2.7s;
}
.receipt-badge-row { display: flex; justify-content: center; margin-top: 14px; opacity: 0; animation: line-in 0.5s var(--ease) forwards; animation-delay: 2.9s; }
.scan-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.72rem; color: var(--emerald-green); background: var(--emerald-soft); padding: 5px 11px; border-radius: 100px; font-weight: 600; }

.scan-beam {
    position: absolute; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-orange), transparent);
    top: 0; opacity: 0; z-index: 4; box-shadow: 0 0 16px 2px rgba(255,107,74,0.5);
    animation: sweep 1.1s var(--ease) forwards; animation-delay: 1.0s;
}
@keyframes sweep {
    0% { top: 14px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 92%; opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .receipt-paper, .receipt-line, .receipt-line .rl-tag, .receipt-total-row, .receipt-badge-row, .scan-beam {
        animation: none !important; opacity: 1 !important; transform: none !important;
    }
}

/* =========================================================
   SECTION SCAFFOLD
   ========================================================= */
section { position: relative; z-index: 1; padding: 64px 0; }
.section-lede { margin-bottom: 34px; }
.section-lede p { max-width: 480px; }

.feature-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
    padding: 40px 0; border-bottom: 1px dashed var(--border-subtle);
}
.feature-row:last-child { border-bottom: none; }
.feature-row.reverse .feature-visual { order: -1; }
.feature-copy h3 { margin-bottom: 12px; font-size: 1.4rem; }
.feature-copy p { margin-bottom: 14px; }
.feature-check-list { display: flex; flex-direction: column; gap: 8px; }
.feature-check-list li { display: flex; gap: 8px; font-size: 0.92rem; color: var(--text-secondary); align-items: flex-start; }
.feature-check-list .check { color: var(--emerald-green); font-weight: 700; flex-shrink: 0; }

.mini-item-card {
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px;
    padding: 14px 16px; display: flex; align-items: center; justify-content: space-between;
    box-shadow: var(--shadow-sm); margin-bottom: 10px; font-size: 0.88rem;
}
.mini-item-card:last-child { margin-bottom: 0; }
.mini-item-left { display: flex; align-items: center; gap: 10px; }
.mini-icon { font-size: 1.2rem; }
.mini-cat { font-size: 0.7rem; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--emerald-soft); color: var(--emerald-green); }
.mini-cat.tech { background: var(--cyan-soft); color: var(--accent-cyan); }
.mini-cat.home { background: var(--gold-soft); color: var(--accent-gold); }

.math-strip-visual {
    background: var(--text-primary); color: #fff; border-radius: 18px; padding: 22px; font-family: var(--font-mono);
}
.math-strip-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 7px 0; color: rgba(255,255,255,0.75); }
.math-strip-row.total { border-top: 1px dashed rgba(255,255,255,0.25); margin-top: 8px; padding-top: 12px; color: #fff; font-weight: 700; }
.match-pill { display: inline-flex; align-items: center; gap: 6px; background: rgba(16,185,129,0.18); color: #6EE7B7; padding: 5px 11px; border-radius: 100px; font-size: 0.72rem; margin-top: 12px; }

/* =========================================================
   INTERACTIVE DEMO (insert, breaks out wide)
   ========================================================= */
.demo-insert { padding: 56px 0; }
.demo-frame {
    background: var(--bg-glass); backdrop-filter: blur(10px);
    border: 1px solid var(--border-subtle); border-radius: 24px;
    box-shadow: var(--shadow-card); overflow: hidden;
}
.demo-header {
    display: flex; align-items: center; justify-content: space-between; padding: 14px 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.window-controls { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.red { background: #FCA5A5; } .dot.yellow { background: #FDE68A; } .dot.green { background: #86EFAC; }
.device-title { font-size: 0.85rem; color: var(--text-muted); font-family: var(--font-mono); }
.live-indicator { display: flex; align-items: center; gap: 6px; font-size: 0.72rem; font-weight: 700; color: var(--emerald-green); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--emerald-green); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.demo-body { display: grid; grid-template-columns: 320px 1fr; }
.demo-tabs { display: flex; flex-direction: column; padding: 18px; gap: 6px; border-right: 1px solid var(--border-subtle); background: var(--bg-surface-soft); }
.tab-btn {
    text-align: left; padding: 11px 14px; border-radius: 10px; font-size: 0.9rem; color: var(--text-secondary);
    transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.tab-btn:hover { background: var(--bg-surface); }
.tab-btn.active { background: var(--primary-gradient); color: #fff; font-weight: 600; }

.demo-display { padding: 22px; }
.display-banner { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.store-meta h4 { font-size: 1.05rem; }
.store-meta p { font-size: 0.8rem; color: var(--text-muted); margin-top: 3px; }
.amount-badge { font-family: var(--font-mono); font-size: 1.5rem; font-weight: 700; }

.maximizer-banner {
    display: flex; align-items: center; gap: 12px; background: var(--gold-soft);
    border: 1px solid rgba(217,119,6,0.2); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px;
}
.maximizer-banner strong { display: block; font-size: 0.9rem; color: var(--accent-gold); }
.maximizer-banner span { font-size: 0.8rem; color: var(--text-secondary); }

.items-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.receipt-item-row {
    display: flex; justify-content: space-between; align-items: center; padding: 10px 12px;
    background: var(--bg-surface-soft); border-radius: 10px; font-size: 0.86rem;
}
.item-info { display: flex; align-items: center; gap: 8px; }
.item-right { display: flex; align-items: center; gap: 10px; }
.category-chip { font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 100px; background: var(--emerald-soft); color: var(--emerald-green); }
.category-chip.cat-tech { background: var(--cyan-soft); color: var(--accent-cyan); }
.category-chip.cat-fuel { background: var(--gold-soft); color: var(--accent-gold); }
.item-price-val { font-family: var(--font-mono); font-weight: 600; }

.tax-footer { display: flex; justify-content: space-between; align-items: center; border-top: 1px dashed var(--border-strong); padding-top: 12px; margin-bottom: 16px; flex-wrap: wrap; gap: 10px; }
.math-col { display: flex; flex-direction: column; font-size: 0.78rem; }
.math-col .math-label { color: var(--text-muted); }
.math-col .math-val { font-family: var(--font-mono); font-weight: 600; }
.math-badge { background: var(--emerald-soft); color: var(--emerald-green); font-size: 0.78rem; font-weight: 700; padding: 6px 12px; border-radius: 100px; cursor: pointer; transition: transform 0.15s var(--ease); }
.math-badge:hover { transform: scale(1.04); }

.sandbox-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.sandbox-btn {
    flex: 1; min-width: 120px; background: var(--bg-surface-soft); border: 1px solid var(--border-subtle);
    padding: 10px 12px; border-radius: 10px; font-size: 0.82rem; font-weight: 600; color: var(--text-primary);
    transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}
.sandbox-btn:hover { background: var(--primary-soft); transform: translateY(-1px); }

/* =========================================================
   WALLET CARDS (card maximizer insert)
   ========================================================= */
.maximizer-spotlight {
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 24px;
    box-shadow: var(--shadow-card); padding: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center;
}
.spotlight-bullets { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.spotlight-bullets li { font-size: 0.92rem; color: var(--text-secondary); display: flex; gap: 8px; }
.spotlight-bullets .check-icon { color: var(--emerald-green); font-weight: 700; }

.wallet-stack { position: relative; height: 220px; }
.wallet-card {
    position: absolute; width: 100%; max-width: 300px; border-radius: 16px; padding: 20px;
    color: #fff; font-family: var(--font-mono); box-shadow: 0 16px 34px -10px rgba(15,23,42,0.35);
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); cursor: pointer;
}
.wallet-card.card-1 { background: linear-gradient(135deg,#1E293B,#0F172A); top: 0; left: 0; z-index: 2; }
.wallet-card.card-2 { background: var(--emerald-gradient); top: 46px; left: 46px; z-index: 1; }
.wallet-card:hover { transform: translateY(-6px) scale(1.02); }
.card-top { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 30px; }
.card-reward { opacity: 0.85; }
.card-bottom { font-size: 0.78rem; opacity: 0.75; }

/* =========================================================
   SPEND RINGS (budget pacing)
   ========================================================= */
.rings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ring-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 18px; padding: 22px; text-align: center; box-shadow: var(--shadow-sm); }
.ring-svg { margin: 0 auto 12px; }
.ring-bg { fill: none; stroke: var(--bg-surface-soft); stroke-width: 8; }
.ring-fill { fill: none; stroke-width: 8; stroke-linecap: round; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-dasharray: 251; stroke-dashoffset: 251; transition: stroke-dashoffset 1.2s var(--ease); }
.ring-card h4 { font-size: 0.9rem; margin-bottom: 2px; }
.ring-card .ring-amt { font-family: var(--font-mono); font-size: 0.78rem; color: var(--text-muted); }

/* =========================================================
   PRIVACY / SUPPORT
   ========================================================= */
.privacy-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.privacy-item { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 18px; }
.privacy-item h4 { font-size: 0.95rem; margin-bottom: 6px; }
.privacy-item p { font-size: 0.85rem; }

.support-list { display: flex; flex-direction: column; }
.support-row { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px dashed var(--border-subtle); font-size: 0.95rem; }
.support-row:last-child { border-bottom: none; }
.support-row a { color: var(--primary-orange); font-weight: 600; font-size: 0.88rem; }

/* =========================================================
   FOOTER — receipt total + barcode
   ========================================================= */
.footer-wrap { background: var(--text-primary); color: #fff; padding-top: 0; }
.footer-content { padding: 44px 0 30px; }
.footer-total-row { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px dashed rgba(255,255,255,0.2); padding-bottom: 18px; margin-bottom: 22px; }
.footer-total-row span:first-child { font-family: var(--font-mono); color: rgba(255,255,255,0.6); }
.footer-total-row span:last-child { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; }
.footer-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-bottom: 26px; }
.footer-links a { font-size: 0.85rem; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }
.barcode {
    height: 40px;
    background: repeating-linear-gradient(90deg, #fff 0 2px, transparent 2px 3px, #fff 3px 6px, transparent 6px 8px, #fff 8px 9px, transparent 9px 13px);
    margin-bottom: 10px; opacity: 0.9;
}
.footer-meta { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255,255,255,0.45); }

/* =========================================================
   MODALS & TOAST
   ========================================================= */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,0.55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal-backdrop.active { display: flex; }
.modal-dialog { background: var(--bg-surface); border-radius: 20px; padding: 30px; max-width: 380px; width: 100%; position: relative; box-shadow: var(--shadow-paper); }
.modal-close-btn { position: absolute; top: 16px; right: 16px; color: var(--text-muted); font-size: 1.1rem; }
.modal-icon { font-size: 2rem; margin-bottom: 10px; }
.modal-title { margin-bottom: 8px; }
.modal-desc { font-size: 0.9rem; margin-bottom: 18px; }
.modal-input-group { margin-bottom: 12px; }
.modal-input { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border-strong); font-size: 0.9rem; font-family: inherit; }
.modal-steps { display: flex; flex-direction: column; gap: 12px; margin-bottom: 18px; }
.step-row { display: flex; gap: 12px; font-size: 0.88rem; color: var(--text-secondary); }
.step-num { flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--primary-soft); color: var(--primary-orange); font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }

.toast-container { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast-item {
    background: var(--text-primary); color: #fff; padding: 11px 18px; border-radius: 100px; font-size: 0.85rem;
    display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-paper);
    animation: toast-in 0.3s var(--ease);
}
@keyframes toast-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* =========================================================
   SCROLL REVEAL (sparse, purposeful)
   ========================================================= */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 860px) {
    .demo-body { grid-template-columns: 1fr; }
    .demo-tabs { flex-direction: row; overflow-x: auto; border-right: none; border-bottom: 1px solid var(--border-subtle); }
    .maximizer-spotlight { grid-template-columns: 1fr; padding: 26px; }
    .rings-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
}
@media (max-width: 720px) {
    .feature-row { grid-template-columns: 1fr; gap: 24px; }
    .feature-row.reverse .feature-visual { order: 0; }
    .privacy-grid { grid-template-columns: 1fr; }
    .nav-links { gap: 14px; }
    .nav-links a:not(.btn-primary-sm) { display: none; }
}
@media (max-width: 520px) {
    .rings-grid { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; }
}
