/* ============================================================
   WhatsApp que Agenda — Landing Page
   por Clínica que Converte
   Design tokens + layout responsivo (mobile first)
   Isolado da aplicação. Não importa nem depende de /css/style.css do app.
   ============================================================ */

:root {
  /* Paleta oficial da marca (mesmos tokens do produto) */
  --ink: #0B2B33;
  --ink-800: #123943;
  --ink-700: #1a4750;
  --ink-600: #235663;
  --gold: #C6A15B;
  --gold-600: #ab8747;
  --gold-100: #f3e9d6;
  --off-white: #F7F6F2;
  --white: #FFFFFF;

  /* Neutros */
  --gray-900: #23282a;
  --gray-700: #4a5457;
  --gray-500: #7a8386;
  --gray-300: #cfd4d3;
  --gray-100: #e9eae7;

  /* Superfícies */
  --bg: var(--off-white);
  --surface: var(--white);
  --border: var(--gray-100);
  --text: var(--ink);
  --text-muted: var(--gray-700);

  /* Forma */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 24px;
  --shadow: 0 6px 24px rgba(11, 43, 51, 0.08);
  --shadow-lg: 0 20px 50px rgba(11, 43, 51, 0.16);

  /* Layout */
  --container: 1180px;
  --header-h: 72px;
  --gap-section: clamp(64px, 9vw, 128px);

  /* Tipografia */
  --font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "DM Serif Display", Georgia, serif;

  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 32px;
  }
}

section {
  padding: var(--gap-section) 0;
}

.section-bg-surface {
  background: var(--surface);
}

.section-bg-ink {
  background: var(--ink);
  color: var(--off-white);
}

/* ---------- Tipografia geral ---------- */

.eyebrow {
  display: inline-block;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 14px;
}

.section-bg-ink .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--ink);
}

.section-bg-ink h1,
.section-bg-ink h2,
.section-bg-ink h3 {
  color: var(--white);
}

h1 {
  font-size: clamp(30px, 5.2vw, 52px);
}

h2 {
  font-size: clamp(26px, 4vw, 38px);
}

h3 {
  font-size: clamp(19px, 2.6vw, 22px);
  font-family: var(--font-ui);
  font-weight: 700;
}

p {
  margin: 0 0 16px;
  color: var(--text-muted);
}

.section-bg-ink p {
  color: rgba(247, 246, 242, 0.82);
}

.lede {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--text-muted);
}

.section-bg-ink .lede {
  color: rgba(247, 246, 242, 0.88);
}

.section-head {
  max-width: 760px;
  margin: 0 0 48px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.closing-line {
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: clamp(18px, 2.4vw, 22px);
  color: var(--ink);
  margin-top: 32px;
}

.section-bg-ink .closing-line {
  color: var(--gold);
}

.section-bg-surface .closing-line,
.section-bg-off .closing-line {
  color: var(--ink-700);
}

/* ---------- Botões / CTA ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-align: center;
  border: none;
  border-radius: 999px;
  padding: 18px 32px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
  white-space: normal;
}

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 10px 30px rgba(198, 161, 91, 0.35);
}

.btn-primary:hover {
  background: var(--gold-600);
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(198, 161, 91, 0.42);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-block {
  width: 100%;
}

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(247, 246, 242, 0.5);
  padding: 10px 22px;
  font-size: 13px;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.cta-note {
  margin-top: 16px;
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
}

.section-bg-ink .cta-note {
  color: rgba(247, 246, 242, 0.7);
}

.cta-note .dot {
  opacity: 0.5;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 43, 51, 0.96);
  backdrop-filter: saturate(140%) blur(6px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 24px rgba(11, 43, 51, 0.25);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-decoration: none;
  color: var(--white);
}

.brand-name {
  font-family: var(--font-display);
  font-size: 18px;
}

.brand-by {
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--gold);
  text-transform: uppercase;
}

@media (max-width: 480px) {
  .brand-by {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(48px, 8vw, 96px);
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink-700) 100%);
  color: var(--off-white);
  overflow: hidden;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 960px) {
  .hero .container {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 64px;
  }
}

.hero-copy h1 {
  color: var(--white);
}

.hero-copy .lede {
  color: rgba(247, 246, 242, 0.9);
  font-weight: 500;
}

.hero-copy .body {
  color: rgba(247, 246, 242, 0.78);
}

.hero-visual {
  position: relative;
}

.device-frame {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 0;
}

.device-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

.device-frame__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  background: var(--gray-100);
}

.device-frame__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gray-300);
}

.device-frame__screen {
  aspect-ratio: 16 / 10;
  background:
    repeating-linear-gradient(135deg, var(--gray-100) 0 14px, var(--surface) 14px 28px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
}

.placeholder-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  background: var(--surface);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  max-width: 320px;
  line-height: 1.5;
}

.placeholder-label strong {
  display: block;
  color: var(--ink-700);
  font-size: 14px;
  margin-bottom: 4px;
}

/* ---------- Chat mockup (dor) ---------- */

.chat-mock {
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 24px;
  max-width: 420px;
  margin: 0 auto;
}

.chat-bubble {
  max-width: 82%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14.5px;
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-bubble.in {
  background: var(--gray-100);
  color: var(--gray-900);
  border-bottom-left-radius: 4px;
}

.chat-bubble.out {
  background: var(--gold-100);
  color: var(--ink-700);
  margin-left: auto;
  border-bottom-right-radius: 4px;
}

.chat-status {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  background: var(--gold-100);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-block;
  margin: 8px auto 0;
}

.chat-status-wrap {
  text-align: center;
}

.pain-messages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 8px 0 32px;
}

@media (max-width: 560px) {
  .pain-messages {
    grid-template-columns: 1fr;
  }
}

.pain-message {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-700);
  box-shadow: var(--shadow);
}

.pain-message::before {
  content: "\201C";
  color: var(--gold-600);
  font-family: var(--font-display);
  font-size: 20px;
  margin-right: 2px;
}

/* ---------- Grids de cards ---------- */

.grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 860px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.card .step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--gold);
  font-family: var(--font-display);
  font-size: 17px;
  margin-bottom: 16px;
}

.card p:last-child {
  margin-bottom: 0;
}

/* Fluxo situação -> abordagem -> próximo passo */

.flow {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 8px 0 8px;
}

@media (min-width: 780px) {
  .flow {
    grid-template-columns: 1fr auto 1fr auto 1fr;
  }
}

.flow-step {
  background: var(--surface);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  padding: 22px 20px;
  text-align: center;
}

.flow-step .eyebrow {
  margin-bottom: 8px;
}

.flow-step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

.flow-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-600);
  font-size: 22px;
  transform: rotate(90deg);
}

@media (min-width: 780px) {
  .flow-arrow {
    transform: none;
  }
}

/* ---------- Lista com check ---------- */

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 15.5px;
  color: var(--text-muted);
}

.section-bg-ink .check-list li {
  color: rgba(247, 246, 242, 0.85);
}

.check-list .check-icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold-100);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  margin-top: 1px;
}

/* ---------- Produto por dentro (feature list + screenshot) ---------- */

.feature-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .feature-showcase {
    grid-template-columns: 0.85fr 1.15fr;
  }
}

.feature-list {
  display: grid;
  gap: 22px;
}

.feature-item {
  display: flex;
  gap: 14px;
}

.feature-item .icon {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}

.feature-item h3 {
  margin-bottom: 6px;
  font-size: 16.5px;
}

.feature-item p {
  margin: 0;
  font-size: 14.5px;
}

.screenshot-frame {
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  background: var(--surface);
  position: relative;
  line-height: 0;
  cursor: zoom-in;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.screenshot-frame:hover,
.screenshot-frame:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 24px 56px rgba(11, 43, 51, 0.22);
}

.screenshot-frame__img {
  width: 100%;
  height: auto;
  display: block;
}

.screenshot-frame__hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  background: rgba(11, 43, 51, 0.88);
  color: var(--white);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 999px;
  white-space: nowrap;
  pointer-events: none;
}

@media (min-width: 640px) {
  .screenshot-frame {
    max-width: 460px;
  }
}

@media (min-width: 960px) {
  .screenshot-frame {
    max-width: 520px;
  }
}

/* ---------- Lightbox (ampliação de screenshots reais) ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(11, 43, 51, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 20px 20px;
  overflow: auto;
  /* Força a criação de uma camada de composição própria: em alguns
     navegadores (sobretudo mobile), um elemento fixed inserido enquanto
     a página já está rolada pode não repintar corretamente sobre o
     conteúdo antigo sem essa promoção explícita de camada. */
  transform: translateZ(0);
  will-change: transform;
}

.lightbox[hidden] {
  display: none;
}

/* Evita qualquer problema de sobreposição visual com o header/conteúdo/
   footer por trás do lightbox: enquanto ele está aberto, o resto da
   página fica oculto (o body já está com o scroll travado nesse momento). */
body.lightbox-open > .site-header,
body.lightbox-open > main,
body.lightbox-open > .site-footer {
  visibility: hidden;
}

.lightbox__img {
  max-width: min(100%, 900px);
  width: 100%;
  height: auto;
  margin: auto;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
}

.lightbox__close {
  position: fixed;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(247, 246, 242, 0.14);
  color: var(--white);
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__close:hover {
  background: rgba(247, 246, 242, 0.26);
}

/* ---------- Custo da não condução (timeline) ---------- */

.timeline {
  display: grid;
  gap: 12px;
  max-width: 560px;
  margin: 0 auto 32px;
}

.timeline-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14.5px;
  color: var(--ink-700);
  font-weight: 600;
  box-shadow: var(--shadow);
}

.timeline-item .n {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--gray-100);
  color: var(--gray-700);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
}

.timeline-item.is-last {
  background: var(--danger-bg, #f8e9e9);
  border-color: transparent;
}

.timeline-item.is-last .n {
  background: var(--ink);
  color: var(--gold);
}

.highlight-box {
  background: var(--gold-100);
  border-radius: var(--radius);
  padding: 24px 28px;
  text-align: center;
  font-weight: 700;
  color: var(--ink-700);
  font-size: clamp(16px, 2.2vw, 19px);
  max-width: 720px;
  margin: 0 auto 24px;
}

/* ---------- Oferta ---------- */

.offer-card {
  background: var(--ink);
  color: var(--off-white);
  border-radius: var(--radius-lg);
  padding: clamp(32px, 5vw, 56px);
  box-shadow: var(--shadow-lg);
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  border: 1px solid rgba(198, 161, 91, 0.35);
}

.offer-price {
  font-family: var(--font-display);
  font-size: clamp(40px, 7vw, 64px);
  color: var(--gold);
  margin: 8px 0 4px;
}

.offer-price small {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 600;
  color: rgba(247, 246, 242, 0.75);
  display: block;
  margin-top: 6px;
}

.offer-card .check-list {
  text-align: left;
  max-width: 420px;
  margin: 28px auto 32px;
}

/* ---------- FAQ ---------- */

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: grid;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  border: none;
  text-align: left;
  padding: 18px 22px;
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 15.5px;
  color: var(--ink);
  cursor: pointer;
}

.faq-question .icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--gold-600);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s ease;
}

.faq-item.is-open .faq-question .icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.25s ease;
  opacity: 0;
}

.faq-item.is-open .faq-answer {
  opacity: 1;
}

.faq-answer p {
  margin: 0;
  padding: 0 22px 20px;
  font-size: 14.5px;
}

/* ---------- Fechamento ---------- */

.closing {
  background: linear-gradient(180deg, var(--ink-700) 0%, var(--ink) 100%);
  color: var(--off-white);
  text-align: center;
}

.closing .section-head {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.closing-highlight {
  font-family: var(--font-display);
  font-size: clamp(20px, 3vw, 28px);
  color: var(--gold);
  margin: 24px 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink);
  color: rgba(247, 246, 242, 0.7);
  padding: 48px 0 28px;
  font-size: 13.5px;
}

.footer-grid {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-bottom: 32px;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.footer-brand .brand-name {
  font-size: 20px;
}

.footer-brand p {
  color: rgba(247, 246, 242, 0.6);
  font-size: 13.5px;
  margin-top: 10px;
}

.footer-col h4 {
  font-family: var(--font-ui);
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.footer-col a {
  text-decoration: none;
  color: rgba(247, 246, 242, 0.75);
}

.footer-col a:hover {
  color: var(--gold);
}

.footer-bottom {
  border-top: 1px solid rgba(247, 246, 242, 0.12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: space-between;
  color: rgba(247, 246, 242, 0.55);
  font-size: 12.5px;
}

/* ---------- Utilidades ---------- */

.text-center {
  text-align: center;
}

.mt-0 {
  margin-top: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .btn,
  .faq-answer,
  .faq-question .icon,
  .site-header {
    transition: none;
  }
}
