/*
 * Folha de estilos para o site inspirado no ElitePass.
 * Define variáveis de cor, layouts responsivos e animações.
 */
:root {
    /* Cores atualizadas para combinar com a marca AccessAuth */
    --primary-bg: #051f33;
    --secondary-bg: #0c294b;
    --accent-color: #00a7e1;
    --text-color: #f5f5f5;
    --text-muted: #a6acd0;
    --focus-ring: #9cecff;
    --surface-dark: rgba(11, 42, 74, 0.72);
    --surface-light: rgba(255, 255, 255, 0.82);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-dark: rgba(5, 31, 51, 0.08);
    --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.16);
    --shadow-strong: 0 26px 60px rgba(0, 0, 0, 0.24);
    --page-glow: radial-gradient(circle at top left, rgba(0, 167, 225, 0.18), transparent 28%), radial-gradient(circle at top right, rgba(156, 236, 255, 0.12), transparent 32%);
    /* Shared color for header and logo backgrounds */
    --header-bg: rgba(7, 27, 47, 0.95);
    --header-padding-y: 10px;
    --header-logo-height: 70px;
    --header-logo-text-size: 44px;
    --header-nav-padding-y: 6px;
    --header-nav-padding-x: 10px;
    --header-nav-gap: 6px 8px;
    --header-link-padding-y: 8px;
    --header-link-padding-x: 12px;
    --header-cta-padding-y: 10px;
    --header-cta-padding-x: 18px;
    --header-cta-min-height: 42px;
    --radius: 14px;

    /*
     * Custom colour for feature icons.
     * This is a light variant of the primary accent colour.  Using a lighter tone
     * ensures the line‐art icons stand out against the dark card backgrounds.
     * Adjust this value if you tweak the primary accent colour.
     */
    --icon-color: #4fd6ff;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background: var(--page-glow), linear-gradient(180deg, #041827 0%, #051f33 36%, #041321 100%);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

a,
button,
input,
select,
textarea {
    transition: color .3s ease, background-color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease, opacity .3s ease;
}

:focus {
    outline: none;
}

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 4px;
    box-shadow: 0 0 0 6px rgba(0, 167, 225, 0.16);
}

nav a:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.faq-question:focus-visible,
#calculator input[type="number"]:focus-visible,
#calculator input[type="range"]:focus-visible {
    transform: translateY(-1px);
}

section[id] {
    scroll-margin-top: clamp(132px, 16vh, 180px);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -56px;
    z-index: 2000;
    padding: 12px 16px;
    border-radius: 8px;
    background: #ffffff;
    color: #071b2f;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.skip-link:focus {
    top: 16px;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: var(--header-padding-y) clamp(16px, 3vw, 40px);
    /* Use the shared header background color variable */
    background: var(--header-bg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(14px);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    isolation: isolate;
    transition: none;
}

/* Logo container com imagem e texto */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--accent-color);
    min-width: 0;
}

.logo img {
    height: var(--header-logo-height);
    width: auto;
    display: block;
    transition: none;
}

/*
 * Aumenta e estiliza a imagem do robô para que ela se destaque tanto no
 * cabeçalho quanto no menu flutuante. O fundo por trás do robô usa a
 * mesma cor do cabeçalho (rgba(7, 27, 47, 0.95)), garantindo
 * consistência visual. Ajuste a largura e a altura para tornar o robô
 * mais visível.
 */
.logo img.logo-image {
    height: var(--header-logo-height);
    width: auto;
    object-fit: contain;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

.logo-text {
    display: inline-block;
    margin-left: 10px;
    font-size: var(--header-logo-text-size);
    font-weight: 600;
    letter-spacing: 0.3px;
    transition: none;
}

header nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--header-nav-gap);
    padding: var(--header-nav-padding-y) var(--header-nav-padding-x);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    min-width: 0;
}

header nav a {
    padding: var(--header-link-padding-y) var(--header-link-padding-x);
    font-size: 0.95rem;
}

nav a {
    text-decoration: none;
    color: #ffffff;
    font-weight: 500;
    letter-spacing: 0.2px;
    position: relative;
    border-radius: 999px;
    transition: color .3s ease, opacity .3s ease, background-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

nav a:hover {
    color: var(--accent-color);
    background: rgba(0, 167, 225, 0.08);
}

nav a[aria-current="page"] {
    color: var(--accent-color);
    background: rgba(0, 167, 225, 0.14);
    box-shadow: inset 0 0 0 1px rgba(0, 167, 225, 0.2);
}

nav a::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 5px;
    width: 100%;
    height: 2px;
    background: var(--accent-color);
    opacity: 0;
    transform: scaleX(0.7);
    transform-origin: left;
    transition: opacity .25s ease, transform .25s ease;
}

nav a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

nav a[aria-current="page"]::after,
nav a:focus-visible::after {
    opacity: 1;
    transform: scaleX(1);
}

header .btn-primary {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 167, 225, 0.2);
    padding: var(--header-cta-padding-y) var(--header-cta-padding-x);
    min-height: var(--header-cta-min-height);
}

.btn-primary {
    background: var(--accent-color);
    color: #fff;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: calc(var(--radius) + 2px);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid transparent;
    transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease, filter .3s ease;
}

.btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.btn-primary:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 167, 225, 0.22);
}

/* Sections */
section {
    padding: clamp(72px, 9vw, 108px) 20px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

section h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 36px;
    text-align: center;
    color: var(--accent-color);
    letter-spacing: 0.2px;
}

.info-panel {
    max-width: 960px;
    margin: 0 auto;
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.94) 0%, rgba(8, 29, 53, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: calc(var(--radius) + 10px);
    padding: clamp(28px, 4vw, 44px);
    text-align: center;
    box-shadow: var(--shadow-soft);
}

.info-panel p {
    color: var(--text-muted);
    font-size: 1.03rem;
    max-width: 760px;
    margin: 0 auto;
}

.subtle-note {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-top: 10px;
}

.section-dark,
.section-light {
    position: relative;
    isolation: isolate;
}

.section-dark::before,
.section-light::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
}

.section-dark::before {
    background: linear-gradient(180deg, #06182a 0%, #0b2947 100%);
}

.section-light {
    --text-color: #0b2a4a;
    --text-muted: #4d5a6a;
    color: var(--text-color);
}

.section-light::before {
    background:
        radial-gradient(circle at top left, rgba(0, 167, 225, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 167, 225, 0.04), transparent 28%),
        #ffffff;
}

/* Hero */
#hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: clamp(22px, 3vw, 40px);
    min-height: clamp(0px, 80vh, 820px);
    padding-top: clamp(92px, 10vh, 130px); /* compensar header fixo */
    padding-bottom: clamp(28px, 3.2vw, 48px);
    overflow: hidden;
}

#hero .hero-content {
    flex: 1 1 clamp(520px, 52vw, 640px);
    min-width: 0;
    max-width: 640px;
    position: relative;
    padding: clamp(20px, 2vw, 28px);
    border-radius: calc(var(--radius) + 14px);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.82) 0%, rgba(255, 255, 255, 0.74) 100%);
    border: 1px solid rgba(5, 31, 51, 0.09);
    box-shadow: 0 20px 48px rgba(5, 31, 51, 0.12);
    backdrop-filter: blur(10px);
}

#hero .hero-trust-strip {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    justify-content: stretch;
    grid-auto-rows: 1fr;
    width: 100%;
    max-width: none;
    margin: 16px 0 0;
    padding: 0;
    gap: 10px 12px;
    background: transparent;
    border: 0;
    box-shadow: none;
}

#hero .hero-trust-strip .trust-badge {
    display: block;
    width: 100%;
    position: relative;
    padding: 11px 14px 11px 18px;
    border-radius: calc(var(--radius) + 4px);
    background: rgba(5, 31, 51, 0.035);
    border: 1px solid rgba(5, 31, 51, 0.08);
    box-shadow: none;
    font-size: 0.96rem;
    line-height: 1.35;
    font-weight: 400;
    color: var(--text-muted);
}

#hero .hero-trust-strip .trust-badge::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

#hero .hero-trust-strip .trust-badge:last-child {
    grid-column: 1 / -1;
}

#hero h1 {
    font-size: clamp(2.15rem, 3.35vw, 3.55rem);
    line-height: 1.02;
    margin-bottom: 14px;
    max-width: 12.2ch;
    color: #071b2f;
    text-wrap: balance;
    letter-spacing: -0.02em;
}

#hero p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    margin-bottom: 18px;
    color: var(--text-muted);
    max-width: 56ch;
}

.hero-benefits {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    color: var(--text-muted);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 12px;
}

.hero-benefits li {
    margin-bottom: 0;
    padding: 11px 14px 11px 18px;
    border-radius: calc(var(--radius) + 4px);
    background: rgba(5, 31, 51, 0.035);
    border: 1px solid rgba(5, 31, 51, 0.08);
    font-size: 0.96rem;
    line-height: 1.35;
    position: relative;
}

.hero-benefits li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
}

.phone-wrapper {
    flex: 0 0 clamp(280px, 28vw, 340px);
    display: flex;
    justify-content: center;
    margin-top: 0;
    padding: 0;
}

.phone {
    width: 100%;
    max-width: 330px;
    aspect-ratio: 1 / 2;
    border-radius: 46px;
    padding: 14px;
    background: #000;
    box-shadow: inset 0 0 0 2px #333, 0 20px 50px rgba(0, 0, 0, 0.4);
    position: relative;
}

/* Simula o entalhe/Ilha dinâmica (notch) da tela de um smartphone */
.phone::before {
    content: '';
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 30%;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.screen {
    width: 100%;
    height: 100%;
    border-radius: 32px;
    background: #10163a;
    overflow: hidden;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.gif-placeholder {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: 100%;
    padding: 0;
    gap: 0;
}

/* Phone demo — mini Telegram chat visual */
.phone-demo {
    background: #0e1621;
    border-radius: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-demo-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px 12px;
    background: #17212b;
    border-bottom: 1px solid rgba(255,255,255,0.06);
    flex-shrink: 0;
}

.phone-demo-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00a7e1, #0078b0);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: #fff;
}

.phone-demo-title {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.phone-demo-title strong {
    font-size: 0.82rem;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
}

.phone-demo-title small {
    font-size: 0.68rem;
    color: #00a7e1;
    line-height: 1.2;
}

.phone-demo-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 18px 14px;
    overflow: hidden;
}

.phone-demo-msg {
    display: inline-block;
    align-self: flex-start;
    background: #182533;
    color: #e8e8e8;
    font-size: 0.72rem;
    line-height: 1.4;
    padding: 8px 12px;
    border-radius: 0 12px 12px 12px;
    max-width: 88%;
    opacity: 0;
    transform: translateY(6px);
    animation: msgAppear 0.5s ease forwards;
}

.phone-demo-msg.anim-delay-1 { animation-delay: 0.6s; }
.phone-demo-msg.anim-delay-2 { animation-delay: 1.2s; }
.phone-demo-msg.anim-delay-3 { animation-delay: 1.8s; }

@keyframes msgAppear {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .phone-demo-msg {
        animation: none;
        opacity: 1;
        transform: none;
    }
}

.screen .phone-gif {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    position: absolute;
    inset: 0;
}

/* Features */
#features .features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

/* Introductory section */
#intro {
    padding: clamp(72px, 9vw, 108px) 20px;
    max-width: 1200px;
    margin: 0 auto;
}

#intro h2 {
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    margin-bottom: 36px;
    text-align: center;
    color: var(--accent-color);
}

#intro .intro-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 30px;
}

#intro .intro-item {
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.96) 0%, rgba(8, 29, 53, 0.98) 100%);
    padding: 28px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}

#intro .intro-item h3 {
    margin-bottom: 10px;
    font-size: 1.25rem;
    color: var(--accent-color);
}

#intro .intro-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

#intro .intro-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 167, 225, 0.35);
    box-shadow: var(--shadow-strong);
}

.content-focus {
    background: #ffffff;
    padding: 80px 20px;
    max-width: none;
    margin: 0;
}

.content-focus-inner {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.content-focus-text {
    font-size: clamp(20px, 2.6vw, 34px);
    font-weight: 700;
    color: #071b2f;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.content-focus.is-visible .content-focus-text {
    opacity: 1;
    transform: translateY(0);
}

.highlight {
    position: relative;
    display: inline-block;
    padding: 8px 20px;
    margin-left: 6px;
}

.highlight-text {
    position: relative;
    z-index: 2;
}

.highlight-ring {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.highlight-ring ellipse {
    fill: none;
    stroke: #1ec8ff;
    stroke-width: 3px;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    opacity: 0;
}

.highlight-ring.animate ellipse {
    animation: ringPulse 4.5s ease-in-out;
}

@keyframes ringPulse {
    0% {
        opacity: 0;
        stroke-dashoffset: 1;
    }
    27% {
        opacity: 1;
        stroke-dashoffset: 0;
    }
    70% {
        opacity: 1;
    }
    92% {
        opacity: 0;
    }
    100% {
        opacity: 0;
        stroke-dashoffset: 0;
    }
}

.feature-item {
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.96) 0%, rgba(8, 29, 53, 0.98) 100%);
    padding: 32px;
    border-radius: calc(var(--radius) + 6px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    box-shadow: var(--shadow-soft);
    height: 100%;
}

.feature-item:focus-within,
#intro .intro-item:focus-within,
.step-card:focus-within,
.step-item:focus-within,
.trust-bar-item:focus-within,
.trust-badge:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

/*
 * Icon container inside a feature card.  Previously this element simply contained
 * an emoji.  Now it wraps an inline SVG.  To ensure consistent sizing and
 * alignment we remove the font sizing and instead explicitly size the SVG via
 * CSS.  The container is a flexbox to centre the icon horizontally.
 */
.feature-item .icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 16px;
}

/* Size and colour the icons.  Each SVG inherits its stroke colour from the
 * CSS variable defined in :root.  Feel free to tweak the width/height to
 * balance your layout.
 */
.feature-item .icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--icon-color);
    /* preserve the aspect ratio and transparent background */
    fill: none;
}

/*
 * A compact header variant used on static pages (privacy, terms, etc.).
 * Apply the `compact` class to the `<header>` element on pages that do not
 * use a full-size hero, ensuring a consistent appearance across the site.
 */
header.compact {
    padding: var(--header-padding-y) clamp(16px, 3vw, 40px);
}

header.compact .logo img {
    height: var(--header-logo-height);
}

header.compact .logo-text {
    font-size: var(--header-logo-text-size);
}

.feature-item h3 {
    margin-bottom: 10px;
    font-size: 1.3rem;
    color: var(--accent-color);
}

.feature-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.feature-item:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 167, 225, 0.35);
    box-shadow: var(--shadow-strong);
}

/* Trust bar */
.trust-bar,
.trust-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 20px;
    padding: 18px 20px;
    margin: 0 auto 32px;
    max-width: 1100px;
    border-radius: calc(var(--radius) + 8px);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow-soft);
}

.section-light .trust-bar,
.section-light .trust-strip {
    background: rgba(5, 31, 51, 0.04);
    border-color: rgba(5, 31, 51, 0.08);
}

.trust-bar-item,
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-color);
    font-size: 0.92rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: transform .25s ease, background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.trust-strip {
    flex-wrap: wrap;
}

.section-light .trust-bar-item,
.section-light .trust-badge {
    background: #ffffff;
    color: #0b2a4a;
    border-color: rgba(11, 42, 74, 0.08);
}

#trust .info-panel {
    max-width: 1040px;
    border-color: rgba(156, 236, 255, 0.14);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.24);
}

#trust {
    padding-top: clamp(56px, 7vw, 88px);
}

#trust .trust-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px 12px;
    padding: clamp(18px, 2.6vw, 24px);
    margin: 10px auto 26px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-color: rgba(156, 236, 255, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
}

#trust .trust-bar-item {
    width: 100%;
    justify-content: flex-start;
    min-height: 52px;
    padding: 12px 16px 12px 40px;
    text-align: left;
    white-space: normal;
    background: rgba(255, 255, 255, 0.95);
    color: #0b2a4a;
    border-color: rgba(11, 42, 74, 0.08);
    box-shadow: 0 8px 18px rgba(5, 31, 51, 0.06);
    position: relative;
    line-height: 1.3;
}

#trust .trust-bar-item::before {
    content: '';
    position: absolute;
    left: 16px;
    top: 50%;
    width: 9px;
    height: 9px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: var(--accent-color);
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.12);
}

#hero .btn-primary,
#hero .btn-secondary {
    min-height: 52px;
    padding: 14px 22px;
}

#hero .btn-primary {
    margin-right: 12px;
    box-shadow: 0 14px 28px rgba(0, 167, 225, 0.24);
}

#hero .btn-secondary {
    background: rgba(255, 255, 255, 0.66);
    color: #0b2a4a;
    border-color: rgba(11, 42, 74, 0.16);
}

#hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: #0b2a4a;
    border-color: rgba(0, 167, 225, 0.3);
}

/* 3-step section */
.steps-grid,
.steps-list,
.three-steps-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
    align-items: stretch;
}

.step-card,
.step-item {
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.96) 0%, rgba(8, 29, 53, 0.98) 100%);
    border-radius: calc(var(--radius) + 6px);
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
    height: 100%;
}

.step-card:hover,
.step-item:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 167, 225, 0.35);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-bottom: 16px;
    background: rgba(0, 167, 225, 0.18);
    color: var(--accent-color);
    font-weight: 700;
    letter-spacing: 0.4px;
}

.step-card h3,
.step-item h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
    color: var(--accent-color);
}

.step-card p,
.step-item p {
    color: var(--text-muted);
    font-size: 0.96rem;
}

.section-light .step-card,
.section-light .step-item {
    background: #ffffff;
    border-color: rgba(11, 42, 74, 0.08);
}

.section-light .step-card p,
.section-light .step-item p {
    color: #4d5a6a;
}

/* Envoltório de seção com fundo claro — substitui a section aninhada incorreta */
.section-light-wrap {
    position: relative;
    isolation: isolate;
    --text-color: #0b2a4a;
    --text-muted: #4d5a6a;
    color: var(--text-color);
    padding: clamp(72px, 9vw, 108px) 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-light-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
    z-index: -1;
    background:
        radial-gradient(circle at top left, rgba(0, 167, 225, 0.08), transparent 30%),
        radial-gradient(circle at bottom right, rgba(0, 167, 225, 0.04), transparent 28%),
        #ffffff;
}

/* Pricing / destaque de preço */
.pricing-calc-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: start;
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.96) 0%, rgba(8, 29, 53, 0.98) 100%);
    border-radius: calc(var(--radius) + 10px);
    padding: clamp(32px, 4.5vw, 64px) clamp(28px, 4vw, 64px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

.pricing-calc-wrapper.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(5, 31, 51, 0.08);
}

#pricing,
#calculator {
    padding: 0;
    margin: 0;
    max-width: none;
    text-align: left;
    background: transparent;
    align-self: start;
}

#calculator {
    scroll-margin-top: clamp(148px, 18vh, 204px);
}

#pricing h2,
#calculator h2 {
    text-align: left;
    margin-bottom: 20px;
}

#calculator h2 {
    margin-bottom: 16px;
}

#pricing p {
    color: var(--text-muted);
    margin-bottom: 15px;
    font-size: 1rem;
}

#pricing .btn-primary {
    margin-top: 20px;
}

#calculator .calc-intro {
    color: var(--text-muted);
    margin-bottom: 16px;
}


/* FAQ call-to-action */
.faq-cta {
    text-align: center;
    margin-top: 40px;
}

.faq-cta p {
    margin-bottom: 20px;
    color: var(--text-muted);
    font-size: 1rem;
}

.btn-secondary {
    display: inline-block;
    padding: 12px 24px;
    min-height: 48px;
    border-radius: calc(var(--radius) + 2px);
    border: 2px solid var(--accent-color);
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    transition: background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.btn-secondary:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-1px);
}

.btn-secondary:focus-visible {
    box-shadow: 0 0 0 4px rgba(0, 167, 225, 0.2);
}

/* Calculator */
#calculator .calc-container {
    width: min(100%, 680px);
    max-width: 680px;
    margin: 0;
    background: linear-gradient(180deg, #0f2a44 0%, #0b2236 100%);
    border-radius: calc(var(--radius) + 6px);
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
}

#calculator .form-group {
    margin-bottom: 20px;
}

#calculator label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

#calculator .calculator-card label {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

#calculator .calculator-card p {
    color: rgba(255, 255, 255, 0.9);
}

#calculator input[type="number"],
#calculator input[type="range"] {
    width: 100%;
    padding: 12px 14px;
    border-radius: calc(var(--radius) - 2px);
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(76, 195, 255, 0.6);
    color: #ffffff;
}

#calculator input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

#calculator .calculator-card input {
    color: #ffffff !important;
}

#calculator .calculator-card input:focus {
    outline: none;
    border-color: #4cc3ff;
    box-shadow: 0 0 0 2px rgba(76, 195, 255, 0.25);
}

#calculator .calculator-card input:focus-visible {
    border-color: var(--focus-ring);
    box-shadow: 0 0 0 4px rgba(156, 236, 255, 0.18);
}

#calculator input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #2d346e;
    outline: none;
    border-radius: 3px;
    accent-color: #4cc3ff;
}

#calculator input[type="range"]::-webkit-slider-runnable-track {
    background: rgba(255, 255, 255, 0.35);
}

#calculator input[type="range"]::-moz-range-track {
    background: rgba(255, 255, 255, 0.35);
}

#calculator input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-color);
    cursor: pointer;
}

#calculator input[type="range"]:focus-visible::-webkit-slider-thumb {
    box-shadow: 0 0 0 6px rgba(0, 167, 225, 0.2);
}

#calculator input[type="range"]:focus-visible::-moz-range-thumb {
    box-shadow: 0 0 0 6px rgba(0, 167, 225, 0.2);
}

#calculator .results {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 6px;
    margin-top: 18px;
}

#calculator .results p {
    margin: 0;
}

#calculator .results .net-label {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

#calculator .results .net-value {
    font-size: clamp(2rem, 4vw, 2.4rem);
    font-weight: 800;
    color: #4cc3ff;
}

#calculator .results span {
    font-weight: 700;
    color: var(--accent-color);
}

#calculator .calculator-card strong {
    font-weight: 600;
}

#calculator .calculator-card .helper-text,
#calculator .calculator-card .range-value {
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
}

#calculator .calculator-card span,
#calculator .calculator-card small {
    color: rgba(255, 255, 255, 0.9);
}

.section-light .feature-item,
.section-light .intro-item,
.section-light .step-card,
.section-light .step-item {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border-color: rgba(5, 31, 51, 0.08);
}

.section-light .feature-item p,
.section-light .intro-item p,
.section-light .step-card p,
.section-light .step-item p {
    color: #4d5a6a;
}

.section-light .feature-item h3,
.section-light .intro-item h3,
.section-light .step-card h3,
.section-light .step-item h3 {
    color: #0b2a4a;
}

/* FAQ */
#faq .faq-list {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    align-items: start;
}

.faq-item {
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow-soft);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--text-color);
    font-size: 1.1rem;
    padding: 18px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    transition: background .3s ease, color .3s ease, box-shadow .3s ease, transform .3s ease;
}

.faq-question .icon {
    transition: transform .4s ease;
    font-size: 1.5rem;
}

/* Destaque no hover: a pergunta muda de cor e a borda fica mais vibrante */
.faq-item:hover .faq-question {
    color: var(--accent-color);
}

.faq-question:hover,
.faq-question:focus-visible {
    background: rgba(0, 167, 225, 0.1);
    color: var(--accent-color);
    box-shadow: 0 0 0 4px rgba(0, 167, 225, 0.12);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    font-size: 0.95rem;
    color: var(--text-muted);
    transition: max-height .4s ease, padding .4s ease;
    background: rgba(255, 255, 255, 0.02);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 18px 18px;
}

.faq-item.open .faq-question {
    color: var(--accent-color);
    background: rgba(0, 167, 225, 0.08);
}

.faq-item.open .faq-question .icon {
    transform: rotate(45deg);
}

/* CTA section */
#cta {
    text-align: center;
    background: linear-gradient(180deg, rgba(12, 41, 75, 0.96) 0%, rgba(8, 29, 53, 0.98) 100%);
    padding: clamp(36px, 5vw, 64px) 20px;
    border-radius: calc(var(--radius) + 10px);
    max-width: 860px;
    margin: 80px auto;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-strong);
}

#cta.section-light {
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    border: 1px solid rgba(5, 31, 51, 0.08);
}

#cta h2 {
    margin-bottom: 20px;
    color: var(--accent-color);
}

#cta p {
    margin-bottom: 30px;
    color: var(--text-muted);
}

/* Footer */
footer {
    background: #0a0923;
    padding: 40px 20px;
    color: var(--text-muted);
}

footer .footer-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    text-align: center;
    gap: 16px;
}

footer .footer-logo {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 10px;
}

footer .footer-links a {
    margin-left: 20px;
    text-decoration: none;
    color: var(--text-muted);
    transition: color .3s ease;
}

footer .footer-links a:hover {
    color: var(--accent-color);
}

footer .footer-links a:focus-visible {
    color: var(--accent-color);
}

/* Sticky CTA mobile */
.sticky-cta-mobile {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    z-index: 1100;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px;
    border-radius: 18px;
    background: rgba(5, 31, 51, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(14px);
}

.sticky-cta-mobile .btn-primary,
.sticky-cta-mobile .btn-secondary {
    width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    .message,
    .content-focus-text,
    .highlight-ring.animate ellipse {
        animation: none !important;
        transition: none !important;
    }
}

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-toggle:focus-visible {
    border-radius: 8px;
    box-shadow: 0 0 0 3px rgba(0, 167, 225, 0.5);
}

/* Responsividade */
@media (max-width: 768px) {
    header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: var(--header-padding-y) 16px;
    }
    .mobile-menu-toggle {
        display: flex;
        margin-left: auto;
        margin-right: 12px;
    }
    header nav {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 16px;
        right: 16px;
        background: rgba(7, 27, 47, 0.98);
        border-radius: 12px;
        padding: 16px;
        box-shadow: 0 20px 40px rgba(0,0,0,0.5);
        border: 1px solid rgba(255,255,255,0.1);
        margin-top: 8px;
    }
    header nav.active {
        display: flex;
    }
    header > .btn-primary {
        display: none;
    }
    header nav a {
        font-size: 1.05rem;
        padding: 12px;
        text-align: center;
        width: 100%;
    }
    #hero {
        flex-direction: column;
        min-height: auto;
        padding-top: 116px;
        padding-bottom: 44px;
        gap: 18px;
    }
    #hero .hero-content {
        width: 100%;
        padding: 18px;
    }
    #hero .hero-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-top: 14px;
        gap: 8px;
    }

    #hero .hero-trust-strip .trust-badge {
        width: 100%;
    }

    #hero .hero-trust-strip .trust-badge:last-child {
        grid-column: 1 / -1;
    }
    .hero-benefits {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    .phone {
        width: min(100%, 260px);
        height: auto;
    }
    .trust-bar,
    .trust-strip {
        padding: 14px 16px;
        gap: 10px 12px;
    }
    #trust .trust-bar {
        grid-template-columns: 1fr;
    }
    #hero .btn-primary,
    #hero .btn-secondary {
        width: 100%;
        margin-right: 0;
    }
    #hero .btn-primary {
        margin-bottom: 10px;
    }
    .steps-grid,
    .steps-list,
    .three-steps-grid {
        grid-template-columns: 1fr;
    }
    .pricing-calc-wrapper {
        grid-template-columns: 1fr;
        gap: 24px;
        padding: 40px 20px;
    }
    #calculator .calc-container {
        padding: 20px;
        width: 100%;
        max-width: none;
        margin: 0 auto;
    }
    #faq .faq-list {
        grid-template-columns: 1fr;
    }
    .content-focus {
        padding: 60px 18px;
    }
    .logo {
        justify-content: flex-start;
        text-align: left;
        width: auto;
    }
    .logo img,
    .logo img.logo-image {
        height: var(--header-logo-height);
    }
    .logo-text {
        font-size: var(--header-logo-text-size);
    }
    .pricing-calc-wrapper {
        padding: 34px 16px;
    }
    .sticky-cta-mobile {
        display: flex;
    }
    .sticky-cta-mobile .btn-primary,
    .sticky-cta-mobile .btn-secondary {
        min-height: 50px;
    }
    footer .footer-content {
        flex-direction: column;
    }
    footer .footer-links a {
        margin: 0 10px;
    }
}

@media (min-width: 961px) and (max-width: 1366px) {
    #hero {
        flex-wrap: nowrap;
        align-items: center;
        gap: clamp(20px, 2.5vw, 34px);
        min-height: clamp(0px, 76vh, 780px);
        padding-top: clamp(88px, 8vh, 120px);
        padding-bottom: clamp(34px, 4vw, 52px);
    }

    #hero .hero-content {
        max-width: 580px;
    }

    #hero h1 {
        font-size: clamp(2rem, 3vw, 3.25rem);
        max-width: 12ch;
    }

    #hero p {
        margin-bottom: 16px;
    }

    .hero-benefits {
        margin-bottom: 18px;
    }

    .phone-wrapper {
        flex-basis: clamp(240px, 28vw, 300px);
    }

    .phone {
        max-width: 300px;
    }
}

@media (min-width: 769px) and (max-width: 1100px) {
    #hero {
        min-height: auto;
        gap: 18px;
        padding-top: 106px;
        padding-bottom: 44px;
    }

    #hero .hero-content {
        flex-basis: 56%;
        max-width: 580px;
        padding: 20px 22px;
    }

    #hero h1 {
        font-size: clamp(2rem, 3.25vw, 3rem);
        max-width: 12ch;
    }

    #hero p {
        font-size: 1.01rem;
        margin-bottom: 16px;
    }

    .hero-benefits {
        gap: 8px 10px;
    }

    #hero .hero-trust-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .phone-wrapper {
        flex-basis: clamp(240px, 26vw, 290px);
    }

    .phone {
        max-width: 290px;
    }

    #trust .trust-bar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 480px) {
    header {
        padding: var(--header-padding-y) 16px;
    }



    #hero {
        padding-top: 108px;
        padding-bottom: 38px;
        gap: 16px;
    }

    #hero .hero-content {
        padding: 18px;
    }

    #hero h1 {
        font-size: clamp(1.85rem, 8.8vw, 2.55rem);
        max-width: 14ch;
    }

    #hero p {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    #hero .hero-trust-strip {
        grid-template-columns: 1fr;
        margin-top: 12px;
        gap: 8px;
    }

    #hero .hero-trust-strip .trust-badge {
        padding: 11px 14px 11px 18px;
        font-size: 0.95rem;
    }

    #hero .hero-trust-strip .trust-badge:last-child {
        grid-column: auto;
    }

    #hero .btn-primary,
    #hero .btn-secondary {
        width: 100%;
    }

    #hero .btn-primary {
        margin-right: 0;
        margin-bottom: 10px;
    }

    .phone {
        width: min(100%, 230px);
        padding: 16px;
    }

    .screen {
        padding: 16px;
    }

    #trust .trust-bar-item {
        min-height: 48px;
        padding-left: 38px;
    }

    section {
        padding: 64px 16px;
    }

    section h2 {
        font-size: 1.7rem;
        margin-bottom: 28px;
    }

    .feature-item,
    .step-card,
    .step-item,
    #intro .intro-item {
        padding: 20px;
    }

    .pricing-calc-wrapper {
        padding: 30px 16px;
    }

    #calculator .calc-container {
        padding: 18px;
    }
}
