/*
   Landing do SafePad.

   Tudo aqui vive sob .sp — o app é escuro e o restante do site é claro, e um
   token solto no :root vazaria para as outras páginas. As variáveis são as
   mesmas do aplicativo (azul-noite, ciano e cobre), para que vitrine e produto
   pareçam a mesma coisa.
*/
.sp {
    --sp-ground: #0B0F19;
    --sp-surface: #111726;
    --sp-surface-soft: #0E131F;
    --sp-border: #1E2A3E;
    --sp-border-strong: #2C3C58;
    --sp-text: #F2F5FA;
    --sp-text-soft: #A9B5CB;
    --sp-text-faint: #77839A;
    --sp-accent: #00E5FF;
    --sp-accent-deep: #0C2B33;
    --sp-copper: #E09A5F;
    --sp-copper-deep: #2A1D11;

    background: var(--sp-ground);
    color: var(--sp-text);
}

.sp h1, .sp h2, .sp h3 { letter-spacing: -.022em; }
.sp p { color: var(--sp-text-soft); }
.sp a { color: var(--sp-accent); }

.sp code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .87em;
    color: var(--sp-text);
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    padding: 1px 6px;
    border-radius: 4px;
}

/* ------------------------------------------------------------------- hero */

.sp-hero {
    position: relative;
    padding: 5rem 0 4.5rem;
    overflow: hidden;
}

/* Brilho ciano atrás do texto: o acento do app, com parcimônia. */
.sp-hero::before {
    content: '';
    position: absolute;
    top: -320px;
    left: 50%;
    width: 900px;
    height: 620px;
    transform: translateX(-58%);
    background: radial-gradient(closest-side, rgba(0, 229, 255, .16), transparent 72%);
    pointer-events: none;
}

.sp-hero .container { position: relative; }

.sp-selo {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--sp-accent);
    background: var(--sp-accent-deep);
    border: 1px solid rgba(0, 229, 255, .22);
    border-radius: 999px;
    padding: .35rem .9rem;
    margin-bottom: 1.35rem;
}

.sp-hero h1 {
    font-weight: 800;
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.07;
    margin-bottom: 1.1rem;
}

.sp-hero h1 em { font-style: normal; color: var(--sp-accent); }

.sp-lede {
    font-size: 1.15rem;
    max-width: 56ch;
    margin-bottom: 1.9rem;
}

.sp-nota { font-size: .875rem; color: var(--sp-text-faint); margin: 1rem 0 0; }

.sp-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .8rem 1.5rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
}

/* Os seletores repetem .sp de propósito: `.sp a` acima tem especificidade maior
   do que uma classe sozinha e pintaria o texto do botão de ciano — sobre o
   fundo ciano do botão primário, isso deixava o texto invisível. */
.sp .sp-btn-primario,
.sp a.sp-btn-primario {
    background: var(--sp-accent);
    color: #04121A;
}

.sp .sp-btn-primario:hover,
.sp .sp-btn-primario:focus,
.sp a.sp-btn-primario:hover,
.sp a.sp-btn-primario:focus {
    background: #5CEEFF;
    color: #04121A;
}

.sp .sp-btn-secundario,
.sp a.sp-btn-secundario {
    color: var(--sp-text);
    background: var(--sp-surface);
    border-color: var(--sp-border-strong);
}

.sp .sp-btn-secundario:hover,
.sp .sp-btn-secundario:focus,
.sp a.sp-btn-secundario:hover,
.sp a.sp-btn-secundario:focus {
    color: var(--sp-text);
    border-color: var(--sp-accent);
}

/* Moldura de telefone desenhada em CSS — sem imagem de aparelho. */
.sp-aparelho {
    width: min(290px, 78vw);
    margin: 0 auto;
    border-radius: 34px;
    padding: 10px;
    background: linear-gradient(160deg, #22304a, #0d1320);
    border: 1px solid var(--sp-border-strong);
    box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .9);
}

.sp-aparelho img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 26px;
    background: var(--sp-ground);
}

/* ----------------------------------------------------------------- provas */

.sp-provas {
    border-top: 1px solid var(--sp-border);
    border-bottom: 1px solid var(--sp-border);
    background: var(--sp-surface-soft);
    padding: 1.75rem 0;
}

.sp-prova b { display: block; font-size: 1.05rem; font-weight: 700; }
.sp-prova span { display: block; font-size: .875rem; color: var(--sp-text-faint); }

/* ----------------------------------------------------------------- seções */

.sp-secao { padding: 4.5rem 0; }
.sp-secao-topo { max-width: 62ch; margin-bottom: 2.5rem; }

.sp-sobrenome {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--sp-accent);
    margin-bottom: .6rem;
}

.sp-secao-topo h2 {
    font-weight: 800;
    font-size: clamp(1.6rem, 3.2vw, 2.25rem);
    line-height: 1.15;
    margin-bottom: .8rem;
}

/* ---------------------------------------------------------------- cartões */

.sp-cartao {
    height: 100%;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
    padding: 1.6rem 1.5rem;
}

.sp-cartao svg { display: block; margin-bottom: 1rem; }
.sp-cartao h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.sp-cartao p { font-size: .97rem; line-height: 1.58; margin: 0; }

/* -------------------------------------------------------------- segurança */

.sp-tabela-caixa {
    overflow-x: auto;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: 14px;
}

.sp-tabela { width: 100%; border-collapse: collapse; font-size: .97rem; margin: 0; }

.sp-tabela th,
.sp-tabela td {
    text-align: left;
    padding: .95rem 1rem;
    border-bottom: 1px solid var(--sp-border);
    vertical-align: top;
}

.sp-tabela th { width: 30%; font-weight: 600; color: var(--sp-text); white-space: nowrap; }
.sp-tabela td { color: var(--sp-text-soft); }
.sp-tabela tr:last-child th,
.sp-tabela tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------ telas */

/*
   Carrossel das capturas. Usa o Swiper que o site já carrega no base.html —
   uma segunda biblioteca de carrossel só para esta página seria peso morto.

   O slide tem largura fixa e slidesPerView: 'auto': as capturas são todas
   1496x2992, e deixar a largura ao encargo do grid faria a tela central mudar
   de tamanho a cada quebra de layout.
*/
.sp-telas { padding-bottom: 1rem; }

.sp-swiper {
    padding: 1rem 3.25rem 3.5rem;
    /* As bordas somem no fundo, sugerindo que o carrossel continua. */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
            mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.sp-swiper .swiper-slide {
    width: min(230px, 60vw);
    height: auto;
    opacity: .45;
    transition: opacity .35s ease;
}

.sp-swiper .swiper-slide-active { opacity: 1; }

.sp-swiper figure { margin: 0; }

.sp-swiper img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 1px solid var(--sp-border-strong);
    background: var(--sp-ground);
}

.sp-swiper .swiper-slide-active img {
    border-color: rgba(0, 229, 255, .4);
    box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .95);
}

.sp-swiper figcaption {
    margin-top: .8rem;
    font-size: .9rem;
    color: var(--sp-text-faint);
    text-align: center;
}

.sp-swiper .swiper-slide-active figcaption { color: var(--sp-text); }

/* Setas: o botão padrão do Swiper vem com fonte de ícone própria e cor herdada;
   aqui só trocamos a cor e damos uma base circular que se veja no escuro. */
.sp-swiper .swiper-button-next,
.sp-swiper .swiper-button-prev {
    width: 44px;
    height: 44px;
    margin-top: -34px;
    border-radius: 50%;
    color: var(--sp-accent);
    background: var(--sp-surface);
    border: 1px solid var(--sp-border-strong);
    padding: 0;
}

.sp-swiper .swiper-button-next:hover,
.sp-swiper .swiper-button-prev:hover { border-color: var(--sp-accent); }

.sp-swiper .swiper-button-next::after,
.sp-swiper .swiper-button-prev::after { font-size: 1.05rem; font-weight: 700; }

.sp-swiper .swiper-button-prev { left: 0; }
.sp-swiper .swiper-button-next { right: 0; }

.sp-swiper .swiper-button-disabled { opacity: .35; }

.sp-swiper .swiper-pagination { bottom: 1rem; }

.sp-swiper .swiper-pagination-bullet {
    background: var(--sp-text-faint);
    opacity: .5;
}

.sp-swiper .swiper-pagination-bullet-active {
    background: var(--sp-accent);
    opacity: 1;
}

@media (max-width: 575.98px) {
    .sp-swiper { padding-left: 1rem; padding-right: 1rem; }
    .sp-swiper .swiper-button-next,
    .sp-swiper .swiper-button-prev { display: none; }
}

/* ------------------------------------------------------------------ aviso */

.sp-aviso {
    background: var(--sp-copper-deep);
    border: 1px solid rgba(224, 154, 95, .3);
    border-left: 3px solid var(--sp-copper);
    border-radius: 0 12px 12px 0;
    padding: 1.6rem 1.75rem;
}

.sp-aviso h2 { font-size: 1.3rem; font-weight: 700; color: var(--sp-copper); margin-bottom: .6rem; }
.sp-aviso p { margin: 0; max-width: 68ch; }

/* -------------------------------------------------------------------- faq */

.sp-faq details { border-bottom: 1px solid var(--sp-border); padding: 1.1rem 0; }
.sp-faq details:first-of-type { border-top: 1px solid var(--sp-border); }

.sp-faq summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

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

.sp-faq summary::after {
    content: '+';
    color: var(--sp-accent);
    font-weight: 400;
    font-size: 1.4rem;
    line-height: 1.2;
}

.sp-faq details[open] summary::after { content: '\2013'; }

.sp-faq details p { margin: .7rem 0 0; max-width: 72ch; }

/* ---------------------------------------------------------------- chamada */

.sp-chamada {
    text-align: center;
    background: linear-gradient(180deg, var(--sp-surface), var(--sp-surface-soft));
    border: 1px solid var(--sp-border);
    border-radius: 18px;
    padding: 3.4rem 1.75rem;
}

.sp-chamada h2 { font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .7rem; }
.sp-chamada p { max-width: 52ch; margin: 0 auto 1.75rem; }

/* Foco visível sobre fundo escuro — o outline padrão do Bootstrap some aqui. */
.sp a:focus-visible,
.sp summary:focus-visible {
    outline: 2px solid var(--sp-accent);
    outline-offset: 3px;
    border-radius: 4px;
}

/* ------------------------------------------------- documento (privacidade) */

/*
   A política de privacidade é um documento legal: coluna estreita, tipografia
   maior e nenhuma decoração que dispute com a leitura. Herda a paleta escura
   da landing porque é a mesma marca.
*/
.sp-doc { padding: 3.5rem 0 4.5rem; }

.sp-doc .container { max-width: 760px; }

.sp-doc-topo {
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--sp-border);
    margin-bottom: 2rem;
}

.sp-doc-topo h1 {
    font-weight: 800;
    font-size: clamp(1.9rem, 4vw, 2.6rem);
    line-height: 1.12;
    margin-bottom: .6rem;
}

.sp-doc-resumo {
    background: var(--sp-accent-deep);
    border: 1px solid rgba(0, 229, 255, .22);
    border-radius: 10px;
    padding: 1.35rem 1.5rem;
    margin-bottom: 2.5rem;
}

.sp-doc-resumo h2 {
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--sp-accent);
    margin-bottom: .5rem;
}

.sp-doc-resumo p { color: var(--sp-text); }

.sp-doc section { margin-bottom: 2.5rem; }

.sp-doc section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: .7rem;
}

.sp-doc p { font-size: 1.02rem; line-height: 1.68; }
.sp-doc strong { color: var(--sp-text); font-weight: 650; }

.sp-doc ul { color: var(--sp-text-soft); padding-left: 1.35rem; }
.sp-doc li { margin-bottom: .5rem; }

.sp-doc-rodape {
    border-top: 1px solid var(--sp-border);
    padding-top: 1.5rem;
    color: var(--sp-text-faint);
    font-size: .9rem;
}

.sp-doc-rodape p { color: var(--sp-text-faint); margin-bottom: .3rem; }
