/* ============================================================
   POSTLY — Stylesheet
   Fonte display : Gilroy Bold (local)
   Fonte corpo   : Inter (Google Fonts)
   ============================================================ */

/* --- TOKENS ------------------------------------------------ */
:root {
  --bg:      #0D0D14;
  --bg2:     #13131E;
  --bg3:     #1A1A28;
  --surface: #1E1E2E;
  --surface2:#252538;

  --border:  rgba(155, 151, 194, 0.15);
  --border2: rgba(155, 151, 194, 0.25);

  --text:    #F2F1F5;
  --text2:   #9B97C2;
  --text3:   #6B6890;

  --purple:  #A78BFA;
  --blue:    #818CF8;
  --accent:  #A78BFA;

  --grad: linear-gradient(135deg, #A78BFA, #818CF8);
}

/* --- RESET ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- NAV — liquid glass ------------------------------------ */
nav {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1100px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 1.25rem 0.6rem 1rem;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.18) 0%,
    rgba(200, 190, 255, 0.10) 50%,
    rgba(255, 255, 255, 0.13) 100%
  );
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 4px 32px rgba(130, 100, 255, 0.18),
    0 1.5px 0 rgba(255, 255, 255, 0.22) inset,
    0 -1px 0 rgba(167, 139, 250, 0.12) inset;
}


.nav-logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-svg {
  width: auto;
  height: 36px;
  display: block;
  object-fit: contain;
}

.logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: white;
  box-shadow: 0 2px 10px rgba(167, 139, 250, 0.4);
}

.nav-links { display: flex; align-items: center; gap: 0; }

.nav-links a {
  color: rgba(240, 236, 255, 0.85);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0.4rem 0.8rem;
  border-radius: 50px;
  transition: background 0.15s, color 0.15s;
}
.nav-links a:hover { background: rgba(255, 255, 255, 0.12); color: #fff; }

.nav-actions { display: flex; align-items: center; gap: 8px; }

.btn-entrar {
  display: flex;
  align-items: center;
  gap: 6px;
  color: rgba(240, 236, 255, 0.9);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  padding: 0.42rem 1rem;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.07);
  transition: all 0.18s;
}
.btn-entrar:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-entrar svg { width: 14px; height: 14px; }

.btn-nav {
  background: var(--grad);
  color: white;
  border: none;
  padding: 0.48rem 1.15rem;
  border-radius: 50px;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.18s, transform 0.15s;
  white-space: nowrap;
  box-shadow: 0 2px 14px rgba(167, 139, 250, 0.45);
}
.btn-nav:hover { opacity: 0.88; transform: translateY(-1px); }

/* --- HERO -------------------------------------------------- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8rem 5% 5rem;
  position: relative;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(167, 139, 250, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(167, 139, 250, 0.1);
  border: 0.5px solid rgba(167, 139, 250, 0.3);
  color: #C4B5FD;
  font-size: 12px;
  font-weight: 500;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #A78BFA;
  display: block;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 780px;
  margin-bottom: 1.5rem;
  animation: fadeUp 0.6s 0.1s ease both;
}

.h1-grad {
  background: linear-gradient(135deg, #A78BFA 0%, #818CF8 50%, #C4B5FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text2);
  max-width: 520px;
  margin-bottom: 2.5rem;
  animation: fadeUp 0.6s 0.2s ease both;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  animation: fadeUp 0.6s 0.3s ease both;
}

.btn-primary {
  background: var(--grad);
  color: white;
  border: none;
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--text2);
  border: 0.5px solid var(--border2);
  padding: 0.8rem 2rem;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-ghost:hover { color: var(--text); border-color: var(--text2); }

/* --- MOCKUP ----------------------------------------------- */
.hero-mockup {
  margin-top: 4rem;
  width: 100%;
  max-width: 860px;
  border: 0.5px solid var(--border2);
  border-radius: 16px;
  overflow: hidden;
  animation: fadeUp 0.8s 0.4s ease both;
}

.mockup-bar {
  background: var(--surface);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 0.5px solid var(--border);
}

.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }

.mockup-url {
  flex: 1;
  background: var(--bg2);
  border-radius: 5px;
  padding: 4px 12px;
  font-size: 11px;
  color: var(--text3);
  margin: 0 12px;
  text-align: center;
}

.mockup-body {
  background: var(--bg2);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 1rem;
  min-height: 320px;
}

.mock-sidebar { background: var(--surface); border-radius: 10px; padding: 1rem; }

.mock-month {
  font-size: 11px;
  font-weight: 600;
  color: var(--text2);
  margin-bottom: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; }

.mock-day {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: var(--text3);
  cursor: pointer;
}
.mock-day.has-post  { background: rgba(167, 139, 250, 0.2); color: var(--purple); }
.mock-day.active    { background: var(--grad); color: white; }
.mock-day.approved  { background: rgba(34, 197, 94, 0.2); color: #4ade80; }
.mock-day.rejected  { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.mock-main { background: var(--surface); border-radius: 10px; padding: 1.25rem; }

.mock-post-img {
  width: 100%;
  height: 140px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(129,140,248,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  border: 0.5px solid var(--border);
  font-size: 12px;
  color: var(--text3);
}

.mock-caption  { font-size: 11px; color: var(--text2); margin-bottom: 14px; line-height: 1.5; }
.mock-actions  { display: flex; gap: 8px; margin-bottom: 14px; }

.mock-btn-approve {
  flex: 1; padding: 7px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(34, 197, 94, 0.15); color: #4ade80; font-size: 11px; font-weight: 500;
}
.mock-btn-reject {
  flex: 1; padding: 7px; border-radius: 7px; border: none; cursor: pointer;
  background: rgba(239, 68, 68, 0.1); color: #f87171; font-size: 11px; font-weight: 500;
}

.mock-comment {
  background: var(--bg2); border-radius: 7px;
  padding: 8px 10px; font-size: 10px; color: var(--text3);
}

/* --- SECTIONS --------------------------------------------- */
section { padding: 6rem 5%; }

.section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section-sub { font-size: 1rem; color: var(--text2); max-width: 480px; }

.center { text-align: center; display: flex; flex-direction: column; align-items: center; }

/* --- HOW IT WORKS ----------------------------------------- */
.how { background: var(--bg2); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s, transform 0.2s;
}
.step:hover { border-color: var(--border2); transform: translateY(-3px); }

.step-num {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(167,139,250,0.2), rgba(129,140,248,0.15));
  border: 0.5px solid rgba(167, 139, 250, 0.3);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600; color: var(--purple);
  margin-bottom: 1rem;
}

.step h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.step p  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* --- FEATURES --------------------------------------------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.feat-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}
.feat-card:hover { border-color: rgba(167, 139, 250, 0.3); }

.feat-icon {
  width: 40px; height: 40px; border-radius: 10px;
  margin-bottom: 1rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px;
}

.feat-card h3 { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.feat-card p  { font-size: 13px; color: var(--text2); line-height: 1.6; }

/* --- PRICING ---------------------------------------------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.price-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  position: relative;
  transition: transform 0.2s;
}
.price-card:hover { transform: translateY(-4px); }
.price-card.featured {
  border: 1.5px solid rgba(167, 139, 250, 0.5);
  background: var(--surface2);
}

.featured-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad);
  color: white; font-size: 11px; font-weight: 500;
  padding: 4px 14px; border-radius: 20px; white-space: nowrap;
}

.price-name {
  font-size: 13px; font-weight: 500; color: var(--text2);
  margin-bottom: 8px; text-transform: uppercase; letter-spacing: 0.06em;
}
.price-amount { font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; margin-bottom: 4px; }
.price-amount span { font-size: 14px; font-weight: 400; color: var(--text2); }
.price-desc    { font-size: 13px; color: var(--text3); margin-bottom: 1.5rem; }
.price-divider { height: 0.5px; background: var(--border); margin-bottom: 1.25rem; }

.price-feat {
  font-size: 13px; color: var(--text2);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}

.check-icon {
  width: 16px; height: 16px; border-radius: 50%;
  background: rgba(167, 139, 250, 0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.check-icon::after {
  content: '';
  width: 4px; height: 7px;
  border-right: 1.5px solid #A78BFA;
  border-bottom: 1.5px solid #A78BFA;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}

.price-btn {
  width: 100%; margin-top: 1.5rem; padding: 0.75rem;
  border-radius: 10px; font-size: 14px; font-weight: 500;
  cursor: pointer; transition: all 0.2s; text-align: center;
  display: block; text-decoration: none;
}
.price-btn-ghost { background: transparent; border: 0.5px solid var(--border2); color: var(--text2); }
.price-btn-ghost:hover { border-color: var(--text2); color: var(--text); }
.price-btn-grad  { background: var(--grad); border: none; color: white; }
.price-btn-grad:hover { opacity: 0.85; }

/* --- TESTIMONIALS ----------------------------------------- */
.testimonials { background: var(--bg2); }

.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
  margin-top: 3rem;
}

.testi-card {
  background: var(--surface);
  border: 0.5px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.testi-stars  { color: #A78BFA; font-size: 12px; margin-bottom: 10px; letter-spacing: 2px; }
.testi-text   { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testi-author { display: flex; align-items: center; gap: 10px; }

.testi-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, rgba(167,139,250,0.3), rgba(129,140,248,0.2));
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600; color: var(--purple);
}

.testi-name { font-size: 13px; font-weight: 500; }
.testi-role { font-size: 11px; color: var(--text3); }

/* --- CTA --------------------------------------------------- */
.cta-section {
  text-align: center;
  padding: 6rem 5%;
  position: relative;
  overflow: hidden;
}

.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 500px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(167,139,250,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 600; margin-bottom: 1rem; letter-spacing: -0.02em;
}
.cta-section p { color: var(--text2); margin-bottom: 2rem; font-size: 1.05rem; }

/* --- FOOTER ----------------------------------------------- */
footer {
  border-top: 0.5px solid var(--border);
  padding: 2rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo  { font-size: 15px; font-weight: 600; color: var(--text2); }
.footer-copy  { font-size: 12px; color: var(--text3); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { font-size: 12px; color: var(--text3); text-decoration: none; }
.footer-links a:hover { color: var(--text2); }

/* --- ANIMATIONS ------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* --- UTILITIES -------------------------------------------- */
.section-inner        { max-width: 1100px; margin: 0 auto; }
.pricing-section      { background: var(--bg2); padding: 6rem 5%; }
.pricing-sub          { margin-bottom: 3rem; }
.pricing-grid--centered { max-width: 900px; margin: 0 auto; }
.testi-grid--centered { max-width: 900px; margin: 3rem auto 0; }

.btn-primary--lg { font-size: 16px; padding: 1rem 2.5rem; }

/* Mock legend */
.mock-legend        { margin-top: 14px; padding-top: 12px; border-top: 0.5px solid rgba(155,151,194,0.15); }
.mock-legend-title  { font-size: 10px; color: var(--text3); margin-bottom: 6px; }
.mock-legend-item   { display: flex; align-items: center; gap: 5px; font-size: 10px; margin-bottom: 4px; }
.mock-legend-pending  { color: var(--text3); }
.mock-legend-approved { color: #4ade80; }
.mock-legend-rejected { color: #f87171; }

.mock-legend-dot    { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.pending-dot        { background: rgba(167,139,250,0.2); }
.approved-dot       { background: rgba(34,197,94,0.2); }
.rejected-dot       { background: rgba(239,68,68,0.15); }

.mock-post-date { font-size: 11px; font-weight: 600; color: var(--text2); margin-bottom: 10px; }

/* Feature icon variants */
.feat-icon--purple { background: rgba(167,139,250,0.12); }
.feat-icon--blue   { background: rgba(129,140,248,0.12); }

/* ============================================================
   SCROLL REVEAL + PARALLAX
   ============================================================ */
 
/* Estado inicial — elemento invisível e levemente abaixo */
/*.sr-hidden {
  opacity: 0;
  transform: translateY(50px);
  transition:
    opacity 0.90s cubic-bezier(0.6, 0, 0.5, 1),
    transform 0.90s cubic-bezier(0.6, 0, 0.5, 1);
  will-change: opacity, transform;
}
 
/* Cards com parallax próprio não devem conflitar com o sr */
/*.hero-glow.sr-hidden,
.hero-mockup.sr-hidden {
  transform: translateY(50px); /* o parallax JS sobrescreve depois */
/*}
 
/* Estado final — visível */
/*.sr-visible {
  opacity: 1 !important;
  transform: translateY(0) !important;
}
 
/* Parallax suave no hero — JS escreve translateY via style inline,
   mas só nos elementos fora do sr-hidden */
/*hero-glow,
.hero-mockup,
.hero-badge {
  will-change: transform;
}

/* ============================================================
   MOBILE RESPONSIVE — max 768px
   ============================================================ */

/* Hambúrguer — sempre oculto fora do mobile */
.nav-mobile-actions { display: none; }

/* Hambúrguer icon (estilo visual apenas) */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 10px;
  cursor: pointer;
  padding: 8px;
  transition: background 0.2s;
}
.hamburger:hover { background: rgba(255,255,255,0.15); }
.hamburger span {
  display: block;
  height: 1.5px;
  background: rgba(240,236,255,0.9);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Drawer e overlay — estilos visuais, visibilidade controlada pelo JS */
.mobile-drawer {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: linear-gradient(160deg, rgba(20,16,40,0.97) 0%, rgba(13,13,20,0.98) 100%);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(167,139,250,0.15);
  border-radius: 0 0 24px 24px;
  padding: 100px 2rem 2rem;
  transform: translateY(-110%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  visibility: hidden;
  pointer-events: none;
}
.mobile-drawer.open {
  transform: translateY(0);
  visibility: visible;
  pointer-events: auto;
}
.mobile-drawer a {
  color: rgba(240,236,255,0.85);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  transition: background 0.15s, color 0.15s;
}
.mobile-drawer a:hover { background: rgba(255,255,255,0.07); color: #fff; }
.mobile-drawer-cta {
  margin-top: 0.75rem;
  text-align: center;
  background: var(--grad) !important;
  color: white !important;
  font-weight: 600 !important;
  padding: 0.9rem 1rem !important;
  border-radius: 50px !important;
  box-shadow: 0 2px 14px rgba(167,139,250,0.35);
}

.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  visibility: hidden;
}
.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
}

/* ---- breakpoint ------------------------------------------ */
@media (max-width: 768px) {

  .nav-links,
  .nav-actions        { display: none !important; }
  .nav-mobile-actions { display: flex; align-items: center; gap: 8px; }

  nav {
    width: calc(100% - 24px);
    top: 10px;
    padding: 0.55rem 0.85rem;
  }

  .logo-svg { height: 30px; width: auto; }

  .hero { padding: 7rem 5% 3rem; }
  h1 { font-size: clamp(1.9rem, 8vw, 3rem); }
  .hero-sub { font-size: 0.95rem; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas a { text-align: center; }

  .mockup-body  { grid-template-columns: 1fr; }
  .mock-sidebar { display: none; }

  section { padding: 4rem 5%; }
  .steps, .features-grid { grid-template-columns: 1fr; }
  .pricing-grid           { grid-template-columns: 1fr; }
  .price-card.featured    { margin-top: 0.5rem; }
  .testi-grid             { grid-template-columns: 1fr; }

  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
  }
}