/* ==========================================================================
   TrioDental — Landing page
   Reconstrução 2026: leve, moderna, sem dependências (Bootstrap/jQuery removidos)
   ========================================================================== */

:root {
  --primary: #0d9488;
  --primary-dark: #0f766e;
  --primary-light: #ccfbf1;
  --wa: #25d366;
  --wa-dark: #1ebe57;
  --ink: #0f172a;
  --body: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;
  --bg-tint: #f0fdfa;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
  --shadow-md: 0 10px 30px -10px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(13, 148, 136, .35);
  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--primary-dark); text-decoration: none; }

h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.02em; }

p { margin: 0 0 1rem; }

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

.section { padding: 92px 0; }
.section-soft { background: var(--bg-soft); }
.section-tint { background: var(--bg-tint); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--primary-dark); background: var(--primary-light);
  padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
}
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.section-head p { font-size: 1.1rem; color: var(--muted); margin: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-weight: 700; font-size: 1rem; padding: 15px 28px; border-radius: 999px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  line-height: 1; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-wa { background: var(--wa); color: #fff; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .6); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(13, 148, 136, .55); }
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-dark); }
.btn-lg { padding: 18px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .88);
  backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { font-size: 1.4rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.brand span { color: var(--primary); }
.site-header .brand { font-size: 1.85rem; } /* proporcional aos botões do cabeçalho */
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav a { color: var(--body); font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--primary-dark); }
.header-cta { display: flex; align-items: center; gap: 12px; }
.header-cta .btn { padding: 11px 20px; font-size: .95rem; white-space: nowrap; }
.btn-signup .lbl-short { display: none; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; margin-left: auto; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle span + span { margin-top: 5px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 44px 0 64px;
  background: radial-gradient(120% 120% at 100% 0%, var(--bg-tint) 0%, #fff 55%); }
.hero-grid { display: grid; grid-template-columns: 1fr 1.08fr; gap: 48px; align-items: center; }
.hero .pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700;
  color: var(--primary-dark); background: var(--primary-light); padding: 7px 15px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.3rem); margin-bottom: 16px; }
.hero h1 mark { background: linear-gradient(transparent 16%, rgba(13,148,136,.17) 16%, rgba(13,148,136,.17) 94%, transparent 94%); color: inherit; padding: 0 .06em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.hero .lead { font-size: 1.12rem; color: var(--muted); margin-bottom: 20px; max-width: 540px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 20px; color: var(--muted); font-size: .93rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--primary); }
.hero-media { position: relative; }
.hero-media img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero-media svg.hero-illu { width: 100%; height: auto; display: block; overflow: visible; }
.hero-media .blob { position: absolute; inset: -8% -6% auto auto; width: 62%; height: 62%; z-index: -1;
  background: radial-gradient(closest-side, rgba(13,148,136,.18), transparent); filter: blur(6px); }

/* ---------- Browser frame (mockup) ---------- */
.browser-frame { border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.browser-bar { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.browser-dots { display: flex; gap: 6px; flex: none; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.browser-dots i:nth-child(1) { background: #ff5f57; }
.browser-dots i:nth-child(2) { background: #febc2e; }
.browser-dots i:nth-child(3) { background: #28c840; }
.browser-url { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 7px; padding: 6px 12px;
  font-size: .8rem; color: var(--muted); display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; }
.browser-url svg { width: 13px; height: 13px; color: var(--primary); flex: none; }
.browser-frame img { display: block; width: 100%; border: 0; border-radius: 0; box-shadow: none; }
.hero-media .browser-frame { border-color: var(--line); }

/* ---------- Logos / stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stats .stat { padding: 8px; }
.stats .num { font-size: clamp(1.9rem, 4vw, 2.7rem); font-weight: 800; color: var(--primary-dark); letter-spacing: -.03em; }
.stats .lbl { color: var(--muted); font-weight: 600; font-size: .95rem; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--primary-light); }
.feature .fico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--primary-light); color: var(--primary-dark); margin-bottom: 18px;
}
.feature .fico svg { width: 26px; height: 26px; }
.feature h3 { font-size: 1.18rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: .98rem; margin: 0; }

/* ---------- Showcase (tabs) ---------- */
.showcase { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: start; }
.showcase-tabs { display: flex; flex-direction: column; gap: 10px; }
.showcase-tab {
  text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 16px 18px; cursor: pointer; font-family: inherit; font-size: 1rem; font-weight: 700; color: var(--ink);
  display: flex; align-items: center; gap: 12px; transition: .18s;
}
.showcase-tab small { display: block; font-weight: 500; color: var(--muted); font-size: .85rem; margin-top: 2px; }
.showcase-tab:hover { border-color: var(--primary); }
.showcase-tab.active { background: var(--primary); color: #fff; border-color: var(--primary); box-shadow: var(--shadow-md); }
.showcase-tab.active small { color: rgba(255,255,255,.85); }
.showcase-tab .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--primary); flex: none; }
.showcase-tab.active .dot { background: #fff; }
.showcase-media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--line); background: #fff; }
.showcase-media img { width: 100%; }
.showcase-media svg { width: 100%; height: auto; display: block; }
.showcase-panel { display: none; }
.showcase-panel.active { display: block; animation: fade .4s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Pricing ---------- */
.pricing { display: flex; justify-content: center; }
.price-card {
  width: 100%; max-width: 460px; background: #fff; border: 1px solid var(--line);
  border-radius: 22px; padding: 40px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.price-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 6px; background: linear-gradient(90deg, var(--primary), var(--wa)); }
.price-card .tag { display: inline-block; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; font-size: .82rem; padding: 6px 14px; border-radius: 999px; margin-bottom: 18px; }
.price-card .amount { display: flex; align-items: baseline; gap: 6px; margin: 6px 0 2px; }
.price-card .amount .cur { font-size: 1.3rem; font-weight: 700; color: var(--ink); }
.price-card .amount .val { font-size: 3.2rem; font-weight: 800; color: var(--ink); letter-spacing: -.03em; }
.price-card .amount .per { color: var(--muted); font-weight: 600; }
.price-card .annual { color: var(--muted); font-size: .95rem; margin-bottom: 24px; }
.price-card .annual strong { color: var(--primary-dark); }
.price-list { list-style: none; padding: 0; margin: 0 0 28px; }
.price-list li { display: flex; align-items: flex-start; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); }
.price-list li:first-child { border-top: 0; }
.price-list svg { width: 20px; height: 20px; color: var(--wa); flex: none; margin-top: 2px; }
.price-list li span { font-weight: 700; color: var(--primary-dark); margin-left: auto; }
.price-note { text-align: center; color: var(--muted); font-size: .9rem; margin-top: 16px; margin-bottom: 0; }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.testi .stars { color: #f59e0b; margin-bottom: 12px; letter-spacing: 2px; }
.testi p { color: var(--body); font-size: 1rem; }
.testi .who { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.testi .avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); color: var(--primary-dark); display: grid; place-items: center; font-weight: 800; flex: none; }
.testi .avatar svg { width: 22px; height: 22px; }
.testi .who b { color: var(--ink); display: block; font-size: .95rem; }
.testi .who small { color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 14px; overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: none; border: 0; cursor: pointer; font-family: inherit;
  font-size: 1.05rem; font-weight: 700; color: var(--ink); padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq-q .chev { flex: none; transition: transform .25s ease; color: var(--primary); }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 22px 20px; margin: 0; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; border-radius: 28px; padding: 56px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 4vw, 2.4rem); }
.cta-band p { color: rgba(255,255,255,.9); font-size: 1.15rem; max-width: 560px; margin: 0 auto 28px; }
.cta-band .btn-wa { background: #fff; color: var(--primary-dark); }
.cta-band .btn-wa:hover { background: #f0fdfa; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-signup-alt { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.cta-band .btn-signup-alt:hover { background: rgba(255,255,255,.12); border-color: #fff; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.about-card { text-align: center; padding: 8px; }
.about-card .aico { width: 60px; height: 60px; border-radius: 16px; margin: 0 auto 16px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary-dark); }
.about-card h3 { font-size: 1.2rem; }
.about-card p { color: var(--muted); font-size: .98rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd5e1; padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.site-footer .brand { color: #fff; }
.site-footer p { color: #94a3b8; font-size: .95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: #cbd5e1; }
.footer-links a:hover { color: #fff; }
.social { display: flex; gap: 12px; margin-top: 16px; }
.social a { width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; transition: .2s; }
.social a:hover { background: var(--primary); }
.social svg { width: 20px; height: 20px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 24px; text-align: center; color: #94a3b8; font-size: .9rem; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; display: flex; align-items: center; gap: 12px; }
.wa-float .wa-btn { width: 60px; height: 60px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 12px 28px -6px rgba(37,211,102,.65); animation: wapulse 2.4s infinite; }
.wa-float .wa-btn svg { width: 32px; height: 32px; }
.wa-float .wa-label { background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; padding: 10px 16px; border-radius: 999px; box-shadow: var(--shadow-md); white-space: nowrap; }
@keyframes wapulse { 0%, 100% { box-shadow: 0 12px 28px -6px rgba(37,211,102,.65), 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 12px 28px -6px rgba(37,211,102,.65), 0 0 0 14px rgba(37,211,102,0); } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1199px) {
  .header-cta .btn-wa { padding: 0; width: 44px; height: 44px; border-radius: 50%; }
  .header-cta .btn-wa .wa-txt { display: none; }
  .header-cta .btn-wa svg { width: 24px; height: 24px; }
}

@media (max-width: 960px) {
  .nav { display: none; }
  .nav.open { display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 18px 20px; gap: 14px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-md); margin: 0; }
  .nav-toggle { display: block; margin-left: 12px; }
  .header-cta { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-media { order: -1; }
  .features-grid, .testi-grid, .about-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase { grid-template-columns: 1fr; }
  .showcase-tabs { flex-direction: row; overflow-x: auto; padding-bottom: 6px; }
  .showcase-tab { min-width: 220px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 56px; }
  .hero-media { order: 0; margin-top: 8px; }
  .header-cta .btn-app { display: none; }
  .header-cta .btn-signup { padding: 9px 14px; font-size: .85rem; }
  .site-header .brand { font-size: 1.6rem; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 30px 16px; }
  .stats .stat:first-child { grid-column: 1 / -1; }
  .features-grid, .testi-grid, .about-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .price-card { padding: 30px 24px; }
  .wa-float .wa-label { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 540px) {
  .site-header .container { gap: 12px; }
  .site-header .brand { font-size: 1.5rem; }
  .nav-toggle { margin-left: 4px; }
  .header-cta .btn-wa { display: none; } /* o botão flutuante do WhatsApp continua visível */
}

@media (max-width: 400px) {
  .btn-signup .lbl-long { display: none; }
  .btn-signup .lbl-short { display: inline; }
}

@media (max-width: 360px) {
  .site-header .brand { font-size: 1.3rem; }
  .header-cta .btn-signup { padding: 9px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* ========================================================================
   Conversion polish (added 2026-10)
   ======================================================================== */

/* Fix: anchored sections hiding under the sticky header */
section[id], #top { scroll-margin-top: 88px; }

/* Active nav link (scrollspy) */
.nav a.active { color: var(--primary-dark); }
.nav a.active::after { content: ""; display: block; height: 2px; border-radius: 2px; background: var(--primary); margin-top: 3px; }

/* Hero social proof row */
.hero-social { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; flex-wrap: wrap; }
.hero-social .avatars { display: flex; }
.hero-social .avatars span { width: 36px; height: 36px; border-radius: 50%; border: 2px solid #fff; margin-left: -12px;
  display: grid; place-items: center; font-weight: 800; font-size: .82rem; color: #fff; box-shadow: var(--shadow-sm); }
.hero-social .avatars span:first-child { margin-left: 0; }
.hero-social .avatars span:nth-child(1){ background:#0d9488; }
.hero-social .avatars span:nth-child(2){ background:#0f766e; }
.hero-social .avatars span:nth-child(3){ background:#14b8a6; }
.hero-social .avatars span:nth-child(4){ background:#f59e0b; }
.hero-social .avatars span:nth-child(5){ background:var(--ink); font-size:.72rem; }
.hero-social .hs-text { font-size: .93rem; color: var(--muted); font-weight: 600; line-height: 1.35; }
.hero-social .hs-text b { color: var(--ink); }
.hero-social .hs-stars { color: #f59e0b; letter-spacing: 1px; }

/* Outcomes section — gradient icon to differ from Funcionalidades */
.feature.outcome .fico { background: linear-gradient(135deg, var(--primary), var(--wa)); color: #fff; }

/* Pricing — anchoring + risk reversal */
.price-perday { display: inline-block; text-align: center; font-weight: 700; color: var(--primary-dark);
  background: var(--primary-light); border-radius: 999px; padding: 7px 16px; margin: 2px 0 20px; font-size: .9rem; }
.price-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 16px; margin-top: 18px; }
.price-badges span { display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--muted); font-weight: 600; }
.price-badges svg { width: 16px; height: 16px; color: var(--wa); flex: none; }

/* Depoimentos: alinhar o nome/avatar no rodapé dos cards (alturas iguais) */
.testi { display: flex; flex-direction: column; }
.testi .who { margin-top: auto; padding-top: 18px; }

/* Hero: imagem maior com leve sangria à direita (desktop), para equilibrar com o texto */
@media (min-width: 961px) {
  .hero-media { width: 122%; }
}

/* <picture> não deve gerar caixa própria — o <img> dentro mantém o dimensionamento */
picture { display: contents; }
