/* ==========================================================================
   FamilyBase Pro - Marketing Website Design System (styles.css)
   ========================================================================== */

/* Google Fonts Import */
@import url('https://fonts.googleapis.com/css2?family=Fredoka:wght@400;500;600;700&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* Design Tokens & CSS Variables */
:root {
    /* Color Palette */
    --primary-50: #f0f5ff;
    --primary-100: #e1ebff;
    --primary-500: #1e5bc6;
    --primary-600: #184fa9;
    --primary-700: #123c82;
    
    --secondary-500: #f05282;
    --secondary-600: #d83d6a;
    
    --accent-500: #f59e0b;
    
    --slate-50: #faf8f4;
    --slate-100: #f5f2eb;
    --slate-200: #ebdcc9;
    --slate-800: #2d2d2d;
    --slate-900: #1f2937;
    --slate-950: #111827;
    
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-900: #1f2937;
    
    --emerald-50: #f0fdf4;
    --emerald-100: #dcfce7;
    --emerald-500: #22c55e;
    --emerald-600: #16a34a;
    
    --yellow-50: #fefce8;
    --yellow-100: #fef9c3;
    --yellow-400: #facc15;
    --yellow-500: #eab308;
    --yellow-600: #ca8a04;
    
    /* Typography */
    --font-sans: 'Outfit', sans-serif;
    --font-display: 'Fredoka', sans-serif;
    
    /* Transitions & Shadow */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    --shadow-primary: 0 10px 15px -3px rgba(30, 91, 198, 0.2), 0 4px 6px -4px rgba(30, 91, 198, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--slate-50);
    color: var(--gray-900);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* Layout Utilities */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

@media (min-width: 640px) {
    .container { padding: 0 2rem; }
}

/* Typography Utilities */
.font-display {
    font-family: var(--font-display);
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 50%, var(--accent-500) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Glowing background animations */
.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(30, 91, 198, 0.12) 0%, rgba(240, 82, 130, 0.04) 40%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    filter: blur(40px);
    z-index: -1;
    pointer-events: none;
}

/* Header & Navigation */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(250, 248, 244, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 220, 201, 0.8);
    transition: background-color var(--transition-fast);
}

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

.logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-box {
    width: 3rem;
    height: 3rem;
    background-color: var(--primary-600);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: var(--shadow-primary);
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 900;
    letter-spacing: -0.025em;
    color: var(--slate-900);
}

.logo-text span {
    color: var(--primary-600);
}

.nav-links {
    display: none;
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
        align-items: center;
        gap: 2rem;
        font-weight: 600;
        color: var(--gray-600);
    }
    
    .nav-links a {
        transition: color var(--transition-fast);
    }
    
    .nav-links a:hover {
        color: var(--primary-600);
    }
}

.nav-cta {
    display: none;
}

@media (min-width: 768px) {
    .nav-cta {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
}

/* Button Component Styles */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 0.875rem;
    font-weight: 700;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-primary);
}

.btn-primary:hover {
    background-color: var(--primary-700);
    transform: translateY(-2px);
    box-shadow: 0 12px 20px -3px rgba(79, 70, 229, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--slate-200);
}

.btn-secondary:hover {
    background-color: var(--slate-50);
    border-color: var(--gray-400);
    transform: translateY(-2px);
}

.btn-gray {
    background-color: var(--slate-100);
    color: var(--gray-700);
}

.btn-gray:hover {
    background-color: var(--slate-200);
}

.btn-gradient {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--secondary-500) 100%);
    color: white;
    box-shadow: 0 10px 15px -3px rgba(236, 72, 153, 0.2);
}

.btn-gradient:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 25px -5px rgba(236, 72, 153, 0.35);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: block;
    color: var(--gray-600);
    padding: 0.5rem;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn:hover {
    color: var(--gray-900);
    background-color: var(--slate-100);
}

/* Mobile Menu Panel */
.mobile-menu {
    display: none;
    background-color: white;
    border-bottom: 1px solid var(--slate-100);
    padding: 0.5rem 1.5rem 1.5rem;
}

.mobile-menu.open {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.mobile-menu a:not(.btn) {
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--gray-700);
    border-radius: 0.75rem;
    transition: background-color var(--transition-fast);
}

.mobile-menu a:not(.btn):hover {
    background-color: var(--slate-50);
    color: var(--primary-600);
}

/* Hero Section */
.hero {
    position: relative;
    padding: 2.5rem 0 5rem;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(30, 91, 198, 0.03) 0%, rgba(250, 248, 244, 1) 50%, rgba(240, 82, 130, 0.02) 100%);
}

@media (min-width: 768px) {
    .hero {
        padding: 5rem 0 8rem;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
    }
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .hero-content {
        grid-column: span 6;
        text-align: left;
    }
}

.hero-badge {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    background-color: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    color: var(--primary-700);
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (min-width: 1024px) {
    .hero-badge {
        align-self: flex-start;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    line-height: 1.15;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-title {
        font-size: 3.5rem;
    }
}

.hero-desc {
    font-size: 1.125rem;
    color: var(--gray-600);
    font-weight: 500;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.625;
}

@media (min-width: 1024px) {
    .hero-desc {
        margin: 0;
    }
}

/* Lead Form */
.lead-form-wrapper {
    max-width: 28rem;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 1024px) {
    .lead-form-wrapper {
        margin: 0;
    }
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

@media (min-width: 640px) {
    .lead-form {
        flex-direction: row;
    }
}

.lead-input {
    flex-grow: 1;
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    border: 1px solid var(--slate-200);
    background-color: white;
    color: var(--gray-900);
    font-size: 1rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.lead-input::placeholder {
    color: var(--gray-400);
}

.lead-input:focus {
    outline: none;
    border-color: var(--primary-500);
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.lead-btn {
    padding: 1rem 1.75rem;
    font-size: 1rem;
    font-weight: 800;
    border-radius: 1rem;
}

.lead-subtext {
    font-size: 0.75rem;
    color: var(--gray-500);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

@media (min-width: 1024px) {
    .lead-subtext {
        justify-content: flex-start;
    }
}

/* Social Badges / Partners */
.hero-social-proof {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--slate-200);
}

@media (min-width: 1024px) {
    .hero-social-proof {
        justify-content: flex-start;
    }
}

.hero-users-badge {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.avatar-stack {
    display: flex;
    align-items: center;
}

.avatar-mini {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    border: 2px solid white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
}

.avatar-mini:not(:first-child) {
    margin-left: -0.75rem;
}

.avatar-pink { background-color: var(--secondary-500); }
.avatar-indigo { background-color: var(--primary-500); }
.avatar-emerald { background-color: var(--emerald-500); }

.users-badge-text {
    text-align: left;
    font-size: 0.75rem;
    line-height: 1.25;
}

.users-badge-text .title {
    font-weight: 700;
    color: var(--gray-900);
}

.users-badge-text .subtitle {
    color: var(--gray-500);
}

.divider-vertical {
    width: 1px;
    height: 2rem;
    background-color: var(--slate-200);
}

.platforms-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.75rem;
    font-weight: 700;
}

.platforms-title {
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-right: 0.25rem;
}

.store-badge {
    height: 40px;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

.store-badge:hover {
    transform: translateY(-2px);
}

.store-badge-img {
    height: 100%;
    width: auto;
    display: block;
    border-radius: 6px;
}

.badge-disabled {
    cursor: not-allowed;
    opacity: 0.4;
    filter: grayscale(100%);
}

.badge-disabled:hover {
    transform: none;
}

.badge-label-tag {
    position: absolute;
    top: -0.4rem;
    right: -0.2rem;
    background-color: var(--accent-500);
    color: white;
    font-size: 0.55rem;
    font-weight: 800;
    padding: 0.1rem 0.35rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
    pointer-events: none;
    border: 1px solid white;
    line-height: 1;
}

/* Browser Badge to Match Store Badges */
.browser-badge {
    background-color: #0A0A0A;
    color: white;
    padding: 0 0.875rem 0 0.75rem;
    border-radius: 6px;
    border: 1px solid #A2A2A1;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.browser-icon {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-500);
}

.browser-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    line-height: 1.1;
    text-align: left;
}

.browser-label {
    font-size: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--gray-400);
}

.browser-sublabel {
    font-size: 0.75rem;
    font-weight: 700;
    color: white;
}

/* Simulator Container Right */
.hero-simulator {
    display: flex;
    justify-content: center;
}

@media (min-width: 1024px) {
    .hero-simulator {
        grid-column: span 6;
    }
}

.simulator-box {
    position: relative;
    width: 100%;
    max-width: 380px;
}

.sim-tag-left {
    position: absolute;
    top: -0.75rem;
    left: -0.75rem;
    background-color: var(--secondary-500);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.875rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    z-index: 20;
}

.sim-tag-right {
    position: absolute;
    bottom: -0.75rem;
    right: -0.75rem;
    background-color: var(--primary-600);
    color: white;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-lg);
    z-index: 20;
    animation: simPulse 2s infinite;
}

/* Phone Bezel/Mockup */
.phone-bezel {
    background-color: var(--slate-900);
    padding: 0.625rem;
    border-radius: 2.375rem;
    box-shadow: var(--shadow-xl), 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border: 3px solid var(--slate-950);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.phone-screen {
    background-color: var(--slate-50);
    border-radius: 1.75rem;
    height: 650px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* Phone Status Bar */
.phone-status-bar {
    height: 2.25rem;
    background-color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.25rem;
    font-size: 0.675rem;
    font-weight: 700;
    color: var(--gray-700);
}

.notch {
    width: 5rem;
    height: 0.875rem;
    background-color: var(--slate-900);
    border-radius: 9999px;
    position: absolute;
    top: 0.625rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
}

/* Phone Scroll Body */
.phone-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1rem 1rem 4rem;
}

.phone-body::-webkit-scrollbar {
    width: 4px;
}
.phone-body::-webkit-scrollbar-track {
    background: transparent;
}
.phone-body::-webkit-scrollbar-thumb {
    background: var(--slate-200);
    border-radius: 10px;
}

/* Phone Tab Navigation Bottom */
.phone-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3.75rem;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-top: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 0.5rem 0.5rem;
    border-bottom-left-radius: 1.75rem;
    border-bottom-right-radius: 1.75rem;
    z-index: 25;
}

.phone-nav-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.125rem;
    color: var(--gray-400);
    font-size: 0.55rem;
    font-weight: 700;
    flex-grow: 1;
    height: 100%;
    justify-content: center;
    transition: color var(--transition-fast);
}

.phone-nav-btn i {
    width: 1.125rem;
    height: 1.125rem;
}

.phone-nav-btn.active {
    color: var(--primary-600);
}

/* Simulator Elements */
.sim-hero-banner {
    background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-700) 100%);
    border-radius: 1rem;
    padding: 1rem;
    color: white;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.75rem;
}

.sim-banner-title {
    font-size: 0.875rem;
    font-weight: 800;
}

.sim-banner-desc {
    font-size: 0.675rem;
    color: var(--primary-100);
    margin-top: 0.125rem;
}

.sim-grid-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.sim-stat-card {
    background-color: white;
    padding: 0.75rem;
    border-radius: 0.875rem;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
}

.sim-stat-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.55rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.sim-stat-header-points { color: var(--yellow-600); }
.sim-stat-header-groceries { color: var(--emerald-600); }

.sim-stat-value {
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-800);
    margin-top: 0.25rem;
}

.sim-card {
    background-color: white;
    border-radius: 0.875rem;
    border: 1px solid var(--slate-100);
    box-shadow: var(--shadow-sm);
    padding: 0.875rem;
    margin-bottom: 0.75rem;
}

.sim-card-header {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-400);
    margin-bottom: 0.5rem;
}

.sim-leaderboard-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    padding: 0.375rem 0;
}

.sim-leaderboard-row:not(:last-child) {
    border-bottom: 1px solid var(--slate-100);
}

.sim-player-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-player-rank {
    font-weight: 700;
    color: var(--gray-400);
    width: 0.75rem;
}

.sim-player-avatar {
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    border: 1px solid white;
}

.sim-player-name {
    font-weight: 700;
    color: var(--gray-700);
}

.sim-player-score {
    font-weight: 800;
    color: var(--primary-600);
}

/* Tasks Tab Styles */
.sim-task-row {
    background-color: white;
    padding: 0.625rem 0.75rem;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.5rem;
    transition: all var(--transition-fast);
}

.sim-task-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.sim-checkbox {
    width: 1.125rem;
    height: 1.125rem;
    border-radius: 0.25rem;
    border: 2px solid var(--gray-400);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all var(--transition-fast);
}

.sim-task-row:hover .sim-checkbox {
    border-color: var(--emerald-500);
}

.sim-checkbox i {
    width: 0.75rem;
    height: 0.75rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all var(--transition-fast);
}

/* Completed Chore Transition */
.sim-task-row.completed {
    opacity: 0.5;
    transform: scale(0.97);
}

.sim-task-row.completed .sim-checkbox {
    background-color: var(--emerald-500);
    border-color: var(--emerald-500);
}

.sim-task-row.completed .sim-checkbox i {
    opacity: 1;
    transform: scale(1);
}

.sim-task-row.completed .sim-task-title {
    text-decoration: line-through;
    color: var(--gray-400);
}

.sim-task-title {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--slate-800);
}

.sim-task-assignee {
    font-size: 0.55rem;
    background-color: var(--slate-100);
    color: var(--gray-500);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-top: 0.125rem;
    display: inline-block;
}

.sim-task-pts {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--yellow-600);
    background-color: var(--yellow-50);
    border: 1px solid var(--yellow-100);
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    gap: 0.125rem;
}

.sim-helper-hint {
    font-size: 0.55rem;
    color: var(--gray-400);
    text-align: center;
    font-style: italic;
    margin-top: 0.5rem;
}

/* Groceries Tab Styles */
.sim-add-form {
    display: flex;
    gap: 0.375rem;
    margin-bottom: 0.75rem;
}

.sim-add-input {
    flex-grow: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-200);
    font-size: 0.75rem;
    background-color: white;
}

.sim-add-input:focus {
    outline: none;
    border-color: var(--primary-500);
}

.sim-add-btn {
    width: 2rem;
    height: 2rem;
    border-radius: 0.5rem;
    background-color: var(--primary-600);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

.sim-add-btn:hover {
    background-color: var(--primary-700);
}

.sim-add-btn i {
    width: 1rem;
    height: 1rem;
}

.sim-grocery-group {
    margin-bottom: 0.75rem;
}

.sim-grocery-group-header {
    font-size: 0.625rem;
    font-weight: 800;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.sim-grocery-item {
    background-color: white;
    padding: 0.5rem 0.625rem;
    border-radius: 0.5rem;
    border: 1px solid var(--slate-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--slate-800);
}

.sim-grocery-item-qty {
    font-size: 0.6rem;
    background-color: var(--slate-100);
    color: var(--gray-500);
    padding: 0.05rem 0.25rem;
    border-radius: 0.125rem;
    font-weight: 700;
}

.sim-grocery-item-del {
    color: var(--gray-400);
    transition: color var(--transition-fast);
    padding: 0.125rem;
}

.sim-grocery-item-del:hover {
    color: var(--secondary-500);
}

.sim-grocery-item-del i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Meals Tab Styles */
.sim-meal-row {
    background-color: white;
    border-radius: 0.75rem;
    border: 1px solid var(--slate-100);
    padding: 0.625rem 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0.5rem;
}

.sim-meal-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sim-meal-day-pill {
    width: 1.75rem;
    height: 1.75rem;
    border-radius: 0.375rem;
    background-color: var(--slate-100);
    color: var(--slate-800);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 800;
    text-transform: uppercase;
}

.sim-meal-details {
    text-align: left;
}

.sim-meal-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-800);
}

.sim-meal-type {
    font-size: 0.55rem;
    color: var(--gray-400);
}

.sim-meal-badge {
    font-size: 0.55rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
}

.sim-meal-badge-healthy {
    background-color: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-100);
}

.sim-meal-badge-fun {
    background-color: var(--yellow-50);
    color: var(--yellow-600);
    border: 1px solid var(--yellow-100);
}

.sim-meal-streak-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border-radius: 0.375rem;
    background-color: var(--slate-50);
    color: var(--gray-400);
    border: 1px solid var(--slate-200);
    transition: all var(--transition-fast);
}

.sim-meal-streak-action.active {
    background-color: var(--emerald-500);
    color: white;
    border-color: var(--emerald-500);
}

.sim-meal-streak-action i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Simulator Feedback Toasts */
.sim-toast {
    position: absolute;
    top: 2.5rem;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background-color: var(--slate-900);
    color: white;
    font-size: 0.675rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.375rem;
    z-index: 40;
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.sim-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.sim-toast i {
    width: 0.875rem;
    height: 0.875rem;
}

/* Brand Visual Section */
.brand-visual {
    padding: 5rem 0;
    background-color: var(--slate-900);
    border-bottom: 1px solid var(--slate-950);
}

.brand-visual-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .brand-visual-grid {
        grid-template-columns: repeat(12, minmax(0, 1fr));
        gap: 4rem;
    }
}

.brand-visual-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
}

@media (min-width: 1024px) {
    .brand-visual-content {
        grid-column: span 6;
        text-align: left;
    }
}

.brand-visual-content .section-badge {
    align-self: center;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--primary-100);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

@media (min-width: 1024px) {
    .brand-visual-content .section-badge {
        align-self: flex-start;
    }
}

.brand-visual-content .section-title {
    margin-top: 0.5rem;
    color: white;
}

.brand-visual-content .section-desc {
    margin-top: 0;
    color: var(--gray-400);
}

.brand-visual-image-wrapper {
    position: relative;
    width: 100%;
    border-radius: 1.5rem;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

@media (min-width: 1024px) {
    .brand-visual-image-wrapper {
        grid-column: span 6;
    }
}

.brand-visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1.5rem;
}

/* Bento Grid Features Section */
.features {
    padding: 5rem 0;
    background-color: var(--slate-50);
}

.section-header {
    text-align: center;
    max-width: 48rem;
    margin: 0 auto 4rem;
}

.section-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary-600);
    background-color: var(--primary-50);
    padding: 0.375rem 1rem;
    border-radius: 9999px;
    display: inline-block;
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 900;
    color: var(--slate-900);
    margin-top: 1rem;
    line-height: 1.15;
}

@media (min-width: 640px) {
    .section-title {
        font-size: 2.5rem;
    }
}

.section-desc {
    font-size: 1.125rem;
    color: var(--gray-500);
    margin-top: 1rem;
    font-weight: 500;
    line-height: 1.625;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1024px) {
    .bento-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.bento-card {
    background-color: white;
    border: 1px solid var(--slate-100);
    border-radius: 1.75rem;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
    transition: all var(--transition-normal);
}

.bento-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.bento-card-bg-glow {
    position: absolute;
    right: -1.5rem;
    bottom: -1.5rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    opacity: 0.05;
    transition: transform var(--transition-normal);
}

.bento-card:hover .bento-card-bg-glow {
    transform: scale(1.25);
}

.bento-card-1 .bento-card-bg-glow { background-color: var(--primary-500); }
.bento-card-2 .bento-card-bg-glow { background-color: var(--emerald-500); }
.bento-card-3 .bento-card-bg-glow { background-color: var(--secondary-500); }
.bento-card-4 .bento-card-bg-glow { background-color: var(--accent-500); }
.bento-card-5 .bento-card-bg-glow { background-color: #3b82f6; }
.bento-card-6 .bento-card-bg-glow { background-color: var(--yellow-500); }
.bento-card-7 .bento-card-bg-glow { background-color: #8b5cf6; }
.bento-card-8 .bento-card-bg-glow { background-color: #f97316; }

.bento-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.bento-card-1 .bento-icon-box { background-color: var(--primary-50); color: var(--primary-600); }
.bento-card-2 .bento-icon-box { background-color: var(--emerald-50); color: var(--emerald-600); }
.bento-card-3 .bento-icon-box { background-color: rgba(236, 72, 153, 0.08); color: var(--secondary-500); }
.bento-card-4 .bento-icon-box { background-color: rgba(139, 92, 246, 0.08); color: var(--accent-500); }
.bento-card-5 .bento-icon-box { background-color: rgba(59, 130, 246, 0.08); color: #3b82f6; }
.bento-card-6 .bento-icon-box { background-color: var(--yellow-50); color: var(--yellow-600); }
.bento-card-7 .bento-icon-box { background-color: rgba(139, 92, 246, 0.08); color: #8b5cf6; }
.bento-card-8 .bento-icon-box { background-color: rgba(249, 115, 22, 0.08); color: #f97316; }

.bento-icon-box i {
    width: 1.5rem;
    height: 1.5rem;
}

.bento-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    margin-bottom: 0.5rem;
}

.bento-desc {
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.6;
}

/* Pricing Section */
.pricing {
    padding: 5rem 0;
    background-color: var(--slate-50);
    border-top: 1px solid var(--slate-200);
    border-bottom: 1px solid var(--slate-200);
}

/* Billing Toggle Switcher */
.billing-toggle-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.billing-toggle-box {
    background-color: white;
    padding: 0.375rem;
    border-radius: 9999px;
    border: 1px solid var(--slate-200);
    display: flex;
    box-shadow: var(--shadow-sm);
}

.billing-toggle-btn {
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--gray-500);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.billing-toggle-btn.active {
    background-color: var(--primary-600);
    color: white;
    box-shadow: var(--shadow-sm);
}

.discount-tag {
    background-color: var(--yellow-400);
    color: var(--yellow-900);
    font-size: 0.55rem;
    font-weight: 900;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 56rem;
    margin: 3rem auto 0;
    align-items: stretch;
}

@media (min-width: 768px) {
    .pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.pricing-card {
    background-color: white;
    border: 1px solid var(--slate-200);
    border-radius: 1.75rem;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    transition: all var(--transition-normal);
}

.pricing-card:hover {
    border-color: var(--slate-300);
}

.pricing-card-pro {
    border: 2px solid var(--primary-600);
    box-shadow: var(--shadow-xl);
}

.pricing-card-pro:hover {
    border-color: var(--primary-600);
}

.popular-badge {
    position: absolute;
    top: 0;
    right: 0;
    background-color: var(--primary-600);
    color: white;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 0.375rem 1rem;
    border-bottom-left-radius: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.pricing-header-subtitle {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--gray-400);
}

.pricing-card-pro .pricing-header-subtitle {
    color: var(--primary-500);
}

.pricing-header-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--slate-900);
    margin-top: 0.25rem;
}

.pricing-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
    line-height: 1.5;
}

.price-box {
    display: flex;
    align-items: baseline;
    margin-top: 1.5rem;
}

.price-number {
    font-size: 3rem;
    font-weight: 900;
    color: var(--slate-900);
    letter-spacing: -0.03em;
    transition: opacity 0.15s ease-out;
}

.price-period {
    color: var(--gray-500);
    font-weight: 700;
    font-size: 0.875rem;
    margin-left: 0.5rem;
}

.pricing-features-list {
    margin-top: 2rem;
    border-top: 1px solid var(--slate-100);
    padding-top: 1.5rem;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.pricing-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
}

.pricing-features-list li.pro-highlight {
    font-weight: 700;
    color: var(--gray-800);
}

.pricing-features-list li.disabled {
    color: var(--slate-200);
    text-decoration: line-through;
}

.pricing-features-list li i {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.pricing-features-list li .icon-check { color: var(--emerald-500); }
.pricing-features-list li .icon-cross { color: var(--slate-200); }

.pricing-cta-box {
    margin-top: 2.5rem;
}

.pricing-cta-btn {
    width: 100%;
    padding: 0.875rem;
    border-radius: 0.875rem;
    text-align: center;
    font-weight: 800;
    box-shadow: var(--shadow-sm);
    display: block;
    transition: all var(--transition-fast);
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background-color: white;
}

.faq-list {
    max-width: 48rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background-color: var(--slate-50);
    border: 1px solid var(--slate-100);
    border-radius: 1rem;
    overflow: hidden;
    transition: border-color var(--transition-fast);
}

.faq-item:hover {
    border-color: var(--slate-200);
}

.faq-toggle {
    width: 100%;
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-weight: 700;
    font-size: 1rem;
    text-align: left;
    color: var(--slate-900);
    transition: color var(--transition-fast);
}

.faq-toggle:hover {
    color: var(--primary-600);
}

.faq-toggle i {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--gray-400);
    transition: transform var(--transition-normal);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    padding: 0 1.5rem;
    opacity: 0;
    font-size: 0.875rem;
    color: var(--gray-600);
    font-weight: 500;
    line-height: 1.6;
    transition: max-height var(--transition-normal) ease-out, padding var(--transition-normal) ease-out, opacity var(--transition-normal) ease-out;
}

.faq-item.open .faq-toggle {
    color: var(--primary-600);
}

.faq-item.open .faq-toggle i {
    transform: rotate(180deg);
}

.faq-item.open .faq-content {
    max-height: 200px;
    padding: 0 1.5rem 1.5rem;
    opacity: 1;
}

/* Call To Action Section (Pre-Footer) */
.cta-banner {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-600) 0%, #4338ca 50%, var(--accent-500) 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-grid-bg {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    opacity: 0.3;
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 10;
    max-width: 42rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.cta-title {
    font-family: var(--font-display);
    font-size: 2.25rem;
    font-weight: 900;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

@media (min-width: 640px) {
    .cta-title {
        font-size: 3rem;
    }
}

.cta-desc {
    font-size: 1.125rem;
    color: var(--primary-50);
    font-weight: 500;
    line-height: 1.6;
}

.cta-btn-wrapper {
    margin-top: 1rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.cta-btn {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 800;
    background-color: white;
    color: var(--primary-600);
    border-radius: 1rem;
    box-shadow: var(--shadow-xl);
}

.cta-btn:hover {
    background-color: var(--primary-50);
    transform: scale(1.03);
}

/* Footer Section */
footer {
    background-color: var(--slate-950);
    color: var(--gray-400);
    padding: 3rem 0;
    border-top: 1px solid var(--slate-900);
}

.footer-top {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--slate-900);
    padding-bottom: 2rem;
    margin-bottom: 2rem;
}

@media (min-width: 768px) {
    .footer-top {
        flex-direction: row;
    }
}

.footer-logo-box {
    width: 2.5rem;
    height: 2.5rem;
    background-color: var(--primary-600);
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.footer-logo-text {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: white;
    letter-spacing: -0.02em;
}

.footer-compliance {
    font-size: 0.875rem;
    font-weight: 500;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

@media (min-width: 640px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    font-weight: 600;
}

.footer-links a {
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

/* Animations Definitions */
@keyframes simPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(79, 70, 229, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0);
    }
}
