/* FamilyGuard — tema claro, de produto familiar. Nada de urgência agressiva:
   a proposta é confiança, então o visual é calmo e legível. */

:root {
    --fg-ink: #12243d;
    --fg-ink-2: #4a5b73;
    --fg-ink-3: #7b8aa0;
    --fg-bg: #f4f7fb;
    --fg-card: #ffffff;
    --fg-line: #e2e9f2;
    --fg-brand: #2f6df6;
    --fg-brand-dark: #1f52c9;
    --fg-teal: #0fae8e;
    --fg-amber: #f2a53c;
    --fg-radius: 16px;
    --fg-shadow: 0 6px 24px rgba(18, 36, 61, .08);
    --fg-shadow-lg: 0 14px 40px rgba(18, 36, 61, .12);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--fg-bg);
    color: var(--fg-ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── Cabeçalho ── */
.fg-header {
    background: var(--fg-card);
    border-bottom: 1px solid var(--fg-line);
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: sticky;
    top: 0;
    z-index: 20;
}

.fg-logo {
    display: flex;
    align-items: center;
    gap: 9px;
    font-weight: 800;
    font-size: 17px;
    letter-spacing: -.2px;
    color: var(--fg-ink);
}

.fg-logo svg { width: 26px; height: 26px; color: var(--fg-brand); flex: 0 0 auto; }

.fg-lang-wrap { display: flex; align-items: center; gap: 7px; }

.fg-lang-wrap svg { width: 16px; height: 16px; color: var(--fg-ink-3); }

.fg-lang {
    appearance: none;
    -webkit-appearance: none;
    background: var(--fg-bg) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%237b8aa0'><path d='M7 10l5 5 5-5z'/></svg>") no-repeat right 6px center;
    background-size: 18px;
    border: 1px solid var(--fg-line);
    border-radius: 9px;
    color: var(--fg-ink-2);
    font-size: 13px;
    font-weight: 600;
    padding: 7px 26px 7px 10px;
    /* 40px é o mínimo confortável para o dedo; sem isto o seletor fica com
       31px de altura e vira o único alvo pequeno da página no celular. */
    min-height: 40px;
    cursor: pointer;
}

/* ── Layout ── */
.fg-stage {
    max-width: 560px;
    margin: 0 auto;
    padding: 22px 18px 60px;
}

/* Só alarga quando há espaço para as 3 colunas de plano. Abaixo disso a
   página segue como coluna única, senão em tablet os cartões passam de 700px
   de largura cada um. */
.fg-stage-wide { max-width: 560px; }

@media (min-width: 820px) {
    .fg-stage-wide { max-width: 940px; }
}

.fg-center { text-align: center; }

/* ── Progresso ── */
.fg-progress { margin: 4px 0 20px; }

.fg-progress-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--fg-ink-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 7px;
}

.fg-progress-track {
    height: 6px;
    background: #e6ecf5;
    border-radius: 99px;
    overflow: hidden;
}

.fg-progress-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--fg-brand), var(--fg-teal));
    border-radius: 99px;
    transition: width .45s ease;
}

/* ── Cartões e tipografia ── */
.fg-card {
    background: var(--fg-card);
    border: 1px solid var(--fg-line);
    border-radius: var(--fg-radius);
    box-shadow: var(--fg-shadow);
    padding: 24px 20px;
}

.fg-card + .fg-card { margin-top: 16px; }

.fg-badge {
    display: inline-block;
    background: rgba(47, 109, 246, .1);
    color: var(--fg-brand-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .4px;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 99px;
    margin-bottom: 14px;
}

h1 {
    font-size: 27px;
    line-height: 1.22;
    letter-spacing: -.5px;
    margin: 0 0 10px;
    font-weight: 800;
}

h2 { font-size: 20px; line-height: 1.3; margin: 0 0 8px; font-weight: 800; letter-spacing: -.3px; }

h3 { font-size: 16px; margin: 0 0 6px; font-weight: 700; }

.fg-lead { color: var(--fg-ink-2); font-size: 15px; line-height: 1.6; margin: 0 0 18px; }

.fg-hint { color: var(--fg-ink-3); font-size: 13px; line-height: 1.55; margin: 10px 0 0; }

.fg-question { font-size: 18px; font-weight: 800; margin: 0 0 4px; letter-spacing: -.2px; }

/* ── Opções do quiz ── */
.fg-options { display: grid; gap: 10px; margin-top: 16px; }

.fg-option {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: var(--fg-card);
    border: 1.5px solid var(--fg-line);
    border-radius: 13px;
    padding: 15px 16px;
    font-size: 15px;
    font-weight: 650;
    color: var(--fg-ink);
    text-align: left;
    cursor: pointer;
    transition: border-color .16s, background .16s, transform .12s;
    font-family: inherit;
}

.fg-option:hover { border-color: #b9cdf5; background: #fbfdff; }

.fg-option:active { transform: scale(.99); }

.fg-option.is-on {
    border-color: var(--fg-brand);
    background: rgba(47, 109, 246, .06);
}

.fg-option-ico {
    width: 34px;
    height: 34px;
    flex: 0 0 auto;
    border-radius: 10px;
    background: var(--fg-bg);
    display: grid;
    place-items: center;
    font-size: 17px;
}

.fg-option.is-on .fg-option-ico { background: rgba(47, 109, 246, .14); }

.fg-check {
    margin-left: auto;
    width: 21px;
    height: 21px;
    border-radius: 50%;
    border: 1.5px solid var(--fg-line);
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    color: transparent;
    font-size: 12px;
    font-weight: 900;
}

.fg-option.is-on .fg-check {
    background: var(--fg-brand);
    border-color: var(--fg-brand);
    color: #fff;
}

/* ── Botões ── */
.fg-btn {
    display: block;
    width: 100%;
    border: 0;
    border-radius: 13px;
    padding: 16px 18px;
    font-size: 16px;
    font-weight: 800;
    font-family: inherit;
    color: #fff;
    background: linear-gradient(135deg, var(--fg-brand), var(--fg-brand-dark));
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(47, 109, 246, .28);
    transition: opacity .16s, transform .12s;
}

.fg-btn:active { transform: scale(.99); }

.fg-btn:disabled {
    background: #c9d5e6;
    color: #8494ab;
    box-shadow: none;
    cursor: not-allowed;
}

.fg-btn-teal {
    background: linear-gradient(135deg, var(--fg-teal), #0a8f74);
    box-shadow: 0 6px 16px rgba(15, 174, 142, .28);
}

.fg-btn-ghost {
    background: none;
    border: 1.5px solid var(--fg-line);
    color: var(--fg-ink-2);
    box-shadow: none;
    font-size: 14px;
    padding: 12px;
}

.fg-back {
    background: none;
    border: 0;
    color: var(--fg-ink-3);
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    padding: 10px 2px;
    margin-top: 6px;
}

/* ── Formulários ── */
.fg-field { margin-top: 14px; }

.fg-label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--fg-ink-2);
    margin-bottom: 6px;
}

.fg-input-row { display: flex; gap: 8px; }

.fg-input {
    width: 100%;
    border: 1.5px solid var(--fg-line);
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 16px;
    font-family: inherit;
    color: var(--fg-ink);
    background: var(--fg-card);
    outline: none;
    transition: border-color .16s;
}

.fg-input:focus { border-color: var(--fg-brand); }

.fg-cc {
    /* Cabe "Brasil +55" e a maioria dos nomes de país; os poucos mais longos
       truncam, mas o DDI já apareceu na lista aberta. */
    flex: 0 0 152px;
    appearance: none;
    -webkit-appearance: none;
    border: 1.5px solid var(--fg-line);
    border-radius: 12px;
    padding: 14px 8px;
    font-size: 15px;
    font-family: inherit;
    background: var(--fg-card);
    color: var(--fg-ink);
    outline: none;
}

.fg-error { color: #d64545; font-size: 13px; font-weight: 600; margin-top: 8px; min-height: 18px; }

.fg-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 16px;
    background: rgba(15, 174, 142, .07);
    border: 1px solid rgba(15, 174, 142, .25);
    border-radius: 12px;
    padding: 13px;
    cursor: pointer;
}

.fg-consent input {
    width: 19px;
    height: 19px;
    margin: 1px 0 0;
    flex: 0 0 auto;
    accent-color: var(--fg-teal);
    cursor: pointer;
}

.fg-consent span { font-size: 13px; line-height: 1.5; color: var(--fg-ink-2); font-weight: 600; }

/* ── Selos de confiança ── */
.fg-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 16px;
    margin-top: 18px;
}

.fg-trust span {
    font-size: 12.5px;
    font-weight: 650;
    color: var(--fg-ink-3);
    display: flex;
    align-items: center;
    gap: 5px;
}

.fg-note {
    margin: 22px auto 0;
    max-width: 470px;
    font-size: 11.5px;
    line-height: 1.5;
    color: var(--fg-ink-3);
    text-align: center;
}

.fg-transparent {
    display: flex;
    align-items: center;
    gap: 9px;
    background: rgba(15, 174, 142, .08);
    border-radius: 11px;
    padding: 11px 13px;
    margin-top: 16px;
    font-size: 13px;
    font-weight: 650;
    color: #0a7a63;
    line-height: 1.45;
}

/* ── Lista de recursos ── */
.fg-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }

.fg-features li {
    display: flex;
    gap: 11px;
    font-size: 14.5px;
    line-height: 1.5;
    color: var(--fg-ink-2);
}

.fg-features li::before {
    content: "✓";
    color: var(--fg-teal);
    font-weight: 900;
    flex: 0 0 auto;
}

/* ── Etapa de análise ── */
.fg-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 11px; }

.fg-steps li {
    display: flex;
    align-items: center;
    gap: 11px;
    font-size: 14px;
    font-weight: 650;
    color: var(--fg-ink-3);
    opacity: .45;
    transition: opacity .3s, color .3s;
}

.fg-steps li.is-done { opacity: 1; color: var(--fg-ink); }

.fg-steps li .dot {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #e6ecf5;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    color: transparent;
}

.fg-steps li.is-done .dot { background: var(--fg-teal); color: #fff; }

/* ── Planos ── */
.fg-plans { display: grid; gap: 16px; margin-top: 18px; }

@media (min-width: 820px) {
    .fg-plans { grid-template-columns: repeat(3, 1fr); }

    /* Os três cartões com a mesma altura e o botão colado embaixo. O plano
       destacado tem uma vantagem a mais na lista, então sem isto o CTA dele
       desce e os três botões ficam em alturas diferentes. */
    .fg-plan { display: flex; flex-direction: column; }
    .fg-plan .fg-features { flex: 1 1 auto; }
}

.fg-plan {
    background: var(--fg-card);
    border: 1.5px solid var(--fg-line);
    border-radius: var(--fg-radius);
    padding: 22px 20px;
    box-shadow: var(--fg-shadow);
    position: relative;
}

.fg-plan.is-featured {
    border-color: var(--fg-brand);
    box-shadow: var(--fg-shadow-lg);
}

.fg-plan-tag {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--fg-brand);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 99px;
    white-space: nowrap;
}

.fg-plan-name { font-size: 15px; font-weight: 800; color: var(--fg-ink); margin: 0 0 2px; }

.fg-plan-devices { font-size: 13px; color: var(--fg-ink-3); font-weight: 600; margin: 0 0 12px; }

.fg-plan-price { font-size: 34px; font-weight: 800; letter-spacing: -1px; margin: 0 0 14px; }

.fg-plan-price small { font-size: 14px; font-weight: 650; color: var(--fg-ink-3); letter-spacing: 0; }

.fg-plan .fg-features { margin-bottom: 18px; }

.fg-plan .fg-features li { font-size: 13.5px; }

/* Os três CTAs com o mesmo tamanho. O .fg-btn-ghost é menor de propósito nas
   outras telas, mas aqui os botões ficam lado a lado e 7px de diferença deixa
   a linha torta. O plano destacado continua se distinguindo pela cor. */
.fg-plan .fg-btn { font-size: 15px; padding: 15px 16px; }

/* Borda invisível no botão cheio para ele ter a mesma caixa do vazado, que
   carrega 1,5px de borda de cada lado. */
.fg-plan .fg-btn:not(.fg-btn-ghost) { border: 1.5px solid transparent; }

/* ── Garantia ── */
.fg-guarantee {
    background: linear-gradient(135deg, rgba(15, 174, 142, .1), rgba(47, 109, 246, .08));
    border: 1px solid rgba(15, 174, 142, .25);
    border-radius: var(--fg-radius);
    padding: 20px;
    text-align: center;
    margin-top: 16px;
}

.fg-guarantee .seal { font-size: 34px; line-height: 1; margin-bottom: 8px; }

/* ── FAQ ── */
.fg-faq { margin-top: 16px; }

.fg-faq details {
    background: var(--fg-card);
    border: 1px solid var(--fg-line);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 9px;
}

.fg-faq summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 14.5px;
    color: var(--fg-ink);
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.fg-faq summary::-webkit-details-marker { display: none; }

.fg-faq summary::after { content: "+"; color: var(--fg-ink-3); font-weight: 800; }

.fg-faq details[open] summary::after { content: "–"; }

.fg-faq p { margin: 10px 0 0; font-size: 14px; line-height: 1.6; color: var(--fg-ink-2); }

/* ── Rodapé ── */
.fg-footer {
    border-top: 1px solid var(--fg-line);
    background: var(--fg-card);
    padding: 22px 18px 30px;
    text-align: center;
}

.fg-footer p { margin: 0 0 8px; font-size: 12.5px; color: var(--fg-ink-3); line-height: 1.6; }

.fg-footer a { color: var(--fg-ink-2); text-decoration: none; font-weight: 650; }

/* ── Modal ── */
.fg-modal {
    position: fixed;
    inset: 0;
    background: rgba(18, 36, 61, .55);
    display: grid;
    place-items: center;
    padding: 18px;
    z-index: 60;
}

.fg-modal-box {
    background: var(--fg-card);
    border-radius: var(--fg-radius);
    padding: 24px 20px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--fg-shadow-lg);
}

.fg-hide { display: none !important; }

@media (min-width: 700px) {
    h1 { font-size: 33px; }
    .fg-card { padding: 30px 28px; }
}
