/* ============================================================
   Central de Materiais · Cupom Verde
   Identidade: creme + verde-escuro + verdes suaves + coral
   ============================================================ */

:root {
  /* Cores oficiais da marca */
  --cream: #F2F2E8;      /* Offwhite */
  --green-800: #154734;  /* Verde Cupom */
  --green-200: #C1DEAA;  /* Verde Claro */
  --coral: #FF7053;      /* Coral */
  --ink: #333333;        /* Grafite */

  /* Tons de apoio derivados da paleta oficial */
  --cream-soft: #F7F7EF;
  --white: #FDFDF8;
  --green-900: #0E3424;
  --green-700: #1E5A43;
  --green-600: #37795A;
  --green-300: #A8CD92;
  --green-100: #E1EDD2;
  --green-50:  #ECF2E1;
  --coral-soft: #FFDDD3;
  --ink-soft: #5F6A60;
  --line: #E3E2D3;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgba(28, 74, 52, 0.08);
  --shadow-soft: 0 4px 14px rgba(28, 74, 52, 0.06);
  --sidebar-w: 264px;
  --font: "Figtree", -apple-system, "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  min-height: 100vh;
}

svg { display: block; }

button { font-family: inherit; cursor: pointer; }

a { color: var(--green-700); }

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: var(--green-800);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 22px;
  z-index: 60;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 10px;
}

/* Logo oficial é verde-escura; na sidebar verde ela vira creme via filtro */
.brand-img {
  height: 44px;
  width: auto;
  filter: brightness(0) invert(0.97);
}

.sidebar-label {
  margin: 18px 10px 10px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--green-300);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; }

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: 14px;
  color: var(--green-100);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  transition: background 0.18s, color 0.18s;
}

.nav-item svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.nav-item svg .fill { fill: currentColor; stroke: none; }

.nav-item:hover { background: rgba(253, 252, 247, 0.08); color: var(--white); }

.nav-item.active {
  background: var(--cream);
  color: var(--green-800);
}

.sidebar-help { margin-top: auto; padding-top: 22px; }

.help-card {
  background: var(--green-700);
  border-radius: var(--radius);
  padding: 18px;
  font-size: 0.85rem;
}

.help-card strong { display: block; margin-bottom: 6px; font-size: 0.92rem; }

.help-card p { color: var(--green-100); margin-bottom: 12px; }

/* ---------- Main / Topbar ---------- */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 36px;
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(10px);
  z-index: 40;
}

.menu-btn {
  display: none;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}

.menu-btn svg { width: 22px; height: 22px; fill: none; stroke: var(--green-800); stroke-width: 2; stroke-linecap: round; }

.search {
  flex: 1;
  max-width: 480px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 18px;
}

.search svg { width: 18px; height: 18px; fill: none; stroke: var(--ink-soft); stroke-width: 2; stroke-linecap: round; flex-shrink: 0; }

.search input {
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 0.95rem;
  width: 100%;
  color: var(--ink);
}

.search input::placeholder { color: #9AA79E; }

.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

.icon-btn {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: var(--green-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--coral);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  border-radius: 999px;
  min-width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 4px;
}

.badge[hidden] { display: none; }

.notif-wrap { position: relative; }

.notif-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 36px);
  background: #FDFDF8;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  z-index: 80;
  overflow: hidden;
  animation: fadeUp 0.2s ease;
}

.notif-head {
  padding: 14px 18px;
  font-weight: 800;
  color: var(--green-900);
  border-bottom: 1px solid var(--line);
  background: var(--cream-soft);
}

.notif-item { padding: 14px 18px; border-bottom: 1px solid var(--line); }

.notif-item:last-child { border-bottom: none; }

.notif-item strong { display: block; font-size: 0.92rem; color: var(--green-900); margin-bottom: 3px; }

.notif-item p { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 5px; }

.notif-item span { font-size: 0.74rem; font-weight: 700; color: var(--green-600); text-transform: uppercase; letter-spacing: 0.06em; }

.store-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 16px 6px 6px;
}

.store-avatar {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--green-200);
  color: var(--green-800);
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
}

.store-info { display: flex; flex-direction: column; line-height: 1.2; }

.store-info strong { font-size: 0.85rem; }

.store-info span { font-size: 0.72rem; color: var(--ink-soft); }

/* ---------- Sections ---------- */
main#content { padding: 10px 36px 0; flex: 1; }

.section { display: none; animation: fadeUp 0.35s ease; }

.section.active { display: block; }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 30px 0 18px;
}

.section-head h1 { font-size: 1.75rem; font-weight: 800; color: var(--green-900); letter-spacing: -0.01em; }

.section-head h2 { font-size: 1.3rem; font-weight: 800; color: var(--green-900); }

.section-sub { color: var(--ink-soft); max-width: 640px; margin-top: 6px; }

.sub-head { font-size: 1.2rem; font-weight: 800; color: var(--green-900); margin: 34px 0 14px; }

.link-more {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--green-700);
  white-space: nowrap;
}

.link-more svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 44px 48px;
  margin-top: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-height: 300px;
}

.hero-photo {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 52%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%);
  mask-image: linear-gradient(90deg, transparent, #000 22%);
  pointer-events: none;
}

.hero-text { position: relative; max-width: 50%; z-index: 1; }

.hero-tag {
  display: inline-block;
  background: var(--green-100);
  color: var(--green-800);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(1.6rem, 2.6vw, 2.3rem);
  font-weight: 800;
  color: var(--green-900);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin-bottom: 12px;
}

.hero p { color: var(--ink-soft); margin-bottom: 22px; }

.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 12px 24px;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:active { transform: scale(0.97); }

.btn-primary { background: var(--green-800); color: var(--cream); }

.btn-primary:hover { background: var(--green-700); box-shadow: var(--shadow-soft); }

.btn-ghost { background: transparent; color: var(--green-800); border: 1.6px solid var(--green-800); }

.btn-ghost:hover { background: var(--green-50); }

.btn-light { background: var(--cream); color: var(--green-800); }

.btn-outline { background: transparent; border: 1.6px solid var(--green-300); color: var(--green-800); }

.btn-outline:hover { background: var(--green-50); border-color: var(--green-600); }


.btn-sm { padding: 8px 16px; font-size: 0.84rem; }

.btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Stats ---------- */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 22px 0 8px;
}

.stat-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
}

.stat-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--green-300);
}

.stat-go {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 10px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--green-700);
  opacity: 0;
  transition: opacity 0.18s;
}

.stat-card:hover .stat-go { opacity: 1; }

.stat-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--green-100);
  display: grid;
  place-items: center;
  margin-bottom: 10px;
}

.stat-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--green-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.stat-card strong { font-size: 1.7rem; font-weight: 800; color: var(--coral); line-height: 1.1; }

.stat-card span { font-size: 0.85rem; color: var(--ink-soft); }

/* ---------- Steps ---------- */
.steps-band {
  background: var(--green-100);
  border-radius: var(--radius-lg);
  padding: 34px 38px;
  margin: 34px 0 10px;
}

.steps-band h2 { font-size: 1.3rem; font-weight: 800; color: var(--green-900); margin-bottom: 20px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

.step-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--green-800);
  color: var(--cream);
  font-weight: 800;
  margin-bottom: 10px;
}

.step strong { display: block; margin-bottom: 4px; color: var(--green-900); }

.step p { font-size: 0.88rem; color: var(--green-700); }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }

.chip {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 18px;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--ink-soft);
  transition: all 0.15s;
}

.chip:hover { border-color: var(--green-300); color: var(--green-800); }

.chip.active { background: var(--green-800); border-color: var(--green-800); color: var(--cream); }

/* ---------- Grid & Cards ---------- */
.grid { display: grid; gap: 18px; }

.grid-2 { grid-template-columns: repeat(2, 1fr); }

.grid-3 { grid-template-columns: repeat(3, 1fr); }

.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.18s, box-shadow 0.18s;
}

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

.card-thumb {
  position: relative;
  background: var(--green-50);
  cursor: pointer;
}

.card-thumb svg, .card-thumb img { width: 100%; height: auto; display: block; }

/* Mini-carrossel nos cards de artes com mais de uma imagem */
.card-thumb .car-img { display: none; }

.card-thumb .car-img.active { display: block; }

.car-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 999px;
  background: rgba(253, 253, 248, 0.92);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.18s;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(20, 55, 38, 0.18);
}

.car-nav.prev { left: 10px; }

.car-nav.next { right: 10px; }

.card-thumb:hover .car-nav { opacity: 1; }

.car-nav svg { width: 16px; height: 16px; fill: none; stroke: var(--green-800); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.car-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.car-dots span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(253, 253, 248, 0.55);
  transition: background 0.18s;
}

.car-dots span.on { background: var(--white); }

.card-thumb .fmt {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(20, 55, 38, 0.82);
  color: var(--cream);
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  backdrop-filter: blur(4px);
}

.card-thumb .zoom-hint {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.9);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 0.18s;
}

.card:hover .zoom-hint { opacity: 1; }

.zoom-hint svg { width: 15px; height: 15px; fill: none; stroke: var(--green-800); stroke-width: 2.2; stroke-linecap: round; }

.card-body { padding: 16px 18px 18px; }

.card-body strong { display: block; font-size: 0.98rem; color: var(--green-900); margin-bottom: 3px; }

.card-body p { font-size: 0.84rem; color: var(--ink-soft); margin-bottom: 12px; }

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.tag {
  background: var(--green-50);
  color: var(--green-700);
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
}

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Audio list ---------- */
.audio-list { display: flex; flex-direction: column; gap: 14px; }

.audio-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.play-btn {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  border: none;
  background: var(--green-800);
  color: var(--cream);
  display: grid;
  place-items: center;
  transition: background 0.15s, transform 0.15s;
}

.play-btn:hover { background: var(--green-700); transform: scale(1.05); }

.play-btn svg { width: 20px; height: 20px; fill: currentColor; }

.audio-info strong { display: block; color: var(--green-900); }

.audio-info .audio-desc { font-size: 0.85rem; color: var(--ink-soft); }

.audio-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--green-100);
  overflow: hidden;
}

.audio-progress span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--coral);
  transition: width 0.2s linear;
}

.audio-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

.audio-side .dur { font-weight: 800; color: var(--coral); font-size: 0.9rem; }

.audio-actions { display: flex; gap: 8px; }

.script-toggle {
  background: none;
  border: none;
  color: var(--green-700);
  font-weight: 700;
  font-size: 0.84rem;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
}

.script-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }

.audio-card.open .script-toggle svg { transform: rotate(180deg); }

.audio-script {
  grid-column: 1 / -1;
  display: none;
  background: var(--cream-soft);
  border: 1px dashed var(--green-200);
  border-radius: 14px;
  padding: 16px 18px;
  font-size: 0.9rem;
  color: var(--ink);
}

.audio-script em { color: var(--ink-soft); font-size: 0.8rem; display: block; margin-bottom: 6px; font-style: normal; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }

.audio-card.open .audio-script { display: block; animation: fadeUp 0.25s ease; }

/* ---------- Palette ---------- */
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 10px; }

.swatch {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.swatch:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }

.swatch-color { height: 84px; }

.swatch-info { padding: 10px 14px; }

.swatch-info strong { display: block; font-size: 0.85rem; color: var(--green-900); }

.swatch-info span { font-size: 0.78rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

/* ---------- Logo cards / practices ---------- */
.logo-preview {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.logo-preview.on-cream { background: var(--cream); color: var(--green-800); }

.logo-preview.on-green { background: var(--green-800); color: var(--cream); }

.cv-logo { width: 54px; height: 54px; }

.cv-logo.big { width: 72px; height: 72px; }

.cv-wordmark { font-weight: 800; font-size: 1.3rem; line-height: 1; letter-spacing: 0.01em; }

.logo-real { height: 62px; width: auto; }

.type-preview {
  font-weight: 800;
  font-size: 1.6rem;
  color: var(--green-800);
  text-align: center;
  line-height: 1.3;
}

.type-preview small { font-weight: 500; font-size: 1rem; color: var(--ink-soft); }

.practice { padding: 22px 24px; }

.practice-tag {
  display: inline-block;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 5px 14px;
  margin-bottom: 14px;
}

.practice-tag.ok { background: var(--green-100); color: var(--green-800); }

.practice-tag.no { background: var(--coral-soft); color: #C2492B; }

.practice ul { list-style: none; display: flex; flex-direction: column; gap: 9px; }

.practice li { padding-left: 26px; position: relative; font-size: 0.92rem; }

.practice.do li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--green-200) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231C4A34' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 13 4 4 10-11'/%3E%3C/svg%3E") center/9px no-repeat;
}

.practice.dont li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--coral-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C2492B' stroke-width='3.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E") center/8px no-repeat;
}

/* ---------- Empty / toast / modal ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--ink-soft);
}

.empty-state svg { width: 40px; height: 40px; margin: 0 auto 12px; fill: none; stroke: var(--green-300); stroke-width: 2; stroke-linecap: round; }

.empty-state strong { display: block; color: var(--green-900); font-size: 1.05rem; margin-bottom: 4px; }

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--green-900);
  color: var(--cream);
  border-radius: 999px;
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  z-index: 100;
  box-shadow: var(--shadow);
}

.toast.show { opacity: 1; transform: translate(-50%, 0); }

.modal {
  position: fixed;
  inset: 0;
  background: rgba(20, 55, 38, 0.5);
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 24px;
  z-index: 90;
}

.modal[hidden] { display: none; }

.modal-card {
  position: relative;
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  animation: fadeUp 0.25s ease;
}

.modal-preview { background: var(--green-50); }

.modal-preview svg, .modal-preview img { width: 100%; height: auto; display: block; }

.modal-preview img + img { margin-top: 2px; }

.modal-info { padding: 20px 24px 24px; }

.modal-info strong { font-size: 1.1rem; color: var(--green-900); display: block; margin-bottom: 4px; }

.modal-info p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 14px; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: none;
  border-radius: 999px;
  background: rgba(253, 252, 247, 0.92);
  display: grid;
  place-items: center;
  z-index: 2;
}

.modal-close svg { width: 16px; height: 16px; fill: none; stroke: var(--green-900); stroke-width: 2.4; stroke-linecap: round; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 50px;
  padding: 26px 0 34px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand img { height: 30px; width: auto; }

/* ---------- Backdrop (mobile menu) ---------- */
.backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 55, 38, 0.4);
  z-index: 55;
}

/* ============================================================
   Responsivo
   ============================================================ */
@media (max-width: 1160px) {
  .grid-4 { grid-template-columns: repeat(3, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .palette { grid-template-columns: repeat(3, 1fr); }
}

/* Abaixo disso o card de 3 colunas fica estreito demais e os botões
   de ação quebram para linhas separadas — melhor ir para 2 colunas. */
@media (max-width: 1200px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 960px) {
  .hero-photo { display: none; }
  .hero-text { max-width: 100%; }
}

@media (max-width: 760px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 280px;
  }

  body.menu-open .sidebar { transform: none; }

  body.menu-open .backdrop { display: block; }

  .main { margin-left: 0; }

  .menu-btn { display: grid; place-items: center; }

  .topbar { padding: 14px 18px; gap: 10px; }

  main#content { padding: 6px 18px 0; }

  .hero { padding: 30px 24px; }

  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }

  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }

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

  .steps-band { padding: 26px 22px; }

  .audio-card { grid-template-columns: auto 1fr; }

  .audio-side { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; }

  .palette { grid-template-columns: repeat(2, 1fr); }

  .footer { flex-direction: column; text-align: center; }

  .section-head { flex-direction: column; align-items: flex-start; }
}
