/* Brand Colors */
:root {
    --brand-green: #314017;      /* Intentions olive (iOS accent) */
    --green-dark: #222d10;       /* darker olive for gradients */
    --brand-cream: #eef1df;      /* warm pale sage accent */
    --accent-teal: #799496;      /* iOS dark-mode accent */
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-900: #111827;
}

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

body {
    font-family: 'Alegreya Sans', sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
}

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

/* Icons (CSS mask, inherits text color via currentColor) */
.icon {
    display: inline-block;
    width: 2rem;
    height: 2rem;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: contain;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: contain;
    background-color: currentColor;
}

.icon-list-bullet {
    -webkit-mask-image: url(/assets/icons/list_bullet.svg);
    mask-image: url(/assets/icons/list_bullet.svg);
}

.icon-gear {
    -webkit-mask-image: url(/assets/icons/gear.svg);
    mask-image: url(/assets/icons/gear.svg);
}

.icon-flame {
    -webkit-mask-image: url(/assets/icons/flame.svg);
    mask-image: url(/assets/icons/flame.svg);
}

.icon-checkmark-circle {
    -webkit-mask-image: url(/assets/icons/checkmark_circle.svg);
    mask-image: url(/assets/icons/checkmark_circle.svg);
}

.icon-calendar-badge-plus {
    -webkit-mask-image: url(/assets/icons/calendar_badge_plus.svg);
    mask-image: url(/assets/icons/calendar_badge_plus.svg);
}

.icon-person-badge-shield-checkmark {
    -webkit-mask-image: url(/assets/icons/person_badge_shield_checkmark.svg);
    mask-image: url(/assets/icons/person_badge_shield_checkmark.svg);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--brand-green) 0%, var(--green-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
}

.hero-content {
    max-width: 900px;
    margin: 0 auto;
}

.logo {
    width: 10rem;
    height: 10rem;
    border-radius: 1rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    margin-bottom: 2rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--brand-cream);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    font-size: 1.25rem;
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-family: inherit;
}

.btn-primary {
    background: var(--brand-cream);
    color: var(--brand-green);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: var(--gray-100);
    color: var(--gray-700);
    border: 2px solid var(--gray-200);
}

.btn-outline:hover {
    background: var(--gray-200);
}

.btn-sm {
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
}

/* Sections */
section {
    padding: 5rem 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    font-size: 1.25rem;
    color: var(--gray-600);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Features */
.features {
    background: var(--gray-50);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    text-align: center;
}

.feature-icon {
    width: 4rem;
    height: 4rem;
    background: rgba(49, 64, 23, 0.1);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: var(--brand-green);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-600);
}

/* How It Works */
.how-it-works {
    background: white;
}

.steps {
    max-width: 800px;
    margin: 3rem auto 0;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.step-number {
    width: 3rem;
    height: 3rem;
    min-width: 3rem;
    background: var(--brand-green);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.step-content p {
    color: var(--gray-600);
}

/* Why Intentions */
.why-intentions {
    background: var(--gray-50);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 3rem auto 0;
}

.why-grid.why-centered {
    max-width: 450px;
    grid-template-columns: 1fr;
}

.why-card {
    background: white;
    padding: 2.5rem;
    border-radius: 0.5rem;
    border: 2px solid var(--gray-200);
    text-align: center;
    position: relative;
}

.why-card.featured {
    background: var(--brand-green);
    color: white;
    border-color: var(--brand-green);
}

.why-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.why-description {
    color: var(--brand-cream);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.features-list {
    list-style: none;
    text-align: left;
    margin-bottom: 2rem;
}

.features-list li {
    padding: 0.5rem 0;
    color: var(--gray-600);
}

.why-card.featured .features-list li {
    color: #D7E3B4;
}

/* CTA Section */
.cta {
    background: var(--brand-green);
    color: white;
    text-align: center;
}

.cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    color: var(--brand-cream);
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* Footer */
.footer {
    background: var(--gray-900);
    color: var(--gray-600);
    padding: 3rem 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-column h4 {
    color: white;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column p {
    font-size: 0.875rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid var(--gray-700);
    padding-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
}

/* Contact Form */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-family: inherit;
    border: 1px solid var(--gray-700);
    border-radius: 0.375rem;
    background: var(--gray-900);
    color: white;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--gray-600);
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--brand-cream);
}

.contact-form textarea {
    resize: vertical;
    min-height: 60px;
}

.contact-form .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.contact-form .btn {
    align-self: flex-start;
}

.contact-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.contact-status {
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

.contact-status.success {
    color: #34D399;
}

.contact-status.error {
    color: #F87171;
}

/* Newsletter Signup */
.newsletter {
    background: var(--brand-cream);
}

.newsletter-content {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.newsletter h2 {
    color: var(--brand-green);
}

.newsletter .section-subtitle {
    color: var(--gray-700);
    margin-bottom: 2rem;
}

.newsletter-form {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
    position: relative;
}

.newsletter-form input[type="email"] {
    flex: 1 1 280px;
    min-width: 0;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    font-family: inherit;
    border: 2px solid transparent;
    border-radius: 0.5rem;
    background: white;
    color: var(--gray-900);
}

.newsletter-form input[type="email"]::placeholder {
    color: var(--gray-600);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--brand-green);
}

.newsletter-form .honeypot {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
}

.newsletter-form .btn {
    background: var(--brand-green);
    color: white;
    flex: 0 0 auto;
}

.newsletter-form .btn:hover {
    background: var(--green-dark);
}

.newsletter-form .btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.newsletter-status {
    font-size: 0.95rem;
    margin-top: 1rem;
    min-height: 1.25rem;
    color: var(--gray-700);
}

.newsletter-status.success {
    color: #2F5314;
    font-weight: 700;
}

.newsletter-status.error {
    color: #B91C1C;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Cookie Consent Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--gray-900);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 1000;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.cookie-content p {
    font-size: 0.875rem;
    color: var(--gray-200);
    margin: 0;
}

.cookie-content a {
    color: var(--brand-cream);
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

/* About / Content Pages */
.hero-sm {
    padding: 3rem 0;
}

.logo-sm {
    width: 6rem;
    height: 6rem;
}

.about-container {
    max-width: 700px;
}

.about-content h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.about-link {
    color: var(--brand-green);
    text-decoration: underline;
}

.about-link:hover {
    color: var(--green-dark);
}

.about-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 3rem;
    flex-wrap: wrap;
}

.btn-secondary-dark {
    background: transparent;
    color: var(--brand-green);
    border-color: var(--brand-green);
}

.btn-secondary-dark:hover {
    background: var(--brand-green);
    color: white;
}

/* Blog */
.post-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.post-card {
    border: 1px solid var(--gray-200);
    border-radius: 0.75rem;
    padding: 1.5rem 1.75rem;
    background: white;
    transition: box-shadow 0.15s ease;
}

.post-card:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.06), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
}

.post-card h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
    line-height: 1.3;
}

.post-card h3 a {
    color: var(--gray-900);
    text-decoration: none;
}

.post-card h3 a:hover {
    color: var(--brand-green);
}

.post-card-meta {
    color: var(--gray-600);
    font-size: 0.95rem;
    margin-bottom: 0.75rem;
}

.post-card-link {
    color: var(--brand-green);
    text-decoration: none;
    font-weight: 700;
}

.post-card-link:hover {
    text-decoration: underline;
}

.post-lead {
    font-size: 1.25rem !important;
    color: var(--gray-700) !important;
    font-style: italic;
    margin-bottom: 2rem !important;
}

.post h2 {
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post h3 {
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-size: 1.5rem;
}

.post ul,
.post ol {
    color: var(--gray-600);
    font-size: 1.125rem;
    line-height: 1.8;
    margin: 1rem 0 1rem 1.5rem;
}

.post blockquote {
    border-left: 3px solid var(--brand-green);
    padding: 0.25rem 0 0.25rem 1.25rem;
    margin: 1.5rem 0;
    color: var(--gray-700);
    font-style: italic;
}

.post code {
    background: var(--gray-100);
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    font-size: 0.95em;
}

.post pre {
    background: var(--gray-100);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post pre code {
    background: transparent;
    padding: 0;
}

.post img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.post-tags {
    margin-top: 2.5rem;
    color: var(--gray-600);
    font-size: 1rem !important;
}

.post-tag {
    color: var(--brand-green);
    text-decoration: none;
    margin-right: 0.5rem;
    font-weight: 700;
}

.post-tag:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1.125rem;
    }

    section h2 {
        font-size: 2rem;
    }

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

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

    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .step-number {
        margin: 0 auto;
    }

    .cookie-content {
        flex-direction: column;
        text-align: center;
    }

    .newsletter-form {
        flex-direction: column;
        align-items: stretch;
    }

    .newsletter-form .btn {
        width: 100%;
    }
}
