/* Reset & Base Styles */
:root {
    --text-primary: #1d1d1f;
    --text-secondary: #86868b;
    --background: #fbfbfd;
    --accent: #0071e3;
    --accent-hover: #0077ED;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border: rgba(0, 0, 0, 0.1);
    --nav-height: 44px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'SF Pro Text', sans-serif;
    color: var(--text-primary);
    background-color: var(--background);
    line-height: 1.47059;
    letter-spacing: -0.022em;
    overflow-x: hidden;
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-weight: 600;
    letter-spacing: -0.015em;
}

h1 {
    font-size: 56px;
    line-height: 1.07143;
    letter-spacing: -0.005em;
}

h2 {
    font-size: 48px;
    line-height: 1.1;
}

p {
    font-size: 19px;
    /* Apple-style body text usually starts at 17-21px */
    line-height: 1.4211;
    color: var(--text-secondary);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-up {
    opacity: 0;
    animation: fadeInUp 0.8s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 980px;
    margin: 0 auto;
    /* height: auto; - Removed fixed height for large logo */
    padding: 20px;
}

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

.logo img {
    height: 24px;
    width: auto;
    transform: scale(1.6);
    /* Visually crops whitespace */
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 12px;
    margin-left: 24px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

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

.btn-primary {
    background-color: var(--accent);
    color: white;
    border-radius: 980px;
    padding: 8px 16px;
    font-size: 12px;
    font-weight: 400;
    transition: all 0.2s;
}

.btn-primary:hover {
    background-color: var(--accent-hover);
    transform: scale(1.02);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 120px 20px 60px;
    max-width: 980px;
    margin: 0 auto;
}

.hero h1 {
    margin-bottom: 24px;
}

.hero p {
    max-width: 600px;
    margin: 0 auto 40px;
    font-size: 24px;
    /* Larger intro text */
}

.hero-cta {
    display: inline-flex;
    gap: 16px;
    justify-content: center;
}

.app-store-btn {
    display: flex;
    align-items: center;
    background: black;
    color: white;
    padding: 10px 24px;
    border-radius: 40px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: transform 0.2s;
}

.app-store-btn:hover {
    transform: scale(1.05);
}

.hero-image-container {
    margin-top: 80px;
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.2);
    /* Using a nice gradient/glass effect placeholder if image fails */
    background: linear-gradient(180deg, #f0f0f5 0%, #e0e0ec 100%);
    min-height: 400px;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Features Grid */
.features {
    padding: 120px 20px;
    background: white;
}

.grid-container {
    max-width: 1020px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--background);
    padding: 40px;
    border-radius: 28px;
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.icon {
    font-size: 40px;
    color: var(--accent);
    margin-bottom: 20px;
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 48;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 24px;
}

/* Pricing Section */
.pricing {
    padding: 120px 20px;
    text-align: center;
}

.pricing h2 {
    margin-bottom: 60px;
}

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

.price-card {
    background: white;
    padding: 40px 30px;
    border-radius: 28px;
    border: 1px solid var(--border);
    position: relative;
    display: flex;
    flex-direction: column;
}

.price-card h3 {
    font-size: 20px;
    margin-bottom: 8px;
}

.plan-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
    height: 40px;
    /* aligns prices */
}

.price-card.pro {
    border: 2px solid var(--accent);
    box-shadow: 0 20px 40px rgba(0, 113, 227, 0.15);
    background: linear-gradient(180deg, #fff 0%, #f5f9ff 100%);
}

.badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.price {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.period {
    font-size: 16px;
    color: var(--text-secondary);
    font-weight: 400;
}

.features-list {
    list-style: none;
    text-align: left;
    margin: 20px 0 40px;
    flex-grow: 1;
}

.features-list li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--text-secondary);
}

.features-list li b {
    color: var(--text-primary);
    font-weight: 600;
}

.dim {
    opacity: 0.6;
}

.check {
    color: var(--accent);
    font-weight: bold;
    font-size: 16px;
}

.cross {
    color: #ff3b30;
    font-weight: bold;
    font-size: 14px;
}

.btn-primary {
    display: block;
    text-align: center;
    text-decoration: none;
    padding: 12px;
    border-radius: 30px;
    font-weight: 500;
}

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

.btn-primary.outline:hover {
    background: rgba(0, 113, 227, 0.05);
    color: var(--accent-hover);
}

/* FAQ Section */
.faq {
    padding: 120px 20px;
    background: white;
}

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

.faq h2 {
    text-align: center;
    margin-bottom: 60px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}

.faq-item summary {
    font-size: 18px;
    font-weight: 500;
    padding: 24px 0;
    cursor: pointer;
    list-style: none;
    /* Hides default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-primary);
    transition: color 0.2s;
}

.faq-item summary:hover {
    color: var(--accent);
}

/* Custom indicator using pseudo-element */
.faq-item summary::after {
    content: '+';
    font-size: 24px;
    font-weight: 400;
    color: var(--text-secondary);
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

/* Chrome/Safari specific fix to hide default triangle */
.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-content {
    padding-bottom: 24px;
    padding-right: 40px;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
footer {
    background: #f5f5f7;
    padding: 60px 20px;
    font-size: 12px;
    color: var(--text-secondary);
}

.footer-content {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 30px;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    margin-left: 20px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    h1 {
        font-size: 40px;
    }

    h2 {
        font-size: 32px;
    }

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

    nav {
        display: none;
        /* In a real app we'd add a hamburger menu */
    }

    .hero {
        padding-top: 60px;
    }
}