/* ==========================================================================
   BIWAPP — Landing "Aurora Glass"
   Design system: dark green-black + auroras animadas + glassmorphism,
   tokens em CSS vars, micro-interações, reveals por IntersectionObserver.
   Usado apenas pelo index.html (blog.html continua no main.css antigo).
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400..900&display=swap');

/* ============ Tokens ============ */

:root {
    --green: #25d366;
    --green-deep: #16a34a;
    --green-soft: #7df0a8;
    --bg: #060d09;
    --bg-2: #07120c;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-green: rgba(37, 211, 102, 0.3);
    --text: #f4fbf6;
    --muted: #9fb3a8;
    --muted-2: #7c8f84;
    --radius: 20px;
    --container: 1320px;
    --header-h: 76px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

/* ============ Base ============ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 20px;
}

::selection {
    background: rgba(37, 211, 102, 0.35);
    color: #ffffff;
}

/* ============ Utilitários ============ */

.grad {
    background: linear-gradient(92deg, #36e27d 0%, #a7f8c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 15px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.09);
    border: 1px solid var(--stroke-green);
    color: var(--green-soft);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.kicker .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2.2s ease-out infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

/* ============ Auroras ============ */

.backdrop {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.aurora {
    position: absolute;
    border-radius: 50%;
    filter: blur(95px);
    will-change: transform;
}

.aurora-1 {
    width: 560px;
    height: 560px;
    top: -160px;
    left: -130px;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.4) 0%, rgba(37, 211, 102, 0) 65%);
    animation: drift1 19s ease-in-out infinite alternate;
}

.aurora-2 {
    width: 600px;
    height: 600px;
    bottom: -200px;
    right: -160px;
    background: radial-gradient(circle, rgba(13, 148, 136, 0.35) 0%, rgba(13, 148, 136, 0) 65%);
    animation: drift2 23s ease-in-out infinite alternate;
}

.aurora-3 {
    width: 440px;
    height: 440px;
    top: 35%;
    left: 38%;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.28) 0%, rgba(22, 163, 74, 0) 65%);
    animation: drift3 27s ease-in-out infinite alternate;
}

@keyframes drift1 {
    to { transform: translate(80px, 55px) scale(1.15); }
}

@keyframes drift2 {
    to { transform: translate(-70px, -45px) scale(1.1); }
}

@keyframes drift3 {
    to { transform: translate(-55px, 65px) scale(0.9); }
}

.grid-overlay {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.13) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, transparent 72%);
    mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 1) 20%, transparent 72%);
    opacity: 0.28;
}

/* ============ Botões ============ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 28px;
    border-radius: 14px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #25d366 0%, #16a34a 100%);
    color: #ffffff;
    box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.5);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px -8px rgba(37, 211, 102, 0.6);
    filter: brightness(1.05);
}

.btn-primary:active {
    transform: translateY(0) scale(0.99);
}

.btn-ghost {
    background: var(--surface);
    border: 1px solid var(--stroke);
    color: var(--text);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    border-color: var(--stroke-green);
    background: rgba(37, 211, 102, 0.08);
}

/* ============ Header ============ */

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-h);
    display: flex;
    align-items: center;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    border-bottom: 1px solid transparent;
}

.site-header.scrolled {
    background: rgba(6, 13, 9, 0.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom-color: var(--stroke);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.8);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo img {
    height: 30px;
    width: auto;
}

.nav {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav a {
    padding: 9px 15px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--muted);
    transition: color 0.2s ease, background 0.2s ease;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    background: var(--surface);
}

.header-cta {
    padding: 11px 20px;
    font-size: 0.88rem;
}

.nav-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--surface);
    color: var(--text);
    font-size: 1.3rem;
    cursor: pointer;
    align-items: center;
    justify-content: center;
}

/* ============ Hero ============ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 48px) 0 64px;
    background: linear-gradient(165deg, #081710 0%, var(--bg) 55%, #04140c 100%);
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 56px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.3rem, 4.4vw, 3.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -1.5px;
    margin: 26px 0 22px;
}

.hero-sub {
    font-size: 1.08rem;
    color: var(--muted);
    max-width: 540px;
    margin-bottom: 34px;
}

.hero-sub strong {
    color: var(--text);
    font-weight: 600;
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 36px;
}

.hero-proof {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 22px;
    margin-bottom: 34px;
}

.hero-proof span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--muted);
}

.hero-proof i {
    color: var(--green);
    font-size: 1rem;
}

.meta-badge {
    height: 76px;
    width: auto;
    opacity: 0.95;
}

/* ============ iPhone mockup + WhatsApp ============ */

.phone-wrap {
    position: relative;
    display: flex;
    justify-content: center;
    /* flex-start impede o stretch vertical, que anularia o aspect-ratio do iPhone */
    align-items: flex-start;
}

.phone-wrap::before {
    content: "";
    position: absolute;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
    background: radial-gradient(circle, rgba(37, 211, 102, 0.32) 0%, rgba(37, 211, 102, 0) 70%);
    filter: blur(60px);
    z-index: 0;
}

.iphone {
    position: relative;
    z-index: 1;
    width: 312px;
    /* Proporção real do iPhone 16 Pro (71,5 × 149,6 mm): altura fixa =
       largura ÷ 0,478. O aparelho NUNCA estica — conversa longa é cortada
       no topo, como num celular real (a conversa ancora embaixo). */
    height: 653px;
    display: flex;
    flex-direction: column;
    border-radius: 46px;
    background: #000000;
    padding: 6px;
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.8);
    animation: phoneFloat 7s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-9px); }
}

.iphone::before {
    /* Dynamic island */
    content: "";
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 92px;
    height: 26px;
    border-radius: 999px;
    background: #000;
    z-index: 5;
}

.iphone-screen {
    flex: 1;
    min-height: 0;
    border-radius: 40px;
    overflow: hidden;
    background: #0b141a;
    display: flex;
    flex-direction: column;
    /* Não herdar o text-align:center do .step-row no mobile */
    text-align: left;
}

.wa-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 50px 16px 12px;
    background: #1f2c34;
}

.wa-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #128c46);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 1rem;
    flex-shrink: 0;
    overflow: hidden;
}

/* Avatar com a marca: fundo preto fecha a circunferência e o logo fica menor, centralizado */
.wa-avatar-brand {
    background: #000000;
}

.wa-avatar img {
    width: 74%;
    height: 74%;
    object-fit: contain;
    border-radius: 50%;
}

.wa-title {
    flex: 1;
    min-width: 0;
}

.wa-title strong {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #e9edef;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.wa-title small {
    font-size: 0.66rem;
    color: #8696a0;
}

.wa-title small.online {
    color: var(--green-soft);
}

.wa-icons {
    display: flex;
    gap: 16px;
    color: #aebac1;
    font-size: 0.95rem;
}

.wa-chat {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    /* Conversa ancorada embaixo, como no WhatsApp real (se faltar
       espaço, o corte acontece no topo, nunca na última mensagem) */
    justify-content: flex-end;
    gap: 9px;
    padding: 16px 12px;
    overflow: hidden;
    background:
        radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 22px 22px;
    background-color: #0b141a;
}

.wa-day {
    align-self: center;
    background: #1f2c34;
    color: #8696a0;
    font-size: 0.62rem;
    font-weight: 500;
    padding: 4px 10px;
    border-radius: 8px;
    margin-bottom: 2px;
}

.wa-bubble {
    max-width: 82%;
    padding: 8px 10px 6px;
    border-radius: 10px;
    font-size: 0.76rem;
    line-height: 1.42;
    color: #e9edef;
}

.wa-bubble .wa-meta {
    display: block;
    text-align: right;
    font-size: 0.58rem;
    color: rgba(233, 237, 239, 0.55);
    margin-top: 3px;
}

/* Nome do remetente em negrito na 1ª linha (padrão da I.A. da BIWAPP) */
.wa-sender {
    display: block;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

/* Mensagem com imagem (campanha) */
.wa-bubble img {
    width: 100%;
    height: auto;
    border-radius: 7px;
    margin-bottom: 6px;
    display: block;
}

/* Arte de campanha desenhada em CSS (anexo de imagem do balão) */
.wa-promo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    text-align: center;
    width: 100%;
    border-radius: 7px;
    margin-bottom: 7px;
    padding: 20px 10px;
    background:
        radial-gradient(circle at 18% 22%, rgba(37, 211, 102, 0.38), transparent 60%),
        radial-gradient(circle at 82% 80%, rgba(13, 148, 136, 0.32), transparent 55%),
        linear-gradient(150deg, #0d3b24, #071510);
    border: 1px solid rgba(37, 211, 102, 0.25);
}

.wa-promo-tag {
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: #a7f8c8;
}

.wa-promo strong {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    background: linear-gradient(92deg, #36e27d 0%, #a7f8c8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.wa-promo-sub {
    font-size: 0.6rem;
    color: rgba(244, 251, 246, 0.75);
}

.wa-bubble .ticks {
    color: #53bdeb;
    letter-spacing: -1px;
}

.wa-in {
    align-self: flex-start;
    background: #1f2c34;
    border-top-left-radius: 3px;
}

.wa-out {
    align-self: flex-end;
    background: #005c4b;
    border-top-right-radius: 3px;
}

.wa-system {
    align-self: center;
    text-align: center;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid rgba(37, 211, 102, 0.28);
    color: var(--green-soft);
    font-size: 0.64rem;
    font-weight: 500;
    padding: 5px 12px;
    border-radius: 999px;
    max-width: 92%;
}

.wa-system.alert {
    background: rgba(251, 191, 36, 0.09);
    border-color: rgba(251, 191, 36, 0.32);
    color: #fcd34d;
}

.wa-input {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 16px;
    background: #0b141a;
}

.wa-input .field {
    flex: 1;
    background: #1f2c34;
    border-radius: 999px;
    padding: 9px 14px;
    font-size: 0.72rem;
    color: #8696a0;
}

.wa-input .mic {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #16a34a);
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Balões animam quando o passo entra na tela */
.wa-anim .wa-bubble,
.wa-anim .wa-system {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
}

.visible .wa-anim .wa-bubble,
.visible .wa-anim .wa-system {
    animation: waPop 0.4s ease-out both;
}

.visible .wa-anim > *:nth-child(2) { animation-delay: 0.15s; }
.visible .wa-anim > *:nth-child(3) { animation-delay: 0.55s; }
.visible .wa-anim > *:nth-child(4) { animation-delay: 0.95s; }
.visible .wa-anim > *:nth-child(5) { animation-delay: 1.35s; }
.visible .wa-anim > *:nth-child(6) { animation-delay: 1.75s; }

@keyframes waPop {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Telefones menores nas etapas */
.step-row .iphone {
    width: 296px;
    height: 619px;
}

/* ============ Mockup de navegador (Safari) ============ */

.safari {
    width: 100%;
    max-width: 540px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: #11160f;
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

.safari-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: #161c18;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.safari-dots {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

.safari-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: block;
}

.safari-dots i:nth-child(1) { background: #ff5f57; }
.safari-dots i:nth-child(2) { background: #febc2e; }
.safari-dots i:nth-child(3) { background: #28c840; }

.safari-url {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--muted);
}

.safari-url i {
    font-size: 0.68rem;
    color: var(--muted-2);
}

.safari-actions {
    color: var(--muted-2);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.safari-body {
    background: #0a0c0b;
}

.safari-body img {
    width: 100%;
    height: auto;
    display: block;
}

/* ============ Conteúdo do Portal recriado em HTML/CSS (dark mode) ============ */

.portal {
    padding: 18px;
    color: #f2f4f3;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: left;
}

.portal-title {
    font-size: 1.02rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    color: #f5f7f6;
    margin: 0 0 14px;
}

.portal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.portal-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    background: #101312;
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 16px;
    padding: 18px;
}

.portal-card h6 {
    font-size: 0.9rem;
    font-weight: 700;
    color: #f5f7f6;
    margin: 0 0 10px;
}

.portal-card .p-desc {
    color: #8d9590;
    margin: 0 0 8px;
}

.portal-card .p-strong {
    color: #e6eae8;
    margin: 0 0 12px;
}

.portal-pill {
    display: inline-block;
    background: rgba(37, 211, 102, 0.14);
    color: #4ade80;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
}

.portal-sep {
    height: 1px;
    width: 100%;
    background: rgba(255, 255, 255, 0.07);
    margin: 14px 0;
}

/* Rodapé fixo do card: botão + hint alinhados entre os cards */
.portal-foot {
    margin-top: auto;
    width: 100%;
}

.portal-btn {
    display: inline-block;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    color: #7b827e;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 5px 12px;
    border-radius: 7px;
    cursor: not-allowed;
}

.portal-hint {
    display: block;
    color: #7b827e;
    font-size: 0.7rem;
    margin-top: 7px;
}

/* Cards de resultado (Sentimos sua falta / Aniversário) */

.p-sub {
    color: #8d9590;
    margin: 0 0 18px;
}

.p-metrics {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 6px;
    margin-bottom: 4px;
    text-align: center;
    width: 100%;
}

.p-metric {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.p-metric i {
    color: #2ee06f;
    font-size: 1.1rem;
    line-height: 1;
    filter: drop-shadow(0 0 7px rgba(37, 211, 102, 0.65));
}

.p-metric strong {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: -0.2px;
    color: #ffffff;
    white-space: nowrap;
}

.p-metric .lbl {
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.9px;
    color: #8d9590;
    text-transform: uppercase;
}

.p-gauge {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: conic-gradient(#2ee06f calc(var(--val) * 1%), #272b29 0);
    display: grid;
    place-items: center;
    margin-bottom: 3px;
}

.p-gauge b {
    width: 39px;
    height: 39px;
    border-radius: 50%;
    background: #101312;
    display: grid;
    place-items: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: #ffffff;
}

.p-chip {
    display: inline-block;
    background: rgba(255, 255, 255, 0.07);
    border-radius: 8px;
    padding: 5px 11px;
    font-size: 0.7rem;
    color: #d6dad8;
}

.p-chip strong {
    font-weight: 700;
    color: #ffffff;
}

.p-money {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: #2ee06f;
    margin: 12px 0 2px;
}

.p-ref {
    color: #7b827e;
    font-size: 0.7rem;
    margin: 0 0 10px;
}

/* ============ Seções ============ */

.section {
    position: relative;
    padding: 104px 0;
}

.section.alt {
    background: var(--bg-2);
}

.section-head {
    max-width: 720px;
    margin: 0 auto 64px;
    text-align: center;
}

.section-head h2 {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.15;
    margin: 18px 0 14px;
}

.section-head p {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ============ Stats ============ */

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.stat-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 30px 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--stroke-green);
    background: var(--surface-2);
}

.stat-card .num {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1;
    margin-bottom: 12px;
}

.stat-card p {
    font-size: 0.9rem;
    color: var(--muted);
}

.stat-card p strong {
    color: var(--text);
}

.stats-note {
    margin-top: 26px;
    text-align: center;
    font-size: 0.78rem;
    color: var(--muted-2);
}

/* ============ Cards de valor ============ */

.value-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 96px;
}

.value-card {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 34px 28px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.value-card:hover {
    transform: translateY(-4px);
    border-color: var(--stroke-green);
    background: var(--surface-2);
}

.value-card .icon {
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: rgba(37, 211, 102, 0.1);
    border: 1px solid var(--stroke-green);
    display: grid;
    place-items: center;
    font-size: 1.35rem;
    color: var(--green);
    margin-bottom: 22px;
}

.value-card h3 {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
}

.value-card p {
    font-size: 0.92rem;
    color: var(--muted);
}

/* ============ Etapas (steps) ============ */

.steps-head {
    max-width: 640px;
    margin: 0 auto 72px;
    text-align: center;
}

.steps-head h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 10px;
}

.steps-head p {
    color: var(--muted);
}

.step-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    padding: 44px 0;
}

.step-row + .step-row {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.step-row.flip .step-media {
    order: -1;
}

.step-num {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.step-num .n {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(37, 211, 102, 0.18), rgba(22, 163, 74, 0.12));
    border: 1px solid var(--stroke-green);
    display: grid;
    place-items: center;
    font-size: 1rem;
    font-weight: 800;
    color: var(--green-soft);
    letter-spacing: 0;
}

.step-num .l {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--muted-2);
}

.step-body h4 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.6px;
    margin-bottom: 12px;
}

.step-body p {
    color: var(--muted);
    font-size: 0.98rem;
    max-width: 480px;
}

.step-body .step-hint {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--green-soft);
}

.step-media {
    display: flex;
    justify-content: center;
}

.step-frame {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--stroke);
    background: var(--surface);
    box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.7);
}

.step-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--radius);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    pointer-events: none;
}

.step-frame img {
    width: 100%;
    height: auto;
}

/* ============ CTA banner ============ */

.cta-banner {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    background: linear-gradient(160deg, #0a1f14 0%, #071510 60%, #04140c 100%);
    border: 1px solid var(--stroke);
    padding: 64px 56px;
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 40px;
    align-items: center;
    margin-top: 88px;
}

.cta-banner .backdrop {
    border-radius: 28px;
}

.cta-banner-content {
    position: relative;
    z-index: 2;
}

.cta-banner h3 {
    font-size: clamp(1.5rem, 2.6vw, 2.1rem);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin-bottom: 14px;
}

.cta-banner p {
    color: var(--muted);
    font-size: 1rem;
    max-width: 560px;
}

.cta-banner .cta-side {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
}

/* ============ Pricing ============ */

.pricing-grid {
    display: flex;
    gap: 20px;
    align-items: stretch;
    overflow-x: auto;
    padding: 24px 4px 56px;
    margin: 0 -4px;
    scrollbar-width: none;
    --fade-left: 0px;
    --fade-right: 90px;
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0, #000 var(--fade-left), #000 calc(100% - var(--fade-right)), transparent 100%);
}

.pricing-grid::-webkit-scrollbar {
    display: none;
}

.price-card {
    position: relative;
    flex: 0 0 calc(25% - 35px);
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 24px;
    padding: 36px 26px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.25s ease, border-color 0.25s ease;
}

.price-card:hover {
    transform: translateY(-5px);
    border-color: var(--stroke-green);
}

.price-card.recommended {
    background: linear-gradient(180deg, rgba(37, 211, 102, 0.1) 0%, rgba(255, 255, 255, 0.04) 45%);
    border-color: var(--stroke-green);
    box-shadow: 0 24px 60px -28px rgba(37, 211, 102, 0.45);
}

.price-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #25d366, #16a34a);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: 0 8px 20px -6px rgba(37, 211, 102, 0.6);
}

.price-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.price-old {
    font-size: 0.88rem;
    color: var(--muted-2);
    text-decoration: line-through;
    margin-bottom: 4px;
}

.price-now {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.1;
}

.price-now sup {
    font-size: 1rem;
    font-weight: 700;
    margin-right: 4px;
    top: -1em;
}

.price-now span {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--muted);
    letter-spacing: 0;
}

.price-setup {
    font-size: 0.78rem;
    color: var(--muted-2);
    margin: 8px 0 24px;
}

.price-feats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 26px;
    flex: 1;
}

.price-feats li {
    display: flex;
    gap: 10px;
    font-size: 0.88rem;
    color: var(--text);
    align-items: flex-start;
}

.price-feats li i {
    color: var(--green);
    font-size: 1rem;
    flex-shrink: 0;
    line-height: 1.4;
}

.price-feats li small {
    display: block;
    color: var(--muted-2);
    font-size: 0.76rem;
}

.price-feats li.na {
    color: var(--muted-2);
}

.price-feats li.na i {
    color: rgba(255, 255, 255, 0.22);
}

.price-offer {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--green-soft);
    text-align: center;
    margin-bottom: 14px;
}

.price-card .btn {
    width: 100%;
}

/* ============ FAQ ============ */

.faq-wrap {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.faq-item {
    background: var(--surface);
    border: 1px solid var(--stroke);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.faq-item[open] {
    border-color: var(--stroke-green);
    background: var(--surface-2);
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px;
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--text);
}

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

.faq-item summary i {
    margin-left: auto;
    color: var(--green);
    font-size: 1rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] summary i {
    transform: rotate(90deg);
}

.faq-item .faq-a {
    padding: 0 24px 22px 24px;
    color: var(--muted);
    font-size: 0.92rem;
}

.faq-item .faq-a strong {
    color: var(--text);
}

/* ============ Footer ============ */

.site-footer {
    position: relative;
    background: #040a07;
    border-top: 1px solid var(--stroke);
    padding: 72px 0 36px;
    overflow: hidden;
}

.footer-inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    text-align: center;
}

.footer-inner > img {
    height: 32px;
}

.footer-tag {
    color: var(--muted);
    font-size: 0.92rem;
    max-width: 440px;
}

.social-links {
    display: flex;
    gap: 12px;
}

.social-links a {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: var(--muted);
    transition: all 0.2s ease;
}

.social-links a:hover {
    color: #ffffff;
    border-color: var(--stroke-green);
    background: rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.footer-legal {
    margin-top: 16px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    width: 100%;
    font-size: 0.8rem;
    color: var(--muted-2);
}

.footer-legal a {
    color: var(--muted);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.footer-legal a:hover {
    color: var(--text);
}

/* ============ Scroll top ============ */

.scroll-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 90;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: linear-gradient(135deg, #25d366, #16a34a);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    box-shadow: 0 12px 26px -8px rgba(37, 211, 102, 0.5);
}

.scroll-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* ============ Reveal on scroll ============ */

.reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============ Acessibilidade ============ */

:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .aurora,
    .iphone,
    .kicker .dot {
        animation: none !important;
    }
    .reveal,
    .wa-anim .wa-bubble,
    .wa-anim .wa-system {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
        animation: none !important;
    }
}

/* ============ Responsivo ============ */

@media (max-width: 1080px) {
    .hero-inner {
        gap: 40px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-card {
        flex-basis: calc(33.333% - 36px);
    }
}

@media (max-width: 920px) {
    .nav {
        position: fixed;
        top: var(--header-h);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 18px 24px 26px;
        background: rgba(6, 13, 9, 0.97);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        border-bottom: 1px solid var(--stroke);
        transform: translateY(-12px);
        opacity: 0;
        visibility: hidden;
        transition: all 0.25s ease;
    }

    body.nav-open .nav {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav a {
        padding: 13px 16px;
        font-size: 1rem;
    }

    .nav-toggle {
        display: flex;
    }

    .header-cta {
        display: none;
    }

    .hero {
        padding-top: calc(var(--header-h) + 28px);
    }

    .hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-sub {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-ctas,
    .hero-proof {
        justify-content: center;
    }

    .meta-badge {
        margin: 0 auto;
    }

    .value-grid {
        grid-template-columns: 1fr;
        margin-bottom: 64px;
    }

    .step-row,
    .step-row.flip {
        grid-template-columns: 1fr;
        gap: 36px;
        text-align: center;
        padding: 36px 0;
    }

    .step-row.flip .step-media {
        order: 0;
    }

    .step-num {
        justify-content: center;
    }

    .step-body p {
        margin: 0 auto;
    }

    .cta-banner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 48px 28px;
    }

    .cta-banner p {
        margin: 0 auto;
    }

    .price-card {
        flex-basis: calc(50% - 45px);
    }
}

@media (max-width: 560px) {
    .section {
        padding: 72px 0;
    }

    .pricing-grid {
        flex-direction: column;
        overflow-x: visible;
        padding: 12px 0 20px;
        margin: 0;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .price-card {
        flex: 0 0 auto;
        width: 100%;
    }

    .portal-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-ctas .btn {
        width: 100%;
    }

    .iphone {
        width: 280px;
        height: 586px;
    }

    .step-row .iphone {
        width: 268px;
        height: 561px;
    }
}

/* ==========================================================================
   Theme switch (navbar) + Light mode
   ========================================================================== */

/* Agrupa as ações do header (switch + CTA + hambúrguer) à direita */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Logo: troca branco↔preto conforme o tema */
.logo-img-light {
    display: none;
}

html.light .logo-img-dark {
    display: none;
}

html.light .logo-img-light {
    display: block;
}

/* Switch claro/escuro */
.theme-switch {
    position: relative;
    flex-shrink: 0;
    width: 54px;
    height: 28px;
    border-radius: 999px;
    border: 1px solid var(--stroke);
    background: var(--surface);
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, border-color 0.25s ease;
}

.theme-switch:hover {
    border-color: var(--stroke-green);
}

.theme-switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366, #16a34a);
    display: grid;
    place-items: center;
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: left 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

html.light .theme-switch-thumb {
    left: calc(100% - 24px);
}

.theme-switch .icon-light {
    display: none;
}

html.light .theme-switch .icon-dark {
    display: none;
}

html.light .theme-switch .icon-light {
    display: inline;
}

/* Transição suave ao alternar o tema */
body,
.site-header,
.stat-card,
.value-card,
.price-card,
.faq-item,
.blog-card {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

/* ============ Light mode — tokens ============ */

html.light {
    --green: #15a34a;
    --green-deep: #15803d;
    --green-soft: #15803d;
    --bg: #f5f9f6;
    --bg-2: #eaf2ec;
    --surface: rgba(6, 24, 14, 0.035);
    --surface-2: rgba(6, 24, 14, 0.06);
    --stroke: rgba(6, 30, 18, 0.10);
    --stroke-green: rgba(21, 163, 74, 0.30);
    --text: #0b1a12;
    --muted: #4d5f56;
    --muted-2: #7a8a81;
}

/* Texto em gradiente: tom mais profundo para contraste no claro */
html.light .grad {
    background: linear-gradient(92deg, #15a34a 0%, #15803d 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* Fundos que eram hardcoded escuros */
html.light .hero {
    background: linear-gradient(165deg, #e8f5ec 0%, var(--bg) 55%, #e4f2e8 100%);
}

html.light .grid-overlay {
    background-image: radial-gradient(rgba(6, 40, 24, 0.10) 1px, transparent 1px);
}

html.light .aurora {
    opacity: 0.72;
}

/* Badge Meta: versão escura (glifos claros) no dark, versão preta no claro */
.meta-badge-light {
    display: none;
}

html.light .meta-badge-dark {
    display: none;
}

html.light .meta-badge-light {
    display: block;
}

html.light .site-header.scrolled {
    background: rgba(245, 249, 246, 0.82);
    border-bottom-color: var(--stroke);
    box-shadow: 0 10px 30px -18px rgba(0, 0, 0, 0.12);
}

/* Só o dropdown mobile recebe fundo; no desktop os itens ficam transparentes */
@media (max-width: 920px) {
    html.light .nav {
        background: rgba(245, 249, 246, 0.98);
        border-bottom-color: var(--stroke);
    }
}

html.light .cta-banner {
    background: linear-gradient(160deg, #e6f6ec 0%, #eef7f1 60%, #e6f3ea 100%);
    border-color: var(--stroke-green);
}

/* Footer permanece escuro no claro: re-declara tokens dark p/ legibilidade interna */
html.light .site-footer {
    --green: #25d366;
    --green-deep: #16a34a;
    --green-soft: #7df0a8;
    --text: #f4fbf6;
    --muted: #9fb3a8;
    --muted-2: #7c8f84;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-2: rgba(255, 255, 255, 0.07);
    --stroke: rgba(255, 255, 255, 0.09);
    --stroke-green: rgba(37, 211, 102, 0.3);
}

/* ============ Light mode — mockup do iPhone (WhatsApp claro) ============ */

html.light .iphone-screen {
    background: #efeae2;
}

html.light .wa-header {
    background: #f0f2f5;
}

html.light .wa-title strong {
    color: #111b21;
}

html.light .wa-title small {
    color: #667781;
}

html.light .wa-title small.online {
    color: #15803d;
}

html.light .wa-icons {
    color: #54656f;
}

html.light .wa-chat {
    background-color: #efeae2;
    background-image: radial-gradient(rgba(17, 27, 33, 0.04) 1px, transparent 1px);
}

html.light .wa-day {
    background: #ffffff;
    color: #54656f;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

html.light .wa-bubble {
    color: #111b21;
}

html.light .wa-bubble .wa-meta {
    color: rgba(17, 27, 33, 0.5);
}

html.light .wa-in {
    background: #ffffff;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

html.light .wa-out {
    background: #d9fdd3;
    box-shadow: 0 1px 1px rgba(11, 20, 26, 0.08);
}

html.light .wa-sender {
    color: #15803d;
}

html.light .wa-system {
    background: rgba(21, 163, 74, 0.12);
    border-color: rgba(21, 163, 74, 0.3);
    color: #15803d;
}

html.light .wa-system.alert {
    background: rgba(217, 119, 6, 0.12);
    border-color: rgba(217, 119, 6, 0.32);
    color: #b45309;
}

html.light .wa-input {
    background: #f0f2f5;
}

html.light .wa-input .field {
    background: #ffffff;
    color: #667781;
}

/* ============ Light mode — mockup do Safari (portal claro) ============ */

html.light .safari {
    background: #ffffff;
}

html.light .safari-bar {
    background: #f0f1f3;
    border-bottom-color: #e4e6eb;
}

html.light .safari-url {
    background: #e4e6eb;
    color: #555f68;
}

html.light .safari-url i,
html.light .safari-actions {
    color: #8a929b;
}

html.light .safari-body {
    background: #f6f8f9;
}

html.light .portal,
html.light .portal-title,
html.light .portal-card h6,
html.light .p-strong {
    color: #101828;
}

html.light .portal-card {
    background: #ffffff;
    border-color: #e8ecef;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

html.light .p-desc,
html.light .p-sub,
html.light .p-metric .lbl,
html.light .portal-hint,
html.light .p-ref {
    color: #667085;
}

/* "Importado": mesmo verde da marca usado no dark (família #25d366),
   ajustado para leitura no card branco (o #4ade80 do dark não tem contraste no claro) */
html.light .portal-pill {
    background: rgba(37, 211, 102, 0.16);
    color: #16a34a;
}

html.light .portal-sep {
    background: #eef1f4;
}

html.light .portal-btn {
    background: #f1f3f5;
    border-color: #e8ecef;
    color: #98a2b3;
}

html.light .p-metric i {
    color: #65d072;
    filter: none;
}

html.light .p-metric strong,
html.light .p-gauge b,
html.light .p-chip strong {
    color: #101828;
}

html.light .p-gauge {
    background: conic-gradient(#65d072 calc(var(--val) * 1%), #e7ebee 0);
}

html.light .p-gauge b {
    background: #ffffff;
}

html.light .p-chip {
    background: #eef1f4;
    color: #344054;
}

html.light .p-money {
    color: #65d072;
}
