/* ===================== Meralead Landing Page Styles ===================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7fb;
  --ink: #0f1222;
  --ink-soft: #4a4d5e;
  --ink-faint: #8a8da0;
  --border: #e6e7ef;
  --primary: #6d5ef5;
  --primary-dark: #5643f0;
  --accent: #22c7a9;
  --danger: #ef4a68;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 2px 8px rgba(15, 18, 34, 0.06);
  --shadow: 0 8px 30px rgba(15, 18, 34, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 18, 34, 0.12);
  --max-width: 1120px;
  --gradient: linear-gradient(135deg, #6d5ef5 0%, #22c7a9 100%);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.25rem; }

p { color: var(--ink-soft); margin: 0 0 16px; }

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  border-radius: 999px;
  padding: 14px 28px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-size: 0.95rem;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(109, 94, 245, 0.35);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(109, 94, 245, 0.45); }

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--ink);
}

.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 34px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
  position: relative;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
}

.main-nav {
  display: flex;
  gap: 28px;
}

.main-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.main-nav a:hover { color: var(--primary); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 90px 0 60px;
  text-align: center;
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(109, 94, 245, 0.10) 0%, rgba(109, 94, 245, 0) 70%),
    radial-gradient(50% 50% at 85% 15%, rgba(34, 199, 169, 0.10) 0%, rgba(34, 199, 169, 0) 70%);
}

.hero-inner { max-width: 880px; }

.eyebrow, .section-eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  background: rgba(109, 94, 245, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
}

.hero-sub {
  font-size: 1.1rem;
  max-width: 640px;
  margin: 0 auto 30px;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.trust-bar {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 60px;
}

.trust-bar .dot { margin: 0 10px; color: var(--ink-faint); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--border);
  padding-top: 40px;
}

.stat { text-align: center; }

.stat-number {
  display: block;
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--ink);
}

.stat-number::after { content: attr(data-suffix); }

.stat-label {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-weight: 600;
}

/* ---------- Sections ---------- */
.section { padding: 90px 0; }
.section-alt { background: var(--bg-alt); }

.section-eyebrow { margin-bottom: 14px; }

.section > .container > h2 { max-width: 720px; }

.section-sub {
  font-size: 1.05rem;
  max-width: 680px;
  margin-bottom: 20px;
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 50px;
}

.step {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.step:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.step-number {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary);
  background: rgba(109, 94, 245, 0.1);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.roadmap-badge {
  color: var(--accent);
  background: rgba(34, 199, 169, 0.12);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.72rem;
}

/* ---------- Pricing ---------- */
.pricing-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 44px;
  margin-top: 40px;
  position: relative;
  overflow: hidden;
}

.pricing-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 5px;
  background: var(--gradient);
}

.pricing-card-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.pricing-headline h3 { margin-bottom: 6px; }

.pricing-numbers { min-width: 280px; }

.price-line {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.price-line:last-child { border-bottom: none; }

.price-value { font-weight: 800; color: var(--ink); }
.price-value .unit { font-weight: 500; color: var(--ink-faint); font-size: 0.85em; }

.slider-block { margin: 30px 0 10px; }

.slider-block label {
  display: block;
  font-weight: 700;
  margin-bottom: 12px;
  font-size: 0.92rem;
}

input[type="range"] {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: var(--border);
  appearance: none;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gradient);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(109, 94, 245, 0.5);
}

input[type="range"]::-moz-range-thumb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(109, 94, 245, 0.5);
}

.slider-ticks {
  display: flex;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--ink-faint);
  font-weight: 600;
  margin-top: 8px;
}

.pricing-note {
  font-size: 0.9rem;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin: 20px 0;
}

.cancel-note {
  text-align: center;
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-top: 10px;
}

.included-list {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  list-style: none;
  padding-left: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 24px;
}

.included-list li {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-soft);
  padding-left: 26px;
  position: relative;
}

.included-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 800;
}

.addons { margin-top: 50px; }

.addon-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 20px 0;
}

.addon {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}

.addon span { display: block; font-weight: 700; margin-bottom: 6px; }
.addon strong { display: block; font-size: 1.3rem; color: var(--primary); margin-bottom: 4px; }
.addon small { color: var(--ink-faint); }

.addon-note { font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- ROI ---------- */
.roi-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
  align-items: start;
}

.roi-inputs {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-sm);
}

.input-group { margin-bottom: 28px; }
.input-group:last-child { margin-bottom: 0; }

.input-group label {
  display: block;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.input-value {
  margin-top: 8px;
  font-weight: 800;
  color: var(--primary);
  font-size: 1.1rem;
}

.roi-outputs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-content: start;
}

.roi-result {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.roi-result.highlight {
  background: var(--gradient);
  border: none;
}

.roi-result.highlight .roi-result-label,
.roi-result.highlight .roi-result-value { color: #fff; }

.roi-result-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-bottom: 6px;
}

.roi-result-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 900;
}

.roi-footnote {
  font-size: 0.85rem;
  color: var(--ink-faint);
  margin-top: 24px;
}

/* ---------- Comparison ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 40px;
}

.compare-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid var(--border);
  background: #fff;
}

.compare-card.new {
  background: var(--ink);
  border-color: var(--ink);
}

.compare-card.new h4,
.compare-card.new .compare-total { color: #fff; }

.compare-list { list-style: none; padding: 0; margin: 20px 0; }

.compare-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}

.compare-card.new .compare-list li { border-bottom-color: rgba(255,255,255,0.1); }

.compare-list li span { font-weight: 700; flex: 1; color: var(--ink); }
.compare-card.new .compare-list li span { color: #fff; }
.compare-list li small { color: var(--ink-faint); flex: 1; }
.compare-list li strong { color: var(--primary); white-space: nowrap; }
.compare-card.new .compare-list li strong { color: var(--accent); }

.compare-total {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 20px;
  margin-bottom: 0;
}

.compare-total.highlight { color: var(--accent); }

.vs-table { margin-top: 50px; }

.vs-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  margin: 20px 0;
}

.vs-table th, .vs-table td {
  text-align: left;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}

.vs-table th {
  background: var(--bg-alt);
  font-weight: 800;
  color: var(--ink);
}

.vs-table td:first-child { font-weight: 700; }
.vs-table td:last-child { color: var(--primary); font-weight: 700; }

.vs-footnote { font-style: italic; color: var(--ink-soft); }

/* ---------- Industry tabs ---------- */
.industry-tabs { margin-top: 40px; }

.tab-group-label {
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-faint);
  margin: 0 0 10px;
}

.tab-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 26px;
}

.pilot-badge {
  display: inline-block;
  background: rgba(34, 199, 169, 0.12);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}

.tab-btn {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
}

.tab-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.tab-panel h4 { margin-bottom: 10px; }

.tab-panel .tab-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 18px 0;
  font-size: 0.88rem;
}

.tab-panel .tab-meta span strong { display: block; color: var(--primary); font-size: 1.1rem; }

.tab-panel .pitch {
  border-left: 3px solid var(--accent);
  padding-left: 16px;
  font-style: italic;
  color: var(--ink);
  margin-top: 16px;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 40px;
}

.fit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.fit-card.not-fit { background: var(--bg-alt); }

.fit-card ul { padding-left: 20px; margin: 0; }
.fit-card li { margin-bottom: 10px; color: var(--ink-soft); }

/* ---------- Guarantee ---------- */
.guarantee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.guarantee-grid.single {
  grid-template-columns: 1fr;
  max-width: 720px;
  margin-top: 40px;
}

.guarantee-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 34px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.guarantee-card h3 { color: var(--primary); }

.eligibility {
  margin-top: 30px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
}

.eligibility summary {
  cursor: pointer;
  font-weight: 700;
}

.eligibility ul { margin-top: 16px; padding-left: 20px; }
.eligibility li { margin-bottom: 8px; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { margin-top: 30px; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-question {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink);
}

.faq-icon {
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-icon { transform: rotate(45deg); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-item.open .faq-answer { max-height: 240px; }

.faq-answer p { padding-bottom: 20px; margin: 0; }

/* ---------- Final CTA ---------- */
.final-cta {
  text-align: center;
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  margin: 0 24px;
  padding: 80px 24px;
}

.final-cta .container { max-width: 640px; }
.final-cta h2 { color: #fff; }
.final-cta p { color: rgba(255,255,255,0.7); }
.cta-footnote { font-size: 0.85rem; margin-top: 16px; color: rgba(255,255,255,0.5) !important; }

/* ---------- Footer ---------- */
.site-footer { padding: 50px 0 90px; border-top: 1px solid var(--border); }

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.logo-text { font-weight: 800; font-size: 1.1rem; }

.footer-brand p { max-width: 260px; font-size: 0.88rem; margin-top: 8px; }

.footer-links { display: flex; gap: 20px; font-size: 0.9rem; font-weight: 600; color: var(--ink-soft); }
.footer-links a:hover { color: var(--primary); }

.footer-legal {
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.footer-legal div { display: flex; gap: 16px; }

/* ---------- Mobile sticky CTA ---------- */
.mobile-sticky-cta {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 12px 16px;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--border);
  z-index: 90;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .steps, .roi-grid, .compare-grid, .guarantee-grid, .fit-grid {
    grid-template-columns: 1fr;
  }
  .addon-grid { grid-template-columns: 1fr; }
  .included-list { grid-template-columns: 1fr; }
  .hero-stats { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 760px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 16px 24px;
    gap: 4px;
    box-shadow: var(--shadow-sm);
  }
  .main-nav.mobile-open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--border); }
  .main-nav a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .header-actions .btn-sm { display: none; }
  .mobile-sticky-cta { display: block; }
  .site-footer { padding-bottom: 110px; }
  .footer-inner { flex-direction: column; }
  .footer-legal { align-items: flex-start; }
  .final-cta { margin: 0 12px; padding: 60px 20px; }
  .pricing-card { padding: 26px; }
}

@media (max-width: 480px) {
  .hero { padding: 60px 0 40px; }
  .section { padding: 60px 0; }
}
