/* Landing page: plain HTML and CSS, no Blazor, so it loads fast and can be indexed. */
:root {
    --bg: #ffffff;
    --bg-soft: #f4f5fb;
    --text: #1d1f2b;
    --muted: #5d6275;
    --border: #e2e4ee;
    --brand: #0d6efd;
    --brand-dark: #1a1a2e;
    --card: #ffffff;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #14151f;
        --bg-soft: #1b1d2a;
        --text: #e8e9f1;
        --muted: #a3a7bb;
        --border: #2c2f42;
        --card: #1f2130;
    }
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
}

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

.wrap { max-width: 68rem; margin: 0 auto; padding: 0 1rem; }

/* Top bar */
.top {
    position: sticky;
    top: 0;
    z-index: 10;
    background: var(--brand-dark);
    color: #fff;
}

    .top .wrap { display: flex; align-items: center; gap: 1rem; height: 3.5rem; }
    .brand { display: flex; align-items: center; gap: 0.5rem; color: #fff; font-weight: 700; text-decoration: none; font-size: 1.15rem; }
    .brand img { width: 1.75rem; height: 1.75rem; }
    .top nav { margin-left: auto; display: flex; align-items: center; gap: 0.75rem; }
    .top nav a { color: #fff; text-decoration: none; font-size: 0.9rem; }
    .langs a { opacity: 0.6; }
    .langs a[aria-current="true"] { opacity: 1; font-weight: 600; }

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.7rem 1.25rem;
    border-radius: 0.6rem;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { filter: brightness(1.1); }
.btn-ghost { border: 1px solid var(--border); color: var(--text); }
.btn-small { padding: 0.4rem 0.8rem; font-size: 0.9rem; }

/* Hero */
.hero { padding: 4rem 0 3rem; background: linear-gradient(180deg, var(--bg-soft), var(--bg)); }
.hero h1 { font-size: clamp(2rem, 6vw, 3.25rem); line-height: 1.15; margin: 0 0 1rem; }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 40rem; margin: 0 0 1.75rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Sections */
section { padding: 3rem 0; }
section.soft { background: var(--bg-soft); }
h2 { font-size: clamp(1.5rem, 4vw, 2rem); margin: 0 0 0.5rem; }
.lead { color: var(--muted); margin: 0 0 2rem; max-width: 42rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 0.8rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
}

    .card h3 { margin: 0.5rem 0 0.4rem; font-size: 1.1rem; }
    .card p { margin: 0 0 1rem; color: var(--muted); }
    .card .btn { margin-top: auto; }
    .icon { font-size: 1.75rem; line-height: 1; }

/* Pricing */
.price { font-size: 1.75rem; font-weight: 700; margin: 0.25rem 0; }
.price small { font-size: 0.95rem; font-weight: 400; color: var(--muted); }
.card ul, .checks { padding-left: 1.2rem; margin: 0 0 1rem; color: var(--muted); }
.grid + .checks { margin-top: 1.5rem; }

/* FAQ */
details { border-bottom: 1px solid var(--border); padding: 0.9rem 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 0.6rem 0 0; }

/* Footer */
footer { padding: 2rem 0; color: var(--muted); font-size: 0.9rem; border-top: 1px solid var(--border); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; }
/* A link stays whole on a phone; the line breaks between links (1.35.0: "Livro de Reclamações"). */
footer a { white-space: nowrap; }
footer a { color: var(--muted); }

@media (max-width: 575.98px) {
    .top nav .hide-sm { display: none; }
    .hero { padding-top: 2.5rem; }
    .actions .btn { flex: 1 1 auto; }
}
