/* HeroForge 3.5 — Static Public Pages
   Premium modern design · Mobile-first · Purple Material 3 palette */

/* ── Fonts ─────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ── Reset & Base ──────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  color: #1c1b1f;
  background: #fef7ff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
::selection { background: rgba(103,80,164,.2); }
a { color: #6750A4; text-decoration: none; transition: color .2s; }
a:hover { color: #53389e; text-decoration: underline; }
ul { padding-left: 1.5em; }
li { margin-bottom: 6px; }

/* ── Layout ────────────────────────────────────────────────────── */
.page-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
.page-content { flex: 1; }
.container { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1000px; margin: 0 auto; padding: 0 24px; }

/* ── Header ────────────────────────────────────────────────────── */
.site-header {
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(254,247,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(103,80,164,.08);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow .3s;
}
.site-header.scrolled {
  box-shadow: 0 1px 12px rgba(103,80,164,.08);
}
.site-header .inner {
  max-width: 1000px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #1c1b1f;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}
.brand-icon {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #6750A4, #9a82db);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
}
.brand-icon svg { width: 18px; height: 18px; }
.brand:hover { text-decoration: none; color: #6750A4; }
.header-spacer { flex: 1; }

.language-select {
  border: 1px solid rgba(103,80,164,.25);
  border-radius: 16px;
  background: rgba(255,255,255,.72);
  color: #49454f;
  font: inherit;
  font-size: .82rem;
  font-weight: 600;
  padding: 6px 10px;
  max-width: 132px;
}

.nav-links { display: none; gap: 2px; }
.nav-links a {
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: #49454f;
  transition: all .2s;
  text-decoration: none;
}
.nav-links a:hover { background: rgba(103,80,164,.06); color: #6750A4; text-decoration: none; }
.nav-links a.active { color: #6750A4; background: rgba(103,80,164,.08); }

.btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  background: #6750A4;
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-login:hover { background: #53389e; color: #fff; text-decoration: none; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(103,80,164,.25); }

/* Mobile menu */
.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  border-radius: 12px;
  color: #49454f;
  transition: background .2s;
}
.mobile-menu-btn:hover { background: rgba(103,80,164,.06); }
.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 8px 24px 20px;
  background: rgba(254,247,255,.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(103,80,164,.08);
  animation: slideDown .2s ease;
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 0.95rem;
  color: #49454f;
  font-weight: 500;
  text-decoration: none;
}
.mobile-nav a:hover { background: rgba(103,80,164,.06); color: #6750A4; text-decoration: none; }

@media (min-width: 640px) {
  .nav-links { display: flex; }
  .mobile-menu-btn { display: none; }
}

/* ── Footer ────────────────────────────────────────────────────── */
.site-footer {
  padding: 32px 24px;
  background: linear-gradient(180deg, rgba(103,80,164,.03) 0%, rgba(103,80,164,.06) 100%);
  border-top: 1px solid rgba(103,80,164,.08);
}
.footer-inner {
  max-width: 1000px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 6px;
  margin-bottom: 16px;
}
.footer-links a {
  font-size: 0.85rem;
  color: #6750A4;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background .2s;
  font-weight: 500;
  text-decoration: none;
}
.footer-links a:hover { background: rgba(103,80,164,.08); text-decoration: none; }
.footer-disclaimer {
  text-align: center;
  font-size: 0.8rem;
  color: #79747e;
  max-width: 560px;
  margin: 0 auto 10px;
  line-height: 1.6;
}
.footer-disclaimer a { color: #6750A4; font-weight: 500; }
.footer-copyright {
  text-align: center;
  font-size: 0.78rem;
  color: #aea9b4;
  letter-spacing: 0.01em;
}

/* ── Typography ────────────────────────────────────────────────── */
h1 {
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: #1c1b1f;
}
h2 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  margin-top: 32px;
  letter-spacing: -0.01em;
}
h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; margin-top: 20px; }
p { margin-bottom: 16px; color: #49454f; }
@media (min-width: 640px) {
  h1 { font-size: 2.5rem; }
  h2 { font-size: 1.55rem; }
  h3 { font-size: 1.15rem; }
}

/* ── Sections ──────────────────────────────────────────────────── */
.section { padding: 48px 24px; }
.section--alt { background: rgba(103,80,164,.02); }
.section--accent {
  background: linear-gradient(135deg, rgba(103,80,164,.06) 0%, rgba(103,80,164,.02) 100%);
}
.section-title {
  text-align: center;
  margin-bottom: 32px;
  color: #1c1b1f;
}

.text-center { text-align: center; }
.text-muted { color: #79747e; }
.text-subtitle {
  font-size: 1.05rem;
  color: #49454f;
  line-height: 1.7;
}
.mb-0 { margin-bottom: 0; }
.mb-12 { margin-bottom: 12px; }
.mb-20 { margin-bottom: 20px; }
.mb-32 { margin-bottom: 32px; }

/* ── Buttons ───────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all .25s;
  cursor: pointer;
  border: none;
  letter-spacing: 0.01em;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, #6750A4 0%, #7c67c2 100%);
  color: #fff;
  box-shadow: 0 2px 8px rgba(103,80,164,.2);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(103,80,164,.3);
  background: linear-gradient(135deg, #53389e 0%, #6750A4 100%);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(103,80,164,.3);
  color: #6750A4;
}
.btn-outline:hover {
  background: rgba(103,80,164,.06);
  border-color: #6750A4;
}
.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  padding: 56px 24px 64px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(103,80,164,.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(154,130,219,.06) 0%, transparent 50%),
    #fef7ff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(103,80,164,.04) 0%, transparent 70%);
  border-radius: 50%;
}
.hero-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, #6750A4, #9a82db);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  box-shadow: 0 8px 24px rgba(103,80,164,.15);
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.hero-icon svg { width: 32px; height: 32px; color: #fff; stroke: #fff; }
.hero h1 {
  margin-bottom: 20px;
  background: linear-gradient(135deg, #1c1b1f 0%, #6750A4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero .text-subtitle { max-width: 560px; margin: 0 auto 32px; }
@media (min-width: 640px) {
  .hero { padding: 80px 48px 88px; }
  .hero-icon { width: 80px; height: 80px; border-radius: 24px; }
  .hero-icon svg { width: 40px; height: 40px; }
  .hero h1 { font-size: 3rem; }
}

/* ── Feature cards ─────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.feature-card {
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(103,80,164,.08);
  background: rgba(255,255,255,.6);
  backdrop-filter: blur(8px);
  transition: all .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(103,80,164,.1);
  border-color: rgba(103,80,164,.15);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(103,80,164,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  color: #6750A4;
  transition: all .3s;
}
.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, #6750A4, #9a82db);
  color: #fff;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { margin-top: 0; font-size: 1rem; color: #1c1b1f; }
.feature-card p { margin-bottom: 0; font-size: 0.92rem; color: #625b71; line-height: 1.6; }
@media (min-width: 500px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── Steps ─────────────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: 1fr; gap: 32px; }
.step {
  text-align: center;
  position: relative;
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(103,80,164,.1) 0%, rgba(103,80,164,.04) 100%);
  color: #6750A4;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 16px;
  transition: all .3s;
}
.step:hover .step-number {
  background: linear-gradient(135deg, #6750A4, #9a82db);
  color: #fff;
  transform: scale(1.05);
}
.step h3 { margin-top: 4px; color: #1c1b1f; }
.step p { color: #625b71; margin-bottom: 0; }
@media (min-width: 640px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

/* ── FAQ ───────────────────────────────────────────────────────── */
.faq-item {
  border-bottom: 1px solid rgba(103,80,164,.08);
  transition: background .2s;
}
.faq-item:hover { background: rgba(103,80,164,.02); }
.faq-item summary {
  padding: 18px 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #1c1b1f;
  transition: color .2s;
}
.faq-item summary:hover { color: #6750A4; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  background: rgba(103,80,164,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236750A4' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  transition: all .3s;
}
.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M5 12h14'/%3E%3C/svg%3E");
  background-color: #6750A4;
  transform: rotate(0);
}
.faq-item .faq-answer {
  padding: 0 8px 20px 20px;
  color: #625b71;
  line-height: 1.7;
  animation: fadeIn .3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-item .faq-answer a { font-weight: 500; }

/* ── Legal pages (terms, privacy) ──────────────────────────────── */
.legal-meta {
  display: inline-block;
  font-size: 0.82rem;
  color: #79747e;
  margin-bottom: 28px;
  padding: 4px 12px;
  background: rgba(103,80,164,.06);
  border-radius: 6px;
}
.legal-section { line-height: 1.75; }
.legal-section h2 {
  font-size: 1.15rem;
  margin-top: 32px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(103,80,164,.06);
}
.legal-section h2:first-child { margin-top: 0; }
.legal-section p { color: #49454f; }
.legal-section ul { margin-bottom: 16px; }
.legal-section li { color: #49454f; }
.legal-section strong { color: #1c1b1f; }

/* ── About page extras ────────────────────────────────────────── */
.about-intro {
  font-size: 1.1rem;
  line-height: 1.8;
  color: #49454f;
}

/* ── Smooth scroll shadow on header ────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  .feature-card, .step-number, .hero-icon, .btn {
    transition-timing-function: cubic-bezier(.4, 0, .2, 1);
  }
}

/* ── LGPD Consent Banner ───────────────────────────────────────── */
.lgpd-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(254,247,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(103,80,164,.1);
  box-shadow: 0 -4px 24px rgba(103,80,164,.08);
  padding: 20px 24px;
  animation: slideUp .4s cubic-bezier(.4,0,.2,1);
}
.lgpd-banner.hidden { display: none; }
@keyframes slideUp {
  from { opacity: 0; transform: translateY(100%); }
  to   { opacity: 1; transform: translateY(0); }
}
.lgpd-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.lgpd-content {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.lgpd-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #6750A4, #9a82db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.lgpd-icon svg { width: 20px; height: 20px; }
.lgpd-text h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 6px;
  color: #1c1b1f;
}
.lgpd-text p {
  font-size: 0.88rem;
  color: #49454f;
  margin: 0;
  line-height: 1.6;
}
.lgpd-text a { font-weight: 600; }
.lgpd-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.lgpd-btn {
  padding: 10px 22px;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
  transition: all .2s;
  font-family: inherit;
}
.lgpd-btn--outline {
  background: transparent;
  border: 1.5px solid rgba(103,80,164,.25);
  color: #6750A4;
}
.lgpd-btn--outline:hover {
  background: rgba(103,80,164,.06);
  border-color: #6750A4;
}
.lgpd-btn--primary {
  background: linear-gradient(135deg, #6750A4, #7c67c2);
  color: #fff;
  box-shadow: 0 2px 8px rgba(103,80,164,.2);
}
.lgpd-btn--primary:hover {
  background: linear-gradient(135deg, #53389e, #6750A4);
  box-shadow: 0 4px 14px rgba(103,80,164,.3);
  transform: translateY(-1px);
}
.lgpd-disclaimer {
  background: rgba(103,80,164,.05);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.85rem;
  color: #49454f;
  line-height: 1.55;
  margin-top: 10px;
}
.lgpd-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
}
.lgpd-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #6750A4;
  text-decoration: none;
}
.lgpd-links a:hover { text-decoration: underline; }
.lgpd-links svg { width: 16px; height: 16px; flex-shrink: 0; }
@media (min-width: 640px) {
  .lgpd-inner {
    flex-direction: row;
    align-items: flex-start;
    gap: 24px;
  }
  .lgpd-content { flex: 1; }
  .lgpd-actions { flex-shrink: 0; padding-top: 8px; }
}

/* Preferences Modal */
.pref-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(28,27,31,.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  animation: prefFadeIn .25s ease;
}
.pref-overlay.active { display: flex; }
@keyframes prefFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.pref-modal {
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(103,80,164,.18), 0 0 0 1px rgba(103,80,164,.06);
  animation: prefSlideUp .3s cubic-bezier(.4,0,.2,1);
}
@keyframes prefSlideUp {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.pref-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px 24px 0;
}
.pref-header-icon {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #6750A4, #9a82db);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.pref-header-icon svg { width: 18px; height: 18px; }
.pref-header h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1c1b1f;
  margin: 0;
}
.pref-body { padding: 20px 24px; }
.pref-body > p {
  font-size: 0.88rem;
  color: #49454f;
  line-height: 1.6;
  margin: 0 0 20px;
}
.pref-section {
  border: 1px solid rgba(103,80,164,.1);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
}
.pref-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.pref-section-info h4 {
  font-size: 0.92rem;
  font-weight: 600;
  color: #1c1b1f;
  margin: 0 0 2px;
}
.pref-section-info span {
  font-size: 0.8rem;
  color: #79747e;
}
.pref-section p.pref-detail {
  font-size: 0.82rem;
  color: #49454f;
  line-height: 1.5;
  margin: 10px 0 0;
}
/* Toggle switch */
.pref-toggle {
  position: relative;
  width: 44px;
  height: 26px;
  flex-shrink: 0;
}
.pref-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}
.pref-toggle-track {
  position: absolute;
  inset: 0;
  border-radius: 13px;
  background: #e0dce4;
  cursor: pointer;
  transition: background .2s;
}
.pref-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.15);
  transition: transform .2s;
}
.pref-toggle input:checked + .pref-toggle-track {
  background: #6750A4;
}
.pref-toggle input:checked + .pref-toggle-track::after {
  transform: translateX(18px);
}
.pref-toggle input:disabled + .pref-toggle-track {
  opacity: .6;
  cursor: default;
}
.pref-footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 0 24px 24px;
}
.pref-link-privacy {
  display: block;
  text-align: center;
  padding: 0 24px 20px;
  font-size: 0.82rem;
}
.pref-link-privacy a {
  color: #6750A4;
  font-weight: 600;
  text-decoration: none;
}
.pref-link-privacy a:hover { text-decoration: underline; }
