/* =====================================================================
   Sistema Pratiko — site institucional
   Paleta fixa da logo (mesma do app): azul-aço, verde, navy.
   ===================================================================== */
:root {
    --primary: #1f567a;
    --primary-rgb: 31, 86, 122;
    --primary-hover: #184763;
    --accent: #5fa748;
    --accent-rgb: 95, 167, 72;
    --accent-hover: #4f9039;
    --navy: #16263d;
    --navy-rgb: 22, 38, 61;

    --bg: #f4f6f9;
    --surface: #ffffff;
    --border: #e3e8ef;
    --text: #1f2430;
    --text-muted: #5b6573;

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --radius: 1rem;
    --radius-sm: 0.625rem;
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
    --shadow: 0 4px 16px rgba(16, 24, 40, .08), 0 1px 3px rgba(16, 24, 40, .04);
    --shadow-lg: 0 24px 48px rgba(16, 24, 40, .12), 0 8px 16px rgba(16, 24, 40, .06);
    --maxw: 1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    letter-spacing: -0.01em;
    line-height: 1.6;
}

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; margin: 0; }

a { color: var(--primary); text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; }

.section { padding: 5.5rem 0; }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3.5rem; }
.section__eyebrow {
    display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
    text-transform: uppercase; color: var(--primary);
    background: rgba(var(--primary-rgb), .08); padding: .35rem .8rem; border-radius: 999px; margin-bottom: 1rem;
}
.section__title { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.section__subtitle { color: var(--text-muted); font-size: 1.075rem; margin-top: .85rem; }

/* ---------- Botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    font-family: inherit; font-weight: 600; font-size: 1rem;
    padding: .8rem 1.5rem; border-radius: var(--radius-sm); border: 1.5px solid transparent;
    cursor: pointer; transition: transform .12s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
    white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 6px 18px rgba(var(--accent-rgb), .35); }
.btn--primary:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn--outline:hover { background: var(--primary); color: #fff; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.btn--outline-light:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.btn--lg { padding: .95rem 1.9rem; font-size: 1.05rem; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* ---------- Brand mark ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 700; }
.brand__logo {
    display: block; flex: 0 0 auto; width: 38px; height: 38px;
    border-radius: 9px; object-fit: contain; background: #fff; box-shadow: var(--shadow-sm);
}
.brand__name { font-size: 1.15rem; color: var(--navy); }

/* ---------- Top nav ---------- */
.nav {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .85); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav__links { display: flex; align-items: center; gap: 2rem; }
.nav__links a { color: var(--text-muted); font-weight: 500; transition: color .15s ease; }
.nav__links a:hover { color: var(--navy); }
.nav__cta { display: flex; align-items: center; gap: .75rem; }
@media (max-width: 820px) {
    .nav__links { display: none; }
}

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #fff;
    background: radial-gradient(1200px 600px at 80% -10%, rgba(var(--accent-rgb), .25), transparent 60%),
                linear-gradient(150deg, var(--navy) 0%, var(--primary) 100%);
    padding: 6rem 0 6.5rem;
}
.hero::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 75%);
}
.hero__inner { position: relative; z-index: 1; max-width: 760px; }
.hero__badge {
    display: inline-flex; align-items: center; gap: .5rem; font-size: .85rem; font-weight: 600;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
    padding: .4rem .9rem; border-radius: 999px; margin-bottom: 1.5rem;
}
.hero__title { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; }
.hero__title span { color: #9fe08a; }
.hero__subtitle { font-size: 1.2rem; color: rgba(255,255,255,.82); margin: 1.4rem 0 2.4rem; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__trust { margin-top: 2.8rem; display: flex; flex-wrap: wrap; gap: 1rem 2.5rem; color: rgba(255,255,255,.85); font-size: .98rem; font-weight: 500; }
.hero__trust span { display: inline-flex; align-items: center; gap: .65rem; white-space: nowrap; }
.hero__trust svg {
    flex: 0 0 auto; box-sizing: content-box; width: 15px; height: 15px; padding: 5px; border-radius: 50%;
    background: rgba(159, 224, 138, .18); color: #9fe08a;
}

/* ---------- Sob demanda ---------- */
.custom { background: var(--surface); }
.custom__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
@media (max-width: 880px) { .custom__grid { grid-template-columns: 1fr; } }

.custom-card {
    background: var(--bg); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2rem;
    transition: transform .18s ease, box-shadow .18s ease;
}
.custom-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.custom-card__icon {
    display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px;
    background: rgba(var(--accent-rgb), .12); color: var(--accent-hover); margin-bottom: 1.2rem;
}
.custom-card__icon svg { width: 28px; height: 28px; }
.custom-card__title { font-size: 1.2rem; color: var(--navy); }
.custom-card__desc { color: var(--text-muted); margin-top: .6rem; }

.custom__note {
    display: flex; align-items: flex-start; gap: .7rem;
    max-width: 760px; margin: 1.75rem auto 0;
    background: rgba(var(--primary-rgb), .06); border: 1px solid rgba(var(--primary-rgb), .18);
    border-radius: var(--radius-sm); padding: 1rem 1.25rem;
    color: var(--text-muted); font-size: .95rem; line-height: 1.5;
}
.custom__note svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--primary); margin-top: 1px; }
.custom__note strong { color: var(--navy); }

/* ---------- Módulos ---------- */
.modules { background: var(--bg); }
.modules__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 1.75rem; }
@media (max-width: 768px) { .modules__grid { grid-template-columns: 1fr; } }

.module-card__badge {
    position: absolute; top: 1rem; right: 1rem; z-index: 1;
    display: inline-flex; align-items: center; gap: .35rem;
    font-size: .72rem; font-weight: 700; letter-spacing: .02em;
    color: var(--accent-hover); background: rgba(var(--accent-rgb), .14);
    border: 1px solid rgba(var(--accent-rgb), .3);
    padding: .3rem .6rem; border-radius: 999px; white-space: nowrap;
}
.module-card__badge svg { width: 13px; height: 13px; }

.module-card {
    position: relative; background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow);
    transition: transform .18s ease, box-shadow .18s ease;
    overflow: hidden;
}
.module-card::before {
    content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent));
}
.module-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Card em destaque (carro-chefe) — anel da marca e selo sólido */
.module-card--featured {
    border-color: rgba(var(--primary-rgb), .45);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .3), var(--shadow-lg);
}
.module-card--featured::before { height: 5px; }
.module-card--featured .module-card__badge {
    color: #fff; background: var(--primary); border-color: var(--primary);
}
.module-card__icon {
    display: grid; place-items: center; width: 60px; height: 60px; border-radius: 14px;
    background: rgba(var(--primary-rgb), .1); color: var(--primary); margin-bottom: 1.4rem;
}
.module-card__icon svg { width: 30px; height: 30px; }
.module-card__title { font-size: 1.4rem; color: var(--navy); }
.module-card__desc { color: var(--text-muted); margin: .7rem 0 1.4rem; }
.module-card__list { list-style: none; padding: 0; margin: 0; display: grid; gap: .65rem; }
.module-card__list li { display: flex; align-items: flex-start; gap: .6rem; color: var(--text); }
.module-card__list svg { flex: 0 0 auto; width: 20px; height: 20px; color: var(--accent); margin-top: 2px; }

/* ---------- FAQ ---------- */
.faq { background: var(--bg); }
.faq__list { max-width: 760px; margin: 0 auto; display: grid; gap: 1rem; }
.faq-item {
    background: var(--surface); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 0 1.4rem; box-shadow: var(--shadow-sm);
}
.faq-item__q {
    font-weight: 600; color: var(--navy); cursor: pointer; list-style: none;
    padding: 1.15rem 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::after { content: "+"; font-size: 1.45rem; font-weight: 400; color: var(--accent); line-height: 1; }
.faq-item[open] .faq-item__q::after { content: "\2212"; }
.faq-item__a { color: var(--text-muted); margin: 0; padding: 0 0 1.2rem; }

/* ---------- Contato ---------- */
.contact { background: var(--navy); color: #fff; }
.contact__grid {
    display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center;
}
@media (max-width: 880px) { .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; } }
.contact__title { font-size: clamp(1.8rem, 3vw, 2.3rem); }
.contact__text { color: rgba(255,255,255,.8); margin-top: 1rem; font-size: 1.05rem; }
.contact__info { margin-top: 2rem; display: grid; gap: 1rem; }
.contact__info-item { display: flex; align-items: center; gap: .8rem; color: rgba(255,255,255,.9); }
.contact__info-item svg { width: 22px; height: 22px; color: #9fe08a; flex: 0 0 auto; }

.contact-form {
    background: var(--surface); color: var(--text);
    border-radius: var(--radius); padding: 2.25rem; box-shadow: var(--shadow-lg);
}
.form-group { margin-bottom: 1.15rem; }
.form-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .45rem; color: var(--navy); }
.form-control {
    width: 100%; font-family: inherit; font-size: 1rem; color: var(--text);
    padding: .8rem 1rem; border: 1.5px solid var(--border); border-radius: var(--radius-sm);
    background: #fff; transition: border-color .15s ease, box-shadow .15s ease;
}
.form-control::placeholder { color: #9aa3b0; }
.form-control:focus {
    outline: none; border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .15);
}
textarea.form-control { resize: vertical; min-height: 120px; }

.alert { padding: .85rem 1rem; border-radius: var(--radius-sm); font-weight: 500; margin-bottom: 1.15rem; font-size: .95rem; }
.alert--success { background: rgba(var(--accent-rgb), .12); color: var(--accent-hover); border: 1px solid rgba(var(--accent-rgb), .3); }
.alert--error { background: #fdecea; color: #b42318; border: 1px solid #f5c6c2; }

/* ---------- Footer ---------- */
.footer { background: #0e1a2b; color: rgba(255,255,255,.65); padding: 2.5rem 0; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.footer .brand__name { color: #fff; }
.footer__copy { font-size: .9rem; }

/* ---------- Loading (pré-Blazor) ---------- */
.app-loading { display: grid; place-items: center; gap: 1.5rem; min-height: 100vh; background: var(--navy); }
.app-loading__logo {
    width: 64px; height: 64px; border-radius: 16px; object-fit: contain;
    background: #fff; box-shadow: var(--shadow-sm);
}
.app-loading__spinner {
    width: 34px; height: 34px; border-radius: 50%;
    border: 3px solid rgba(255,255,255,.2); border-top-color: #9fe08a;
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Blazor error ---------- */
#blazor-error-ui {
    display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 1000;
    background: #fff3cd; color: #664d03; padding: .9rem 1.25rem; box-shadow: 0 -2px 10px rgba(0,0,0,.1);
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 1rem; top: .9rem; }
