/* ============================================================
   Sections 8-14 styles
   ============================================================ */

/* Anti-overflow no mobile: CTAs de conteúdo podem quebrar linha
   em vez de forçar largura maior que a tela. */
@media (max-width: 640px) {
  .btn-large, .btn-xl, .btn-primary, .btn-outline {
    white-space: normal;
    max-width: 100%;
  }
}

/* ----------------------- Pull-quotes (between sections) ----------------------- */
.pullquote {
  background: var(--cream-deep);
  padding: clamp(48px, 5vw, 80px) 0;
  position: relative;
}
.pullquote.tone-deep {
  background: var(--deep);
  color: var(--on-deep);
}
.pullquote .wrap-narrow {
  text-align: left;
  max-width: 760px;
  position: relative;
}
.pullquote-mark {
  display: block;
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(80px, 9vw, 132px);
  line-height: 0.5;
  color: var(--clay);
  margin-bottom: 8px;
  user-select: none;
}
.pullquote.tone-deep .pullquote-mark { color: var(--clay-soft); }
.pullquote-text {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.18;
  letter-spacing: -0.018em;
  color: var(--fg);
  margin: 0 0 var(--s5) 0;
  text-wrap: balance;
  max-width: none;
}
.pullquote.tone-deep .pullquote-text { color: var(--cream); }
.pullquote-text em {
  font-style: italic;
  color: var(--clay);
  position: relative;
}
.pullquote.tone-deep .pullquote-text em { color: var(--clay-soft); }
.pullquote-attr {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--fg-3);
}
.pullquote.tone-deep .pullquote-attr { color: var(--on-deep-mute); }

/* ----------------------- SECTION 8: Cases / testimonials ----------------------- */
.cases { background: var(--deep); color: var(--on-deep); }
.cases .lede { color: var(--on-deep-mute); }
.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
}
@media (max-width: 820px) { .cases-grid { grid-template-columns: 1fr; } }
.case-card {
  background: var(--deep-2);
  display: flex;
  flex-direction: column;
  padding: 28px;
}
.case-photo {
  aspect-ratio: 3/4;
  border-radius: var(--radius-m);
  overflow: hidden;
  position: relative;
}
@media (max-width: 560px) { .case-photo { aspect-ratio: 16/10; } }
.case-photo .play-btn {
  position: absolute;
  bottom: 12px; left: 12px;
  width: 38px; height: 38px;
  border-radius: 999px;
  background: rgba(15,26,23,0.7);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(235,226,204,0.3);
  display: grid; place-items: center;
  color: var(--cream);
}
.case-photo .play-btn svg { width: 14px; height: 14px; margin-left: 2px; }
.case-card .stars {
  font-family: var(--font-mono);
  font-size: 14px;
  color: var(--clay-soft);
  letter-spacing: 2px;
  margin-bottom: 12px;
}
.case-card .quote {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 1.35;
  color: var(--cream);
  font-style: italic;
  margin: 0 0 16px 0;
  text-wrap: pretty;
}
.case-card .quote::before { content: "\201C"; opacity: 0.4; margin-right: 2px; }
.case-card .quote::after { content: "\201D"; opacity: 0.4; }
.case-card .quote { flex: 1 1 auto; }
.case-card .who {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.case-card .who .name {
  font-weight: 500;
  font-size: 14px;
  color: var(--on-deep);
}
.case-card .who .via-google {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--on-deep-mute);
}
.g-logo { width: 14px; height: 14px; flex-shrink: 0; display: inline-block; }
.cases-footer {
  margin-top: var(--s7);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s5);
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
}
.cases-stat {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--cream);
  max-width: 32ch;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cases-stat .cases-stars {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 16px;
  letter-spacing: 2px;
  color: var(--clay-soft);
}
.cases-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--s4);
}
.cases-google-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--on-deep-mute);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 3px;
  transition: color 0.2s, border-color 0.2s;
}
.cases-google-link:hover { color: var(--cream); border-color: var(--clay-soft); }

/* ----------------------- SECTION 9: How it works ----------------------- */
.how { background: var(--cream); }
.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
}
@media (max-width: 920px) { .timeline { grid-template-columns: 1fr; gap: 0; } }
.timeline::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: var(--line-strong);
}
@media (max-width: 920px) {
  .timeline::before {
    top: 0; bottom: 0; left: 28px; right: auto;
    height: auto; width: 1px;
  }
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 12px;
  position: relative;
}
@media (max-width: 920px) {
  .step { flex-direction: row; align-items: flex-start; text-align: left; gap: 24px; padding: 24px 0; }
}
.step-dot {
  width: 80px; height: 80px;
  border-radius: 999px;
  background: var(--cream);
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
  margin-bottom: 22px;
  transition: background 0.2s, border-color 0.2s;
}
@media (max-width: 920px) { .step-dot { margin-bottom: 0; flex-shrink: 0; width: 56px; height: 56px; } }
.step-dot svg { width: 28px; height: 28px; color: var(--ink); stroke-width: 1.3; }
@media (max-width: 920px) { .step-dot svg { width: 22px; height: 22px; } }
.step-num {
  position: absolute;
  top: -4px; right: -4px;
  width: 24px; height: 24px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff8ef;
  font-family: var(--font-mono);
  font-size: 11px;
  display: grid;
  place-items: center;
}
.step h4 {
  font-family: var(--font-display);
  font-size: 22px;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.step p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--fg-2);
  margin: 0 0 8px 0;
  max-width: 22ch;
}
.step-meta {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
  margin-top: auto;
}
@media (max-width: 920px) { .step .step-content { flex: 1; } }

.expectation {
  margin-top: var(--s8);
  padding: var(--s6) clamp(28px, 4vw, 56px);
  background: var(--cream-warm);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
}
@media (max-width: 620px) { .expectation { grid-template-columns: 1fr; } }
.expectation-icon {
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--clay);
  color: #fff8ef;
  display: grid; place-items: center;
}
.expectation-icon svg { width: 24px; height: 24px; stroke-width: 1.5; }
.expectation p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.35;
  font-style: italic;
  color: var(--fg);
}
.expectation p strong { font-style: normal; color: var(--clay); font-family: var(--font-display); font-weight: 400; }

/* ----------------------- SECTION 10: Investment ----------------------- */
.invest { background: var(--cream-warm); }
.invest-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(40px, 5vw, 80px);
}
@media (max-width: 880px) { .invest-grid { grid-template-columns: 1fr; } }
.invest-table {
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  overflow: hidden;
  background: var(--cream);
}
.invest-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.invest-row:last-child { border-bottom: 0; }
.invest-row.featured {
  background: var(--deep);
  color: var(--on-deep);
}
.invest-row .label-main {
  font-size: 16px;
  font-weight: 500;
  display: block;
  margin-bottom: 4px;
}
.invest-row .label-sub {
  font-size: 13px;
  color: var(--fg-3);
}
.invest-row.featured .label-sub { color: var(--on-deep-mute); }
.invest-row .price {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.invest-row .price small {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--clay);
  margin-top: 4px;
  font-weight: 500;
}
.invest-row.featured .price small { color: var(--clay-soft); }
.invest-payment {
  margin-top: var(--s4);
  display: flex;
  flex-wrap: wrap;
  gap: var(--s3);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.invest-payment .chip {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}
.invest-explain p {
  margin: 0 0 var(--s4) 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--fg-2);
  text-wrap: pretty;
}
.invest-explain p:first-child {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(22px, 2.2vw, 28px);
  color: var(--fg);
  line-height: 1.25;
}

/* ----------------------- SECTION 11: Clinic ----------------------- */
.clinic { background: var(--cream); }
.clinic-carousel { position: relative; }
.clinic-track {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.clinic-track::-webkit-scrollbar { display: none; }
.clinic-slide {
  flex: 0 0 calc((100% - 16px) / 3);
  scroll-snap-align: start;
  aspect-ratio: 3 / 4;
  border-radius: var(--radius-m);
  overflow: hidden;
  background: var(--bg-2);
}
.clinic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.clinic-slide:hover img { transform: scale(1.04); }
@media (max-width: 640px) {
  .clinic-slide { flex-basis: calc((100% - 8px) / 1.35); }
}

.clinic-address {
  margin-top: var(--s7);
  padding: clamp(28px, 4vw, 48px);
  background: var(--cream-warm);
  border-radius: var(--radius-l);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}
@media (max-width: 720px) { .clinic-address { grid-template-columns: 1fr; } }
.clinic-address h3 {
  font-size: clamp(22px, 2.2vw, 28px);
  margin-bottom: var(--s3);
}
.clinic-address p {
  margin: 0 0 var(--s2) 0;
  color: var(--fg-2);
}
.clinic-address .addr-line {
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-3);
  margin-top: var(--s3);
}

/* ----------------------- SECTION 12: FAQ ----------------------- */
.faq { background: var(--cream-warm); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 820px) { .faq-grid { grid-template-columns: 1fr; } }
.faq-side h2 { margin-bottom: var(--s4); }
.faq-side p { color: var(--fg-2); margin: 0 0 var(--s5) 0; }
.faq-list {
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-q {
  width: 100%;
  background: transparent;
  border: 0;
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  text-align: left;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.25;
  color: var(--fg);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-q:hover { color: var(--clay); }
.faq-toggle {
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid; place-items: center;
  flex-shrink: 0;
  margin-top: 4px;
  transition: background 0.2s, color 0.2s, transform 0.3s;
  font-size: 16px;
  color: var(--fg-2);
}
.faq-item.open .faq-toggle { background: var(--clay); color: #fff8ef; border-color: var(--clay); transform: rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}
.faq-item.open .faq-a {
  max-height: 600px;
  padding-bottom: 28px;
}
.faq-a p {
  margin: 0 0 12px 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--fg-2);
  max-width: 60ch;
}
.faq-a p:last-child { margin: 0; }

/* ----------------------- SECTION 13: Last call ----------------------- */
.lastcall {
  background: var(--deep);
  color: var(--on-deep);
  text-align: left;
}
.lastcall h2 {
  font-size: clamp(36px, 5.2vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin-bottom: var(--s6);
}
.lastcall h2 em { color: var(--clay-soft); font-style: italic; }
.lastcall-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: start;
}
@media (max-width: 820px) {
  .lastcall-grid { grid-template-columns: 1fr; }
  .lastcall-grid > * { min-width: 0; }
  .urgency-card .btn-xl {
    font-size: 17px;
    padding: 20px 22px;
    white-space: normal;
    text-align: center;
  }
}
.lastcall-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s6) 0;
  display: grid;
  gap: 14px;
}
.lastcall-list li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--on-deep-mute);
  font-size: 17px;
  line-height: 1.45;
}
.lastcall-list li::before {
  content: "—";
  color: var(--clay);
  font-family: var(--font-mono);
  flex-shrink: 0;
}
.urgency-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-l);
  padding: clamp(28px, 4vw, 40px);
  background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 100%);
}
.urgency-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--s5);
  padding-bottom: var(--s4);
  border-bottom: 1px solid var(--line);
}
.urgency-head .eyebrow { color: var(--clay-soft); }
.urgency-head .eyebrow::before { background: var(--clay-soft); }
.urgency-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--sage-soft);
}
.urgency-status .dot { width: 6px; height: 6px; border-radius: 999px; background: var(--sage); animation: pulse 1.6s ease-in-out infinite; }
.urgency-lead {
  font-size: 15px;
  line-height: 1.55;
  color: var(--on-deep-mute);
  margin: 0 0 var(--s5) 0;
}
.urgency-lead strong { color: var(--cream); font-weight: 500; }
.urgency-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s5) 0;
  display: grid;
  gap: 16px;
}
.urgency-steps li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  color: var(--on-deep);
  font-size: 15px;
  line-height: 1.45;
}
.urgency-step-n {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--clay-soft);
}

.lastcall-cta-block {
  margin-top: var(--s7);
  padding-top: var(--s6);
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
}
.lastcall-cta-block .trust-line {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s5);
  font-family: var(--font-mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-deep-mute);
}
.lastcall-cta-block .trust-line span { display: inline-flex; align-items: center; gap: 8px; }
.lastcall-cta-block .trust-line svg { color: var(--sage); }

/* ----------------------- SECTION 14: Footer ----------------------- */
.footer {
  background: var(--cream);
  border-top: 1px solid var(--line);
  padding-top: var(--s9);
  padding-bottom: var(--s7);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: var(--s6);
  margin-bottom: var(--s8);
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s5); } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-3);
  font-weight: 500;
  margin-bottom: var(--s4);
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { text-decoration: none; color: var(--fg-2); font-size: 14.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--clay); }
.footer-brand p {
  font-size: 14.5px;
  color: var(--fg-2);
  margin: var(--s4) 0 0 0;
  max-width: 32ch;
}
.footer-logo-link {
  display: inline-block;
  line-height: 0;
}
.footer-logo {
  width: 140px;
  height: auto;
  display: block;
}
@media (max-width: 920px) {
  .footer-logo { width: 110px; }
}
.footer-bottom {
  padding-top: var(--s5);
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s4);
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-3);
}
.footer-bottom a { color: var(--fg-3); }
.footer-bottom a:hover { color: var(--clay); }

/* ============================================================
   Tweaks panel (vanilla)
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 200;
  width: 320px;
  background: var(--cream);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  padding: 18px 20px 20px;
  box-shadow: 0 24px 60px rgba(15,26,23,0.18), 0 4px 12px rgba(15,26,23,0.08);
  display: none;
  font-family: var(--font-body);
}
.tweaks-panel.open { display: block; }
.tweaks-panel h4 {
  font-family: var(--font-display);
  font-size: 20px;
  margin: 0 0 4px 0;
  letter-spacing: -0.01em;
}
.tweaks-panel .sub {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 16px;
}
.tweaks-panel .close-x {
  position: absolute;
  top: 14px; right: 14px;
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(21,33,29,0.15);
  background: transparent;
  display: grid; place-items: center;
  font-size: 14px;
  color: var(--ink-mute);
}
.tweak-section {
  padding: 14px 0;
  border-top: 1px solid rgba(21,33,29,0.08);
}
.tweak-section:first-of-type { border-top: 0; padding-top: 0; }
.tweak-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.tweak-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.tweak-row.three { grid-template-columns: repeat(3, 1fr); }
.tweak-btn {
  background: transparent;
  border: 1px solid rgba(21,33,29,0.15);
  border-radius: 8px;
  padding: 10px 12px;
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.tweak-btn:hover { border-color: var(--ink); }
.tweak-btn.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.tweak-swatch {
  width: 14px; height: 14px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ============================================================
   Body modifiers (Tweak palette switching)
   ============================================================ */
body.palette-dark {
  background: var(--deep);
  color: var(--on-deep);
}
body.palette-dark .hero,
body.palette-dark .identify,
body.palette-dark .method,
body.palette-dark .about,
body.palette-dark .how,
body.palette-dark .clinic,
body.palette-dark .footer {
  background: var(--deep);
  color: var(--on-deep);
  --bg: var(--deep);
  --bg-2: var(--deep-2);
  --bg-3: var(--deep-3);
  --fg: var(--on-deep);
  --fg-2: var(--on-deep);
  --fg-3: var(--on-deep-mute);
  --fg-4: rgba(235, 226, 204, 0.5);
  --line: rgba(235, 226, 204, 0.14);
  --line-strong: rgba(235, 226, 204, 0.28);
}
body.palette-dark .why-not,
body.palette-dark .filter,
body.palette-dark .invest,
body.palette-dark .faq,
body.palette-dark .compare {
  background: var(--deep-2);
  color: var(--on-deep);
  --bg: var(--deep-2);
  --bg-2: var(--deep);
  --bg-3: var(--deep-3);
  --fg: var(--on-deep);
  --fg-2: var(--on-deep);
  --fg-3: var(--on-deep-mute);
  --line: rgba(235, 226, 204, 0.12);
  --line-strong: rgba(235, 226, 204, 0.22);
}
body.palette-dark .compare-col:not(.featured) { background: var(--deep-3); }
body.palette-dark .pullquote:not(.tone-deep) { background: var(--deep-2); color: var(--on-deep); }
body.palette-dark .pullquote:not(.tone-deep) .pullquote-text { color: var(--cream); }
body.palette-dark .pullquote:not(.tone-deep) .pullquote-attr { color: var(--on-deep-mute); }
body.palette-dark .benefit-pills li { background: rgba(235,226,204,0.05); color: var(--cream); border-color: rgba(235,226,204,0.18); }
body.palette-dark .hero h1 .underline { background-image: linear-gradient(transparent 62%, rgba(201,122,74,0.35) 62%, rgba(201,122,74,0.35) 92%, transparent 92%); }
body.palette-dark .topnav { background: color-mix(in oklab, var(--deep) 90%, transparent); }
body.palette-dark .nav-cta { background: var(--cream); color: var(--ink) !important; }
body.palette-dark .check-result { background: rgba(201,122,74,0.1); color: var(--on-deep); }
body.palette-dark .filter-col { background: var(--deep-2); }
body.palette-dark .filter-col + .filter-col { background: var(--deep-3); }
body.palette-dark .pillar,
body.palette-dark .why-cell,
body.palette-dark .cred-cell,
body.palette-dark .invest-table { background: var(--deep-2); }
body.palette-dark .invest-row.featured { background: var(--clay); color: #fff8ef; }
body.palette-dark .invest-row.featured .label-sub { color: rgba(255,248,239,0.8); }
body.palette-dark .invest-row.featured .price small { color: rgba(255,248,239,0.85); }
body.palette-dark .why-not { background: var(--deep-2); }
body.palette-dark .expectation { background: rgba(201,122,74,0.1); }
body.palette-dark .clinic-address { background: var(--deep-2); }
body.palette-dark .tweaks-panel {
  background: var(--deep-2);
  color: var(--on-deep);
  border-color: rgba(235,226,204,0.14);
}
body.palette-dark .tweak-btn { border-color: rgba(235,226,204,0.18); color: var(--on-deep-mute); }
body.palette-dark .tweak-btn.active { background: var(--cream); color: var(--ink); border-color: var(--cream); }
body.palette-dark .tweak-label { color: var(--on-deep-mute); }
body.palette-dark .tweaks-panel .close-x { border-color: rgba(235,226,204,0.2); color: var(--on-deep-mute); }

/* CTA color tweak */
body.cta-green .btn-primary { background: var(--whatsapp); color: #052b13; border-color: var(--whatsapp); }
body.cta-green .btn-primary:hover { background: var(--whatsapp-hover); border-color: var(--whatsapp-hover); }
body.cta-green .float-cta { background: var(--whatsapp); color: #052b13; }

/* Density */
body.density-compact { --section-y: clamp(56px, 6vw, 88px); }
body.density-generous { --section-y: clamp(96px, 12vw, 168px); }
/* ============================================================
   REDESIGN BRIEF — Task 3: SECTION 9 (.how) editorial timeline
   Override + extend the .timeline / .step / .expectation rules
   above. New icons (in HTML), terracota fio condutor with
   scroll-driven draw, weighted Step 2 + Step 5, micro-pulse on
   hover, pull-quote .expectation.
   ============================================================ */

/* --- The fio condutor: terracota, optionally draws on scroll --- */
.timeline::before {
  background: var(--clay);
  opacity: 1;
}
@media (min-width: 921px) {
  .timeline::before {
    height: 2px;
    top: 40px;
    left: 9%;
    right: 9%;
  }
}
@media (max-width: 920px) {
  .timeline::before {
    width: 2px;
    left: 27px;
  }
}

/* Scroll-driven draw (progressive enhancement — Chrome 115+, Safari 26+).
   Browsers without animation-timeline support get a fully drawn static line. */
@supports (animation-timeline: view()) {
  .timeline {
    view-timeline-name: --timeline-track;
  }
  .timeline::before {
    transform-origin: left center;
    animation: timeline-draw-x linear both;
    animation-timeline: --timeline-track;
    animation-range: entry 5% cover 70%;
  }
  @media (max-width: 920px) {
    .timeline::before {
      transform-origin: top center;
      animation-name: timeline-draw-y;
      animation-range: entry 0% cover 80%;
    }
  }
}
@keyframes timeline-draw-x {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes timeline-draw-y {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* --- Step dots: refresh visual + hover micro-pulse --- */
.step-dot {
  background: var(--cream);
  border: 1px solid var(--line-strong);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.7) inset,
    0 0 0 4px var(--cream); /* clean halo so dot sits ON the line, not under it */
  transition:
    background 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 240ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1),
    box-shadow 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.step-dot svg {
  color: var(--ink);
  stroke-width: 1.5;
  transition: transform 360ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .step:hover .step-dot {
    border-color: var(--clay);
    transform: translateY(-2px);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 0 0 4px var(--cream),
      0 12px 28px -10px rgba(201, 122, 63, 0.4);
  }
  .step:hover .step-dot svg {
    transform: scale(1.08);
  }
}

/* Step-num pill — slight refinement for readability */
.step-num {
  background: var(--ink);
  color: var(--cream);
  font-feature-settings: "lnum", "tnum";
}

/* --- Step 2: Avaliação (the first investment of the journey) --- */
.step-key .step-dot {
  background: var(--cream-warm);
  border-color: rgba(201, 122, 63, 0.55);
  border-width: 1.5px;
}
.step-key .step-dot svg { color: var(--clay); }
.step-key .step-num { background: var(--clay); }
@media (hover: hover) and (pointer: fine) {
  .step-key:hover .step-dot { border-color: var(--clay); }
}

/* --- Step 5: Alta (promise delivered) — sage success accent --- */
.step-finale .step-dot {
  background: var(--cream);
  border-color: rgba(127, 171, 133, 0.55);
  border-width: 1.5px;
}
.step-finale .step-dot svg { color: var(--sage-deep); }
.step-finale .step-num {
  background: var(--sage-deep);
  color: #f1f5f2;
}
.step-finale .step-content h4 {
  /* Subtle italic accent for the finale title */
}
.step-finale .step-meta { color: var(--sage-deep); }
@media (hover: hover) and (pointer: fine) {
  .step-finale:hover .step-dot {
    border-color: var(--sage-deep);
    box-shadow:
      0 1px 0 rgba(255,255,255,0.7) inset,
      0 0 0 4px var(--cream),
      0 12px 28px -10px rgba(74, 112, 80, 0.4);
  }
}

/* Step content polish */
.step h4 {
  font-style: normal;
  font-feature-settings: "ss01";
}
.step-meta {
  color: var(--fg-3);
}

/* Mobile rhythm — restore generosity around each step */
@media (max-width: 920px) {
  .step {
    padding: 22px 0 24px;
    gap: 22px;
  }
  .step + .step { border-top: none; }
  .step-content { padding-top: 6px; }
  .step-content h4 { font-size: 21px; }
  .step-content p { font-size: 14.5px; max-width: 36ch; }
  /* Phantom dot to mark "future" steps */
  .step:last-child { padding-bottom: 8px; }
}

/* --- .expectation: editorial pull-quote with terracota anchor --- */
.expectation {
  margin-top: clamp(48px, 6vw, 80px);
  background: transparent;
  padding: clamp(24px, 3vw, 36px) 0 clamp(24px, 3vw, 36px) clamp(24px, 3vw, 40px);
  border: 0;
  border-left: 2px solid var(--clay);
  border-radius: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.expectation::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: var(--clay);
  opacity: 0.5;
  margin-bottom: 2px;
}
.expectation-icon { display: none; }
.expectation p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--fg);
  font-style: italic;
  max-width: 56ch;
  text-wrap: pretty;
}
.expectation p strong {
  font-style: normal;
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--clay);
  letter-spacing: -0.012em;
}

@media (max-width: 620px) {
  .expectation {
    grid-template-columns: 1fr;
    padding-left: 18px;
  }
}

/* Reveal-stagger guards (Task 3 uses .reveal-child on each .step) */
@media (prefers-reduced-motion: reduce) {
  .timeline::before { animation: none !important; transform: none !important; }
  .step-dot, .step-dot svg, .step:hover .step-dot { transition: none !important; transform: none !important; }
}

/* ============================================================
   QUIZ DE QUALIFICAÇÃO (modal pré-WhatsApp)
   ============================================================ */
.quiz-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(21, 33, 29, 0.62);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  animation: quizFade 0.2s ease;
}
.quiz-overlay[hidden] { display: none; }
@keyframes quizFade { from { opacity: 0; } to { opacity: 1; } }

.quiz-box {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-l);
  box-shadow: 0 30px 80px rgba(21, 33, 29, 0.4);
  padding: 30px 28px 28px;
}
.quiz-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: none;
  border: none;
  font-size: 26px;
  line-height: 1;
  color: var(--fg-3);
  cursor: pointer;
  padding: 4px;
}
.quiz-close:hover { color: var(--fg); }

.quiz-progress {
  height: 4px;
  background: var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 22px;
  margin-right: 40px; /* reserva espaço pro botão X (não passa por baixo dele) */
}
.quiz-progress-bar {
  display: block;
  height: 100%;
  width: 0;
  background: var(--clay);
  transition: width 0.3s ease;
}

.quiz-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clay);
}
.quiz-q {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 1.2;
  color: var(--fg);
  margin: 8px 0 20px;
}
.quiz-opts { display: flex; flex-direction: column; gap: 10px; }
.quiz-opt {
  text-align: left;
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.35;
  color: var(--fg);
  background: var(--cream-warm);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  padding: 15px 18px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, border-color 0.15s ease;
}
.quiz-opt:hover {
  background: var(--clay);
  color: var(--cream);
  border-color: var(--clay);
  transform: translateY(-1px);
}

.quiz-name {
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-size: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-m);
  background: var(--cream-warm);
  color: var(--fg);
  margin-bottom: 16px;
}
.quiz-name:focus { outline: none; border-color: var(--clay); }

.quiz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  box-sizing: border-box;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  padding: 15px 22px;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  background: var(--clay);
  color: var(--cream);
  transition: background 0.15s ease;
}
.quiz-btn:hover { background: var(--clay-hover); }
.quiz-btn.wa { background: var(--whatsapp); }
.quiz-btn.wa:hover { background: var(--whatsapp-hover); }
.quiz-btn.light {
  background: none;
  color: var(--fg-2);
  border: 1px solid var(--line-strong);
  margin-top: 10px;
}
.quiz-btn.light:hover { background: var(--cream-warm); }

.quiz-end-text {
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0 0 22px;
}
.quiz-step[hidden] { display: none; }
