/* ============================================================================
   🎨 STYLES.CSS - JOÃO PEREIRA LP
   ============================================================================ */

/* ========= Tokens ========= */
:root {
  --pill: #00B44A;
  --pill-hover: #0a8f3b;
  --ink: #333;
  --muted: #575757;
  --line: #E6ECF2;
  --card: #fff;
  --soft: #F8FBFD;
}

/* ========= Base ========= */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  background: var(--soft);
  color: var(--ink);
  font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

a {
  color: var(--pill);
  text-decoration: none;
}

/* Shell */
.sheet {
  max-width: 900px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.pad {
  padding: 8px 28px 22px;
}

/* Header */
.logo {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 6px;
}

@media (max-width: 360px) {
  .logo {
    width: 240px;
  }
}

/* ===== HEADER VAKINHA ===== */

.vakinha-header {
  width: 100%;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  height: 64px;
  display: flex;
  justify-content: center;
  position: sticky;
  top: 0;
  z-index: 9999;
}

.vakinha-inner {
  width: 100%;
  max-width: 900px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.vakinha-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.vakinha-text {
  font-size: 22px;
  font-weight: 600;
  color: #24CA68;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.vakinha-icons {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon {
  width: 26px;
  height: 26px;
  fill: #24CA68;
  cursor: pointer;
}

/* H1 */
h1 {
  margin: 12px auto 22px;
  max-width: 760px;
  font: 900 clamp(24px, 3.2vw, 38px) / 1.22 ui-serif, Georgia, Cambria, "Times New Roman", serif;
  text-align: center;
  color: #0e2e33;
}

/* Hero */
.hero-wrap {
  background: var(--soft);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 0;
  max-width: 760px;
  margin: 0 auto 16px;
  overflow: hidden;
  aspect-ratio: auto;
}

.hero {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 20px;
  display: block;
}

/* Texto */
.copy {
  max-width: 760px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.7;
  color: #1f2f33;
  text-wrap: pretty;
}

.copy p {
  margin: 14px 0;
}

.copy img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px;
  margin: 16px 0;
}

/* Imagens fluidas */
.img-fluid {
  display: block;
  width: 240px;
  height: 300px;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--soft);
  padding: 10px;
  margin: 16px auto;
}

/* Meta / Progresso */
.meta {
  max-width: 760px;
  margin: 40px auto 28px;
}

.progress {
  width: 100%;
  height: 6px;
  background: #eee;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 8px;
}

.progress .bar span {
  display: block;
  height: 100%;
  width: calc(var(--p) * 1%);
  background: #00a651;
  border-radius: 999px;
}

.money-line {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 16px;
}

.amt {
  color: #00a651;
  font-weight: 700;
}

.target {
  color: #888;
  font-weight: 500;
}


.label {
  font-weight: 800;
  font-size: 14px;
  letter-spacing: 0.2px;
  color: #2a3c31;
}

.amt {
  display: inline-block;
  white-space: nowrap;
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0.2px;
  color: var(--pill);
  font-size: clamp(22px, 6.4vw, 32px);
}

.target {
  white-space: nowrap;
  text-align: right;
  font-weight: 700;
  color: #2a3c31;
  font-size: 16px;
}

.progress {
  position: relative;
  margin-top: 10px;
  margin-bottom: 14px;
}

.progress .bar {
  height: 28px;
  background: #e9efe9;
  border-radius: 999px;
  overflow: hidden;
  border: 0;
}

.progress .bar > span {
  display: block;
  height: 100%;
  width: calc(var(--p, 0) * 1%);
  background: var(--pill);
  border-radius: inherit;
}

.progress .pct {
  position: absolute;
  left: calc(var(--p, 0) * 1%);
  transform: translate(-50%, 6px);
  bottom: -14px;
  background: var(--pill);
  color: #fff;
  font-weight: 900;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 12.5px;
  white-space: nowrap;
}

/* Seção de apoio */
.secTitle-wrap {
  max-width: 720px;
  margin: 50px auto 24px;
  text-align: center;
}

.secHeadline {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 700;
  color: #242e3d;
  margin: 0 0 6px;
}

/* Grade */
.gridWrap {
  max-width: 760px;
  margin: 0 auto;
}

.grid[aria-label="Sugestões de apoio"] {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

/* Botões */
.opt {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 10px 14px;
  border-radius: 22px;
  background: var(--pill);
  border: 3px solid var(--pill);
  color: #fff;
  transition: transform 0.08s ease, background 0.12s ease, border-color 0.12s ease;
  cursor: pointer;
}

.opt strong {
  color: #fff;
  font-weight: 800;
  font-size: clamp(20px, 5.4vw, 26px);
}

.opt small {
  color: #fff;
  font-size: clamp(12px, 3.6vw, 13.5px);
}

.opt:hover {
  background: var(--pill-hover);
  border-color: var(--pill-hover);
}

.opt:active {
  transform: translateY(1px);
}

.opt:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Badge */
.opt.has-label .opt-label {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #13c75d;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 12px;
  white-space: nowrap;
}

/* CTA */
.cta {
  display: block;
  margin: 18px auto 22px;
  background: var(--pill);
  color: #fff;
  text-align: center;
  padding: 16px 26px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 16px;
  max-width: 760px;
  cursor: pointer;
}

.cta:hover {
  background: var(--pill-hover);
}

/* Comentários */
.comments {
  max-width: 760px;
  margin: 40px auto 0;
}

.comments h2.secTitle {
  text-align: center;
  color: #242e3d;
  font-weight: 700;
  font-size: 16px;
  margin: 40px 0 26px;
}

.cm {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  margin: 0 0 18px;
  align-items: flex-start;
}

.avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid #e2efe6;
  background: #eaf4ee;
  overflow: hidden;
  margin-top: 29px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 50%;
}

.who {
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--pill);
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
}

.time {
  color: #86a2ab;
  font-size: 12.5px;
}

.bubble {
  background: #fff;
  border: 1px solid #e3edf1;
  border-radius: 14px;
  padding: 14px 16px;
  color: #233c43;
  line-height: 1.55;
  box-shadow: 0 6px 18px rgba(3, 35, 41, 0.06);
}

/* Rodapé */
.foot {
  max-width: 760px;
  margin: 24px auto 18px;
  text-align: center;
  color: #36433d;
  padding-top: 20px;
  border-top: 1px solid #e6eeea;
}

.logo-foot {
  width: 280px;
  height: auto;
  display: block;
  margin: 0 auto 10px;
}

.copyright {
  margin: 8px 0 12px;
  font-size: 14px;
  color: #3b4a44;
}

.minor {
  max-width: 680px;
  margin: 0 auto 14px;
  padding: 0 12px;
  font-size: 13px;
  line-height: 1.55;
  color: #566861;
}

.minor b {
  color: #2c3d36;
}

.policy a {
  text-decoration: underline;
  font-weight: 600;
}

/* ==================== MODAL PIX ==================== */
.modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 1rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 220ms ease;
}

.modal-panel {
  position: relative;
  background: #fafbfc;
  padding: 32px 20px;
  border-radius: 20px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10001;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
  transform: translateY(20px) scale(0.96);
  opacity: 0;
  transition: opacity 250ms ease, transform 250ms cubic-bezier(0.2, 0.8, 0.2, 1);
  text-align: center;
  border: 1px solid #e8eaed;
}

@media (min-width: 480px) {
  .modal-panel {
    padding: 36px 24px;
  }
}

@media (min-width: 640px) {
  .modal-panel {
    padding: 40px 28px;
  }
}

.modal.show .modal-backdrop {
  background: rgba(0, 0, 0, 0.65);
}

.modal.show .modal-panel {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-close {
  position: absolute;
  right: 16px;
  top: 14px;
  border: none;
  background: #fff;
  font-size: 24px;
  cursor: pointer;
  color: #666;
  line-height: 1;
  font-weight: 400;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

@media (min-width: 640px) {
  .modal-close {
    right: 18px;
    top: 16px;
    font-size: 26px;
    width: 34px;
    height: 34px;
  }
}

.modal-close:hover {
  background: #f0f0f0;
  color: #333;
}

.modal-logo {
  width: 150px;
  height: auto;
  display: block;
  margin: 0 auto 20px;
  opacity: 0.9;
}

@media (min-width: 480px) {
  .modal-logo {
    width: 160px;
    margin: 0 auto 22px;
  }
}

@media (min-width: 640px) {
  .modal-logo {
    width: 180px;
    margin: 0 auto 24px;
  }
}

.modal-panel h3 {
  margin: 0 0 20px 0;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: #5b6270;
  letter-spacing: 0.5px;
}

@media (min-width: 480px) {
  .modal-panel h3 {
    font-size: 17px;
    margin: 0 0 22px 0;
  }
}

@media (min-width: 640px) {
  .modal-panel h3 {
    font-size: 18px;
    margin: 0 0 24px 0;
  }
}

.modal-success {
  margin-top: 20px;
  padding: 20px;
  background: linear-gradient(90deg, #00B44A, #0a8f3b);
  color: white;
  border-radius: 16px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
  box-shadow: 0 4px 16px rgba(0, 180, 74, 0.3);
}

@media (min-width: 640px) {
  .modal-success {
    font-size: 1.05rem;
    padding: 22px;
  }
}

.modal .qrcode {
  width: 180px;
  display: block;
  margin: 16px auto;
  border-radius: 16px;
  background: #fff;
  padding: 16px;
  border: 1px solid #e8e8e8;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

@media (min-width: 480px) {
  .modal .qrcode {
    width: 200px;
    padding: 18px;
  }
}

@media (min-width: 640px) {
  .modal .qrcode {
    width: 220px;
    padding: 20px;
  }
}

.modal .qrcode svg,
.modal .qrcode img {
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
}

.modal .pix-text-wrap {
  display: flex;
  gap: 0;
  margin-top: 20px;
  width: 100%;
  justify-content: center;
}

@media (min-width: 640px) {
  .modal .pix-text-wrap {
    margin-top: 24px;
  }
}

.modal input#modal-pix-text {
  flex: 1;
  padding: 14px 12px;
  border: 2px solid #00B44A;
  border-radius: 12px;
  background: #fff;
  width: 100%;
  max-width: 440px;
  font-family: 'Courier New', monospace;
  font-size: 0.72rem;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(0, 180, 74, 0.1);
}

@media (min-width: 480px) {
  .modal input#modal-pix-text {
    padding: 15px 14px;
    font-size: 0.76rem;
  }
}

@media (min-width: 640px) {
  .modal input#modal-pix-text {
    padding: 16px;
    font-size: 0.8rem;
  }
}

.modal .status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

@media (min-width: 640px) {
  .modal .status-row {
    gap: 12px;
    margin-top: 18px;
  }
}

.modal #modal-timer {
  color: #6b7280;
  font-weight: 500;
  font-size: 0.82rem;
}

@media (min-width: 640px) {
  .modal #modal-timer {
    font-size: 0.9rem;
  }
}

.modal-status {
  font-size: 17px;
  font-weight: 700;
  text-align: center;
  margin: 0 0 8px 0;
  color: #374151;
}

@media (min-width: 640px) {
  .modal-status {
    font-size: 18px;
    margin: 0 0 10px 0;
  }
}

.blink {
  animation: blink 1.8s infinite;
}

@keyframes blink {
  0% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
  100% {
    opacity: 1;
  }
}

.modal-subtitle {
  text-align: center;
  color: #9ca3af;
  margin-top: 0;
  font-size: 0.82rem;
  font-weight: 500;
}

@media (min-width: 640px) {
  .modal-subtitle {
    font-size: 0.88rem;
  }
}

.modal-amount {
  text-align: center;
  font-size: 34px;
  font-weight: 900;
  color: #00B44A;
  margin: 8px 0 20px 0;
  letter-spacing: -0.5px;
}

@media (min-width: 480px) {
  .modal-amount {
    font-size: 36px;
    margin: 10px 0 22px 0;
  }
}

@media (min-width: 640px) {
  .modal-amount {
    font-size: 38px;
    margin: 12px 0 24px 0;
  }
}

.copy-btn-wrap {
  text-align: center;
  margin-top: 24px;
}

.primary-copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #00B44A;
  border: none;
  color: #fff;
  padding: 15px 28px;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 180, 74, 0.3);
  transition: all 0.2s;
  font-size: 0.92rem;
  letter-spacing: 0.3px;
  width: 100%;
  max-width: 360px;
}

.primary-copy svg {
  fill: white;
}

@media (min-width: 480px) {
  .primary-copy {
    padding: 16px 32px;
    gap: 9px;
    font-size: 0.96rem;
  }
}

@media (min-width: 640px) {
  .primary-copy {
    padding: 17px 36px;
    gap: 10px;
    font-size: 1rem;
  }
}

.primary-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 180, 74, 0.4);
  background: #0a8f3b;
}

.primary-copy:active {
  transform: translateY(0);
}

.pix-instructions {
  font-size: 0.82rem;
  color: #6b7280;
  text-align: center;
  margin-top: 28px;
  background: transparent;
  padding: 0;
  border-radius: 0;
  line-height: 1.8;
}

.pix-instructions p {
  margin: 0;
  font-size: 0.84rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 300px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .pix-instructions {
    font-size: 0.86rem;
  }
}

