/* =====================================================
   Horara — Home / Landing Page
   ===================================================== */

:root {
  --brand:        #5B50F5;
  --brand-dark:   #4338CA;
  --brand-light:  #EEF2FF;
  --brand-soft:   #F0EFFF;
  --accent:       #F59E0B;
  --text:         #111827;
  --muted:        #6B7280;
  --border:       #E5E7EB;
  --bg:           #F8FAFC;
  --white:        #FFFFFF;
  --success:      #10B981;
  --danger:       #EF4444;
  --radius:       12px;
  --shadow-sm:    0 1px 3px rgba(0,0,0,.08);
  --shadow:       0 4px 16px rgba(0,0,0,.10);
  --shadow-lg:    0 12px 40px rgba(0,0,0,.14);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

/* ---------------------------------------------------
   UTILITY
   --------------------------------------------------- */
.container {
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .9375rem;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand);
  color: var(--white);
}
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(91,80,245,.35); }

.btn-outline {
  background: transparent;
  color: var(--brand);
  border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-light); }

.btn-white {
  background: var(--white);
  color: var(--brand);
  font-weight: 700;
}
.btn-white:hover { background: var(--brand-light); color: var(--brand-dark); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.5);
}
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: var(--white); }

.btn-lg { padding: .9rem 2rem; font-size: 1rem; }

.badge-popular {
  background: var(--accent);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  padding: .25rem .6rem;
  border-radius: 20px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
  letter-spacing: .03em;
  margin-bottom: 1rem;
}

.section-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.section-sub {
  font-size: 1.0625rem;
  color: var(--muted);
  max-width: 560px;
  margin-inline: auto;
  line-height: 1.7;
}

/* ---------------------------------------------------
   NAVBAR
   --------------------------------------------------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .2s;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 1rem;
}

.navbar-brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--brand);
  letter-spacing: -.03em;
}
.navbar-brand img { height: 36px; }

.navbar-links {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.navbar-links a {
  color: var(--text);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.navbar-links a:hover { color: var(--brand); background: var(--brand-light); }

.navbar-ctas {
  display: flex;
  align-items: center;
  gap: .5rem;
}

.navbar-login {
  color: var(--muted);
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 500;
  padding: .4rem .75rem;
  border-radius: 8px;
  transition: color .15s;
}
.navbar-login:hover { color: var(--brand); }

.navbar-mobile-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .4rem;
  border-radius: 8px;
  color: var(--text);
}
.navbar-mobile-btn:hover { background: var(--bg); }

.mobile-menu {
  display: none;
  flex-direction: column;
  padding: 1rem 1.5rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--white);
  gap: .25rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: var(--text);
  text-decoration: none;
  font-size: 1rem;
  font-weight: 500;
  padding: .6rem .5rem;
  border-radius: 8px;
  transition: background .15s;
}
.mobile-menu a:hover { background: var(--bg); }
.mobile-menu .divider { border: none; border-top: 1px solid var(--border); margin: .5rem 0; }

/* ---------------------------------------------------
   HERO
   --------------------------------------------------- */
.hero {
  padding-top: 120px;
  padding-bottom: 80px;
  background: linear-gradient(135deg, #0F0C29 0%, #302B63 45%, #24243e 100%);
  overflow: hidden;
  position: relative;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(91,80,245,.35) 0%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(91,80,245,.25);
  color: #A5B4FC;
  border: 1px solid rgba(165,180,252,.3);
  font-size: .8125rem;
  font-weight: 600;
  padding: .35rem .85rem;
  border-radius: 20px;
  margin-bottom: 1.25rem;
  letter-spacing: .03em;
}

.hero-title {
  font-size: clamp(2.25rem, 6vw, 3.75rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: var(--white);
  margin-bottom: 1.25rem;
}

.hero-title .highlight {
  background: linear-gradient(135deg, #A78BFA, #60A5FA);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.125rem;
  color: #CBD5E1;
  line-height: 1.7;
  max-width: 580px;
  margin-bottom: 2rem;
}

.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-bottom: 2.5rem;
}

.hero-bullet {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: #E2E8F0;
  font-size: .9rem;
}
.hero-bullet svg { color: #6EE7B7; flex-shrink: 0; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.hero-trial-note {
  margin-top: .75rem;
  font-size: .8125rem;
  color: #94A3B8;
  display: flex;
  align-items: center;
  gap: .35rem;
}

.hero-mockup {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-screen {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  padding: 2rem;
  backdrop-filter: blur(10px);
  max-width: 420px;
  width: 100%;
}

.screen-header {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-bottom: 1.5rem;
}
.screen-dot { width: 12px; height: 12px; border-radius: 50%; }
.screen-dot.red { background: #FF5F56; }
.screen-dot.yellow { background: #FFBD2E; }
.screen-dot.green { background: #27C93F; }

.screen-title {
  font-size: .875rem;
  font-weight: 600;
  color: rgba(255,255,255,.7);
  margin-left: .5rem;
}

.screen-stat {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: .75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.screen-stat-label { font-size: .8125rem; color: rgba(255,255,255,.6); }
.screen-stat-value { font-size: 1.375rem; font-weight: 800; color: var(--white); }
.screen-stat-badge { font-size: .75rem; background: rgba(16,185,129,.2); color: #6EE7B7; padding: .2rem .5rem; border-radius: 20px; font-weight: 600; }

.screen-agenda-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem .75rem;
  background: rgba(255,255,255,.05);
  border-radius: 8px;
  margin-bottom: .5rem;
}
.screen-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .7rem;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.screen-agenda-info { flex: 1; min-width: 0; }
.screen-agenda-name { font-size: .8125rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.screen-agenda-time { font-size: .6875rem; color: rgba(255,255,255,.5); }
.screen-agenda-status { font-size: .6875rem; font-weight: 600; padding: .15rem .45rem; border-radius: 20px; }
.s-confirmed { background: rgba(16,185,129,.2); color: #6EE7B7; }
.s-pending   { background: rgba(245,158,11,.2); color: #FCD34D; }

/* ---------------------------------------------------
   STATS STRIP
   --------------------------------------------------- */
.stats-strip {
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 2.5rem 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .25rem;
}
.stat-label { font-size: .875rem; color: var(--muted); font-weight: 500; }

/* ---------------------------------------------------
   SEGMENTS (Para Quem É)
   --------------------------------------------------- */
.segments { padding: 96px 0; background: var(--white); }

.segments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
}

.segment-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  text-decoration: none;
  color: var(--text);
  transition: all .2s ease;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  position: relative;
  overflow: hidden;
}
.segment-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: var(--gradient, var(--brand));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.segment-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.segment-card:hover::before { transform: scaleX(1); }

.segment-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.segment-name { font-size: 1.125rem; font-weight: 700; }
.segment-desc { font-size: .9375rem; color: var(--muted); line-height: 1.6; }
.segment-link { font-size: .875rem; font-weight: 600; color: var(--brand); display: flex; align-items: center; gap: .25rem; margin-top: auto; }

/* ---------------------------------------------------
   FEATURES
   --------------------------------------------------- */
.features { padding: 96px 0; background: var(--bg); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 3rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
}
.feature-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }

.feature-icon-wrap {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--brand-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--brand);
  font-size: 1.25rem;
}

.feature-title { font-size: 1rem; font-weight: 700; margin-bottom: .4rem; }
.feature-desc { font-size: .875rem; color: var(--muted); line-height: 1.6; }

/* ---------------------------------------------------
   HOW IT WORKS
   --------------------------------------------------- */
.how-it-works { padding: 96px 0; background: var(--white); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
  position: relative;
}

.steps-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: calc(16.66% + 40px);
  right: calc(16.66% + 40px);
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-dark));
  opacity: .3;
}

.step-item { text-align: center; }

.step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--white);
  font-size: 1.625rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  box-shadow: 0 8px 24px rgba(91,80,245,.3);
}

.step-title { font-size: 1.125rem; font-weight: 700; margin-bottom: .5rem; }
.step-desc { font-size: .9375rem; color: var(--muted); line-height: 1.7; }

/* ---------------------------------------------------
   PRICING
   --------------------------------------------------- */
.pricing { padding: 96px 0; background: var(--bg); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-top: 3rem;
  align-items: stretch;
}

.plan-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  transition: box-shadow .2s, transform .2s;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.plan-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.plan-card.featured {
  border: 2px solid var(--brand);
  background: var(--white);
  transform: scale(1.04);
  box-shadow: 0 16px 48px rgba(91,80,245,.2);
}
.plan-card.featured:hover { transform: scale(1.04) translateY(-4px); }

.plan-popular-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand);
  color: var(--white);
  font-size: .6875rem;
  font-weight: 700;
  padding: .25rem .75rem;
  border-radius: 20px;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.plan-name { font-size: 1rem; font-weight: 700; color: var(--text); }
.plan-desc { font-size: .8125rem; color: var(--muted); line-height: 1.5; min-height: 2.5em; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: .25rem;
}
.plan-currency { font-size: .875rem; font-weight: 700; color: var(--muted); margin-top: .3rem; }
.plan-amount { font-size: 2.25rem; font-weight: 900; letter-spacing: -.04em; color: var(--text); line-height: 1; }
.plan-period { font-size: .8125rem; color: var(--muted); }

.plan-users {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .875rem;
  color: var(--muted);
  padding: .6rem .75rem;
  background: var(--bg);
  border-radius: 8px;
  font-weight: 500;
}
.plan-users strong { color: var(--text); }
.plan-users svg { color: var(--brand); flex-shrink: 0; }

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  flex: 1;
}
.plan-features li {
  display: flex;
  align-items: flex-start;
  gap: .5rem;
  font-size: .8125rem;
  line-height: 1.5;
  text-align: left;
}
.plan-features li svg { color: var(--success); flex-shrink: 0; margin-top: 1px; }
.plan-features li.plan-inherit {
  font-size: .75rem;
  font-weight: 600;
  color: var(--brand);
  padding-bottom: .25rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: .15rem;
}
.plan-features li.disabled { color: var(--muted); }
.plan-features li.disabled svg { color: var(--border); }

.plan-cta {
  display: block;
  text-align: center;
  padding: .7rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .875rem;
  text-decoration: none;
  transition: all .2s;
  cursor: pointer;
  border: none;
}
.plan-cta-primary { background: var(--brand); color: var(--white); }
.plan-cta-primary:hover { background: var(--brand-dark); }
.plan-cta-outline { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.plan-cta-outline:hover { background: var(--brand-light); }

.pricing-note {
  text-align: center;
  font-size: .875rem;
  color: var(--muted);
  margin-top: 2rem;
}

/* ---------------------------------------------------
   CTA FINAL
   --------------------------------------------------- */
.cta-final {
  padding: 96px 0;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-final > * { position: relative; }

.cta-title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -.03em;
  margin-bottom: .75rem;
}
.cta-subtitle { font-size: 1.0625rem; color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 2rem; max-width: 520px; margin-inline: auto; }
.cta-ctas { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; align-items: center; }
.cta-note { margin-top: 1.25rem; font-size: .8125rem; color: rgba(255,255,255,.6); }

/* ---------------------------------------------------
   FOOTER
   --------------------------------------------------- */
.footer {
  background: #0F0C29;
  color: rgba(255,255,255,.6);
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-brand { font-size: 1.375rem; font-weight: 800; color: var(--white); letter-spacing: -.03em; margin-bottom: .75rem; display: flex; align-items: center; gap: .4rem; }
.footer-brand img { height: 30px; }
.footer-tagline { font-size: .9rem; line-height: 1.7; max-width: 280px; }

.footer-col h4 { font-size: .9375rem; font-weight: 700; color: var(--white); margin-bottom: 1rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.footer-col a { color: rgba(255,255,255,.5); text-decoration: none; font-size: .875rem; transition: color .15s; }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem;
}
.footer-copy { font-size: .8125rem; }
.footer-bottom-links { display: flex; gap: 1.5rem; }
.footer-bottom-links a { font-size: .8125rem; color: rgba(255,255,255,.4); text-decoration: none; }
.footer-bottom-links a:hover { color: rgba(255,255,255,.7); }

/* ---------------------------------------------------
   RESPONSIVE
   --------------------------------------------------- */
@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .plan-card.featured { transform: none; }
  .plan-card.featured:hover { transform: translateY(-4px); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .segments-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 2rem; }
  .steps-grid::before { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .hero { padding-top: 100px; }
}

@media (max-width: 768px) {
  .navbar-links, .navbar-ctas { display: none; }
  .navbar-login { display: none; }
  .navbar-mobile-btn { display: flex; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .hero-screen { display: none; }
}

@media (max-width: 540px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-title { font-size: 2rem; }
  .hero-ctas { flex-direction: column; align-items: flex-start; }
}

/* ── Botão flutuante WhatsApp ─────────────────────────── */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 56px;
  height: 56px;
  background: #25d366;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,.45);
  z-index: 9999;
  transition: transform .2s, box-shadow .2s;
  text-decoration: none;
}
.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 24px rgba(37,211,102,.6);
  color: #fff;
}
@media (max-width: 540px) {
  .whatsapp-float { bottom: 18px; right: 18px; width: 50px; height: 50px; }
}
