/* ============================================================
   MedCifra · Site styles
   Layered on top of colors_and_type.css tokens.
   ============================================================ */

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--mc-bg);
  color: var(--mc-fg);
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 var(--mc-space-6);
}
@media (max-width: 720px) {
  .container { padding: 0 var(--mc-space-5); }
}

.section { padding: clamp(56px, 7vw, 96px) 0; position: relative; }
.section-tight { padding: clamp(48px, 6vw, 88px) 0; }

.mc-on-dark { background: var(--mc-navy); color: var(--mc-fg-on-dark); }
.mc-on-green { background: var(--mc-green-soft); }

/* ---------- Urgency banner ---------- */
.urgency-bar {
  background: var(--mc-navy);
  color: var(--mc-cream);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  border-bottom: 1px solid var(--mc-line-navy);
}
.urgency-bar .container {
  display: flex;
  align-items: center;
  gap: var(--mc-space-5);
  padding-top: 12px;
  padding-bottom: 12px;
  min-height: 44px;
}
.urgency-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mc-green-mint);
  flex: 0 0 8px;
  box-shadow: 0 0 0 4px rgba(148,230,144,.18);
  animation: pulse 2.4s var(--mc-ease) infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 4px rgba(148,230,144,.18); }
  50%     { box-shadow: 0 0 0 8px rgba(148,230,144,.05); }
}
.urgency-copy { flex: 1; min-width: 0; line-height: 1.4; }
.urgency-copy b { font-weight: 700; color: #fff; }
.urgency-countdown {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(148,230,144,.12);
  border: 1px solid rgba(148,230,144,.28);
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
  color: var(--mc-green-mint);
  font-weight: 600;
  white-space: nowrap;
  flex: 0 0 auto;
}
.urgency-countdown b { font-weight: 700; color: #fff; }

@media (max-width: 720px) {
  .urgency-bar { font-size: 12.5px; }
  .urgency-bar .container { gap: var(--mc-space-3); flex-wrap: wrap; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246,248,237,.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--mc-line);
}
.nav .container {
  display: flex;
  align-items: center;
  gap: var(--mc-space-5);
  padding-top: 14px;
  padding-bottom: 14px;
}
.nav-brand { display: inline-flex; flex: 0 0 auto; }
.nav-logo { height: 28px; width: auto; }

/* On desktop the panel is transparent to layout: its children
   (links + CTA) participate directly in the nav flex row, exactly
   as before. On mobile it becomes a dropdown sheet. */
.nav-panel { display: contents; }

.nav-links {
  display: flex;
  gap: var(--mc-space-4);
  margin-left: var(--mc-space-4);
  flex: 1;
}
/* Action group on the right (Área do cliente + Agendar) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--mc-space-3);
  flex: 0 0 auto;
}
/* Compact both action buttons so they fit the row without wrapping */
.nav .btn { padding: 11px 15px; font-size: 14px; white-space: nowrap; }
.nav .nav-cta .lucide { width: 16px; height: 16px; }
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--mc-ink-2);
  transition: color var(--mc-dur-fast) var(--mc-ease);
}
.nav-links a:hover { color: var(--mc-navy); }

/* Hamburger — hidden on desktop */
.nav-toggle { display: none; }
.nav-scrim { display: none; }

@media (max-width: 1080px) {
  .nav .container { gap: var(--mc-space-4); }
  .nav-brand { flex: 1; }

  /* Hamburger button */
  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border-radius: var(--mc-radius-sm);
    color: var(--mc-navy);
    flex: 0 0 auto;
    z-index: 60;
  }
  .nav-toggle:focus-visible { outline: 2px solid var(--mc-green); outline-offset: 2px; }
  .nav-toggle-bars {
    position: relative;
    width: 22px;
    height: 16px;
  }
  .nav-toggle-bars span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform var(--mc-dur-normal) var(--mc-ease),
                opacity var(--mc-dur-fast) var(--mc-ease),
                top var(--mc-dur-normal) var(--mc-ease);
  }
  .nav-toggle-bars span:nth-child(1) { top: 0; }
  .nav-toggle-bars span:nth-child(2) { top: 7px; }
  .nav-toggle-bars span:nth-child(3) { top: 14px; }
  .nav.is-open .nav-toggle-bars span:nth-child(1) { top: 7px; transform: rotate(45deg); }
  .nav.is-open .nav-toggle-bars span:nth-child(2) { opacity: 0; }
  .nav.is-open .nav-toggle-bars span:nth-child(3) { top: 7px; transform: rotate(-45deg); }

  /* Dropdown sheet */
  .nav-panel {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--mc-cream);
    border-bottom: 1px solid var(--mc-line);
    box-shadow: var(--mc-shadow-lg);
    padding: var(--mc-space-4) var(--mc-space-5) var(--mc-space-6);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform var(--mc-dur-normal) var(--mc-ease),
                opacity var(--mc-dur-normal) var(--mc-ease),
                visibility 0s linear var(--mc-dur-normal);
  }
  .nav.is-open .nav-panel {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    transition: transform var(--mc-dur-normal) var(--mc-ease),
                opacity var(--mc-dur-normal) var(--mc-ease);
  }
  .nav-links {
    display: flex;
    flex-direction: column;
    margin-left: 0;
    flex: none;
    gap: 0;
  }
  .nav-links a {
    font-size: 17px;
    font-weight: 500;
    color: var(--mc-navy);
    padding: 16px 4px;
    border-bottom: 1px solid var(--mc-line);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
  .nav-cta {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 15px;
    margin-top: var(--mc-space-5);
  }
  .nav-actions {
    flex-direction: column;
    align-items: stretch;
    gap: var(--mc-space-3);
    width: 100%;
  }
  .nav-area {
    width: 100%;
    padding-top: 16px;
    padding-bottom: 16px;
    font-size: 15px;
    margin-top: var(--mc-space-5);
  }
  .nav-actions .nav-cta { margin-top: 0; }

  /* Scrim behind the open sheet */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 31, 62, .32);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--mc-dur-normal) var(--mc-ease),
                visibility 0s linear var(--mc-dur-normal);
    z-index: -1;
  }
  .nav.is-open .nav-scrim {
    opacity: 1;
    visibility: visible;
    transition: opacity var(--mc-dur-normal) var(--mc-ease);
  }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 999px;
  transition:
    background var(--mc-dur-normal) var(--mc-ease),
    color var(--mc-dur-normal) var(--mc-ease),
    transform var(--mc-dur-fast) var(--mc-ease),
    box-shadow var(--mc-dur-normal) var(--mc-ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--mc-green); outline-offset: 2px; }

.btn-primary {
  background: var(--mc-green);
  color: var(--mc-navy);
  box-shadow: var(--mc-shadow-green);
}
.btn-primary:hover { background: var(--mc-green-mint); }

.btn-navy {
  background: var(--mc-navy);
  color: var(--mc-cream);
}
.btn-navy:hover { background: #173559; }

.btn-ghost {
  background: transparent;
  color: var(--mc-navy);
  padding: 12px 18px;
}
.btn-ghost:hover { color: var(--mc-green-deep); }

.btn-outline {
  background: transparent;
  color: var(--mc-navy);
  box-shadow: inset 0 0 0 1.5px var(--mc-navy);
}
.btn-outline:hover {
  background: var(--mc-navy);
  color: var(--mc-cream);
}

.btn-outline-cream {
  background: transparent;
  color: var(--mc-cream);
  box-shadow: inset 0 0 0 1px rgba(246,248,237,.32);
}
.btn-outline-cream:hover {
  background: rgba(246,248,237,.06);
  box-shadow: inset 0 0 0 1px rgba(246,248,237,.6);
}

.btn-lg { padding: 18px 28px; font-size: 16px; }

.btn .lucide {
  width: 18px; height: 18px;
  transition: transform var(--mc-dur-normal) var(--mc-ease);
}
.btn:hover .lucide { transform: translateX(2px); }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: var(--mc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--mc-green-deep);
}
.eyebrow::before {
  content: "";
  width: 24px; height: 1px;
  background: currentColor;
  opacity: .6;
}
.mc-on-dark .eyebrow { color: var(--mc-green-mint); }

.lede {
  font-size: clamp(17px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--mc-ink-2);
  max-width: 60ch;
}
.mc-on-dark .lede { color: rgba(246,248,237,.78); }

.section-title { max-width: 18ch; }
.section-title.wide { max-width: 24ch; }

/* ---------- Hero ---------- */
.hero {
  padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 72px);
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  /* On mobile, lead with the photo */
  .hero-grid .hero-art { order: -1; }
}

.hero-headline {
  font-size: clamp(44px, 5.6vw, 70px);
  line-height: 1.02;
  letter-spacing: -0.022em;
  font-weight: 700;
  margin: 0 0 var(--mc-space-5);
  text-wrap: balance;
}
.hero-headline .accent { color: var(--mc-green-deep); }
.hero-headline em {
  font-style: normal;
  display: block;
  color: var(--mc-green-deep);
}

.hero-sub {
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.55;
  color: var(--mc-ink-2);
  max-width: 56ch;
  margin: 0 0 var(--mc-space-6);
}
.hero-sub b { color: var(--mc-navy); font-weight: 600; }

.hero-cta { display: flex; flex-direction: column; gap: var(--mc-space-3); align-items: flex-start; }
.hero-cta-row { display: flex; gap: var(--mc-space-3); flex-wrap: wrap; align-items: center; }
.hero-cta-tertiary {
  margin-top: var(--mc-space-2);
  padding: 11px 18px;
  background: var(--mc-green-soft);
  color: var(--mc-navy);
  box-shadow: inset 0 0 0 1px var(--mc-line);
}
.hero-cta-tertiary:hover {
  background: var(--mc-green);
  color: var(--mc-navy);
}
.hero-cta-tertiary .lucide { transition: transform var(--mc-dur-normal) var(--mc-ease); }
.hero-cta-tertiary:hover .lucide { transform: translateX(3px); }

.hero-meta {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.35fr;
  gap: var(--mc-space-5);
  margin-top: var(--mc-space-7);
  padding-top: var(--mc-space-5);
  border-top: 1px solid var(--mc-line);
  align-items: stretch;
}
.hero-meta-item {
  display: flex; flex-direction: column; gap: 4px;
  min-width: 0;
  padding-right: var(--mc-space-5);
  border-right: 1px solid var(--mc-line);
}
.hero-meta-item:nth-child(3) { border-right: 0; padding-right: 0; }
@media (max-width: 880px) {
  .hero-meta { grid-template-columns: 1fr 1fr; }
  .hero-meta-item { border-right: 0; padding-right: 0; }
  .hero-meta-calc { grid-column: 1 / -1; }
}
@media (max-width: 540px) {
  .hero-meta { grid-template-columns: 1fr; }
  .hero-meta-item { border-bottom: 1px solid var(--mc-line); padding: 0 0 var(--mc-space-3); }
  .hero-meta-item:last-of-type { border-bottom: 0; padding-bottom: 0; }
}
.hero-meta-item b {
  font-size: 22px;
  font-weight: 700;
  color: var(--mc-navy);
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
}
.hero-meta-item span {
  font-size: 12.5px;
  color: var(--mc-ink-3);
  letter-spacing: 0.01em;
  max-width: 22ch;
  line-height: 1.4;
}

/* ---------- Calculadora 360° tag (4th item in hero-meta row) ---------- */
.hero-meta-calc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--mc-cream);
  color: var(--mc-navy);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-md);
  box-shadow: var(--mc-shadow-md);
  text-decoration: none;
  transition: transform .2s var(--mc-ease), box-shadow .2s var(--mc-ease), border-color .2s var(--mc-ease);
  min-width: 0;
  align-self: start;
}
.hero-meta-calc:hover {
  transform: translateY(-2px);
  border-color: var(--mc-green);
  box-shadow: 0 18px 36px -12px rgba(0, 31, 62, .25);
}
.calc-tag-icon {
  width: 42px; height: 42px;
  flex: 0 0 42px;
  background: var(--mc-navy);
  color: var(--mc-green-mint);
  border-radius: 30% / 28%;
  display: grid; place-items: center;
}
.calc-tag-icon svg { width: 20px; height: 20px; }
.calc-tag-text {
  min-width: 0;
  line-height: 1.3;
}
.calc-tag-text b {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--mc-navy);
  letter-spacing: -0.005em;
}
.calc-tag-text span {
  font-size: 12.5px;
  color: var(--mc-ink-3);
}

/* Hero photograph framed in a squircle, with concentric brand rings echoing the wordmark */
.hero-art {
  position: relative;
  width: 100%;
  max-width: 560px;
  justify-self: end;
  margin-top: 28px; /* aligns image top to the headline top, past the eyebrow */
}
.hero-art-photo {
  display: block;
  width: 100%;
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 32px 60px rgba(0,31,62,.28));
}

.hero-art-tag {
  position: absolute;
  bottom: -6px;
  left: -16px;
  z-index: 3;
  background: var(--mc-cream);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-md);
  padding: 14px 18px 14px 14px;
  display: flex;
  gap: 12px;
  align-items: center;
  box-shadow: var(--mc-shadow-md);
  max-width: 280px;
}
.hero-art-tag .sq {
  width: 38px; height: 38px;
  background: var(--mc-navy);
  border-radius: 30% / 28%;
  display: grid; place-items: center;
  flex: 0 0 38px;
}
.hero-art-tag .sq svg { color: var(--mc-green-mint); }
.hero-art-tag-text { line-height: 1.25; }
.hero-art-tag-text b { display: block; font-weight: 700; color: var(--mc-navy); font-size: 13.5px; }
.hero-art-tag-text span { font-size: 12px; color: var(--mc-ink-3); }

@media (max-width: 960px) {
  .hero-art { max-width: 460px; justify-self: start; margin-top: var(--mc-space-5); }
}

/* Decorative concentric rings on hero background */
.hero-rings {
  position: absolute;
  right: -240px; top: -160px;
  width: 900px; height: 900px;
  z-index: 0;
  pointer-events: none;
  opacity: .35;
}
.hero-rings svg { width: 100%; height: 100%; }

/* ---------- Dilema section ---------- */
.dilema { background: var(--mc-cream); }
.dilema-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 860px) {
  .dilema-grid { grid-template-columns: 1fr; }
}

.dilema-headline {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: var(--mc-space-4) 0 0;
}
.dilema-headline .hi {
  background: linear-gradient(180deg, transparent 62%, rgba(116,195,101,.42) 62%);
  padding: 0 2px;
}

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  position: relative;
}
.compare::before {
  content: "vs";
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%,-50%);
  width: 44px; height: 44px;
  background: var(--mc-cream);
  border: 1px solid var(--mc-line);
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--mc-ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  z-index: 2;
}
.compare-card {
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-lg);
  padding: 26px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 260px;
  box-shadow: var(--mc-shadow-sm);
  position: relative;
  overflow: hidden;
}
.compare-card.bad { background: #FCF6F4; border-color: #F0DDD8; }
.compare-card.good { background: #F1F8EC; border-color: #D6E5C8; }
.compare-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mc-ink-3);
}
.compare-card.bad .compare-tag { color: var(--mc-danger); }
.compare-card.good .compare-tag { color: #2E7A3D; }
.compare-title {
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--mc-navy);
}
.compare-number {
  margin-top: auto;
  font-size: 38px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--mc-navy);
}
.compare-number .sign { font-size: 22px; vertical-align: 4px; margin-right: 2px; }
.compare-card.bad .compare-number { color: var(--mc-danger); }
.compare-card.good .compare-number { color: #2E7A3D; }
.compare-foot {
  font-size: 12.5px;
  color: var(--mc-ink-3);
  line-height: 1.45;
}

/* ---- Dilema · refreshed layout (centered head + list cards + CTA strip) ---- */
.dilema-head {
  text-align: center;
  max-width: 880px;
  margin: 0 auto;
  padding-bottom: clamp(28px, 4vw, 56px);
}
.dilema-head .dilema-headline {
  margin: 0;
  text-wrap: balance;
}
.dilema-sub {
  margin: var(--mc-space-4) auto 0;
  font-size: 17px;
  color: var(--mc-ink-2);
  line-height: 1.55;
  text-wrap: pretty;
  max-width: 720px;
}

.compare-list {
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}
.compare-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: center;
  column-gap: 14px;
  padding: 14px 2px;
  color: var(--mc-ink-2);
  font-size: 15px;
  line-height: 1.45;
  border-top: 1px solid transparent;
}
.compare-list li + li { border-top-color: rgba(0,31,62,.08); }
.compare-card.bad  .compare-list li + li { border-top-color: #EFD9D2; }
.compare-card.good .compare-list li + li { border-top-color: #D6E5C8; }

.compare-ico {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.compare-ico svg { width: 14px; height: 14px; stroke-width: 2.4; }
.compare-card.bad  .compare-ico { background: #FBE4DF; color: var(--mc-danger); }
.compare-card.good .compare-ico { background: #DCEED4; color: #2E7A3D; }

/* CTA strip beneath the comparison */
.dilema-cta {
  margin-top: var(--mc-space-6);
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 20px;
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-lg);
  box-shadow: var(--mc-shadow-sm);
  color: var(--mc-navy);
  text-decoration: none;
  flex-wrap: wrap;
  transition: box-shadow var(--mc-dur-fast) var(--mc-ease),
              transform var(--mc-dur-fast) var(--mc-ease);
}
.dilema-cta:hover { box-shadow: var(--mc-shadow-md); transform: translateY(-1px); }
.dilema-cta-ico {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--mc-green-soft);
  color: #2E7A3D;
  display: grid; place-items: center;
  flex-shrink: 0;
}
.dilema-cta-ico svg { width: 20px; height: 20px; }
.dilema-cta-text {
  font-weight: 500;
  font-size: 17px;
  line-height: 1.35;
  flex: 1 1 320px;
  color: var(--mc-navy);
}
.dilema-cta-text b { font-weight: 700; }
.dilema-cta > .btn { margin-left: auto; }
@media (max-width: 640px) {
  .dilema-cta { padding: 14px; }
  .dilema-cta > .btn { width: 100%; justify-content: center; margin-left: 0; }
}

/* ---------- Autoridade ---------- */
.autoridade {
  background: var(--mc-navy);
  color: var(--mc-cream);
  position: relative;
  overflow: hidden;
}
.autoridade::before {
  content: "";
  position: absolute;
  right: -280px; bottom: -280px;
  width: 720px; height: 720px;
  background: radial-gradient(circle, rgba(116,195,101,.16), transparent 60%);
  pointer-events: none;
}
.autoridade-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
}
@media (max-width: 960px) {
  /* Mobile order: headline → foto do Tiago → credenciais */
  .autoridade-grid {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }
  /* Let the text block's children flow into the flex column so they
     can be ordered around the portrait. */
  .autoridade-grid > .reveal:not(.autoridade-portrait) { display: contents; }
  .autoridade-grid .eyebrow { order: 1; margin-bottom: 0; }
  .autoridade-grid .autoridade-headline { order: 2; margin: 0; }
  .autoridade-portrait { order: 3; margin-inline: auto; }
  .autoridade-grid .autoridade-cv { order: 4; }
}
.autoridade-portrait {
  position: relative;
  max-width: 440px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.autoridade-portrait-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0a1a26 url("assets/tiago.jpg") no-repeat 50% 28% / cover;
  -webkit-mask: url("assets/squircle.svg") no-repeat center / 100% 100%;
          mask: url("assets/squircle.svg") no-repeat center / 100% 100%;
  -webkit-mask-mode: alpha;
          mask-mode: alpha;
}
/* Removed decorative rings — portrait is just the squircle photo */
.autoridade-portrait-ring,
.autoridade-portrait-ring.r2 { display: none; }
.autoridade-portrait-label {
  text-align: center;
  color: #fff;
}
.autoridade-portrait-label b {
  display: block;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
.autoridade-portrait-label span {
  display: block;
  font-size: 13.5px;
  color: rgba(246,248,237,.65);
  margin-top: 4px;
  letter-spacing: 0.01em;
}
.autoridade-portrait-ring.r2 {
  display: none;
}

.autoridade-headline {
  font-size: clamp(34px, 3.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #fff;
  margin: var(--mc-space-4) 0 var(--mc-space-5);
}
.autoridade-headline em {
  font-style: normal;
  color: var(--mc-green-mint);
}

.autoridade-cv {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: var(--mc-space-6);
}
.cv-item {
  padding: 18px 18px 16px;
  border: 1px solid var(--mc-line-navy);
  border-radius: var(--mc-radius-md);
  background: rgba(246,248,237,.03);
}
.cv-item .icon-sq {
  width: 36px; height: 36px;
  background: var(--mc-green);
  border-radius: 28% / 26%;
  display: grid; place-items: center;
  color: var(--mc-navy);
  margin-bottom: 10px;
}
.cv-item .icon-sq svg { width: 18px; height: 18px; }
.cv-item b {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
  letter-spacing: -0.005em;
}
.cv-item span {
  font-size: 13px;
  color: rgba(246,248,237,.68);
  line-height: 1.45;
}
@media (max-width: 540px) {
  .autoridade-cv { grid-template-columns: 1fr; }
}

/* ---------- Diferencial ---------- */
.diferencial { background: var(--mc-green-soft); }
.diferencial-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 860px) {
  .diferencial-grid { grid-template-columns: 1fr; }
}
.diferencial-headline {
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0;
}
.diferencial-headline em {
  font-style: normal;
  display: block;
  color: var(--mc-green-deep);
}
.diferencial-body p {
  font-size: clamp(16.5px, 1.4vw, 18.5px);
  line-height: 1.6;
  color: var(--mc-ink-2);
  margin: 0 0 var(--mc-space-4);
  max-width: 56ch;
}
.diferencial-body p b { color: var(--mc-navy); font-weight: 600; }

.diferencial-mini {
  display: flex;
  gap: 14px;
  margin-top: var(--mc-space-5);
  flex-wrap: wrap;
}
.mini-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 8px 10px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,31,62,.08);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--mc-navy);
}
.mini-pill .dot {
  width: 22px; height: 22px;
  border-radius: 26% / 24%;
  background: var(--mc-navy);
  display: grid; place-items: center;
  color: var(--mc-green-mint);
}
.mini-pill .dot svg { width: 12px; height: 12px; }

/* ---------- Como funciona ---------- */
.howit { background: var(--mc-cream); }
.howit-head {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--mc-space-5);
  margin-bottom: var(--mc-space-7);
}
.howit-headline {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: var(--mc-space-4) 0 0;
  max-width: 22ch;
}
.howit-headline em {
  font-style: normal;
  color: var(--mc-green-deep);
}
@media (max-width: 720px) {
  .howit-head { grid-template-columns: 1fr; }
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; }
}
.step {
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-lg);
  padding: 28px 24px 26px;
  box-shadow: var(--mc-shadow-sm);
  position: relative;
}
.step-num {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mc-ink-3);
  margin-bottom: 14px;
}
.step-num .n {
  width: 28px; height: 28px;
  background: var(--mc-navy);
  color: var(--mc-cream);
  border-radius: 30% / 28%;
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}
.step h3 {
  font-size: 19px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--mc-navy);
  margin: 0 0 8px;
  letter-spacing: -0.005em;
}
.step p {
  font-size: 14.5px;
  color: var(--mc-ink-2);
  line-height: 1.5;
  margin: 0;
}

/* ---------- Booking ---------- */
.booking {
  background: var(--mc-navy);
  color: var(--mc-cream);
  position: relative;
  overflow: hidden;
}
.booking::after {
  content: "";
  position: absolute;
  left: -180px; top: -180px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(116,195,101,.18), transparent 60%);
  pointer-events: none;
}
.booking-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 880px) {
  .booking-grid { grid-template-columns: 1fr; }
}
.booking-headline {
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: #fff;
  margin: var(--mc-space-4) 0 var(--mc-space-5);
}
.booking-headline em {
  font-style: normal;
  color: var(--mc-green-mint);
}
.booking-sub {
  color: rgba(246,248,237,.78);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0 0 var(--mc-space-6);
  max-width: 48ch;
}

.booking-trust {
  display: flex;
  gap: 20px;
  margin-top: var(--mc-space-5);
  flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
  color: rgba(246,248,237,.7);
}
.trust-item svg { width: 16px; height: 16px; color: var(--mc-green-mint); }

/* booking card */
.booking-card {
  background: var(--mc-cream);
  color: var(--mc-navy);
  border-radius: var(--mc-radius-xl);
  padding: 28px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  position: relative;
}
.booking-card-head {
  display: flex; align-items: center; gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--mc-line);
  margin-bottom: 18px;
}
.booking-card-head .sq {
  width: 44px; height: 44px;
  background: var(--mc-green);
  border-radius: 28% / 26%;
  display: grid; place-items: center;
  color: var(--mc-navy);
}
.booking-card-head b { display: block; font-size: 15px; font-weight: 700; }
.booking-card-head span { font-size: 13px; color: var(--mc-ink-3); }

.booking-card .field {
  display: flex; flex-direction: column; gap: 6px;
  margin-bottom: 14px;
}
.booking-card .field label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.booking-card .field input,
.booking-card .field select {
  height: 46px;
  padding: 0 14px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mc-navy);
  font-family: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color var(--mc-dur-fast) var(--mc-ease), box-shadow var(--mc-dur-fast) var(--mc-ease);
}
.booking-card .field input:focus,
.booking-card .field select:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px rgba(116,195,101,.25);
}

.slot-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 18px;
}
.slot {
  height: 40px;
  border: 1px solid var(--mc-line);
  border-radius: 10px;
  background: #fff;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--mc-navy);
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: all var(--mc-dur-fast) var(--mc-ease);
}
.slot:hover { border-color: var(--mc-navy); }
.slot.active {
  background: var(--mc-navy);
  color: var(--mc-cream);
  border-color: var(--mc-navy);
}
.slot.disabled {
  color: var(--mc-ink-3);
  background: var(--mc-surface-alt);
  cursor: not-allowed;
  opacity: .65;
}

.booking-card .submit {
  width: 100%;
  margin-top: 6px;
}

.booking-card-foot {
  margin-top: 14px;
  font-size: 12.5px;
  color: var(--mc-ink-3);
  text-align: center;
}

/* ---------- Calendly embed card ---------- */
.calendly-card {
  background: var(--mc-cream);
  border-radius: var(--mc-radius-xl);
  padding: 14px;
  box-shadow: 0 40px 90px -30px rgba(0,0,0,.5);
  overflow: hidden;
}
.calendly-card .calendly-inline-widget {
  border-radius: var(--mc-radius-lg);
  overflow: hidden;
  background: var(--mc-cream);
}
@media (max-width: 720px) {
  .calendly-card .calendly-inline-widget { height: 640px !important; }
}

/* ---------- Contact section ---------- */
.contact { background: var(--mc-cream); }
.contact-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(40px, 6vw, 88px);
  align-items: start;
}
@media (max-width: 960px) {
  .contact-grid { grid-template-columns: 1fr; }
}
.contact-headline {
  font-size: clamp(34px, 3.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.018em;
  font-weight: 700;
  margin: var(--mc-space-4) 0 0;
}
.contact-headline em {
  font-style: normal;
  display: block;
  color: var(--mc-green-deep);
}
.contact-bullets {
  list-style: none;
  padding: 0;
  margin: var(--mc-space-6) 0 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.contact-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--mc-ink-2);
}
.contact-bullets li svg {
  width: 18px; height: 18px;
  color: var(--mc-green-deep);
  flex: 0 0 18px;
}
/* On navy sections, bullets need cream text + brighter mint icons */
.contact-bullets.on-dark li { color: var(--mc-cream); }
.contact-bullets.on-dark li svg { color: var(--mc-green-mint); }

.contact-card {
  background: var(--mc-surface);
  color: var(--mc-navy);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-xl);
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--mc-shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact-card .field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 600px) {
  .contact-card .field-grid { grid-template-columns: 1fr; }
}
.contact-card .field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
}
.contact-card label {
  font-size: 12px;
  font-weight: 600;
  color: var(--mc-ink-3);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.contact-card label .req { color: var(--mc-danger); margin-left: 2px; }
.contact-card label .opt { color: var(--mc-ink-3); font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
.contact-card input,
.contact-card select,
.contact-card textarea {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--mc-line);
  border-radius: 12px;
  background: #fff;
  color: var(--mc-navy);
  font-family: inherit;
  font-size: 15px;
  outline: 0;
  transition: border-color var(--mc-dur-fast) var(--mc-ease), box-shadow var(--mc-dur-fast) var(--mc-ease);
  resize: vertical;
}
.contact-card input,
.contact-card select { height: 50px; padding: 0 14px; }
.contact-card select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235C6A7A' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.contact-card input:focus,
.contact-card select:focus,
.contact-card textarea:focus {
  border-color: var(--mc-green);
  box-shadow: 0 0 0 3px rgba(116,195,101,.25);
}
.contact-card textarea { min-height: 120px; padding-top: 14px; }
.contact-card .submit { width: 100%; margin-top: 4px; }
.contact-consent {
  font-size: 12.5px;
  color: var(--mc-ink-3);
  line-height: 1.5;
  margin: 0;
}

/* ---------- FAQ (última tentativa de conversão) ---------- */
.faq { background: var(--mc-cream); }
.faq-head {
  max-width: 760px;
  margin: 0 0 clamp(32px, 4.5vw, 52px);
  text-align: left;
}
.faq-headline {
  font-size: var(--mc-fs-h2);
  font-weight: 700;
  line-height: var(--mc-lh-snug);
  letter-spacing: var(--mc-tracking-tight);
  margin: 14px 0 0;
  text-wrap: balance;
}
.faq-headline em {
  font-style: normal;
  color: var(--mc-green-deep);
}
.faq-sub {
  margin: 16px 0 0;
  max-width: 60ch;
  color: var(--mc-ink-2);
  font-size: 16.5px;
  line-height: var(--mc-lh-relaxed);
}

.faq-list {
  max-width: 840px;
  margin: 0;
  border-top: 1px solid var(--mc-line);
}
.faq-item {
  border-bottom: 1px solid var(--mc-line);
  background: transparent;
}
.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(18px, 2.2vw, 24px) 0;
  text-align: left;
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(15.5px, 1.5vw, 18px);
  line-height: 1.4;
  color: var(--mc-navy);
  transition: color var(--mc-dur-fast) var(--mc-ease);
}
.faq-q:hover { color: var(--mc-green-deep); }
.faq-icon {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  margin-top: 2px;
  display: grid;
  place-items: center;
  color: var(--mc-ink-3);
  transition: transform var(--mc-dur-normal) var(--mc-ease),
              color var(--mc-dur-normal) var(--mc-ease);
}
.faq-icon svg { width: 22px; height: 22px; stroke-width: 1.8; }
.faq-q:hover .faq-icon { color: var(--mc-green-deep); }
.faq-item.open .faq-q { color: var(--mc-navy); }
.faq-item.open .faq-icon {
  transform: rotate(45deg);
  color: var(--mc-green-deep);
}

.faq-a {
  height: 0;
  overflow: hidden;
  transition: height var(--mc-dur-normal) var(--mc-ease);
}
.faq-a-clip { overflow: hidden; }
.faq-a-body {
  padding: 0 56px clamp(20px, 2.4vw, 26px) 0;
  max-width: 64ch;
  color: var(--mc-ink-2);
  font-size: 15.5px;
  line-height: var(--mc-lh-relaxed);
}
.faq-a-body > p { margin: 0; color: inherit; }
.faq-a-body > p + p { margin-top: 12px; }
.faq-a-body strong { color: var(--mc-navy); font-weight: 600; }
.faq-a-body ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 9px;
}
.faq-a-body li {
  position: relative;
  padding-left: 22px;
}
.faq-a-body li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--mc-green);
}

/* Closing CTA beneath the FAQ — the final push */
.faq-cta {
  max-width: 840px;
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  flex-wrap: wrap;
  padding: clamp(22px, 3vw, 30px);
  background: var(--mc-navy);
  color: var(--mc-cream);
  border-radius: var(--mc-radius-lg);
}
.faq-cta-text { display: flex; flex-direction: column; gap: 4px; }
.faq-cta-text b { font-size: clamp(17px, 2vw, 21px); font-weight: 700; color: #fff; }
.faq-cta-text span { font-size: 14.5px; color: rgba(246,248,237,.72); }
.faq-cta .btn { flex: 0 0 auto; }

@media (max-width: 640px) {
  .faq-cta { flex-direction: column; align-items: stretch; text-align: center; }
  .faq-cta-text { align-items: center; }
  .faq-cta .btn { justify-content: center; }
}

/* ---------- Footer ---------- */
.footer {
  background: var(--mc-cream);
  border-top: 1px solid var(--mc-line);
  padding: var(--mc-space-7) 0 var(--mc-space-6);
}
.footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--mc-space-5);
  flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand img { height: 26px; }
.footer-brand span { font-size: 13px; color: var(--mc-ink-3); }
.footer-links { display: flex; gap: var(--mc-space-5); font-size: 13.5px; color: var(--mc-ink-2); }
.footer-links a:hover { color: var(--mc-navy); }

/* ---------- Utility ---------- */
.flex { display: flex; }
.gap-3 { gap: var(--mc-space-3); }
.center-text { text-align: center; }

/* ============================================================
   Scroll-driven motion system
   ============================================================ */

/* Base reveal — used by .reveal (manual) and .mc-anim (auto-tagged).
   Children animate in as they scroll into view, with an optional
   per-element stagger driven by the inline --mc-i index. */
.reveal,
.mc-anim {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity   720ms var(--mc-ease-out),
    transform 720ms var(--mc-ease-out);
  transition-delay: calc(var(--mc-i, 0) * 90ms);
  will-change: opacity, transform;
}
.reveal.in,
.mc-anim.in {
  opacity: 1;
  transform: none;
}

/* Directional + scale variants (set via data-anim attr in JS) */
.mc-anim[data-anim="left"]  { transform: translateX(-32px); }
.mc-anim[data-anim="right"] { transform: translateX(32px); }
.mc-anim[data-anim="scale"] { transform: translateY(22px) scale(.965); }
.mc-anim[data-anim="left"].in,
.mc-anim[data-anim="right"].in,
.mc-anim[data-anim="scale"].in { transform: none; }

/* Once an element has revealed, drop the stagger delay so any later
   hover/state transitions on it feel instant. */
.mc-anim.in { transition-delay: 0ms; }

/* Nav scroll-progress bar — sits on the bottom hairline of the nav. */
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2.5px;
  transform: scaleX(var(--mc-scroll, 0));
  transform-origin: 0 50%;
  background: linear-gradient(90deg, var(--mc-green), var(--mc-green-mint));
  box-shadow: 0 0 10px rgba(116,195,101,.5);
  z-index: 3;
  pointer-events: none;
}

/* Active section highlight in the nav links */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -5px;
  height: 2px;
  border-radius: 2px;
  background: var(--mc-green);
  transition: right var(--mc-dur-normal) var(--mc-ease-out);
}
.nav-links a:hover::after { right: 35%; }
.nav-links a.is-active { color: var(--mc-navy); }
.nav-links a.is-active::after { right: 0; }

@media (prefers-reduced-motion: reduce) {
  .reveal,
  .mc-anim {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .nav-progress { transition: none; }
}

/* ============================================================
   Mobile polish pass
   ============================================================ */

/* Tablet & below */
@media (max-width: 720px) {
  /* Inline-set oversized headings → tame for small screens */
  .autoridade-headline,
  .diferencial-headline { font-size: clamp(28px, 8vw, 38px) !important; }
  .compare-title { font-size: clamp(22px, 6vw, 28px) !important; }

  /* Give the "Agendar agora" CTA in the section head full width */
  .howit-head .btn { width: 100%; justify-content: center; }

  /* Footer stacks left-aligned */
  .footer .container { flex-direction: column; align-items: flex-start; gap: var(--mc-space-4); }
  .footer-links { flex-wrap: wrap; gap: var(--mc-space-3) var(--mc-space-5); }
}

/* Phones */
@media (max-width: 600px) {
  /* Prevent iOS auto-zoom on focus (needs ≥16px) */
  .contact-card input,
  .contact-card select,
  .contact-card textarea { font-size: 16px; }

  /* Primary CTAs go full-width for easy thumb reach */
  .hero-cta { align-items: stretch; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .hero-cta-tertiary { width: 100%; }

  /* Slightly larger comfortable section title on phones */
  .hero-headline { line-height: 1.06; }

  /* Calc card: comfortable padding, full-width */
  .hero-meta-calc { width: 100%; }

  /* Compare cards: a touch less inner padding */
  .compare-card { padding: 22px 18px 18px; }

  /* Stack the two scenario cards; hide the centered "vs" badge */
  .compare { grid-template-columns: 1fr; gap: 14px; }
  .compare::before { display: none; }
}

/* Small phones */
@media (max-width: 380px) {
  .nav-logo { height: 24px; }
  .hero-headline { font-size: clamp(34px, 11vw, 44px); }
}

/* ============================================================
   Mobile overflow guards
   ------------------------------------------------------------
   Grid/flex items default to min-width:auto, so a no-wrap button
   or otherwise wide child can force a single-column track WIDER
   than the viewport. The section's overflow:hidden then masks it
   as content spilling/clipped off the right edge. Letting layout
   items shrink to their track fixes it at the source.
   ============================================================ */
html { overflow-x: clip; }            /* page-level guard; safe with sticky nav */
body { overflow-x: clip; }

.hero-grid > *,
.dilema-grid > *,
.booking-grid > *,
.contact-grid > *,
.autoridade-grid > *,
.diferencial-grid > *,
.howit-head > *,
.steps > *,
.plan-layout > *,
.footer .container > * {
  min-width: 0;
}

/* Long words and big display headings wrap instead of forcing width */
.hero-headline,
.booking-headline,
.autoridade-headline,
.diferencial-headline,
.compare-title,
.section-lead,
.hero-sub,
.booking-sub,
p {
  overflow-wrap: break-word;
}

/* Full-width CTAs (which they become on phones) wrap their label
   rather than push past the edge on the narrowest screens. */
@media (max-width: 440px) {
  .btn { white-space: normal; }
}

/* ============================================================
   WhatsApp — shared visual language
   Deep brand green (--mc-green-deep) = the consultative,
   non-promotional WhatsApp action, distinct from the bright
   primary green (Agendar) and from text links.
   ============================================================ */
.wa-glyph { width: 18px; height: 18px; flex: 0 0 auto; }

.btn-wa {
  background: var(--mc-green-deep);
  color: var(--mc-cream);
  box-shadow: 0 12px 30px -14px rgba(49, 100, 81, .7);
}
.btn-wa:hover { background: #3a7a63; }

/* Bright variant for navy surfaces where deep green lacks contrast */
.btn-wa-bright {
  background: var(--mc-green);
  color: var(--mc-navy);
  box-shadow: var(--mc-shadow-green);
}
.btn-wa-bright:hover { background: var(--mc-green-mint); }

/* ---------- Floating WhatsApp button (FAB) ---------- */
.wa-fab {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: calc(env(safe-area-inset-bottom, 0px) + clamp(16px, 3vw, 28px));
  z-index: 45;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 13px 22px 13px 15px;
  background: var(--mc-green-deep);
  color: #fff;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  box-shadow: 0 18px 40px -14px rgba(49, 100, 81, .8), 0 4px 12px rgba(0, 31, 62, .18);
  /* --wa-shift lifts the button up so it docks above the footer.
     transform is NOT transitioned so it tracks scroll instantly. */
  transform: translateY(var(--wa-shift, 0px));
  transition: box-shadow var(--mc-dur-normal) var(--mc-ease),
              background var(--mc-dur-normal) var(--mc-ease);
}
.wa-fab:hover {
  transform: translateY(calc(var(--wa-shift, 0px) - 3px));
  background: #3a7a63;
  box-shadow: 0 26px 54px -16px rgba(49, 100, 81, .9), 0 6px 16px rgba(0, 31, 62, .2);
}
.wa-fab:active { transform: translateY(calc(var(--wa-shift, 0px) - 1px)); }
.wa-fab:focus-visible { outline: 2px solid var(--mc-green-mint); outline-offset: 3px; }
.wa-fab-icon {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
}
.wa-fab-icon .wa-glyph { width: 30px; height: 30px; }
/* Subtle pulse ring */
.wa-fab-icon::before {
  content: "";
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 2px solid rgba(148, 230, 144, .65);
  animation: waPulse 2.8s var(--mc-ease) infinite;
  pointer-events: none;
}
@keyframes waPulse {
  0%   { transform: scale(.8); opacity: .75; }
  70%  { transform: scale(1.55); opacity: 0; }
  100% { transform: scale(1.55); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-fab-icon::before { animation: none; }
  .wa-fab { transition: none; }
}
/* Compact (icon-only) on phones so it never blocks main CTAs */
@media (max-width: 600px) {
  .wa-fab {
    gap: 0;
    width: 56px;
    height: 56px;
    padding: 0;
    justify-content: center;
  }
  .wa-fab-label { display: none; }
  .wa-fab-icon { width: 28px; height: 28px; }
  .wa-fab-icon .wa-glyph { width: 28px; height: 28px; }
}

/* ---------- Consultative WhatsApp aside (in contact section) ---------- */
.wa-aside {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: var(--mc-space-6);
  padding: 20px 22px;
  background: rgba(246, 248, 237, .05);
  border: 1px solid rgba(148, 230, 144, .26);
  border-radius: var(--mc-radius-md);
}
.wa-aside-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: rgba(148, 230, 144, .12);
  color: var(--mc-green-mint);
}
.wa-aside-icon .wa-glyph { width: 24px; height: 24px; }
.wa-aside-text { flex: 1; min-width: 0; }
.wa-aside-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: var(--mc-tracking-eyebrow);
  text-transform: uppercase;
  color: var(--mc-green-mint);
  margin-bottom: 3px;
}
.wa-aside-text b {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--mc-cream);
  line-height: 1.3;
}
.wa-aside-cta { flex: 0 0 auto; }
@media (max-width: 540px) {
  .wa-aside { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wa-aside-cta { width: 100%; }
}

/* Plan / company CTAs below the WhatsApp aside */
.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--mc-space-3);
  margin-top: var(--mc-space-5);
}
.booking-actions .btn { flex: 1 1 auto; }
@media (max-width: 540px) {
  .booking-actions { flex-direction: column; }
  .booking-actions .btn { width: 100%; }
}

/* ============================================================
   Planos e Preços
   ============================================================ */
.pricing { background: var(--mc-surface-alt); }

/* Two-column layout: pitch panel + plan card */
.plan-layout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(20px, 2.4vw, 32px);
  align-items: stretch;
}
@media (max-width: 940px) {
  .plan-layout { grid-template-columns: 1fr; max-width: 580px; margin-inline: auto; }
}

/* ---- LEFT · pitch panel ---------------------------------- */
.plan-pitch {
  position: relative;
  overflow: hidden;
  background: var(--mc-navy);
  border-radius: var(--mc-radius-lg);
  padding: clamp(32px, 3.4vw, 52px);
  display: flex;
  flex-direction: column;
  box-shadow: var(--mc-shadow-lg);
}
.plan-pitch-rings {
  position: absolute;
  right: -22%;
  bottom: -28%;
  width: 78%;
  pointer-events: none;
}
.plan-pitch-rings svg { width: 100%; height: auto; display: block; }
.plan-pitch-body { position: relative; z-index: 1; }
.plan-pitch .eyebrow { color: var(--mc-green-mint); }
.plan-pitch-title {
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1.14;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: #fff;
  margin: var(--mc-space-3) 0 var(--mc-space-5);
}
.plan-pitch-title em {
  font-style: normal;
  color: var(--mc-green-mint);
}
.plan-pitch p {
  color: rgba(246, 248, 237, .82);
  font-size: 15.5px;
  line-height: 1.62;
  margin-bottom: var(--mc-space-4);
  max-width: 42ch;
}
.plan-pitch-trust {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  padding-top: clamp(20px, 2.4vw, 32px);
}
.plan-pitch-trust .trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--mc-cream);
}
.plan-pitch-trust .trust-item svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--mc-green-mint);
  stroke-width: 2.2;
}

/* ---- RIGHT · plan card ----------------------------------- */
.plan-card {
  display: flex;
  flex-direction: column;
  background: var(--mc-surface);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-lg);
  padding: clamp(28px, 3vw, 44px);
  box-shadow: var(--mc-shadow-md);
}
.plan-card-head {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--mc-line-2);
}
.plan-mark {
  flex: 0 0 auto;
  width: 56px; height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--mc-navy);
  border-radius: 26%;
}
.plan-mark img { width: 32px; height: 32px; object-fit: contain; }
.plan-card-name {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--mc-ink-3);
}
.plan-card-id { min-width: 0; }
.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 2px;
}
.plan-price .cur {
  font-size: 22px;
  font-weight: 600;
  color: var(--mc-ink-2);
  align-self: flex-start;
  margin-top: 7px;
}
.plan-price .val {
  font-size: clamp(34px, 9vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--mc-navy);
}
.plan-price .per {
  font-size: 16px;
  font-weight: 600;
  color: var(--mc-green-deep);
  margin-left: 3px;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  display: grid;
  gap: 13px;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--mc-ink);
}
.feat-ico {
  flex: 0 0 22px;
  width: 22px; height: 22px;
  margin-top: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--mc-green);
  color: #fff;
}
.feat-ico svg { width: 13px; height: 13px; stroke-width: 3; }

.plan-scaling {
  margin-top: auto;
  background: var(--mc-cream);
  border: 1px solid var(--mc-line);
  border-radius: var(--mc-radius-md);
  padding: 20px 22px;
}
.plan-scaling-lead {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--mc-ink-2);
  margin: 0 0 14px;
}
.plan-scaling-lead .ast {
  color: var(--mc-green-deep);
  font-weight: 700;
}
.plan-scaling-lead b { color: var(--mc-navy); font-weight: 700; }
.plan-tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}
.plan-tiers li {
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: 14px;
}
.plan-tiers li + li { padding-top: 10px; border-top: 1px solid var(--mc-line-2); }
.tier-price {
  flex: 0 0 auto;
  min-width: 64px;
  font-weight: 700;
  color: var(--mc-navy);
}
.tier-cond { color: var(--mc-ink-2); line-height: 1.4; }

.plan-cta { margin-top: 24px; width: 100%; }
.plan-card-note {
  font-size: 12.5px;
  color: var(--mc-ink-3);
  text-align: center;
  margin-top: 14px;
}

/* ============================================================
   Pop-up · Diagnóstico grátis
   ============================================================ */
.diag-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: diagFade var(--mc-dur-normal) var(--mc-ease) both;
}
.diag-modal[hidden] { display: none; }
.diag-modal-scrim {
  position: absolute;
  inset: 0;
  background: rgba(0, 31, 62, .55);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.diag-modal-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  max-height: calc(100dvh - 40px);
  overflow-y: auto;
  box-shadow: var(--mc-shadow-lg);
  animation: diagPop var(--mc-dur-slow) var(--mc-ease-out) both;
}
.diag-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--mc-ink-2);
  background: var(--mc-surface-alt);
  transition: background var(--mc-dur-fast) var(--mc-ease), color var(--mc-dur-fast) var(--mc-ease);
}
.diag-modal-close:hover { background: var(--mc-line); color: var(--mc-navy); }
.diag-modal-close svg { width: 18px; height: 18px; }
.diag-modal-head { padding-right: 40px; }
.diag-modal-head .eyebrow { color: var(--mc-green-deep); }
.diag-modal-title {
  font-size: clamp(22px, 3.6vw, 28px);
  line-height: 1.12;
  letter-spacing: -0.018em;
  font-weight: 700;
  color: var(--mc-navy);
  margin: var(--mc-space-3) 0 var(--mc-space-2);
}
.diag-modal-sub {
  font-size: 15px;
  line-height: 1.55;
  color: var(--mc-ink-2);
}
@keyframes diagFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes diagPop {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .diag-modal, .diag-modal-card { animation: none; }
}
