/* Base Styles - Nearo Inspired with Geist Mono */
:root {
    --bg-hero: #ffffff;
    --bg-features: #f5f5f5;
    --bg-white: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #666666;
    --text-muted: #888888;
    --accent: #2563eb;
    --accent-light: #dbeafe;
    --border: #e5e7eb;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.12);
    --radius: 24px;
    --radius-lg: 32px;
    --radius-sm: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Geist Mono', 'SF Mono', 'Monaco', 'Inconsolata', monospace;
    background: var(--bg-white);
    color: var(--text-primary);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Navigation */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.logo-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.85rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
    font-family: inherit;
}

.btn-primary {
    background: var(--text-primary);
    color: #ffffff;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-white);
    border-color: var(--text-secondary);
}

.btn-sm {
    padding: 10px 20px;
    font-size: 0.8rem;
}

/* Pill Badge */
.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.pill::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    background: #ffffff;
    padding: 160px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 28px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
    letter-spacing: 0.01em;
}

.hero-cta {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 80px;
}

/* Phone Mockup */
.hero-phones {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 500px;
    margin-top: 40px;
}

.phone-mockup {
    width: 260px;
    height: 520px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 2;
}

.phone-mockup.left {
    transform: translateX(40px) rotate(-8deg);
    z-index: 1;
}

.phone-mockup.right {
    transform: translateX(-40px) rotate(8deg);
    z-index: 1;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 36px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-status-bar {
    height: 44px;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.phone-content {
    flex: 1;
    padding: 16px;
    background: #f9fafb;
}

.phone-header {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.phone-card {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.phone-card-title {
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.phone-card-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.phone-stats {
    display: flex;
    gap: 12px;
    margin-top: 12px;
}

.phone-stat {
    background: #f0f0f0;
    padding: 8px 12px;
    border-radius: 8px;
    text-align: center;
}

.phone-stat-value {
    font-size: 1rem;
    font-weight: 600;
}

.phone-stat-label {
    font-size: 0.65rem;
    color: var(--text-muted);
}

/* Features Section */
.features {
    padding: 100px 0;
    background: #ffffff;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.75rem;
    font-weight: 600;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.section-subtitle {
    font-size: 1.0625rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

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

.feature-card {
    background: rgb(238, 239, 240);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: none;
    transition: all 0.3s;
    overflow: hidden;
}

.feature-card:hover {
    transform: none;
    box-shadow: none;
}

.feature-visual {
    height: 220px;
    background: #f5f5f5;
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

/* Feature Phone Mockup */
.feature-phone {
    width: 140px;
    height: 200px;
    background: #1a1a1a;
    border-radius: 20px;
    padding: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.feature-phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}

/* Mini Cards for Scanning */
.mini-card {
    background: #f5f5f5;
    border-radius: 8px;
    padding: 10px;
    display: flex;
    gap: 8px;
    align-items: center;
}

.mini-card.success {
    background: #d4edda;
    border: 1px solid #28a745;
}

.mini-card-icon {
    font-size: 1rem;
}

.mini-card.success .mini-card-icon {
    color: #28a745;
    font-weight: bold;
}

.mini-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-primary);
}

.mini-subtitle {
    font-size: 0.55rem;
    color: var(--text-muted);
}

/* Mini Chart for Analytics */
.mini-chart {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 6px;
    height: 80px;
    padding: 8px 0;
}

.chart-bar {
    width: 16px;
    background: #e0e0e0;
    border-radius: 4px;
    transition: background 0.2s;
}

.chart-bar.active {
    background: linear-gradient(180deg, #4CAF50 0%, #2E7D32 100%);
}

.mini-stat {
    text-align: center;
    margin-top: 8px;
}

.stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.55rem;
    color: var(--text-muted);
    margin-left: 4px;
}

/* Mini Chat */
.mini-chat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 0;
}

.chat-bubble {
    padding: 6px 10px;
    border-radius: 10px;
    font-size: 0.5rem;
    max-width: 95%;
    line-height: 1.3;
}

.chat-bubble.user {
    background: #1a1a1a;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 4px;
}

.chat-bubble.assistant {
    background: #f0f0f0;
    color: var(--text-primary);
    align-self: flex-start;
    border-bottom-left-radius: 4px;
}

/* Mini Habits */
.mini-habits {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.habit-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #f5f5f5;
    padding: 6px 8px;
    border-radius: 6px;
}

.habit-icon {
    font-size: 0.8rem;
}

.habit-name {
    font-size: 0.55rem;
    font-weight: 500;
    flex: 1;
}

.habit-streak {
    font-size: 0.5rem;
    color: #28a745;
    font-weight: 600;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

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

/* How It Works */
.how-it-works {
    padding: 100px 0;
    background: var(--bg-white);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 600px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.step-number {
    width: 48px;
    height: 48px;
    background: var(--bg-features);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Download Section */
.download {
    padding: 100px 0;
    background: #ffffff url('receipt-bg.png') no-repeat center center;
    background-size: cover;
    text-align: center;
    position: relative;
}

.download::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    pointer-events: none;
}

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

.download-cta {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 40px;
}

.store-badge img {
    height: 44px;
    width: auto;
}

/* Platform Links */
.platform-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 16px;
    font-size: 0.8rem;
}

.platform-label {
    color: var(--text-muted);
}

.platform-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

.platform-divider {
    color: var(--text-muted);
}

/* Large button */
.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
    margin-bottom: 24px;
}

.btn-icon {
    margin-right: 6px;
}

/* Footer */
.footer {
    background: var(--bg-white);
    border-top: 1px solid var(--border);
    padding: 48px 0;
}

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

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

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s;
}

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

.footer-bottom {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* Legal Pages */
.legal-page {
    padding: 120px 0 80px;
    background: var(--bg-features);
}

.legal-page .container {
    max-width: 800px;
}

.legal-content {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 48px;
    box-shadow: var(--shadow);
}

.legal-content h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    font-weight: 600;
}

.legal-content .last-updated {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.85rem;
}

.legal-content h2 {
    font-size: 1.1rem;
    margin-top: 32px;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    font-weight: 600;
}

.legal-content h2:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-content h3 {
    font-size: 0.95rem;
    margin-top: 20px;
    margin-bottom: 12px;
    font-weight: 600;
}

.legal-content p {
    color: var(--text-secondary);
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.legal-content ul {
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-left: 20px;
    font-size: 0.9rem;
}

.legal-content li {
    margin-bottom: 8px;
}

.legal-content a {
    color: var(--accent);
    text-decoration: none;
}

.legal-content a:hover {
    text-decoration: underline;
}

.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 0.8rem;
}

.legal-content th,
.legal-content td {
    padding: 12px;
    border: 1px solid var(--border);
    text-align: left;
}

.legal-content th {
    background: var(--bg-features);
    font-weight: 600;
    color: var(--text-primary);
}

.legal-content td {
    color: var(--text-secondary);
}

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

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-phones {
        height: 400px;
    }

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

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

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

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

    .footer-content {
        flex-direction: column;
        gap: 24px;
    }

    .legal-content {
        padding: 32px 24px;
    }

    .hero-phones {
        flex-direction: column;
        height: auto;
        align-items: center;
    }

    .phone-mockup.left,
    .phone-mockup.right {
        display: none;
    }

    .phone-mockup {
        width: 260px;
        height: 520px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

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

    .store-badge img {
        height: 42px;
    }
}