/* =========================================================
   home.css — landing page styles
   ========================================================= */

:root {
  --background: #ffffff;
  --foreground: #171717;
}

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

body {
  background: var(--background);
  color: var(--foreground);
  font-family: 'Geist', 'Geist Sans', Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ---- Typography ---- */
.hero-handwritten {
  font-family: 'Caveat', 'Brush Script MT', Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* ---- Buttons ---- */
.pillBtn {
  display: inline-block;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  background-color: #10B981;
  color: #ffffff;
  font-weight: 500;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.pillBtn:hover { background-color: #0ea36f; }
.pillBtn:active { background-color: #0b8a5a; }

.pillHero {
  display: inline-block;
  background-color: #10B981;
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  border-radius: 0.5rem;
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
  border: none;
  transition: background-color 0.15s ease;
}
.pillHero:hover { background-color: #0ea36f; }

.heroOutline {
  display: inline-block;
  background-color: #10B981;
  border: 2px solid #10B981;
  color: #ffffff;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}
.heroOutline:hover { background-color: #28b07f; border-color: rgba(147,244,213,0.36); }

/* ---- Layout utilities ---- */
.container { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.section-pad { padding: 4rem 0; }
@media (min-width: 1024px) { .section-pad { padding: 6rem 0; } }

/* ---- Header ---- */
.site-header {
  width: 100%;
  background: #ffffff;
  border-bottom: 1px solid #f3f4f6;
  position: sticky;
  top: 0;
  z-index: 30;
}
.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  height: 5rem;
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .header-inner { padding: 0 2rem; } }
.header-logo {
  font-size: 2rem;
  font-weight: 800;
  color: #10B981;
  text-decoration: none;
  flex: 1;
}
@media (min-width: 768px) { .header-logo { font-size: 2.25rem; } }
.header-nav {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.header-nav a {
  color: #000;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}
.header-nav a:hover { color: #10B981; }
.header-actions { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }
.header-avatar { width: 1.75rem; height: 1.75rem; border-radius: 9999px; object-fit: cover; }

/* ---- Mobile hamburger ---- */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: .25rem;
  margin-left: .75rem;
  color: #0a2540;
}
@media (max-width: 767px) {
  .header-nav { display: none; }
  .header-actions { display: none; }
  .mobile-menu-btn { display: flex; align-items: center; }
}

/* ---- Mobile menu overlay ---- */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.3);
}
.mobile-menu-overlay.open { display: block; }
.mobile-menu-panel {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  background: #fff;
  padding: 1.5rem 1.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-close {
  align-self: flex-end;
  background: none;
  border: none;
  cursor: pointer;
  color: #6b7280;
  padding: .25rem;
  margin-bottom: 1.5rem;
}
.mobile-menu-cta { margin-bottom: 1.5rem; }
.mobile-cta-btn {
  display: block;
  width: 100%;
  padding: 1rem;
  background: #10B981;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: 0.5rem;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.mobile-cta-btn:hover { background: #0ea36f; }
.mobile-menu-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-nav a {
  font-size: 1.1rem;
  font-weight: 500;
  color: #0a2540;
  text-decoration: none;
  padding: .875rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.mobile-menu-nav a:hover { color: #10B981; }

/* ---- Hero ---- */
.hero-section { background: #ffffff; overflow: hidden; }
.hero-inner { padding: 4rem 1.5rem; }
@media (min-width: 1024px) { .hero-inner { padding: 6rem 0; } }
.hero-title {
  font-size: 3.2rem;
  line-height: 1;
  color: #0a2540;
  display: block;
}
@media (min-width: 768px) { .hero-title { font-size: 4.8rem; } }
@media (min-width: 1024px) { .hero-title { font-size: 6.2rem; } }
.hero-mobile .hero-title { font-size: 2.9rem; }
.hero-subtitle {
  margin-top: 1.25rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #475569;
}
.hero-cta { margin-top: 4rem; display: flex; justify-content: center; gap: 1rem; }
.hero-mobile .hero-cta { margin-top: 2.5rem; }

/* Show/hide desktop vs mobile hero */
.hero-desktop { display: none; }
.hero-mobile { display: block; }
@media (min-width: 768px) {
  .hero-desktop { display: block; }
  .hero-mobile { display: none; }
}

/* ---- Underline accents ---- */
.underline-accent { position: relative; display: inline-block; }
.underline-accent::after {
  content: '';
  position: absolute;
  left: -6px; right: -6px; bottom: 12px;
  height: 18px;
  transform: rotate(-3deg);
  z-index: -1;
  border-radius: 8px;
}
.underline-accent.pink::after  { background: rgba(236,72,153,0.18); }
.underline-accent.blue::after  { background: rgba(59,130,246,0.95); }
.underline-accent.orange::after { background: rgba(249,168,37,0.95); }
.underline-accent.yellow::after { background: rgba(249,168,37,0.95); }
.hero-title .underline-accent::after, .hero-mobile .underline-accent::after { bottom: 4px; height: 14px; }

/* ---- Sparkle / stars ---- */
.spark-wrap { position: relative; display: inline-block; }
.star {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.98) 0%, rgba(255,220,90,0.98) 35%, transparent 60%);
  filter: blur(1.2px);
  opacity: 0;
  pointer-events: none;
  animation: star-pop 2.8s linear infinite;
}
.star.s1 { left:-6%;  top:-18%; animation-delay:0s; }
.star.s2 { left:4%;   top:-28%; animation-delay:.4s; }
.star.s3 { left:28%;  top:-20%; animation-delay:.9s; }
.star.s4 { left:62%;  top:-14%; animation-delay:1.3s; }
.star.s5 { left:86%;  top:-6%;  animation-delay:1.7s; }
.star.s6 { left:92%;  top:10%;  animation-delay:2s; }
.star.s7 { left:70%;  top:26%;  animation-delay:2.3s; }
.star.s8 { left:36%;  top:32%;  animation-delay:2.6s; }
.star.s9 { left:8%;   top:20%;  animation-delay:2.9s; }
@keyframes star-pop {
  0%   { opacity:0; transform:scale(0.3) translateY(0); }
  8%   { opacity:1; transform:scale(1.05) translateY(-6px); }
  24%  { opacity:0.7; transform:scale(0.85) translateY(-4px); }
  40%  { opacity:0; transform:scale(0.4) translateY(0); }
  100% { opacity:0; }
}

/* ---- Floating card animation ---- */
@keyframes floaty {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-8px); }
  100% { transform: translateY(0); }
}
.floaty { animation: floaty 4s ease-in-out infinite; will-change: transform; }
.floaty.delay-0 { animation-delay:0s; }
.floaty.delay-1 { animation-delay:.4s; }
.floaty.delay-2 { animation-delay:.8s; }
.floaty.delay-3 { animation-delay:1.2s; }
.floaty.delay-4 { animation-delay:1.6s; }

/* ---- Features section ---- */
.features-section { background: #f9fafb; position: relative; }
.features-wave {
  position: relative;
  overflow: hidden;
  line-height: 0;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem 4rem;
  align-items: center;
}
@media (min-width: 1024px) { .features-grid { grid-template-columns: 1fr 1fr; } }
.feature-cards {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background: linear-gradient(135deg, #eff6ff, #f5f3ff);
  border-radius: 1rem;
  padding: 2.5rem;
}
.feature-card {
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem;
  box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}
.feature-card-inner { display: flex; align-items: center; gap: 0.75rem; }
.feature-icon {
  width: 2rem; height: 2rem;
  border-radius: 9999px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.feature-icon svg { width: 1rem; height: 1rem; }
.feature-icon.blue   { background: #dbeafe; color: #2563eb; }
.feature-icon.purple { background: #ede9fe; color: #7c3aed; }
.feature-icon.orange { background: #ffedd5; color: #ea580c; }
.feature-icon.green  { background: #dcfce7; color: #16a34a; }
.feature-icon.pink   { background: #fce7f3; color: #db2777; }
.feature-card-label { font-weight: 600; font-size: 0.875rem; color: #111827; }

/* ---- Two-column sections (BotIntegration, ExpenseDashboard) ---- */
.two-col-section { background: #fff; }
.two-col-section.gray { background: #f9fafb; }
.two-col-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem 4rem;
  align-items: center;
  min-height: 320px;
}
@media (min-width: 1024px) { .two-col-grid { grid-template-columns: 1fr 1fr; min-height: 560px; } }
.col-visual-first { order: 2; }
@media (min-width: 1024px) { .col-visual-first { order: unset; } }
.two-col-img { width: 100%; max-width: 28rem; margin: 0 auto; display: block; object-fit: contain; }
.section-heading {
  font-size: 2rem;
  color: #0a2540;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
@media (min-width: 768px) { .section-heading { font-size: 3.5rem; } }
.section-body { font-size: 1.125rem; line-height: 1.75; color: #4b5563; margin-top: 1rem; }

/* ---- CTA (last) section ---- */
.cta-section { background: #fff; }
.cta-inner {
  max-width: 56rem;
  margin: 0 auto;
  text-align: center;
  padding: 3.5rem 1.5rem;
  min-height: 260px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
@media (min-width: 1024px) { .cta-inner { padding: 6rem 2rem; min-height: 420px; } }
.cta-heading { font-size: 2rem; color: #0a2540; }
@media (min-width: 768px) { .cta-heading { font-size: 3.5rem; } }
.cta-note { margin-top: 1rem; font-size: 0.875rem; color: #6b7280; }

/* ---- Footer ---- */
.site-footer { background: #fff; border-top: 1px solid #e5e7eb; }
.footer-inner {
  max-width: 80rem; margin: 0 auto;
  padding: 1.5rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}
@media (min-width: 768px) {
  .footer-inner { flex-direction: row; justify-content: space-between; }
}
.footer-copy { font-size: 0.875rem; color: #374151; }
.footer-links { display: flex; align-items: center; gap: 0.75rem; font-size: 0.875rem; }
.footer-links a { color: #2563eb; text-decoration: none; }
.footer-links a:hover { color: #1d4ed8; }
.footer-links span { color: #9ca3af; }

/* ---- Dashboard image switcher tabs ---- */
.saas-tab {
  padding: .6rem 1rem;
  border-radius: .5rem;
  font-weight: 600;
  font-size: .875rem;
  cursor: pointer;
  border: none;
  background: #fff;
  color: #374151;
  box-shadow: 0 1px 4px rgba(0,0,0,0.10);
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.saas-tab:hover { background: #f3f4f6; }
.saas-tab.active { background: #10B981; color: #fff; box-shadow: 0 4px 12px rgba(16,185,129,0.25); }

/* ---- Sign-in dialog ---- */
@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.98); }
  to   { opacity: 1; transform: scale(1); }
}
.dialog-backdrop {
  position: fixed; inset: 0; z-index: 40;
  background: rgba(0,0,0,0.10);
  backdrop-filter: blur(4px);
}
.dialog-positioner {
  position: fixed; inset: 0; z-index: 50;
  overflow-y: auto; padding: 1rem;
  display: flex; align-items: center; justify-content: center;
}
.dialog-card {
  position: relative;
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  width: 100%; max-width: 28rem;
  padding: 1.25rem;
  animation: fadeIn 0.2s ease-out;
}
@media (min-width: 640px) { .dialog-card { padding: 1.5rem; } }
.dialog-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none; cursor: pointer;
  color: #9ca3af; padding: 0.25rem;
}
.dialog-close:hover { color: #4b5563; }
.dialog-title { font-size: 1.25rem; font-weight: 600; color: #0a2540; }
.dialog-subtitle { font-size: 0.875rem; color: #4b5563; margin-top: 0.25rem; }
.dialog-body { margin-top: 1rem; }
.dialog-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1rem;
  color: #111827;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dialog-input:focus { border-color: #10B981; box-shadow: 0 0 0 3px rgba(16,185,129,0.15); }
.dialog-btn {
  width: 100%;
  padding: 0.75rem 1rem;
  background: #10B981;
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: opacity 0.15s;
  margin-top: 0.75rem;
}
.dialog-btn:hover { opacity: 0.9; }
.dialog-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.dialog-divider {
  display: flex; align-items: center; gap: 0.75rem;
  margin: 1rem 0;
}
.dialog-divider hr { flex: 1; border: none; border-top: 1px solid #e5e7eb; }
.dialog-divider span { font-size: 0.875rem; color: #9ca3af; }
.dialog-error { font-size: 0.875rem; color: #dc2626; margin-top: 0.5rem; }
.dialog-success { font-size: 0.875rem; color: #15803d; margin-top: 0.5rem; }
.dialog-back {
  width: 100%; padding: 0.5rem 1rem;
  background: none; border: none; cursor: pointer;
  font-size: 0.875rem; color: #6b7280; margin-top: 0.25rem;
}
.dialog-back:hover { color: #374151; }
.hidden { display: none !important; }

/* ---- OTP digit inputs ---- */
.otp-digits {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.otp-digit {
  width: 2.75rem;
  height: 3rem;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
  border: 1.5px solid #d1d5db;
  border-radius: 0.5rem;
  outline: none;
  transition: border-color 0.15s;
}
.otp-digit:focus { border-color: #10B981; box-shadow: 0 0 0 2px rgba(16,185,129,0.2); }
.otp-digit.filled { border-color: #10B981; }
