:root {
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Schibsted Grotesk', system-ui, sans-serif;
  background:
    radial-gradient(ellipse 900px 600px at 50% -10%, #3a1e70 0%, transparent 60%),
    linear-gradient(165deg, #170b30 0%, #1B0E36 45%, #12081F 100%);
  color: #F3EFE7;
  overflow-x: hidden;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #C0A0FF; }
::selection { background: #C0A0FF; color: #1B0E36; }

@keyframes reDot { 0%, 80%, 100% { opacity: .25 } 40% { opacity: 1 } }

.page {
  max-width: 480px;
  margin: 0 auto;
  padding: 52px 20px 40px;
}

/* HERO */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}
.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(243,239,231,0.18);
  box-shadow: 0 16px 36px -14px rgba(0,0,0,0.6);
  margin-bottom: 16px;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero h1 { font-weight: 800; font-size: 22px; letter-spacing: -0.01em; margin: 0 0 6px; }
.tagline { font-size: 12.5px; font-weight: 600; color: #C0A0FF; letter-spacing: 0.02em; margin-bottom: 14px; }
.bio { font-size: 15px; line-height: 1.5; color: rgba(243,239,231,0.75); max-width: 320px; margin: 0 0 12px; }
.social-proof { font-size: 11.5px; line-height: 1.5; color: rgba(243,239,231,0.42); max-width: 320px; }

/* SOCIAL ICONS */
.socials { display: flex; justify-content: center; gap: 12px; margin-bottom: 26px; }
.social-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  color: rgba(243,239,231,0.85);
}

/* CHAT CTA */
.chat-cta {
  width: 100%;
  text-align: left;
  font-family: inherit;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 28px;
  color: #F3EFE7;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 14px;
}
.chat-cta-icon {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(140deg, #6E2CB8 0%, #B98CFF 100%);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 800;
}
.chat-cta-text { flex: 1; }
.chat-cta-title { display: block; font-size: 15px; font-weight: 700; line-height: 1.3; margin-bottom: 3px; }
.chat-cta-sub { display: block; font-size: 12.5px; color: rgba(243,239,231,0.55); }

/* MATERIAIS */
.materials-section { margin-bottom: 28px; }
.materials-label {
  font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(243,239,231,0.42); margin-bottom: 12px; padding: 0 2px;
}
.mat-scroll {
  display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory;
  margin: 0 -20px; padding: 0 20px 4px;
  scrollbar-width: none;
}
.mat-scroll::-webkit-scrollbar { display: none; }
.mat-card { flex: 0 0 148px; scroll-snap-align: start; text-decoration: none; }
.mat-thumb {
  position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; padding: 10px;
}
.mat-thumb-1 { background: linear-gradient(150deg, #2E1860 0%, #6E2CB8 65%, #B98CFF 130%); }
.mat-thumb-2 { background: linear-gradient(150deg, #1A0E36 0%, #4A1E8C 70%, #9B4DE0 130%); }
.mat-thumb-empty {
  background: rgba(255,255,255,0.05);
  border: 1px dashed rgba(255,255,255,0.2);
  opacity: 0.7;
}
.mat-badge {
  align-self: flex-start; font-size: 9px; font-weight: 700; letter-spacing: 0.08em;
  color: #F3EFE7; background: rgba(0,0,0,0.28); padding: 4px 8px; border-radius: 20px;
}
.mat-badge-muted { color: rgba(243,239,231,0.5); background: rgba(255,255,255,0.06); }
.mat-thumb-title {
  font-weight: 800; font-size: 19px; line-height: 1.05; letter-spacing: -0.02em;
  color: #F3EFE7; white-space: pre-line;
}
.mat-thumb-title-muted { color: rgba(243,239,231,0.5); }
.mat-desc { font-size: 13px; font-weight: 600; color: #F3EFE7; margin-top: 9px; line-height: 1.3; }

/* PODCAST */
.podcast-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 20px;
}
.podcast-card iframe { border-radius: 10px; display: block; }

/* FINAL CTAs */
.final-ctas { display: flex; flex-direction: column; gap: 10px; margin-bottom: 36px; }
.cta-row {
  display: flex; align-items: center; gap: 14px;
  border-radius: 16px; padding: 16px 18px;
}
.cta-whatsapp { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.28); }
.cta-engage { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.12); }
.cta-icon {
  width: 38px; height: 38px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
}
.cta-icon-wa { background: #25D366; color: #0b3d20; }
.cta-icon-en { background: rgba(255,255,255,0.1); color: #F3EFE7; font-size: 12px; }
.cta-text { flex: 1; }
.cta-title { display: block; font-size: 14.5px; font-weight: 700; color: #F3EFE7; line-height: 1.3; }
.cta-sub { display: block; font-size: 12.5px; color: rgba(243,239,231,0.55); margin-top: 2px; }

/* FOOTER */
.footer { text-align: center; padding: 8px 0 30px; font-size: 12.5px; color: rgba(243,239,231,0.38); }
.footer-link { font-weight: 700; color: rgba(243,239,231,0.6); }

/* CHAT MODAL */
.chat-backdrop {
  position: fixed; inset: 0; background: rgba(20,10,40,0.55);
  z-index: 200; display: flex;
}
.chat-backdrop.hidden { display: none; }
.chat-modal {
  width: 100%; height: 100dvh; background: #F4F1EA;
  overflow: hidden; display: flex; flex-direction: column;
  margin-left: auto; margin-right: auto;
  max-width: 480px;
}
.chat-header {
  background: linear-gradient(150deg, #20114A 0%, #2E1860 48%, #1A0E36 100%);
  color: #F3EFE7; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-left { display: flex; align-items: center; gap: 10px; }
.chat-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.chat-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.chat-header-name { font-size: 14px; font-weight: 700; }
.chat-header-status { font-size: 11.5px; color: #7CF29C; display: flex; align-items: center; gap: 5px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #7CF29C; display: inline-block; }
.chat-close { background: none; border: none; color: #F3EFE7; font-size: 20px; cursor: pointer; line-height: 1; padding: 6px; }

.chat-escape { padding: 8px 16px; border-bottom: 1px solid rgba(27,21,37,0.10); flex-shrink: 0; }
.chat-escape a { font-size: 12.5px; font-weight: 600; color: #6E2CB8; }

.chat-messages { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.bubble-wrap { display: flex; }
.bubble-wrap.user { justify-content: flex-end; }
.bubble-wrap.bot { justify-content: flex-start; }
.bubble {
  max-width: 78%; padding: 11px 15px; font-size: 14.5px; line-height: 1.45; white-space: pre-line;
}
.bubble.user { background: #6E2CB8; color: #fff; border-radius: 14px 14px 3px 14px; }
.bubble.bot { background: #FBFAF4; color: #1B1525; border: 1px solid rgba(27,21,37,0.16); border-radius: 14px 14px 14px 3px; }

.typing-dots { align-self: flex-start; display: flex; gap: 4px; padding: 10px 14px; }
.typing-dots span { width: 6px; height: 6px; border-radius: 50%; background: #8A8194; animation: reDot 1.2s infinite; }
.typing-dots span:nth-child(2) { animation-delay: .2s; }
.typing-dots span:nth-child(3) { animation-delay: .4s; }

.chat-options, .chat-multi { padding: 0 20px 16px; display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.chat-options.hidden, .chat-multi.hidden, .chat-suggested.hidden, .chat-capped.hidden, .chat-input-row.hidden { display: none; }

.option-btn {
  text-align: left; background: #FBFAF4; border: 1.5px solid rgba(27,21,37,0.16);
  border-radius: 10px; padding: 15px 16px; min-height: 48px;
  font-size: 15px; font-weight: 600; color: #1B1525; cursor: pointer; font-family: inherit;
  transition: border-color .15s, color .15s;
}
.option-btn:hover { border-color: #6E2CB8; }

.multi-btn {
  text-align: left; background: #FBFAF4; border: 1.5px solid rgba(27,21,37,0.16);
  border-radius: 10px; padding: 15px 16px; min-height: 48px;
  font-size: 15px; font-weight: 600; color: #1B1525; cursor: pointer; font-family: inherit;
}
.multi-btn.selected { background: #ede8f8; border-color: #6E2CB8; }
.multi-btn.maxed { opacity: 0.4; }
.multi-confirm-btn {
  margin-top: 6px; background: #6E2CB8; color: #fff; border: none; border-radius: 10px;
  padding: 14px; min-height: 48px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit;
}

.chat-suggested { padding: 0 20px 14px; display: flex; flex-wrap: wrap; gap: 8px; flex-shrink: 0; }
.chip-btn {
  background: #ECE7DB; border: 1px solid rgba(27,21,37,0.14); border-radius: 20px;
  padding: 9px 14px; font-size: 13px; font-weight: 600; color: #1B1525; cursor: pointer; font-family: inherit;
}

.chat-capped { margin: 0 20px 16px; background: #ECE7DB; border: 1px solid rgba(27,21,37,0.16); border-radius: 12px; padding: 16px; flex-shrink: 0; }
.chat-capped p { font-size: 13.5px; color: #4A4254; margin: 0 0 12px; line-height: 1.5; }
.chat-capped-btn {
  display: inline-flex; align-items: center; gap: 9px; background: #6E2CB8; color: #fff;
  padding: 12px 20px; border-radius: 10px; font-size: 14px; font-weight: 600; width: 100%;
  justify-content: center; box-sizing: border-box;
}

.chat-input-row {
  border-top: 1px solid rgba(27,21,37,0.16); padding: 14px 16px; display: flex; gap: 10px;
  flex-shrink: 0; background: #F4F1EA;
}
.chat-input-row input {
  flex: 1; min-height: 48px; font-family: inherit; font-size: 16px; color: #1B1525;
  background: #fff; border: 1.5px solid rgba(27,21,37,0.40); border-radius: 10px;
  padding: 12px 14px; outline: none;
}
.chat-input-row button {
  background: #6E2CB8; color: #fff; border: none; border-radius: 10px; padding: 0 20px;
  min-height: 48px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
}
