@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;700;800&family=Permanent+Marker&family=Playfair+Display:ital,wght@0,600;1,600&family=Inter:ital,wght@0,500;0,700;0,800;0,900;1,800&family=Lato:wght@400;700&display=swap');

:root {
  --cream: #f6ecd6;
  --cream-dark: #ecdfc0;
  --pink: #ee4f95;
  --pink-dark: #c22d72;
  --pink-light: #f9d6e8;
  --yellow: #f7e9a0;
  --yellow-paper: #f7e6a3;
  --yellow-paper-line: #cdd8e0;
  --yellow-paper-margin: #e2897e;
  --sky: #bfe3ef;
  --sky-line: #a9d4e3;
  --stamp-blue: #2c5a8a;
  --blue: #c3e3f2;
  --ink: #1c1a17;
  --paper: #fffdf7;
  --shadow: 6px 6px 0 var(--ink);
  --shadow-sm: 4px 4px 0 var(--ink);
  --radius: 18px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Lato', sans-serif;
  color: var(--ink);
  overflow-x: hidden;
  background-color: var(--yellow-paper);
  background-image:
    linear-gradient(var(--yellow-paper-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--yellow-paper-margin) 2px, transparent 2px);
  background-size: 100% 30px, 100% 100%;
  background-position: 0 8px, 46px 0;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  padding: 16px 32px;
  border-radius: 999px;
  border: 3px solid var(--ink);
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  background-color: var(--sky);
  background-image:
    linear-gradient(var(--sky-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--sky-line) 1px, transparent 1px);
  background-size: 28px 28px;
  padding: 64px 0 80px;
  position: relative;
}

.hero-badge {
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: center;
}

.logo-img {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.title-lockup {
  font-family: 'Baloo 2', sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 8vw, 4.4rem);
  line-height: .95;
  color: var(--cream);
  -webkit-text-stroke: 3px var(--ink);
  text-shadow: 4px 4px 0 var(--ink);
  letter-spacing: 1px;
  margin: 0;
}

.title-sub {
  font-family: 'Permanent Marker', cursive;
  font-size: clamp(1.8rem, 6vw, 3rem);
  color: var(--pink);
  -webkit-text-stroke: 1.5px var(--ink);
  text-shadow: 3px 3px 0 var(--ink);
  transform: rotate(-2deg);
  display: inline-block;
  margin-top: -6px;
}

.tagline-box {
  background: var(--blue);
  border: 3px dashed var(--ink);
  border-radius: 14px;
  padding: 18px 22px;
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.3rem;
  text-align: center;
}

.hero-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 28px;
  font-size: 1.15rem;
  line-height: 1.5;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 32px;
}
.meta-pill {
  background: var(--paper);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 700;
  font-size: .95rem;
  box-shadow: var(--shadow-sm);
}

.hero-cta { text-align: center; }
.hero-cta .btn { font-size: 1.2rem; padding: 20px 44px; }
.hero-note { margin-top: 12px; font-size: .9rem; opacity: .75; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-yellow {
  background-color: var(--yellow-paper);
  background-image: linear-gradient(var(--yellow-paper-line) 1px, transparent 1px);
  background-size: 100% 30px;
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
}
.section-cream { background: var(--cream); }
.section-pink { background: var(--pink); color: #fff; }

.section-title {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  text-align: center;
  margin: 0 0 12px;
  line-height: 1.35;
  letter-spacing: -0.03em;
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}
.section-title .accent {
  position: relative;
  display: inline-block;
  font-family: inherit;
  font-weight: 800;
  color: var(--ink);
  background: var(--pink-light);
  border-left: 1.5px solid var(--pink-dark);
  border-right: 1.5px solid var(--pink-dark);
  padding: 1px 12px;
  margin: 0 4px;
  text-decoration: none;
}
.section-title .accent::before,
.section-title .accent::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--pink-dark);
  border-radius: 50%;
}
.section-title .accent::before { top: -3px; left: -3px; }
.section-title .accent::after { bottom: -3px; right: -3px; }

.section-pink .section-title .accent {
  background: var(--yellow);
  border-color: var(--pink-dark);
}
.section-pink .section-title .accent::before,
.section-pink .section-title .accent::after {
  background: var(--pink-dark);
}
.section-lead { text-align: center; max-width: 640px; margin: 0 auto 40px; font-size: 1.1rem; opacity: .85; }

/* sticker card grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 40px 32px;
}
.card-grid-2col {
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 20px;
}
@media (max-width: 420px) {
  .card-grid-2col { gap: 28px 14px; }
  .card-grid-2col .icon { font-size: 2.2rem; }
}
.sticker-card {
  background: transparent;
  padding: 0;
  transition: transform .25s ease;
}
.sticker-card:hover { transform: translateY(-4px); }
.sticker-card:hover .icon { transform: scale(1.08) rotate(-4deg); }
.sticker-card .icon {
  display: inline-block;
  font-size: 3rem;
  line-height: 1;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 16px rgba(28, 26, 23, .18));
  transition: transform .25s ease;
}
.sticker-card h3 {
  font-size: 1.15rem;
  margin: 0 0 10px;
  padding-bottom: 12px;
  position: relative;
}
.sticker-card h3::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 30px;
  height: 3px;
  border-radius: 2px;
  background: var(--pink-dark);
}
.card-grid .sticker-card:nth-child(4n+2) h3::after { background: var(--stamp-blue); }
.card-grid .sticker-card:nth-child(4n+3) h3::after { background: var(--pink); }
.card-grid .sticker-card:nth-child(4n+4) h3::after { background: var(--mint-dark); }
.sticker-card p { margin: 0; line-height: 1.6; font-size: .95rem; opacity: .8; }

/* collage / scrapbook date block */
.collage { max-width: 440px; margin: 0 auto 32px; }

.collage-date-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--ink);
}
.collage-month,
.collage-year {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  color: var(--ink);
}

.collage-day-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 22px;
}
.collage-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--pink-dark);
  border: 2px solid var(--ink);
  flex-shrink: 0;
}
.collage-weekday {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: .9rem;
}
.collage-daynum {
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  font-size: 1.6rem;
  margin-left: auto;
}

.collage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.collage-badge {
  font-family: 'Lato', sans-serif;
  font-weight: 700;
  font-size: .85rem;
  padding: 7px 16px;
  border-radius: 6px;
}
.badge-pink { background: var(--pink-light); transform: rotate(-3deg); }
.badge-blue { background: var(--blue); transform: rotate(2deg); }
.badge-yellow { background: var(--yellow); transform: rotate(-2deg); }

/* bonus / sorteio strip */
.bonus-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}
.bonus-item {
  background: var(--cream);
  color: var(--ink);
  border: none;
  border-radius: 20px;
  padding: 26px 28px;
  max-width: 320px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  text-align: center;
}
.bonus-item .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 1.8rem;
  border-radius: 16px;
  background: var(--paper);
}
.bonus-item h3 { margin: 14px 0 6px; }
.bonus-item p { margin: 0; font-size: .92rem; opacity: .85; }

/* pricing */
.price-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}
.price-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 34px;
  text-align: center;
  position: relative;
}
.price-card-highlight { border-color: var(--pink-dark); }
.tag-best {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--pink);
  color: #fff;
  font-weight: 800;
  font-size: .8rem;
  padding: 5px 16px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.price-card .label { font-family: 'Inter', sans-serif; font-weight: 800; color: var(--pink-dark); font-size: 1.1rem; letter-spacing: -0.02em; }
.price-value { font-size: 3rem; font-weight: 800; margin: 6px 0 4px; }
.price-value small { font-size: 1.2rem; font-weight: 700; }
.price-list { text-align: left; margin: 20px 0; padding: 0; list-style: none; }
.price-list li { padding: 8px 0; border-bottom: 1px dashed var(--ink); font-size: .96rem; }
.price-list li:last-child { border-bottom: none; }

/* FAQ */
.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  padding: 16px 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: max-height .25s ease, padding .25s ease;
  font-size: .95rem;
  line-height: 1.5;
}
.faq-item.open .faq-a { padding: 0 20px 18px; max-height: 300px; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.chev { transition: transform .2s ease; }

/* Footer */
footer {
  background: var(--ink);
  color: var(--cream);
  padding: 30px 0;
  text-align: center;
  font-size: .85rem;
}

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20,15,10,.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  overflow-y: auto;
  z-index: 100;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 520px;
  width: 100%;
  padding: 30px;
  position: relative;
  margin: auto 0;
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-weight: 800;
  cursor: pointer;
  line-height: 1;
}
.modal h2 {
  font-family: 'Baloo 2', sans-serif;
  font-size: 1.5rem;
  margin: 0 0 6px;
  text-align: center;
}
.modal .modal-sub { text-align: center; font-size: .9rem; opacity: .75; margin-bottom: 22px; }

.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: .92rem; margin-bottom: 6px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select {
  width: 100%;
  padding: 12px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  font-family: 'Lato', sans-serif;
  font-size: .95rem;
  background: #fff;
}
.field input:focus, .field select:focus { outline: 3px solid var(--blue); }
.field-row { display: flex; gap: 10px; }
.field-row .field { flex: 1; }
.field-row > input,
.field-row > select { flex: 1; min-width: 0; }

.radio-group { display: flex; gap: 10px; }
.radio-option {
  flex: 1;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  font-weight: 700;
  font-size: .9rem;
}
.radio-option input { display: none; }
.plan-price { display: block; font-size: .78rem; font-weight: 700; opacity: .8; margin-top: 2px; }
.radio-option.selected .plan-price { opacity: 1; }
.radio-option.selected { background: var(--pink); color: #fff; }

.hidden { display: none !important; }

.error-msg { color: #c0392b; font-size: .85rem; margin-top: 8px; text-align: center; min-height: 1.1em; }

/* payment step */
.pay-box { text-align: center; }
.pay-amount { font-size: 2rem; font-weight: 800; margin: 4px 0 18px; }
.qr-wrap {
  background: #fff;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 16px;
  display: inline-block;
  margin-bottom: 16px;
}
.qr-wrap img { width: 220px; height: 220px; }
.copy-box {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.copy-box input {
  flex: 1;
  border: 2.5px solid var(--ink);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .8rem;
  font-family: monospace;
  background: #fff;
}
.copy-box button {
  border: 2.5px solid var(--ink);
  background: var(--yellow);
  border-radius: 10px;
  padding: 0 16px;
  font-weight: 800;
  cursor: pointer;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  margin-top: 10px;
}
.spinner {
  width: 18px; height: 18px;
  border: 3px solid var(--ink);
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-box { text-align: center; }
.success-box .big-icon { font-size: 3.4rem; }

@media (max-width: 640px) {
  .field-row { flex-direction: column; }
  .field-row-inline { flex-direction: row; }
  .badge-card { padding: 22px 18px; }
}

/* validation popup */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 15, 10, .65);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}
.popup-overlay.active { display: flex; }
.popup-box {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 20px;
  box-shadow: var(--shadow);
  max-width: 380px;
  width: 100%;
  padding: 30px;
  text-align: center;
}
.popup-icon { font-size: 2.6rem; display: block; margin-bottom: 10px; }
.popup-box h3 { font-family: 'Baloo 2', sans-serif; font-size: 1.25rem; margin: 0 0 16px; }
.popup-box ul {
  text-align: left;
  margin: 0 0 22px;
  padding-left: 4px;
  list-style: none;
}
.popup-box ul li {
  font-weight: 700;
  font-size: .95rem;
  padding: 8px 0 8px 26px;
  border-bottom: 1px dashed var(--ink);
  position: relative;
}
.popup-box ul li:last-child { border-bottom: none; }
.popup-box ul li::before {
  content: '✗';
  position: absolute;
  left: 0;
  color: var(--pink-dark);
  font-weight: 800;
}
