/* PCD Hub — Page-specific styles */

/* ===== HOME ===== */
.home-hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.elos-mockup {
  background: var(--pcd-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
  padding: var(--space-6);
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--color-navy-alpha-08);
}

.elos-mockup-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-5);
}

.elos-mockup-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pcd-navy);
}

.elos-tscore {
  font-family: var(--font-mono);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--color-teal-dark);
  text-align: center;
  padding: var(--space-4);
  background: rgba(0,165,207,.06);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

.elos-tscore-label {
  font-size: var(--text-xs);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-2);
}

.elos-progress-bar {
  height: 8px;
  background: var(--pcd-snow);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: var(--space-4);
}

.elos-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: var(--gradient-teal);
  transition: width var(--transition-slow);
}

.elos-goals { display: flex; flex-direction: column; gap: var(--space-3); }

.elos-goal {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--pcd-off-white);
  border-radius: var(--radius-lg);
  font-size: var(--text-xs);
}

.elos-goal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.elos-goal-text  { flex: 1; color: var(--pcd-navy); font-weight: 500; }
.elos-goal-level { font-family: var(--font-mono); color: var(--color-teal-dark); font-weight: 700; }

/* Problem section */
.problem-number {
  font-family: var(--font-display);
  font-size: clamp(var(--text-4xl), 5vw, var(--text-6xl));
  font-weight: 700;
  color: var(--pcd-cyan);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.problem-label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-muted-dark);
  line-height: var(--leading-snug);
}

/* Three doors */
.door-card {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  /* min touch target mobile */
  min-height: 48px;
}

.door-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--pcd-cyan); }

.door-emoji { font-size: 2rem; margin-bottom: var(--space-4); }

.door-title { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 700; color: var(--pcd-navy); margin-bottom: var(--space-3); }

.door-desc { font-size: var(--text-base); color: var(--color-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-4); max-width: none; }

.door-link { font-size: var(--text-sm); font-weight: 600; color: var(--pcd-cyan); display: flex; align-items: center; gap: var(--space-2); }

/* ===== MÉTODO ELOS ===== */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: var(--space-6);
}

.module-card {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  overflow: hidden;
}

.module-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-signature);
}

.module-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-3);
  letter-spacing: 0.04em;
}

.module-name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--pcd-navy); margin-bottom: var(--space-2); }

.module-frameworks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.framework-chip {
  font-size: var(--text-xs);
  font-weight: 600;
  font-family: var(--font-mono);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(0,165,207,.12);
  color: var(--color-teal-dark);
}

.module-desc { font-size: var(--text-sm); color: var(--color-muted); line-height: var(--leading-relaxed); }

/* T-score calculator */
.tscore-calculator {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-xl);
}

.tscore-result {
  text-align: center;
  padding: var(--space-6);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  background: var(--pcd-off-white);
  transition: background var(--transition-base);
}

.tscore-value {
  font-family: var(--font-mono);
  font-size: var(--text-6xl);
  font-weight: 700;
  color: var(--pcd-navy);
  line-height: 1;
  display: block;
}

.tscore-band {
  font-size: var(--text-sm);
  font-weight: 600;
  margin-top: var(--space-2);
  display: block;
}

.tscore-bands { display: flex; flex-direction: column; gap: var(--space-2); margin-bottom: var(--space-6); }

.tscore-band-row {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
}

.tscore-band-row.active { background: var(--pcd-off-white); }
.band-indicator { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.band-range { font-family: var(--font-mono); font-weight: 600; color: var(--color-muted-dark); min-width: 60px; }
.band-label { color: var(--pcd-navy); font-weight: 600; }

.goal-inputs { display: flex; flex-direction: column; gap: var(--space-3); margin-bottom: var(--space-4); }

.goal-input-row {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: var(--space-2);
  align-items: center;
  font-size: var(--text-sm);
}

/* Mobile: empilha no calculador */
@media (max-width: 600px) {
  .goal-input-row {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2);
  }
  .goal-input-row label { grid-column: 1 / -1; }
}

.goal-input-row label { font-size: var(--text-xs); color: var(--color-muted); font-weight: 600; white-space: nowrap; }

.goal-input-row select, .goal-input-row input {
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--color-navy-alpha-12);
  border-radius: var(--radius-md);
  font-size: var(--text-xs);
  font-family: var(--font-mono);
  color: var(--pcd-navy);
  background: var(--pcd-white);
}

/* Comparison table */
.comparison-highlight { background: rgba(0,165,207,.06); }
.comparison-header { background: var(--gradient-signature) !important; }

/* ===== CURADORIA ===== */
.curation-portal-card {
  display: block;
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  text-align: center;
}

.curation-portal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-xl); border-color: var(--pcd-cyan); }

.portal-emoji { font-size: 3rem; margin-bottom: var(--space-5); display: block; }
.portal-title { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--pcd-navy); margin-bottom: var(--space-3); }
.portal-desc { color: var(--color-muted); line-height: var(--leading-relaxed); margin-bottom: var(--space-5); max-width: 36ch; margin-inline: auto; }

/* ===== AMPARA ===== */

/* ── Hero Ampara ────────────────────────────────────────────── */
.hero--ampara {
  background: var(--gradient-signature);
  color: white;
  padding: var(--space-20) var(--container-px);
  text-align: center;
  min-height: auto;
  align-items: flex-start;
}

.hero--ampara-inner {
  max-width: 680px;
  margin-inline: auto;
}

.eyebrow--light {
  color: var(--color-teal-light);
}

.hero-sub--light {
  color: rgba(255, 255, 255, .82);
  max-width: 56ch;
  margin-inline: auto;
}

.hero--ampara .hero-title {
  color: white;
  margin-top: var(--space-3);
  margin-bottom: var(--space-5);
}

.hero-actions--center {
  justify-content: center;
}

.btn--white {
  background: white;
  color: var(--color-navy);
  border: 2px solid white;
}
.btn--white:hover { background: var(--color-teal-light); border-color: var(--color-teal-light); }

.btn--ghost-white {
  background: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, .55);
}
.btn--ghost-white:hover { border-color: white; background: rgba(255, 255, 255, .08); }

/* ── Chat Section ─────────────────────────────────────────────── */
.section--chat { padding-top: var(--space-12); padding-bottom: var(--space-16); }

.container--chat { max-width: 900px; }

.chat-section-intro {
  text-align: center;
  margin-bottom: var(--space-6);
}

/* ── Chat Container ───────────────────────────────────────────── */
.chat-embed-container {
  background: var(--pcd-off-white);
  border-radius: var(--radius-2xl);
  overflow: hidden;
  height: 600px;
  box-shadow: var(--shadow-xl), 0 0 0 1px var(--color-navy-alpha-06);
  display: flex;
  flex-direction: column;
  position: relative;
}

@media (max-width: 640px) {
  .chat-embed-container { height: auto; min-height: 480px; max-height: 75vh; }
}

.chat-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: var(--space-8);
  color: var(--color-muted);
  font-size: var(--text-sm);
}


/* ── Scroll-reveal (.sr → .sr-in) ───────────────────────────────── */

.sr {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity .55s cubic-bezier(.22,.68,0,1.2),
    transform .55s cubic-bezier(.22,.68,0,1.2);
  will-change: opacity, transform;
}

.sr.sr-in {
  opacity: 1;
  transform: none;
}

.sr.slide-left  { transform: translateX(28px); }
.sr.slide-right { transform: translateX(-28px); }
.sr.scale-in    { transform: scale(.94); }

/* Stagger delays for sibling groups */
.sr:nth-child(1)  { transition-delay:   0ms; }
.sr:nth-child(2)  { transition-delay:  80ms; }
.sr:nth-child(3)  { transition-delay: 160ms; }
.sr:nth-child(4)  { transition-delay: 240ms; }
.sr:nth-child(5)  { transition-delay: 320ms; }
.sr:nth-child(6)  { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .sr { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ── Ampara Chat ─────────────────────────────────────────────────── */

.chat-window {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* Header */
.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #0A1047;
  border-bottom: 1px solid rgba(255,255,255,.08);
  flex-shrink: 0;
}

.chat-header-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(0,165,207,.2);
  color: #A8D5E2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-family: 'Atkinson Hyperlegible', sans-serif;
  font-size: 1rem;
  flex-shrink: 0;
  user-select: none;
}

.chat-header-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.chat-header-name {
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
}

.chat-header-status {
  font-size: 0.72rem;
  color: rgba(255,255,255,.6);
}

.chat-close-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: rgba(255,255,255,.7);
  font-size: 1.3rem;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-close-btn:hover { color: #fff; }
.chat-close-btn:focus-visible { outline: 2px solid rgba(0,165,207,.8); outline-offset: 2px; border-radius: 4px; }

/* Messages */
.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.chat-messages::-webkit-scrollbar { width: 5px; }
.chat-messages::-webkit-scrollbar-track { background: transparent; }
.chat-messages::-webkit-scrollbar-thumb { background: rgba(10,16,71,.12); border-radius: 4px; }

.chat-bubble {
  max-width: 90%;
  font-size: 0.9rem;
  line-height: 1.65;
  border-radius: 14px;
  padding: 14px 16px;
  word-wrap: break-word;
}

.chat-bubble--bot {
  background: #fff;
  border: 1px solid #F0F2F5;
  color: #3A3D5C;
  align-self: flex-start;
}

.chat-bubble--user {
  background: #0A1047;
  color: #fff;
  align-self: flex-end;
}

.chat-bubble--error { border-left: 3px solid #ef4444; }

.chat-bubble--typing {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #F0F2F5;
  align-self: flex-start;
  border-radius: 14px;
}

.chat-typing-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(10,16,71,.3);
  animation: typingBounce 1.2s infinite ease-in-out;
}

.chat-typing-dot:nth-child(2) { animation-delay: .2s; }
.chat-typing-dot:nth-child(3) { animation-delay: .4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* Rich text inside bubbles */
.chat-bubble p { margin: 0; }
.chat-bubble p + p, .chat-bubble p + ul { margin-top: 8px; }
.chat-bubble ul { padding-left: 20px; margin: 8px 0 0; }
.chat-bubble li { margin-bottom: 2px; }
.chat-bubble strong { font-weight: 700; }
.chat-bubble a { color: #00A5CF; text-decoration: underline; }
.chat-bubble--user a { color: #A8D5E2; }
.chat-bubble--error a { color: #00A5CF; }

/* Input area */
.chat-input-area {
  padding: 16px 18px;
  border-top: 1px solid #F0F2F5;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex-shrink: 0;
}

/* Suggestion chips — vertical stack per spec */
.chat-chips {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-chip {
  font-family: inherit;
  text-align: left;
  font-size: 0.9rem;
  background: #fff;
  border: 1px solid #F0F2F5;
  border-radius: 12px;
  padding: 13px 16px;
  color: #0A1047;
  cursor: pointer;
  min-height: 44px;
  transition: border-color .15s;
  line-height: 1.4;
}

.chat-chip:hover { border-color: #00A5CF; }
.chat-chip:focus-visible { outline: 2px solid #00A5CF; outline-offset: 2px; border-radius: 12px; }

/* Pill-shaped input per spec */
.chat-form { margin: 0; }

.chat-input-pill {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1.5px solid #D7DCE3;
  border-radius: 999px;
  padding: 6px 6px 6px 16px;
  transition: border-color .15s;
  background: #fff;
}

.chat-input-pill:focus-within { border-color: #00A5CF; }

.chat-textarea {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  background: transparent;
  color: #0A1047;
  resize: none;
  min-height: 20px;
  max-height: 120px;
  line-height: 1.5;
  padding: 0;
}

.chat-textarea::placeholder { color: #94A3B8; }

.chat-send-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #0A1047;
  color: #fff;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  transition: background .15s;
  line-height: 1;
}

.chat-send-btn:hover:not(:disabled) { background: #00A5CF; }
.chat-send-btn:disabled { opacity: .45; cursor: not-allowed; }
.chat-send-btn:focus-visible { outline: 2px solid #00A5CF; outline-offset: 2px; }

.chat-legal-note {
  margin: 0;
  font-size: 0.72rem;
  color: #94A3B8;
  text-align: center;
  line-height: 1.4;
}

/* Consent screen */
.chat-consent {
  position: absolute;
  inset: 0;
  background: rgba(253,251,247,.97);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px;
  text-align: center;
}

.chat-consent p {
  font-size: 0.88rem;
  line-height: 1.65;
  color: #3A3D5C;
  max-width: 36ch;
  margin: 0;
}

.chat-consent a { color: #00A5CF; text-decoration: underline; }

.chat-consent-avatar {
  width: 56px;
  height: 56px;
  background: #0A1047;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  margin: 0 auto;
}

/* Cards grid (structured responses) */
.chat-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 8px;
  margin-top: 8px;
}

@media (max-width: 480px) {
  .chat-cards-grid { grid-template-columns: 1fr; }
}

.chat-card {
  background: #FDFBF7;
  border: 1px solid rgba(10,16,71,.08);
  border-radius: 12px;
  padding: 12px;
}

.chat-card-title {
  font-weight: 700;
  font-size: 0.75rem;
  color: #007A9B;
  margin-bottom: 4px;
  line-height: 1.3;
}

.chat-card-body {
  font-size: 0.75rem;
  line-height: 1.625;
  color: #0A1047;
}

.chat-card-body p { margin: 0; }
.chat-card-body ul { padding-left: 16px; margin: 4px 0 0; }
.chat-card-body li { margin-bottom: 1px; }

/* CNES results */
.cnes-results-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}

.cnes-card {
  background: #FDFBF7;
  border: 1px solid #F0F2F5;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.85rem;
}

.cnes-card-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #00A5CF;
  background: rgba(0,165,207,.08);
  border-radius: 999px;
  padding: 2px 8px;
  margin-bottom: 6px;
}

.cnes-card-sus {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 999px;
  padding: 2px 8px;
  margin: 0 4px 6px;
}

.cnes-card-sus--yes { background: rgba(74,222,128,.15); color: #166534; }
.cnes-card-sus--no  { background: rgba(248,113,113,.12); color: #991b1b; }

.cnes-card-name {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0A1047;
  margin-bottom: 6px;
}

.cnes-card-meta {
  color: #64748b;
  font-size: 0.82rem;
  line-height: 1.5;
}

.cnes-card-local + .cnes-card-local {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid #F0F2F5;
}

.cnes-footer-note {
  font-size: 0.75rem;
  color: #94A3B8;
  margin-top: 8px;
  line-height: 1.5;
}

.cnes-footer-note a { color: #00A5CF; }

/* Location prompt */
.chat-location-prompt { margin-top: 8px; }

.chat-location-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.chat-location-cep {
  flex: 1;
  min-width: 100px;
  border: 1px solid rgba(10,16,71,.12);
  border-radius: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
  font-family: inherit;
  background: #FDFBF7;
  color: #0A1047;
}

.chat-location-cep:focus { outline: none; border-color: #00A5CF; }

@media (prefers-reduced-motion: reduce) {
  .chat-typing-dot { animation: none; opacity: .5; }
}

/* ── Card step variant ─────────────────────────────────────────────── */
.card--step {
  position: relative;
  padding-top: var(--space-10);
}

.card-step-number {
  position: absolute;
  top: var(--space-6);
  left: var(--space-6);
  font-family: var(--font-mono);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-teal);
  line-height: 1;
  opacity: .22;
}


/* ===== IMPACTO ===== */
.impact-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (max-width: 767px) {
  .impact-diagram {
    grid-template-columns: 1fr;
  }
  .impact-arrow { flex-direction: row; }
}

.impact-col {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  text-align: center;
}

.impact-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--pcd-cyan);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.anglogold-badge {
  background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
  color: #d4af37;
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  letter-spacing: 0.03em;
}

/* ===== SOBRE ===== */
.founder-card {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  display: flex;
  gap: var(--space-8);
  align-items: flex-start;
  flex-wrap: wrap;
}

.founder-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--gradient-signature);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.founder-info { flex: 1; min-width: 200px; }
.founder-name { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 700; color: var(--pcd-navy); }
.founder-role { font-size: var(--text-sm); font-weight: 600; color: var(--pcd-cyan); margin-top: var(--space-1); margin-bottom: var(--space-4); }
.founder-bio { color: var(--color-muted); line-height: var(--leading-relaxed); font-size: var(--text-base); }

/* ===== BLOG POST ===== */
.post-header { padding-top: calc(64px + var(--space-16)); padding-bottom: var(--space-12); background: var(--pcd-off-white); }
.post-body { max-width: 72ch; margin-inline: auto; padding: var(--space-12) var(--container-px); }
.post-body h2 { font-size: var(--text-2xl); margin-top: var(--space-10); margin-bottom: var(--space-4); color: var(--pcd-navy); }
.post-body h3 { font-size: var(--text-xl); margin-top: var(--space-8); margin-bottom: var(--space-3); color: var(--pcd-navy); }
.post-body p { color: var(--color-muted-dark); margin-bottom: var(--space-5); max-width: none; font-size: var(--text-base); line-height: var(--leading-relaxed); }
.post-body ul, .post-body ol { padding-left: var(--space-6); margin-bottom: var(--space-5); }
.post-body li { color: var(--color-muted-dark); margin-bottom: var(--space-2); list-style: disc; line-height: var(--leading-relaxed); }
.post-body blockquote { border-left: 4px solid var(--pcd-cyan); padding-left: var(--space-6); margin-block: var(--space-8); color: var(--pcd-navy); font-size: var(--text-lg); font-style: italic; font-family: var(--font-display); }
.post-cta-box { background: var(--gradient-signature); border-radius: var(--radius-xl); padding: var(--space-8); text-align: center; color: white; margin-top: var(--space-10); }

/* ===== IMPRENSA ===== */
.download-card {
  background: var(--pcd-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-4);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.download-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

.download-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--pcd-off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--pcd-navy);
}

.boilerplate-box {
  background: var(--pcd-off-white);
  border: 1px solid var(--color-navy-alpha-08);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  position: relative;
  font-size: var(--text-base);
  line-height: var(--leading-relaxed);
  color: var(--color-muted-dark);
}

.boilerplate-copy-btn {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
}

/* ===== OFFSET HEADER FIXO ===== */
main { padding-top: 0; }
.page-start { padding-top: 64px; }

/* ===== MOBILE — ajustes globais ===== */
@media (max-width: 767px) {
  /* Touch targets mínimos 48px */
  .btn { min-height: 48px; }
  .nav-drawer-link { min-height: 48px; display: flex; align-items: center; }

  /* Sem overflow horizontal */
  .grid-2, .grid-3, .grid-4 { gap: var(--space-4); }

  /* Hero padding mobile */
  .hero { padding-top: calc(64px + var(--space-10)); padding-bottom: var(--space-10); min-height: auto; }
  .hero--compact { padding-top: calc(64px + var(--space-8)); }

  /* Section spacing reduzido em mobile */
  .section { padding-block: var(--space-12); }
  .section--lg { padding-block: var(--space-16); }

  /* Formulário — coluna única */
  .form-grid-2 { grid-template-columns: 1fr; }

  /* Founder card */
  .founder-card { padding: var(--space-6); gap: var(--space-5); }
  .founder-avatar { width: 80px; height: 80px; font-size: var(--text-2xl); }

  /* Rodapé — colapsa de 4 colunas para 2, marca ocupa a linha inteira */
  .footer-grid { grid-template-columns: repeat(2, 1fr) !important; gap: var(--space-8) var(--space-5) !important; }
  .footer-grid > *:first-child { grid-column: 1 / -1; }

  /* Espaço para a barra final do rodapé não ficar atrás do botão fixo da Ampara */
  footer > div:last-child { padding-bottom: 84px !important; }
}

@media (max-width: 480px) {
  /* Rodapé — coluna única em telas muito estreitas */
  .footer-grid { grid-template-columns: 1fr !important; }
}

/* ===== CROSS-BROWSER ===== */
/* -webkit- prefixes para backdrop-filter (Safari < 15) */
.site-header.scrolled {
  -webkit-backdrop-filter: blur(12px);
}

/* Fallback para aspect-ratio (Safari < 15) */
@supports not (aspect-ratio: 16/9) {
  .blog-card-image { padding-bottom: 56.25%; position: relative; height: 0; }
  .blog-card-image > * { position: absolute; inset: 0; }
  .product-image { padding-bottom: 75%; position: relative; height: 0; }
  .product-image > * { position: absolute; inset: 0; }
}

/* Fallback para gap em flex (iOS 14-) */
@supports not (gap: 1rem) {
  .hero-actions > * + * { margin-left: var(--space-4); }
  .footer-social > * + * { margin-left: var(--space-3); }
}

/* ===== LOGOS DE PARCEIROS — grade em parceiros.html e imprensa.html ===== */
.partner-logo-tile {
  transition: transform var(--motion-fast) var(--ease-out),
              box-shadow var(--motion-fast) var(--ease-out),
              border-color var(--motion-fast) var(--ease-out);
}
.partner-logo-tile:hover, .partner-logo-tile:focus-within {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(10,16,71,.10);
  border-color: rgba(0,165,207,.35);
}
@media (prefers-reduced-motion: reduce) {
  .partner-logo-tile:hover, .partner-logo-tile:focus-within { transform: none; }
}


/* ===== CATALOG DINÂMICO ===== */

/* Category nav */
.catalog-cat-nav {
  position: sticky;
  top: 64px;
  z-index: 40;
  background: rgba(253,251,247,.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(10,16,71,.07);
  padding: var(--space-3) 0;
  margin-bottom: var(--space-6);
}

.catalog-cat-nav-inner {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.cat-btn {
  display: inline-flex;
  align-items: center;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-display);
  border: 1.5px solid rgba(10,16,71,.12);
  background: var(--pcd-white);
  color: var(--pcd-navy);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .15s ease;
  white-space: nowrap;
}

.cat-btn:hover  { border-color: var(--pcd-navy); transform: translateY(-1px); }
.cat-btn.active {
  background: var(--pcd-navy);
  color: #fff;
  border-color: var(--pcd-navy);
}

.cat-btn--sky.active     { background: #1a6a80; border-color: #1a6a80; }
.cat-btn--sage.active    { background: #3a6b34; border-color: #3a6b34; }
.cat-btn--lavender.active { background: #4a3a6b; border-color: #4a3a6b; }

/* Sub nav */
.catalog-sub-nav {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.sub-btn {
  padding: var(--space-1) var(--space-3);
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  border: 1px solid rgba(10,16,71,.1);
  background: transparent;
  color: var(--color-muted-dark);
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.sub-btn:hover  { border-color: var(--pcd-navy); color: var(--pcd-navy); }
.sub-btn.active { background: rgba(10,16,71,.08); border-color: var(--pcd-navy); color: var(--pcd-navy); font-weight: 700; }

/* Search bar */
.catalog-search-bar {
  margin-bottom: var(--space-6);
}

.catalog-search-inner {
  position: relative;
  display: flex;
  align-items: center;
}

.catalog-search-inner svg {
  position: absolute;
  left: var(--space-4);
  color: var(--color-muted);
  pointer-events: none;
}

.catalog-search-input {
  width: 100%;
  padding: var(--space-3) var(--space-4) var(--space-3) calc(var(--space-4) + 24px);
  font-family: var(--font-body);
  font-size: var(--text-base);
  border: 1.5px solid rgba(10,16,71,.12);
  border-radius: var(--radius-xl);
  background: var(--pcd-white);
  color: var(--pcd-navy);
  transition: border-color .2s ease, box-shadow .2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search-input:focus {
  outline: none;
  border-color: var(--pcd-cyan);
  box-shadow: 0 0 0 3px rgba(0,165,207,.15);
}

.catalog-search-input::placeholder { color: var(--color-muted-light); }

/* Result count */
.catalog-count {
  font-size: var(--text-sm);
  color: var(--color-muted);
  margin-bottom: var(--space-5);
  font-weight: 500;
}

/* Product grid */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
}

@media (max-width: 1023px) { .catalog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 639px)  { .catalog-grid { grid-template-columns: 1fr; } }

/* Product card */
.product-card {
  background: var(--pcd-white);
  border: 1px solid rgba(10,16,71,.07);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .25s cubic-bezier(.22,.68,0,1.2), box-shadow .25s ease, border-color .25s ease;
  animation: fadeUp .5s cubic-bezier(.22,.68,0,1.2) both;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 48px rgba(10,16,71,.1);
  border-color: rgba(10,16,71,.12);
}

.product-card--book { border-top: 3px solid var(--pcd-navy); }

/* Product image */
.product-img {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.product-img-emoji {
  font-size: 4rem;
  line-height: 1;
  user-select: none;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
}

/* Featured badge */
.product-featured-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  background: var(--pcd-orange);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* Carousel */
.product-img { padding: 0; overflow: hidden; }

.product-img-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  outline-offset: -3px;
}

.carousel-track {
  display: flex;
  height: 100%;
  transition: transform .35s cubic-bezier(.22,.68,0,1.2);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.carousel-slide {
  flex: 0 0 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--pcd-snow);
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(10,16,71,.55);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .15s;
}
.carousel-arrow:hover { background: rgba(10,16,71,.85); }
.carousel-arrow--prev { left: var(--space-2); }
.carousel-arrow--next { right: var(--space-2); }

.carousel-dots {
  position: absolute;
  bottom: var(--space-2);
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.55);
  padding: 0;
  cursor: pointer;
}
.carousel-dot[aria-current="true"] { background: #fff; }

/* Badges */
.product-meta {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  padding: var(--space-4) var(--space-5) 0;
}

.product-cat-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: .04em;
}

.product-sub-badge {
  font-size: .7rem;
  color: var(--color-muted);
  padding: 3px 8px;
  background: rgba(10,16,71,.05);
  border-radius: var(--radius-full);
}

/* Content */
.product-content {
  padding: var(--space-4) var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.product-name {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--pcd-navy);
  line-height: var(--leading-snug);
  margin: 0;
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--color-muted-dark);
  line-height: var(--leading-relaxed);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Benefits */
.product-benefits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.product-benefits li {
  font-size: var(--text-xs);
  color: var(--color-muted-dark);
  padding-left: var(--space-4);
  position: relative;
  line-height: var(--leading-relaxed);
}

.product-benefits li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--pcd-success);
  font-weight: 700;
}

/* Curator */
.product-curator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: rgba(10,16,71,.03);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--pcd-cyan);
  margin-top: auto;
}

.curator-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--pcd-navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.curator-name {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--pcd-navy);
  line-height: 1.2;
}

.curator-specialty {
  font-size: .68rem;
  color: var(--color-muted);
  line-height: 1.2;
}

/* Tip expandable */
.product-tip {
  margin-top: auto;
}

.product-tip-toggle {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--pcd-cyan);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: var(--space-2) 0;
  transition: color .15s ease;
}

.product-tip-toggle:hover { color: var(--pcd-navy); }
.product-tip-toggle::-webkit-details-marker { display: none; }

.product-tip[open] .product-tip-toggle::before { content: '▾ '; }
.product-tip:not([open]) .product-tip-toggle::before { content: '▸ '; }

.product-tip-text {
  font-size: var(--text-xs);
  color: var(--color-muted-dark);
  line-height: var(--leading-relaxed);
  background: rgba(0,165,207,.06);
  border-left: 3px solid var(--pcd-cyan);
  padding: var(--space-3);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin-top: var(--space-2);
}

/* Footer */
.product-footer {
  padding: var(--space-4) var(--space-5);
  border-top: 1px solid rgba(10,16,71,.06);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.product-price-stars {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.product-price {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--pcd-navy);
}

.product-stars {
  font-size: .75rem;
  color: var(--pcd-orange);
  letter-spacing: .1em;
}

/* Amazon CTA button */
.btn--amazon {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: #FF9900;
  color: #000;
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-lg);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
  white-space: nowrap;
}

.btn--amazon:hover {
  background: #E88A00;
  transform: translateY(-1px);
}

.btn--amazon:active { transform: scale(.97); }

/* Skeleton */
.product-card--skeleton { pointer-events: none; }
.skel { background: linear-gradient(90deg, #f0f2f5 25%, #e0e4ea 50%, #f0f2f5 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: var(--radius-md); }
.skel-img  { height: 180px; border-radius: 0; }
.skel-line { height: 14px; margin-bottom: 10px; }
.skel-line--sm  { width: 40%; }
.skel-line--lg  { width: 80%; }

/* Card entry animation */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Empty / error state */
.catalog-empty {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  color: var(--color-muted);
}

.catalog-empty-icon { font-size: 3rem; margin-bottom: var(--space-4); }
.catalog-empty h3   { color: var(--pcd-navy); margin-bottom: var(--space-3); }
.catalog-empty p    { max-width: 40ch; margin-inline: auto; margin-bottom: var(--space-6); }
.catalog-empty--error .catalog-empty-icon { opacity: .6; }

/* Affiliate transparency strip */
.affiliate-strip {
  background: rgba(0,165,207,.06);
  border: 1px solid rgba(0,165,207,.2);
  border-radius: var(--radius-xl);
  padding: var(--space-4) var(--space-6);
  font-size: var(--text-sm);
  color: var(--color-muted-dark);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.affiliate-strip svg { flex-shrink: 0; color: var(--pcd-cyan); margin-top: 2px; }
