/* Non-critical styles — loaded asynchronously. Above-the-fold critical CSS is inlined in <head>. */

:root {
    --brand-green: #9fc22e;
    --brand-green-dark: #7da31e;
    --brand-green-light: #c5e066;
    --brand-green-pale: #e8f5c8;
    --text-primary: #0f1f1a;
    --text-secondary: #3d4f47;
    --text-muted: #6b7b73;
    --bg-cream: #f5f7f2;
    --bg-white: #ffffff;
}

/* Site header nav (Blog link on home — base in index.html critical CSS) */
.header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}
.header-nav a:hover {
    color: var(--text-primary);
}

/* Sticky CTA Bar */
.sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 31, 26, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 2rem;
    z-index: 1000;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.sticky-cta.visible { transform: translateY(0); }
.sticky-cta-text { color: rgba(255,255,255,0.9); font-size: 0.9375rem; font-weight: 500; }
.sticky-cta-text strong { color: var(--brand-green); }

/* Header scroll shadow (base header styles are in critical CSS) */
header { transition: box-shadow 0.3s ease; }
header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 31, 26, 0.25);
}
.btn-primary { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(15, 31, 26, 0.3);
}

/* Phone mockup hover (non-critical; desktop-only flourish) */
.phone-mockup { transition: transform 0.5s ease; }
.phone-mockup:hover {
    transform: perspective(1000px) rotateY(-2deg) rotateX(1deg);
}

/* FAQ Section */
.faq-section { padding: 5rem 2rem; background: white; }
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-section h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); margin-bottom: 0.5rem; letter-spacing: -0.5px; }
.faq-intro { color: var(--text-secondary); font-size: 1.0625rem; margin-bottom: 2rem; line-height: 1.6; }
.faq-list { display: flex; flex-direction: column; gap: 1.25rem; }
.faq-item { background: var(--bg-cream); border-radius: 16px; padding: 1.25rem 1.5rem; border: 1px solid rgba(159, 194, 46, 0.2); }
.faq-item h3 { font-size: 1.0625rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--text-primary); }
.faq-item p { font-size: 0.9375rem; color: var(--text-secondary); line-height: 1.65; margin: 0; }
.faq-item p a { color: var(--brand-green-dark); font-weight: 600; }

/* Floating cards (hidden on mobile via critical CSS) */
.float-card {
    position: absolute;
    background: white;
    border-radius: 16px;
    padding: 12px 16px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.12);
    font-size: 0.8125rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: floatBounce 5s ease-in-out infinite;
    z-index: 5;
}
.float-card.top { top: 8%; left: -10%; animation-delay: 0s; }
.float-card.middle { top: 38%; left: -15%; animation-delay: 1.5s; }
.float-card.bottom { bottom: 22%; right: -8%; animation-delay: 0.8s; }
@keyframes floatBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.float-icon {
    width: 36px; height: 36px;
    background: var(--brand-green-pale);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.125rem;
}
.float-card .text { display: flex; flex-direction: column; }
.float-card .label { font-size: 0.6875rem; color: var(--text-muted); font-weight: 400; }

/* Problem-Solution Section */
.problem-section { padding: 6rem 2rem; background: white; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.problem-content h2 { font-size: clamp(2rem, 3.5vw, 2.5rem); line-height: 1.2; margin-bottom: 1.5rem; letter-spacing: -1px; }
.problem-content h2 .strike { text-decoration: line-through; color: var(--text-muted); opacity: 0.5; }
.problem-list { list-style: none; margin-bottom: 2rem; }
.problem-list li { display: flex; align-items: flex-start; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid rgba(0,0,0,0.06); }
.problem-list .icon {
    width: 40px; height: 40px;
    background: var(--brand-green-pale);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; flex-shrink: 0;
}
.problem-list .content h4 { font-size: 1rem; font-weight: 600; margin-bottom: 0.25rem; }
.problem-list .content p { font-size: 0.9375rem; color: var(--text-secondary); }

.comparison-visual { background: var(--bg-cream); border-radius: 24px; padding: 2rem; }
.comparison-card { background: white; border-radius: 16px; padding: 1.5rem; margin-bottom: 1rem; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
.comparison-card.old { opacity: 0.6; border: 2px dashed rgba(0,0,0,0.1); }
.comparison-card.new { border: 2px solid var(--brand-green); position: relative; }
.comparison-card.new::after {
    content: '✨ Eattie way';
    position: absolute; top: -12px; right: 16px;
    background: var(--brand-green); color: var(--text-primary);
    font-size: 0.75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 100px;
}
.comparison-card h4 { font-size: 0.9375rem; margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.comparison-card p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.6; }

/* Features Section */
.features { padding: 6rem 2rem; background: var(--bg-cream); }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-tag {
    display: inline-block;
    background: var(--brand-green); color: var(--text-primary);
    padding: 0.5rem 1rem; border-radius: 100px;
    font-size: 0.75rem; font-weight: 700;
    margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 1px;
}
.section-title { font-size: clamp(2rem, 4vw, 2.75rem); margin-bottom: 1rem; letter-spacing: -1px; }
.section-subtitle { font-size: 1.0625rem; color: var(--text-secondary); max-width: 600px; margin: 0 auto; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.feature-card {
    background: white; border-radius: 20px; padding: 2rem;
    transition: all 0.3s ease; border: 1px solid transparent;
}
.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.1);
    border-color: var(--brand-green);
}
.feature-icon {
    width: 56px; height: 56px;
    background: var(--brand-green-pale); border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem; font-size: 1.5rem;
}
.feature-card h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.625rem; }
.feature-card p { color: var(--text-secondary); font-size: 0.9375rem; line-height: 1.6; }

/* How It Works Section */
.how-it-works { padding: 6rem 2rem; background: var(--text-primary); position: relative; overflow: hidden; }
.how-it-works::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(159, 194, 46, 0.1) 0%, transparent 50%);
}
.how-it-works .section-header { position: relative; z-index: 1; }
.how-it-works .section-tag { background: rgba(159, 194, 46, 0.2); color: var(--brand-green); }
.how-it-works .section-title { color: white; }
.how-it-works .section-subtitle { color: rgba(255,255,255,0.7); }
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; z-index: 1; }
.step-card { text-align: center; padding: 2rem; }
.step-number {
    width: 48px; height: 48px;
    background: var(--brand-green); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.25rem; font-weight: 700; color: var(--text-primary);
    margin: 0 auto 1.5rem;
}
.step-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.step-card h3 { color: white; font-size: 1.125rem; margin-bottom: 0.5rem; }
.step-card p { color: rgba(255,255,255,0.7); font-size: 0.9375rem; line-height: 1.6; }

/* Final CTA */
.final-cta {
    padding: 6rem 2rem;
    background: linear-gradient(180deg, var(--brand-green-pale) 0%, var(--bg-cream) 100%);
    text-align: center;
}
.final-cta h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1rem; letter-spacing: -1px; }
.final-cta p { font-size: 1.125rem; color: var(--text-secondary); margin-bottom: 2rem; max-width: 500px; margin-left: auto; margin-right: auto; }
.final-cta .btn-primary { margin: 0 auto 1.5rem; }
.guarantee {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: white; padding: 0.75rem 1.25rem; border-radius: 100px;
    font-size: 0.875rem; color: var(--text-secondary);
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.guarantee svg { width: 20px; height: 20px; color: var(--brand-green); }

/* Footer */
footer { background: var(--text-primary); padding: 3rem 2rem 2rem; }
.footer-inner { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.875rem; }
.footer-icon { width: 48px; height: 48px; border-radius: 12px; flex-shrink: 0; }
.footer-logo { font-size: 1.5rem; font-weight: 700; color: var(--brand-green); line-height: 1.2; }
.footer-tagline { color: rgba(255, 255, 255, 0.55); font-size: 0.8125rem; margin-top: 0.2rem; line-height: 1.4; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.875rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--brand-green); }
.footer-copy {
    color: rgba(255,255,255,0.4); font-size: 0.8125rem;
    width: 100%; text-align: center; margin-top: 2rem;
    padding-top: 2rem; border-top: 1px solid rgba(255,255,255,0.05);
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid, .steps-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .sticky-cta { padding: 0.875rem 1rem; gap: 1rem; }
    .sticky-cta-text { display: none; }
    .problem-grid { grid-template-columns: 1fr; gap: 3rem; }
    .features-grid, .steps-grid { grid-template-columns: 1fr; }
    .footer-inner { flex-direction: column; text-align: center; }
    .footer-links { flex-direction: column; gap: 1rem; }
}

/* =============================================================================
   Blog (listing + article pages under /blog/)
   ============================================================================= */

.blog-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 1rem 2rem;
    background: rgba(245, 247, 242, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}
.blog-header .header-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.blog-header .logo-link {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    text-decoration: none;
    color: inherit;
}
.blog-header .logo-img {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.blog-header .logo-word {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--brand-green-dark);
    letter-spacing: -1px;
}
.blog-header .header-right {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.blog-header .header-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.blog-header .header-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
}
.blog-header .header-nav a[aria-current="page"] {
    color: var(--text-primary);
}
.blog-header .header-nav a:hover {
    color: var(--text-primary);
}
.blog-header .nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--text-primary);
    color: #fff;
    padding: 0.75rem 1.5rem;
    border-radius: 100px;
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
}
.blog-header .nav-cta svg {
    width: 18px;
    height: 18px;
}

.blog-shell {
    min-height: 100vh;
    background: var(--bg-cream);
    color: var(--text-primary);
    font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}

.blog-main {
    padding: 6rem 1.5rem 4rem;
}

.blog-index-intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    padding: 0 0.25rem;
}
.blog-index-intro h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    letter-spacing: -1px;
    margin-bottom: 0.75rem;
}
.blog-index-intro p {
    color: var(--text-secondary);
    font-size: 1.0625rem;
}

.blog-post-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

a.blog-post-card {
    display: block;
    background: #fff;
    border-radius: 18px;
    padding: 1.5rem 1.75rem;
    border: 1px solid rgba(15, 31, 26, 0.08);
    text-decoration: none;
    color: inherit;
    box-shadow:
        0 1px 2px rgba(15, 31, 26, 0.04),
        0 10px 28px rgba(15, 31, 26, 0.07);
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Listing card with thumbnail image (square crop on /blog) */
a.blog-post-card--featured {
    display: grid;
    grid-template-columns: clamp(124px, 28vw, 176px) 1fr;
    gap: 0;
    align-items: stretch;
    padding: 0;
    overflow: hidden;
}
.blog-post-card-thumb {
    position: relative;
    width: 100%;
    min-height: 168px;
    height: 100%;
    background: linear-gradient(145deg, #eef2ec 0%, #e4e9e0 100%);
    border-radius: 17px 0 0 17px;
    overflow: hidden;
    isolation: isolate;
}
/* Soft seam between image and copy */
.blog-post-card-thumb::after {
    content: "";
    position: absolute;
    top: 12%;
    right: 0;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(
        to bottom,
        transparent,
        rgba(15, 31, 26, 0.09) 20%,
        rgba(15, 31, 26, 0.09) 80%,
        transparent
    );
    pointer-events: none;
    z-index: 2;
}
.blog-post-card-thumb img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}
.blog-post-card-text {
    padding: 1.5rem 1.625rem 1.5rem 1.625rem;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.blog-post-card--featured .blog-post-meta {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.625rem;
}
.blog-post-card--featured h2 {
    font-size: clamp(1.125rem, 3vw, 1.375rem);
    font-weight: 700;
    line-height: 1.28;
    letter-spacing: -0.035em;
    margin-bottom: 0.625rem;
    color: var(--text-primary);
}
.blog-post-card--featured .blog-post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.58;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.blog-post-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    margin-top: auto;
    padding-top: 1rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--brand-green-dark);
}
.blog-post-card-cta svg {
    width: 17px;
    height: 17px;
    flex-shrink: 0;
    transition: transform 0.22s ease;
}
a.blog-post-card--featured:hover .blog-post-card-thumb img {
    transform: scale(1.045);
}
a.blog-post-card:hover {
    border-color: rgba(159, 194, 46, 0.45);
    box-shadow:
        0 2px 4px rgba(15, 31, 26, 0.05),
        0 18px 44px rgba(15, 31, 26, 0.11);
    transform: translateY(-3px);
}
a.blog-post-card--featured:hover {
    box-shadow:
        0 2px 6px rgba(15, 31, 26, 0.06),
        0 22px 52px rgba(15, 31, 26, 0.12),
        0 0 0 1px rgba(159, 194, 46, 0.2);
}
a.blog-post-card--featured:hover .blog-post-card-cta svg {
    transform: translateX(4px);
}
a.blog-post-card:focus-visible {
    outline: 2px solid var(--brand-green);
    outline-offset: 3px;
}

/* Non-featured cards only (featured uses rules above) */
.blog-post-card:not(.blog-post-card--featured) .blog-post-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}
.blog-post-card:not(.blog-post-card--featured) h2 {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}
.blog-post-card:not(.blog-post-card--featured) .blog-post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.blog-article-wrap {
    max-width: 680px;
    margin: 0 auto;
}
.blog-article-wrap .blog-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--brand-green-dark);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    margin-bottom: 1.25rem;
}
.blog-article-wrap .blog-back:hover {
    text-decoration: underline;
}
.blog-article-wrap .blog-back svg {
    width: 18px;
    height: 18px;
}

.blog-article {
    background: #fff;
    border-radius: 20px;
    padding: 2rem 1.75rem 2.25rem;
    border: 1px solid rgba(159, 194, 46, 0.2);
}
.blog-article-cover {
    margin: 0 0 1.5rem;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg-cream);
    border: 1px solid rgba(159, 194, 46, 0.15);
}
.blog-article-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    display: block;
}

.blog-article header {
    margin-bottom: 1.75rem;
}
.blog-article .blog-post-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}
.blog-article h1 {
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 1rem;
}
.blog-article .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.blog-article .blog-body h2 {
    font-size: 1.25rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    letter-spacing: -0.3px;
}
.blog-article .blog-body p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 1rem;
}
.blog-article .blog-body ul,
.blog-article .blog-body ol {
    margin: 0 0 1rem 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}
.blog-article .blog-body ol {
    padding-left: 1.35rem;
}
.blog-article .blog-body li {
    margin-bottom: 0.5rem;
}

.blog-disclaimer {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    line-height: 1.6;
}

.blog-footer {
    background: var(--text-primary);
    padding: 2.5rem 1.5rem 2rem;
    margin-top: 3rem;
}
.blog-footer .footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
}
.blog-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem 2rem;
    justify-content: center;
}
.blog-footer .footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.875rem;
}
.blog-footer .footer-links a:hover {
    color: var(--brand-green);
}
.blog-footer .footer-copy {
    width: 100%;
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.8125rem;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

@media (max-width: 640px) {
    .blog-header .header-right {
        gap: 0.75rem;
    }
    .blog-header .nav-cta {
        padding: 0.625rem 1rem;
        font-size: 0.8125rem;
    }
    .blog-header .nav-cta svg {
        width: 16px;
        height: 16px;
    }
    .blog-article {
        padding: 1.5rem 1.25rem 2rem;
    }
}

@media (max-width: 560px) {
    a.blog-post-card--featured {
        grid-template-columns: 1fr;
    }
    .blog-post-card-thumb {
        aspect-ratio: 1 / 1;
        width: min(280px, 86%);
        min-height: 0;
        height: auto;
        margin: 1rem auto 0;
        border-radius: 16px;
        border-bottom: 1px solid rgba(15, 31, 26, 0.07);
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
    }
    .blog-post-card-thumb::after {
        display: none;
    }
    .blog-post-card-thumb img {
        position: absolute;
        inset: 0;
    }
    .blog-post-card-text {
        padding: 1.15rem 1.35rem 1.45rem;
        text-align: left;
    }
    .blog-post-card-cta {
        padding-top: 0.875rem;
    }
}
