/* =============================================================================
   Meu Cuidado — Redesign orientado a conversão
   Design read: redesign (preservar marca) de landing page de saúde digital
   pessoal para público brasileiro sensível a confiança e privacidade de
   dados de saúde. Linguagem trust-first, moderna e fluida, mantendo a cor
   e a identidade da marca original (verde-azulado).
   Dials: DESIGN_VARIANCE 6 · MOTION_INTENSITY 5 · VISUAL_DENSITY 4
   ============================================================================= */

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

:root {
  /* marca (preservada do site original) */
  --primary: hsl(174, 62%, 38%);
  --primary-strong: hsl(174, 62%, 30%);
  --primary-soft: hsl(174, 55%, 94%);
  --on-primary: hsl(0, 0%, 100%);

  /* neutros */
  --bg: hsl(150, 25%, 98%);
  --surface: hsl(0, 0%, 100%);
  --surface-tint: hsl(174, 45%, 95%);
  --ink: hsl(200, 28%, 13%);
  --ink-soft: hsl(200, 10%, 42%);
  --border: hsl(174, 20%, 88%);

  --radius-lg: 1.25rem;
  --radius-md: 0.85rem;
  --radius-pill: 999px;

  --shadow-card: 0 2px 16px -4px hsla(200, 28%, 13%, 0.08);
  --shadow-lift: 0 20px 48px -12px hsla(174, 62%, 30%, 0.28);

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: hsl(200, 26%, 8%);
    --surface: hsl(200, 22%, 11%);
    --surface-tint: hsl(174, 30%, 15%);
    --primary-soft: hsl(174, 32%, 17%);
    --ink: hsl(150, 20%, 96%);
    --ink-soft: hsl(200, 10%, 68%);
    --border: hsl(200, 18%, 22%);
    --primary: hsl(174, 55%, 48%);
    --primary-strong: hsl(174, 55%, 58%);
    --shadow-card: 0 2px 16px -4px hsla(0, 0%, 0%, 0.4);
    --shadow-lift: 0 20px 48px -12px hsla(174, 55%, 10%, 0.5);
  }
}

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Outfit', 'DM Sans', system-ui, sans-serif; line-height: 1.15; color: var(--ink); }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 1.5rem; }
.max-w-3xl { max-width: 46rem; margin-left: auto; margin-right: auto; }
.max-w-2xl { max-width: 40rem; }

/* ===== ACESSIBILIDADE: reduced motion ===== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 4.25rem;
  display: flex; align-items: center;
  background: hsla(150, 25%, 98%, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .navbar { background: hsla(200, 26%, 8%, 0.82); }
}
.navbar .container { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; }
.brand svg { color: var(--primary); flex-shrink: 0; }
.brand strong { font-family: 'Outfit', sans-serif; font-size: 1.2rem; font-weight: 700; white-space: nowrap; }
@media (max-width: 420px) {
  .brand strong { font-size: 1.02rem; }
  .nav-actions .btn-sm { padding: 0.6rem 1rem; font-size: 0.82rem; }
}

.nav-links { display: none; align-items: center; gap: 2rem; }
.nav-links button { font-size: 0.9rem; font-weight: 500; color: var(--ink-soft); transition: color 0.2s var(--ease); }
.nav-links button:hover { color: var(--primary); }

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-login { display: none; }
@media (min-width: 640px) { .nav-login { display: inline-flex; } }
.nav-toggle { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--ink); }
.nav-toggle svg { width: 22px; height: 22px; }

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

.mobile-menu {
  display: none; position: fixed; top: 4.25rem; left: 0; right: 0; z-index: 49;
  background: var(--bg); border-top: 1px solid var(--border);
}
.mobile-menu.open { display: block; }
@media (min-width: 900px) {
  .mobile-menu { display: none !important; }
}
.mobile-menu .container { display: flex; flex-direction: column; gap: 0.25rem; padding: 1rem 1.5rem 1.5rem; }
.mobile-menu button {
  text-align: left; padding: 0.7rem 0; font-size: 1rem; font-weight: 500; color: var(--ink-soft);
  border-bottom: 1px solid var(--border);
}

/* ===== BOTÕES ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  white-space: nowrap;
  font-weight: 600; border-radius: var(--radius-pill);
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), filter 0.2s var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.98); }
.btn-primary {
  background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-lift);
}
.btn-primary:hover { filter: brightness(1.08); transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--primary); border: 1.5px solid var(--border);
}
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-soft); }
.btn-inverted { background: var(--on-primary); color: var(--primary); }
.btn-inverted:hover { background: hsla(0, 0%, 100%, 0.9); transform: translateY(-2px); }
.btn-sm { font-size: 0.9rem; padding: 0.6rem 1.3rem; }
.btn-lg { font-size: 1.05rem; padding: 0.95rem 1.9rem; }
.btn-block { width: 100%; }

/* ===== HERO ===== */
.hero {
  padding: 8.5rem 0 4rem;
}
.hero-grid {
  display: grid; gap: 3rem; align-items: center;
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: 4rem; }
}
.hero h1 {
  font-size: clamp(2.1rem, 4.4vw, 3.1rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
}
.hero p.lead {
  font-size: 1.1rem; color: var(--ink-soft); max-width: 38rem; margin-bottom: 2rem; line-height: 1.65;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-visual { position: relative; align-self: start; justify-self: center; width: 100%; max-width: 360px; }
.device-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.device-bar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 0.9rem;
  background: var(--surface-tint);
  border-bottom: 1px solid var(--border);
}
.device-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border); }
.device-shot { aspect-ratio: 3 / 4; overflow: hidden; }
.device-frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.hero-visual::after {
  content: '';
  position: absolute; inset: -10% -10% auto auto; top: -8%; right: -8%;
  width: 60%; height: 60%;
  background: radial-gradient(circle, hsla(174, 62%, 38%, 0.14), transparent 70%);
  z-index: -1;
}

/* ===== FAIXA DE CONFIANÇA ===== */
.trust-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.trust-strip .container {
  display: grid; gap: 1.25rem;
  padding: 1.75rem 1.5rem;
}
@media (min-width: 760px) {
  .trust-strip .container { grid-template-columns: repeat(3, 1fr); gap: 0; }
  .trust-item + .trust-item { border-left: 1px solid var(--border); padding-left: 2rem; }
}
.trust-item { display: flex; align-items: center; gap: 0.75rem; }
.trust-item i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.trust-item span { font-size: 0.92rem; color: var(--ink-soft); font-weight: 500; }

/* ===== SEÇÕES GERAIS ===== */
section { scroll-margin-top: 5rem; }
.section-pad { padding: 5.5rem 0; }
.bg-tint { background: var(--surface-tint); }
.eyebrow {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary); margin-bottom: 0.9rem;
}
.section-head { margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); margin-bottom: 0.9rem; }
.section-head p { font-size: 1.05rem; color: var(--ink-soft); max-width: 42rem; }
.text-primary { color: var(--primary); }

/* ===== PROBLEMA ===== */
.problem-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 2.25rem; box-shadow: var(--shadow-card);
}
.problem-card p { color: var(--ink-soft); font-size: 1.08rem; line-height: 1.75; }
.problem-card p + p { margin-top: 1.1rem; }
.problem-callout {
  margin-top: 1.5rem; padding: 1.25rem 1.5rem;
  border-left: 3px solid var(--primary); border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--primary-soft);
  font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 1.1rem; color: var(--ink);
}

/* ===== CHIPS DE CATEGORIA (solução) ===== */
.chip-grid { display: flex; flex-wrap: wrap; gap: 0.85rem; margin: 2rem 0 2.25rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  padding: 0.7rem 1.15rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border);
  font-weight: 600; font-size: 0.95rem;
}
.chip i { color: var(--primary); font-size: 1.1rem; }

/* ===== PREVIEW DO PRODUTO ===== */
.preview-grid { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 960px) { .preview-grid { grid-template-columns: 0.85fr 1.15fr; } }
.preview-frame {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card); overflow: hidden;
}
.preview-frame img { width: 100%; }
.preview-list { display: flex; flex-direction: column; gap: 1.1rem; margin-top: 1.75rem; }
.preview-list li { display: flex; gap: 0.85rem; align-items: flex-start; }
.preview-list i { color: var(--primary); font-size: 1.3rem; margin-top: 0.15rem; flex-shrink: 0; }
.preview-list span { color: var(--ink-soft); }

/* ===== BENTO DE BENEFÍCIOS ===== */
.bento {
  display: grid; gap: 1.1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
  .bento-item { grid-column: span 2; }
  .bento-item.wide { grid-column: span 4; }
}
@media (min-width: 1100px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .bento-item { grid-column: span 2; }
  .bento-item.wide { grid-column: span 4; }
}
.bento-item {
  border-radius: var(--radius-lg); padding: 1.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.bento-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.bento-item.tint { background: linear-gradient(155deg, var(--primary-soft), var(--surface)); }
.bento-item.strong { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.bento-item.strong h3, .bento-item.strong p { color: var(--on-primary); }
.bento-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.85rem;
  display: grid; place-items: center; margin-bottom: 1.1rem;
  background: var(--primary-soft); color: var(--primary);
}
.bento-item.strong .bento-icon { background: hsla(0, 0%, 100%, 0.18); color: var(--on-primary); }
.bento-item h3 { font-size: 1.08rem; margin-bottom: 0.45rem; }
.bento-item p { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.6; }

/* ===== COMO FUNCIONA (linha do tempo) ===== */
.timeline { position: relative; display: flex; flex-direction: column; gap: 2.25rem; }
.timeline::before {
  content: ''; position: absolute; left: 1.4rem; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: var(--border);
}
.timeline-item { position: relative; display: flex; gap: 1.5rem; padding-left: 0; }
.timeline-num {
  position: relative; z-index: 1; flex-shrink: 0;
  width: 2.85rem; height: 2.85rem; border-radius: 50%;
  background: var(--primary); color: var(--on-primary);
  display: grid; place-items: center; font-family: 'Outfit', sans-serif; font-weight: 700;
}
.timeline-item h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.timeline-item p { color: var(--ink-soft); font-size: 0.95rem; line-height: 1.6; max-width: 34rem; }

/* ===== FAQ ===== */
.faq-panel {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item:last-child { border-bottom: none; }
.faq-trigger {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.3rem 1.75rem; text-align: left; font-weight: 600; font-size: 1rem; color: var(--ink);
}
.faq-trigger i { color: var(--primary); font-size: 1.2rem; transition: transform 0.3s var(--ease); flex-shrink: 0; }
.faq-item.open .faq-trigger i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-item.open .faq-answer { max-height: 20rem; }
.faq-answer p { padding: 0 1.75rem 1.4rem; color: var(--ink-soft); font-size: 0.95rem; line-height: 1.7; }

/* ===== CTA FINAL ===== */
.cta-block {
  background: linear-gradient(135deg, var(--primary), var(--primary-strong));
  border-radius: 1.75rem; padding: 3rem 2rem; text-align: center;
}
@media (min-width: 760px) { .cta-block { padding: 4.5rem 3rem; } }
.cta-block h2 { color: var(--on-primary); font-size: clamp(1.75rem, 3.6vw, 2.4rem); margin-bottom: 1.75rem; max-width: 34rem; margin-left: auto; margin-right: auto; }
.cta-note { color: hsla(0, 0%, 100%, 0.85); font-size: 0.9rem; margin-top: 1rem; }

/* ===== FOOTER ===== */
.footer { border-top: 1px solid var(--border); background: var(--surface); padding: 3.5rem 0 2rem; }
.footer-grid { display: flex; flex-direction: column; align-items: center; gap: 1.75rem; text-align: center; }
@media (min-width: 700px) { .footer-grid { flex-direction: row; justify-content: space-between; text-align: left; } }
.footer-brand { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 0.35rem; }
@media (min-width: 700px) { .footer-brand { justify-content: flex-start; } }
.footer-brand img { height: 2.75rem; }
.footer-col p { color: var(--ink-soft); font-size: 0.9rem; margin-top: 0.2rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem; font-size: 0.9rem; }
@media (min-width: 700px) { .footer-links { justify-content: flex-end; } }
.footer-links a { color: var(--ink-soft); transition: color 0.2s var(--ease); }
.footer-links a:hover { color: var(--primary); }
.footer-copy {
  margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  text-align: center; font-size: 0.85rem; color: var(--ink-soft);
}

/* ===== CTA FIXO MOBILE ===== */
.mobile-sticky-cta {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  background: hsla(150, 25%, 98%, 0.94); backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) { .mobile-sticky-cta { background: hsla(200, 26%, 8%, 0.94); } }
@media (max-width: 899px) { .mobile-sticky-cta { display: block; } }
body { padding-bottom: 0; }
@media (max-width: 899px) { body.has-sticky-cta { padding-bottom: 4.75rem; } }

/* ===== REVEAL ON SCROLL ===== */
.reveal {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ===== UTILITÁRIOS ===== */
.font-mono-accent { font-variant-numeric: tabular-nums; }
