/* InstaPost — Landing Page
   Identidade visual inspirada nas cores do Instagram */

:root {
  --roxo: #833ab4;
  --rosa: #e1306c;
  --vermelho: #fd1d1d;
  --laranja: #f77737;
  --amarelo: #fcaf45;
  --gradient: linear-gradient(135deg, #833ab4 0%, #e1306c 50%, #f77737 100%);
  --gradient-soft: linear-gradient(135deg, rgba(131,58,180,0.08) 0%, rgba(225,48,108,0.08) 50%, rgba(247,119,55,0.08) 100%);

  --text: #1a1a2e;
  --text-light: #5a5a6e;
  --bg: #ffffff;
  --bg-light: #faf8fc;
  --bg-dark: #1a1226;
  --border: #ececf0;
  --card-bg: #ffffff;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 2px 16px rgba(131, 58, 180, 0.08);
  --shadow-hover: 0 8px 30px rgba(131, 58, 180, 0.15);
  --font: 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  line-height: 1.65;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-narrow { max-width: 760px; }

.gradient-text {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  padding: 0.8rem 1.6rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  border: 2px solid transparent;
  cursor: pointer;
  font-size: 0.98rem;
}
.btn-lg { padding: 1rem 2.2rem; font-size: 1.08rem; }

.btn-gradient {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 16px rgba(225, 48, 108, 0.3);
}
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(225, 48, 108, 0.4); }

.btn-outline {
  background: transparent;
  color: var(--roxo);
  border-color: var(--roxo);
}
.btn-outline:hover { background: var(--roxo); color: white; }

.btn-outline-light {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.2); }

.btn-white {
  background: white;
  color: var(--rosa);
}
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.2); }

/* ---------- Header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}
.logo img { border-radius: 7px; }
.nav {
  display: flex;
  align-items: center;
  gap: 1.6rem;
}
.nav a {
  text-decoration: none;
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.15s;
}
.nav a:hover { color: var(--rosa); }
.nav-btn {
  padding: 0.5rem 1.1rem;
  border-radius: 8px;
}
.nav-btn-primary {
  background: var(--gradient);
  color: white !important;
}
.nav-btn-primary:hover { opacity: 0.92; }

/* ---------- Hero ---------- */
.hero {
  padding: 5rem 0 6rem;
  background: var(--gradient-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.hero-badge {
  display: inline-block;
  background: white;
  color: var(--rosa);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
  box-shadow: var(--shadow);
}
.hero h1 {
  font-size: 3.2rem;
  line-height: 1.12;
  font-weight: 800;
  margin-bottom: 1.3rem;
  letter-spacing: -0.02em;
}
.hero-description {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
}
.hero-actions .btn-outline-light {
  background: white;
  color: var(--roxo);
  border-color: var(--border);
}
.hero-actions .btn-outline-light:hover { border-color: var(--roxo); }
.hero-note {
  font-size: 0.9rem;
  color: var(--text-light);
}

/* App mockup */
.hero-visual { display: flex; justify-content: center; }
.app-mockup {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(131, 58, 180, 0.25);
  overflow: hidden;
  width: 100%;
  max-width: 460px;
}
.mockup-header {
  background: var(--gradient);
  padding: 0.8rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.mockup-dot {
  width: 11px; height: 11px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.mockup-header span {
  color: white;
  font-weight: 600;
  margin-left: 0.6rem;
  font-size: 0.9rem;
}
.mockup-body { display: flex; min-height: 240px; }
.mockup-sidebar {
  background: #faf8fc;
  padding: 1rem 0.6rem;
  width: 42%;
  border-right: 1px solid var(--border);
}
.mockup-nav-item {
  padding: 0.55rem 0.7rem;
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text-light);
  margin-bottom: 0.2rem;
}
.mockup-nav-item.active { background: rgba(131,58,180,0.1); color: var(--roxo); font-weight: 600; }
.mockup-nav-item.highlight { background: var(--gradient); color: white; font-weight: 600; }
.mockup-content { padding: 1.2rem; flex: 1; display: flex; flex-direction: column; gap: 0.7rem; }
.mockup-card {
  background: #faf8fc;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.8rem;
  font-size: 0.85rem;
  color: var(--text);
}
.mockup-caption {
  text-align: center;
  font-size: 0.75rem;
  color: #aaa;
  padding: 0.5rem;
  font-style: italic;
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; }
.section-light { background: var(--bg-light); }
.section-dark { background: var(--bg-dark); }
.section-cta { background: var(--gradient); }

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.section-title.light { color: white; }
.section-subtitle {
  text-align: center;
  color: var(--text-light);
  max-width: 680px;
  margin: 0 auto 3rem;
  font-size: 1.1rem;
}

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.benefit-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: transform 0.2s, box-shadow 0.2s;
}
.benefit-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.benefit-icon {
  width: 52px; height: 52px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  background: var(--gradient-soft);
  border-radius: 12px;
  margin-bottom: 1rem;
}
.benefit-card h3 { font-size: 1.2rem; margin-bottom: 0.5rem; }
.benefit-card p { color: var(--text-light); font-size: 0.96rem; }

/* ---------- Features ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.feature-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  background: var(--gradient-soft);
  border-radius: 14px;
  margin-bottom: 1.2rem;
}
.feature-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.feature-card > p { color: var(--text-light); margin-bottom: 1rem; }
.feature-benefit {
  display: block;
  font-size: 0.9rem;
  color: var(--roxo);
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
  font-weight: 500;
}

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.step-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  padding: 2rem;
}
.step-number {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient);
  color: white;
  border-radius: 50%;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1.2rem;
}
.step-card h3 { color: white; font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-card p { color: rgba(255,255,255,0.7); font-size: 0.95rem; }
.steps-note {
  margin-top: 2.5rem;
  text-align: center;
}
.steps-note p {
  display: inline-block;
  background: rgba(252, 175, 69, 0.15);
  border: 1px solid rgba(252, 175, 69, 0.3);
  color: var(--amarelo);
  padding: 0.9rem 1.4rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

/* ---------- Audience ---------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.audience-card {
  background: white;
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.audience-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.audience-icon { font-size: 2.5rem; margin-bottom: 1rem; }
.audience-card h3 { font-size: 1.2rem; margin-bottom: 0.6rem; }
.audience-card p { color: var(--text-light); font-size: 0.96rem; }

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 1.5rem;
  align-items: start;
  max-width: 980px;
  margin: 3rem auto 0;
}
.price-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: center;
  position: relative;
}
.price-card.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient) border-box;
  box-shadow: var(--shadow-hover);
  transform: scale(1.04);
}
.price-badge {
  position: absolute;
  top: -13px; left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  padding: 0.35rem 1.1rem;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.price {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--roxo);
  margin-bottom: 1.5rem;
  line-height: 1;
}
.price span {
  display: block;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-light);
  margin-top: 0.4rem;
}
.price-card ul { list-style: none; text-align: left; margin-bottom: 2rem; }
.price-card ul li { padding: 0.5rem 0; color: var(--text-light); font-size: 0.95rem; }
.price-card .btn { width: 100%; }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 2.5rem; }
.faq-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq-item summary {
  padding: 1.2rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  position: relative;
  padding-right: 3rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  color: var(--rosa);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item p {
  padding: 0 1.5rem 1.3rem;
  color: var(--text-light);
  font-size: 0.96rem;
}

/* ---------- Footer ---------- */
.footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.6);
  padding: 3rem 0 2rem;
}
.footer-inner { text-align: center; }
.footer-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 1.2rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.2rem;
}
.footer-brand img { border-radius: 5px; }
.footer-nav {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.footer-nav a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
}
.footer-nav a:hover { color: white; }
.footer-disclaimer {
  font-size: 0.82rem;
  max-width: 640px;
  margin: 0 auto 1rem;
  color: rgba(255, 255, 255, 0.45);
}
.footer-copy { font-size: 0.85rem; }

/* Scroll-margin para âncoras (header fixo não esconde títulos) */
[id] { scroll-margin-top: 84px; }

/* Contraste: degradê com final mais escuro para texto branco legível */
.btn-gradient {
  background: linear-gradient(135deg, #833ab4 0%, #c1306c 60%, #cf5324 100%);
}
.mockup-caption { color: #767676; }

/* Foco visível (acessibilidade) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #833ab4;
  outline-offset: 2px;
}

/* Skip-link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--roxo);
  color: white;
  padding: 0.6rem 1rem;
  z-index: 1000;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* Menu mobile hamburger */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 0.3rem 0.5rem;
  color: var(--text);
  line-height: 1;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    gap: 0.5rem;
  }
  .nav.open { display: flex; }
  .nav a { display: block; padding: 0.6rem 0; }
  .nav-btn { text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: 2.4rem; }
  .hero-text { order: 0; }
  .hero-visual { order: 1; } /* mockup depois do texto no mobile */
}
@media (max-width: 600px) {
  .hero h1 { font-size: 1.9rem; }
  .section-title { font-size: 1.6rem; }
  .price-card.featured { transform: none; }
  .section { padding: 3rem 0; }
  .nav-btn { padding: 0.5rem 0.85rem; font-size: 0.95rem; }
}

/* ---------- Auth (login/registro) ---------- */
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--gradient-soft);
}
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.5rem;
}
.auth-card {
  background: white;
  border-radius: var(--radius);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 12px 40px rgba(131, 58, 180, 0.15);
  border: 1px solid var(--border);
}
.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin-bottom: 0.5rem;
}
.auth-logo img { border-radius: 8px; }
.auth-logo span { font-size: 1.4rem; font-weight: 800; }
.auth-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 700;
  margin: 1rem 0 0.4rem;
}
.auth-subtitle {
  text-align: center;
  color: var(--text-light);
  margin-bottom: 1.8rem;
  font-size: 0.95rem;
}
.auth-field { margin-bottom: 1.1rem; }
.auth-field label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.auth-field input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.auth-field input:focus {
  outline: none;
  border-color: var(--roxo);
  box-shadow: 0 0 0 3px rgba(131, 58, 180, 0.12);
}
.auth-btn { width: 100%; margin-top: 0.5rem; }
.auth-message {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.92rem;
}
.auth-message.error { color: var(--vermelho); }
.auth-message.success { color: #2e7d32; }
.auth-toggle {
  margin-top: 1.5rem;
  text-align: center;
  color: var(--text-light);
  font-size: 0.95rem;
}
.auth-toggle a { color: var(--rosa); text-decoration: none; font-weight: 600; }
.auth-toggle a:hover { text-decoration: underline; }
.auth-note {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #2e7d32;
}
.auth-back {
  text-align: center;
  padding: 1.5rem;
}
.auth-back a { color: var(--text-light); text-decoration: none; font-size: 0.9rem; }
.auth-back a:hover { color: var(--rosa); }

/* ---------- Painel do cliente ---------- */
.panel-page { min-height: 100vh; background: var(--bg-light); }
.panel-section { padding: 2.5rem 0; }
.panel-card {
  background: white;
  border-radius: var(--radius);
  padding: 1.8rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.panel-card h3 {
  font-size: 1.15rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.panel-card p { margin-bottom: 0.5rem; color: var(--text); }
.panel-card p strong { color: var(--text-light); font-weight: 600; }
.license-badge {
  display: inline-block;
  padding: 0.3rem 0.9rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}
.license-badge.active { background: #e8f5e9; color: #2e7d32; }
.license-badge.expired, .license-badge.suspended { background: #ffebee; color: var(--vermelho); }
.plan-buttons {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

/* Movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
