/* =============================================
   MAPA DE CONTEÚDO ESTRATÉGICO — style.css
   ============================================= */

/* ---- VARIABLES ---- */
:root {
  --bg: #f7f5f2;
  --bg-card: #ffffff;
  --bg-muted: #f0ede8;
  --text: #1c1917;
  --text-muted: #6b6560;
  --text-light: #9e9891;
  --accent: #2d5a3d;
  --accent-light: #e8f0eb;
  --accent-gold: #b8963e;
  --accent-gold-light: #f9f3e6;
  --border: #e5e0d8;
  --border-dark: #ccc5bb;
  --danger: #c0392b;
  --danger-light: #fdf2f1;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);
  --font-display: 'DM Serif Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --nav-h: 56px;
  --header-h: 60px;
  --transition: 0.18s ease;
}

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
textarea, input, select {
  font-family: inherit;
  font-size: 14px;
}

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(247,245,242,0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  gap: 1rem;
}
.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  white-space: nowrap;
}
.brand-icon { color: var(--accent); font-size: 1.2rem; }
.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}
.progress-bar-outer {
  width: 120px;
  height: 6px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
  flex-shrink: 0;
}
.progress-bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.4s ease;
}
.progress-label {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.save-status {
  font-size: 12px;
  color: var(--text-light);
  white-space: nowrap;
  padding: 4px 10px;
  background: var(--bg-muted);
  border-radius: 99px;
  border: 1px solid var(--border);
}
.save-status.saved { color: var(--accent); }

/* ---- NAV ---- */
.main-nav {
  position: sticky;
  top: var(--header-h);
  z-index: 90;
  background: rgba(247,245,242,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  gap: 0.25rem;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  height: var(--nav-h);
}
.nav-inner::-webkit-scrollbar { display: none; }
.nav-btn {
  flex-shrink: 0;
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 500;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-btn:hover { background: var(--bg-muted); color: var(--text); }
.nav-btn.active {
  background: var(--accent);
  color: #fff;
}

/* ---- MAIN ---- */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

/* ---- SECTIONS ---- */
.mode-section { display: none; }
.mode-section.active { display: block; }
.mode-section.hidden { display: none; }

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.section-desc {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 640px;
}

/* ---- HERO ---- */
.hero-wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 4rem 0 3rem;
  text-align: center;
}
.hero-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.25rem;
}
.hero-title em {
  font-style: italic;
  color: var(--accent);
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.6;
}
.hero-body {
  font-size: 15px;
  color: var(--text-light);
  margin-bottom: 2rem;
  line-height: 1.7;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.hero-note {
  font-size: 12.5px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 3rem;
}
.hero-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.feature-pill {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  color: var(--text-muted);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  border: 1.5px solid transparent;
  transition: all var(--transition);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover {
  background: #1e3d2a;
  border-color: #1e3d2a;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(45,90,61,0.25);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-dark);
}
.btn-ghost:hover {
  background: var(--bg-muted);
  color: var(--text);
  border-color: var(--border-dark);
}
.btn-danger {
  background: var(--danger-light);
  color: var(--danger);
  border-color: #f0b8b4;
}
.btn-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-add {
  margin-top: 0.75rem;
  border-style: dashed;
  width: 100%;
}

/* ---- STUDY ---- */
.study-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.25rem;
}
.study-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.study-card:hover { box-shadow: var(--shadow); }
.study-number {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--border-dark);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.study-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: var(--text);
}
.study-explanation {
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 1rem;
}
.study-detail {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.study-why, .study-question, .study-use {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.55;
}
.study-question { color: var(--accent); font-style: italic; }

/* ---- DIAGNOSIS ---- */
.step-nav {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
  padding: 0.75rem;
  background: var(--bg-muted);
  border-radius: var(--radius);
}
.step-btn {
  padding: 6px 14px;
  border: 1px solid transparent;
  background: transparent;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
  transition: all var(--transition);
  white-space: nowrap;
}
.step-btn:hover { background: var(--bg-card); color: var(--text); }
.step-btn.active {
  background: var(--bg-card);
  color: var(--accent);
  font-weight: 600;
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.diag-step { display: none; }
.diag-step.active { display: block; }
.diag-step.hidden { display: none; }

.step-header {
  margin-bottom: 1.75rem;
}
.step-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-light);
  margin-bottom: 0.5rem;
}
.step-header h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.step-objective {
  color: var(--text-muted);
  font-size: 14.5px;
  max-width: 640px;
}
.alert-box {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  background: var(--accent-gold-light);
  border: 1px solid #e8d5a8;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: #7a5c1e;
}

/* ---- FIELDS ---- */
.fields-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.1rem;
}
.field-group { display: flex; flex-direction: column; gap: 0.4rem; }
.field-group.full { grid-column: 1 / -1; }
.field-group label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.field-group input,
.field-group textarea,
.field-group select {
  width: 100%;
  padding: 10px 13px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  resize: vertical;
  transition: border-color var(--transition), box-shadow var(--transition);
  line-height: 1.55;
}
.field-group input:focus,
.field-group textarea:focus,
.field-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45,90,61,0.1);
}
.field-group select { cursor: pointer; }

.step-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

/* ---- RADIO ---- */
.radio-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 13.5px;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  transition: all var(--transition);
}
.radio-label:hover { border-color: var(--accent); color: var(--text); }
.radio-label input[type="radio"] { accent-color: var(--accent); }

/* ---- PILLARS ---- */
.pillars-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 2rem 0 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.pillar-card {
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pillar-card label { font-size: 13px; font-weight: 600; color: var(--text); }
.pillar-card textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 13px;
  resize: vertical;
  background: var(--bg);
  color: var(--text);
  transition: border-color var(--transition);
}
.pillar-card textarea:focus { outline: none; border-color: var(--accent); }
.pillar-icon { font-size: 1.3rem; }
.pillar-edu { border-top: 3px solid #4a7c59; }
.pillar-auth { border-top: 3px solid var(--accent-gold); }
.pillar-op { border-top: 3px solid #6b82b8; }
.pillar-proof { border-top: 3px solid #3a9d7b; }
.pillar-back { border-top: 3px solid #a07850; }
.pillar-conv { border-top: 3px solid #c0392b; }
.pillar-comm { border-top: 3px solid #8b5ea4; }

/* ---- FORMATS ---- */
.formats-list { display: flex; flex-direction: column; gap: 1.5rem; }
.format-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.format-card:hover { box-shadow: var(--shadow); }
.format-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg-muted);
  border-bottom: 1px solid var(--border);
}
.format-number {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--border-dark);
  line-height: 1;
  flex-shrink: 0;
}
.format-meta h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.format-metric {
  font-size: 12px;
  color: var(--accent);
  font-weight: 500;
  letter-spacing: 0.03em;
}
.format-info {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.format-when, .format-structure, .format-hook, .format-cta {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.6;
}
.format-hook { color: var(--text); font-style: italic; }
.format-adapt {
  padding: 1.25rem 1.5rem;
}
.format-adapt h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 1rem;
}

/* ---- CHECKLIST ---- */
.checklist-wrap {
  max-width: 700px;
  margin: 0 auto;
}
.checklist-score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin: 1.5rem 0;
}
.score-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 0.4rem;
}
.score-number {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--accent);
  line-height: 1;
}
.score-total { font-size: 1.4rem; color: var(--text-light); }
.score-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}
.score-bar-outer {
  height: 8px;
  background: var(--bg-muted);
  border-radius: 99px;
  overflow: hidden;
  max-width: 320px;
  margin: 0 auto;
}
.score-bar-inner {
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
  width: 0%;
  transition: width 0.3s ease;
}
.checklist-items {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1rem 0;
}
.checklist-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all var(--transition);
  font-size: 14px;
  color: var(--text);
}
.checklist-item:hover { border-color: var(--accent); background: var(--accent-light); }
.checklist-item input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
  cursor: pointer;
}
.checklist-item:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-light);
  text-decoration: line-through;
  color: var(--text-muted);
}

/* ---- WEEKLY ---- */
.weekly-wrap { display: flex; flex-direction: column; gap: 2rem; }
.weekly-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.weekly-block-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

/* Dynamic content cards */
.content-card {
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  margin-bottom: 1rem;
}
.content-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.9rem;
}
.content-card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}
.btn-remove {
  background: transparent;
  border: none;
  color: var(--text-light);
  font-size: 1.1rem;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all var(--transition);
}
.btn-remove:hover { background: var(--danger-light); color: var(--danger); }

/* ---- EXPORT ---- */
.export-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}
.export-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: box-shadow var(--transition);
}
.export-card:hover { box-shadow: var(--shadow); }
.export-icon { font-size: 2rem; }
.export-card h3 { font-size: 1rem; font-weight: 600; }
.export-card p { font-size: 13.5px; color: var(--text-muted); line-height: 1.6; flex: 1; }
.export-card .btn { margin-top: 0.25rem; }
.copy-feedback {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  text-align: center;
}
.copy-feedback.hidden { display: none; }

.export-danger {
  padding: 1.25rem 1.5rem;
  background: var(--danger-light);
  border: 1px solid #f0b8b4;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.export-danger h4 { font-size: 14px; font-weight: 600; color: var(--danger); }
.export-danger p { font-size: 13px; color: #7a2a23; flex: 1; min-width: 200px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .main-content { padding: 1.5rem 1rem 3rem; }

  .header-inner { padding: 0 1rem; }
  .brand-name { display: none; }
  .progress-bar-outer { width: 80px; }

  .hero-wrap { padding: 2.5rem 0 2rem; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .study-grid { grid-template-columns: 1fr; }

  .step-nav { gap: 0.25rem; padding: 0.6rem; }
  .step-btn { font-size: 12px; padding: 5px 10px; }

  .fields-grid { grid-template-columns: 1fr; }
  .field-group.full { grid-column: 1; }

  .pillars-grid { grid-template-columns: 1fr 1fr; }

  .format-header { padding: 1rem; }
  .format-info, .format-adapt { padding: 1rem; }

  .export-grid { grid-template-columns: 1fr; }
  .export-danger { flex-direction: column; gap: 0.75rem; }

  .step-footer { flex-direction: column; gap: 0.75rem; }
  .step-footer .btn { width: 100%; }

  .weekly-block { padding: 1rem; }

  .radio-group { flex-direction: column; }
}

@media (max-width: 480px) {
  .section-title { font-size: 1.5rem; }
  .hero-title { font-size: 2rem; }
  .score-number { font-size: 2.5rem; }
  .pillars-grid { grid-template-columns: 1fr; }
  .checklist-wrap { max-width: 100%; }
}

/* ---- TRANSITIONS ---- */
.mode-section { animation: fadeIn 0.2s ease; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.study-card, .format-card, .export-card, .weekly-block {
  animation: slideIn 0.2s ease both;
}
@keyframes slideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
