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

:root {
    --green-dark: #2d3a24;
    --green: #59714b;
    --green-light: #7a9468;
    --bg: #f5f9f5;
    --bg-gradient: linear-gradient(135deg, #e8f0e8 0%, #f5f9f5 50%, #eef5ee 100%);
    --card: #ffffff;
    --text: #333333;
    --muted: #666666;
    --border: #e8ece8;
    --accent-warm: #c9a227;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--bg-gradient);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

a {
    color: var(--green);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* Site header */
.site-header {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 14px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.05rem;
    color: var(--green-dark);
    text-decoration: none;
}

.logo:hover {
    text-decoration: none;
    color: var(--green);
}

.logo-img {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
}

.logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--green) 0%, var(--green-light) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

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

.nav-links a {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--muted);
    text-decoration: none;
}

.nav-links a:hover {
    color: var(--green-dark);
    text-decoration: none;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--green);
    color: #fff;
    box-shadow: 0 4px 14px rgba(89, 113, 75, 0.35);
}

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

.btn-outline {
    background: transparent;
    color: var(--green-dark);
    border: 2px solid var(--green);
}

.btn-outline:hover {
    background: var(--green);
    color: #fff;
}

/* Landing page */
.hero {
    max-width: 1100px;
    margin: 0 auto;
    padding: 64px 24px 48px;
    text-align: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(89, 113, 75, 0.12);
    color: var(--green-dark);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: clamp(2rem, 5vw, 3.2rem);
    color: var(--green-dark);
    line-height: 1.2;
    margin-bottom: 18px;
    font-weight: 800;
}

.hero .tagline {
    font-size: clamp(1.05rem, 2.5vw, 1.35rem);
    color: var(--muted);
    max-width: 640px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 14px;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 48px;
}

.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 48px 24px;
}

.section-title {
    text-align: center;
    font-size: 1.85rem;
    color: var(--green-dark);
    margin-bottom: 12px;
}

.section-subtitle {
    text-align: center;
    color: var(--muted);
    max-width: 560px;
    margin: 0 auto 40px;
}

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

.feature-card {
    background: var(--card);
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    border: 1px solid var(--border);
}

.feature-card h3 {
    color: var(--green-dark);
    font-size: 1.15rem;
    margin-bottom: 10px;
}

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

.download-section {
    background: var(--card);
    border-radius: 16px;
    padding: 48px 32px;
    text-align: center;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.07);
    border: 1px solid var(--border);
    margin: 0 24px 48px;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* App Store / Google Play download cards */
.stores {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-top: 8px;
}

@media (min-width: 420px) {
    .stores {
        flex-direction: row;
        justify-content: center;
        align-items: stretch;
        gap: 14px;
    }
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 16px 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    background: #0d0d0d;
    color: #fff;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 184px;
    margin: 0 auto;
}

@media (min-width: 420px) {
    .store-btn {
        margin: 0;
        flex: 0 1 184px;
    }
}

.store-btn:hover:not(.store-btn--soon) {
    background: #1a1a1a;
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}

.store-btn--soon {
    background: #3a3a3a;
    opacity: 0.75;
    cursor: not-allowed;
    pointer-events: none;
}

.store-btn-icon {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    object-fit: contain;
    display: block;
}

.store-btn-divider {
    width: 1px;
    align-self: stretch;
    min-height: 28px;
    margin: 2px 0;
    background: rgba(255, 255, 255, 0.22);
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    line-height: 1.15;
    min-width: 0;
}

.store-btn-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

.store-btn-name {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.store-note {
    margin: 16px 0 0;
    font-size: 0.85rem;
    color: var(--muted);
}

.hero-stores {
    justify-content: center;
    margin-bottom: 8px;
}

.hero-stores .store-btn {
    max-width: 200px;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    background: var(--card);
    border-radius: 12px;
    padding: 22px 24px;
    margin-bottom: 14px;
    border: 1px solid var(--border);
}

.faq-item h3 {
    color: var(--green-dark);
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.faq-item p {
    color: var(--muted);
    font-size: 0.98rem;
}

/* Legal / doc pages */
.page-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 40px 24px 64px;
}

.doc-card {
    background: var(--card);
    padding: 48px;
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

.doc-card h1 {
    color: var(--green-dark);
    font-size: 2.2rem;
    margin-bottom: 10px;
    border-bottom: 3px solid var(--green);
    padding-bottom: 14px;
}

.doc-meta {
    color: var(--muted);
    font-size: 0.92rem;
    margin-bottom: 28px;
    font-style: italic;
}

.doc-card h2 {
    color: var(--green-dark);
    font-size: 1.55rem;
    margin-top: 36px;
    margin-bottom: 14px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}

.doc-card h2:first-of-type {
    border-top: none;
    padding-top: 0;
    margin-top: 0;
}

.doc-card h3 {
    color: var(--green-dark);
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.doc-card p,
.doc-card li {
    margin-bottom: 14px;
    font-size: 1.02rem;
}

.doc-card ul,
.doc-card ol {
    margin-left: 24px;
    margin-bottom: 16px;
}

.callout {
    background: #f0f5f0;
    border-left: 4px solid var(--green);
    padding: 18px 20px;
    border-radius: 0 8px 8px 0;
    margin: 20px 0;
}

.callout-warn {
    background: #f8f4e8;
    border-left-color: var(--accent-warm);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px;
    margin-top: 24px;
}

.link-card {
    display: block;
    background: #f8faf8;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 16px 18px;
    font-weight: 600;
    color: var(--green-dark);
    text-decoration: none;
}

.link-card:hover {
    background: #eef4ee;
    text-decoration: none;
    color: var(--green);
}

.site-footer {
    background: var(--green-dark);
    color: rgba(255, 255, 255, 0.85);
    padding: 40px 24px;
    margin-top: 48px;
}

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 24px;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.9);
}

.site-footer a:hover {
    color: #fff;
}

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

@media (max-width: 768px) {
    .doc-card {
        padding: 28px 20px;
    }

    .doc-card h1 {
        font-size: 1.75rem;
    }

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