/*
 * myFinancialTracker — Homepage Styles
 * Modern, design-forward aesthetic with bento grids, glassmorphism, and smooth animations.
 * Mobile-first responsive. Uses existing design tokens from styles.css.
 */

/* Override desktop overflow:hidden from styles.css to allow scrolling on the homepage */
@media (min-width: 769px) {
    html.home-page,
    html.home-page body {
        overflow: auto !important;
    }
}

/* ============================================================
   SECTION CONTAINERS
   ============================================================ */

.section-container {
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--md-sys-typescale-label-large-font, 'Roboto', sans-serif);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--md-sys-color-secondary, #00a651);
    background: color-mix(in srgb, var(--md-sys-color-secondary, #00a651) 10%, transparent);
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}

.section-header h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--md-sys-color-primary, #203448) 0%, var(--md-sys-color-secondary, #00a651) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ============================================================
   HERO SECTION
   ============================================================ */

.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: calc(var(--header-height, 64px) + 2rem) 0 4rem;
    background: linear-gradient(165deg,
        var(--md-sys-color-surface-container-lowest, #ffffff) 0%,
        var(--md-sys-color-surface-container-low, #f7f9fc) 35%,
        color-mix(in srgb, var(--md-sys-color-primary-container, #e0f7fa) 60%, var(--md-sys-color-surface-container-low, #f7f9fc)) 100%);
}

/* Background orbs */
.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: orbFloat 20s ease-in-out infinite;
}

.hero-orb--1 {
    width: 600px;
    height: 600px;
    top: -20%;
    right: -15%;
    background: radial-gradient(circle, color-mix(in srgb, var(--md-sys-color-primary, #203448) 20%, transparent) 0%, transparent 70%);
    animation-delay: 0s;
}

.hero-orb--2 {
    width: 450px;
    height: 450px;
    bottom: -10%;
    left: -10%;
    background: radial-gradient(circle, color-mix(in srgb, var(--md-sys-color-secondary, #00a651) 15%, transparent) 0%, transparent 70%);
    animation-delay: -7s;
    animation-duration: 18s;
}

.hero-orb--3 {
    width: 350px;
    height: 350px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle, color-mix(in srgb, var(--md-sys-color-tertiary, #FF8C00) 10%, transparent) 0%, transparent 70%);
    animation-delay: -14s;
    animation-duration: 22s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -40px) scale(1.08); }
    66% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Subtle grid overlay */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(32, 52, 72, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(32, 52, 72, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 1;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    width: 100%;
    max-width: var(--container-width, 1200px);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero-text {
    animation: fadeInUp 0.8s cubic-bezier(0, 0, 0.2, 1) both;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: color-mix(in srgb, var(--md-sys-color-primary, #203448) 8%, transparent);
    border: 1px solid color-mix(in srgb, var(--md-sys-color-primary, #203448) 15%, transparent);
    color: var(--md-sys-color-primary, #203448);
    padding: 0.4rem 1rem;
    border-radius: 100px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--md-sys-color-secondary, #00a651);
    display: inline-block;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5.5vw, 4.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.25rem;
    background: linear-gradient(135deg,
        var(--md-sys-color-on-surface, #1a1c1e) 0%,
        var(--md-sys-color-primary, #203448) 70%,
        var(--md-sys-color-secondary, #00a651) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-highlight {
    background: linear-gradient(135deg,
        var(--md-sys-color-primary, #203448) 0%,
        var(--md-sys-color-secondary, #00a651) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.15rem;
    line-height: 1.65;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    max-width: 500px;
    margin-bottom: 2rem;
}

/* CTA Buttons (enhanced) */
.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.btn--lg {
    padding: 0.9rem 2.2rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    min-height: 50px;
}

.btn--full {
    width: 100%;
    justify-content: center;
}

.btn.primary .fa-arrow-right {
    margin-left: 0.5rem;
    transition: transform var(--md-motion-duration-short4, 150ms) var(--md-motion-easing-standard, cubic-bezier(0.2, 0, 0, 1));
}

.btn.primary:hover .fa-arrow-right {
    transform: translateX(4px);
}

.btn.primary .fa-play {
    margin-right: 0.4rem;
}

/* Trust indicators */
.hero-trust {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    padding-top: 0.5rem;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    font-weight: 500;
}

.trust-item i {
    color: var(--md-sys-color-secondary, #00a651);
    font-size: 0.9rem;
}

.trust-item span {
    color: var(--md-sys-color-secondary, #00a651);
    font-weight: 700;
}

/* Hero Visual — Phone Mockup + Floating Cards */
.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeInRight 1s cubic-bezier(0, 0, 0.2, 1) 0.2s both;
}

@keyframes fadeInRight {
    from { opacity: 0; transform: translateX(40px); }
    to { opacity: 1; transform: translateX(0); }
}

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

/* Phone mockup */
.hero-phone-mockup {
    position: relative;
    z-index: 2;
}

.phone-frame {
    width: 280px;
    height: 560px;
    background: #0f172a;
    border-radius: 40px;
    padding: 12px;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.15),
        0 0 0 3px #1e293b,
        0 0 0 6px rgba(15, 23, 42, 0.3);
    position: relative;
    overflow: hidden;
}

.phone-notch {
    width: 100px;
    height: 30px;
    background: #0f172a;
    border-radius: 0 0 20px 20px;
    margin: 0 auto;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, #1a1f2e 0%, #0f172a 100%);
    border-radius: 30px;
    overflow: hidden;
    padding: 1rem;
    display: flex;
    flex-direction: column;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e2e8f0;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.5rem 0.5rem 1rem;
    opacity: 0.7;
}

.screen-icons {
    display: flex;
    gap: 0.3rem;
    font-size: 0.6rem;
}

.mock-balance {
    text-align: center;
    margin-bottom: 1.2rem;
}

.mock-label {
    display: block;
    font-size: 0.7rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.mock-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: #f1f5f9;
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 0.5rem;
}

.mock-change {
    font-size: 0.75rem;
    padding: 0.15rem 0.5rem;
    border-radius: 100px;
    font-weight: 600;
}

.mock-change.up {
    color: #4ade80;
    background: rgba(74, 222, 128, 0.15);
}

/* Mini chart */
.mock-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 80px;
    padding: 0 0.25rem;
    margin-bottom: 1.2rem;
}

.chart-bar {
    flex: 1;
    height: var(--h);
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.6), rgba(99, 102, 241, 0.15));
    border-radius: 4px 4px 0 0;
    transition: height 0.6s ease;
    position: relative;
}

.chart-bar.active {
    background: linear-gradient(180deg, #6366f1, rgba(99, 102, 241, 0.3));
}

/* Mock transactions */
.mock-transactions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.mock-txn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.6rem 0.7rem;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    transition: background 0.2s;
}

.mock-txn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.txn-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    flex-shrink: 0;
}

.txn-food { background: rgba(251, 146, 60, 0.2); color: #fb923c; }
.txn-income { background: rgba(74, 222, 128, 0.2); color: #4ade80; }
.txn-transport { background: rgba(96, 165, 250, 0.2); color: #60a5fa; }

.txn-info {
    flex: 1;
    min-width: 0;
}

.txn-name {
    display: block;
    font-size: 0.75rem;
    color: #e2e8f0;
    font-weight: 500;
}

.txn-cat {
    display: block;
    font-size: 0.65rem;
    color: #64748b;
}

.txn-amount {
    font-size: 0.78rem;
    font-weight: 600;
    flex-shrink: 0;
}

.txn-amount.out { color: #f87171; }
.txn-amount.in { color: #4ade80; }

.phone-glow {
    position: absolute;
    inset: -30px;
    border-radius: 50px;
    background: radial-gradient(ellipse at center,
        color-mix(in srgb, var(--md-sys-color-primary, #203448) 15%, transparent) 0%,
        transparent 70%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

/* Floating cards */
.float-card {
    position: absolute;
    background: var(--md-sys-color-surface, #ffffff);
    border-radius: 14px;
    padding: 0.8rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
    animation: floatCard 6s ease-in-out infinite;
}

.float-card--1 {
    top: 8%;
    left: -5%;
    animation-delay: 0s;
}

.float-card--2 {
    bottom: 15%;
    right: -8%;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.fc-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--md-sys-color-primary, #203448) 12%, transparent);
    color: var(--md-sys-color-primary, #203448);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.fc-green {
    background: color-mix(in srgb, var(--md-sys-color-secondary, #00a651) 12%, transparent);
    color: var(--md-sys-color-secondary, #00a651);
}

.fc-value {
    display: block;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.fc-label {
    display: block;
    font-size: 0.72rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
}

/* ============================================================
   TRUSTED BY SECTION
   ============================================================ */

.trusted-section {
    padding: 3.5rem 0;
    background: var(--md-sys-color-surface-container-low, #f7f9fc);
    border-top: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-bottom: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
}

.trusted-label {
    text-align: center;
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    font-weight: 500;
    margin-bottom: 2rem;
    letter-spacing: 0.02em;
}

.trusted-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.trusted-stat {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--md-sys-color-secondary, #00a651);
}

.stat-desc {
    display: block;
    font-size: 0.8rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    margin-top: 0.3rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: var(--md-sys-color-outline-variant, #c1c7ce);
    opacity: 0.5;
}

/* ============================================================
   FEATURES BENTO GRID
   ============================================================ */

.features-section {
    padding: 5rem 0;
    background: var(--md-sys-color-surface, #ffffff);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: auto;
    gap: 1.25rem;
}

/* Bento card base */
.bento-card {
    position: relative;
    background: var(--md-sys-color-surface-container-low, #f7f9fc);
    border: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-radius: 20px;
    padding: 1.75rem;
    overflow: hidden;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    cursor: default;
}

.bento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.03);
    border-color: color-mix(in srgb, var(--md-sys-color-primary, #203448) 20%, transparent);
}

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

/* Subtle gradient glow on hover */
.bento-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center,
        color-mix(in srgb, var(--md-sys-color-primary, #203448) 4%, transparent) 0%,
        transparent 60%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

/* Bento icon */
.bento-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    flex-shrink: 0;
}

.bento-icon--purple { background: rgba(139, 92, 246, 0.12); color: #8b5cf6; }
.bento-icon--green  { background: rgba(34, 197, 94, 0.12); color: #22c55e; }
.bento-icon--blue   { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.bento-icon--orange { background: rgba(249, 115, 22, 0.12); color: #f97316; }
.bento-icon--teal   { background: rgba(20, 184, 166, 0.12); color: #14b8a6; }
.bento-icon--red    { background: rgba(239, 68, 68, 0.12); color: #ef4444; }

.bento-title {
    font-size: 1.15rem;
    font-weight: 650;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    margin-bottom: 0.5rem;
    margin-top: 0;
    letter-spacing: -0.01em;
}

.bento-desc {
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    flex: 1;
}

/* Pill group for tags */
.bento-pill-group {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.bento-pill {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.3rem 0.7rem;
    border-radius: 100px;
    background: color-mix(in srgb, var(--md-sys-color-primary, #203448) 6%, transparent);
    color: var(--md-sys-color-primary, #203448);
    letter-spacing: 0.01em;
}

/* Bento size variants */
.bento-card--lg {
    grid-column: span 2;
    grid-row: span 1;
}

.bento-card--tall {
    grid-row: span 2;
}

/* Mini report visual */
.bento-visual {
    margin-top: 1rem;
    padding-top: 0.5rem;
}

.mini-report {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mini-bar {
    height: 8px;
    width: var(--w);
    background: linear-gradient(90deg, var(--md-sys-color-primary, #203448), color-mix(in srgb, var(--md-sys-color-primary, #203448) 40%, transparent));
    border-radius: 100px;
    position: relative;
    transition: width 0.6s ease;
}

.mini-bar span {
    position: absolute;
    right: -48px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.68rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    font-weight: 500;
}

/* ============================================================
   AI COACH DEEP DIVE
   ============================================================ */

.coach-section {
    padding: 5rem 0;
    background: linear-gradient(180deg,
        var(--md-sys-color-surface-container-low, #f7f9fc) 0%,
        color-mix(in srgb, #8b5cf6 3%, var(--md-sys-color-surface-container-lowest)) 50%,
        color-mix(in srgb, #8b5cf6 1%, var(--md-sys-color-surface-container-lowest)) 100%);
    position: relative;
    border-top: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-bottom: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
}

.coach-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.coach-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Glass card for coach chat */
.coach-card-glass {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 24px;
    padding: 1.75rem;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0, 0, 0, 0.03);
    max-width: 380px;
    width: 100%;
}

.coach-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
    position: relative;
}

.coach-avatar-ring {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    animation: pulse 2.5s ease-in-out infinite;
}

.coach-message {
    margin-bottom: 1rem;
}

.coach-message p {
    font-size: 0.92rem;
    line-height: 1.6;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    margin-bottom: 0.4rem;
    font-style: italic;
}

.coach-time {
    font-size: 0.72rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    opacity: 0.7;
}

.coach-actions {
    display: flex;
    gap: 0.6rem;
}

.coach-action-btn {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    background: linear-gradient(135deg, #8b5cf6, #6366f1);
    color: white;
    cursor: pointer;
    transition: transform 0.2s;
}

.coach-action-btn:hover {
    transform: scale(1.03);
}

.coach-action-btn--ghost {
    background: transparent;
    border: 1px solid var(--md-sys-color-outline-variant, #c1c7ce);
    color: var(--md-sys-color-on-surface-variant, #42474e);
}

.coach-glow {
    position: absolute;
    inset: -40px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.08) 0%, transparent 70%);
    z-index: -1;
    animation: pulse 4s ease-in-out infinite;
}

.coach-text {
    /* Handled in split */
}

.coach-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--md-sys-color-on-surface, #1a1c1e) 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.coach-text .section-subtitle {
    margin-left: 0;
    margin-bottom: 1.5rem;
}

/* Coach feature list */
.coach-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.coach-features li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.coach-features li i {
    color: var(--md-sys-color-secondary, #00a651);
    font-size: 1.15rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.coach-features li div {
    display: flex;
    flex-direction: column;
}

.coach-features li strong {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.coach-features li span {
    font-size: 0.85rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    line-height: 1.4;
}

/* ============================================================
   FAMILY SHARING SECTION
   ============================================================ */

.family-section {
    padding: 5rem 0;
    background: linear-gradient(180deg,
        var(--md-sys-color-surface-container-low, #f7f9fc) 0%,
        var(--md-sys-color-surface, #ffffff) 100%);
}

.family-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.family-text h2 {
    font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--md-sys-color-primary, #203448) 0%, var(--md-sys-color-secondary, #00a651) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-top: 0.5rem;
}

.family-text .section-subtitle {
    margin-left: 0;
}

.family-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.family-features li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.92rem;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.family-check {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--md-sys-color-secondary, #00a651) 10%, transparent);
    color: var(--md-sys-color-secondary, #00a651);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 0.85rem;
}

/* Family cards visual */
.family-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.family-cards {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    width: 100%;
    max-width: 340px;
}

.family-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.9rem 1rem;
    background: var(--md-sys-color-surface, #ffffff);
    border: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-radius: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    transition: all 0.25s ease;
}

.family-card:hover {
    transform: translateX(4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06);
}

.fam-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--md-sys-color-primary, #203448), color-mix(in srgb, var(--md-sys-color-primary, #203448) 60%, #6366f1));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    flex-shrink: 0;
}

.fam-avatar--kid {
    background: linear-gradient(135deg, #f97316, #fb923c);
}

.fam-avatar--add {
    background: var(--md-sys-color-surface-container-highest, #e5e7eb);
    color: var(--md-sys-color-on-surface-variant, #42474e);
    font-size: 0.75rem;
    border: 2px dashed var(--md-sys-color-outline-variant, #c1c7ce);
}

.fam-info {
    flex: 1;
    min-width: 0;
}

.fam-info strong {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.fam-info span {
    display: block;
    font-size: 0.75rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    margin-top: 0.15rem;
}

.fam-status {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--md-sys-color-outline-variant, #c1c7ce);
    flex-shrink: 0;
}

.fam-status.online {
    background: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.15);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */

.testimonial-section {
    padding: 5rem 0;
    background: var(--md-sys-color-surface, #ffffff);
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.testimonial-card {
    background: var(--md-sys-color-surface-container-low, #f7f9fc);
    border: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-radius: 20px;
    padding: 1.75rem;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 0.85rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.testimonial-card p {
    font-size: 0.92rem;
    line-height: 1.65;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    font-style: italic;
    margin-bottom: 1.25rem;
}

.testimonial-card footer {
    border-top: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    padding-top: 1rem;
    background: none;
}

.testimonial-card cite {
    font-style: normal;
}

.testimonial-card cite strong {
    display: block;
    font-size: 0.88rem;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.testimonial-card cite span {
    display: block;
    font-size: 0.78rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    margin-top: 0.15rem;
}

/* ============================================================
   PRICING SNAPSHOT
   ============================================================ */

.pricing-snapshot-section {
    padding: 5rem 0;
    background: var(--md-sys-color-surface-container-low, #f7f9fc);
}

.pricing-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--md-sys-color-surface, #ffffff);
    border: 1px solid var(--md-sys-color-surface-container-highest, #e5e7eb);
    border-radius: 24px;
    padding: 2rem 1.75rem;
    text-align: center;
    transition: all 0.35s cubic-bezier(0.2, 0, 0, 1);
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.06);
}

.pricing-card--featured {
    background: linear-gradient(180deg,
        var(--md-sys-color-surface, #ffffff) 0%,
        color-mix(in srgb, var(--md-sys-color-primary, #203448) 3%, var(--md-sys-color-surface, #ffffff)) 100%);
    border: 2px solid var(--md-sys-color-primary, #203448);
    box-shadow: 0 8px 30px rgba(32, 52, 72, 0.08);
    transform: scale(1.03);
}

.pricing-card--featured:hover {
    transform: scale(1.03) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--md-sys-color-primary, #203448);
    color: white;
    padding: 0.35rem 1.2rem;
    border-radius: 100px;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0.5rem 0 0.75rem;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.pricing-price {
    margin-bottom: 0.1rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    letter-spacing: -0.02em;
}

.price-period {
    font-size: 0.9rem;
    color: var(--md-sys-color-on-surface-variant, #42474e);
    font-weight: 500;
}

.pricing-yearly {
    font-size: 0.95rem;
    color: var(--md-sys-color-on-surface, #1a1c1e);
    margin-top: 0.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: 1.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--md-sys-color-on-surface, #1a1c1e);
}

.pricing-features li i {
    color: var(--md-sys-color-secondary, #00a651);
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-card .btn {
    margin-top: auto;
}

/* ============================================================
   FINAL CTA
   ============================================================ */

.cta-section {
    padding: 5rem 0;
    background: var(--md-sys-color-surface, #ffffff);
}

.cta-card {
    position: relative;
    background: linear-gradient(135deg,
        var(--md-sys-color-primary, #203448) 0%,
        color-mix(in srgb, var(--md-sys-color-primary, #203448) 80%, #0f172a) 100%);
    border-radius: 32px;
    padding: 4rem 3rem;
    text-align: center;
    overflow: hidden;
    color: white;
}

.cta-card-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 80%, rgba(139, 92, 246, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(34, 197, 94, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    color: white;
    position: relative;
    z-index: 1;

}

.cta-card p {
    font-size: 1.05rem;
    line-height: 1.65;
    color: rgba(255, 255, 255, 0.8);
    max-width: 550px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.cta-card .cta-buttons {
    justify-content: center;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-card .btn.primary {
    background: white;
    color: var(--md-sys-color-primary, #203448);
}

.cta-card .btn.primary:hover {
    background: var(--md-sys-color-secondary, #00a651);
    color: white;
    box-shadow: 0 8px 30px rgba(0, 166, 81, 0.3);
}

.cta-trust {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    position: relative;
    z-index: 1;
}

.cta-trust span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.cta-trust i {
    font-size: 0.75rem;
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s cubic-bezier(0.2, 0, 0, 1),
                transform 0.7s cubic-bezier(0.2, 0, 0, 1);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ============================================================
   RESPONSIVE: TABLET (max-width: 1024px)
   ============================================================ */

@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2.5rem;
    }

    .hero-text {
        order: 1;
        text-align: center;
    }

    .hero-visual {
        order: 0;
        max-width: 480px;
        margin: 0 auto;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

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

    .cta-buttons {
        justify-content: center;
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-card--lg {
        grid-column: span 2;
    }

    .bento-card--tall {
        grid-row: span 1;
        grid-column: span 2;
    }

    .coach-split,
    .family-split {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .coach-visual {
        order: -1;
    }

    .coach-text {
        text-align: center;
    }

    .coach-text .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .coach-features li {
        justify-content: flex-start;
        text-align: left;
    }

    .coach-text .btn {
        margin: 0 auto;
        display: inline-flex;
    }

    .family-text {
        text-align: center;
    }

    .family-text .section-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .family-features {
        align-items: flex-start;
    }

    .testimonial-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .pricing-cards {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
        gap: 2rem;
    }

    .pricing-card--featured {
        transform: none;
    }

    .pricing-card--featured:hover {
        transform: translateY(-4px);
    }

    .trusted-stats {
        gap: 1.5rem;
    }

    .stat-divider {
        display: none;
    }

    .float-card--1 {
        left: -10%;
    }

    .float-card--2 {
        right: -10%;
    }
}

/* ============================================================
   RESPONSIVE: MOBILE (max-width: 768px)
   ============================================================ */

@media (max-width: 768px) {
    .hero-section {
        padding-top: calc(var(--header-height, 64px) + 1rem);
        padding-bottom: 2rem;
        min-height: auto;
    }

    .hero-container {
        padding: 0 1rem;
    }

    .hero-text h1 {
        font-size: clamp(2rem, 8vw, 2.5rem);
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .phone-frame {
        width: 220px;
        height: 440px;
    }

    .float-card {
        padding: 0.6rem 0.8rem;
        gap: 0.4rem;
    }

    .float-card--1 {
        top: 2%;
        left: 0%;
    }

    .float-card--2 {
        bottom: 8%;
        right: -2%;
    }

    .fc-value { font-size: 0.78rem; }
    .fc-label { font-size: 0.65rem; }

    .section-container {
        padding: 0 1rem;
    }

    .section-header {
        margin-bottom: 2rem;
    }

    .bento-grid {
        grid-template-columns: 1fr;
    }

    .bento-card--lg,
    .bento-card--tall {
        grid-column: span 1;
        grid-row: span 1;
    }

    .trusted-stats {
        flex-direction: column;
        gap: 1.25rem;
    }

    .stat-divider {
        width: 48px;
        height: 1px;
    }

    .testimonial-grid {
        max-width: 100%;
    }

    .coach-card-glass {
        max-width: 100%;
    }

    .family-cards {
        max-width: 100%;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
        border-radius: 24px;
    }

    .cta-card h2 {
        font-size: 1.6rem;
    }

    .cta-trust {
        gap: 1rem;
    }

    .hero-trust {
        gap: 1rem;
    }

    .trust-item {
        font-size: 0.78rem;
    }

    .coach-card-glass {
        padding: 1.25rem;
    }

    .coach-message p {
        font-size: 0.85rem;
    }
}

/* ============================================================
   RESPONSIVE: SMALL MOBILE (max-width: 480px)
   ============================================================ */

@media (max-width: 480px) {
    .hero-text h1 {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
    }

    .cta-buttons .btn--lg {
        width: 100%;
        justify-content: center;
    }

    .phone-frame {
        width: 180px;
        height: 360px;
        border-radius: 30px;
    }

    .phone-screen {
        border-radius: 22px;
        padding: 0.6rem;
    }

    .mock-value {
        font-size: 1.3rem;
    }

    .mock-chart {
        height: 60px;
        gap: 4px;
    }

    .mock-txn {
        padding: 0.45rem 0.5rem;
        gap: 0.4rem;
    }

    .txn-icon {
        width: 28px;
        height: 28px;
        border-radius: 8px;
        font-size: 0.6rem;
    }

    .txn-name { font-size: 0.68rem; }
    .txn-cat { font-size: 0.6rem; }
    .txn-amount { font-size: 0.7rem; }

    .float-card {
        display: none;
    }

    .pricing-cards {
        max-width: 100%;
    }

    .cta-trust {
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
    }

    .section-eyebrow {
        font-size: 0.72rem;
    }

    .bento-card {
        padding: 1.25rem;
    }
}
