:root {
    --bg: #f6f1eb;
    --surface: #fffdfb;
    --primary: #7a3e37;
    --accent: #a8837a;
    --text: #4a2e2a;
    --muted: #7f6a65;
    --border: #e7d9cd;
}

* { box-sizing: border-box; }
body.public-body {
    margin: 0;
    font-family: "Segoe UI", system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
}

.public-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(246, 241, 235, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}
.public-nav {
    max-width: 1160px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.public-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--primary); font-family: Georgia, serif; font-size: 1.3rem; }
.public-logo img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); }
.public-links { display: flex; align-items: center; gap: 18px; }
.public-links a { text-decoration: none; color: var(--text); }

.btn-primary-pill, .btn-outline-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    padding: 10px 18px;
    text-decoration: none;
    font-weight: 600;
}
.btn-primary-pill { background: var(--primary); color: #fff; border: 1px solid var(--primary); }
.btn-outline-pill { background: var(--surface); color: var(--primary); border: 1px solid var(--border); }

.public-alert { max-width: 1160px; margin: 12px auto; padding: 10px 14px; border-radius: 12px; background: #e8f6eb; color: #21643b; border: 1px solid #c8e8d0; }
.hero-section { max-width: 1160px; margin: 0 auto; padding: 48px 20px; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 36px; align-items: center; }
.hero-copy h1 { font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); margin: 0 0 12px; color: var(--primary); }
.eyebrow { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--muted); }
.subtitle { color: var(--muted); font-size: 1.05rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.hero-visual { position: relative; height: 330px; border-radius: 26px; background: linear-gradient(135deg, #fffaf5, #f3e7dd); border: 1px solid var(--border); overflow: hidden; }
.tree-orb { position: absolute; width: 220px; height: 220px; border-radius: 999px; background: radial-gradient(circle at 30% 30%, #e8d4c2, #b98569); left: 50%; top: 50%; transform: translate(-50%, -45%); animation: pulse 4s infinite ease-in-out; }
.tree-branch { position: absolute; width: 5px; height: 220px; background: #8a5f50; left: 50%; top: 48px; border-radius: 99px; }
.tree-branch.b2 { transform: rotate(38deg); transform-origin: top center; left: 46%; top: 88px; height: 130px; }
.tree-branch.b3 { transform: rotate(-38deg); transform-origin: top center; left: 54%; top: 88px; height: 130px; }
@keyframes pulse { 0%, 100% { transform: translate(-50%, -45%) scale(1); } 50% { transform: translate(-50%, -45%) scale(1.06); } }

.story-section, .features-grid, .app-preview, .testimonials, .download-section, .page-section {
    max-width: 1160px;
    margin: 0 auto;
    padding: 30px 20px;
}
.story-section h2, .app-preview h2, .testimonials h2, .download-section h2, .page-section h1 {
    font-family: Georgia, serif;
    color: var(--primary);
}

.features-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.feature-card, .testimonial-card, .blog-card, .empty-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 8px 24px rgba(90, 48, 42, 0.05);
}
.feature-card h3, .blog-card h3 { margin-top: 0; font-family: Georgia, serif; color: var(--primary); }
.mockup-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.mockup { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 10px; min-height: 240px; display: flex; align-items: center; justify-content: center; }
.mockup img { max-width: 100%; border-radius: 12px; }
.testimonial-grid, .blog-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.download-section { text-align: center; }
.download-section .qr { width: 140px; margin-top: 14px; border-radius: 10px; border: 1px solid var(--border); }

.support-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.support-form, .faq-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 16px; }
.support-form label { display: block; margin-bottom: 10px; font-size: .9rem; color: var(--muted); }
.support-form input, .support-form textarea {
    width: 100%;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 9px 10px;
    margin-top: 6px;
}
.faq-panel details { border-top: 1px solid var(--border); padding: 8px 0; }

.blog-article .blog-cover { width: 100%; border-radius: 16px; margin: 10px 0 16px; border: 1px solid var(--border); }
.blog-body { line-height: 1.8; }
.back-link { color: var(--muted); text-decoration: none; }

.public-footer { border-top: 1px solid var(--border); margin-top: 24px; padding: 24px 20px 14px; }
.public-footer-inner { max-width: 1160px; margin: 0 auto; display: flex; justify-content: space-between; gap: 20px; }
.public-footer-links { display: flex; gap: 14px; flex-wrap: wrap; }
.public-footer-links a { color: var(--muted); text-decoration: none; }
.copyright { max-width: 1160px; margin: 16px auto 0; color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
    .hero-section { grid-template-columns: 1fr; }
    .support-layout { grid-template-columns: 1fr; }
    .public-links a:not(.btn-primary-pill) { display: none; }
}
