/*
 * NexoSaúde — estilos das landing pages verticais (/psicologia, /tea-aba).
 * Compartilhado entre as duas páginas verticais para não duplicar CSS.
 * Tokens e componentes espelham o sistema de marca de index.html
 * (fonte canônica). Fontes self-hosted via /assets/css/fonts.css (LGPD).
 */

:root {
  --g:           #0F6E56;
  --gm:          #1D9E75;
  --gl:          #E1F5EE;
  --g-deep:      #085041;
  --g-whisper:   #F1F9F5;
  --amber:       #BA7517;
  --cream:       #FDFAF4;
  --ink:         #1F2A26;
  --muted:       #5F6B65;
  --muted-light: #8A948F;
  --surface:     #F7F6F1;
  --white:       #FFFFFF;
  --border:      rgba(15, 42, 32, 0.09);
  --border-soft: rgba(15, 42, 32, 0.05);
  --radius:      16px;
  --radius-lg:   26px;
  --shadow-soft: 0 1px 2px rgba(15,42,32,0.04), 0 10px 26px rgba(15,110,86,0.06);
  --shadow-med:  0 1px 2px rgba(15,42,32,0.04), 0 16px 36px rgba(15,110,86,0.1);
  --maxw:        1060px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1;
  background:
    radial-gradient(ellipse 60% 40% at 0% 0%, var(--g-whisper) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 15%, rgba(186,117,23,0.05) 0%, transparent 60%),
    var(--surface);
}

h1, h2, h3 { font-family: 'Lora', Georgia, serif; font-weight: 400; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.2vw, 3.2rem); line-height: 1.12; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); line-height: 1.22; margin-bottom: 0.8rem; }
h3 { font-size: 1.15rem; line-height: 1.35; margin-bottom: 0.4rem; font-weight: 600; font-family: 'DM Sans', sans-serif; color: var(--ink); }
p { color: var(--muted); margin-bottom: 0.8rem; }
a { color: var(--g); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--g-deep); text-decoration: underline; }
em { font-family: 'Lora', serif; font-style: italic; color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; }
.eyebrow { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 600; color: var(--gm); margin-bottom: 0.5rem; }
.lead-wide { max-width: 680px; }

/* ---- Nav ---- */
.nav { padding: 1.4rem 0; background: transparent; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.nav-logo { display: flex; align-items: center; gap: 12px; color: var(--g); }
.nav-logo svg { flex-shrink: 0; }
.nav-wordmark { font-size: 1.35rem; color: var(--g); letter-spacing: -0.3px; }
.nav-wordmark .nexo { font-family: 'DM Sans', sans-serif; font-weight: 600; }
.nav-wordmark .saude { font-family: 'Lora', serif; font-style: italic; }
.nav-cta {
  font-size: 0.85rem; padding: 0.6rem 1.2rem; border-radius: 999px;
  background: var(--white); border: 1px solid var(--border); color: var(--ink);
  font-weight: 500; transition: all 0.15s;
}
.nav-cta:hover { background: var(--g); color: var(--white); border-color: var(--g); text-decoration: none; }
.nav-back { font-size: 0.85rem; color: var(--muted); }
.nav-back:hover { color: var(--g); text-decoration: none; }

/* ---- Hero ---- */
.hero {
  background:
    radial-gradient(ellipse at 85% -10%, rgba(250,238,218,0.14) 0%, transparent 50%),
    linear-gradient(135deg, #0a5240 0%, #0F6E56 55%, #1a8a6a 100%);
  color: var(--white); border-radius: var(--radius-lg);
  padding: 3.4rem 2.6rem 3rem;
  margin: 1rem 0 3rem;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(15,110,86,0.35);
}
.hero::before {
  content: ''; position: absolute;
  width: 380px; height: 380px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,0.05);
  top: -120px; right: -90px; pointer-events: none; z-index: 1;
}
.hero::after {
  content: ''; position: absolute;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(250,238,218,0.18) 0%, transparent 70%);
  top: -40px; right: 50px; pointer-events: none; z-index: 1;
}
.hero-content { position: relative; z-index: 2; max-width: 700px; }
.hero-eyebrow { font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.72; margin-bottom: 0.9rem; font-weight: 500; }
.hero h1 { color: var(--white); margin-bottom: 1.2rem; }
.hero-lead { font-size: 1.05rem; opacity: 0.9; max-width: 580px; margin-bottom: 1.9rem; font-weight: 300; line-height: 1.6; color: var(--white); }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 0.85rem 1.6rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 500; cursor: pointer;
  transition: all 0.2s; border: 1px solid transparent; text-align: center; font-family: inherit;
}
.btn-primary { background: var(--white); color: var(--g); box-shadow: 0 1px 0 rgba(0,0,0,0.05); }
.btn-primary:hover { background: var(--gl); color: var(--g-deep); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.42); }
.btn-secondary:hover { background: rgba(255,255,255,0.08); text-decoration: none; color: var(--white); }

section { padding: 3rem 0; }
.section-tight { padding: 2rem 0; }

/* ---- Cards ---- */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1.8rem; }
.problem-card {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.problem-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-med); }
.problem-badge {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--gl);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--g);
}
.problem-card .pnum { font-family: 'Lora', serif; font-style: italic; font-size: 0.82rem; color: var(--gm); margin-bottom: 0.3rem; opacity: 0.85; }
.problem-card h3 { margin-bottom: 0.5rem; }
.problem-card p { font-size: 0.95rem; margin-bottom: 0; color: var(--muted); }

/* ---- Roadmap ---- */
.roadmap-wrap {
  background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius-lg);
  padding: 2.2rem 2rem 1.8rem; margin-top: 1.2rem;
  box-shadow: var(--shadow-soft);
  position: relative; overflow: hidden;
}
.roadmap-wrap::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--g) 0%, var(--gm) 100%);
}
.roadmap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 1.2rem; position: relative; }
.phase {
  padding: 1.3rem; border-radius: var(--radius); border: 1px solid var(--border-soft);
  background: var(--surface); position: relative;
}
.phase.active { border-color: var(--gm); background: var(--gl); }
.phase-label {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 600;
  color: var(--gm); margin-bottom: 0.6rem; display: inline-flex; align-items: center; gap: 8px;
}
.phase-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted-light); display: inline-block; }
.phase.active .phase-dot { background: var(--gm); box-shadow: 0 0 0 3px rgba(29,158,117,0.18); }
.phase h3 { font-size: 1rem; margin-bottom: 0.35rem; }
.phase p { font-size: 0.9rem; margin: 0; color: var(--muted); line-height: 1.55; }
.future-note { margin-top: 1.4rem; padding: 1rem 1.2rem; background: var(--cream); border-radius: var(--radius); border-left: 3px solid var(--amber); font-size: 0.9rem; color: var(--muted); }
.future-note strong { color: var(--ink); font-weight: 600; }

/* ---- Compliance ---- */
.compliance { background: var(--white); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.8rem 1.9rem; margin-top: 1rem; box-shadow: var(--shadow-soft); }
.compliance-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; align-items: start; }
.comp-item { display: flex; flex-direction: column; gap: 0.55rem; }
.comp-icon {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gl); color: var(--g);
  display: inline-flex; align-items: center; justify-content: center;
}
.comp-item h4 { font-size: 0.85rem; font-weight: 600; color: var(--ink); margin: 0; }
.comp-item p { font-size: 0.85rem; margin: 0; color: var(--muted); line-height: 1.55; }

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(ellipse at 100% 0%, rgba(29,158,117,0.3) 0%, transparent 40%),
    linear-gradient(135deg, #063d30 0%, #0a5441 50%, #0F6E56 110%);
  color: var(--white);
  border-radius: var(--radius-lg); padding: 2.6rem 2.4rem;
  margin-top: 1.4rem;
  position: relative; overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(15,110,86,0.4);
}
.cta-band::before {
  content: ''; position: absolute;
  width: 280px; height: 280px; border-radius: 50%;
  border: 50px solid rgba(255,255,255,0.04);
  top: -80px; right: -60px; pointer-events: none;
}
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color: var(--white); margin-bottom: 0.5rem; }
.cta-band p { color: rgba(255,255,255,0.86); max-width: 560px; margin-bottom: 1.5rem; }

/* ---- Footer ---- */
footer { background: var(--ink); color: rgba(255,255,255,0.78); padding: 3rem 0 1.8rem; margin-top: 3rem; position: relative; overflow: hidden; }
footer::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.18), transparent);
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 1.8rem; }
.footer-brand .nav-wordmark { color: var(--white); }
.footer-brand .footer-tagline { color: rgba(255,255,255,0.62); font-size: 0.9rem; margin-top: 0.8rem; max-width: 340px; font-style: italic; font-family: 'Lora', serif; line-height: 1.5; }
.footer-col h4 { font-family: 'DM Sans', sans-serif; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.5); margin-bottom: 0.9rem; }
.footer-col a { display: block; color: rgba(255,255,255,0.78); font-size: 0.9rem; padding: 0.28rem 0; transition: color 0.15s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-legal { padding-top: 1.4rem; border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.78rem; color: rgba(255,255,255,0.5); display: flex; flex-wrap: wrap; gap: 1.2rem; justify-content: space-between; }

/* ---- Responsive ---- */
@media (max-width: 720px) {
  .hero { padding: 2.4rem 1.7rem 2.2rem; }
  .problem-grid, .roadmap-grid, .compliance-row, .footer-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 1.9rem 1.6rem; }
  .nav-cta { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .problem-card:hover { transform: none; }
}
