/* GastosApp — Site público */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --green:      #1B6E3C;
    --green-dark: #145530;
    --green-light:#E8F5E9;
    --text:       #1a1a2e;
    --muted:      #6b7280;
    --bg:         #ffffff;
    --bg2:        #f9fafb;
    --border:     #e5e7eb;
    --radius:     12px;
    --shadow:     0 4px 24px rgba(0,0,0,.08);
}

body { font-family: 'Inter', sans-serif; color: var(--text); background: var(--bg); line-height: 1.6; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

/* ── Navbar ─────────────────────────────────────────────────────────────────── */
.navbar { background: #fff; border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 100; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.2rem; color: var(--text); }
.logo-icon { font-size: 1.5rem; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { color: var(--muted); font-size: .95rem; font-weight: 500; transition: color .2s; }
.nav-links a:hover { color: var(--green); text-decoration: none; }
.nav-toggle { display: none; background: none; border: none; font-size: 1.5rem; cursor: pointer; }

/* ── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
    background: linear-gradient(135deg, var(--green-light) 0%, #fff 60%);
    padding: 96px 0 72px;
    text-align: center;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; line-height: 1.2; margin-bottom: 20px; }
.hero h1 span { color: var(--green); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 560px; margin: 0 auto 36px; }
.badge-new { background: var(--green); color: #fff; font-size: .75rem; font-weight: 600;
    padding: 4px 12px; border-radius: 99px; display: inline-block; margin-bottom: 16px; }

/* ── Botões ─────────────────────────────────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
    border-radius: var(--radius); font-weight: 600; font-size: 1rem; cursor: pointer;
    border: none; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); text-decoration: none; color: #fff; }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }
.btn-outline:hover { background: var(--green-light); text-decoration: none; }
.btn-group { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── Mockup ─────────────────────────────────────────────────────────────────── */
.phone-mockup {
    display: flex; justify-content: center; margin-top: 48px;
}
.phone-frame {
    width: 220px; height: 440px;
    background: #1a1a2e; border-radius: 36px;
    border: 6px solid #333;
    box-shadow: 0 24px 64px rgba(0,0,0,.25), inset 0 0 0 1px #444;
    overflow: hidden; position: relative;
    display: flex; flex-direction: column; align-items: center; padding: 16px 12px;
}
.phone-screen { width: 100%; background: #f9fafb; border-radius: 24px; flex: 1; overflow: hidden; }
.phone-ui { padding: 12px; }
.phone-ui .pbar { height: 8px; border-radius: 4px; background: var(--green); margin-bottom: 6px; }
.phone-ui .pcard { background: #fff; border-radius: 8px; padding: 8px; margin-bottom: 6px;
    box-shadow: 0 1px 4px rgba(0,0,0,.08); font-size: 9px; color: #333; }
.phone-ui .pcard .pval { font-size: 14px; font-weight: 700; color: var(--green); }
.phone-ui .ptx { display: flex; justify-content: space-between; font-size: 8px;
    background: #fff; padding: 5px 8px; border-radius: 6px; margin-bottom: 4px; }
.phone-ui .ptx .neg { color: #ef4444; font-weight: 600; }
.phone-ui .ptx .pos { color: var(--green); font-weight: 600; }
.phone-notch { width: 60px; height: 6px; background: #333; border-radius: 3px; margin-bottom: 12px; }

/* ── Features ───────────────────────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg2); }
.section-title { text-align: center; margin-bottom: 56px; }
.section-title h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 12px; }
.section-title p { color: var(--muted); max-width: 520px; margin: 0 auto; }

.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.feature-card {
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
    padding: 28px; transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon { font-size: 2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; }

/* ── Stats ──────────────────────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.stat-card { text-align: center; padding: 32px 16px; background: #fff;
    border-radius: var(--radius); border: 1px solid var(--border); }
.stat-card .stat-num { font-size: 2.4rem; font-weight: 800; color: var(--green); }
.stat-card .stat-label { color: var(--muted); font-size: .9rem; margin-top: 4px; }

/* ── Download ───────────────────────────────────────────────────────────────── */
.download-section { background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #fff; text-align: center; padding: 80px 24px; }
.download-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.download-section p { opacity: .85; margin-bottom: 32px; }
.store-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff;
    color: var(--text); padding: 12px 24px; border-radius: var(--radius);
    font-weight: 600; text-decoration: none; transition: opacity .2s; }
.store-btn:hover { opacity: .9; text-decoration: none; color: var(--text); }
.store-btn .store-icon { font-size: 1.5rem; }

/* ── Formulário de contacto ─────────────────────────────────────────────────── */
.contact-form { max-width: 520px; margin: 0 auto; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 500; margin-bottom: 6px; font-size: .9rem; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 12px 16px; border: 1px solid var(--border);
    border-radius: var(--radius); font-size: .95rem; font-family: inherit;
    transition: border-color .2s; background: #fff;
}
.form-group input:focus, .form-group textarea:focus {
    outline: none; border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(27,110,60,.1);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.msg-success { background: var(--green-light); color: var(--green-dark);
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 500; }
.msg-error { background: #fee2e2; color: #dc2626;
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 500; }
.msg-warn { background: #fef9c3; color: #854d0e;
    padding: 12px 16px; border-radius: var(--radius); margin-bottom: 16px; font-weight: 500; }

/* ── Páginas legais ─────────────────────────────────────────────────────────── */
.legal-page { max-width: 780px; margin: 60px auto; padding: 0 24px 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .updated { color: var(--muted); font-size: .9rem; margin-bottom: 40px; }
.legal-page h2 { font-size: 1.2rem; font-weight: 700; margin: 32px 0 12px; color: var(--green); }
.legal-page p, .legal-page li { color: #374151; line-height: 1.8; margin-bottom: 10px; }
.legal-page ul, .legal-page ol { padding-left: 24px; }
.legal-page a { color: var(--green); }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
.footer { background: #111827; color: #9ca3af; padding: 56px 0 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 48px; padding-bottom: 48px; }
.footer-brand .logo-text { color: #fff; font-size: 1.1rem; }
.footer-brand .logo-icon { font-size: 1.3rem; }
.footer-brand p { margin-top: 12px; font-size: .9rem; max-width: 260px; }
.footer-links { display: flex; gap: 48px; }
.footer-links h4 { color: #fff; font-size: .9rem; margin-bottom: 14px; }
.footer-links a { display: block; color: #9ca3af; font-size: .9rem; margin-bottom: 8px; }
.footer-links a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid #1f2937; padding: 20px 24px; text-align: center; font-size: .85rem; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links { display: none; flex-direction: column; position: absolute;
        top: 64px; left: 0; right: 0; background: #fff;
        border-bottom: 1px solid var(--border); padding: 16px 24px; gap: 16px; }
    .nav-links.open { display: flex; }
    .nav-toggle { display: block; }
    .footer-inner { grid-template-columns: 1fr; }
    .footer-links { flex-direction: column; gap: 24px; }
    .hero { padding: 60px 0 48px; }
}
