/* =========================================================
   HUB DO CASAL — Design System
   Tokens herdados do app (React/Tailwind) adaptados p/ CSS puro
   ========================================================= */

:root {
  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --primary: hsl(340 65% 47%);
  --primary-hover: hsl(340 65% 42%);
  --primary-soft: hsl(340 40% 93%);
  --primary-foreground: #ffffff;

  --background: hsl(30 25% 98%);
  --foreground: hsl(340 20% 12%);
  --muted-foreground: hsl(340 10% 40%);

  --card: #ffffff;
  --secondary: hsl(30 30% 94%);
  --muted: hsl(30 20% 95%);
  --accent: hsl(340 40% 93%);
  --border: hsl(30 15% 88%);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 3px rgba(60, 10, 30, 0.06);
  --shadow-md: 0 8px 24px rgba(60, 10, 30, 0.10);
  --shadow-lg: 0 20px 50px rgba(60, 10, 30, 0.14);

  --header-h: 68px;
}

/* Dark mode */
html.dark {
  --primary: hsl(340 60% 60%);
  --primary-foreground: #1a1a1a;
  --background: hsl(340 15% 8%);
  --foreground: hsl(30 25% 96%);
  --muted-foreground: hsl(340 10% 62%);
  --card: hsl(340 12% 12%);
  --secondary: hsl(340 12% 15%);
  --muted: hsl(340 12% 14%);
  --accent: hsl(340 20% 18%);
  --border: hsl(340 15% 20%);
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

/* ============ RESET / BASE ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--background);
  color: var(--foreground);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background .3s ease, color .3s ease;
}

h1, h2, h3, h4 { font-family: var(--font-heading); line-height: 1.2; font-weight: 600; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-family: var(--font-body); font-weight: 600; font-size: 1.05rem; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
em { font-style: italic; color: var(--primary); }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 800px; }
.section { padding: 96px 0; }
.section-alt { background: var(--secondary); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { margin: 16px 0 12px; }
.section-head p { color: var(--muted-foreground); }

.badge {
  display: inline-block; font-size: .8rem; font-weight: 600;
  color: var(--primary); background: var(--primary-soft);
  padding: 6px 16px; border-radius: 999px; letter-spacing: .02em;
}

/* ============ BOTÕES ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  padding: 12px 24px; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s, color .2s, border-color .2s;
  user-select: none;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn small { font-weight: 400; opacity: .85; }

.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }

.btn-ghost { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-ghost:hover { background: var(--secondary); }

.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: var(--primary-soft); }
.btn-outline-light { border-color: rgba(255,255,255,.5); color: #fff; }
.btn-outline-light:hover { background: rgba(255,255,255,.12); }

.btn-lg { padding: 15px 32px; font-size: 1rem; }
.btn.full { width: 100%; }

.icon-btn {
  background: transparent; border: 1px solid var(--border); color: var(--foreground);
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: background .2s, transform .15s;
}
.icon-btn:hover { background: var(--secondary); }
.icon-btn:active { transform: scale(.94); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--background) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.1rem; }
.logo-mark { font-size: 1.4rem; }
.logo-text { font-family: var(--font-heading); }

.nav-desktop { display: flex; gap: 28px; }
.nav-desktop a { font-size: .95rem; font-weight: 500; color: var(--muted-foreground); transition: color .2s; }
.nav-desktop a:hover { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 10px; }

/* Toggle dark mode */
.icon-sun { display: none; }
html.dark .icon-sun { display: inline; }
html.dark .icon-moon { display: none; }

/* Menu mobile */
.menu-toggle { display: none; flex-direction: column; gap: 4px; align-items: center; }
.menu-toggle .bar { width: 18px; height: 2px; background: var(--foreground); border-radius: 2px; transition: transform .25s, opacity .2s; }

.nav-mobile { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 20px; background: var(--background); border-top: 1px solid var(--border); }
.nav-mobile a { padding: 12px 8px; border-radius: var(--radius-sm); font-weight: 500; }
.nav-mobile a:hover { background: var(--secondary); }
.nav-mobile.open { display: flex; }

/* ============ HERO ============ */
.hero { padding: 80px 0 100px; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }

.hero-copy h1 { margin: 20px 0; }
.hero-copy .lead { font-size: 1.15rem; color: var(--muted-foreground); max-width: 480px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin: 28px 0; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted-foreground); font-size: .9rem; font-weight: 500; }

/* ============ MOCKUP CELULAR ============ */
.hero-visual { display: flex; justify-content: center; }
.phone {
  width: 290px; height: 590px; border-radius: 42px;
  background: #1c1c1e; padding: 12px;
  box-shadow: var(--shadow-lg); position: relative;
  transform: rotate(3deg);
}
.phone-notch { width: 120px; height: 22px; background: #1c1c1e; border-radius: 0 0 16px 16px; position: absolute; top: 0; left: 50%; transform: translateX(-50%); z-index: 2; }
.phone-screen { background: var(--card); border-radius: 30px; height: 100%; padding: 24px 16px; display: flex; flex-direction: column; gap: 14px; overflow: hidden; }

.phone-topbar { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; }
.phone-greeting { font-weight: 600; }
.phone-date { color: var(--muted-foreground); font-size: .75rem; }

.phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.phone-quick {
  border-radius: 14px; padding: 14px 8px; text-align: center;
  font-size: .72rem; font-weight: 600; line-height: 1.4;
}
.phone-quick.pink { background: hsl(340 40% 93%); }
.phone-quick.rose { background: hsl(350 40% 93%); }
.phone-quick.amber { background: hsl(40 60% 92%); }
.phone-quick.blue { background: hsl(210 60% 92%); }
.phone-quick.green { background: hsl(150 40% 92%); }
.phone-quick.violet { background: hsl(260 50% 93%); }
html.dark .phone-quick { filter: brightness(.8); }

.phone-card { background: var(--secondary); border-radius: 14px; padding: 14px; }
.phone-card-label { font-size: .68rem; color: var(--muted-foreground); }
.phone-card-row { display: flex; justify-content: space-between; font-size: .8rem; margin: 6px 0 8px; }
.phone-progress { height: 8px; background: var(--border); border-radius: 99px; overflow: hidden; }
.phone-progress-fill { height: 100%; background: var(--primary); border-radius: 99px; }

.phone-bottomnav { display: flex; justify-content: space-between; margin-top: auto; padding: 10px 6px 2px; border-top: 1px solid var(--border); font-size: 1.1rem; }
.phone-bottomnav .active { transform: translateY(-3px); }

/* ============ MÓDULOS ============ */
.modules-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.module-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.module-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.module-icon { font-size: 2rem; display: block; margin-bottom: 14px; }
.module-card p { color: var(--muted-foreground); font-size: .92rem; margin-top: 8px; }

/* ============ DESTAQUES ============ */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feature { display: flex; gap: 18px; align-items: flex-start; }
.feature-icon { font-size: 1.6rem; flex-shrink: 0; }
.feature p { color: var(--muted-foreground); font-size: .92rem; margin-top: 4px; }

/* ============ STEPS ============ */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; counter-reset: step; }
.step { text-align: center; padding: 32px 24px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); }
.step-num {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--primary); color: var(--primary-foreground);
  font-weight: 700; font-size: 1.2rem; margin-bottom: 16px;
}
.step p { color: var(--muted-foreground); font-size: .92rem; margin-top: 8px; }

/* ============ SCREENSHOTS ============ */
.screenshots { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.shot { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.shot img { width: 100%; aspect-ratio: 9/16; object-fit: cover; }
.shot-placeholder {
  aspect-ratio: 9/16; background: var(--muted); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; gap: 6px;
  color: var(--muted-foreground); font-size: .85rem; padding: 12px;
}
.shot-placeholder small { opacity: .7; }

/* ============ PRICING ============ */
.pricing { display: flex; justify-content: center; }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 24px;
  padding: 40px; max-width: 460px; width: 100%; box-shadow: var(--shadow-md); text-align: center;
}
.price-label { display: inline-block; font-size: .8rem; font-weight: 600; color: var(--primary); background: var(--primary-soft); padding: 5px 14px; border-radius: 999px; margin-bottom: 20px; }
.price-value { font-size: 1.1rem; color: var(--muted-foreground); margin-bottom: 24px; }
.price-value strong { font-size: 3rem; color: var(--foreground); font-family: var(--font-heading); }
.price-note { display: block; font-size: .8rem; }
.price-features { text-align: left; margin: 0 auto 28px; max-width: 320px; display: grid; gap: 10px; font-size: .95rem; }
.price-meta { font-size: .8rem; color: var(--muted-foreground); margin-top: 14px; }

/* ============ FAQ ============ */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::after { content: '+'; font-size: 1.4rem; color: var(--primary); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 22px 18px; color: var(--muted-foreground); font-size: .94rem; }

/* ============ CTA FINAL ============ */
.cta-final { background: linear-gradient(135deg, hsl(340 65% 40%), hsl(330 60% 50%)); color: #fff; text-align: center; padding: 96px 0; }
.cta-final h2 { margin-bottom: 12px; }
.cta-final p { opacity: .9; margin-bottom: 28px; }
.cta-final .hero-cta { justify-content: center; }

/* ============ FOOTER ============ */
.site-footer { background: var(--card); border-top: 1px solid var(--border); padding: 56px 0 0; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; padding-bottom: 40px; }
.footer-brand p { color: var(--muted-foreground); max-width: 320px; margin-top: 12px; font-size: .92rem; }
.footer-links { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-links h4 { font-family: var(--font-body); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted-foreground); margin-bottom: 14px; }
.footer-links a { display: block; padding: 4px 0; color: var(--muted-foreground); font-size: .92rem; transition: color .2s; }
.footer-links a:hover { color: var(--foreground); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; text-align: center; color: var(--muted-foreground); font-size: .85rem; }

/* ============ ANIMAÇÕES (scroll reveal) ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ============ RESPONSIVO ============ */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-copy .lead { margin: 0 auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-visual { order: -1; }
  .phone { width: 240px; height: 500px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .header-actions .btn-ghost { display: none; }
  .section { padding: 64px 0; }
}

/* Acessibilidade: respeitar usuários que preferem menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}
