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

:root {
    /* StoryBuddy Primary Brand Colors */
    --primary-color: #10A6D0;
    --primary-bg: #128ED0;
    --screen-bg: #F9FAFB;

    /* Semantic Colors */
    --success: #10B981;
    --success-light: #D1FAE5;
    --error: #EF4444;
    --error-light: #FEE2E2;
    --warning: #F59E0B;
    --warning-light: #FEF3C7;
    --info: #3B82F6;
    --info-light: #DBEAFE;

    /* Subscription Plan Colors */
    --plan-free-start: #6B7280;
    --plan-free-end: #9CA3AF;
    --plan-basic-start: #10B981;
    --plan-basic-end: #34D399;
    --plan-premium-start: #F59E0B;
    --plan-premium-end: #FBBF24;
    --plan-deluxe-start: #8B5CF6;
    --plan-deluxe-end: #A78BFA;

    /* Achievement Rarity Colors */
    --rarity-common-start: #6B7280;
    --rarity-common-end: #9CA3AF;
    --rarity-rare-start: #3B82F6;
    --rarity-rare-end: #60A5FA;
    --rarity-epic-start: #8B5CF6;
    --rarity-epic-end: #A78BFA;
    --rarity-legendary-start: #F59E0B;
    --rarity-legendary-end: #FBBF24;

    /* Grayscale (Text & UI) */
    --text-primary: #1F2937;
    --text-secondary: #6B7280;
    --text-tertiary: #9CA3AF;
    --border-color: #E5E7EB;
    --bg-white: #FFFFFF;
    --bg-gray-50: #F9FAFB;
    --bg-gray-100: #F3F4F6;

    /* Shadows */
    --shadow: 0 10px 15px -3px rgba(16, 166, 208, 0.1), 0 4px 6px -2px rgba(16, 166, 208, 0.05);
    --shadow-lg: 0 20px 25px -5px rgba(16, 166, 208, 0.15), 0 10px 10px -5px rgba(16, 166, 208, 0.08);
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-white);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Improve touch targets for mobile */
@media (hover: none) and (pointer: coarse) {
    .btn,
    .nav-links a,
    .footer-links a,
    button,
    input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
    }
}

/* Navigation */
.navbar {
    background: var(--bg-white);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 5rem;
    width: auto;
    max-width: 400px;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

/* Toast Notification */
.toast-container {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    align-items: center;
}

.toast {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    pointer-events: auto;
    animation: fadeInScale 0.3s ease-out;
    transform-origin: center;
    border-left: 4px solid;
}

.toast.success {
    border-left-color: #10B981;
}

.toast.error {
    border-left-color: #EF4444;
}

.toast-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.toast.success .toast-icon {
    background: #D1FAE5;
    color: #10B981;
}

.toast.error .toast-icon {
    background: #FEE2E2;
    color: #EF4444;
}

.toast-content {
    flex: 1;
}

.toast-title {
    font-weight: 600;
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
    color: #1f2937;
}

.toast-message {
    font-size: 0.875rem;
    color: #6b7280;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.toast-close:hover {
    background: #f3f4f6;
    color: #4b5563;
}

.toast.removing {
    animation: fadeOutScale 0.3s ease-out forwards;
}

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

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

/* Mobile adjustments for toast */
@media (max-width: 480px) {
    .toast-container {
        width: calc(100% - 20px);
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
    }

    .toast {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger-line {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(7px, 7px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -7px);
}

/* Hero Section */
.hero {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-bg) 100%);
    color: white;
}

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

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    line-height: 1.8;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: #1f2937;
    color: white;
    border: 2px solid #1f2937;
}

.btn-primary:hover {
    background: #111827;
    border-color: #111827;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: #1f2937;
    color: white;
}

.btn-secondary:hover {
    background: #111827;
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.app-store-btn,
.google-play-btn {
    min-width: 160px;
}

.app-icon {
    width: 32px;
    height: 32px;
}

.btn span {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.btn small {
    font-size: 0.7rem;
    font-weight: 400;
    opacity: 0.9;
}

.btn strong {
    font-size: 1rem;
}

/* Phone Mockup */
.phone-mockup {
    width: 300px;
    height: 600px;
    background: #1f2937;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    margin: 0 auto;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 30px;
}

/* Features Section */
.features {
    padding: 100px 0;
    background: var(--bg-gray-50);
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

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

.feature-card {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-bg));
}

.feature-card:nth-child(1)::before {
    background: linear-gradient(90deg, var(--plan-basic-start), var(--plan-basic-end));
}

.feature-card:nth-child(2)::before {
    background: linear-gradient(90deg, var(--rarity-rare-start), var(--rarity-rare-end));
}

.feature-card:nth-child(3)::before {
    background: linear-gradient(90deg, var(--plan-premium-start), var(--plan-premium-end));
}

.feature-card:nth-child(4)::before {
    background: linear-gradient(90deg, var(--plan-deluxe-start), var(--plan-deluxe-end));
}

.feature-card:nth-child(5)::before {
    background: linear-gradient(90deg, var(--success), var(--plan-basic-end));
}

.feature-card:nth-child(6)::before {
    background: linear-gradient(90deg, var(--rarity-legendary-start), var(--rarity-legendary-end));
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* About Section */
.about {
    padding: 100px 0;
    background: var(--bg-white);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

.stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat {
    padding: 1.5rem;
    background: var(--bg-gray-50);
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
}

.stat:nth-child(1)::before {
    background: linear-gradient(90deg, var(--plan-premium-start), var(--plan-premium-end));
}

.stat:nth-child(2)::before {
    background: linear-gradient(90deg, var(--plan-deluxe-start), var(--plan-deluxe-end));
}

.stat:nth-child(3)::before {
    background: linear-gradient(90deg, var(--plan-basic-start), var(--plan-basic-end));
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* Pricing Section */
.pricing {
    padding: 100px 0;
    background: var(--bg-white);
}

.pricing .container {
    max-width: 1400px;
}

.pricing-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.pricing-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

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

.pricing-card-popular {
    border: 3px solid var(--plan-premium-start);
}

.pricing-card-best {
    border: 3px solid var(--plan-deluxe-start);
}

.popular-badge {
    position: absolute;
    top: 16px;
    right: -35px;
    background: linear-gradient(135deg, var(--plan-premium-start), var(--plan-premium-end));
    color: white;
    padding: 6px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.pricing-card-best .popular-badge {
    background: linear-gradient(135deg, var(--plan-deluxe-start), var(--plan-deluxe-end));
}

.plan-header {
    padding: 2rem;
    color: white;
    text-align: center;
}

.plan-free {
    background: linear-gradient(135deg, var(--plan-free-start), var(--plan-free-end));
}

.plan-basic {
    background: linear-gradient(135deg, var(--plan-basic-start), var(--plan-basic-end));
}

.plan-premium {
    background: linear-gradient(135deg, var(--plan-premium-start), var(--plan-premium-end));
}

.plan-deluxe {
    background: linear-gradient(135deg, var(--plan-deluxe-start), var(--plan-deluxe-end));
}

.plan-name {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.plan-price {
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
}

.price-period {
    font-size: 1rem;
    opacity: 0.9;
}

.plan-tagline {
    font-size: 0.9375rem;
    opacity: 0.95;
    font-weight: 500;
}

.plan-body {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.plan-features {
    list-style: none;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.plan-features li {
    padding: 0.75rem 0;
    color: var(--text-primary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
}

.plan-features li:last-child {
    border-bottom: none;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
    margin-right: 0.75rem;
    font-size: 1.125rem;
}

.plan-features li strong {
    color: var(--primary-color);
    margin-right: 0.25rem;
}

.plan-cta {
    width: 100%;
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.plan-cta-free {
    background: linear-gradient(135deg, var(--plan-free-start), var(--plan-free-end));
}

.plan-cta-free:hover {
    background: linear-gradient(135deg, var(--plan-free-end), var(--plan-free-start));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(107, 114, 128, 0.3);
}

.plan-cta-basic {
    background: linear-gradient(135deg, var(--plan-basic-start), var(--plan-basic-end));
}

.plan-cta-basic:hover {
    background: linear-gradient(135deg, var(--plan-basic-end), var(--plan-basic-start));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.3);
}

.plan-cta-premium {
    background: linear-gradient(135deg, var(--plan-premium-start), var(--plan-premium-end));
}

.plan-cta-premium:hover {
    background: linear-gradient(135deg, var(--plan-premium-end), var(--plan-premium-start));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(245, 158, 11, 0.3);
}

.plan-cta-deluxe {
    background: linear-gradient(135deg, var(--plan-deluxe-start), var(--plan-deluxe-end));
}

.plan-cta-deluxe:hover {
    background: linear-gradient(135deg, var(--plan-deluxe-end), var(--plan-deluxe-start));
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(139, 92, 246, 0.3);
}

.pricing-note {
    text-align: center;
    margin-top: 2rem;
    padding: 1.5rem;
    background: var(--bg-gray-50);
    border-radius: 12px;
}

.pricing-note p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}


/* Contact Section */
.contact {
    padding: 100px 0;
    background: var(--bg-gray-50);
}

.contact-subtitle {
    text-align: center;
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: start;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-card {
    background: var(--bg-white);
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.info-icon {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.info-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: var(--bg-white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 166, 208, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.btn-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-bg));
    color: white;
    padding: 14px 24px;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: linear-gradient(135deg, var(--primary-bg), var(--primary-color));
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(16, 166, 208, 0.3);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background: var(--bg-white);
}

.newsletter-content {
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.newsletter-text {
    margin-bottom: 2rem;
}

.newsletter-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin-top: 0.5rem;
    line-height: 1.6;
}

.newsletter-form {
    width: 100%;
}

.newsletter-input-group {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
    align-items: stretch;
}

.newsletter-input-group input[type="email"] {
    flex: 1;
    padding: 1rem 1.5rem;
    border: 2px solid #e5e7eb;
    border-radius: 50px;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

.newsletter-input-group input[type="email"]:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(16, 166, 208, 0.1);
}

.newsletter-input-group input[type="email"]::placeholder {
    color: #9ca3af;
}

.newsletter-btn {
    padding: 1rem 2rem;
    white-space: nowrap;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
}

.newsletter-privacy {
    font-size: 0.875rem;
    color: #6b7280;
    margin-top: 0.75rem;
}

.newsletter-privacy a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.newsletter-privacy a:hover {
    text-decoration: underline;
}

/* Download Section */
.download {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-bg) 100%);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Privacy Policy Page */
.privacy-policy {
    padding: 100px 0;
    background: var(--bg-white);
}

.policy-content {
    max-width: 900px;
    margin: 0 auto;
}

.page-title {
    font-size: 3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 3rem;
}

.policy-section {
    margin-bottom: 3rem;
}

.policy-section h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid var(--primary-color);
}

.policy-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.policy-section p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
    font-size: 1.0625rem;
}

.policy-section ul,
.policy-section ol {
    margin-left: 2rem;
    margin-bottom: 1.5rem;
}

.policy-section li {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 0.75rem;
    font-size: 1.0625rem;
}

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

.policy-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.policy-section a:hover {
    color: var(--primary-bg);
    text-decoration: underline;
}

.contact-info-list {
    list-style: none;
    margin-left: 0;
}

.contact-info-list li {
    margin-bottom: 0.5rem;
}

.policy-footer {
    text-align: center;
    font-size: 1.125rem;
    padding: 2rem;
    background: var(--bg-gray-50);
    border-radius: 12px;
    margin-top: 2rem;
}

/* Coming Soon Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: white;
    border-radius: 20px;
    max-width: 500px;
    width: 100%;
    padding: 2.5rem;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-tertiary);
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    line-height: 1;
}

.modal-close:hover {
    background: var(--bg-gray-100);
    color: var(--text-primary);
}

.modal-header {
    text-align: center;
    margin-bottom: 2rem;
}

.modal-icon {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-logo {
    height: 5rem;
    width: auto;
    max-width: 280px;
    object-fit: contain;
    animation: bounce 2s infinite;
}

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

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modal-header p {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-form {
    margin-bottom: 1.5rem;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.modal-form input[type="email"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    font-family: inherit;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.modal-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(16, 166, 208, 0.15);
}

.modal-submit {
    width: 100%;
    padding: 14px 24px;
    font-size: 1.0625rem;
    border-radius: 12px;
}

.modal-footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Footer */
footer {
    background: var(--text-primary);
    color: white;
    padding: 2rem 0;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: white;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 1;
}

/* Responsive Design */

/* Large Desktop (1200px+) - Default styles already optimized */

/* Medium Desktop/Laptop (992px - 1199px) */
@media (max-width: 1199px) {
    .container {
        max-width: 960px;
    }

    .hero-title {
        font-size: 3rem;
    }

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

/* Tablet Landscape (768px - 991px) */
@media (max-width: 991px) {
    .container {
        max-width: 720px;
        padding: 0 30px;
    }

    .hero {
        padding: 60px 0;
    }

    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-title {
        font-size: 2.75rem;
    }

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

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

    .phone-mockup {
        width: 280px;
        height: 560px;
    }

    .features,
    .about,
    .contact,
    .newsletter,
    .download {
        padding: 80px 0;
    }

    .section-title {
        font-size: 2.25rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .contact-content {
        gap: 3rem;
    }
}

/* Tablet Portrait (576px - 767px) */
@media (max-width: 767px) {
    .container {
        max-width: 540px;
        padding: 0 20px;
    }

    .navbar {
        padding: 0.75rem 0;
    }

    .navbar .container {
        position: relative;
    }

    .logo-img {
        height: 4rem;
        max-width: 300px;
    }

    /* Show mobile menu toggle */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide nav links by default on mobile */
    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 70%;
        max-width: 300px;
        background: white;
        flex-direction: column;
        padding: 80px 30px 30px;
        gap: 1.5rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        z-index: 1000;
        overflow-y: auto;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.125rem;
        padding: 0.75rem 0;
        border-bottom: 1px solid #e5e7eb;
    }

    .nav-links a:last-child {
        border-bottom: none;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .popular-badge {
        font-size: 0.7rem;
        padding: 5px 35px;
    }

    .price-amount {
        font-size: 2.5rem;
    }

    .hero {
        padding: 50px 0;
    }

    .hero-title {
        font-size: 2.25rem;
        margin-bottom: 1rem;
    }

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

    .phone-mockup {
        width: 240px;
        height: 480px;
    }

    .preview-icon {
        font-size: 3rem;
    }

    .app-preview h3 {
        font-size: 1.25rem;
    }

    .features,
    .about,
    .contact,
    .newsletter,
    .download {
        padding: 60px 0;
    }

    .section-title {
        font-size: 1.875rem;
        margin-bottom: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .feature-card {
        padding: 1.5rem;
        text-align: center;
    }

    .feature-icon {
        font-size: 2.5rem;
    }

    .stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .contact-form {
        padding: 1.5rem;
    }

    footer .container {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .footer-links {
        flex-direction: row;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

/* Mobile Landscape/Large Mobile (481px - 575px) */
@media (max-width: 575px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .cta-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }

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

    .app-store-btn,
    .google-play-btn {
        min-width: 100%;
    }

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

    .section-title {
        font-size: 1.75rem;
    }

    .newsletter-input-group {
        flex-direction: column;
        gap: 0.75rem;
    }

    .newsletter-btn {
        width: 100%;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }

    .download-buttons .btn {
        width: 100%;
    }

    .feature-card {
        text-align: center;
    }

    .feature-card h3,
    .info-card h3 {
        font-size: 1.125rem;
    }

    .stat-number {
        font-size: 2rem;
    }
}

/* Mobile adjustments for modal */
@media (max-width: 575px) {
    .modal-content {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-header p {
        font-size: 0.9375rem;
    }

    .modal-logo {
        height: 4rem;
        max-width: 220px;
    }
}

/* Mobile Portrait (320px - 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 15px;
    }

    .logo-img {
        height: 3.5rem;
        max-width: 260px;
    }

    .modal-content {
        padding: 1.75rem 1.25rem;
    }

    .modal-header h2 {
        font-size: 1.375rem;
    }

    .modal-logo {
        height: 3.5rem;
        max-width: 200px;
    }

    .pricing-grid {
        gap: 1.25rem;
    }

    .plan-header {
        padding: 1.5rem;
    }

    .plan-name {
        font-size: 1.5rem;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    .plan-body {
        padding: 1.5rem;
    }

    .plan-features li {
        padding: 0.625rem 0;
        font-size: 0.9375rem;
    }

    .hero {
        padding: 40px 0;
    }

    .hero-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }

    .hero-subtitle {
        font-size: 0.875rem;
        line-height: 1.6;
    }

    .phone-mockup {
        width: 200px;
        height: 400px;
        padding: 10px;
    }

    .phone-screen {
        border-radius: 25px;
    }

    .preview-icon {
        font-size: 2.5rem;
    }

    .app-preview h3 {
        font-size: 1.125rem;
    }

    .app-preview p {
        font-size: 0.875rem;
    }

    .features,
    .about,
    .contact,
    .newsletter,
    .download {
        padding: 50px 0;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .contact-subtitle,
    .download-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    .feature-card,
    .info-card {
        padding: 1.25rem;
        text-align: center;
    }

    .feature-icon,
    .info-icon {
        font-size: 2rem;
    }

    .about-text {
        font-size: 1rem;
    }

    .stat {
        padding: 1rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.875rem;
    }

    .contact-form {
        padding: 1.25rem;
    }

    .form-group {
        margin-bottom: 1.25rem;
    }

    .form-group label {
        font-size: 0.9375rem;
    }

    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px 14px;
        font-size: 0.9375rem;
    }

    .btn-submit {
        padding: 12px 20px;
        font-size: 0.9375rem;
    }

    .app-icon {
        width: 28px;
        height: 28px;
    }

    .btn small {
        font-size: 0.625rem;
    }

    .btn strong {
        font-size: 0.9375rem;
    }

    footer {
        padding: 1.5rem 0;
        font-size: 0.875rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Extra Small Mobile (320px and below) */
@media (max-width: 374px) {
    .hero-title {
        font-size: 1.5rem;
    }

    .phone-mockup {
        width: 180px;
        height: 360px;
    }

    .section-title {
        font-size: 1.375rem;
    }

    .logo-img {
        height: 3rem;
        max-width: 220px;
    }
}


/* ===================================
   Password Reset Page Styles
   =================================== */

.reset-password-section {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, var(--screen-bg) 0%, #ffffff 100%);
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
}

.reset-password-container {
    max-width: 500px;
    margin: 0 auto;
    background: var(--bg-white);
    padding: 3rem;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.reset-password-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.reset-password-header .page-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.reset-password-header .page-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.reset-password-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.reset-password-footer p {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

.reset-password-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.reset-password-footer a:hover {
    color: var(--primary-bg);
    text-decoration: underline;
}

/* Tablet and below */
@media (max-width: 768px) {
    .reset-password-section {
        padding: 100px 20px 60px;
    }

    .reset-password-container {
        padding: 2rem 1.5rem;
    }

    .reset-password-header .page-title {
        font-size: 1.875rem;
    }

    .reset-password-header .page-subtitle {
        font-size: 0.9375rem;
    }
}

/* Mobile */
@media (max-width: 480px) {
    .reset-password-section {
        padding: 90px 16px 40px;
    }

    .reset-password-container {
        padding: 1.5rem 1.25rem;
    }

    .reset-password-header {
        margin-bottom: 2rem;
    }

    .reset-password-header .page-title {
        font-size: 1.625rem;
    }

    .reset-password-header .page-subtitle {
        font-size: 0.875rem;
    }

    .reset-password-footer {
        margin-top: 1.5rem;
        padding-top: 1.25rem;
    }

    .reset-password-footer p {
        font-size: 0.875rem;
    }
}

/* =========================================================================
   CONVERSION REWRITE - Aug 2026
   New sections: hero eyebrow / dual CTA, proof bar, problem, checklist CTA,
   FAQ. Appended so the original stylesheet above stays untouched and this
   block can be reverted on its own.
   ========================================================================= */

/* ---------- Hero: eyebrow, tighter title, dual CTA ---------- */
.hero-eyebrow {
    display: inline-block;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

/* The old 3.5rem was sized for a four-word headline. This one carries the
   whole promise, so it needs to scale with the viewport instead. */
.hero-title {
    font-size: clamp(1.85rem, 3.6vw, 3rem);
    line-height: 1.15;
    letter-spacing: -0.01em;
}

.hero-subtitle {
    font-size: clamp(1.02rem, 1.4vw, 1.18rem);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    max-width: 34em;
}

.cta-buttons .btn.cta-main {
    font-size: 1.05rem;
    padding: 15px 28px;
}

/* Secondary CTA carries equal visual weight without competing for the eye:
   outlined against the hero gradient, same height as the primary. */
.btn-checklist {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    padding: 13px 26px;
}

.btn-checklist:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: #fff;
    transform: translateY(-2px);
}

.cta-note {
    margin-top: 1rem;
    font-size: 0.92rem;
    opacity: 0.9;
    line-height: 1.5;
}

.nav-cta {
    background: var(--primary-color);
    color: #fff !important;
    padding: 8px 18px;
    border-radius: 999px;
}

.nav-cta:hover {
    background: var(--primary-bg);
}

/* ---------- Proof bar ---------- */
.proofbar {
    background: var(--bg-gray-50);
    border-bottom: 1px solid var(--border-color);
    padding: 2.25rem 0;
}

.proof-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.75rem;
}

.proof-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}

.proof-icon {
    font-size: 1.5rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.proof-item strong {
    display: block;
    font-size: 0.98rem;
    color: var(--text-primary);
    margin-bottom: 0.2rem;
}

.proof-item span {
    display: block;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* ---------- Problem section ---------- */
.problem {
    padding: 80px 0;
    background: var(--bg-white);
}

.problem-lead {
    max-width: 46em;
    margin: 0 auto 3rem;
    text-align: center;
    font-size: 1.15rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.problem-lead em {
    font-style: italic;
    color: var(--text-primary);
    font-weight: 600;
}

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

.problem-card {
    background: var(--bg-gray-50);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.75rem;
}

.problem-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

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

.problem-card em {
    font-style: italic;
    font-weight: 600;
    color: var(--text-primary);
}

.problem-stat {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-bg) 100%);
    border-color: transparent;
    color: #fff;
}

.problem-stat p {
    color: rgba(255, 255, 255, 0.95);
}

.big-stat {
    font-size: 3.25rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 0.6rem;
}

.problem-stat cite {
    display: block;
    margin-top: 0.85rem;
    font-size: 0.78rem;
    font-style: normal;
    opacity: 0.8;
    letter-spacing: 0.03em;
}

.problem-vow {
    background: var(--success-light);
    border-color: rgba(16, 185, 129, 0.35);
}

/* ---------- Checklist / lead magnet CTA ---------- */
.checklist-cta {
    padding: 70px 0;
    background: var(--bg-gray-50);
}

.checklist-card {
    max-width: 780px;
    margin: 0 auto;
    background: var(--bg-white);
    border: 3px solid var(--primary-color);
    border-radius: 20px;
    padding: 2.75rem;
    text-align: center;
    box-shadow: var(--shadow);
}

.checklist-eyebrow {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.75rem;
}

.checklist-card h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.checklist-card p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1.1rem;
}

.checklist-trust {
    font-size: 0.88rem !important;
    color: var(--text-secondary) !important;
    border-top: 1px solid var(--border-color);
    padding-top: 1.1rem;
    margin-bottom: 1.6rem !important;
}

.checklist-card .btn {
    font-size: 1.05rem;
    padding: 15px 32px;
}

/* ---------- FAQ ---------- */
.faq {
    padding: 80px 0;
    background: var(--bg-white);
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    margin-bottom: 0.85rem;
    background: var(--bg-gray-50);
    overflow: hidden;
}

.faq-item[open] {
    background: var(--bg-white);
    border-color: var(--primary-color);
    box-shadow: var(--shadow);
}

.faq-q {
    cursor: pointer;
    list-style: none;
    padding: 1.15rem 3rem 1.15rem 1.5rem;
    font-weight: 600;
    font-size: 1.03rem;
    color: var(--text-primary);
    position: relative;
}

.faq-q::-webkit-details-marker {
    display: none;
}

.faq-q::after {
    content: "+";
    position: absolute;
    right: 1.4rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--primary-color);
    line-height: 1;
}

.faq-item[open] .faq-q::after {
    content: "−";
}

.faq-a {
    padding: 0 1.5rem 1.4rem;
}

.faq-a p {
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0.8rem;
}

.faq-a p:last-child {
    margin-bottom: 0;
}

.faq-a a {
    color: var(--primary-color);
    font-weight: 600;
}

/* ---------- Misc ---------- */
.download-alt {
    margin-top: 1.5rem;
    font-size: 0.95rem;
    opacity: 0.9;
}

.download-alt a {
    color: inherit;
    font-weight: 700;
    text-decoration: underline;
}

.form-hint-block {
    display: block;
    margin-top: 0.75rem;
    color: var(--text-tertiary);
    font-size: 0.85rem;
}

.info-card a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
}

.info-card a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .proof-grid,
    .problem-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .hero {
        padding: 48px 0 56px;
    }

    /* On a phone the hero must still deliver headline + subhead + both CTAs
       before the first scroll, so the phone mockup moves below them. */
    .hero-image {
        margin-top: 2rem;
    }

    .cta-buttons {
        flex-direction: column;
        align-items: stretch;
    }

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

    .problem,
    .faq {
        padding: 56px 0;
    }

    .checklist-cta {
        padding: 48px 0;
    }

    .checklist-card {
        padding: 1.75rem 1.35rem;
    }

    .problem-lead {
        font-size: 1.05rem;
        text-align: left;
    }
}

@media (max-width: 575px) {
    .proof-grid,
    .problem-grid {
        grid-template-columns: 1fr;
    }

    .proofbar {
        padding: 1.75rem 0;
    }

    .big-stat {
        font-size: 2.75rem;
    }

    .faq-q {
        font-size: 0.98rem;
        padding: 1rem 2.6rem 1rem 1.15rem;
    }

    .faq-a {
        padding: 0 1.15rem 1.2rem;
    }
}

/* =========================================================================
   "How Loomic works" cards - colour system
   Each card carries its own accent via custom properties, used by the top
   bar, the icon badge and the hover state. Six distinct hues so no two
   cards read as the same idea (the old set repeated green and amber).
   Appended after the original rules, so equal-specificity overrides win
   on source order and this block can be reverted on its own.
   ========================================================================= */

.feature-card {
    --accent-a: var(--primary-color);
    --accent-b: var(--primary-bg);
    --accent-tint: rgba(16, 166, 208, 0.12);
    --accent-glow: rgba(16, 166, 208, 0.22);
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

/* 1. Your child is the main character */
.feature-card:nth-child(1) {
    --accent-a: #F59E0B;
    --accent-b: #FBBF24;
    --accent-tint: rgba(245, 158, 11, 0.14);
    --accent-glow: rgba(245, 158, 11, 0.26);
}

/* 2. Written to her level, not her age */
.feature-card:nth-child(2) {
    --accent-a: #3B82F6;
    --accent-b: #60A5FA;
    --accent-tint: rgba(59, 130, 246, 0.13);
    --accent-glow: rgba(59, 130, 246, 0.24);
}

/* 3. Sounding out, not guessing */
.feature-card:nth-child(3) {
    --accent-a: #8B5CF6;
    --accent-b: #A78BFA;
    --accent-tint: rgba(139, 92, 246, 0.13);
    --accent-glow: rgba(139, 92, 246, 0.24);
}

/* 4. "Read it to me" nights */
.feature-card:nth-child(4) {
    --accent-a: #10A6D0;
    --accent-b: #38BDF8;
    --accent-tint: rgba(16, 166, 208, 0.14);
    --accent-glow: rgba(16, 166, 208, 0.26);
}

/* 5. Proof it's working */
.feature-card:nth-child(5) {
    --accent-a: #10B981;
    --accent-b: #34D399;
    --accent-tint: rgba(16, 185, 129, 0.14);
    --accent-glow: rgba(16, 185, 129, 0.26);
}

/* 6. You hold the controls */
.feature-card:nth-child(6) {
    --accent-a: #F43F5E;
    --accent-b: #FB7185;
    --accent-tint: rgba(244, 63, 94, 0.12);
    --accent-glow: rgba(244, 63, 94, 0.22);
}

/* Top bar, thicker and now driven by the card's own accent. */
.feature-card::before,
.feature-card:nth-child(1)::before,
.feature-card:nth-child(2)::before,
.feature-card:nth-child(3)::before,
.feature-card:nth-child(4)::before,
.feature-card:nth-child(5)::before,
.feature-card:nth-child(6)::before {
    height: 5px;
    background: linear-gradient(90deg, var(--accent-a), var(--accent-b));
}

/* A soft wash of the accent bleeding down from the top of the card. */
.feature-card::after {
    content: '';
    position: absolute;
    top: 5px;
    left: 0;
    right: 0;
    height: 130px;
    background: linear-gradient(180deg, var(--accent-tint), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.feature-card > * {
    position: relative;
    z-index: 1;
}

/* The emoji becomes a badge rather than floating loose. */
.feature-icon {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: var(--bg-white);
    border: 2px solid var(--accent-tint);
    box-shadow: 0 4px 12px var(--accent-tint);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    line-height: 1;
    margin-bottom: 1.25rem;
}

/* Heading picks up a hint of the accent so the colour reads as meaning,
   not decoration. Kept dark enough for contrast on white. */
.feature-card h3 {
    font-size: 1.2rem;
    line-height: 1.35;
}

.feature-card:hover {
    border-color: var(--accent-a);
    box-shadow: 0 18px 30px -12px var(--accent-glow), 0 6px 12px -6px rgba(31, 41, 55, 0.08);
}

@media (max-width: 575px) {
    .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .feature-card::after { height: 100px; }
}

/* Card text centres on narrow screens (existing rule), so centre the badge
   with it rather than leaving it stranded on the left. */
@media (max-width: 767px) {
    .feature-card .feature-icon {
        margin-left: auto;
        margin-right: auto;
    }
}
