/* MestreDOJO — site institucional. CSS único, sem dependências externas. */

:root {
  --brand: #0080C8;
  --brand-deep: #045C93;
  --brand-soft: #E3F2FC;
  --ink: #16202B;
  --ink-soft: #4b5b6b;
  --ink-faint: #8996a3;
  --surface: #ffffff;
  --surface-2: #f4f7fa;
  --line: #e2e8ef;
  --ok: #4F8A1E;
  --gold: #b8860b;
  --gold-soft: #fbf3e0;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(4, 30, 56, 0.25);
  --shadow-sm: 0 4px 14px -6px rgba(4, 30, 56, 0.18);
  --maxw: 1160px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--alt { background: var(--surface-2); }
.section--dark {
  background: linear-gradient(150deg, var(--ink) 0%, var(--brand-deep) 100%);
  color: #fff;
}
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-deep);
  background: var(--brand-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.section--dark .eyebrow { color: #cfe8fb; background: rgba(255,255,255,0.12); }
.section-title {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 800;
  max-width: 720px;
}
.section-lead {
  color: var(--ink-soft);
  max-width: 620px;
  font-size: 1.05rem;
}
.section--dark .section-lead { color: #dbe9f4; }
.section-head { margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .section-title,
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.1rem; text-decoration: none; color: var(--ink); }
.brand img { width: 36px; height: 36px; object-fit: contain; }
.nav-desktop { display: none; align-items: center; gap: 28px; }
.nav-desktop a {
  text-decoration: none;
  color: var(--ink-soft);
  font-weight: 600;
  font-size: 0.92rem;
}
.nav-desktop a:hover { color: var(--brand-deep); }
.header-cta { display: none; align-items: center; gap: 10px; }
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1.5px solid var(--line);
  background: #fff;
  cursor: pointer;
}
.nav-toggle svg { width: 20px; height: 20px; }

@media (min-width: 900px) {
  .nav-desktop { display: flex; }
  .header-cta { display: flex; }
  .nav-toggle { display: none; }
}

.nav-mobile {
  display: none;
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 49;
  overflow-y: auto;
}
.nav-mobile.is-open { display: block; }
.nav-mobile .container { padding-top: 16px; padding-bottom: 24px; display: grid; gap: 4px; }
.nav-mobile a {
  display: block;
  padding: 14px 4px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.nav-mobile .btn { margin-top: 18px; width: 100%; text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-deep); }
.btn-secondary { background: #fff; color: var(--brand-deep); border: 1.5px solid var(--line); }
.btn-secondary:hover { border-color: var(--brand); }
.btn-ghost-light { background: rgba(255,255,255,0.12); color: #fff; border: 1.5px solid rgba(255,255,255,0.4); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.2); }
.btn-block { width: 100%; }
.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(150deg, var(--brand-deep) 0%, var(--brand) 55%, var(--ink) 140%);
  color: #fff;
  padding: 64px 0 80px;
}
.hero .container { display: grid; gap: 36px; }
.hero-copy { max-width: 640px; }
.hero-copy .eyebrow { color: #cfe8fb; background: rgba(255,255,255,0.14); }
.hero h1 { font-size: clamp(2rem, 5vw, 2.9rem); font-weight: 900; }
.hero p.lead { font-size: 1.1rem; color: #e4eff8; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; font-size: 0.85rem; color: #d3e6f4; }
.hero-trust span { display: flex; align-items: center; gap: 6px; }

/* ---------- Feature grid ---------- */
.grid { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--2 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 900px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--6 { grid-template-columns: repeat(3, 1fr); }
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}
.feature-card .icon {
  width: 46px; height: 46px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--brand-soft);
  border: 1px solid rgba(0, 128, 200, 0.16);
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
}
.feature-card .icon img { width: 26px; height: 26px; object-fit: contain; }
.feature-card h3 { font-size: 1.05rem; font-weight: 800; }
.feature-card p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  align-items: start;
}
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
}
.step h3 { font-size: 1.05rem; font-weight: 800; margin-bottom: 4px; }
.step p { color: var(--ink-soft); margin: 0; font-size: 0.92rem; }

/* ---------- Testimonials ---------- */
.testimonial { background: var(--surface-2); border-radius: var(--radius); padding: 24px; }
.testimonial p.quote { font-style: italic; color: var(--ink); margin-bottom: 16px; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.who strong { display: block; font-size: 0.92rem; }
.who .role { display: block; font-size: 0.78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.03em; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 900px) { .pricing-grid { grid-template-columns: repeat(3, 1fr); } }
.pricing-grid--2 { max-width: 780px; margin: 0 auto; }
@media (min-width: 700px) { .pricing-grid--2 { grid-template-columns: repeat(2, 1fr); } }
.pricing-grid--1 { max-width: 880px; width: 100%; margin: 0 auto; grid-template-columns: 1fr !important; }
.pricing-grid--1 .plan--highlight { transform: none; }
.plan-list--2col { grid-template-columns: 1fr; }
@media (min-width: 760px) { .plan-list--2col { grid-template-columns: 1fr 1fr; column-gap: 20px; } }
.plan {
  width: 100%;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  background: #fff;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.plan--highlight {
  border-color: var(--brand);
  box-shadow: var(--shadow);
  position: relative;
  transform: translateY(-6px);
}
.plan-badge {
  position: absolute;
  top: -14px; left: 26px;
  background: var(--brand);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.plan-name { font-size: 0.8rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brand-deep); }
.plan-price { display: flex; align-items: baseline; gap: 4px; margin: 10px 0 4px; }
.plan-price .currency { font-size: 1.1rem; font-weight: 700; color: var(--ink-soft); }
.plan-price .value { font-size: 2.1rem; font-weight: 900; }
.plan > .period { display: block; font-size: 0.85rem; color: var(--ink-faint); margin-bottom: 4px; }
.plan-desc { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 20px; }
.plan-list { display: grid; gap: 10px; margin-bottom: 24px; flex: 1; min-width: 0; }
.plan-list li { display: flex; gap: 10px; font-size: 0.9rem; align-items: flex-start; min-width: 0; overflow-wrap: break-word; }
.plan-list li .ck { color: var(--ok); font-weight: 900; flex-shrink: 0; }
.plan-note { text-align: center; color: var(--ink-faint); font-size: 0.85rem; margin-top: 24px; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 20px;
  background: #fff;
}
.faq summary {
  cursor: pointer;
  font-weight: 700;
  padding: 16px 0;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--brand);
  flex-shrink: 0;
}
.faq details[open] summary::after { content: "\2212"; }
.faq p { color: var(--ink-soft); padding-bottom: 18px; margin: 0; font-size: 0.94rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(150deg, var(--brand-deep), var(--ink));
  color: #fff;
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.cta-banner p { color: #dbe9f4; max-width: 520px; margin: 0 auto 24px; }
.cta-banner .hero-actions { justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #cbd6e0; padding: 56px 0 28px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: 1fr; margin-bottom: 32px; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 30px; height: 30px; }
.site-footer h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.site-footer ul { display: grid; gap: 10px; }
.site-footer a { color: #cbd6e0; text-decoration: none; font-size: 0.92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 22px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #8fa0af;
}
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
}
.social-icons svg { width: 16px; height: 16px; fill: #fff; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25D366;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(0,0,0,0.4);
  text-decoration: none;
}
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 0.82rem; color: var(--ink-faint); margin-bottom: 18px; }
.breadcrumbs a { color: var(--ink-soft); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }

/* ---------- Article ---------- */
.article-hero { padding: 48px 0 20px; }
.article-hero .meta { color: var(--ink-faint); font-size: 0.85rem; margin-bottom: 10px; }
.article-hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); max-width: 780px; }
.article-hero .lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 720px; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 1.35rem; margin-top: 1.6em; }
.prose h3 { font-size: 1.1rem; margin-top: 1.3em; }
.prose p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.prose ul, .prose ol { margin: 0 0 1.2em; padding-left: 1.3em; list-style: revert; color: var(--ink-soft); }
.prose li { margin-bottom: 0.4em; }
.article-cta {
  margin-top: 40px;
  background: var(--brand-soft);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.article-list { display: grid; gap: 18px; }
.article-item {
  display: block;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  text-decoration: none;
  color: inherit;
}
.article-item:hover { border-color: var(--brand); }
.article-item .tag { color: var(--brand-deep); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.article-item h3 { font-size: 1.1rem; margin: 8px 0 6px; }
.article-item p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }

/* ---------- About page ---------- */
.about-block { max-width: 780px; }
.about-block p { color: var(--ink-soft); font-size: 1.02rem; line-height: 1.75; }
.values-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .values-grid { grid-template-columns: repeat(2, 1fr); } }
