/* ==========================================================================
   RitIA — site institucional (index.html)
   ========================================================================== */
@font-face{font-family:"Roboto"; font-weight:400; font-display:swap; src:url("../assets/fonts/Roboto-Regular.ttf") format("truetype");}
@font-face{font-family:"Roboto"; font-weight:500; font-display:swap; src:url("../assets/fonts/Roboto-Medium.ttf") format("truetype");}
@font-face{font-family:"Roboto"; font-weight:700; font-display:swap; src:url("../assets/fonts/Roboto-Bold.ttf") format("truetype");}
@font-face{font-family:"Roboto"; font-weight:900; font-display:swap; src:url("../assets/fonts/Roboto-Black.ttf") format("truetype");}

:root{
  color-scheme:only light;
  --navy-950:#060d1a; --navy-900:#0a1526; --navy-800:#101f38; --navy-700:#16284a;
  --cyan-500:#0092ca; --cyan-400:#3eb7d9; --blue-600:#2b5da9;
  --whatsapp:#25d366; --whatsapp-dark:#1da851;
  --white:#ffffff; --gray-100:#eef1f6; --gray-300:#c9d1dc; --gray-500:#7c8798; --gray-700:#45505f; --ink:#0a1526;
  --line-dark:rgba(255,255,255,.09);
  --header-h:72px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth; scroll-padding-top:var(--header-h);}
body{margin:0; font-family:"Roboto",Arial,sans-serif; color:var(--ink); background:#fff; -webkit-font-smoothing:antialiased;}
h1,h2,h3,h4{margin:0; font-weight:900; line-height:1.15;}
p{margin:0;}
a{color:inherit; text-decoration:none;}
img{max-width:100%; display:block;}
.container{width:100%; max-width:1120px; margin:0 auto; padding:0 24px;}
.eyebrow{display:inline-flex; align-items:center; gap:10px; font-size:13px; font-weight:700; letter-spacing:.14em; text-transform:uppercase; color:var(--cyan-500);}
.eyebrow::before{content:""; width:20px; height:2px; background:currentColor; display:inline-block;}
.eyebrow.on-dark{color:var(--cyan-400);}

/* ---------- Botões ---------- */
.btn{display:inline-flex; align-items:center; justify-content:center; gap:8px; padding:15px 28px; border-radius:999px; font-weight:700; font-size:15px; border:1px solid transparent; cursor:pointer; white-space:nowrap; transition:transform .15s ease, background .15s ease;}
.btn:hover{transform:translateY(-1px);}
.btn svg{width:18px; height:18px; flex:none;}
.btn-primary{background:linear-gradient(135deg,var(--cyan-500),var(--blue-600)); color:#fff; box-shadow:0 14px 30px -10px rgba(0,146,202,.5);}
.btn-whatsapp{background:var(--whatsapp); color:#fff;}
.btn-whatsapp:hover{background:var(--whatsapp-dark);}
.btn-ghost{border-color:rgba(255,255,255,.28); color:#fff;}
.btn-ghost:hover{background:rgba(255,255,255,.08);}
.btn-sm{padding:10px 18px; font-size:13.5px;}
.btn-block{width:100%;}

/* ---------- Header ---------- */
header.site-header{position:sticky; top:0; z-index:40; background:rgba(6,13,26,.9); backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px); height:var(--header-h); display:flex; align-items:center;}
.header-inner{display:flex; align-items:center; justify-content:space-between; gap:20px;}
.brand img{height:30px; width:auto;}
nav.nav-links{display:flex; gap:28px;}
nav.nav-links a{color:rgba(255,255,255,.82); font-size:14px; font-weight:500;}
nav.nav-links a:hover{color:#fff;}
@media(max-width:860px){ nav.nav-links{display:none;} }

/* ---------- Hero ---------- */
.hero{background:linear-gradient(180deg,var(--navy-950),var(--navy-800)); padding:64px 0 0; color:#fff; overflow:hidden;}
.hero-grid{display:grid; grid-template-columns:1.15fr .85fr; gap:36px; align-items:center; padding-bottom:52px;}
.hero h1{font-size:44px; margin:16px 0 18px;}
.hero h1 em{font-style:normal; color:var(--cyan-400);}
.hero .lead{font-size:17px; color:rgba(255,255,255,.78); max-width:500px; margin-bottom:28px; line-height:1.65;}
.hero-actions{display:flex; gap:14px; flex-wrap:wrap;}
.channel-note{display:flex; align-items:center; gap:10px; flex-wrap:wrap; margin-top:18px; font-size:13.5px; color:rgba(255,255,255,.62);}
.channel-note b{color:#fff; font-weight:500;}
.channel-note .arrow{color:var(--cyan-400);}
@media(max-width:860px){ .hero-grid{grid-template-columns:1fr;} .hero-visual{order:-1; max-width:280px; margin:0 auto;} }
@media(max-width:640px){ .hero{padding-top:40px;} .hero h1{font-size:31px;} .hero-actions .btn{flex:1 1 100%;} }

.phone{width:270px; margin-left:auto; background:var(--navy-900); border-radius:26px; padding:12px; box-shadow:0 30px 60px -20px rgba(0,0,0,.5); border:1px solid rgba(255,255,255,.08);}
.phone-screen{background:#dfe7ee; border-radius:16px; padding:14px 12px; display:flex; flex-direction:column; gap:8px; min-height:230px; justify-content:flex-end;}
.bubble{max-width:84%; padding:9px 12px; border-radius:14px; font-size:12.5px; line-height:1.4;}
.bubble.in{background:#fff; color:#222; align-self:flex-start; border-bottom-left-radius:3px;}
.bubble.out{background:var(--whatsapp); color:#fff; align-self:flex-end; border-bottom-right-radius:3px;}
.bubble time{display:block; font-size:10px; opacity:.6; margin-top:3px;}

.stats{background:var(--cyan-500); padding:14px 0;}
.stats .container{display:flex; justify-content:space-around; flex-wrap:wrap; gap:10px;}
.stats span{color:#fff; font-weight:700; font-size:14px;}

/* ---------- Seções ---------- */
section{padding:72px 0;}
.section-head{max-width:660px; margin:0 auto 40px; text-align:center;}
.section-head h2{font-size:30px; margin-top:12px;}
.section-head p{color:var(--gray-700); margin-top:14px; font-size:16px; line-height:1.65;}
.on-dark .section-head p, .section-head.on-dark p{color:rgba(255,255,255,.7);}
@media(max-width:640px){ section{padding:56px 0;} .section-head h2{font-size:25px;} }

/* Dores */
.pain-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:20px; margin-bottom:36px;}
.pain-card{background:var(--gray-100); border-radius:16px; padding:26px;}
.pain-card svg{width:26px; height:26px; stroke:var(--cyan-500); fill:none; stroke-width:2; margin-bottom:12px;}
.pain-card h3{font-size:16px; margin-bottom:6px;}
.pain-card p{font-size:14.5px; color:var(--gray-700); line-height:1.6;}
@media(max-width:860px){ .pain-grid{grid-template-columns:1fr;} }

.compare{background:var(--gray-100); border-radius:20px; padding:30px; max-width:520px; margin:0 auto;}
.compare h4{font-size:15px; margin-bottom:16px; text-align:center; color:var(--gray-700); font-weight:700;}
.compare-row{margin-bottom:16px;}
.compare-row:last-child{margin-bottom:0;}
.compare-row .lbl{font-size:13px; color:var(--gray-700); margin-bottom:6px; display:flex; justify-content:space-between;}
.compare-bar{height:12px; border-radius:6px; background:#e3b6ae;}
.compare-bar.win{background:var(--whatsapp);}

/* O que fazemos -> conversa */
.wwd{padding-top:0;}
.wwd-grid{display:grid; grid-template-columns:1fr 1fr; gap:48px; align-items:center; background:var(--gray-100); border-radius:24px; padding:44px 48px;}
.wwd h2{font-size:30px; margin:12px 0 14px;}
.wwd p{color:var(--gray-700); font-size:16px; line-height:1.65; margin-bottom:22px;}
.wwd .wwd-note{font-size:13px; color:var(--gray-500); margin:12px 0 0;}
.wwd-chat{display:block; max-width:380px; margin-left:auto; border-radius:18px; overflow:hidden; background:#e6ded3; box-shadow:0 24px 50px -24px rgba(10,21,38,.45); transition:transform .2s ease;}
.wwd-chat:hover{transform:translateY(-3px);}
.wwd-head{display:flex; align-items:center; gap:10px; background:#075E54; color:#fff; padding:11px 14px;}
.wwd-head b{display:block; font-size:14.5px;}
.wwd-head small{font-size:12px; opacity:.75;}
.wwd-av{width:34px; height:34px; border-radius:50%; background:var(--navy-900); display:flex; align-items:center; justify-content:center; flex:none;}
.wwd-body{display:flex; flex-direction:column; gap:8px; padding:16px 12px;}
.wwd-body .b{max-width:84%; padding:8px 10px; border-radius:8px; font-size:13.5px; line-height:1.4; color:#111b21; box-shadow:0 1px 1px rgba(0,0,0,.08);}
.wwd-body .out{align-self:flex-end; background:#d9fdd3;}
.wwd-body .in{align-self:flex-start; background:#fff;}
.wwd-opts{display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; margin-top:4px;}
.wwd-opts span{background:#fff; color:#027eb5; border:1px solid #cfe3ec; border-radius:16px; padding:7px 12px; font-size:12.5px; font-weight:500;}
.wwd-foot{display:block; text-align:center; background:#f0f2f5; color:#027eb5; font-size:13.5px; font-weight:700; padding:12px;}
@media(max-width:860px){ .wwd-grid{grid-template-columns:1fr; padding:32px 22px; gap:28px;} .wwd .btn{width:100%;} .wwd-chat{margin:0 auto; width:100%;} }

/* Diagnóstico */
#diagnostico{padding-top:0;}
.diag{background:linear-gradient(155deg,var(--navy-900),var(--navy-800)); color:#fff; border-radius:24px; padding:48px 36px; display:grid; grid-template-columns:1.2fr .8fr; gap:36px; align-items:center;}
.diag h2{font-size:28px; margin:12px 0 16px;}
.diag p{color:rgba(255,255,255,.78); line-height:1.7; font-size:15.5px; margin-bottom:14px;}
.diag .btn{margin-top:10px;}
.diag-steps{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:14px;}
.diag-steps li{display:flex; gap:14px; align-items:flex-start; background:rgba(255,255,255,.05); border:1px solid var(--line-dark); border-radius:14px; padding:14px 16px;}
.diag-steps .ico{width:36px; height:36px; border-radius:10px; flex:none; display:flex; align-items:center; justify-content:center; background:rgba(62,183,217,.14);}
.diag-steps .ico svg{width:19px; height:19px; stroke:var(--cyan-400); fill:none; stroke-width:2;}
.diag-steps b{display:block; font-size:14.5px; margin-bottom:2px;}
.diag-steps span{font-size:13.5px; color:rgba(255,255,255,.65); line-height:1.5;}
@media(max-width:860px){ .diag{grid-template-columns:1fr; padding:36px 22px;} .diag .btn{width:100%;} }

/* Como funciona */
.steps{background:var(--navy-950); color:#fff;}
.step-grid{display:grid; grid-template-columns:repeat(4,1fr); gap:22px;}
.step-num{width:38px; height:38px; border-radius:50%; background:linear-gradient(140deg,var(--cyan-500),var(--blue-600)); color:#fff; display:flex; align-items:center; justify-content:center; font-weight:700; margin-bottom:14px; font-size:15px;}
.step h4{font-size:16px; margin-bottom:4px; color:#fff;}
.step .where{display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--cyan-400); margin-bottom:8px;}
.step p{font-size:14px; color:rgba(255,255,255,.68); line-height:1.6;}
@media(max-width:860px){ .step-grid{grid-template-columns:1fr 1fr;} }
@media(max-width:520px){ .step-grid{grid-template-columns:1fr;} }

/* ---------- Planos: cards ---------- */
.planos{background:var(--navy-950); color:#fff;}
.value-anchor{max-width:720px; margin:-12px auto 44px; text-align:center; font-size:15px; color:rgba(255,255,255,.72); line-height:1.65; background:rgba(62,183,217,.08); border:1px solid rgba(62,183,217,.25); border-radius:14px; padding:16px 20px;}
.value-anchor b{color:#fff;}
.price-grid{display:grid; grid-template-columns:repeat(3,1fr); gap:22px; align-items:stretch;}
.price-card{position:relative; background:var(--navy-900); border:1px solid var(--line-dark); border-radius:20px; padding:30px 26px; color:#fff; display:flex; flex-direction:column;}
.price-card.featured{background:linear-gradient(165deg,var(--navy-700),var(--navy-900)); border-color:var(--cyan-500); box-shadow:0 20px 50px -25px rgba(0,146,202,.6);}
.price-badge{position:absolute; top:-13px; left:50%; transform:translateX(-50%); background:var(--cyan-500); color:#fff; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; padding:5px 14px; border-radius:999px; white-space:nowrap;}
.price-tag{font-size:22px; font-weight:900;}
.price-sub{font-size:13.5px; color:rgba(255,255,255,.6); margin-top:6px; line-height:1.5; min-height:40px;}
.price-result{margin-top:18px; padding:14px 16px; border-radius:12px; background:rgba(255,255,255,.05); border-left:3px solid var(--cyan-400);}
.price-result small{display:block; font-size:11px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; color:var(--cyan-400); margin-bottom:4px;}
.price-result p{font-size:14.5px; font-weight:500; line-height:1.45;}
.price-lines{margin-top:20px; display:flex; flex-direction:column; gap:10px;}
.price-line{display:flex; justify-content:space-between; align-items:baseline; gap:12px;}
.price-line .k{font-size:13px; color:rgba(255,255,255,.62);}
.price-line .k small{display:block; font-size:11.5px; color:rgba(255,255,255,.42); margin-top:2px;}
.price-line .v{font-weight:900; white-space:nowrap;}
.price-line .v .cur{font-size:13px; font-weight:700; color:var(--cyan-400); margin-right:3px;}
.price-line.main .v{font-size:30px;}
.price-line.main .v .per{font-size:13px; font-weight:500; color:rgba(255,255,255,.6);}
.price-line.setup{border-top:1px dashed var(--line-dark); padding-top:10px;}
.price-line.setup .v{font-size:17px;}
.price-card .btn{margin-top:22px; width:100%;}
.price-footnote{text-align:center; color:rgba(255,255,255,.5); font-size:13.5px; margin-top:26px;}
@media(max-width:960px){ .price-grid{grid-template-columns:1fr; max-width:440px; margin:0 auto;} .price-sub{min-height:0;} }

/* ---------- Planos: tabela comparativa (estilo Mailchimp) ---------- */
.cmp-wrap{margin-top:64px;}
.cmp-title{text-align:center; font-size:22px; margin-bottom:8px;}
.cmp-sub{text-align:center; font-size:14px; color:rgba(255,255,255,.55); margin-bottom:26px;}
.cmp-tabs{display:none;}
.cmp-table{width:100%; border-collapse:separate; border-spacing:0; font-size:14px; background:var(--navy-900); border:1px solid var(--line-dark); border-radius:16px;}
.cmp-table th, .cmp-table td{padding:14px 18px; text-align:left; vertical-align:top; border-bottom:1px solid var(--line-dark); line-height:1.45;}
.cmp-table td{color:rgba(255,255,255,.82);}
.cmp-table tbody th{font-weight:500; color:rgba(255,255,255,.9); width:34%;}
.cmp-table tbody th span{border-bottom:1px dotted rgba(255,255,255,.35); cursor:help;}
.cmp-table thead th{position:sticky; top:var(--header-h); z-index:5; background:var(--navy-800); vertical-align:bottom; padding:18px; border-bottom:1px solid rgba(62,183,217,.35);}
.cmp-table thead th:first-child{border-top-left-radius:16px;}
.cmp-table thead th:last-child{border-top-right-radius:16px;}
.cmp-table thead th.featured{background:linear-gradient(180deg,#123056,var(--navy-800)); box-shadow:inset 0 3px 0 var(--cyan-500);}
.cmp-plan-name{display:flex; align-items:center; gap:8px; font-size:17px; font-weight:900; color:#fff;}
.cmp-plan-name .pop{font-size:10px; font-weight:700; letter-spacing:.06em; text-transform:uppercase; background:var(--cyan-500); padding:3px 8px; border-radius:999px;}
.cmp-plan-price{font-size:13px; font-weight:400; color:rgba(255,255,255,.62); margin:6px 0 12px;}
.cmp-plan-price b{color:#fff; font-size:15px;}
.cmp-table thead .btn{width:100%;}
.cmp-table thead th.cmp-corner{font-size:13px; font-weight:500; color:rgba(255,255,255,.5);}
.cmp-table tr.cat th{text-align:center; background:var(--navy-800); color:#fff; font-weight:700; font-size:12.5px; letter-spacing:.1em; text-transform:uppercase; padding:12px 18px;}
.cmp-table tbody tr:not(.cat):nth-child(even) th, .cmp-table tbody tr:not(.cat):nth-child(even) td{background:rgba(255,255,255,.025);}
.cmp-table td.featured{background:rgba(0,146,202,.06) !important;}
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td{border-bottom:0;}
.ck{color:var(--cyan-400); font-weight:900; font-size:16px; margin-right:6px;}
.no{color:#4d5a6c; font-weight:700; font-size:16px;}
.note{display:block; font-size:12.5px; color:rgba(255,255,255,.55); margin-top:2px;}
.cmp-mobile-cta{display:none;}

@media(max-width:760px){
  .cmp-sub{display:none;}
  .cmp-tabs{display:flex; position:sticky; top:var(--header-h); z-index:6; gap:6px; padding:8px; background:var(--navy-950); border-radius:0 0 14px 14px;}
  .cmp-tabs button{flex:1; font:700 13.5px "Roboto",Arial,sans-serif; color:rgba(255,255,255,.7); background:var(--navy-900); border:1px solid var(--line-dark); border-radius:999px; padding:11px 6px; cursor:pointer;}
  .cmp-tabs button[aria-selected="true"]{background:var(--cyan-500); border-color:var(--cyan-500); color:#fff;}
  .cmp-table thead{display:none;}
  .cmp-table th, .cmp-table td{padding:13px 14px;}
  .cmp-table tbody th{width:52%;}
  .cmp-table[data-plan="1"] [data-col]:not([data-col="1"]),
  .cmp-table[data-plan="2"] [data-col]:not([data-col="2"]),
  .cmp-table[data-plan="3"] [data-col]:not([data-col="3"]){display:none;}
  .cmp-table tr.cat th{text-align:left;}
  .cmp-mobile-cta{display:flex; position:sticky; bottom:0; z-index:6; align-items:center; gap:12px; padding:12px 14px; padding-bottom:calc(12px + env(safe-area-inset-bottom,0px)); margin-top:10px; background:var(--navy-800); border:1px solid rgba(62,183,217,.35); border-radius:14px; box-shadow:0 -10px 30px -10px rgba(0,0,0,.6);}
  .cmp-mobile-cta .info{flex:1; min-width:0; font-size:12.5px; color:rgba(255,255,255,.65); line-height:1.35;}
  .cmp-mobile-cta .info b{display:block; color:#fff; font-size:15px;}
  .cmp-mobile-cta .btn{padding:12px 18px; font-size:14px;}
}

/* ---------- FAQ ---------- */
.faq{max-width:680px; margin:0 auto;}
.faq-item{border-top:1px solid var(--gray-100); padding:20px 0;}
.faq-item h4{font-size:16px; margin-bottom:8px;}
.faq-item p{font-size:14.5px; color:var(--gray-700); line-height:1.65;}

/* ---------- CTA final ---------- */
.final-cta{background:linear-gradient(135deg,var(--cyan-500),var(--blue-600)); color:#fff; text-align:center;}
.final-cta h2{font-size:30px; max-width:640px; margin:0 auto 14px;}
.final-cta p{color:rgba(255,255,255,.85); max-width:560px; margin:0 auto 26px; line-height:1.6;}
.final-cta .hero-actions{justify-content:center;}
.final-cta .btn-ghost{border-color:rgba(255,255,255,.55);}

/* ---------- Footer ---------- */
footer{background:var(--navy-950); color:rgba(255,255,255,.6); padding:40px 0; text-align:center; font-size:13.5px;}
footer img{height:26px; width:auto; margin:0 auto 14px;}
footer a{color:var(--cyan-400); font-weight:500;}

.wa-float{position:fixed; right:20px; bottom:calc(20px + env(safe-area-inset-bottom,0px)); width:56px; height:56px; border-radius:50%; background:var(--whatsapp); display:flex; align-items:center; justify-content:center; box-shadow:0 14px 30px -10px rgba(37,211,102,.6); z-index:30;}
.wa-float svg{width:28px; height:28px;}
.wa-float{transition:bottom .25s ease;}
/* No celular, sobe acima da barra fixa do plano enquanto a tabela está na tela (nunca some) */
@media(max-width:760px){ body.cmp-in-view .wa-float{bottom:calc(96px + env(safe-area-inset-bottom,0px));} }

/* ---------- Reveal ---------- */
.reveal{opacity:0; transform:translateY(14px); transition:opacity .5s ease, transform .5s ease;}
.reveal.is-visible{opacity:1; transform:none;}
@media(prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} .reveal{opacity:1; transform:none; transition:none;} .btn{transition:none;} }
