/* ============================================
   Gratitude Landing Page
   Design System: Sage green #7FA98E, dark theme
   Font: Didact Gothic
   ============================================ */

/* --- Theme Variables --- */
:root {
    --bg-primary: #1E1E1E;
    --bg-secondary: #252525;
    --bg-card: #2A2A2A;
    --bg-nav: rgba(30, 30, 30, 0.92);
    --border-subtle: #2A2A2A;
    --border-card: #3A3A3A;
    --border-hover: #444444;
    --text-primary: #FFFFFF;
    --text-body: #E0E0E0;
    --text-muted: #AAAAAA;
    --text-faint: #666666;
    --text-faintest: #555555;
    --accent: #7FA98E;
    --accent-hover: #8FB99E;
    --accent-bg: rgba(127, 169, 142, 0.1);
    --badge-bg: #333333;
    --badge-border: #444444;
    --badge-hover-bg: #3A3A3A;
    --pricing-divider: #333333;
    --shadow-phone: rgba(0, 0, 0, 0.4);
    --shadow-featured: rgba(127, 169, 142, 0.1);
    --chat-ai-bg: #2A2A2A;
    --chat-ai-border: #3A3A3A;
    --store-icon-fill: #FFFFFF;
}

[data-theme="light"] {
    --bg-primary: #FAFAFA;
    --bg-secondary: #F0F0F0;
    --bg-card: #FFFFFF;
    --bg-nav: rgba(250, 250, 250, 0.92);
    --border-subtle: #E0E0E0;
    --border-card: #E0E0E0;
    --border-hover: #CCCCCC;
    --text-primary: #1A1A1A;
    --text-body: #333333;
    --text-muted: #666666;
    --text-faint: #999999;
    --text-faintest: #AAAAAA;
    --accent: #6B9A7A;
    --accent-hover: #5A8A69;
    --accent-bg: rgba(107, 154, 122, 0.1);
    --badge-bg: #FFFFFF;
    --badge-border: #D0D0D0;
    --badge-hover-bg: #F5F5F5;
    --pricing-divider: #EEEEEE;
    --shadow-phone: rgba(0, 0, 0, 0.1);
    --shadow-featured: rgba(107, 154, 122, 0.15);
    --chat-ai-bg: #F5F5F5;
    --chat-ai-border: #E0E0E0;
    --store-icon-fill: #333333;
}

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

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

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

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

img {
    max-width: 100%;
    height: auto;
}

/* --- Container --- */
.container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Buttons --- */
.btn {
    display: inline-block;
    font-family: 'Didact Gothic', sans-serif;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-primary {
    background-color: var(--accent);
    color: #1E1E1E;
    padding: 14px 32px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-small {
    background-color: var(--accent);
    color: #1E1E1E;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
}

.btn-small:hover {
    background-color: var(--accent-hover);
}

.btn-large {
    padding: 18px 48px;
    font-size: 18px;
}

.btn-full {
    width: 100%;
    padding: 14px 24px;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: var(--bg-nav);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-subtle);
}

.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.nav-logo-img {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}

.nav-logo-text {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-links a {
    font-size: 15px;
    color: var(--text-muted);
    transition: color 0.2s;
}

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

.nav-links .btn {
    color: #1E1E1E;
}

/* --- Theme Toggle --- */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-card);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: color 0.2s, border-color 0.2s;
}

.theme-toggle:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
    width: 18px;
    height: 18px;
}

.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="light"] .theme-toggle .icon-sun { display: block; }
[data-theme="light"] .theme-toggle .icon-moon { display: none; }

/* --- Hero --- */
.hero {
    padding: 140px 0 80px;
    min-height: 90vh;
    display: flex;
    align-items: center;
}

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

.hero h1 {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.15;
    letter-spacing: 1px;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 19px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 40px;
    max-width: 480px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.hero-stores {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--badge-bg);
    border: 1px solid var(--badge-border);
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    color: var(--text-primary);
    transition: all 0.2s;
}

.store-badge:hover {
    background: var(--badge-hover-bg);
    border-color: var(--accent);
}

.store-badge svg {
    flex-shrink: 0;
    fill: var(--store-icon-fill);
}

.hero-note {
    font-size: 14px;
    color: var(--text-faint);
}

/* Phone mockup */
.phone-frame {
    width: 280px;
    height: 560px;
    background: var(--bg-card);
    border-radius: 36px;
    border: 3px solid var(--border-card);
    padding: 12px;
    margin: 0 auto;
    box-shadow: 0 24px 80px var(--shadow-phone);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-placeholder {
    text-align: center;
    padding: 24px;
}

.phone-placeholder-icon {
    margin-bottom: 16px;
    opacity: 0.6;
}

.phone-placeholder-text {
    font-size: 14px;
    color: var(--text-faint);
}

/* --- Features --- */
.features {
    padding: 100px 0;
}

.features h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.25;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 64px;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 12px;
    padding: 32px;
    transition: border-color 0.2s, transform 0.2s;
}

.feature-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--accent-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 15px;
    color: var(--text-muted);
    line-height: 1.65;
}

/* --- AI Highlight --- */
.highlight {
    padding: 100px 0;
    background: var(--bg-secondary);
}

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

.highlight-label {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}

.highlight h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: 20px;
}

.highlight-content p {
    font-size: 17px;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.highlight-list {
    list-style: none;
}

.highlight-list li {
    font-size: 16px;
    color: #CCCCCC;
    padding: 8px 0;
    padding-left: 28px;
    position: relative;
}

[data-theme="light"] .highlight-list li {
    color: #555555;
}

.highlight-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
}

/* Chat mockup */
.chat-mockup {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 400px;
    margin: 0 auto;
}

.chat-bubble {
    padding: 16px 20px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.6;
}

.chat-user {
    background: var(--accent);
    color: #1E1E1E;
    border-bottom-right-radius: 4px;
    align-self: flex-end;
    max-width: 85%;
    font-weight: 700;
}

.chat-ai {
    background: var(--chat-ai-bg);
    color: var(--text-body);
    border: 1px solid var(--chat-ai-border);
    border-bottom-left-radius: 4px;
    align-self: flex-start;
    max-width: 90%;
}

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

.pricing h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 16px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 720px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-card);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.pricing-card-featured {
    border-color: var(--accent);
    box-shadow: 0 0 40px var(--shadow-featured);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #1E1E1E;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-header {
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1px;
}

.price {
    font-size: 48px;
    font-weight: 700;
    color: var(--text-primary);
}

.price-period {
    font-size: 16px;
    color: var(--text-faint);
    margin-left: 4px;
}

.pricing-features {
    list-style: none;
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    font-size: 15px;
    color: #CCCCCC;
    padding: 10px 0;
    padding-left: 28px;
    position: relative;
    border-bottom: 1px solid var(--pricing-divider);
}

[data-theme="light"] .pricing-features li {
    color: #555555;
}

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

.pricing-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237FA98E' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

[data-theme="light"] .pricing-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236B9A7A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
}

.pricing-note {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--text-faint);
    margin-top: 12px;
}

/* --- CTA --- */
.cta {
    padding: 100px 0;
    text-align: center;
    background: var(--bg-secondary);
}

.cta h2 {
    font-size: 40px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.cta p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    line-height: 1.7;
}

.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.cta-stores {
    display: flex;
    gap: 12px;
}

/* --- Footer --- */
.footer {
    padding: 40px 0;
    border-top: 1px solid var(--border-subtle);
}

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

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-logo-img {
    width: 24px;
    height: 24px;
    border-radius: 4px;
}

.footer-logo-text {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 1.5px;
}

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

.footer-links a {
    font-size: 14px;
    color: var(--text-faint);
    transition: color 0.2s;
}

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

.footer-copy {
    font-size: 13px;
    color: var(--text-faintest);
}

/* ============================================
   Responsive
   ============================================ */

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

    .hero h1 {
        font-size: 40px;
    }

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

    .hero-actions {
        align-items: center;
    }

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

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

    .highlight .container {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .highlight-content {
        text-align: center;
    }

    .highlight-list li {
        text-align: left;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
}

@media (max-width: 600px) {
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 17px;
    }

    .features h2,
    .pricing h2,
    .cta h2 {
        font-size: 28px;
    }

    .section-subtitle {
        font-size: 16px;
    }

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

    .highlight h2 {
        font-size: 28px;
    }

    .nav-links a:not(.btn):not(.theme-toggle) {
        display: none;
    }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

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

    .hero-stores,
    .cta-stores {
        flex-direction: column;
        align-items: center;
    }

    .store-badge {
        width: 160px;
        justify-content: center;
    }
}
