/* Buildora marketing site -- shared styles.
   Brand tokens mirror the app's src/index.css exactly, so the marketing
   site and the signed-in product feel like the same brand. */

:root {
  --background: 0 0% 100%;
  --foreground: 222.2 84% 4.9%;

  --primary: 24 100% 50%;           /* Orange */
  --primary-foreground: 210 40% 98%;

  --secondary: 197 71% 73%;         /* Sky Blue */
  --secondary-foreground: 222.2 47.4% 11.2%;

  --muted: 210 40% 96.1%;
  --muted-foreground: 215.4 16.3% 46.9%;

  --card: 0 0% 100%;
  --border: 214.3 31.8% 91.4%;

  --radius: 0.75rem;

  --max-width: 1200px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: hsl(var(--foreground));
  background: hsl(var(--background));
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-heading {
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 8px 20px -8px hsl(var(--primary) / 0.6);
}
.btn-primary:hover { box-shadow: 0 12px 24px -8px hsl(var(--primary) / 0.7); }

.btn-outline {
  background: transparent;
  color: hsl(var(--foreground));
  border-color: hsl(var(--border));
}
.btn-outline:hover { background: hsl(var(--muted)); }

.btn-lg { padding: 1rem 2rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: hsl(var(--background) / 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid hsl(var(--border));
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
}
.nav-brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: hsl(var(--muted-foreground));
  transition: color 0.15s ease;
}
.nav-links a:hover, .nav-links a.active { color: hsl(var(--foreground)); }

.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: hsl(var(--foreground));
  margin: 5px 0;
  transition: 0.2s;
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-toggle { display: block; }
  .nav.menu-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
    padding: 24px;
    gap: 20px;
  }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 80px;
  background: linear-gradient(135deg, hsl(24 100% 96%) 0%, #fff 45%, hsl(197 71% 95%) 100%);
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.35;
  z-index: 0;
}
.hero-blob-1 { width: 420px; height: 420px; background: hsl(var(--primary)); top: -120px; right: -80px; }
.hero-blob-2 { width: 360px; height: 360px; background: hsl(var(--secondary)); bottom: -140px; left: -100px; opacity: 0.4; }

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: hsl(var(--primary) / 0.1);
  color: hsl(24 100% 38%);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  letter-spacing: -0.02em;
}
.hero h1 .accent { color: hsl(var(--primary)); }

.hero-sub {
  font-size: 1.15rem;
  color: hsl(var(--muted-foreground));
  max-width: 540px;
}

.hero-actions { display: flex; gap: 14px; margin-top: 8px; flex-wrap: wrap; }

.hero-note {
  margin-top: 18px;
  font-size: 0.88rem;
  color: hsl(var(--muted-foreground));
}

.hero-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(20, 20, 30, 0.18);
  padding: 28px;
}
.hero-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.hero-card-header .dots span {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px;
}
.dot-red { background: #ff5f56; } .dot-yellow { background: #ffbd2e; } .dot-green { background: #27c93f; }

.hero-stat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }
.hero-stat {
  background: hsl(var(--muted));
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.hero-stat strong { display: block; font-size: 1.3rem; font-family: 'Poppins', sans-serif; color: hsl(var(--primary)); }
.hero-stat span { font-size: 0.78rem; color: hsl(var(--muted-foreground)); }

.hero-progress-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 0.85rem; }
.hero-progress-row .label { width: 90px; color: hsl(var(--muted-foreground)); flex-shrink: 0; }
.progress-track { flex: 1; height: 8px; border-radius: 999px; background: hsl(var(--muted)); overflow: hidden; }
.progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, hsl(var(--primary)), hsl(var(--secondary))); }
.hero-progress-row .pct { width: 34px; text-align: right; color: hsl(var(--muted-foreground)); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
.section-alt { background: hsl(var(--muted) / 0.5); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.01em; }
.section-head p { color: hsl(var(--muted-foreground)); font-size: 1.05rem; }

.badge {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: hsl(var(--secondary) / 0.25);
  color: hsl(197 60% 24%);
  margin-bottom: 14px;
}

/* ---------- Feature grid ---------- */
.grid {
  display: grid;
  gap: 28px;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

.feature-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -20px rgba(20,20,30,0.15); }

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, hsl(var(--primary) / 0.15), hsl(var(--secondary) / 0.25));
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature-card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 0; }

/* ---------- Pricing ---------- */
.billing-toggle {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 48px;
}
.billing-toggle button {
  padding: 10px 22px;
  border-radius: 999px;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--card));
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  color: hsl(var(--muted-foreground));
}
.billing-toggle button.active {
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  border-color: transparent;
}
.save-badge { font-size: 0.75rem; color: #16794d; font-weight: 700; margin-left: 4px; }

.plan-card {
  position: relative;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 20px;
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}
.plan-card.featured {
  border-color: hsl(var(--primary));
  box-shadow: 0 24px 50px -24px hsl(var(--primary) / 0.45);
  transform: scale(1.03);
}
.plan-ribbon {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: hsl(var(--primary));
  color: hsl(var(--primary-foreground));
  font-size: 0.78rem;
  font-weight: 700;
  padding: 5px 16px;
  border-radius: 999px;
}
.plan-name { font-size: 1.15rem; margin-bottom: 4px; }
.plan-desc { color: hsl(var(--muted-foreground)); font-size: 0.9rem; min-height: 42px; }
.plan-price { font-family: 'Poppins', sans-serif; font-size: 2.4rem; font-weight: 700; margin: 12px 0 2px; }
.plan-price span { font-size: 1rem; font-weight: 500; color: hsl(var(--muted-foreground)); }
.plan-period { font-size: 0.85rem; color: hsl(var(--muted-foreground)); margin-bottom: 24px; }
.plan-list { list-style: none; padding: 0; margin: 0 0 28px; flex: 1; }
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  padding: 8px 0;
  border-top: 1px solid hsl(var(--border));
}
.plan-list li:first-child { border-top: none; }
.plan-list li::before {
  content: '✓';
  color: hsl(var(--primary));
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- Testimonials ---------- */
.testimonial-card {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  padding: 28px;
}
.testimonial-quote { font-size: 1.02rem; margin-bottom: 20px; }
.testimonial-quote::before { content: '\201C'; color: hsl(var(--primary)); font-size: 1.6rem; }
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, hsl(var(--primary)), hsl(var(--secondary)));
  color: #fff; font-weight: 700; font-family: 'Poppins', sans-serif;
}
.testimonial-author strong { display: block; font-size: 0.92rem; }
.testimonial-author span { font-size: 0.8rem; color: hsl(var(--muted-foreground)); }

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
@media (max-width: 700px) { .stats-strip { grid-template-columns: repeat(2, 1fr); } }
.stats-strip strong { display: block; font-family: 'Poppins', sans-serif; font-size: 2.2rem; color: hsl(var(--primary)); }
.stats-strip span { color: hsl(var(--muted-foreground)); font-size: 0.9rem; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, hsl(24 100% 50%), hsl(20 90% 45%) 60%, hsl(197 71% 55%));
  border-radius: 28px;
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; }
.cta-banner p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 28px; }
.cta-banner .btn-primary { background: #fff; color: hsl(24 90% 40%); box-shadow: none; }
.cta-banner .btn-outline { border-color: rgba(255,255,255,0.5); color: #fff; }

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid hsl(var(--border));
}
.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  color: hsl(var(--foreground));
}
.faq-question .icon { transition: transform 0.2s ease; font-size: 1.2rem; color: hsl(var(--primary)); }
.faq-item.open .faq-question .icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  color: hsl(var(--muted-foreground));
  transition: max-height 0.25s ease;
}
.faq-item.open .faq-answer { max-height: 300px; padding-bottom: 20px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }
label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 6px; }
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid hsl(var(--border));
  font-family: inherit;
  font-size: 0.95rem;
  background: #fff;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: hsl(var(--primary));
  box-shadow: 0 0 0 3px hsl(var(--primary) / 0.15);
}
textarea { resize: vertical; min-height: 140px; }

/* ---------- Footer ---------- */
.site-footer {
  background: hsl(222 47% 11%);
  color: hsl(215 20% 75%);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid hsl(222 25% 20%);
}
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer-brand { display: flex; align-items: center; gap: 10px; font-family: 'Poppins', sans-serif; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-brand img { width: 32px; height: 32px; border-radius: 8px; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 16px; }
.footer-col a { display: block; color: hsl(215 20% 75%); font-size: 0.9rem; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 0.85rem;
}

/* ---------- Simple page header (About/Contact/Legal) ---------- */
.page-hero {
  padding: 64px 0 48px;
  background: linear-gradient(135deg, hsl(24 100% 97%) 0%, #fff 60%);
  text-align: center;
}
.page-hero h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.page-hero p { color: hsl(var(--muted-foreground)); max-width: 560px; margin: 0 auto; }

.legal-content { max-width: 760px; margin: 0 auto; }
.legal-content h2 { margin-top: 2em; font-size: 1.3rem; }
.legal-content p, .legal-content li { color: hsl(var(--muted-foreground)); }
.legal-content .updated { color: hsl(var(--muted-foreground)); font-size: 0.9rem; margin-bottom: 2em; }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 800px) { .two-col { grid-template-columns: 1fr; } }

.contact-info-item { display: flex; gap: 14px; margin-bottom: 24px; }
.contact-info-icon {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: hsl(var(--primary) / 0.12); color: hsl(var(--primary));
  font-size: 1.1rem;
}
