/* ===========================================================
   Cliniclic LP v2 — seções + conexão visual entre blocos
   =========================================================== */

.section {
    position: relative;
    padding: clamp(64px, 9vw, 116px) 0;
}
.section--flush-top {
    padding-top: 0;
}

.section__head {
    max-width: 660px;
    margin-bottom: clamp(36px, 5vw, 56px);
}
.section__head--center {
    margin-inline: auto;
    text-align: center;
}
.section__head .eyebrow {
    margin-bottom: 16px;
}
.section__head .lead {
    margin-top: 18px;
}
.section__head--center .lead {
    margin-inline: auto;
}

/* ---------- Conectores entre seções (costura central) ---------- */

.seam {
    position: relative;
    height: 86px;
    display: flex;
    justify-content: center;
    pointer-events: none;
}

.seam::before {
    content: '';
    width: 2px;
    height: 100%;
    background: linear-gradient(
        180deg,
        transparent,
        rgb(15 179 179 / 0.55),
        transparent
    );
}

.seam::after {
    content: '';
    position: absolute;
    top: calc(50% - 5px);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow:
        0 0 0 5px rgb(7 208 208 / 0.15),
        0 0 18px rgb(7 208 208 / 0.6);
}

body.no-spine .seam {
    visibility: hidden;
}

/* Spine SVG (curva que serpenteia atrás do conteúdo) */
.spine-svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.spine-svg path {
    fill: none;
    stroke: rgb(15 179 179 / 0.3);
    stroke-width: 2;
    stroke-dasharray: 8 9;
}

body.no-spine .spine-svg {
    display: none;
}

/* ---------- Divisores de onda ---------- */

.wave {
    display: block;
    width: 100%;
    height: clamp(54px, 8vw, 120px);
    margin-bottom: -1px;
}

.wave--flip {
    transform: scaleY(-1);
    margin-bottom: 0;
    margin-top: -1px;
}

/* ---------- Faixa de recursos (marquee contínuo) ---------- */

.proofstrip {
    position: relative;
    padding: 28px 0;
    background: linear-gradient(180deg, var(--bg), var(--tint));
    overflow: hidden;
}

.proofstrip::before,
.proofstrip::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: clamp(36px, 8vw, 96px);
    z-index: 2;
    pointer-events: none;
}

.proofstrip::before {
    left: 0;
    background: linear-gradient(90deg, var(--bg), transparent);
}

.proofstrip::after {
    right: 0;
    background: linear-gradient(270deg, var(--tint), transparent);
}

.proofstrip__viewport {
    overflow: hidden;
    width: 100%;
    mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        90deg,
        transparent,
        #000 6%,
        #000 94%,
        transparent
    );
}

.proofstrip__track {
    display: flex;
    width: max-content;
    gap: 14px;
    animation: proof-marquee 42s linear infinite;
}

.proofstrip:hover .proofstrip__track {
    animation-play-state: paused;
}

.proofstrip__group {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-right: 14px;
    flex: none;
}

.proof-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex: none;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 650;
    color: var(--ink-2);
    letter-spacing: -0.01em;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px 10px 12px;
    box-shadow: var(--shadow-card);
}

.proof-chip__ic {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    flex: none;
    background: var(--tint-2);
    color: var(--teal-deep);
}

.proof-chip__ic svg {
    width: 15px;
    height: 15px;
}

@keyframes proof-marquee {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@media (prefers-reduced-motion: reduce) {
    .proofstrip__track {
        animation: none;
        flex-wrap: wrap;
        width: 100%;
        max-width: var(--maxw);
        margin: 0 auto;
        padding: 0 var(--page-x);
        justify-content: center;
        gap: 12px;
    }

    .proofstrip__group:last-child {
        display: none;
    }

    .proofstrip__group {
        flex-wrap: wrap;
        justify-content: center;
        padding-right: 0;
    }

    .proofstrip::before,
    .proofstrip::after,
    .proofstrip__viewport {
        mask-image: none;
        -webkit-mask-image: none;
    }
}

/* ---------- Benefícios (resultado) ---------- */

.benefits {
    background: linear-gradient(180deg, var(--tint), var(--bg) 70%);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.benefit-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px;
    box-shadow: var(--shadow-card);
    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease,
        border-color 0.3s ease;
    overflow: hidden;
}

.benefit-card::before {
    content: '';
    position: absolute;
    inset: auto -40px -60px auto;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(7 208 208 / 0.13), transparent 70%);
    transition: transform 0.4s ease;
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-soft);
    border-color: rgb(7 208 208 / 0.5);
}
.benefit-card:hover::before {
    transform: scale(1.6);
}

.benefit-card .bc-ic {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        135deg,
        rgb(7 208 208 / 0.16),
        rgb(22 51 126 / 0.1)
    );
    color: var(--accent-strong);
    margin-bottom: 20px;
}

.benefit-card .bc-ic svg {
    width: 22px;
    height: 22px;
}

.benefit-card h3 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 10px;
    letter-spacing: -0.015em;
}
.benefit-card p {
    font-size: var(--fs-body);
    color: var(--muted);
    text-wrap: pretty;
}

.benefit-card .bc-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 18px;
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-strong);
}

.benefit-card .bc-tag svg {
    width: 14px;
    height: 14px;
}

/* ---------- Seção IA (dark, centerpiece) ---------- */

.ia-sec {
    position: relative;
    background:
        radial-gradient(
            1000px 600px at 82% 0%,
            rgb(7 208 208 / 0.1),
            transparent 60%
        ),
        radial-gradient(
            800px 600px at 0% 100%,
            rgb(34 78 178 / 0.22),
            transparent 60%
        ),
        linear-gradient(
            178deg,
            var(--navy-950),
            var(--navy-900) 55%,
            var(--navy-950)
        );
    color: #fff;
    isolation: isolate;
}

.ia-sec .dotgrid {
    background-image: radial-gradient(
        rgb(255 255 255 / 0.09) 1px,
        transparent 1.5px
    );
    -webkit-mask-image: radial-gradient(
        800px 560px at 18% 30%,
        #000 20%,
        transparent 75%
    );
    mask-image: radial-gradient(
        800px 560px at 18% 30%,
        #000 20%,
        transparent 75%
    );
}

.ia-sec .blob {
    position: absolute;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    filter: blur(70px);
    opacity: 0.5;
    pointer-events: none;
}

.ia-sec .blob--tr {
    top: -180px;
    right: -120px;
    background: radial-gradient(circle, rgb(7 208 208 / 0.35), transparent 70%);
}
.ia-sec .blob--bl {
    bottom: -200px;
    left: -140px;
    background: radial-gradient(circle, rgb(43 91 199 / 0.45), transparent 70%);
}

.ia-sec .h-section {
    color: #fff;
}
.ia-sec .lead {
    color: rgb(208 224 240 / 0.85);
}
.ia-sec .eyebrow {
    color: var(--cyan);
}
.ia-sec .eyebrow::before {
    background: var(--cyan);
}

.ia-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
    z-index: 1;
}

/* Rail de passos */
.ia-steps {
    display: flex;
    flex-direction: column;
    margin-top: 34px;
    position: relative;
}

.ia-step {
    position: relative;
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 18px;
    padding: 16px 0;
}

.ia-step::before {
    content: '';
    position: absolute;
    left: 21px;
    top: 62px;
    bottom: -14px;
    width: 2px;
    background: linear-gradient(
        180deg,
        rgb(7 208 208 / 0.45),
        rgb(7 208 208 / 0.08)
    );
}

.ia-step:last-child::before {
    display: none;
}

.ia-step__ic {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgb(255 255 255 / 0.05);
    border: 1px solid rgb(7 208 208 / 0.35);
    color: var(--cyan);
    transition:
        background 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.ia-step__ic svg {
    width: 20px;
    height: 20px;
}

.ia-step.is-on .ia-step__ic {
    background: linear-gradient(135deg, var(--cyan), var(--teal-deep));
    color: var(--navy-950);
    box-shadow: 0 0 24px rgb(7 208 208 / 0.45);
    transform: scale(1.05);
}

.ia-step h3 {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 4px;
    color: #fff;
}
.ia-step p {
    font-size: 14.5px;
    color: rgb(196 214 233 / 0.75);
    max-width: 38ch;
    text-wrap: pretty;
}

.ia-cta {
    margin-top: 34px;
}

.ia-cta--mobile {
    display: none;
}

/* ---------- Módulos ---------- */

.modules {
    position: relative;
    background: linear-gradient(180deg, var(--bg), var(--tint) 50%, var(--bg));
}

.module-row {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: clamp(32px, 5vw, 72px);
    align-items: center;
    padding: clamp(40px, 6vw, 72px) 0;
    z-index: 1;
}

.module-row--reverse {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}
.module-row--reverse .module-copy {
    order: 2;
}
.module-row--reverse .module-media {
    order: 1;
}

.module-copy .eyebrow {
    margin-bottom: 14px;
}
.module-copy .h-block {
    font-size: clamp(26px, 3vw, 36px);
    margin-bottom: 16px;
}
.module-copy .lead {
    font-size: 16.5px;
    margin-bottom: 26px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-item {
    display: grid;
    grid-template-columns: 38px 1fr;
    gap: 14px;
}

.feature-item .fi-ic {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: var(--tint-2);
    color: var(--accent-strong);
    border: 1px solid rgb(7 208 208 / 0.25);
}

.feature-item .fi-ic svg {
    width: 17px;
    height: 17px;
}
/* h3 na seção de preço (segue h2), h4 nos módulos (segue h3) */
.feature-item h3,
.feature-item h4 {
    font-size: 15.5px;
    font-weight: 700;
    margin-bottom: 3px;
    letter-spacing: -0.01em;
}
.feature-item p {
    font-size: 14.5px;
    color: var(--muted);
    text-wrap: pretty;
}

.module-cta {
    margin-top: 28px;
}

/* ---------- Depoimentos ---------- */

.quotes {
    background: linear-gradient(180deg, var(--bg), var(--tint));
}

.quote-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.quote-card {
    position: relative;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    padding: 30px 28px 26px;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 18px;
    transition:
        transform 0.25s ease,
        box-shadow 0.3s ease;
}

.quote-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.quote-card .q-mark {
    font-family: var(--font-serif);
    font-size: 54px;
    line-height: 0.6;
    color: var(--cyan);
    height: 22px;
}

.quote-card blockquote {
    margin: 0;
    font-size: 15.5px;
    line-height: 1.65;
    color: var(--ink-2);
    text-wrap: pretty;
    flex: 1;
}

.quote-card .q-who {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid var(--line-soft);
}

.q-who .avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    flex: none;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    color: #fff;
    background: linear-gradient(135deg, var(--teal), var(--navy));
}

.q-who strong {
    display: block;
    font-size: 14.5px;
    letter-spacing: -0.01em;
}
.q-who span {
    display: block;
    font-size: 13px;
    color: var(--muted);
}

/* ---------- Pricing ---------- */

.pricing-sec {
    position: relative;
}

.pricing-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 480px);
    gap: clamp(36px, 5vw, 72px);
    align-items: center;
}

.price-card {
    position: relative;
    background: linear-gradient(165deg, var(--navy-900), var(--navy-950));
    color: #fff;
    border-radius: var(--r-xl);
    padding: 40px 38px;
    box-shadow: var(--shadow-float);
    overflow: hidden;
    isolation: isolate;
}

.price-card::before {
    content: '';
    position: absolute;
    inset: -60px -60px auto auto;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgb(7 208 208 / 0.3), transparent 70%);
    filter: blur(30px);
    z-index: -1;
}

.price-card .pc-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    background: rgb(7 208 208 / 0.1);
    border: 1px solid rgb(7 208 208 / 0.35);
    border-radius: 999px;
    padding: 7px 14px;
    margin-bottom: 24px;
}

.price-card .pc-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 6px;
}
.price-card .pc-price .cur {
    font-size: 22px;
    font-weight: 700;
    color: rgb(196 214 233 / 0.8);
}
.price-card .pc-price .amt {
    font-size: 64px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
}
.price-card .pc-price .per {
    font-size: 14.5px;
    color: rgb(196 214 233 / 0.75);
}

.price-card .pc-sub {
    font-size: 14.5px;
    color: rgb(196 214 233 / 0.75);
    margin-bottom: 26px;
}

.price-card ul {
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}

.price-card li {
    display: grid;
    grid-template-columns: 20px 1fr;
    gap: 11px;
    font-size: 14.5px;
    color: rgb(222 234 246 / 0.92);
    line-height: 1.5;
}
.price-card li svg {
    width: 18px;
    height: 18px;
    color: var(--cyan);
    margin-top: 2px;
}
.price-card li b {
    color: #fff;
}

.price-card .btn--primary {
    width: 100%;
}
.price-card .cta-note {
    justify-content: center;
    width: 100%;
    margin-top: 14px;
    color: rgb(196 214 233 / 0.7);
}
.price-card .cta-note svg {
    color: var(--cyan);
}

/* ---------- FAQ ---------- */

.faq-sec {
    background: linear-gradient(180deg, var(--tint), var(--bg) 60%);
}

.faq {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq__item {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.faq__item[open] {
    border-color: rgb(7 208 208 / 0.5);
    box-shadow: var(--shadow-card);
}

.faq__question {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 19px 22px;
    font-weight: 700;
    font-size: 15.5px;
    letter-spacing: -0.01em;
    cursor: pointer;
}

.faq__question::-webkit-details-marker {
    display: none;
}

.faq__question::after {
    /* "+" desenhado com duas barras (não glifo de fonte): centraliza pelo
       box geométrico, sem depender de métrica/baseline da fonte. */
    content: '';
    flex: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--tint-2);
    background-image:
        linear-gradient(var(--accent-strong), var(--accent-strong)),
        linear-gradient(var(--accent-strong), var(--accent-strong));
    background-size:
        12px 2px,
        2px 12px;
    background-position: center;
    background-repeat: no-repeat;
    transition:
        transform 0.25s ease,
        background-color 0.25s ease;
}

.faq__item[open] .faq__question::after {
    transform: rotate(45deg);
    background-color: var(--teal);
    background-image: linear-gradient(#fff, #fff), linear-gradient(#fff, #fff);
}

.faq__answer {
    padding: 0 22px 20px;
    font-size: 14.5px;
    color: var(--muted);
    line-height: 1.65;
    max-width: 64ch;
}

/* ---------- CTA final + footer (bloco contínuo navy) ---------- */

.finale {
    position: relative;
    background:
        radial-gradient(
            900px 480px at 50% 0%,
            rgb(7 208 208 / 0.13),
            transparent 60%
        ),
        linear-gradient(
            180deg,
            var(--navy-950),
            var(--navy-900) 60%,
            var(--navy-950)
        );
    color: #fff;
    isolation: isolate;
}

.finale .dotgrid {
    background-image: radial-gradient(
        rgb(255 255 255 / 0.08) 1px,
        transparent 1.5px
    );
    -webkit-mask-image: radial-gradient(
        700px 420px at 50% 18%,
        #000 20%,
        transparent 75%
    );
    mask-image: radial-gradient(
        700px 420px at 50% 18%,
        #000 20%,
        transparent 75%
    );
}

.finalcta {
    position: relative;
    text-align: center;
    padding: clamp(72px, 9vw, 120px) 0 clamp(56px, 7vw, 88px);
    z-index: 1;
}
.finalcta .h-section {
    color: #fff;
    margin: 14px 0 18px;
}
.finalcta .lead {
    color: rgb(208 224 240 / 0.85);
    margin: 0 auto 34px;
}
.finalcta .cta-row {
    justify-content: center;
}
.finalcta .cta-note {
    margin-top: 18px;
    justify-content: center;
    width: 100%;
}

.finalcta .symbol {
    width: 54px;
    height: auto;
    margin: 0 auto 10px;
    filter: drop-shadow(0 0 24px rgb(7 208 208 / 0.5));
}

/* Footer */
.footer {
    position: relative;
    padding: 56px 0 36px;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    z-index: 1;
}

.footer__top {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 72px);
    margin-bottom: 44px;
}

.footer__brand img {
    width: 140px;
    margin-bottom: 16px;
}
.footer__brand p {
    font-size: 14px;
    color: rgb(196 214 233 / 0.7);
    max-width: 30ch;
}

.footer__social {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}

.footer__social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgb(255 255 255 / 0.06);
    border: 1px solid rgb(255 255 255 / 0.16);
    color: rgb(208 224 240 / 0.85);
    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.footer__social a:hover {
    background: rgb(7 208 208 / 0.14);
    border-color: var(--cyan);
    color: var(--cyan);
    transform: translateY(-2px);
}

.footer__social svg {
    width: 17px;
    height: 17px;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.footer__col h3 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--cyan);
    margin-bottom: 16px;
}
.footer__col a {
    display: block;
    font-size: 14px;
    color: rgb(208 224 240 / 0.8);
    padding: 5px 0;
    transition: color 0.18s ease;
}
.footer__col a:hover {
    color: var(--cyan);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgb(255 255 255 / 0.08);
    font-size: 13px;
    color: rgb(166 188 212 / 0.65);
}

.footer__bottom a {
    color: rgb(208 224 240 / 0.8);
}
.footer__bottom a:hover {
    color: var(--cyan);
}

/* ---------- Responsivo ---------- */

@media (max-width: 980px) {
    .benefit-grid,
    .quote-grid {
        grid-template-columns: 1fr;
        max-width: 560px;
        margin-inline: auto;
    }
    .ia-grid,
    .pricing-grid {
        grid-template-columns: minmax(0, 1fr);
    }
    .module-row,
    .module-row--reverse {
        grid-template-columns: minmax(0, 1fr);
        padding: clamp(32px, 6vw, 48px) 0;
    }
    .module-row--reverse .module-copy {
        order: 1;
    }
    .module-row--reverse .module-media {
        order: 2;
    }
    .footer__top {
        grid-template-columns: 1fr;
    }
    .seam {
        height: 60px;
    }
    .spine-svg {
        display: none;
    }
}

@media (max-width: 640px) {
    /* Prontuário: sem steps; CTA único abaixo da animação */
    .ia-steps {
        display: none;
    }
    .ia-grid .ia-cta {
        display: none;
    }
    .ia-grid .ia-cta--mobile {
        display: flex;
        justify-content: center;
        margin-top: 0;
    }

    /* Módulos (agenda, financeiro, pacientes) e plano:
       só título + subtítulo + elemento principal */
    .module-copy .feature-list,
    .pricing-grid .feature-list {
        display: none;
    }
    .module-copy .lead {
        margin-bottom: 0;
    }
}

@media (max-width: 560px) {
    .footer__cols {
        grid-template-columns: 1fr 1fr;
    }
}
