/* MedyClin — landing */

/* Topo */
.topbar { position: sticky; top: 0; z-index: 20; background: rgb(251 250 247 / .86); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.topbar.scrolled { border-bottom-color: var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.topbar .logo img { height: 34px; width: auto; }
.nav { display: flex; gap: 28px; align-items: center; }
.nav a:not(.btn) { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:not(.btn):hover { color: var(--violet-700); }
@media (max-width: 860px) { .nav .hide-m { display: none; } }

/* Hero */
.hero { padding: 56px 0 84px; position: relative; overflow: hidden; }
.hero .container { display: grid; grid-template-columns: 1.08fr .92fr; gap: 56px; align-items: center; }
.hero h1 em { font-style: normal; color: var(--violet-700); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: -2%; right: -2%; bottom: .06em; height: .26em; z-index: -1;
  background: var(--peach); border-radius: 6px; transform: rotate(-1.2deg);
}
.hero .lead { font-size: 1.18rem; color: var(--ink-2); max-width: 34ch; margin-top: 22px; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .price-note { margin-top: 14px; font-size: .9rem; color: var(--ink-3); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 40px; padding-top: 26px; border-top: 1px dashed var(--line); }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; color: var(--violet-700); flex: none; }
@media (max-width: 940px) { .hero .container { grid-template-columns: 1fr; } .hero { padding-top: 28px; } }

/* Simulação do chat (é a interface real, simplificada) */
.mock { position: relative; }
.mock::before {
  content: ""; position: absolute; inset: 8% -6% -6% 10%; border-radius: var(--r-xl);
  background: repeating-linear-gradient(135deg, var(--violet-100) 0 2px, transparent 2px 11px);
  z-index: -1;
}
.mock .card { padding: 18px; border-radius: var(--r-xl); box-shadow: var(--shadow-2); }
.mock-head { display: flex; align-items: center; gap: 12px; padding: 4px 4px 16px; border-bottom: 1px solid var(--line); }
.mock-head .av { width: 40px; height: 40px; border-radius: 12px; background: var(--violet-700); display: grid; place-items: center; }
.mock-head .av img { width: 24px; height: 24px; }
.mock-head b { display: block; font-size: .98rem; }
.mock-body { display: grid; gap: 10px; padding: 16px 2px 4px; }
.bub { max-width: 86%; padding: 11px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.45; }
.bub.sys { justify-self: center; max-width: 100%; text-align: center; background: #e9f7f0; color: #0f6a46; font-size: .84rem; border-radius: 999px; padding: 8px 14px; }
.bub.ai { background: var(--violet-50); border: 1px solid var(--violet-100); border-bottom-left-radius: 6px; }
.bub.ai small { display: block; font-size: .74rem; font-weight: 600; color: var(--violet-700); margin-bottom: 3px; }
.bub.me { justify-self: end; background: var(--violet-700); color: #fff; border-bottom-right-radius: 6px; }
.bub.doc { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bub.doc small { display: block; font-size: .74rem; font-weight: 600; color: var(--ink-2); margin-bottom: 3px; }
.file { display: flex; align-items: center; gap: 10px; margin-top: 8px; padding: 9px 11px; border-radius: 12px; background: var(--paper); border: 1px solid var(--line); font-size: .86rem; font-weight: 600; }
.file i { width: 30px; height: 34px; border-radius: 6px; background: var(--peach); display: grid; place-items: center; font-style: normal; font-size: .62rem; color: var(--danger); font-weight: 700; }
.mock .sticker {
  position: absolute; right: -10px; top: -16px; transform: rotate(6deg);
  background: var(--ink); color: #fff; font-size: .8rem; font-weight: 600; padding: 8px 12px; border-radius: 12px;
}

/* Seções */
.section { padding: 96px 0; }
.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 48px; }
.section-head p { color: var(--ink-2); font-size: 1.06rem; max-width: 46ch; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; gap: 14px; } .section { padding: 72px 0; } }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: s; border-top: 1.5px solid var(--ink); }
.step { padding: 26px 24px 8px 0; position: relative; }
.step + .step { padding-left: 24px; border-left: 1px solid var(--line); }
.step .n { font-size: 3.4rem; font-weight: 300; line-height: 1; color: var(--violet-300); letter-spacing: -0.04em; }
.step h3 { margin: 18px 0 8px; }
.step p { color: var(--ink-2); font-size: .96rem; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .step:nth-child(3) { padding-left: 0; border-left: 0; }
  .step:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .step + .step { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* Faixa do atestado */
.band { background: var(--violet-900); color: #fff; border-radius: var(--r-xl); padding: 64px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%; border: 60px solid rgb(255 255 255 / .05); }
.band .eyebrow { color: var(--violet-300); }
.band h2 { margin-top: 14px; }
.band p { color: var(--violet-200); margin-top: 18px; font-size: 1.05rem; max-width: 48ch; }
.band ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: center; position: relative; z-index: 1; }
.band li { display: flex; gap: 14px; align-items: flex-start; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .1); padding: 16px 18px; border-radius: var(--r-md); }
.band li svg { width: 22px; height: 22px; flex: none; color: var(--violet-300); margin-top: 1px; }
.band li b { display: block; margin-bottom: 2px; }
.band li span { color: var(--violet-200); font-size: .93rem; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; padding: 40px 26px; } }

/* Preços */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.plan { padding: 34px; display: flex; flex-direction: column; gap: 18px; }
.plan.featured { background: var(--violet-50); border-color: var(--violet-200); }
.plan .price { font-size: 2.9rem; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.plan .price small { font-size: 1rem; font-weight: 500; color: var(--ink-3); letter-spacing: 0; margin-left: 4px; }
.plan ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; color: var(--ink-2); }
.plan li { display: flex; gap: 10px; }
.plan li::before { content: ""; width: 18px; height: 18px; flex: none; margin-top: 3px; border-radius: 50%; background: var(--violet-700) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/12px no-repeat; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.specs { display: flex; flex-wrap: wrap; gap: 8px; }
.specs a { text-decoration: none; }
.specs a:hover .chip { background: var(--violet-700); color: #fff; border-color: var(--violet-700); }
@media (max-width: 800px) { .plans { grid-template-columns: 1fr; } .plan { padding: 26px; } }

/* FAQ */
.faq { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 18px 0; font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 1.6rem; line-height: 1; color: var(--violet-700); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--ink-2); max-width: 62ch; }
@media (max-width: 860px) { .faq { grid-template-columns: 1fr; gap: 20px; } }

/* CTA final + rodapé */
.cta { text-align: center; padding: 88px 0 96px; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { color: var(--ink-2); margin: 16px auto 30px; max-width: 46ch; }
.footer { background: var(--ink); color: #c9c5d8; padding: 64px 0 34px; font-size: .92rem; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer img { height: 32px; width: auto; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; letter-spacing: 0; }
.footer a { color: #c9c5d8; text-decoration: none; display: block; padding: 3px 0; }
.footer a:hover { color: #fff; }
.footer .legal { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); display: grid; gap: 10px; color: #9c97b0; font-size: .82rem; }
.footer .notice { background: rgb(255 255 255 / .05); border-radius: var(--r-md); padding: 16px 18px; color: #c9c5d8; }
@media (max-width: 800px) { .footer .cols { grid-template-columns: 1fr; } }

/* Barra fixa no celular */
.mobile-cta { display: none; }
@media (max-width: 700px) {
  .mobile-cta {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30;
    border-radius: 999px; box-shadow: var(--shadow-2);
    transform: translateY(140%); transition: transform .25s ease;
  }
  .mobile-cta.show { transform: translateY(0); }
  .mobile-cta .btn { width: 100%; }
  body { padding-bottom: 80px; }
}

/* Páginas legais */
.legal-page { padding: 56px 0 96px; }
.legal-page .container { max-width: 760px; }
.legal-page h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal-page h2 { font-size: 1.25rem; margin: 34px 0 10px; }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page p + p { margin-top: 10px; }
