
/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Shared Progress Bar
   ========================================================================== */
.progress-bar {
    height: 6px;
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: var(--accent-vibrant);
    border-radius: 3px;
}

/* ==========================================================================
   Components (Buttons, Tags, etc.)
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    font-weight: 500;
    font-size: 1rem;
    transition: var(--transition);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent-purple);
    color: white;
    box-shadow: 0 4px 20px var(--accent-purple-glow);
}

.btn-primary:hover {
    background: #6026FF;
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(116, 51, 255, 0.3);
}

.btn-secondary {
    background: transparent;
    color: var(--text-secondary);
}

.btn-secondary:hover {
    color: var(--text-primary);
}

.btn-outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid rgba(0,0,0,0.1);
}

.btn-outline:hover {
    background: rgba(0,0,0,0.03);
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
    font-weight: 600;
}

.block {
    display: flex;
    width: 100%;
}

.badge {
    display: inline-block;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    background: rgba(0, 0, 0, 0.05);
    color: var(--text-secondary);
    border: 1px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 24px;
}

.badge.pro-badge {
    background: rgba(116, 51, 255, 0.1);
    color: var(--accent-purple);
    border-color: rgba(116, 51, 255, 0.2);
}

.tag {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.tag.alert {
    background: rgba(255, 69, 58, 0.1);
    color: var(--accent-red);
}

/* --- Standardized Action Buttons --- */

/* Keep action shapes consistent, including inline styles and mobile overrides.
   Selection cards and switches retain their own component geometry. */
:is(button, [role="button"], input[type="button"], input[type="submit"], input[type="reset"], .btn):not(:where(.option-card, .option-card-large, [role="switch"])) {
    border-radius: var(--radius-full) !important;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
/* ==========================================================================
   Global Utilities & Layout
   ========================================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ==========================================================================
   Navigation
   ========================================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    border-bottom: none;
    transition: var(--transition);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.9);
    padding: 8px 0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo-img {
    height: 54px;
    width: auto;
}

.nav-links {
    display: none;
    gap: 32px;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-purple);
    transition: var(--transition);
}

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

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: none;
    gap: 12px;
}

@media (min-width: 768px) {
    .nav-links, .nav-actions {
        display: flex;
    }
}

/* ==========================================================================
   Hero Section & Wrapper — Enhanced Immersive Background
   ========================================================================== */
.hero-wrapper {
    position: relative;
    overflow: visible; /* Allow spill over */
    background: #FFFFFF;
    z-index: 1;
}

.hero-mesh {
    position: absolute;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 140%;
    z-index: -1;
    pointer-events: none;
    overflow: visible;
}

.hero-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    transition: all 1s ease;
}

.hb-1 {
    width: 500px;
    height: 500px;
    background: rgba(116, 51, 255, 0.15);
    top: 0;
    left: 10%;
    animation: blobFloat 20s infinite alternate;
}

.hb-2 {
    width: 450px;
    height: 450px;
    background: rgba(252, 77, 16, 0.12);
    top: 20%;
    right: 10%;
    animation: blobFloat 25s infinite alternate-reverse;
}

.hb-3 {
    width: 600px;
    height: 600px;
    background: rgba(16, 185, 129, 0.1);
    bottom: 0;
    left: 20%;
    animation: blobFloat 30s infinite alternate;
}

.hb-4 {
    width: 400px;
    height: 400px;
    background: rgba(255, 99, 112, 0.1);
    top: 40%;
    left: 40%;
    animation: blobFloat 18s infinite alternate-reverse;
}

.hb-5 {
    width: 550px;
    height: 550px;
    background: rgba(116, 51, 255, 0.08);
    bottom: 10%;
    right: 20%;
    animation: blobFloat 22s infinite alternate;
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) rotate(0deg) scale(1); }
    33% { transform: translate(30px, -50px) rotate(120deg) scale(1.1); }
    66% { transform: translate(-20px, 20px) rotate(240deg) scale(0.9); }
    100% { transform: translate(0, 0) rotate(360deg) scale(1); }
}

.hero-grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0,0,0,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
    z-index: 0;
    opacity: 0.5;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, transparent 0%, white 85%);
    z-index: 0;
    pointer-events: none;
}

.hero {
    padding: 140px 0 80px;
    position: relative;
    z-index: 1;
}

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

@media (min-width: 1024px) {
    .hero .container {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s 0.1s ease both;
}

.text-gradient {
    color: var(--accent-vibrant);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 520px;
    line-height: 1.65;
    animation: fadeSlideUp 0.6s 0.2s ease both;
}

.btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
    animation: fadeSlideUp 0.6s 0.3s ease both;
}

.hero-btn-outline {
    border-color: rgba(38, 5, 58, 0.15);
    color: var(--text-primary);
}

.hero-btn-outline:hover {
    background: rgba(116, 51, 255, 0.06);
    border-color: var(--accent-purple);
    color: var(--accent-purple);
}

.hero-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    opacity: 0.7;
    animation: fadeSlideUp 0.6s 0.4s ease both;
}

/* Hero Visual & Mockup */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideUp 0.8s 0.3s ease both;
}

/* Multi-color glow orbs behind mockup */
.hero-visual::before,
.hero-visual::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Purple glow — top-left */
.hero-visual::before {
    width: 280px;
    height: 280px;
    top: -10%;
    left: -5%;
    background: rgba(116, 51, 255, 0.18);
    animation: glowDrift1 8s ease-in-out infinite alternate;
}

/* Orange glow — bottom-right */
.hero-visual::after {
    width: 240px;
    height: 240px;
    bottom: -5%;
    right: -8%;
    background: rgba(252, 77, 16, 0.14);
    animation: glowDrift2 7s ease-in-out infinite alternate;
}


@keyframes glowDrift1 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.7; }
    50%  { transform: translate(-10px, 8px) scale(1.08); opacity: 0.9; }
    100% { transform: translate(5px, -6px) scale(1.04); opacity: 0.75; }
}

@keyframes glowDrift2 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.65; }
    50%  { transform: translate(8px, -10px) scale(1.1); opacity: 0.85; }
    100% { transform: translate(-6px, 5px) scale(1.02); opacity: 0.7; }
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    z-index: -1;
    pointer-events: none;
    transition: transform 0.8s ease, opacity 0.8s ease;
}

/* Green glow — top-right */
.glow-green {
    width: 260px;
    height: 260px;
    top: -5%;
    right: -2%;
    background: rgba(16, 185, 129, 0.12);
    animation: glowDrift3 9s ease-in-out infinite alternate;
}

/* Coral glow — bottom-left */
.glow-coral {
    width: 220px;
    height: 220px;
    bottom: -8%;
    left: -4%;
    background: rgba(255, 99, 112, 0.1);
    animation: glowDrift4 10s ease-in-out infinite alternate;
}

@keyframes glowDrift3 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.6; }
    50%  { transform: translate(12px, 6px) scale(1.05); opacity: 0.8; }
    100% { transform: translate(-4px, -8px) scale(1.03); opacity: 0.65; }
}

@keyframes glowDrift4 {
    0%   { transform: translate(0, 0) scale(1); opacity: 0.55; }
    50%  { transform: translate(-8px, -12px) scale(1.1); opacity: 0.75; }
    100% { transform: translate(6px, 4px) scale(1.01); opacity: 0.6; }
}

.mockup-container {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow:
        0 4px 6px rgba(0, 0, 0, 0.02),
        0 12px 24px rgba(0, 0, 0, 0.04),
        0 48px 80px rgba(116, 51, 255, 0.08);
    transform: perspective(1200px) rotateY(-6deg) rotateX(3deg);
    transition: transform 0.8s cubic-bezier(0.2, 0, 0.2, 1), box-shadow 0.8s ease;
    max-width: 520px;
    width: 100%;
}

.mockup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.avatar-circle {
    width: 44px;
    height: 44px;
    background: var(--accent-purple);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.mockup-actions {
    display: flex;
    gap: 8px;
}

.mockup-dot {
    width: 8px;
    height: 8px;
    background: rgba(0,0,0,0.08);
    border-radius: 50%;
}

.mockup-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.m-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.m-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
}

.m-value {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: var(--font-heading);
    color: var(--text-primary);
}

.mockup-main-card {
    background: #f8f9ff;
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid rgba(0,0,0,0.03);
}

.mockup-main-card h3 {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.mockup-card.small-card {
    background: white;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(0,0,0,0.03);
    margin-bottom: 0;
}

.small-card .icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.survival-icon { background: rgba(255, 99, 112, 0.1); color: #ff6370; }
.transport-icon { background: rgba(255, 159, 10, 0.1); color: #ff9f0a; }

.small-card h4 {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 2px;
}

.small-card p {
    font-weight: 700;
    font-size: 1rem;
}

/* Floating Alert */
.floating-alert {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    gap: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(116, 51, 255, 0.05);
    max-width: 260px;
    z-index: 10;
    animation: alertFloat 3s ease-in-out infinite alternate;
}

.floating-alert-1 {
    bottom: -15px;
    right: -25px;
}

/* Sits over the header's decorative dots, clear of the stat values. */
.floating-alert-2 {
    top: -36px;
    right: -12px;
    animation-delay: 1.5s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(252, 77, 16, 0.05);
}

.alert-content strong { display: block; margin-bottom: 2px; }

@keyframes alertFloat {
    0% { transform: translateY(0); }
    100% { transform: translateY(-8px); }
}

/* ==========================================================================
   Banks Section
   ========================================================================== */
.banks-section {
    padding: 80px 0;
    background: transparent;
    border-bottom: 1px solid rgba(0,0,0,0.05);
    position: relative;
    z-index: 2;
}

.section-label {
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 48px;
}

.bank-logos {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 40px 60px;
    margin-bottom: 40px;
}

.bank-logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-secondary);
    transition: var(--transition);
}

.security-note {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ==========================================================================
   Features / Categories Section
   ========================================================================== */

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

.section-header h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
}

.section-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
}

/* Two-tone lead: a bold statement that continues in a muted tone,
   left-aligned instead of a centered heading + subtitle pair. */
.section-header-lead {
    text-align: left;
    max-width: 760px;
    margin: 0 0 64px;
}

.section-header-lead h2 {
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0;
}

.section-header-muted {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ==========================================================================
   Trigger / Debt Section
   ========================================================================== */

/* ==========================================================================
   AI Coach Section
   ========================================================================== */

/* ==========================================================================
   Pricing Section
   ========================================================================== */
.pricing-section {
    padding: 120px 0;
    background: white;
    position: relative;
    z-index: 2;
    color: var(--text-primary);
}

.pricing-section .section-header h2 {
    color: var(--text-primary);
}

.pricing-section .section-header p {
    color: var(--text-secondary);
}

.pricing-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    position: relative;
    z-index: 10;
}

.pricing-card.premium .pricing-toggle-wrapper {
    justify-content: flex-start;
}

.toggle-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.pricing-card.premium .toggle-label {
    color: rgba(255,255,255,0.7) !important;
}

.discount-badge {
    background: rgba(116, 51, 255, 0.15);
    color: #b388ff;
    padding: 2px 10px;
    border-radius: 100px;
    font-size: 0.75rem;
    margin-left: 4px;
    font-weight: 700;
    border: 1px solid rgba(116, 51, 255, 0.2);
}

.pricing-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
}

.pricing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255,255,255,0.05);
    transition: .4s;
    border-radius: 34px;
    border: 1.5px solid var(--accent-vibrant);
}

.slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--accent-purple);
}

input:checked + .slider:before {
    transform: translateX(24px);
}

.pricing-cards {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    flex: 1;
    background: white;
    border: 1px solid rgba(0,0,0,0.08);
    padding: 56px 40px;
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.03);
}

.pricing-card.premium {
    background: #1a0633 !important;
    border-color: var(--accent-purple);
    box-shadow: 0 20px 80px rgba(116, 51, 255, 0.15);
}

.pricing-card.premium * {
    color: white !important;
}

.pricing-card.premium .popular-tag,
.pricing-card.premium .popular-tag * {
    color: white !important;
}

.pricing-card.premium .plan-features i {
    color: var(--accent-purple) !important;
}

.pricing-card.premium::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 110%;
    height: 110%;
    background: radial-gradient(circle, rgba(116, 51, 255, 0.08) 0%, transparent 70%);
    z-index: -1;
    pointer-events: none;
    filter: blur(40px);
}

.card-type {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    margin-bottom: 24px;
    background: rgba(0,0,0,0.04);
    display: inline-flex;
    align-items: center;
    height: 32px;
    padding: 0 16px;
    border-radius: var(--radius-full);
    align-self: flex-start;
}

.pricing-card.premium .card-type {
    color: var(--accent-purple) !important;
    background: rgba(255,255,255,0.08);
}

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    font-family: var(--font-heading);
}

.price {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-heading);
    margin-bottom: 24px;
    display: flex;
    align-items: baseline;
    color: var(--text-primary);
    letter-spacing: -0.02em;
    line-height: 1;
}

.price .amount {
    font-size: inherit;
    font-weight: inherit;
    font-family: inherit;
    color: inherit;
}

.price span {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.5;
    margin-left: 6px;
}

.plan-desc {
    font-size: 0.9rem;
    line-height: 1.5;
    opacity: 0.7;
    margin-bottom: 20px;
    min-height: auto;
}

.feature-group-label {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent-purple);
    margin: 40px 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.pricing-card.premium .feature-group-label {
    color: var(--accent-purple) !important;
    border-color: rgba(255,255,255,0.1);
}

.plan-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 32px;
    flex: 1;
}

@media (min-width: 640px) {
    .pricing-card.premium .plan-features {
        grid-template-columns: 1fr 1fr;
        gap: 12px 24px;
    }
}

.plan-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.85rem;
    line-height: 1.4;
    color: var(--text-secondary);
}

.plan-features i {
    width: 14px;
    height: 14px;
    color: var(--accent-purple);
    margin-top: 2px;
    flex-shrink: 0;
}

.plan-features li.unavailable {
    opacity: 0.5;
    color: var(--text-tertiary);
}

.plan-features li.unavailable i {
    color: rgba(0, 0, 0, 0.3);
}

.trial-info {
    padding: 14px 0;
    margin-top: 16px;
    font-size: 0.75rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

.trial-info p {
    margin: 0;
}

.trial-info strong {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

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

.popular-tag {
    background: var(--accent-vibrant);
    color: white;
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: var(--radius-full);
    box-shadow: 0 4px 12px rgba(252, 77, 16, 0.2);
}

.pricing-card-header .card-type {
    margin-bottom: 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
/* End of file cleanup */

.footer {
    padding: 120px 0 60px;
    background: white;
    border-top: 1px solid rgba(0,0,0,0.06);
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

@media (min-width: 1024px) {
    .footer-content {
        grid-template-columns: 1.5fr 2fr;
        gap: 100px;
    }
}

.footer-brand p {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin: 32px 0;
    max-width: 400px;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 40px;
}

.link-group h4 {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-primary);
    margin-bottom: 32px;
}

.link-group a {
    display: block;
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.95rem;
    transition: var(--transition);
}

.link-group a:hover {
    color: var(--accent-purple);
    transform: translateX(4px);
}

.footer-bottom {
    padding-top: 48px;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 24px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.hosting-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.hosting-note i {
    width: 14px;
    height: 14px;
    color: #ff6370;
}

@media (max-width: 640px) {
    .footer-bottom-flex {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }
}

/* ==========================================================================
   Auth Pages (Login/Signup)
   ========================================================================== */

/* ==========================================================================
   Onboarding Wizard — Full-Screen Immersive Experience
   ========================================================================== */

/* Animated Mesh Background */

/* Step-specific Background Magic */

@keyframes meshMove {
    0% { border-radius: 50% 50% 50% 50%; transform: translate(0, 0); }
    33% { border-radius: 40% 60% 70% 30%; transform: translate(10%, 5%); }
    66% { border-radius: 70% 30% 50% 50%; transform: translate(-5%, 10%); }
    100% { border-radius: 50% 50% 50% 50%; transform: translate(0, 0); }
}

@keyframes logoEntrance {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Progress Bar — pill style */

/* Step Container */
.step {
    display: none;
    perspective: 1000px;
}

.step.active {
    display: block;
}

/* Transition Variations */

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

@keyframes slideRightEnter {
    from { opacity: 0; transform: translateX(-100px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes zoomEnter {
    from { opacity: 0; transform: scale(0.8); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes flipEnter {
    from { opacity: 0; transform: rotateX(-30deg) translateY(50px); }
    to { opacity: 1; transform: rotateX(0) translateY(0); }
}

@keyframes stepExit {
    from { opacity: 1; transform: scale(1); }
    to { opacity: 0; transform: scale(0.9) translateY(-20px); }
}

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

/* Option Cards (for selection steps) */

@keyframes checkPop {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Large option cards for tracking method */

/* Budget Setup */

/* Summary / Ready Screen */

/* Celebration / Ready Screen */

@keyframes celebrationBounce {
    0% { transform: scale(0) rotate(-15deg); opacity: 0; }
    60% { transform: scale(1.2) rotate(5deg); opacity: 1; }
    100% { transform: scale(1) rotate(0deg); opacity: 1; }
}

/* Confetti Canvas */

/* Step Navigation */

/* Select Dropdown */

/* Welcome step specifics */

/* ==========================================================================
   Landing Page — Platform Features Section
   ========================================================================== */
.lp-features-section {
    padding: 120px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

/* Glow BEHIND the card */

@keyframes coachGlow {
    0% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    100% { transform: translate(-48%, -52%) scale(1.1); opacity: 0.8; }
}

/* Mini budget bars in feature cards */
.mini-budget-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.mini-budget-row:last-child { margin-bottom: 0; }

.mini-budget-row .progress-bar { flex: 1; height: 5px; }

/* Mini debt preview */

/* Mini goal preview */

/* Mini transaction preview */

/* Mini fitness preview */

/* Mini coach preview */

/* ==========================================================================
   Landing Page — How It Works
   ========================================================================== */
.lp-how-section {
    padding: 140px 0;
    background: #ffffff;
    position: relative;
    overflow: hidden;
}

.lp-how-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle at center, rgba(116, 51, 255, 0.03) 0%, transparent 70%);
    z-index: 1;
}

.lp-steps-grid {
    display: flex;
    align-items: stretch;
    justify-content: center;
    gap: 32px;
    max-width: 1250px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.lp-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.lp-step-card {
    background: white;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    transition: var(--transition);
    box-shadow: 0 4px 24px rgba(0,0,0,0.02);
    width: 100%;
}

.lp-step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--accent-purple);
    color: white;
    font-family: var(--font-heading);
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px var(--accent-purple-glow);
}

.lp-step-icon {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 28px;
    transition: var(--transition);
}

.lp-step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.lp-step-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.lp-step-connector {
    display: flex;
    align-items: center;
    padding-top: 56px; /* Align with card center */
    opacity: 0.4;
}

@media (max-width: 991px) {
    .lp-steps-grid {
        flex-direction: column;
        gap: 40px;
    }
    .lp-step-connector {
        display: none;
    }
}

@media (max-width: 768px) {
    .lp-steps-grid { flex-direction: column; gap: 24px; }
    .lp-step-connector { transform: rotate(90deg); padding: 8px 0; }
}

/* ==========================================================================
   Landing Page — How It Works (dark flow variant, homepage)
   A flat dark chapter break: a numbered track over equal-height cards that
   each end in a small product vignette.
   ========================================================================== */
.lp-how-section.lp-flow {
    background: #1a0633;
    color: #FFFFFF;
}

.lp-how-section.lp-flow::before { display: none; }

.lp-flow-head { margin-bottom: 72px; }

.lp-flow-head h2 {
    max-width: 680px;
    font-size: 2.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: #FFFFFF;
}

.lp-flow-head .section-header-muted { color: rgba(255, 255, 255, 0.68); }

/* Track: a hairline through the nodes. */
.lp-flow-steps {
    --node: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    position: relative;
}

.lp-flow-steps::before {
    content: '';
    position: absolute;
    top: calc(var(--node) / 2);
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.15);
}

.lp-flow-step {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.lp-flow-node {
    position: relative;
    z-index: 1;
    width: var(--node);
    height: var(--node);
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.95rem;
    color: #FFFFFF;
    background: var(--accent-purple);
    box-shadow: 0 0 0 6px #1a0633; /* cuts the track line around the node */
}

.lp-flow-card {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 28px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: var(--transition);
}

.lp-flow-card:hover {
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
}

.lp-flow-meta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
}

.lp-flow-meta svg { width: 16px; height: 16px; }

.lp-flow-card h3 {
    font-size: 1.35rem;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.lp-flow-card > p:not(.lp-flow-meta) {
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 28px;
}

/* Vignettes: light app UI, pinned to the card bottom so all three align. */
.lp-flow-demo {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 176px;
    padding: 18px;
    border-radius: 16px;
    background: #FFFFFF;
    color: var(--text-primary);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
    font-size: 0.8rem;
}

.lp-demo-row,
.lp-demo-bank,
.lp-demo-txn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.lp-demo-label { flex: 1; font-weight: 600; }
.lp-demo-value { font-weight: 700; font-variant-numeric: tabular-nums; }
.lp-demo-dot { width: 8px; height: 8px; border-radius: 50%; }

.lp-demo-bar {
    height: 6px;
    border-radius: 99px;
    background: #F1EEF6;
    overflow: hidden;
    margin-bottom: 4px;
}

.lp-demo-bar span {
    display: block;
    height: 100%;
    width: var(--fill);
    border-radius: inherit;
}

.lp-demo-bank {
    padding-bottom: 10px;
    border-bottom: 1px solid #F1EEF6;
}

.lp-demo-bank-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(116, 51, 255, 0.1);
    color: var(--accent-purple);
}

.lp-demo-bank-icon svg { width: 15px; height: 15px; }

.lp-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    color: #047857;
    background: rgba(16, 185, 129, 0.12);
}

.lp-demo-pill svg { width: 11px; height: 11px; }

.lp-demo-txn { color: var(--text-secondary); }
.lp-demo-txn span:first-child { flex: 1; }

.lp-demo-chip {
    padding: 2px 8px;
    border-radius: 99px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--accent-purple);
    background: rgba(116, 51, 255, 0.08);
}

.lp-demo-chip-in { color: #047857; background: rgba(16, 185, 129, 0.12); }
.lp-demo-amt { width: 74px; text-align: right; font-weight: 600; color: var(--text-primary); font-variant-numeric: tabular-nums; }
.lp-demo-amt-in { color: #047857; }

.lp-demo-foot {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #F1EEF6;
    font-weight: 600;
    color: #047857;
}

.lp-demo-foot svg { width: 14px; height: 14px; }
.lp-demo-foot-accent { color: var(--accent-purple); }

.lp-flow-caption {
    margin-top: 28px;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 1023px) {
    .lp-flow-head { margin-bottom: 48px; }
    /* Track turns vertical: line runs down the node column, cards sit beside it. */
    .lp-flow-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
    .lp-flow-steps::before {
        top: 0;
        bottom: 0;
        left: calc(var(--node) / 2);
        right: auto;
        width: 1px;
        height: auto;
    }
    .lp-flow-step { flex-direction: row; align-items: flex-start; gap: 16px; }
}

@media (max-width: 767px) {
    .lp-flow-head h2 { font-size: 1.6rem; line-height: 1.25; }
    .lp-flow-card { padding: 20px; }
    .lp-flow-demo { min-height: 0; }
}

/* ==========================================================================
   Landing Page — Stats Strip
   ========================================================================== */
.lp-stats-section {
    padding: 0 0 100px;
    background: #FFFFFF;
    position: relative;
    z-index: 2;
}

.lp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 0;
}

.lp-stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end; /* values align to the top even when a label wraps */
    gap: 8px;
    padding: 32px 24px 0;
    text-align: center;
}

.lp-stat + .lp-stat { border-left: 1px solid rgba(0, 0, 0, 0.06); }

.lp-stat dd {
    margin: 0;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.lp-stat dt {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 767px) {
    .lp-stats-section { padding-bottom: 48px; }
    .lp-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lp-stat { padding: 24px 12px; }
    .lp-stat:nth-child(odd) { border-left: none; }
    .lp-stat:nth-child(n+3) { border-top: 1px solid rgba(0, 0, 0, 0.06); }
    .lp-stat dd { font-size: 1.75rem; }
}

/* ==========================================================================
   Landing Page — CTA Banner
   ========================================================================== */
.lp-cta-section {
    padding: 100px 0;
    background: var(--bg-secondary);
    position: relative;
    z-index: 2;
}

.lp-cta-card {
    background: #1a0633;
    border-radius: var(--radius-lg);
    padding: 80px 60px;
    text-align: center;
    color: white;
    position: relative;
    border: 1px solid rgba(255,255,255,0.05);
}

.text-orange {
    color: var(--accent-vibrant);
}

.btn-vibrant {
    background: var(--accent-vibrant) !important;
    border-color: var(--accent-vibrant) !important;
}

.btn-vibrant:hover {
    background: #e6450e !important;
    box-shadow: 0 8px 25px rgba(252, 77, 16, 0.4);
}

/* External Mesh Glow behind the CTA card */
.lp-cta-card::before,
.lp-cta-card::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 115%;
    height: 125%;
    z-index: -1;
    pointer-events: none;
    filter: blur(35px);
}

.lp-cta-card::before {
    background: 
        radial-gradient(circle at 15% 15%, rgba(116, 51, 255, 0.3) 0%, transparent 35%),
        radial-gradient(circle at 85% 85%, rgba(252, 77, 16, 0.25) 0%, transparent 35%),
        radial-gradient(circle at 15% 85%, rgba(16, 185, 129, 0.2) 0%, transparent 35%);
    animation: ctaMesh1 18s ease-in-out infinite alternate;
}

.lp-cta-card::after {
    background: 
        radial-gradient(circle at 85% 15%, rgba(255, 99, 112, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, rgba(116, 51, 255, 0.15) 0%, transparent 45%);
    animation: ctaMesh2 12s ease-in-out infinite alternate-reverse;
}

@keyframes ctaMesh1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); opacity: 0.5; }
    100% { transform: translate(-45%, -55%) rotate(10deg) scale(1.1); opacity: 0.9; }
}

@keyframes ctaMesh2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) scale(1.2); opacity: 0.4; }
    100% { transform: translate(-55%, -45%) rotate(-10deg) scale(1); opacity: 0.7; }
}

.lp-cta-content { position: relative; z-index: 2; }

.lp-cta-content h2 {
    font-size: 2.75rem;
    margin-bottom: 20px;
    letter-spacing: -0.02em;
    font-family: var(--font-heading);
    color: #FFFFFF;
}

.lp-cta-content > p {
    font-size: 1.15rem;
    color: #FFFFFF;
    opacity: 0.9;
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

.lp-cta-content > p.lp-cta-note {
    font-size: 0.875rem;
    opacity: 0.75;
    margin: 16px auto 0;
}

@media (max-width: 640px) {
    .lp-cta-card { padding: 48px 24px; }
    .lp-cta-content h2 { font-size: 1.75rem; }
}

/* Mockup budget bars in hero */
.mockup-budget-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mockup-budget-bars .mini-budget-row {
    margin-bottom: 0;
}

/* ==========================================================================
   Shared components (consolidated from the page stylesheets)
   Modal system, colour picker, chart legend and goal/progress ring — shared
   by the Budget, Goals, Debt, Settings and Fitness pages. Page stylesheets
   may still layer small scoped overrides (e.g. a wider modal on Goals, a
   larger legend on Fitness).
   ========================================================================== */

/* --- Modal --- */

/* Form-group styling inside modals — the canonical .form-group used on the
   auth/onboarding pages differs visually; modals use a tighter, transparent
   variant. Scope keeps the auth pages unaffected. */

/* --- Colour picker --- */

/* --- Chart legend --- */

/* --- Goal / progress ring (Goals + Debt) --- */

/* ==========================================================================
   Bento Grid Features Section (Stripe-Inspired)
   ========================================================================== */
.bento-section {
    padding: 100px 0 80px;
    background: var(--bg-primary);
    overflow: visible;
    position: relative;
}

.bento-section .container {
    position: relative;
    z-index: 1;
}



.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* --- Base Card --- */
.bento-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 24px;
    padding: 28px 28px 0;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.4s ease,
                grid-column 0.4s ease;
    cursor: default;
}

/* --- Card Header (Title + Expand Button) --- */
.bento-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0;
    padding-bottom: 16px;
    position: relative;
    z-index: 3;
}

.bento-card-header h3 {
    font-size: 1.375rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin: 0;
}

.bento-expand-btn {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    backdrop-filter: blur(8px);
}

.bento-expand-btn:hover {
    background: var(--bg-secondary);
    border-color: rgba(0, 0, 0, 0.12);
    transform: scale(1.05);
}

.bento-expand-btn i,
.bento-expand-btn svg {
    width: 16px;
    height: 16px;
    color: var(--text-secondary);
}

/* --- Visual Placeholder (Image area) --- */
.bento-visual-placeholder {
    flex: 1;
    min-height: 200px;
    border-radius: 16px 16px 0 0;
    margin: 0 -28px;
    padding: 32px 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* ==========================================================================
   Bento Modal Dialogs (Stripe Style)
   ========================================================================== */
.bento-modal {
    margin: auto;
    border: none;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
    padding: 0;
    max-width: 1080px;
    width: 95%;
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    transform: scale(0.95) translateY(20px);
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-modal[open] {
    opacity: 1;
    transform: scale(1) translateY(0);
}

.bento-modal::backdrop {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.bento-modal[open]::backdrop {
    opacity: 1;
}

.bento-modal-inner {
    padding: 60px 80px;
    position: relative;
}

.bento-modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: none;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-secondary);
}

.bento-modal-close:hover {
    background: rgba(0, 0, 0, 0.08);
    color: var(--text-primary);
}

/* Modal Layout */
.bento-modal-header {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 60px;
    margin-bottom: 48px;
}

.bento-modal-intro h2 {
    font-size: 2.25rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.1;
}

.bento-modal-intro p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.bento-modal-ctas {
    display: flex;
    align-items: center;
    gap: 24px;
}

.bento-modal-link {
    font-weight: 600;
    color: var(--accent-purple);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.bento-modal-link:hover {
    opacity: 0.8;
}

.bento-modal-benefits {
    padding-top: 12px;
}

.bento-modal-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.bento-modal-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.5;
}

.bento-modal-benefits li i,
.bento-modal-benefits li svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

.bento-modal-visual {
    width: 100%;
    height: 480px;
    border-radius: 20px;
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.bento-modal-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.bento-modal-highlight {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.highlight-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.highlight-icon i,
.highlight-icon svg {
    width: 20px;
    height: 20px;
}

.bento-modal-highlight h4 {
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0;
}

.bento-modal-highlight p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0;
}

/* --- Grid Span Variants --- */
.bento-large {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-medium {
    grid-column: span 1;
    grid-row: span 1;
}

.bento-third {
    grid-column: span 1;
    grid-row: span 1;
}

/* ==========================================================================
   Bento Inline Mockups
   ========================================================================== */

/* Bar Chart (Dashboard) */
.bento-mockup-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 160px;
    width: 100%;
    max-width: 320px;
}

.bar-col {
    flex: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.bar {
    width: 100%;
    background: rgba(116, 51, 255, 0.15);
    border-radius: 8px 8px 0 0;
    transition: height 1s ease-out;
}

.bar.active {
    background: var(--accent-purple);
}

.bar-label {
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

/* Fraud Score */
.bento-fraud-mockup {
    text-align: center;
}

.fraud-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.fraud-score-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #ff6370;
    letter-spacing: -0.04em;
    line-height: 1;
}

.fraud-score-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Debt Toggle */
.bento-debt-mockup {
    text-align: center;
    width: 100%;
    max-width: 240px;
}

.debt-toggle {
    display: inline-flex;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 24px;
}

.debt-toggle-option {
    padding: 8px 20px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.debt-toggle-option.active {
    background: var(--accent-purple);
    color: white;
}

.debt-timeline {
    position: relative;
    padding-top: 16px;
}

.debt-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple) 0%, var(--accent-green) 100%);
    border-radius: 4px;
    margin-bottom: 12px;
}

.debt-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent-green);
}

/* Streak Counter */
.bento-streak-mockup {
    text-align: center;
}

.streak-count {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-green);
    line-height: 1;
    letter-spacing: -0.04em;
}

.streak-label {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Drift Bars */
.bento-drift-mockup {
    width: 100%;
    max-width: 200px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.drift-bar {
    height: 10px;
    background: rgba(0, 0, 0, 0.04);
    border-radius: 6px;
    overflow: hidden;
}

.drift-bar span {
    display: block;
    height: 100%;
    border-radius: 6px;
    transition: width 1s ease-out;
}

/* Score Ring */
.bento-score-mockup {
    text-align: center;
}

.score-ring {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 6px solid var(--accent-green);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0.08);
}

.score-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--accent-green);
    letter-spacing: -0.03em;
}

/* Chat Mockup Inline */
.chat-mockup-inline {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 400px;
}

.chat-bubble {
    padding: 14px 20px;
    border-radius: 20px;
    font-size: 0.9375rem;
    line-height: 1.4;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.chat-bubble.ai {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom-left-radius: 4px;
    color: var(--text-primary);
}

.chat-bubble.user {
    background: var(--accent-purple);
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

/* ==========================================================================
   Bento Responsive
   ========================================================================== */
@media (max-width: 992px) {
    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .bento-large { grid-column: span 2; }
    
    .bento-modal-inner {
        padding: 40px;
    }
    .bento-modal-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .bento-modal-highlights {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .bento-large, .bento-medium, .bento-third {
        grid-column: span 1;
    }
    .bento-visual-placeholder {
        min-height: 160px;
    }
    
    .bento-modal-inner {
        padding: 32px 24px;
    }
    .bento-modal-intro h2 {
        font-size: 1.75rem;
    }
    .bento-modal-visual {
        height: 240px;
        margin-bottom: 32px;
    }
    .bento-modal-highlights {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .bento-modal-ctas {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
}

/* ==========================================================================
   Testimonials Section (Redesigned for Premium Aesthetic)
   ========================================================================== */
.testimonials-section {
    padding: 80px 0 120px;
    background: var(--bg-primary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.testimonial-card {
    background: transparent;
    padding: 32px 0 0;
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.testimonial-card p {
    font-size: 1.25rem;
    line-height: 1.5;
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 24px;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.t-author strong {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

.t-author span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.t-author strong::after {
    content: '·';
    margin: 0 4px;
    color: var(--text-secondary);
    font-weight: 400;
}

/* ==========================================================================
   Prose Layout (For text-heavy pages like About, Legal, etc.)
   ========================================================================== */
.page-header {
    padding: 160px 0 80px;
    background: var(--bg-primary);
    text-align: center;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.page-header h1 {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.page-header p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/*
 * Dashboard-page override.
 *
 * `.page-header` was designed for prose pages (about / privacy / terms),
 * where it wants a centred 160px-padded white block. Budget / Goals /
 * Debt / Transactions reuse the same class on a `<div>` inside
 * `.dashboard-container`, and that prose treatment doesn't belong in
 * an app layout — it produces a white panel with a stray border.
 *
 * Scope by ancestor so we never break the prose pages.
 */

.prose-section {
    padding: 80px 0 120px;
    background: #ffffff;
}

.prose-layout {
    max-width: 760px;
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.prose-layout h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 48px 0 24px;
    letter-spacing: -0.03em;
}

.prose-layout h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.prose-layout p {
    margin-bottom: 24px;
}

.prose-layout ul, .prose-layout ol {
    margin-bottom: 32px;
    padding-left: 24px;
}

.prose-layout li {
    margin-bottom: 12px;
}

.prose-layout a {
    color: var(--accent-purple);
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.prose-layout a:hover {
    color: var(--text-primary);
}

.prose-layout strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* Marketing layouts: compact navigation and content sized for touch screens. */
.marketing-page :is(section[id], header[id]) { scroll-margin-top: 96px; }
.marketing-page :is(.hero-wrapper, .bento-section, .lp-cta-section) { overflow: clip; }
.marketing-page :is(.hero-content, .hero-visual, .pricing-card, .bento-card) { min-width: 0; }
.marketing-page :is(button, a, input):focus-visible { outline: 3px solid var(--accent-purple); outline-offset: 4px; }
.marketing-page:has(dialog[open]) { overflow: hidden; }
.marketing-menu-toggle { display: none; }
.marketing-nav-dialog {
    inset: 0 0 auto auto;
    margin: 0;
    width: min(100%, 420px);
    max-width: 100%;
    max-height: 100dvh;
    padding: max(20px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
    border: 0;
    border-radius: 0 0 0 24px;
    color: var(--text-primary);
    background: white;
    box-shadow: 0 16px 60px #26053a22;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.marketing-nav-dialog::backdrop { background: #26053a66; backdrop-filter: blur(4px); }
.marketing-menu-close, .marketing-menu-toggle {
    font: 600 0.9rem var(--font-body);
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid #26053a20;
    border-radius: 12px;
    background: white;
    color: var(--text-primary);
    cursor: pointer;
}
.marketing-menu-close { display: block; margin-left: auto; }
.marketing-menu-links { display: grid; margin: 24px 0; }
.marketing-menu-links a { padding: 18px 4px; border-bottom: 1px solid #26053a12; font-size: 1.25rem; font-weight: 600; }
.marketing-menu-actions { display: grid; gap: 12px; }
.marketing-menu-actions .btn { min-height: 48px; width: 100%; }
.marketing-page .bento-modal-visual[hidden] { display: none; }
.marketing-page .plan-features svg { width: 18px; flex-shrink: 0; }

@media (max-width: 1023px) {
    .marketing-page .navbar { background: rgba(255,255,255,.96); border-bottom: 1px solid #26053a0c; }
    .marketing-page .nav-container { gap: 12px; padding: 12px 0; }
    .marketing-page .logo-img { height: 38px; max-width: 155px; }
    .marketing-nav-ready .nav-links { display: none; }
    .marketing-nav-ready .nav-actions { display: flex; margin-left: auto; }
    .marketing-nav-ready .nav-actions > :not(.btn-secondary) { display: none; }
    .marketing-nav-ready .nav-actions .btn { white-space: nowrap; padding: 10px 12px; min-height: 44px; }
    .marketing-nav-ready .marketing-menu-toggle { display: block; flex-shrink: 0; }
    .marketing-page:not(.marketing-nav-ready) .nav-container { flex-wrap: wrap; }
    .marketing-page:not(.marketing-nav-ready) :is(.nav-links, .nav-actions) { display: flex; flex-wrap: wrap; gap: 16px; }
    .marketing-page:not(.marketing-nav-ready) .navbar { position: static; }
    .marketing-page .hero { padding: 112px 0 56px; }
    .marketing-page .hero .container { gap: 40px; }
    .marketing-page .hero-content { max-width: 660px; margin: auto; }
    .marketing-page .hero-visual { flex-direction: column; gap: 12px; }
    .marketing-page .mockup-container { transform: none; animation: none; }
    .marketing-page .floating-alert { position: static; max-width: 520px; width: 100%; animation: none; }
    .marketing-page :is(.hero-blob, .particle, .hero-glow) { animation: none; }
    .marketing-page .pricing-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .marketing-page .pricing-card { padding: 32px 24px; }
    .marketing-page .pricing-card.premium .plan-features { grid-template-columns: 1fr; }
    .marketing-page .price { flex-wrap: wrap; }
    .marketing-page .bento-expand-btn { width: 44px; height: 44px; flex-shrink: 0; }
    .marketing-page .bento-modal-close { position: sticky; top: 12px; margin: 0 0 12px auto; width: 44px; height: 44px; z-index: 2; background: #f3f0f7; }
    .marketing-page .bento-modal-inner { padding-top: 16px; }
    .marketing-page .testimonials-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .marketing-page .footer-content { gap: 40px; margin-bottom: 40px; }
    .marketing-page .footer-links { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
}

@media (max-width: 767px) {
    .marketing-page .container { padding-inline: 20px; }
    .marketing-page .logo-img { height: 34px; max-width: 135px; }
    .marketing-page .nav-container { gap: 8px; }
    .marketing-page .nav-actions .btn { padding-inline: 8px; }
    .marketing-page .hero { padding: 104px 0 40px; }
    .marketing-page .hero .container { gap: 28px; }
    .marketing-page .hero-title { font-size: clamp(2.15rem, 9vw, 3rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 20px; }
    .marketing-page .hero-subtitle { font-size: 1rem; line-height: 1.6; margin-bottom: 24px; }
    .marketing-page .hero-cta-group { padding-top: 0; }
    .marketing-page .btn-group { display: grid; gap: 10px; margin-bottom: 16px; }
    .marketing-page .btn-group .btn { width: 100%; min-height: 48px; padding: 13px 16px; font-size: 1rem; }
    .marketing-page .hero-note { font-size: .75rem; }
    .marketing-page .mockup-container { padding: 20px; border-radius: 22px; }
    .marketing-page .mockup-header { margin-bottom: 20px; }
    .marketing-page .user-info { display: flex; gap: 12px; align-items: center; }
    .marketing-page .user-info .avatar-circle { flex-shrink: 0; }
    .marketing-page .user-info .greeting { font-size: .85rem; }
    .marketing-page .user-info .date { font-size: .75rem; }
    .marketing-page .mockup-stats { gap: 12px; margin-bottom: 20px; }
    .marketing-page .m-value { font-size: 1.5rem; }
    .marketing-page .mockup-main-card { padding: 18px; }
    .marketing-page .mockup-grid { gap: 10px; }
    .marketing-page .floating-alert { padding: 12px 16px; border-radius: 16px; }
    .marketing-page :is(.banks-section, .lp-features-section, .lp-how-section, .pricing-section, .lp-cta-section, .testimonials-section, .bento-section) { padding-block: 48px; }
    .marketing-page .section-header { margin-bottom: 28px; }
    .marketing-page .section-header h2 { font-size: 2rem; line-height: 1.15; }
    .marketing-page .section-header-lead h2 { font-size: 1.6rem; line-height: 1.25; }
    .marketing-page .section-header p { font-size: 1rem; }
    .marketing-page .section-label { margin-bottom: 24px; }
    .marketing-page .bank-logos { gap: 24px; }
    .marketing-page .bento-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .marketing-page .bento-card { padding: 20px 20px 0; }
    .marketing-page .bento-card-header { gap: 12px; }
    .marketing-page .bento-visual-placeholder { margin-inline: -20px; padding: 24px 20px; min-height: 160px; }
    .marketing-page .lp-steps-grid { gap: 20px; }
    .marketing-page .lp-step-item { flex-direction: row; align-items: flex-start; gap: 12px; }
    .marketing-page .lp-step-number { flex: 0 0 28px; height: 28px; margin: 20px 0 0; }
    .marketing-page .lp-step-card { padding: 20px; text-align: left; }
    .marketing-page .lp-step-icon { width: 44px; height: 44px; border-radius: 12px; margin: 0 0 16px; }
    .marketing-page .lp-step-card h3 { font-size: 1.2rem; }
    .marketing-page .lp-step-card p { font-size: .95rem; }
    .marketing-page .pricing-cards { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .marketing-page .pricing-card { padding: 28px 24px; border-radius: 24px; }

    .marketing-page .pricing-card .btn { min-height: 48px; white-space: normal; }
    .marketing-page .pricing-toggle-wrapper { flex-wrap: wrap; gap: 8px; }
    .marketing-page .pricing-switch { height: 44px; flex-shrink: 0; }
    .marketing-page .pricing-switch .slider { top: 8px; bottom: 8px; }
    .marketing-page .pricing-switch input:focus-visible + .slider { outline: 3px solid var(--accent-purple); outline-offset: 4px; }
    .marketing-page .feature-group-label { margin-top: 28px; }
    .marketing-page .testimonials-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 28px; }
    .marketing-page .testimonial-card { padding: 24px; }
    .marketing-page .testimonial-quote { font-size: 1.05rem; }
    .marketing-page .lp-cta-card { padding: 32px 20px; border-radius: 24px; }
    .marketing-page .lp-cta-card .btn { width: 100%; white-space: normal; }
    .marketing-page .footer { padding: 48px 0 24px; }
    .marketing-page .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
    .marketing-page .footer-links h4 { margin-bottom: 12px; }
    .marketing-page .footer-links a { display: flex; align-items: center; min-height: 44px; margin-bottom: 0; }
    .marketing-page .page-header { padding: 112px 0 32px; }
    .marketing-page .page-header h1 { font-size: clamp(2rem, 9vw, 2.75rem); line-height: 1.15; overflow-wrap: anywhere; }
    .marketing-page .page-header p { font-size: 1rem; }
    .marketing-page .prose-section { padding: 24px 0 48px; }
    .marketing-page .prose-layout { font-size: 1rem; overflow-wrap: anywhere; }
    .marketing-page .prose-layout h2 { font-size: 1.5rem; margin: 32px 0 16px; }
    .marketing-page .prose-layout h3 { font-size: 1.2rem; }
    .marketing-page .bento-modal { width: 100%; max-width: 100%; max-height: 92dvh; margin: auto 0 0; border-radius: 24px 24px 0 0; overscroll-behavior: contain; }
    .marketing-page .bento-modal-inner { padding: 12px 20px max(28px, env(safe-area-inset-bottom)); }
    .marketing-page .bento-modal-header { gap: 24px; margin-bottom: 28px; }
    .marketing-page .bento-modal-visual { height: auto; min-height: 0; margin-bottom: 28px; }
    .marketing-page .bento-modal-ctas .btn { width: 100%; white-space: normal; }
    .marketing-page .modal-visual-frame { padding: 20px 12px; }
    .marketing-page .mv-panel { padding: 16px 12px; }
    .marketing-page .wl-hero-form { flex-direction: column; gap: 12px; }
    .marketing-page .wl-hero-form .btn { min-height: 48px; }
    .marketing-page .wl-modal { max-height: 92dvh; overflow-y: auto; }
    .marketing-page .wl-modal-inner { padding: 56px 20px 24px; }
    .marketing-page .wl-modal-close { width: 44px; height: 44px; top: 8px; right: 8px; }
}

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

@media (max-width: 767px) {
    .marketing-page .bento-mockup-chart { gap: 6px; }
    .marketing-page .bar-col { min-width: 0; }
    .marketing-page .bar-label { font-size: clamp(.5rem, 2.1vw, .6875rem); letter-spacing: 0; text-transform: none; }
}
@media (max-width: 360px) {
    .marketing-page .logo-img { max-width: 112px; height: auto; }
    .marketing-menu-toggle { padding-inline: 10px; }
}
