/* ============================================================
   NoSeuTempo — Design System (styles.css)
   ------------------------------------------------------------
   Decisões de UX para neurodivergentes:
   - SEM branco puro (#FFF). Fundos creme/off-white reduzem o
     "glare" (estouro de luz) que cansa a vista na dislexia.
   - Azul Marinho para texto = alto contraste SEM ser preto duro
     sobre branco (mais confortável para leitura prolongada).
   - line-height alto + letter-spacing generoso = letras menos
     "amontoadas", reduz a troca/embaralhamento de letras.
   - Cards espaçados em vez de paredes de texto = menos carga
     cognitiva, foco em uma coisa por vez (ajuda no TDAH).
   ============================================================ */

/* ---------- Tokens de cor e tipografia ---------- */
:root {
  /* Fundos confortáveis (anti-faro) */
  --bg:            #FDFBF7;  /* off-white creme, fundo principal */
  --bg-warm:       #FBF1E9;  /* creme/pele para seções alternadas */
  --bg-card:       #FFFDFA;  /* card levemente acima do fundo (nunca #fff puro) */
  --bg-peach:      #F8E7DC;  /* destaque quente da hero */

  /* Marca */
  --navy:          #1B2A4A;  /* azul marinho profundo — texto/CTAs */
  --navy-deep:     #14203A;  /* hover de botões */
  --navy-soft:     #34406A;  /* tom intermediário (barras/gradientes) */
  --navy-muted:    #5B6478;  /* texto secundário */

  --blush:         #E98B82;  /* rosa blush — acentos e corações */
  --blush-soft:    #FBE0DB;  /* fundo suave de ícones/badges */
  --blush-strong:  #Df6f66;

  /* Estados / feedback */
  --success:       #4F9D7E;
  --success-soft:  #E3F1EA;
  --line:          #ECE2D6;  /* bordas/divisórias discretas */

  /* Tipografia */
  --font-base: 'Lexend', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-dys:  'OpenDyslexic', var(--font-base); /* aplicada via .dyslexic */

  /* Ritmo / espaçamento (escala generosa) */
  --radius:    18px;
  --radius-lg: 28px;
  --shadow:    0 10px 30px rgba(27, 42, 74, 0.07);
  --shadow-sm: 0 4px 14px rgba(27, 42, 74, 0.06);
  --maxw: 1180px;

  /* Leitura confortável */
  --leading: 1.75;     /* line-height alto */
  --tracking: 0.015em; /* letter-spacing leve */
}

/* ---------- Reset enxuto ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-base);
  background: var(--bg);
  color: var(--navy);
  line-height: var(--leading);
  letter-spacing: var(--tracking);
  -webkit-font-smoothing: antialiased;
  font-size: 17px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* Fonte OpenDyslexic (toggle no rodapé) aplicada ao <html>/<body>.
   Mantém o peso forte e o "ancoramento" inferior das letras. */
body.dyslexic, body.dyslexic * {
  font-family: var(--font-dys) !important;
  letter-spacing: 0.03em;
  word-spacing: 0.08em;
}

/* Acessibilidade: foco sempre visível e nítido (navegação por teclado) */
:focus-visible {
  outline: 3px solid var(--blush);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Quem prefere menos animação (vestibular/TDAH) não recebe movimento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto; }
}

/* ---------- Utilidades de layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding: 72px 0; }
.section--warm { background: var(--bg-warm); }
.text-center { text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--line);
  color: var(--navy); font-weight: 600; font-size: .92rem;
  padding: 8px 16px; border-radius: 999px; box-shadow: var(--shadow-sm);
}
.accent { color: var(--blush-strong); }
.heart { color: var(--blush); }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; font-weight: 700; margin: 0; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.lead { color: var(--navy-muted); font-size: 1.1rem; max-width: 60ch; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 14px; font-weight: 700; font-size: 1rem;
  border: 2px solid transparent; transition: transform .15s ease, background .2s ease, box-shadow .2s ease;
  min-height: 52px; /* alvo de toque grande = motor/atenção */
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.btn--primary:hover { background: var(--navy-deep); }
.btn--ghost { background: var(--bg-card); color: var(--navy); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--navy); }
.btn--blush { background: var(--blush); color: #fff; }
.btn--blush:hover { background: var(--blush-strong); }
.btn--block { width: 100%; }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(253, 251, 247, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; color: var(--navy); }
.brand b { color: var(--blush); font-weight: 800; }
.brand .logo-mark { flex: none; }

.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; color: var(--navy-muted); padding: 6px 2px; border-bottom: 2px solid transparent; }
.nav-links a:hover, .nav-links a.active { color: var(--navy); border-color: var(--blush); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; color: var(--navy); }

@media (max-width: 920px) {
  .nav-links, .nav-actions .btn--ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-links.open {
    display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0;
    background: var(--bg-card); padding: 18px 24px; gap: 14px; border-bottom: 1px solid var(--line);
  }
}

/* ============================================================
   HERO
   ============================================================ */
.hero { background: linear-gradient(180deg, var(--bg-peach) 0%, var(--bg-warm) 100%); padding: 56px 0 0; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { margin: 18px 0; }
.hero h1 u { text-decoration: none; color: var(--blush-strong); border-bottom: 6px solid var(--blush); padding-bottom: 2px; }
.hero .lead { margin-bottom: 26px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 18px 26px; margin: 22px 0 30px; }
.hero-pills span { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--navy); }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.hero-photo { position: relative; }
.hero-photo .photo-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  background: var(--blush-soft); aspect-ratio: 4 / 3.4;
  display: grid; place-items: center; color: var(--navy-muted); text-align: center; padding: 24px;
}
.hero-photo .photo-frame img { width: 100%; height: 100%; object-fit: cover; }
.sticky-note {
  position: absolute; top: 18px; right: -10px; max-width: 210px;
  background: #FFF7F5; border: 1px solid var(--blush-soft); border-radius: 16px;
  padding: 16px 18px; box-shadow: var(--shadow); transform: rotate(2deg);
  font-size: .98rem; color: var(--navy); line-height: 1.55;
}
.sticky-note .badge-heart {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  width: 34px; height: 34px; border-radius: 50%; background: var(--blush);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}

/* Faixa de benefícios sob a hero */
.hero-strip { background: var(--bg-card); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  margin: 40px 0 -56px; transform: translateY(40px); padding: 26px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.strip-item { display: flex; gap: 14px; align-items: flex-start; }
.strip-item .ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--blush-soft);
  display: grid; place-items: center; color: var(--blush-strong); }
.strip-item p { margin: 0; font-weight: 600; font-size: .98rem; }
.spacer-strip { height: 64px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hero-strip { grid-template-columns: 1fr; }
}

/* ============================================================
   "PARA QUEM É" — cards de público
   ============================================================ */
.audience-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; margin-top: 40px; }
.audience-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--shadow-sm); }
.audience-card .ic { flex: none; font-size: 1.6rem; }
.audience-card p { margin: 0; font-weight: 600; }
@media (max-width: 1000px) { .audience-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .audience-grid { grid-template-columns: 1fr; } }

/* ============================================================
   SEÇÃO "COMO FUNCIONA" / ATIVIDADES
   ============================================================ */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.activity-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.activity-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.activity-card .ic { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  font-size: 1.7rem; margin-bottom: 16px; }
.ic--blue { background: #E7EDF8; }
.ic--blush { background: var(--blush-soft); }
.ic--green { background: var(--success-soft); }
.activity-card h3 { margin-bottom: 8px; }
.activity-card p { color: var(--navy-muted); margin: 0 0 16px; }
.tag { display: inline-block; font-size: .82rem; font-weight: 700; padding: 5px 12px; border-radius: 999px;
  background: var(--blush-soft); color: var(--blush-strong); }
@media (max-width: 880px) { .cards-3 { grid-template-columns: 1fr; } }

/* ============================================================
   PLANOS
   ============================================================ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; align-items: stretch; }
.plan { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px; display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.plan--featured { border: 2px solid var(--navy); box-shadow: var(--shadow); position: relative; }
.plan--featured::before { content: "Mais escolhido 💙"; position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%); background: var(--navy); color: #fff; font-size: .8rem; font-weight: 700;
  padding: 6px 16px; border-radius: 999px; white-space: nowrap; }
.plan h3 { font-size: 1.25rem; }
.plan .price { font-size: 2.4rem; font-weight: 800; margin: 10px 0 4px; }
.plan .price small { font-size: 1rem; color: var(--navy-muted); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 12px; }
.plan ul li { display: flex; gap: 10px; align-items: flex-start; color: var(--navy-muted); }
.plan ul li::before { content: "✓"; color: var(--success); font-weight: 800; }
.plan .btn { margin-top: auto; }
@media (max-width: 880px) { .plans { grid-template-columns: 1fr; } }

/* ============================================================
   DEPOIMENTOS
   ============================================================ */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.quote { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); }
.quote p { font-style: italic; color: var(--navy); }
.quote .who { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-weight: 700; }
.avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--blush-soft); color: var(--blush-strong);
  display: grid; place-items: center; font-weight: 800; }
@media (max-width: 880px) { .testimonials { grid-template-columns: 1fr; } }

/* ============================================================
   FOOTER + seletor de fonte
   ============================================================ */
.site-footer { background: var(--navy); color: #DfE4Ef; padding: 56px 0 28px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; margin: 0 0 14px; }
.site-footer a { color: #C7CFDE; display: block; padding: 5px 0; }
.site-footer a:hover { color: #fff; }
.footer-brand .brand { color: #fff; }
.footer-brand .brand b { color: var(--blush); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 22px;
  display: flex; justify-content: space-between; gap: 18px; flex-wrap: wrap; align-items: center; color: #AEB7C7; }

/* Toggle de fonte acessível (discreto, como pedido) */
.font-switch { display: inline-flex; align-items: center; gap: 10px; background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 8px 14px; }
.font-switch label { font-size: .9rem; color: #C7CFDE; }
.switch { position: relative; width: 46px; height: 26px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .track { position: absolute; inset: 0; background: rgba(255,255,255,.25); border-radius: 999px; transition: .2s; }
.switch .track::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px;
  background: #fff; border-radius: 50%; transition: .2s; }
.switch input:checked + .track { background: var(--blush); }
.switch input:checked + .track::before { transform: translateX(20px); }

@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
