/* InvoiceMate website — same palette and type as the mobile app (src/theme). */
:root {
    --navy: #171E4E;
    --primary: #2F3C8F;
    --primary-light: #EEF1FD;
    --gold: #C3964D;
    --ink: #1C2340;
    --ink-2: #3D4568;
    --muted: #6B7390;
    --bg: #F4F6FB;
    --surface: #FFFFFF;
    --border: #E6E9F4;
    --success: #0F9D76;
    --success-bg: #E7F7EF;
    --radius: 16px;
    --shadow: 0 16px 40px rgba(23, 30, 78, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: "Manrope", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: "Sora", "Manrope", sans-serif; line-height: 1.2; margin: 0; color: var(--ink); }

a { color: var(--primary); }

img { max-width: 100%; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.gold { color: var(--gold); }

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 24px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--primary);
    transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); background: var(--navy); border-color: var(--navy); }
.btn-small { padding: 8px 16px; font-size: 14px; border-radius: 10px; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); color: var(--primary); border-color: var(--primary); }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d4a95f; border-color: #d4a95f; }
.btn-disabled, .btn-disabled:hover { cursor: default; transform: none; opacity: .85; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(244, 246, 251, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: "Sora", sans-serif; font-weight: 800; font-size: 20px; color: var(--navy); }
.logo img { border-radius: 8px; }
.logo-light { color: #fff; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav-links a:not(.btn):hover { color: var(--primary); }

/* Hero */
.hero { padding: 72px 0 112px; background: radial-gradient(1000px 500px at 85% 10%, #E3E8FB 0%, transparent 60%); }
.hero-inner { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.eyebrow { display: inline-block; padding: 6px 12px; border-radius: 999px; background: var(--primary-light); color: var(--primary); font-size: 13px; font-weight: 700; margin-bottom: 20px; }
.hero h1 { font-size: 52px; font-weight: 800; letter-spacing: -1px; }
.lead { font-size: 19px; color: var(--ink-2); margin: 20px 0 32px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { margin-top: 20px; font-size: 14px; color: var(--muted); }

.hero-visual { position: relative; }
.invoice-card { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); max-width: 400px; margin-left: auto; }
.invoice-head { display: flex; justify-content: space-between; align-items: flex-start; }
.invoice-biz { font-family: "Sora", sans-serif; font-weight: 700; font-size: 18px; }
.invoice-sub { font-size: 13px; color: var(--muted); }
.pill { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.pill-paid { background: var(--success-bg); color: var(--success); }
.invoice-to { margin: 18px 0 12px; font-size: 14px; color: var(--ink-2); }
.invoice-rows .row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.invoice-total { display: flex; justify-content: space-between; margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: var(--navy); color: #fff; font-family: "Sora", sans-serif; font-weight: 700; }
.invoice-share { display: flex; gap: 8px; margin-top: 16px; }
.share { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 8px; background: var(--primary-light); color: var(--primary); }
.share-wa { background: #E7F7EF; color: #128C4B; }
.voice-card { position: absolute; left: 0; bottom: -64px; display: flex; gap: 12px; align-items: center; max-width: 300px; padding: 14px 18px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.voice-dot { flex: none; width: 12px; height: 12px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 6px rgba(195, 150, 77, .25); }
.voice-label { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .5px; }
.voice-text { font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-title { font-size: 36px; font-weight: 800; text-align: center; letter-spacing: -.5px; }
.section-lead { text-align: center; color: var(--ink-2); max-width: 620px; margin: 14px auto 0; font-size: 17px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.feature-icon { width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--primary-light); font-size: 24px; margin-bottom: 18px; }
.feature h3 { font-size: 19px; margin-bottom: 8px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

.steps { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.steps li { text-align: center; }
.step-num { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: var(--gold); font-family: "Sora", sans-serif; font-weight: 800; font-size: 18px; margin-bottom: 16px; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--ink-2); }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 340px)); justify-content: center; gap: 24px; margin-top: 48px; }
.plan { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 32px; }
.plan h3 { font-size: 26px; }
.plan-tag { color: var(--muted); margin: 4px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0; }
.plan li { position: relative; padding: 8px 0 8px 30px; color: var(--ink-2); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--success-bg); color: var(--success); font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.plan-pro { background: var(--navy); border-color: var(--navy); box-shadow: var(--shadow); }
.plan-pro h3 { color: #fff; }
.plan-pro .plan-tag { color: #AEB5D6; }
.plan-pro li { color: #E4E7F5; }
.plan-pro li::before { background: rgba(195, 150, 77, .2); color: var(--gold); }
.plan-badge { position: absolute; top: 20px; right: 20px; background: var(--gold); color: var(--navy); font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; }

.cta { padding: 72px 0; background: var(--navy); }
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta h2 { color: #fff; font-size: 32px; }

/* Legal pages */
.legal { max-width: 780px; padding-top: 56px; padding-bottom: 88px; }
.legal h1 { font-size: 40px; font-weight: 800; letter-spacing: -.5px; }
.legal-updated { color: var(--muted); margin: 8px 0 32px; }
.legal h2 { font-size: 22px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul, .legal ol { padding-left: 22px; }
.legal li { margin-bottom: 8px; }

/* Footer */
.footer { background: #10153A; color: #AEB5D6; padding: 56px 0 24px; }
.footer-inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer-note { font-size: 14px; margin: 16px 0 0; max-width: 420px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: #E4E7F5; text-decoration: none; font-size: 15px; }
.footer-links a:hover { color: var(--gold); }
.copyright { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13px; }

/* Tablet */
@media (max-width: 900px) {
    .hero-inner { grid-template-columns: 1fr; gap: 64px; }
    .hero h1 { font-size: 40px; }
    .invoice-card { margin: 0 auto; }
    .voice-card { position: relative; left: auto; bottom: auto; margin: -12px auto 0; max-width: 360px; }
    .features { grid-template-columns: repeat(2, 1fr); }
    .plans { grid-template-columns: minmax(0, 420px); }
}

/* Phone */
@media (max-width: 600px) {
    .wrap { padding: 0 16px; }
    .nav-links a:not(.btn) { display: none; }
    .hero { padding: 40px 0 56px; }
    .hero h1 { font-size: 32px; }
    .lead { font-size: 17px; }
    .hero-actions .btn { flex: 1 1 100%; }
    .section { padding: 64px 0; }
    .section-title { font-size: 28px; }
    .features, .steps { grid-template-columns: 1fr; }
    .plans { grid-template-columns: 1fr; }
    .legal h1 { font-size: 30px; }
    .cta h2 { font-size: 26px; }
}
