/* ---------------------------------------------------------
   Mediar Conversas — tokens
--------------------------------------------------------- */
:root {
  --paper: #ffffff;
  --paper-soft: #e9f6f7;
  --teal-50: #dcf0f2;
  --teal-100: #d3eef0;
  --teal-400: #67c3cb;
  --teal-500: #4aabb4;
  --teal-600: #368890;
  --ink: #0f1923;
  --ink-soft: #56636e;
  --ink-faint: #93a0aa;
  --line: #e6edf0;
  --whatsapp: #25d366;

  --display: "Plus Jakarta Sans", -apple-system, "Segoe UI", sans-serif;
  --script: "Caveat", cursive;
  --wrap: 1180px;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-600);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-500); }

h1, h2, h3 { font-family: var(--display); font-weight: 800; color: var(--ink); margin: 0; letter-spacing: -0.01em; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--teal-600); outline-offset: 3px; }

/* ---------------------------------------------------------
   Buttons
--------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px 26px;
  border-radius: 12px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(74, 171, 180, 0.55);
}
.btn-primary:hover { box-shadow: 0 14px 30px -8px rgba(74, 171, 180, 0.65); }
.btn-whatsapp {
  background: var(--whatsapp);
  color: #fff;
  box-shadow: 0 10px 24px -10px rgba(37, 211, 102, 0.55);
}
.btn-whatsapp:hover { background: #1fb857; }
.btn-ghost {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--teal-500); color: var(--teal-600); }
.btn-sm { padding: 10px 18px; font-size: 13px; border-radius: 10px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-block { width: 100%; justify-content: center; }

/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 16px; }
.brand { flex: none; }
.brand img { width: 250px; height: auto; }
.main-nav { display: flex; gap: 26px; flex-wrap: wrap; }
.main-nav a { font-size: 14px; font-weight: 600; color: var(--ink-soft); text-decoration: none; }
.main-nav a:hover { color: var(--teal-600); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.nav-toggle {
  display: none;
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--teal-600);
  align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (max-width: 900px) {
  .main-nav { display: none; }
  .header-actions .btn-ghost, .header-actions .btn-primary { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 420px) {
  .site-header .wrap { padding-left: 16px; padding-right: 16px; gap: 10px; }
  .brand img { width: 250px; }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 8px 24px 16px;
  position: fixed;
  top: var(--header-h, 72px);
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--header-h, 72px));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-shadow: 0 16px 30px -12px rgba(15, 25, 35, 0.15);
}
.mobile-nav.open { display: flex; }
body.nav-open { overflow: hidden; }
.mobile-nav a { padding: 12px 4px; font-weight: 600; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-nav-actions { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; }
.mobile-nav-actions .btn { width: 100%; justify-content: center; }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero { padding: 72px 0 96px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 980px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero { padding: 44px 0 64px; }
}

.hero h1 {
  font-size: clamp(34px, 4.6vw, 54px);
  line-height: 1.08;
  margin: 18px 0 20px;
}
.hero h1 .hl { color: var(--teal-600); }
.hero-sub { font-size: 18px; color: var(--ink-soft); max-width: 46ch; margin: 0 0 28px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.hero-pills span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--teal-700, var(--teal-600));
  background: var(--teal-50); border: 1px solid var(--teal-100);
  border-radius: 999px; padding: 8px 14px;
}
.hero-pills span::before { content: "✓"; color: var(--teal-500); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* phone / chat mockup */
.phone {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(15, 25, 35, 0.18);
  overflow: hidden;
  max-width: 420px;
  margin: 0 auto;
}
.phone-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: #fff;
}
.phone-top .who { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 14px; }
.phone-top .avatar { width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,0.28); display: flex; align-items: center; justify-content: center; font-size: 13px; }
.thread-list { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.thread {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 6px; border-radius: 10px;
}
.thread + .thread { margin-top: 2px; }
.thread .av { width: 36px; height: 36px; border-radius: 50%; background: var(--teal-50); color: var(--teal-600); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.thread .meta { flex: 1; min-width: 0; }
.thread .row1 { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; }
.thread .row1 time { font-weight: 500; color: var(--ink-faint); font-size: 11px; }
.thread .row2 { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-soft); }
.thread .badge { background: var(--teal-500); color: #fff; font-size: 10px; font-weight: 800; border-radius: 999px; width: 17px; height: 17px; display: flex; align-items: center; justify-content: center; flex: none; }

.chat-area { padding: 16px; background: var(--paper-soft); }
.bubble { max-width: 78%; padding: 10px 13px; border-radius: 14px; font-size: 13px; margin-bottom: 8px; line-height: 1.4; }
.bubble.in { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bubble.out { background: var(--teal-500); color: #fff; margin-left: auto; border-bottom-right-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 10px 13px; background: #fff; border: 1px solid var(--line); border-radius: 14px; border-bottom-left-radius: 4px; width: fit-content; margin-bottom: 8px; }
.typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); animation: bounce 1.2s infinite ease-in-out; }
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes bounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

.chat-input { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-faint); }
.chat-input .field { flex: 1; background: var(--paper-soft); border-radius: 999px; padding: 9px 14px; }

.phone-stats { display: flex; border-top: 1px solid var(--line); }
.phone-stats div { flex: 1; text-align: center; padding: 14px 6px; }
.phone-stats div + div { border-left: 1px solid var(--line); }
.phone-stats strong { display: block; font-size: 18px; color: var(--ink); }
.phone-stats span { font-size: 11px; color: var(--ink-soft); }

.floaty {
  position: absolute;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 30px -12px rgba(15,25,35,0.2);
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 700;
  display: flex; align-items: center; gap: 8px;
}
.floaty .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--whatsapp); }
.floaty.f1 { top: -14px; right: -10px; }
@media (max-width: 560px) { .floaty { display: none; } }

/* ---------------------------------------------------------
   Marquee (integrations logos-as-pills)
--------------------------------------------------------- */
.marquee-shell { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper-soft); padding: 22px 0; overflow: hidden; }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: scroll-left 38s linear infinite; }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 9px 16px; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  white-space: nowrap;
}
.pill .dot2 { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-500); }

/* ---------------------------------------------------------
   Section shell
--------------------------------------------------------- */
.section { padding: 100px 0; }
.section-soft { background: var(--paper-soft); }
.section-head { max-width: 640px; margin: 0 0 52px; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 42px); line-height: 1.1; margin: 14px 0 16px; }
.section-head p { color: var(--ink-soft); font-size: 17px; margin: 0; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------------------------------------------------------
   Features grid
--------------------------------------------------------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .features-grid { grid-template-columns: 1fr; } }
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow .2s ease;
}
.feature-card:hover { border-color: var(--teal-400); transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(15,25,35,0.25); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--teal-50); color: var(--teal-600);
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 17px; margin-bottom: 8px; }
.feature-card p { font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.55; }

/* ---------------------------------------------------------
   Integrations
--------------------------------------------------------- */
.integrations-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .integrations-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .integrations-grid { grid-template-columns: 1fr; } }
.integration-group { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 22px; }
.integration-group h3 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--teal-600); margin-bottom: 14px; }
.integration-group ul { display: flex; flex-direction: column; gap: 10px; }
.integration-group li { font-size: 14px; font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.integration-group li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal-400); flex: none; }

/* ---------------------------------------------------------
   How it works
--------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 8px; }
.step .num {
  font-family: var(--display); font-weight: 800; font-size: 44px;
  color: transparent; -webkit-text-stroke: 1.5px var(--teal-300, var(--teal-400));
  line-height: 1; margin-bottom: 14px; display: block;
}
.step h3 { font-size: 18px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-soft); margin: 0; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; left: calc(100% - 4px); width: calc(100% - 24px);
  border-top: 2px dashed var(--line); display: none;
}
@media (min-width: 901px) { .step:not(:last-child)::after { display: block; } }

/* ---------------------------------------------------------
   Pricing
--------------------------------------------------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: stretch; margin-bottom: 56px; }
@media (max-width: 980px) {
  .pricing-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; margin-bottom: 48px; }
}

.pricing-card {
  background: #fff; border: 2px solid var(--line); border-radius: 22px;
  padding: 36px 32px;
  display: flex; flex-direction: column;
  box-shadow: 0 20px 40px -28px rgba(15,25,35,0.16);
}
.pricing-card--featured { border-color: var(--teal-400); box-shadow: 0 30px 60px -30px rgba(74,171,180,0.45); }

.pricing-tag {
  display: inline-block; align-self: flex-start; font-size: 11.5px; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--teal-600); background: var(--teal-50); border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
.pricing-card--featured .pricing-tag { color: #fff; background: var(--teal-500); }
.pricing-card--dedicated .pricing-tag { color: var(--ink); background: var(--paper-soft); }

.pricing-name { font-size: 21px; font-weight: 800; margin-bottom: 8px; }
.pricing-sub { font-size: 14px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 20px; }
.pricing-intro { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0 0 20px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }

.pricing-amount { display: flex; align-items: baseline; gap: 4px; }
.pricing-amount .currency { font-size: 18px; font-weight: 700; color: var(--teal-600); }
.pricing-amount .value { font-size: 38px; font-weight: 800; }
.pricing-amount .cents { font-size: 18px; font-weight: 700; color: var(--ink-soft); }
.pricing-amount .period { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.pricing-amount.consult { font-size: 24px; font-weight: 800; color: var(--teal-600); margin-bottom: 24px; }
.pricing-period { font-size: 13px; color: var(--ink-soft); margin: 2px 0 24px; }

.plan-features { display: flex; flex-direction: column; gap: 11px; margin: 0 0 28px; flex: 1; }
.plan-features li { font-size: 14px; line-height: 1.5; display: flex; gap: 9px; align-items: flex-start; }
.plan-features li svg { width: 16px; height: 16px; color: var(--teal-500); flex: none; margin-top: 3px; }

.pricing-footnote-sm { font-size: 12.5px; color: var(--ink-faint); line-height: 1.5; margin: -16px 0 20px; }

.pricing-footnote { text-align: center; margin-top: 22px; font-size: 14px; color: var(--ink-soft); }
.pricing-footnote a { color: var(--teal-600); font-weight: 700; text-decoration: none; }

/* comparison table */
.compare-shell { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 8px; }
.compare-scroll { overflow-x: auto; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare-table th, .compare-table td {
  padding: 14px 16px; font-size: 13.5px; text-align: center; border-bottom: 1px solid var(--line); white-space: normal;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; font-weight: 700; color: var(--ink); min-width: 220px; }
.compare-table thead th {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-soft);
  padding-top: 18px; padding-bottom: 18px; border-bottom: 2px solid var(--line);
}
.compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table td.col-featured, .compare-table th.col-featured { background: var(--teal-50); }
.compare-table th.col-featured { color: var(--teal-600); border-radius: 10px 10px 0 0; }
.compare-table .yes svg { width: 18px; height: 18px; color: var(--teal-500); }
.compare-table .no { color: var(--ink-faint); }

.final-cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.final-cta .btn-whatsapp { box-shadow: none; }

/* ---------------------------------------------------------
   FAQ
--------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 20px; background: none; border: none; cursor: pointer;
  font-family: var(--display); font-size: 15.5px; font-weight: 700; color: var(--ink); text-align: left;
}
.faq-q svg { width: 20px; height: 20px; color: var(--teal-600); flex: none; transition: transform 0.2s ease; }
.faq-item.open .faq-q svg { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
.faq-a p { padding: 0 20px 20px; margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.6; }
.faq-a p a { color: var(--teal-600); font-weight: 700; text-decoration: underline; }
.faq-item.open .faq-a { max-height: 280px; }

/* ---------------------------------------------------------
   Final CTA
--------------------------------------------------------- */
.final-cta {
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600) 70%);
  border-radius: 28px;
  padding: 64px 40px;
  text-align: center;
  color: #fff;
}
.final-cta h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); margin-bottom: 14px; }
.final-cta p { color: rgba(255,255,255,0.9); max-width: 52ch; margin: 0 auto 30px; font-size: 16px; }
.final-cta .btn-primary { background: #fff; color: var(--teal-600); box-shadow: none; }
.final-cta .btn-primary:hover { background: #f2fbfb; }
.final-cta small { display: block; margin-top: 20px; color: rgba(255,255,255,0.8); font-size: 13px; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); padding: 44px 0; }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px; }
.footer-links { display: flex; gap: 8px; flex-wrap: wrap; margin: -10px -12px; }
.footer-links a { display: inline-flex; align-items: center; padding: 10px 12px; font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.footer-links a:hover { color: var(--teal-600); }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { width: 250px; height: auto; }
.footer-copy { font-size: 13px; color: var(--ink-faint); }

/* ---------------------------------------------------------
   Reveal
--------------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
