/*
 * BudgetVault Landing Page Stylesheet
 * Custom CSS Design System
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

/* --- Theme Variables --- */
:root {
    /* Color Palette */
    --color-emerald: #0D9F6E;
    --color-emerald-glow: rgba(13, 159, 110, 0.25);
    --color-indigo: #3B82F6;
    --color-indigo-glow: rgba(59, 130, 246, 0.25);
    --color-violet: #8b5cf6;
    --color-amber: #f59e0b;
    --color-ruby: #EF4444;
    
    /* Layout Tokens */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'DM Sans', sans-serif;
    --border-radius-sm: 8px;
    --border-radius-md: 16px;
    --border-radius-lg: 24px;
    --max-width: 1200px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Light Theme Variables - Ivory & Emerald */
:root[data-theme="light"] {
    --bg-primary: #FAF9F6;
    --bg-secondary: #ffffff;
    --bg-glass: rgba(250, 249, 246, 0.7);
    --border-color: #EDE9E0;
    --text-primary: #1A1B23;
    --text-secondary: #4A4B57;
    --text-muted: #8B8D9B;
    --card-shadow: 0 10px 30px rgba(26, 27, 35, 0.04);
    --phone-frame-color: #1A1B23;
    --keypad-bg: #F5F3EE;
    --keypad-active-bg: #EDE9E0;
    --color-emerald: #0D9F6E;
}

/* Dark Theme Variables (Default) - Midnight Obsidian */
:root[data-theme="dark"] {
    --bg-primary: #0F1117;
    --bg-secondary: #161822;
    --bg-glass: rgba(15, 17, 23, 0.7);
    --border-color: #2A2D3E;
    --text-primary: #F0EFF4;
    --text-secondary: #A5A6B5;
    --text-muted: #6C6E80;
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.45);
    --phone-frame-color: #2A2D3E;
    --keypad-bg: #1E2030;
    --keypad-active-bg: #2A2D3E;
    --color-emerald: #34D399;
}

/* AMOLED Black Theme Variables */
:root[data-theme="amoled"] {
    --bg-primary: #000000;
    --bg-secondary: #0A0A0A;
    --bg-glass: rgba(0, 0, 0, 0.85);
    --border-color: #1E2030;
    --text-primary: #ffffff;
    --text-secondary: #a3a3a3;
    --text-muted: #525252;
    --card-shadow: 0 0 20px rgba(255, 255, 255, 0.03);
    --phone-frame-color: #1A1A1A;
    --keypad-bg: #111111;
    --keypad-active-bg: #222222;
    --color-emerald: #34D399;
}

/* --- Global Resets & Basics --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    transition: background-color 0.4s ease, color 0.4s ease;
}

html[dir="rtl"] body {
    text-align: right;
}

html[dir="rtl"] .logo-link,
html[dir="rtl"] .nav-actions,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .hero-features,
html[dir="rtl"] .play-feat-row,
html[dir="rtl"] .priv-item,
html[dir="rtl"] .price-list-item,
html[dir="rtl"] .footer-logo,
html[dir="rtl"] .footer-links {
    direction: rtl;
}

html[dir="rtl"] .device-shot-layer,
html[dir="rtl"] .phone-device,
html[dir="rtl"] .playstore-badge {
    direction: ltr;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

p {
    color: var(--text-secondary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
}

/* --- Scroll Progress Bar --- */
.scroll-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
    background: transparent;
}

.scroll-progress-bar {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--color-emerald), var(--color-indigo));
}

@supports (animation-timeline: scroll()) {
    .scroll-progress-bar {
        width: 100%;
        animation: progress auto linear;
        animation-timeline: scroll();
    }
}

@keyframes progress {
    from { transform: scaleX(0); transform-origin: left; }
    to { transform: scaleX(1); transform-origin: left; }
}

/* --- Container --- */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* --- Header / Navbar --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 900;
    background-color: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    width: 42px;
    height: 42px;
    border-radius: var(--border-radius-sm);
    object-fit: contain;
}

.logo-txt {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-item a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-item a:hover {
    color: var(--color-emerald);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* --- Theme Controls --- */
.theme-selector {
    display: flex;
    background: var(--border-color);
    padding: 4px;
    border-radius: 50px;
    gap: 4px;
}

.theme-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    padding: 6px 12px;
    font-size: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.theme-btn.active {
    background: var(--bg-primary);
    color: var(--text-primary);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.locale-selector {
    position: relative;
    display: flex;
    align-items: center;
}

.locale-selector span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.locale-selector select {
    min-width: 150px;
    max-width: 190px;
    height: 36px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    padding: 0 32px 0 14px;
    outline: none;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.locale-selector select:focus {
    border-color: var(--color-emerald);
    box-shadow: 0 0 0 3px var(--color-emerald-glow);
}

.cta-btn {
    background: linear-gradient(135deg, var(--color-emerald) 0%, #059669 100%);
    color: #ffffff;
    font-weight: 600;
    font-size: 15px;
    font-family: var(--font-heading);
    padding: 10px 24px;
    border-radius: 50px;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 15px var(--color-emerald-glow);
    transition: var(--transition-bounce);
}

.cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--color-emerald-glow);
}

/* --- Hero Section --- */
.hero {
    padding-top: 140px;
    padding-bottom: 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

/* Radial Glows */
.hero-glow-1 {
    position: absolute;
    top: 20%;
    left: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, var(--color-emerald-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-glow-2 {
    position: absolute;
    bottom: 10%;
    right: -10%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--color-indigo-glow) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-tagline {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    color: var(--color-emerald);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 16px;
    display: inline-block;
    background: var(--color-emerald-glow);
    padding: 6px 16px;
    border-radius: 50px;
}

.hero-title {
    font-size: clamp(38px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--color-emerald) 0%, var(--color-indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 18px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.hero-cta {
    padding: 16px 36px;
    font-size: 16px;
}

.badge-sec {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.badge-title {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.playstore-badge {
    height: 48px;
    transition: var(--transition-smooth);
}

.playstore-badge:hover {
    transform: scale(1.03);
}

.hero-features {
    display: flex;
    gap: 24px;
}

.hero-feat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.hero-feat-item svg {
    color: var(--color-emerald);
}

/* --- Dynamic Phone Device Frame (Simulator) --- */
.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.phone-device {
    width: 320px;
    height: 650px;
    background: var(--phone-frame-color);
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.5), inset 0 0 3px 2px rgba(255,255,255,0.1);
    position: relative;
    border: 3px solid rgba(255,255,255,0.05);
    transition: var(--transition-smooth);
    transform-style: preserve-3d;
}

/* Haptic Shake Keyframe */
.haptic-shake {
    animation: shake 0.15s linear;
}

@keyframes shake {
    0% { transform: scale(1) rotate(0); }
    25% { transform: scale(0.99) rotate(-1deg); }
    50% { transform: scale(1) rotate(1deg); }
    75% { transform: scale(0.99) rotate(-1deg); }
    100% { transform: scale(1) rotate(0); }
}

.phone-screen {
    width: 100%;
    height: 100%;
    background-color: var(--bg-primary);
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

/* Camera Punch Hole */
.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 70px;
    height: 16px;
    background: #000;
    border-radius: 20px;
    z-index: 99;
}

/* Phone Status Bar */
.phone-status-bar {
    height: 36px;
    padding: 14px 20px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-muted);
}

.status-right {
    display: flex;
    gap: 6px;
}

/* Screen Content Router */
.phone-screen-content {
    flex: 1;
    overflow-y: auto;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.phone-screen-view {
    display: none;
    flex-direction: column;
    height: 100%;
    animation: fadeInView 0.3s ease forwards;
}

.phone-screen-view.active {
    display: flex;
}

@keyframes fadeInView {
    from { opacity: 0; transform: scale(0.96); }
    to { opacity: 1; transform: scale(1); }
}

/* Phone Mockup Screen: Dashboard */
.phone-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 6px;
}

.app-logo {
    width: 22px;
    height: 22px;
    border-radius: 4px;
}

.app-title {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
}

.btn-pill-free {
    background: var(--border-color);
    padding: 3px 8px;
    border-radius: 50px;
    font-size: 9px;
    font-weight: 700;
    color: var(--text-muted);
}

/* Financial Cards */
.balance-card {
    background: linear-gradient(135deg, #0D9F6E 0%, #065F46 100%);
    border-radius: 24px;
    padding: 22px;
    color: #ffffff;
    margin-bottom: 16px;
    box-shadow: 0 10px 25px rgba(13, 159, 110, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.bal-title {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.bal-amount {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.bal-row {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 10px;
}

.bal-sub {
    display: flex;
    flex-direction: column;
}

.bal-sub-val {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-weight: 700;
    font-size: 13px;
}

/* Visual Donut Chart Mock */
.chart-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    border: 1px solid var(--border-color);
    padding: 16px;
    margin-bottom: 16px;
}

.card-title {
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.mock-pie-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
    padding: 4px 0;
}

.donut-graphic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: conic-gradient(
        var(--color-emerald) 0% 45%,
        var(--color-indigo) 45% 75%,
        var(--color-violet) 75% 90%,
        var(--color-amber) 90% 100%
    );
    position: relative;
}

.donut-graphic::after {
    content: '';
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--bg-secondary);
}

.chart-legend {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
}

.legend-color {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

/* Recent Transactions */
.recent-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 10px;
}

.mock-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow-y: auto;
    max-height: 180px;
}

.mock-trans-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-color);
}

.trans-item-left {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trans-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.trans-meta {
    display: flex;
    flex-direction: column;
}

.trans-name {
    font-size: 12px;
    font-weight: 700;
}

.trans-time {
    font-size: 9px;
    color: var(--text-muted);
}

.trans-amount {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 12px;
    font-weight: 700;
}

.trans-amount.expense {
    color: var(--color-ruby);
}

.trans-amount.income {
    color: var(--color-emerald);
}

/* Phone Mockup Screen: Transactions & Keypad input */
.phone-keypad-screen {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.keypad-header {
    text-align: center;
    margin-bottom: 12px;
}

.keypad-amount-display {
    font-family: SFMono-Regular, Consolas, 'Liberation Mono', Menlo, monospace;
    font-size: 36px;
    font-weight: 700;
    color: var(--color-emerald);
    margin: 8px 0;
    transition: var(--transition-smooth);
    letter-spacing: -0.02em;
}

.pulse-txt {
    transform: scale(1.08);
}

.sim-select-field {
    width: 100%;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 6px 10px;
    color: var(--text-primary);
    font-size: 11px;
    outline: none;
    margin-bottom: 10px;
}

.compose-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.keypad-btn {
    border: none;
    background: var(--keypad-bg);
    color: var(--text-primary);
    border-radius: 16px;
    height: 42px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.keypad-btn:active {
    background: var(--keypad-active-bg);
    transform: scale(0.92);
}

.btn-add-transaction {
    background: var(--color-emerald);
    color: #ffffff;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 10px var(--color-emerald-glow);
    transition: var(--transition-smooth);
}

.btn-add-transaction:hover {
    background: #059669;
}

/* Phone Mockup Screen: Budgets */
.phone-budget-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mock-budget-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 12px;
    border: 1px solid var(--border-color);
}

.budget-item-header {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 6px;
}

.budget-item-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
}

.budget-bar-track {
    height: 6px;
    background: var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 4px;
}

.budget-bar-fill {
    height: 100%;
    border-radius: 10px;
}

.budget-meta-details {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    color: var(--text-muted);
}

/* Phone Mockup Screen: Settings */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.settings-group-title {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 700;
}

.setting-row-item {
    background: var(--bg-secondary);
    border-radius: 10px;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid var(--border-color);
}

.setting-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
}

.setting-switch {
    width: 28px;
    height: 16px;
    background: var(--border-color);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
}

.setting-switch.on {
    background: var(--color-emerald);
}

.setting-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: white;
    transition: var(--transition-smooth);
}

.setting-switch.on::after {
    left: 14px;
}

.btn-iap-pro {
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-violet) 100%);
    color: white;
    border: none;
    border-radius: 10px;
    padding: 8px;
    font-size: 10px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    margin-top: 10px;
}

/* Phone Navigation Bottom Bar */
.phone-bottom-nav {
    height: 60px;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 8px;
}

.phone-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-muted);
    font-size: 9px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    flex: 1;
}

.phone-nav-item svg {
    width: 20px;
    height: 20px;
}

.phone-nav-item.active {
    color: var(--color-emerald);
}

/* Emulator-matched BudgetVault Android preview */
.phone-device {
    width: min(340px, 88vw);
    aspect-ratio: 1080 / 2424;
    height: auto;
    background: #f7f4ef;
    border: 0;
    border-radius: 38px;
    padding: 0;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.48), 0 0 0 8px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

.phone-notch {
    display: none;
}

.phone-screen.bv-app-preview {
    --android-bg: #fffefa;
    --android-surface: #fffdfa;
    --android-surface-2: #f8f7f3;
    --android-border: #ebe7df;
    --android-text: #20212b;
    --android-muted: #5b5c68;
    --android-faint: #d9d6cf;
    --android-green: #0fa772;
    --android-green-dark: #006a4f;
    --android-blue: #2594e9;
    --android-red: #f03636;
    --android-purple: #9638c8;
    --android-yellow: #ffd42a;
    --android-orange: #ff7043;
    background: var(--android-bg);
    border: 0;
    border-radius: 34px;
    color: var(--android-text);
    font-family: Inter, Roboto, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    overflow: hidden;
}

.device-shot-layer {
    position: absolute;
    inset: 0;
    z-index: 20;
    background: #fffefa;
}

.device-shot {
    display: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.device-shot.active {
    display: block;
}

.device-hotspots {
    position: absolute;
    inset: 0;
    z-index: 30;
}

.device-hotspot {
    position: absolute;
    display: block;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.device-hotspot:focus-visible {
    outline: 2px solid rgba(15, 167, 114, 0.85);
    outline-offset: -2px;
}

.nav-home,
.nav-history,
.nav-budget,
.nav-subs,
.nav-plan {
    bottom: 3.8%;
    height: 10%;
    width: 18.5%;
}

.nav-home { left: 4%; }
.nav-history { left: 22%; }
.nav-budget { left: 41%; }
.nav-subs { left: 59.5%; }
.nav-plan { left: 77.5%; }

.add-fab {
    right: 3.4%;
    bottom: 12.2%;
    width: 18%;
    height: 8.8%;
    border-radius: 24px;
}

.add-done {
    display: none;
    right: 3.4%;
    top: 11.2%;
    width: 15%;
    height: 6.5%;
    border-radius: 50%;
}

.bv-app-preview[data-preview-screen="history"] .add-fab,
.bv-app-preview[data-preview-screen="budget"] .add-fab,
.bv-app-preview[data-preview-screen="plan"] .add-fab {
    display: none;
}

.bv-app-preview[data-preview-screen="add"] .nav-home,
.bv-app-preview[data-preview-screen="add"] .nav-history,
.bv-app-preview[data-preview-screen="add"] .nav-budget,
.bv-app-preview[data-preview-screen="add"] .nav-subs,
.bv-app-preview[data-preview-screen="add"] .nav-plan,
.bv-app-preview[data-preview-screen="add"] .add-fab {
    display: none;
}

.bv-app-preview[data-preview-screen="add"] .add-done {
    display: block;
}

.device-shot-layer ~ .phone-status-bar,
.device-shot-layer ~ .phone-screen-content,
.device-shot-layer ~ .phone-bottom-nav,
.device-shot-layer ~ .phone-fab {
    display: none !important;
}

.phone-status-bar {
    height: 36px;
    padding: 14px 18px 0;
    color: #050505;
    font-size: 13px;
    font-weight: 500;
    flex-shrink: 0;
}

.status-left,
.status-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-shield {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.signal-bars {
    display: inline-flex;
    align-items: flex-end;
    gap: 2px;
    height: 14px;
}

.signal-bars i {
    display: block;
    width: 3px;
    background: currentColor;
    border-radius: 2px;
}

.signal-bars i:nth-child(1) { height: 5px; opacity: 0.45; }
.signal-bars i:nth-child(2) { height: 8px; opacity: 0.65; }
.signal-bars i:nth-child(3) { height: 11px; opacity: 0.85; }
.signal-bars i:nth-child(4) { height: 14px; }

.wifi-icon {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.battery-icon {
    position: relative;
    display: inline-flex;
    width: 25px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 4px;
}

.battery-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    top: 3px;
    width: 3px;
    height: 6px;
    background: currentColor;
    border-radius: 0 2px 2px 0;
}

.battery-icon i {
    display: block;
    width: 100%;
    height: 100%;
    background: currentColor;
    border-radius: 2px;
}

.phone-screen-content {
    flex: 1;
    display: block;
    overflow-y: auto;
    padding: 12px 14px 92px;
    scrollbar-width: none;
}

.phone-screen-content::-webkit-scrollbar {
    display: none;
}

.phone-screen-view {
    display: none;
    min-height: 100%;
    animation: fadeInView 0.16s ease forwards;
}

.phone-screen-view.active {
    display: block;
}

@keyframes fadeInView {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.android-top-pill {
    min-height: 52px;
    border-radius: 30px;
    background: #fdfbf7;
    border: 1px solid var(--android-border);
    box-shadow: 0 8px 18px rgba(33, 33, 33, 0.12);
    display: flex;
    align-items: center;
    margin: 6px 0 16px;
    color: #4e4f5b;
}

.month-pill {
    display: grid;
    grid-template-columns: 48px 1fr 48px 30px 30px;
    gap: 3px;
    padding: 5px;
}

.android-top-pill strong {
    font-size: 22px;
    line-height: 1;
    color: #4e4f5b;
    font-weight: 800;
    text-align: center;
}

.title-pill {
    justify-content: space-between;
    padding: 0 14px 0 18px;
}

.title-pill strong {
    text-align: left;
    color: var(--android-text);
}

.search-pill {
    display: grid;
    grid-template-columns: 26px 1fr 34px 34px;
    gap: 10px;
    padding: 0 14px;
}

.search-pill span {
    color: #555662;
    font-size: 17px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-icon {
    width: 24px;
    height: 24px;
    fill: var(--android-text);
}

.round-icon-btn,
.plain-icon {
    border: 0;
    background: transparent;
    color: #555662;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
}

.round-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 10px 18px rgba(0, 0, 0, 0.05);
}

.round-icon-btn svg,
.plain-icon svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.round-icon-btn svg {
    fill: none;
    stroke: currentColor;
    stroke-width: 3.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wallet-action {
    color: var(--android-blue);
}

.settings-action {
    color: #565762;
}

.android-balance-card {
    background: linear-gradient(135deg, #10a873 0%, #00684d 100%);
    border: 0;
    border-radius: 28px;
    box-shadow: 0 8px 16px rgba(0, 106, 79, 0.22);
    color: #ffffff;
    margin: 0 0 18px;
    min-height: 128px;
    padding: 20px 22px 18px;
    text-align: center;
}

.balance-label {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 800;
    line-height: 1.1;
}

.balance-amount {
    font-family: Inter, Roboto, system-ui, sans-serif;
    font-size: 34px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
    margin: 8px 0 22px;
}

.balance-totals {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.balance-totals div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: center;
}

.balance-totals span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 14px;
    font-weight: 800;
}

.balance-totals strong {
    color: #ffffff;
    font-size: 17px;
    font-weight: 900;
}

.budget-strip {
    background: var(--android-surface);
    border-radius: 24px;
    padding: 14px 15px 13px;
    margin: 0 0 20px;
    box-shadow: 0 6px 18px rgba(35, 35, 35, 0.04);
}

.budget-overall {
    padding-top: 20px;
}

.section-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.section-row.compact {
    margin-bottom: 12px;
}

.section-row h3,
.content-heading,
.date-heading {
    margin: 0;
    color: var(--android-text);
    font-family: Inter, Roboto, system-ui, sans-serif;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: 0;
}

.section-row strong {
    color: var(--android-green);
    font-size: 17px;
    font-weight: 900;
}

.section-row button {
    border: 0;
    background: transparent;
    color: var(--android-green);
    font: inherit;
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.android-progress {
    width: 100%;
    height: 9px;
    border-radius: 999px;
    background: #f1efeb;
    overflow: hidden;
}

.android-progress span {
    display: block;
    height: 100%;
    min-width: 14px;
    border-radius: inherit;
    background: var(--android-green);
}

.budget-strip p,
.budget-row span,
.transaction-row span,
.plan-grid p,
.subscription-card p,
.summary-grid span {
    margin: 8px 0 0;
    color: var(--android-muted);
    font-size: 14px;
    line-height: 1.25;
}

.spending-section {
    margin-top: 6px;
}

.spending-chart-wrap {
    display: grid;
    grid-template-columns: 124px 1fr;
    align-items: center;
    gap: 14px;
    padding-bottom: 18px;
    border-bottom: 1px solid #eeeae2;
}

.android-donut {
    width: 124px;
    height: 124px;
    border-radius: 50%;
    background: conic-gradient(var(--android-blue) 0 19%, var(--android-red) 19% 100%);
    position: relative;
}

.android-donut::before {
    content: "";
    position: absolute;
    inset: 22px;
    background: var(--android-bg);
    border-radius: 50%;
}

.android-donut div {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.android-donut span {
    color: var(--android-muted);
    font-size: 13px;
    font-weight: 800;
}

.android-donut strong {
    font-size: 18px;
    font-weight: 900;
}

.legend-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.legend-list div {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    align-items: center;
    gap: 7px;
    color: var(--android-text);
    font-size: 13px;
}

.legend-list strong {
    color: var(--android-muted);
    font-weight: 800;
    font-size: 13px;
}

.legend-dot {
    width: 11px;
    height: 11px;
    border-radius: 4px;
    display: inline-block;
}

.legend-dot.red { background: var(--android-red); }
.legend-dot.blue { background: #2fb3ee; }

.home-category-list,
.history-list,
.budget-list {
    display: flex;
    flex-direction: column;
}

.android-row {
    display: grid;
    grid-template-columns: 48px 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    color: var(--android-text);
    font-size: 17px;
}

.android-row > strong {
    font-size: 17px;
    font-weight: 900;
}

.category-icon {
    width: 42px;
    height: 42px;
    border-radius: 15px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    width: 25px;
    height: 25px;
    fill: currentColor;
}

.category-icon.red { color: #ef3d3d; background: #ffe5e4; }
.category-icon.cyan { color: #28b6ec; background: #def7ff; }
.category-icon.green { color: #4caf55; background: #e6f5e7; }
.category-icon.blue { color: #258fe4; background: #e4f3ff; }
.category-icon.purple { color: #9537c8; background: #f1e2f6; }
.category-icon.yellow { color: #ffd42a; background: #fff8dc; }
.category-icon.orange { color: #ff7043; background: #ffeee6; }
.category-icon.gray { color: #78909c; background: #eef3f3; }

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-bottom: 12px;
}

.category-filter-row {
    margin-top: 10px;
    margin-bottom: 26px;
}

.filter-chip {
    min-height: 34px;
    border: 1px solid var(--android-border);
    border-radius: 12px;
    background: var(--android-surface);
    color: #4f505c;
    padding: 0 15px;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
}

.filter-chip.active {
    border-color: #f5f5f5;
    background: #f5f6fa;
    color: var(--android-text);
}

.filter-chip.dot::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: 1px;
}

.filter-chip.dot.green::before { background: #66c76f; }
.filter-chip.dot.orange::before { background: #ff7043; }
.filter-chip.dot.red::before { background: var(--android-red); }

.date-heading {
    color: var(--android-green);
    margin: 6px 0 12px;
}

.transaction-row {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 78px;
}

.transaction-row div {
    min-width: 0;
}

.transaction-row strong,
.budget-row strong {
    display: block;
    color: var(--android-text);
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-row span {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-row em {
    font-style: normal;
    font-size: 16px;
    font-weight: 900;
    white-space: nowrap;
}

.transaction-row em.expense {
    color: #f24646;
}

.transaction-row em.income {
    color: var(--android-green);
}

.content-heading {
    margin: 12px 0 14px;
}

.budget-row {
    grid-template-columns: 52px 1fr;
    min-height: 78px;
}

.budget-row .android-progress {
    margin-top: 8px;
    height: 7px;
}

.summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 22px;
}

.summary-grid div {
    background: var(--android-surface);
    border-radius: 20px;
    padding: 22px 16px;
    min-height: 84px;
    box-shadow: 0 6px 18px rgba(35, 35, 35, 0.03);
}

.summary-grid strong {
    display: block;
    color: var(--android-text);
    font-size: 20px;
    font-weight: 900;
    margin-top: 8px;
}

.subscription-card {
    background: var(--android-surface);
    border: 1px solid var(--android-border);
    border-radius: 20px;
    padding: 18px 16px 16px;
    box-shadow: 0 5px 12px rgba(35, 35, 35, 0.12);
}

.sub-card-top,
.sub-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.sub-card-top h3 {
    margin: 0;
    color: var(--android-text);
    font-size: 18px;
    letter-spacing: 0;
}

.sub-card-top strong {
    font-size: 18px;
    color: var(--android-text);
}

.active-badge {
    display: inline-flex;
    margin: 8px 0 4px;
    padding: 3px 11px;
    border-radius: 999px;
    background: #d7f4e5;
    color: var(--android-green);
    font-size: 13px;
    font-weight: 900;
}

.subscription-card p.disabled-copy {
    color: #d6d2cb;
    font-weight: 800;
}

.sub-card-actions {
    margin-top: 22px;
}

.sub-card-actions button {
    border: 0;
    background: transparent;
    color: var(--android-green);
    font-size: 17px;
    font-weight: 900;
    cursor: pointer;
}

.sub-card-actions svg {
    width: 25px;
    height: 25px;
    fill: var(--android-text);
}

.sub-card-actions svg.trash {
    fill: #ed202b;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.plan-grid article {
    min-height: 150px;
    border: 1px solid var(--android-border);
    border-radius: 20px;
    background: var(--android-surface);
    padding: 18px 14px;
    box-shadow: 0 5px 12px rgba(35, 35, 35, 0.08);
}

.plan-grid h3 {
    margin: 18px 0 6px;
    color: var(--android-text);
    font-family: Inter, Roboto, system-ui, sans-serif;
    font-size: 17px;
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: 0;
}

.plan-grid p {
    font-size: 15px;
}

.add-screen {
    padding-top: 18px;
}

.bv-app-preview.add-mode {
    background: #b8b8b8;
}

.bv-app-preview.add-mode .phone-screen-content {
    padding: 0 14px 20px;
    background: var(--android-bg);
    border-radius: 26px 26px 0 0;
}

.sheet-handle {
    width: 34px;
    height: 4px;
    border-radius: 999px;
    background: #4d4e59;
    margin: 12px auto 30px;
}

.add-top-row {
    display: grid;
    grid-template-columns: 1fr 44px;
    gap: 12px;
    align-items: center;
    margin-bottom: 18px;
}

.transaction-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid #d8d5cf;
    border-radius: 24px;
    overflow: hidden;
    height: 45px;
}

.transaction-toggle button {
    border: 0;
    background: var(--android-surface);
    color: var(--android-text);
    font-size: 16px;
    font-weight: 900;
    cursor: pointer;
}

.transaction-toggle button + button {
    border-left: 1px solid #d8d5cf;
}

.transaction-toggle button.active {
    background: #f7f8fb;
}

.transaction-toggle svg,
.save-check svg,
.quick-actions svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
    vertical-align: -4px;
    margin-right: 6px;
}

.save-check {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: #ececea;
    color: #9d9d9a;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.save-check.active {
    background: #d8f5e5;
    color: var(--android-green);
}

.save-check svg {
    margin: 0;
}

.amount-field,
.note-field {
    width: 100%;
    height: 64px;
    border: 1px solid #d8d5cf;
    border-radius: 5px;
    background: var(--android-surface);
    color: var(--android-text);
    font: 400 20px Inter, Roboto, system-ui, sans-serif;
    padding: 0 18px;
    outline: none;
}

.amount-field::placeholder,
.note-field::placeholder {
    color: #5d5e69;
}

.quick-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 14px 0 18px;
}

.quick-actions button {
    min-height: 36px;
    border: 1px solid var(--android-border);
    border-radius: 12px;
    background: var(--android-surface);
    color: #40414b;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.quick-actions button:first-child {
    color: var(--android-text);
}

.quick-actions .scan-btn {
    width: 44px;
    min-width: 44px;
    padding: 0;
    border-radius: 50%;
    background: #f4f6fa;
}

.quick-actions .scan-btn svg {
    margin: 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 10px;
}

.category-grid button {
    position: relative;
    border: 0;
    background: transparent;
    color: var(--android-text);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    min-height: 80px;
    padding: 6px 2px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.category-grid button.selected {
    outline: 2px solid var(--android-green);
    border-radius: 15px;
}

.category-grid button i {
    color: var(--android-green);
    font-style: normal;
    font-size: 15px;
    line-height: 1;
}

.category-grid .category-icon {
    width: 43px;
    height: 43px;
}

.note-field {
    margin-top: 140px;
    height: 62px;
}

.template-check {
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--android-text);
    font-size: 15px;
    margin-top: 18px;
}

.template-check span {
    width: 22px;
    height: 22px;
    border: 2px solid #54545d;
    border-radius: 3px;
}

.phone-bottom-nav {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 62px;
    border: 1px solid #eee9df;
    border-radius: 34px;
    background: #fffdfa;
    padding: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    z-index: 10;
}

.phone-nav-item {
    border-radius: 28px;
    color: #73727b;
    gap: 3px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    padding: 5px 0;
}

.phone-nav-item svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.phone-nav-item.active {
    background: #c9f9df;
    color: #006f52;
}

.phone-fab {
    position: absolute;
    right: 18px;
    bottom: 74px;
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 21px;
    background: var(--android-green);
    color: #ffffff;
    font-size: 36px;
    font-weight: 300;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 14px 20px rgba(0, 0, 0, 0.26);
    z-index: 9;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.phone-fab.is-hidden,
.bv-app-preview.add-mode .phone-fab,
.bv-app-preview.add-mode .phone-bottom-nav {
    opacity: 0;
    pointer-events: none;
}

/* Toast alert overlay */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background-color: #1e293b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: var(--border-radius-md);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    z-index: 1000;
    font-size: 14px;
    display: flex;
    align-items: center;
    border-left: 4px solid var(--color-emerald);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition-bounce);
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* --- Features Grid Section --- */
.features {
    padding: 80px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 60px auto;
}

.section-subtitle {
    color: var(--color-emerald);
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
}

/* --- Legal Content Pages --- */
.legal-main {
    padding: 144px 0 96px;
    background:
        radial-gradient(circle at 20% 0%, var(--color-emerald-glow), transparent 34%),
        radial-gradient(circle at 90% 10%, var(--color-indigo-glow), transparent 32%),
        var(--bg-primary);
}

.legal-shell {
    max-width: 860px;
    margin: 0 auto;
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-emerald);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 18px;
}

.legal-title {
    font-size: clamp(38px, 5vw, 62px);
    line-height: 1.02;
    margin-bottom: 18px;
}

.legal-lede {
    font-size: 19px;
    max-width: 720px;
    margin-bottom: 42px;
}

.legal-content {
    display: grid;
    gap: 28px;
}

.legal-section {
    border-top: 1px solid var(--border-color);
    padding-top: 28px;
}

.legal-section h2 {
    font-size: 24px;
    margin-bottom: 10px;
}

.legal-section p,
.legal-section li {
    color: var(--text-secondary);
}

.legal-section ul {
    display: grid;
    gap: 10px;
    padding-left: 22px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 36px;
}

.legal-back {
    display: inline-flex;
    align-items: center;
    color: var(--color-emerald);
    font-weight: 800;
    margin-top: 42px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.feat-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    padding: 32px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.feat-card-glow {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, var(--color-emerald-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0;
    transition: var(--transition-smooth);
}

.feat-card:hover .feat-card-glow {
    opacity: 1;
}

.feat-card-icon {
    width: 48px;
    height: 48px;
    background: var(--color-emerald-glow);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-emerald);
    margin-bottom: 24px;
}

.feat-card h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.feat-card p {
    font-size: 14px;
}

.pro-badge {
    position: absolute;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, var(--color-indigo) 0%, var(--color-violet) 100%);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 5px;
}

/* --- Interactive Playground (Key Features Showcase) --- */
.playground {
    padding: 100px 0;
    position: relative;
}

.play-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.play-left h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.play-left p {
    font-size: 16px;
    margin-bottom: 32px;
}

.play-feature-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.play-feat-row {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.play-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    flex-shrink: 0;
}

.play-feat-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.play-feat-info p {
    font-size: 14px;
    margin-bottom: 0;
}

/* Budget Visual Card Widget */
.budget-visual-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
    transition: var(--transition-smooth);
}

.budget-visual-card.card-emerald {
    border-color: rgba(16, 185, 129, 0.4);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.05);
}

.budget-visual-card.card-amber {
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.05);
}

.budget-visual-card.card-ruby {
    border-color: rgba(239, 68, 68, 0.4);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.05);
}

.sim-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.sim-card-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.sim-budget-percent {
    font-family: var(--font-heading);
    font-size: 32px;
    font-weight: 800;
}

.sim-progress-track {
    height: 12px;
    background: var(--border-color);
    border-radius: 20px;
    overflow: hidden;
    margin-bottom: 16px;
}

.sim-progress-fill {
    height: 100%;
    width: 40%;
    border-radius: 20px;
    transition: var(--transition-smooth);
}

.status-emerald {
    background-color: var(--color-emerald);
}

.status-amber {
    background-color: var(--color-amber);
}

.status-ruby {
    background-color: var(--color-ruby);
}

.sim-budget-status {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 32px;
    transition: var(--transition-smooth);
}

/* Control slider */
.sim-controls-lbl {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: block;
}

.budget-slider-control {
    width: 100%;
    -webkit-appearance: none;
    background: var(--border-color);
    height: 6px;
    border-radius: 10px;
    outline: none;
}

.budget-slider-control::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background-color: var(--color-indigo);
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.4);
    transition: var(--transition-smooth);
}

.budget-slider-control::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

/* --- Privacy Section --- */
.privacy-section {
    padding: 100px 0;
    background: radial-gradient(circle at 10% 20%, var(--bg-secondary) 0%, var(--bg-primary) 90%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.priv-wrapper {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 60px;
    align-items: center;
}

.priv-visual {
    position: relative;
    display: flex;
    justify-content: center;
}

.shield-graphic {
    width: 260px;
    height: 260px;
    background: linear-gradient(135deg, var(--color-emerald) 0%, #047857 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 20px 50px rgba(16, 185, 129, 0.25);
    z-index: 5;
}

.shield-pulse-1, .shield-pulse-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    height: 320px;
    border: 2px solid var(--color-emerald-glow);
    border-radius: 50%;
    z-index: 1;
    animation: pulseShield 4s infinite linear;
}

.shield-pulse-2 {
    width: 380px;
    height: 380px;
    animation-delay: 2s;
}

@keyframes pulseShield {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 1; }
    100% { transform: translate(-50%, -50%) scale(1.2); opacity: 0; }
}

.priv-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 32px;
}

.priv-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.priv-item-icon {
    color: var(--color-emerald);
    flex-shrink: 0;
}

.priv-item-info h4 {
    font-size: 16px;
    margin-bottom: 4px;
}

.priv-item-info p {
    font-size: 14px;
    margin-bottom: 0;
}

/* --- Pricing / Competitive Section --- */
.pricing {
    padding: 100px 0;
}

.price-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.price-card {
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(18, 21, 30, 0.4) 100%);
    border: 2px solid var(--color-indigo);
    border-radius: var(--border-radius-lg);
    padding: 48px;
    box-shadow: var(--card-shadow);
    position: relative;
    overflow: hidden;
}

.pricing-pop-badge {
    position: absolute;
    top: 24px;
    right: -32px;
    background: linear-gradient(135deg, var(--color-emerald) 0%, #059669 100%);
    color: #ffffff;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 36px;
    transform: rotate(45deg);
}

.price-header h3 {
    font-size: 24px;
    margin-bottom: 8px;
}

.price-tier {
    font-size: 13px;
    color: var(--color-emerald);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.price-tag {
    font-family: var(--font-heading);
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 12px;
}

.price-tag span {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-muted);
}

.price-disclaimer {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: -6px;
    margin-bottom: 16px;
    opacity: 0.8;
}

.price-desc {
    font-size: 14px;
    margin-bottom: 32px;
}

.price-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 40px;
}

.price-list-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.price-list-item svg {
    color: var(--color-emerald);
    flex-shrink: 0;
}

.pricing-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* Competitive Matrix */
.matrix-container h4 {
    font-size: 20px;
    margin-bottom: 24px;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th, .compare-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.compare-table th {
    font-weight: 700;
    color: var(--text-primary);
}

.compare-table td.highlight-column {
    font-weight: 700;
    color: var(--color-emerald);
}

.tick-icon {
    color: var(--color-emerald);
}

.cross-icon {
    color: var(--color-ruby);
}

/* --- FAQ / Collapsible Accordions --- */
.faq {
    padding: 100px 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-question {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
}

.faq-chevron {
    transition: var(--transition-smooth);
    color: var(--text-muted);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    transition: var(--transition-smooth);
    color: var(--text-secondary);
    font-size: 14px;
}

.faq-item.active {
    border-color: var(--color-indigo);
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--color-indigo);
}

.faq-item.active .faq-answer {
    max-height: 250px;
    padding-bottom: 24px;
}

/* --- Contact & Support Section --- */
.contact {
    padding: 100px 0;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 16px;
    margin-bottom: 40px;
}

.support-channels {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.channel-item {
    display: flex;
    gap: 16px;
    align-items: center;
}

.channel-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-indigo);
}

.channel-details h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.channel-details a {
    font-size: 14px;
    color: var(--text-secondary);
}

.channel-details a:hover {
    color: var(--color-emerald);
}

/* Contact form card */
.contact-form-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: 40px;
    box-shadow: var(--card-shadow);
}

.form-title {
    font-size: 20px;
    margin-bottom: 24px;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
}

.form-control {
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 14px;
    outline: none;
    transition: var(--transition-smooth);
}

.form-control:focus {
    border-color: var(--color-indigo);
    box-shadow: 0 0 0 3px var(--color-indigo-glow);
}

.form-btn {
    width: 100%;
    padding: 14px;
    font-size: 16px;
}

/* --- Footer --- */
.footer {
    padding: 60px 0;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-secondary);
    font-size: 14px;
    color: var(--text-muted);
}

.footer-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo img {
    width: 32px;
    height: 32px;
}

.footer-logo-txt {
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 20px;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

/* --- Progressive Scroll Reveal System (Native CSS) --- */
@media (prefers-reduced-motion: no-preference) {
    @supports ((animation-timeline: view()) and (animation-range: entry)) {
        @keyframes revealUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .reveal-on-scroll {
            animation: revealUp auto ease-out;
            animation-timeline: view();
            animation-range: entry 10% cover 40%;
            animation-fill-mode: both;
        }
    }
}

/* Fallback classes for IntersectionObserver */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive Styling Breakpoints --- */
@media (max-width: 992px) {
    .hero-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .hero-tagline {
        margin: 0 auto 16px auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-features {
        justify-content: center;
    }

    .play-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .priv-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }

    .priv-item {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .price-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 50px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none; /* Mobile layout can hide simple links or adapt */
    }

    .nav-container {
        gap: 12px;
    }

    .nav-actions {
        gap: 8px;
    }

    .theme-selector {
        display: none;
    }

    .locale-selector select {
        min-width: 112px;
        max-width: 132px;
        padding: 0 26px 0 12px;
    }

    .header .cta-btn {
        padding: 8px 16px;
        font-size: 13px;
    }

    .hero {
        padding-top: 100px;
        padding-bottom: 40px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-wrapper {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}
