/* ===================================================================
   CRM Flow Lab — additions.css
   Multi-page rebuild: motion graphics, new components, page heroes
   Loaded AFTER style.css on every page.
   =================================================================== */

/* ---------- Page load entrance ---------- */
@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
/* (body fade-in removed: it hid the whole page on first paint and delayed LCP) */

/* ---------- Staggered entrances ---------- */
@keyframes riseIn {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise   { opacity: 0; animation: riseIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.15s; }
.rise-3 { animation-delay: 0.25s; }
.rise-4 { animation-delay: 0.35s; }
.rise-5 { animation-delay: 0.45s; }
.rise-6 { animation-delay: 0.55s; }

/* Page headlines are the Largest Contentful Paint element: keep them visible
   from the first frame and animate movement only (no opacity fade). */
@keyframes riseInMove {
  from { transform: translateY(18px); }
  to   { transform: translateY(0); }
}
h1.rise { opacity: 1; animation-name: riseInMove; animation-delay: 0s; animation-duration: 0.6s; }

/* ---------- Extra scroll-reveal variants ---------- */
.reveal-left, .reveal-right, .reveal-scale {
  opacity: 0;
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: opacity, transform;
}
.reveal-left  { transform: translateX(-48px); }
.reveal-right { transform: translateX(48px); }
.reveal-scale { transform: scale(0.94); }
.reveal-left.visible, .reveal-right.visible, .reveal-scale.visible {
  opacity: 1;
  transform: none;
}

/* stagger children inside a revealed group */
[data-stagger].visible > * {
  opacity: 0;
  animation: riseIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
[data-stagger].visible > *:nth-child(1) { animation-delay: 0.05s; }
[data-stagger].visible > *:nth-child(2) { animation-delay: 0.15s; }
[data-stagger].visible > *:nth-child(3) { animation-delay: 0.25s; }
[data-stagger].visible > *:nth-child(4) { animation-delay: 0.35s; }
[data-stagger].visible > *:nth-child(5) { animation-delay: 0.45s; }
[data-stagger].visible > *:nth-child(6) { animation-delay: 0.55s; }

/* ---------- Button shine sweep ---------- */
.btn { position: relative; overflow: hidden; }
.btn::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* subtle magnetic lift on primary CTAs */
.btn-primary { transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease; }
.btn-primary:hover { transform: translateY(-2px); }

/* ---------- Spotlight cards (mouse-follow glow) ---------- */
.spotlight { position: relative; }
.spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(217,121,31,0.10), transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.spotlight:hover::before { opacity: 1; }

/* ---------- Inner page hero ---------- */
.page-hero {
  position: relative;
  padding: 168px 0 84px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.page-hero .orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }
.page-hero .orb-1 { width: 420px; height: 420px; background: #F3C89B; top: -160px; right: -120px; animation: orbPulse 9s ease-in-out infinite; }
.page-hero .orb-2 { width: 320px; height: 320px; background: #EDDBCD; bottom: -140px; left: -100px; animation: orbPulse 11s ease-in-out infinite reverse; }
.page-hero-inner { position: relative; z-index: 2; max-width: 820px; }
.page-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; margin: 18px 0; }
.page-hero h1 .highlight { color: var(--accent); }
.page-hero p.lead { font-size: 18px; color: var(--text-muted); line-height: 1.7; max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent);
}
.hero-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--accent); border-radius: 2px; }
.page-hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.breadcrumb { font-size: 13px; color: var(--text-muted); margin-bottom: 6px; }
.breadcrumb a:hover { color: var(--accent); }

/* ---------- Niche picker cards (home) ---------- */
.niche-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.niche-card {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 40px 36px;
  background: var(--bg-card);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex; flex-direction: column; gap: 14px;
}
.niche-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-card); border-color: rgba(217,121,31,0.35); }
.niche-card .niche-icon {
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--accent-dim);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.niche-card h3 { font-size: 24px; font-weight: 800; margin: 0; }
.niche-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin: 0; }
.niche-card .niche-link { font-weight: 700; color: var(--accent); display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.niche-card .niche-link svg { transition: transform 0.25s ease; }
.niche-card:hover .niche-link svg { transform: translateX(5px); }
.niche-card::after {
  content: ''; position: absolute; right: -70px; top: -70px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, rgba(217,121,31,0.12), transparent 70%);
  pointer-events: none;
}

/* ---------- Pain points ---------- */
.pains-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pain-card {
  border: 1px solid var(--border); border-radius: var(--radius-card);
  padding: 28px; background: var(--bg-card);
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.pain-card:hover { transform: translateY(-4px); border-color: rgba(217,121,31,0.35); }
.pain-card .pain-x {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(220, 60, 60, 0.08); color: #C0392B;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 18px; margin-bottom: 14px;
}
.pain-card h4 { font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.pain-card p { font-size: 14px; color: var(--text-muted); margin: 0; line-height: 1.65; }

/* ---------- Fix list (pain -> fix) ---------- */
.fix-band {
  background: #0E0C09;
  border-radius: 20px;
  padding: 56px;
  color: #FFF7EF;
  position: relative; overflow: hidden;
}
.fix-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(600px circle at 85% 15%, rgba(217,121,31,0.22), transparent 60%);
  pointer-events: none;
}
.fix-band h3 { font-size: 28px; font-weight: 800; margin: 0 0 8px; position: relative; }
.fix-band > p { color: rgba(255,247,239,0.72); margin: 0 0 28px; position: relative; }
.fix-list { display: grid; gap: 14px; position: relative; }
.fix-item { display: flex; gap: 14px; align-items: flex-start; }
.fix-item .fix-check {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: rgba(16,185,129,0.16); color: #34D399;
  display: flex; align-items: center; justify-content: center; font-weight: 800;
}
.fix-item p { margin: 0; font-size: 15px; line-height: 1.65; color: rgba(255,247,239,0.88); }
.fix-item p strong { color: #fff; }

/* ---------- Testimonial slider ---------- */
.tslider { position: relative; overflow: hidden; border-radius: 18px; }
.tslider-track { display: flex; transition: transform 0.65s cubic-bezier(0.22, 1, 0.36, 1); }
.tslide { min-width: 100%; padding: 6px; }
.tslider-nav { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 26px; }
.tdot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--border); border: none; cursor: pointer;
  transition: all 0.3s ease; padding: 0;
}
.tdot.active { background: var(--accent); transform: scale(1.25); }
.tarrow {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--bg-card);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  color: var(--text); transition: all 0.25s ease;
}
.tarrow:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* placeholder testimonial cards awaiting real client quotes */
.testimonial-card.is-placeholder { border-style: dashed; }
.testimonial-card.is-placeholder .testimonial-text { color: var(--text-muted); font-style: italic; }

/* ---------- FAQ accordion ---------- */
.faq-list { display: grid; gap: 12px; max-width: 780px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-card); overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.faq-item.open { border-color: rgba(217,121,31,0.4); box-shadow: var(--shadow-card); }
.faq-q {
  width: 100%; background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 20px 24px; font-size: 16px; font-weight: 700; color: var(--text);
  font-family: inherit; text-align: left;
}
.faq-q .faq-icon {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: var(--accent-dim); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; transition: transform 0.3s ease;
}
.faq-item.open .faq-q .faq-icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-a p { padding: 0 24px 22px; margin: 0; color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ---------- CTA banner ---------- */
.cta-band {
  background: linear-gradient(120deg, #171208 0%, #2A1A08 60%, #3A2208 100%);
  border-radius: 22px; padding: 64px 56px;
  color: #FFF7EF; text-align: center;
  position: relative; overflow: hidden;
}
.cta-band::before, .cta-band::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(70px);
  pointer-events: none;
}
.cta-band::before { width: 380px; height: 380px; background: rgba(217,121,31,0.35); top: -160px; left: -120px; animation: orbPulse 8s ease-in-out infinite; }
.cta-band::after { width: 300px; height: 300px; background: rgba(217,121,31,0.22); bottom: -140px; right: -100px; animation: orbPulse 10s ease-in-out infinite reverse; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); font-weight: 800; margin: 0 0 12px; position: relative; }
.cta-band p { color: rgba(255,247,239,0.75); max-width: 560px; margin: 0 auto 28px; font-size: 16px; position: relative; }
.cta-band .btn { position: relative; }

/* ---------- Two-column feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split h3 { font-size: 26px; font-weight: 800; margin: 0 0 12px; }
.split p { color: var(--text-muted); line-height: 1.75; margin: 0 0 14px; }
.check-list { display: grid; gap: 10px; margin-top: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.check-list .check {
  width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0;
  background: rgba(16,185,129,0.12); color: #0E9F6E;
  display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px;
}

/* ---------- Pricing additions ---------- */
.roi-note {
  border: 1px dashed rgba(217,121,31,0.5); border-radius: 12px;
  background: var(--accent-dim); padding: 18px 22px; font-size: 14px;
  color: var(--text-dim); margin-top: 26px; line-height: 1.65;
}
.roi-note strong { color: var(--accent); }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 900;
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(192,96,20,0.35);
  opacity: 0; transform: translateY(16px); pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent-hover); transform: translateY(-3px); }

/* ---------- Nav active link ---------- */
.nav-link.active { color: var(--accent); font-weight: 700; }

/* ---------- Footer additions ---------- */
.footer-bottom { display: flex; justify-content: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .niche-grid { grid-template-columns: 1fr; }
  .pains-grid { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .fix-band { padding: 36px 28px; }
  .cta-band { padding: 48px 28px; }
}
@media (max-width: 640px) {
  .pains-grid { grid-template-columns: 1fr; }
  .page-hero { padding: 140px 0 64px; }
}

/* ---------- 3-step grid without connectors (contact page) ---------- */
.steps-grid--trio { grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1024px) {
  .steps-grid--trio { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .rise, .reveal-left, .reveal-right, .reveal-scale { opacity: 1; transform: none; }
}

/* ===== PROOF OF WORK (restored from original inline styles) ===== */
.proof {
  background: var(--bg, #FFFFFF);
  border-top: 1px solid var(--border, #CDCDCD);
}
.proof-grid-videos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 28px;
}
.proof-grid-images,
.proof-images {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
.proof-card {
  background: var(--bg-card, #FFFFFF);
  border: 1px solid var(--border, #CDCDCD);
  border-radius: var(--radius-card, 14px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 0;
  transition: transform var(--transition, 0.25s ease), border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}
.proof-card:hover {
  transform: translateY(-6px);
  border-color: var(--accent, #C06014);
  box-shadow: 0 10px 30px rgba(192, 96, 20, 0.15);
}
.proof-card video {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #000000;
  display: block;
  border-bottom: 1px solid var(--border, #CDCDCD);
}
.proof-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  object-position: top;
  display: block;
  border-bottom: 1px solid var(--border, #CDCDCD);
}
.proof-card figcaption {
  padding: 20px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex-grow: 1;
}
.proof-card h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text, #000000);
  line-height: 1.35;
  margin: 0;
}
.proof-card p {
  font-size: 14px;
  color: var(--text-muted, #6B6B6B);
  line-height: 1.5;
  margin: 0;
}
.proof-cta {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
}
.proof-cta-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text, #000000);
  margin: 0;
}
@media (max-width: 1024px) {
  .proof-grid-videos { grid-template-columns: repeat(2, 1fr); }
  .proof-grid-images, .proof-images { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .proof-grid-videos, .proof-grid-images, .proof-images { grid-template-columns: 1fr; }
  .proof-cta-text { font-size: 18px; }
}

/* ===== Testimonial author info ===== */
.author-info { display: flex; flex-direction: column; gap: 2px; }

/* ===== Legal pages (Privacy Policy, Terms) ===== */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body .legal-updated { font-size: 14px; color: var(--text-muted); margin-bottom: 32px; }
.legal-body h2 { font-size: 22px; font-weight: 700; margin: 40px 0 12px; letter-spacing: -0.01em; }
.legal-body h3 { font-size: 17px; font-weight: 700; margin: 24px 0 8px; }
.legal-body p { color: var(--text-dim); line-height: 1.75; margin-bottom: 14px; }
.legal-body ul { list-style: disc; padding-left: 22px; margin-bottom: 14px; }
.legal-body li { color: var(--text-dim); line-height: 1.75; margin-bottom: 6px; }
.legal-body a { color: var(--accent); text-decoration: underline; }
.legal-body .legal-callout { background: var(--bg-surface); border-left: 4px solid var(--accent); border-radius: 8px; padding: 18px 20px; margin: 20px 0; }
.legal-body .legal-callout p:last-child { margin-bottom: 0; }
.footer-legal { margin-top: 6px; }
.footer-legal a { color: var(--text-muted); text-decoration: underline; }
.footer-legal a:hover { color: var(--accent); }

/* ===== Booking calendar embed ===== */
.booking-wrap { max-width: 1000px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 12px; }
#book { scroll-margin-top: 90px; }
@media (max-width: 768px) { .booking-wrap { padding: 4px; } }

/* ---------- Founder card (About page) ---------- */
.founder-card {
  display: grid; grid-template-columns: 280px 1fr; gap: 48px; align-items: center;
  background: var(--bg-surface); border: 1px solid var(--peach);
  border-radius: 20px; padding: 48px;
}
.founder-photo {
  width: 280px; height: 280px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-card);
}
.founder-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.founder-initials { color: #fff; font-size: 88px; font-weight: 900; letter-spacing: 2px; }
.founder-name { font-size: 2.2rem; font-weight: 800; margin: 10px 0 4px; }
.founder-role { color: var(--accent); font-weight: 600; margin: 0 0 18px; }
.founder-text p { color: var(--text-dim); line-height: 1.7; margin: 0 0 12px; }
.founder-facts { list-style: none; padding: 0; margin: 22px 0; display: flex; gap: 28px; flex-wrap: wrap; }
.founder-facts li { display: flex; flex-direction: column; }
.founder-facts strong { font-size: 1.6rem; font-weight: 800; color: var(--accent); }
.founder-facts span { font-size: 0.85rem; color: var(--text-muted); }
.founder-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--accent); text-decoration: none; }
.founder-link:hover { text-decoration: underline; }
@media (max-width: 860px) {
  .founder-card { grid-template-columns: 1fr; padding: 28px 20px; gap: 28px; text-align: left; }
  .founder-photo { width: 180px; height: 180px; }
  .founder-initials { font-size: 60px; }
}

/* ---------- Booking calendar loader ---------- */
.booking-wrap { position: relative; min-height: 784px; }
.cal-loader {
  position: absolute; inset: 0; z-index: 2; min-height: 360px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start;
  padding-top: 120px; gap: 16px; text-align: center;
  background: var(--bg-card); border-radius: 14px; color: var(--text-muted);
  transition: opacity 0.35s ease;
}
.cal-loader.done { opacity: 0; pointer-events: none; }
.cal-spinner {
  width: 44px; height: 44px; border-radius: 50%;
  border: 4px solid var(--peach); border-top-color: var(--accent);
  animation: calSpin 0.8s linear infinite;
}
@keyframes calSpin { to { transform: rotate(360deg); } }
.page-hero.page-hero--compact { padding: 128px 0 32px; }
@media (max-width: 768px) { .page-hero.page-hero--compact { padding: 104px 0 24px; } }
.page-hero--compact .page-hero-inner { padding-top: 0; }
.booking-alt { text-align: center; color: var(--text-muted); max-width: 620px; margin: 20px auto 0; font-size: 0.95rem; }
