/* ===== RESET & VARIABLES ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg: #ffffff;
  --bg-elevated: #f7fafa;
  --bg-card: #ffffff;
  --text: #303b45;
  --text-muted: #6d6d6d;
  --accent: #5CC0BE;
  --accent-hover: #41A9C3;
  --navy: #003E51;
  --border: #e2e8ec;
  --success: #019e7c;
  --radius: 8px;
  --shadow: 0 2px 12px rgba(0, 62, 81, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 62, 81, 0.10);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Open Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Bellefair', serif;
  color: var(--navy);
  line-height: 1.2;
  font-weight: 400;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius);
  font-family: 'Open Sans', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-lg {
  padding: 18px 48px;
  font-size: 1.15rem;
}

.btn-sm {
  padding: 10px 24px;
  font-size: 0.9rem;
}

.btn-block {
  display: block;
  text-align: center;
  width: 100%;
}

.btn-nav {
  padding: 10px 24px;
  background: var(--accent);
  color: #fff;
  font-size: 0.9rem;
}
.btn-nav:hover {
  background: var(--accent-hover);
  color: #fff;
}

/* CTA pulse animation — draws eye, +20-30% CTR */
@keyframes subtle-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(92, 192, 190, 0.4); }
  50% { box-shadow: 0 0 0 10px rgba(92, 192, 190, 0); }
}
.btn-pulse {
  animation: subtle-pulse 2.5s infinite;
}
.btn-pulse:hover {
  animation: none;
}

/* ===== NAV — minimal, single conversion path ===== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

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

.nav-brand {
  font-family: 'Bellefair', serif;
  font-size: 1.3rem;
  color: var(--navy);
  font-weight: 400;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-brand:hover { color: var(--navy); }

.nav-logo {
  height: 36px;
  width: auto;
}

/* ===== STICKY CTA BAR — appears on scroll past hero ===== */
.sticky-bar {
  position: fixed;
  top: -60px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--navy);
  padding: 10px 0;
  transition: top 0.3s ease;
}
.sticky-bar.visible {
  top: 0;
}

.sticky-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.sticky-text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  font-weight: 500;
}

.sticky-bar .btn-primary {
  padding: 8px 20px;
  font-size: 0.85rem;
}

/* ===== SECTIONS ===== */
.section {
  padding: 96px 0;
}
.section-alt {
  background: var(--bg-elevated);
}

.section-title {
  font-size: 2.4rem;
  text-align: center;
  margin-bottom: 12px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 48px;
  font-size: 1.05rem;
}

/* Inline CTA after every section */
.section-cta-inline {
  text-align: center;
  margin-top: 48px;
  padding-top: 32px;
}

.cta-micro {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ===== HERO ===== */
.hero {
  padding: 140px 0 80px;
  text-align: center;
}

.hero h1 {
  font-size: 2.8rem;
  max-width: 820px;
  margin: 0 auto 24px;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.8;
}

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

.hero-micro {
  margin-top: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Social proof above the fold */
.hero-proof {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.proof-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 24px;
}

/* ===== LOGO SLIDER (infinite CSS marquee) ===== */
.logo-slider {
  overflow: hidden;
  position: relative;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.logo-track {
  display: flex;
  align-items: center;
  gap: 48px;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.logo-track:hover {
  animation-play-state: paused;
}

.logo-item {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: 75px;
}

.logo-item img {
  height: 75px;
  width: auto;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: filter 0.3s ease, opacity 0.3s ease;
  object-fit: contain;
}

.logo-item:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@keyframes logo-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ===== PAIN CARDS ===== */
.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 16px;
}

.pain-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pain-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.pain-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}

.pain-card h3 {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.pain-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}
.pain-card strong {
  color: var(--navy);
}

/* ===== PROCESS STEPS ===== */
.process-steps {
  max-width: 700px;
  margin: 0 auto;
}

.process-step {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.process-step:last-child {
  border-bottom: none;
}

.step-number {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: 'Bellefair', serif;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.process-step h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.process-step p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* ===== WHO WE WORK WITH ===== */
.who-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.who-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.who-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.who-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--accent);
}

.who-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== CEO BIO ===== */
.ceo-bio {
  max-width: 760px;
  margin: 0 auto 48px;
  padding: 32px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.ceo-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 3px solid var(--border);
}

.ceo-info h3 {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.ceo-title {
  font-size: 0.9rem;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 16px;
}

.ceo-credentials {
  list-style: none;
  padding: 0;
}

.ceo-credentials li {
  padding: 6px 0 6px 24px;
  position: relative;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.ceo-credentials li::before {
  content: '—';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.ceo-credentials em {
  color: var(--navy);
  font-style: italic;
}

/* ===== SOCIAL PROOF ===== */
.metrics-bar {
  display: flex;
  justify-content: center;
  gap: 64px;
  margin-bottom: 48px;
}

.metric {
  text-align: center;
}

.metric-number {
  display: block;
  font-family: 'Bellefair', serif;
  font-size: 2.4rem;
  color: var(--navy);
}

.metric-label {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-stars {
  color: #f5a623;
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.testimonial-card blockquote {
  font-style: italic;
  color: var(--text);
  margin-bottom: 16px;
  font-size: 0.95rem;
  line-height: 1.7;
}

.testimonial-card cite {
  display: block;
  font-style: normal;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
}

/* ===== VALUE STACK ===== */
.value-stack {
  max-width: 600px;
  margin: 0 auto;
}

.value-list {
  list-style: none;
}

.value-list li {
  padding: 16px 0 16px 40px;
  position: relative;
  font-size: 1.05rem;
  border-bottom: 1px solid var(--border);
}

.value-list li:last-child {
  border-bottom: none;
}

.value-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
  font-size: 1.2rem;
}

/* Guarantee box — risk reversal */
.guarantee-box {
  max-width: 600px;
  margin: 32px auto 0;
  padding: 24px 28px;
  background: #f0faf9;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  text-align: center;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text);
}
.guarantee-box strong {
  color: var(--navy);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

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

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-family: 'Open Sans', sans-serif;
}
.faq-question:hover {
  color: var(--accent);
}

.faq-icon {
  font-size: 1.4rem;
  font-weight: 300;
  transition: transform 0.2s ease;
  color: var(--accent);
}

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

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

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== LEAD MAGNET ===== */
.lead-magnet {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-align: center;
}

.lead-magnet h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.lead-magnet-content p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
}
.lead-magnet-content strong {
  color: var(--navy);
}

.lead-magnet-form {
  display: flex;
  gap: 8px;
  max-width: 440px;
  margin: 0 auto;
}

.lead-magnet-form input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-family: 'Open Sans', sans-serif;
}
.lead-magnet-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.lead-magnet-form .btn {
  white-space: nowrap;
}

.lead-magnet-micro {
  display: block;
  margin-top: 12px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FINAL CTA ===== */
.section-cta {
  background: var(--navy);
  text-align: center;
  padding: 96px 0;
}

.section-cta h2 {
  color: #fff;
  font-size: 2.4rem;
  margin-bottom: 12px;
}

.section-cta .section-sub {
  color: rgba(255, 255, 255, 0.7);
}

.cta-actions {
  margin-top: 8px;
}

/* "What won't happen" list */
.cta-no-list {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.cta-no-list span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  position: relative;
  padding-left: 18px;
}
.cta-no-list span::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--success);
  font-weight: 700;
}

.cta-fallback {
  margin-top: 20px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.4);
}
.cta-fallback a {
  color: rgba(255, 255, 255, 0.6);
}
.cta-fallback a:hover {
  color: #fff;
}

/* ===== FOOTER ===== */
.footer {
  padding: 24px 0;
  text-align: center;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-link {
  color: var(--text-muted);
}
.footer-link:hover {
  color: var(--accent);
}

/* ===== FLOATING MOBILE CTA — +27-33% mobile conversions ===== */
.floating-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: #fff;
  padding: 12px 20px;
  box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.1);
  z-index: 90;
  display: none;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
.floating-cta.visible {
  transform: translateY(0);
}

/* ===== SOCIAL PROOF NOTIFICATION POPUP ===== */
.proof-popup {
  position: fixed;
  bottom: 24px;
  left: 24px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.14);
  padding: 14px 20px;
  z-index: 80;
  max-width: 320px;
  transform: translateX(-120%);
  transition: transform 0.4s ease;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--text);
  border-left: 3px solid var(--success);
}
.proof-popup.visible {
  transform: translateX(0);
}
.proof-popup strong {
  color: var(--navy);
}

/* ===== RESPONSIVE ===== */

/* Small desktop / large tablet — prevent cramped 3-col grids */
@media (max-width: 1024px) {
  .pain-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  /* Center the 3rd card when it wraps to its own row */
  .pain-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .who-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .who-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .testimonials {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .testimonial-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: 50%;
    justify-self: center;
  }

  .metrics-bar { gap: 40px; }
}

/* Tablet */
@media (max-width: 768px) {
  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }

  .section { padding: 64px 0; }
  .section-title { font-size: 2rem; }

  .pain-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .pain-card:last-child:nth-child(odd) {
    max-width: 100%;
    grid-column: auto;
  }

  .who-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .who-card:last-child:nth-child(odd) {
    max-width: 100%;
    grid-column: auto;
  }

  .logo-track { gap: 36px; }
  .logo-item img { height: 60px; }

  /* Force metrics into 3-col grid so they don't wrap unevenly */
  .metrics-bar {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }

  .testimonials {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .testimonial-card:last-child:nth-child(odd) {
    max-width: 100%;
    grid-column: auto;
  }

  .nav-brand span { display: none; }
  .nav-logo { height: 32px; }

  .ceo-bio { padding: 24px 20px; flex-direction: column; align-items: center; text-align: center; }
  .ceo-photo { width: 100px; height: 100px; }
  .ceo-credentials { text-align: left; }

  .sticky-text { display: none; }
  .sticky-inner { justify-content: center; }

  .section-cta h2 { font-size: 1.8rem; }

  .floating-cta { display: block; }

  /* Move proof popup above floating CTA on tablets */
  .proof-popup { bottom: 76px; }

  .lead-magnet { padding: 32px 24px; }
  .lead-magnet-form { flex-direction: column; }

  .cta-no-list { gap: 12px; }

  /* Inline CTA buttons full-width on tablet */
  .section-cta-inline .btn { display: block; max-width: 360px; margin: 0 auto; }

  .process-step { gap: 16px; }
}

/* Mobile */
@media (max-width: 480px) {
  .hero { padding: 100px 0 48px; }
  .hero h1 { font-size: 1.6rem; }
  .hero-sub { font-size: 0.95rem; }

  .section { padding: 48px 0; }
  .section-title { font-size: 1.6rem; }
  .section-sub { font-size: 0.95rem; }

  .container { padding: 0 16px; }

  .btn { padding: 12px 24px; font-size: 0.95rem; }
  .btn-lg { padding: 16px 32px; font-size: 1rem; }
  .btn-nav { padding: 8px 16px; font-size: 0.8rem; }

  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { text-align: center; }

  /* Smaller step circles on mobile */
  .step-number {
    width: 36px;
    height: 36px;
    min-width: 36px;
    font-size: 1.1rem;
  }
  .process-step { gap: 14px; }

  .metrics-bar { gap: 8px; }
  .metric-number { font-size: 1.8rem; }
  .metric-label { font-size: 0.8rem; }

  .hero-proof { margin-top: 32px; padding-top: 24px; }

  .logo-track { gap: 28px; }
  .logo-item img { height: 44px; }

  .section-cta { padding: 64px 0; }
  .section-cta h2 { font-size: 1.5rem; }

  .ceo-bio { padding: 20px 16px; }
  .ceo-credentials li { font-size: 0.85rem; padding: 5px 0 5px 20px; }
  .ceo-info h3 { font-size: 1.2rem; }

  .guarantee-box { padding: 20px 16px; font-size: 0.9rem; }

  .faq-question { font-size: 0.95rem; }

  .cta-no-list { flex-direction: column; gap: 6px; align-items: center; }

  /* Extra bottom padding for floating CTA */
  .footer { padding-bottom: 80px; }

  .proof-popup { display: none; }

  .value-list li { padding: 14px 0 14px 32px; font-size: 0.95rem; }
}
