/* ============================================================
   HolApp Landing — Self-contained styles
   Brand: deep teal primary, warm slate neutrals
   Font: Plus Jakarta Sans (self-hosted fallback to system)
   ============================================================ */

/* ── Font ── */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Tokens ── */
:root {
  --brand-900: #1a4d8a; --brand-700: #2F6DB5; --brand-600: #4F8FD9;
  --brand-500: #3FBF6A; --brand-100: #d4f5de; --brand-50: #edfaf1;
  --slate-900: #1e293b; --slate-700: #334155; --slate-600: #475569;
  --slate-400: #94a3b8; --slate-300: #cbd5e1; --slate-200: #e2e8f0;
  --slate-100: #f1f5f9; --slate-50: #f8fafc;
  --accent-500: #f59e0b; --accent-100: #fef3c7;
  --surface: #ffffff; --surface-alt: var(--slate-50); --text: var(--slate-900);
  --text-secondary: var(--slate-600); --border: var(--slate-200);
  --font: 'Plus Jakarta Sans', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --radius: 12px; --radius-sm: 8px;
  --shadow: 0 2px 8px rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.04);
  --shadow-lg: 0 8px 30px rgba(0,0,0,.08), 0 2px 8px rgba(0,0,0,.04);
}

@media (prefers-color-scheme: dark) {
  :root {
    --surface: #0f172a; --surface-alt: #1e293b; --text: #e2e8f0;
    --text-secondary: #94a3b8; --border: #334155;
    --shadow: 0 2px 8px rgba(0,0,0,.3); --shadow-lg: 0 8px 30px rgba(0,0,0,.4);
    --brand-50: rgba(14,165,233,.08); --brand-100: rgba(14,165,233,.15);
    --slate-50: #1e293b; --slate-100: #1e293b;
  }
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font); color: var(--text); background: var(--surface); line-height: 1.6; }
a { color: var(--brand-600); text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 720px; }
.section { padding: 80px 0; }
.section-alt { background: var(--surface-alt); }
.section-title { font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 12px; }
.section-subtitle { text-align: center; color: var(--text-secondary); margin-bottom: 48px; font-size: 1.125rem; }

/* ── Buttons ── */
.btn { display: inline-block; padding: 12px 28px; border-radius: var(--radius-sm); font-weight: 600;
  font-size: .95rem; transition: all .2s ease; cursor: pointer; border: 2px solid transparent; text-align: center; }
.btn-primary { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }
.btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.btn-outline { background: transparent; color: var(--brand-600); border-color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-50); }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }
.btn-sm { padding: 8px 18px; font-size: .85rem; }
.btn-block { display: block; width: 100%; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 100; background: var(--surface); border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.nav-brand { display: flex; align-items: center; height: 100%; }
.nav-logo { height: 100%; width: auto; padding: 8px 0; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: var(--text-secondary); font-weight: 500; font-size: .9rem; }
.nav-links a:hover { color: var(--brand-600); }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--brand-900) 0%, var(--brand-700) 50%, var(--brand-600) 100%);
  color: #fff; padding: 100px 0 80px; text-align: center; }
.hero-title { font-size: clamp(2.2rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 20px; line-height: 1.15; }
.hero-subtitle { font-size: 1.2rem; opacity: .9; max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.hero-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.hero .btn-primary { background: #fff; color: var(--brand-700); border-color: #fff; }
.hero .btn-primary:hover { background: var(--brand-50); }
.hero .btn-outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Trust Bar ── */
.trust-bar { background: var(--brand-50); padding: 24px 0; text-align: center; border-bottom: 1px solid var(--border); }
.trust-text { color: var(--text-secondary); font-size: .95rem; margin-bottom: 12px; }
.trust-icons { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.trust-icon { font-size: 1.8rem; }

/* ── Features Grid ── */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon { font-size: 2.5rem; margin-bottom: 16px; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.feature-card p { color: var(--text-secondary); font-size: .95rem; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; text-align: center; }
.step-number { width: 56px; height: 56px; border-radius: 50%; background: var(--brand-600); color: #fff;
  font-size: 1.5rem; font-weight: 800; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.step h3 { font-weight: 700; margin-bottom: 8px; }
.step p { color: var(--text-secondary); font-size: .95rem; }

/* ── Demo Embed ── */
.demo-embed { max-width: 800px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid var(--border); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pricing-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; text-align: center; position: relative; }
.pricing-featured { border-color: var(--brand-500); box-shadow: var(--shadow-lg); transform: scale(1.04); }
.pricing-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand-600);
  color: #fff; padding: 4px 20px; border-radius: 20px; font-size: .8rem; font-weight: 700; }
.pricing-header h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.pricing-price { font-size: 2.2rem; font-weight: 800; color: var(--brand-700); margin-bottom: 24px; }
.pricing-price span { font-size: .9rem; font-weight: 400; color: var(--text-secondary); }
.pricing-features { text-align: left; margin-bottom: 24px; }
.pricing-features li { padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .93rem; color: var(--text-secondary); }
.pricing-features li::before { content: "\2713"; color: var(--brand-600); font-weight: 700; margin-right: 8px; }

/* ── Niches ── */
.niches-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.niche-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; text-align: center; transition: transform .2s ease; }
.niche-card:hover { transform: translateY(-2px); }
.niche-icon { font-size: 2rem; margin-bottom: 12px; }
.niche-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.niche-card p { color: var(--text-secondary); font-size: .85rem; }

/* ── Testimonials ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 32px 24px; box-shadow: var(--shadow); }
.testimonial-quote { font-style: italic; color: var(--text); margin-bottom: 16px; line-height: 1.7; }
.testimonial-author strong { display: block; font-size: .95rem; }
.testimonial-author span { color: var(--text-secondary); font-size: .85rem; }

/* ── FAQ ── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-item summary { padding: 16px 20px; font-weight: 600; cursor: pointer; list-style: none;
  display: flex; align-items: center; justify-content: space-between; }
.faq-item summary::after { content: "+"; font-size: 1.3rem; color: var(--text-secondary); transition: transform .2s; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { padding: 0 20px 16px; color: var(--text-secondary); line-height: 1.7; }

/* ── Footer CTA ── */
.footer-cta { background: linear-gradient(135deg, var(--brand-900), var(--brand-600)); color: #fff;
  padding: 80px 0; text-align: center; }
.footer-cta h2 { font-size: 2rem; font-weight: 800; margin-bottom: 12px; }
.footer-cta p { opacity: .9; margin-bottom: 32px; font-size: 1.1rem; }
.footer-cta .btn-primary { background: #fff; color: var(--brand-700); border-color: #fff; }
.footer-cta .btn-primary:hover { background: var(--brand-50); }

/* ── Footer ── */
.footer { background: var(--slate-900); color: var(--slate-400); padding: 24px 0; font-size: .85rem; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; }
.footer-brand { color: var(--slate-300); }
.footer-brand strong { color: var(--brand-500); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { color: var(--slate-400); }
.footer-links a:hover { color: #fff; }

/* ── Fade-in Animation ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── Hamburger Toggle ── */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; flex-direction: column;
  justify-content: center; gap: 5px; z-index: 110; }
.nav-toggle-bar { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px;
  transition: transform .3s ease, opacity .3s ease; }
.nav-toggle.active .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.active .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.active .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Responsive ── */

/* Mobile — iPhone SE (320px) to 768px */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .nav-toggle { display: flex; }
  .nav-links {
    display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 16px 24px;
    box-shadow: var(--shadow-lg); gap: 0;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 1rem; width: 100%; }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links .btn { margin-top: 8px; text-align: center; }
  .nav-inner { position: relative; }

  .hero { padding: 56px 0 48px; }
  .hero-subtitle { font-size: 1rem; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.5rem; }
  .section-subtitle { font-size: 1rem; margin-bottom: 32px; }

  .features-grid, .steps, .pricing-grid, .testimonials-grid { grid-template-columns: 1fr; }
  .pricing-featured { transform: none; }
  .pricing-grid { gap: 16px; }

  .trust-icons { gap: 16px; }
  .trust-text { font-size: .85rem; }

  .demo-embed iframe { height: 500px; }

  .footer-cta { padding: 56px 0; }
  .footer-cta h2 { font-size: 1.5rem; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
}

/* Tablet — 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
  .features-grid, .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; }
}
