/* DayAnchor Landing Page — Mobile-first */

:root {
    --color-primary: #0D59F2;
    --color-primary-dark: #0A47C2;
    --color-bg: #FAFBFC;
    --color-surface: #FFFFFF;
    --color-text: #2D3748;
    --color-text-muted: #718096;
    --color-border: #E2E8F0;
    --color-accent: #48BB78;
    --radius: 12px;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-size: 1.05rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
}

.btn:active {
    transform: scale(0.98);
}

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

.btn-primary:hover {
    background: var(--color-primary-dark);
}

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

.btn-secondary:hover {
    background: var(--color-primary);
    color: #fff;
}

/* Hero */
.hero {
    text-align: center;
    padding: 60px 0 48px;
    background: linear-gradient(180deg, #E8EEFF 0%, var(--color-bg) 100%);
}

.hero-icon img {
    border-radius: 18px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.tagline {
    font-size: 1.15rem;
    color: var(--color-text-muted);
    margin-bottom: 4px;
}

.tagline-caregiver {
    margin-bottom: 28px;
}

.cta-block {
    margin-top: 8px;
}

.cta-note {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    margin-top: 10px;
}

.waitlist-note {
    font-size: 0.95rem;
    color: var(--color-text-muted);
    margin-bottom: 12px;
}

.waitlist-form {
    display: flex;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 420px;
    margin: 0 auto;
}

.waitlist-form input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: 12px 16px;
    border: 2px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.waitlist-form input[type="email"]:focus {
    border-color: var(--color-primary);
}

.waitlist-form .btn {
    padding: 12px 24px;
}

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

.features h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 28px 24px;
    box-shadow: var(--shadow);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 12px;
}

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

.feature-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Store badges */
.store-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.store-badge img {
    height: 48px;
    transition: opacity 0.2s;
}

.store-badge:hover img {
    opacity: 0.85;
}

/* Family Connect teaser */
.family-connect {
    padding: 56px 0;
    text-align: center;
    background: linear-gradient(180deg, var(--color-bg) 0%, #E8EEFF 50%, var(--color-bg) 100%);
}

.family-connect h2 {
    font-size: 1.6rem;
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--color-text-muted);
    margin-bottom: 28px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.badge {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.fc-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    max-width: 640px;
    margin: 0 auto;
}

.fc-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: left;
}

.fc-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
}

.fc-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

/* Screenshots */
.screenshots {
    padding: 56px 0;
    text-align: center;
}

.screenshots h2 {
    font-size: 1.6rem;
    margin-bottom: 24px;
}

.screenshot-row {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Blog CTA */
.blog-cta {
    padding: 56px 0;
    text-align: center;
}

.blog-cta h2 {
    font-size: 1.6rem;
    margin-bottom: 12px;
}

.blog-cta p {
    color: var(--color-text-muted);
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Blog index */
.blog-index {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.blog-index h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.blog-index .subtitle {
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.blog-card {
    display: block;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s;
}

.blog-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.blog-card h3 {
    font-size: 1.15rem;
    margin-bottom: 8px;
    color: var(--color-text);
}

.blog-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    margin-bottom: 8px;
    line-height: 1.5;
}

.blog-date {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Blog post */
.post {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.post-meta {
    color: var(--color-text-muted);
    margin-bottom: 32px;
    font-size: 0.9rem;
}

.post h1 {
    font-size: 2rem;
    margin-bottom: 8px;
    line-height: 1.3;
}

.post h2 {
    font-size: 1.4rem;
    margin-top: 36px;
    margin-bottom: 12px;
}

.post h3 {
    font-size: 1.15rem;
    margin-top: 24px;
    margin-bottom: 8px;
}

.post p {
    line-height: 1.8;
    margin-bottom: 16px;
}

.post ul, .post ol {
    padding-left: 24px;
    margin-bottom: 16px;
}

.post li {
    line-height: 1.7;
    margin-bottom: 8px;
}

.post a {
    color: var(--color-primary);
}

.post hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 32px 0;
}

.post blockquote {
    border-left: 3px solid var(--color-primary);
    padding-left: 16px;
    color: var(--color-text-muted);
    margin: 16px 0;
}

/* Shared back link */
.back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 600;
}

.back-link:hover {
    text-decoration: underline;
}

/* Footer */
.footer {
    padding: 32px 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-nav {
    margin-top: 8px;
}

.footer-nav a {
    color: var(--color-text-muted);
    text-decoration: none;
    margin: 0 12px;
}

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

/* Dark mode */
@media (prefers-color-scheme: dark) {
    :root {
        --color-primary: #4D8DF7;
        --color-primary-dark: #3B78E3;
        --color-bg: #101622;
        --color-surface: #1E293B;
        --color-text: #E8E8E8;
        --color-text-muted: #94A3B8;
        --color-border: #334155;
        --color-accent: #5CDB95;
        --shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
    }

    .hero {
        background: linear-gradient(180deg, #1E293B 0%, var(--color-bg) 100%);
    }

    .family-connect {
        background: linear-gradient(180deg, var(--color-bg) 0%, #1E293B 50%, var(--color-bg) 100%);
    }
}

/* Tutorials */
.tutorials-index {
    max-width: 960px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

.tutorials-index h1 {
    font-size: 2rem;
    margin-bottom: 8px;
}

.tutorials-index .subtitle {
    color: var(--color-text-muted);
    margin-bottom: 36px;
}

.tutorials-lang {
    margin-bottom: 16px;
}

.tutorials-lang a {
    display: inline-block;
    padding: 4px 12px;
    text-decoration: none;
    color: var(--color-text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 6px;
}

.tutorials-lang a.active {
    color: var(--color-primary);
    background: var(--color-primary);
    background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.tutorial-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
}

.tutorial-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 20px;
    box-shadow: var(--shadow);
}

.tutorial-card h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.tutorial-card p {
    color: var(--color-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}

.video-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.video-wrap iframe {
    border: none;
    border-radius: 8px;
}

.video-placeholder {
    width: 270px;
    height: 480px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--color-primary) 5%, transparent);
    border: 2px dashed var(--color-border);
    border-radius: 8px;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    text-align: center;
    padding: 1rem;
}

/* Tablet (768px+) */
@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr;
    }

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

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

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

    .hero h1 {
        font-size: 2.6rem;
    }
}

/* Desktop (1024px+) */
@media (min-width: 1024px) {
    .feature-grid {
        grid-template-columns: 1fr 1fr 1fr 1fr;
    }

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

    .hero {
        padding: 80px 0 64px;
    }
}
