/* ===========================================================
   APEX CLINIC — Landing Page
   Tokens 100% fiéis ao briefing de design (globals.css do app)
   =========================================================== */

:root {
  /* Marrons & quentes — núcleo da marca */
  --espresso: #2B211A;
  --espresso-2: #1E1712;
  --cacau: #5A4636;
  --bronze: #9E6B43;
  --bronze-dark: #855736;
  --dourado: #C8A24C;
  --dourado-soft: #E3C77E;

  /* Fundos & superfícies (claro) */
  --marfim: #F5EEE3;
  --marfim-2: #FBF7F0;
  --areia: #E7DBC8;
  --taupe: #C9B49A;
  --linha: #E3D6C2;

  /* Texto */
  --texto: #2B211A;
  --texto-2: #7A6A58;
  --texto-3: #9C8C79;

  /* Semânticas */
  --sucesso: #6B8E5A;
  --alerta: #C9982F;
  --erro: #B14B41;
  --info: #5E7689;
  --wpp: #25D366;

  /* Gradientes */
  --grad-btn: linear-gradient(135deg, #9E6B43, #855736);
  --grad-dark: radial-gradient(1000px 600px at 50% 0%, #3A2C22 0%, #2B211A 55%, #1E1712 100%);

  /* Sombras */
  --sh-btn: 0 10px 22px -12px rgba(133, 87, 54, 0.9);
  --sh-card: 0 10px 24px -16px rgba(43, 33, 26, 0.35);
  --sh-card-hover: 0 18px 38px -18px rgba(43, 33, 26, 0.45);

  /* Raios */
  --r-2xl: 16px;
  --r-xl: 12px;

  /* Fontes */
  --font-serif: "Noto Serif Display", Georgia, serif;
  --font-sans: "Poppins", system-ui, -apple-system, sans-serif;
  --font-display: "Noto Serif Display", Georgia, serif; /* TAN Pearl pendente → serif display */

  /* Layout */
  --container: 64rem; /* max-w-5xl */
  --pad-x: 24px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-sans);
  font-weight: 400;
  color: var(--texto);
  background: var(--marfim);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

/* ---------- Helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.eyebrow {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--texto-3);
}

.serif { font-family: var(--font-serif); }
.italic { font-style: italic; }
.bronze { color: var(--bronze); }

section { padding-block: clamp(56px, 9vw, 104px); }

.section-head { max-width: 46rem; margin-bottom: 40px; }

h2.section-title {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(26px, 4.5vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.01em;
  color: var(--texto);
}

.section-sub {
  margin-top: 14px;
  font-size: clamp(15px, 2vw, 17px);
  color: var(--texto-2);
  max-width: 42rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1;
  padding: 16px 24px;
  border-radius: var(--r-2xl);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.99); }

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: var(--sh-btn);
}
.btn-primary:hover { box-shadow: 0 14px 30px -12px rgba(133, 87, 54, 0.95); }
.btn-primary .arrow { transition: transform .2s ease; }
.btn-primary:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent;
  border-color: var(--linha);
  color: var(--bronze);
}
.btn-ghost:hover { background: var(--marfim-2); }

.btn-sm { padding: 11px 18px; font-size: 14px; border-radius: var(--r-xl); }

.btn-block { width: 100%; }

@media (max-width: 560px) {
  .btn { width: 100%; }
}

.cta-micro {
  margin-top: 14px;
  font-size: 13px;
  color: var(--texto-3);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}
.cta-micro .dot { color: var(--taupe); }
.cta-block.dark .cta-micro { color: var(--dourado-soft); }
.cta-block.dark .cta-micro .dot { color: rgba(227, 199, 126, .5); }

/* ---------- Header (sticky) ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 238, 227, 0.82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.header.scrolled {
  border-bottom-color: var(--linha);
  box-shadow: 0 6px 20px -18px rgba(43, 33, 26, .6);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 66px;
}

.logo {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-display);
}
.logo .mark {
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--espresso);
}
.logo .sub {
  font-style: italic;
  font-size: 18px;
  color: var(--bronze);
  letter-spacing: 0;
}

/* ---------- Hero (dark editorial) ---------- */
.hero {
  background: var(--grad-dark);
  color: #fff;
  text-align: center;
  padding-block: clamp(64px, 12vw, 132px) clamp(72px, 11vw, 120px);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 -1px 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,199,126,.35), transparent);
}
.hero .eyebrow { color: var(--dourado-soft); }
.hero h1 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(32px, 6vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  max-width: 18ch;
  margin: 18px auto 0;
}
.hero h1 .accent { color: var(--dourado-soft); font-style: italic; font-weight: 500; }
.hero .lede {
  margin: 22px auto 0;
  max-width: 54ch;
  font-size: clamp(15.5px, 2.1vw, 18px);
  color: rgba(245, 238, 227, 0.82);
  line-height: 1.65;
}
.hero .cta-wrap { margin-top: 34px; display: flex; flex-direction: column; align-items: center; }
.hero-trust {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 26px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: rgba(245, 238, 227, 0.62);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { stroke: var(--dourado-soft); }

/* ---------- Icon circle ---------- */
.icon-circle {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--areia);
  display: grid;
  place-items: center;
}
.icon-circle svg { stroke: var(--cacau); stroke-width: 1.7; width: 21px; height: 21px; }

/* ---------- Pain (Dor) ---------- */
.pain-list {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.pain-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--marfim-2);
  border: 1px solid var(--linha);
  border-radius: var(--r-2xl);
  padding: 18px 20px;
  box-shadow: var(--sh-card);
}
.pain-item .icon-circle { background: rgba(177, 75, 65, 0.12); }
.pain-item .icon-circle svg { stroke: var(--erro); }
.pain-item p { color: var(--texto); font-size: 15.5px; }
.pain-close {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: clamp(18px, 2.6vw, 23px);
  line-height: 1.4;
  color: var(--cacau);
  max-width: 50ch;
}
.pain-close strong { color: var(--espresso); font-weight: 700; }

/* ---------- Virada ---------- */
.virada { background: var(--marfim-2); border-block: 1px solid var(--linha); }
.virada p { font-size: clamp(15.5px, 2.1vw, 17.5px); color: var(--texto-2); max-width: 60ch; }
.virada p + p { margin-top: 18px; }
.anchor-phrase {
  margin-top: 34px;
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(24px, 4.4vw, 38px);
  line-height: 1.2;
  color: var(--espresso);
}
.anchor-phrase .b { color: var(--bronze); font-style: italic; }

/* ---------- Why Apex / Tráfego — feature list ---------- */
.feature-text { max-width: 62ch; }
.feature-text p { color: var(--texto-2); font-size: 16px; }
.feature-text p + p { margin-top: 16px; }

.check-list { list-style: none; display: grid; gap: 14px; margin-top: 28px; }
.check-list li { display: flex; gap: 14px; align-items: flex-start; }
.check-list .ck {
  flex: none; width: 26px; height: 26px; border-radius: 999px;
  background: rgba(107, 142, 90, 0.16);
  display: grid; place-items: center; margin-top: 1px;
}
.check-list .ck svg { stroke: var(--sucesso); stroke-width: 2.1; width: 15px; height: 15px; }
.check-list li span { font-size: 15.5px; color: var(--texto); }

.lead-out {
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: clamp(17px, 2.4vw, 21px);
  font-style: italic;
  color: var(--cacau);
  max-width: 52ch;
}

/* ---------- Metodologia (6 cards) ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 8px;
}
.step-card {
  background: var(--marfim-2);
  border: 1px solid var(--linha);
  border-radius: var(--r-2xl);
  padding: 24px 22px;
  box-shadow: var(--sh-card);
  transition: transform .18s ease, box-shadow .2s ease;
  position: relative;
}
.step-card:hover { transform: translateY(-3px); box-shadow: var(--sh-card-hover); }
.step-num {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
  font-style: italic;
  color: var(--bronze);
  line-height: 1;
}
.step-card h3 {
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16.5px;
  color: var(--espresso);
  margin: 14px 0 8px;
}
.step-card p { font-size: 14.5px; color: var(--texto-2); }

/* ---------- Case ---------- */
.case { background: var(--grad-dark); color: #fff; }
.case .eyebrow { color: var(--dourado-soft); }
.case h2.section-title { color: #fff; }
.case .case-body { max-width: 62ch; margin-top: 22px; }
.case .case-body p { color: rgba(245, 238, 227, 0.82); font-size: 16px; }
.case .case-body p + p { margin-top: 16px; }
.case .case-body em { color: var(--dourado-soft); font-style: italic; }
.case-note {
  margin-top: 26px;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  padding: 14px 18px;
  border: 1px dashed rgba(227, 199, 126, 0.4);
  border-radius: var(--r-xl);
  font-size: 14px;
  color: var(--dourado-soft);
}

/* ---------- Depoimentos ---------- */
.testi-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.testi-card {
  background: var(--marfim-2);
  border: 1px solid var(--linha);
  border-radius: var(--r-2xl);
  padding: 24px 22px;
  box-shadow: var(--sh-card);
  display: flex;
  flex-direction: column;
}
.stars { color: var(--dourado); letter-spacing: 2px; font-size: 15px; }
.testi-card blockquote {
  font-family: var(--font-serif);
  font-size: 16.5px;
  line-height: 1.55;
  color: var(--espresso);
  margin: 14px 0 18px;
  flex: 1;
}
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 999px;
  background: var(--areia); color: var(--cacau);
  display: grid; place-items: center;
  font-weight: 600; font-size: 15px;
}
.testi-author .who b { font-weight: 600; font-size: 14.5px; color: var(--espresso); display: block; }
.testi-author .who span { font-size: 12.5px; color: var(--texto-3); }
.testi-foot {
  margin-top: 26px;
  font-size: 13.5px;
  color: var(--texto-3);
  font-style: italic;
}

/* ---------- Para quem é / não é ---------- */
.fit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 8px;
}
.fit-card {
  border-radius: var(--r-2xl);
  padding: 26px 24px;
  border: 1px solid var(--linha);
}
.fit-card.yes { background: var(--marfim-2); box-shadow: var(--sh-card); }
.fit-card.no { background: transparent; }
.fit-card h3 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: 19px;
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 10px;
}
.fit-card.yes h3 { color: var(--sucesso); }
.fit-card.no h3 { color: var(--texto-2); }
.fit-card ul { list-style: none; display: grid; gap: 13px; }
.fit-card li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.fit-card li svg { flex: none; width: 19px; height: 19px; margin-top: 2px; stroke-width: 2; }
.fit-card.yes li svg { stroke: var(--sucesso); }
.fit-card.no li svg { stroke: var(--texto-3); }
.fit-card.no li { color: var(--texto-2); }

/* ---------- FAQ ---------- */
.faq { background: var(--marfim-2); border-top: 1px solid var(--linha); }
.faq-list { margin-top: 8px; display: grid; gap: 12px; }
.faq-item {
  background: var(--marfim);
  border: 1px solid var(--linha);
  border-radius: var(--r-2xl);
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--espresso);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.faq-q .chev { flex: none; transition: transform .25s ease; stroke: var(--bronze); stroke-width: 2; }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a-inner { padding: 0 22px 20px; color: var(--texto-2); font-size: 15px; line-height: 1.65; }

/* ---------- CTA final (dark) ---------- */
.cta-final { background: var(--grad-dark); color: #fff; text-align: center; }
.cta-final h2 {
  font-family: var(--font-serif);
  font-weight: 600;
  font-size: clamp(27px, 4.8vw, 42px);
  line-height: 1.18;
  max-width: 20ch;
  margin-inline: auto;
}
.cta-final h2 .accent { color: var(--dourado-soft); font-style: italic; }
.cta-final .lede {
  margin: 22px auto 0;
  max-width: 58ch;
  color: rgba(245, 238, 227, 0.82);
  font-size: 16px;
}
.deliver {
  margin: 34px auto 0;
  max-width: 40rem;
  text-align: left;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(227, 199, 126, 0.22);
  border-radius: var(--r-2xl);
  padding: 24px 26px;
}
.deliver .deliver-h {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--dourado-soft); margin-bottom: 16px;
}
.deliver ul { list-style: none; display: grid; gap: 14px; }
.deliver li { display: flex; gap: 13px; align-items: flex-start; font-size: 15.5px; color: rgba(245,238,227,.92); }
.deliver li svg { flex: none; width: 20px; height: 20px; margin-top: 2px; stroke: var(--dourado-soft); stroke-width: 1.9; }
.cta-final .cta-wrap { margin-top: 36px; display: flex; flex-direction: column; align-items: center; }
.scarcity {
  margin-top: 26px;
  max-width: 50ch;
  margin-inline: auto;
  font-size: 13.5px;
  color: var(--dourado-soft);
  display: flex; gap: 10px; align-items: flex-start; justify-content: center;
}
.scarcity svg { flex: none; width: 17px; height: 17px; margin-top: 2px; stroke: var(--dourado-soft); stroke-width: 1.8; }

/* ---------- Inline CTA block (light sections) ---------- */
.cta-inline { margin-top: 34px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--espresso-2);
  color: rgba(245, 238, 227, 0.7);
  padding-block: 48px 36px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  justify-content: space-between;
  align-items: flex-start;
}
.footer .logo .mark { color: #fff; }
.footer .logo .sub { color: var(--dourado-soft); }
.footer-tag { margin-top: 12px; font-size: 14px; max-width: 34ch; font-family: var(--font-serif); font-style: italic; color: rgba(245,238,227,.6); }
.footer-contacts { display: grid; gap: 12px; }
.footer-contacts a {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 14.5px; color: rgba(245, 238, 227, 0.82);
  transition: color .2s ease;
}
.footer-contacts a:hover { color: var(--dourado-soft); }
.footer-contacts svg { width: 18px; height: 18px; stroke: var(--dourado-soft); stroke-width: 1.7; }
.footer-bottom {
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: rgba(245, 238, 227, 0.45);
  display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between;
}

/* ---------- Floating WhatsApp (mobile) ---------- */
.wpp-float {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 60;
  width: 56px; height: 56px;
  border-radius: 999px;
  background: var(--wpp);
  display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37, 211, 102, 0.55);
  transition: transform .18s ease;
}
.wpp-float:hover { transform: scale(1.06); }
.wpp-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ===========================================================
   Responsive — desktop up
   =========================================================== */
@media (min-width: 700px) {
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
  .fit-grid { grid-template-columns: repeat(2, 1fr); }
  .hero .cta-wrap, .cta-final .cta-wrap { }
  .btn { width: auto; }
}
@media (min-width: 1000px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}

/* header CTA hidden on very small screens (floating wpp covers it) */
@media (max-width: 460px) {
  .header .btn { display: none; }
}
