/* ============================================================
   SCARLET PETAL AUTOMATION — DTO SALES FUNNEL
   Shared Design System
   Brand: Deep charcoal + Scarlet / Rose red + soft gold accents
   Fonts: Outfit (headings) · Inter (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ─── Custom Properties ─── */
:root {
  /* Brand Palette */
  --scarlet:        #C0392B;   /* primary scarlet/red */
  --scarlet-light:  #E74C3C;   /* brighter hover variant */
  --scarlet-glow:   rgba(192, 57, 43, 0.35);
  --rose:           #FF6B7A;   /* soft rose accent */
  --gold:           #D4AF37;   /* gold accent */
  --gold-light:     #F5D060;

  /* Backgrounds */
  --bg-darkest:     #0D0D0D;
  --bg-dark:        #141414;
  --bg-card:        rgba(255, 255, 255, 0.04);
  --bg-card-hover:  rgba(255, 255, 255, 0.07);
  --bg-light:       #FAFAFA;
  --bg-white:       #FFFFFF;

  /* Text */
  --text-white:     #FFFFFF;
  --text-primary:   #1A1A1A;
  --text-secondary: #6B7280;
  --text-muted:     #9CA3AF;
  --text-on-dark:   #E5E7EB;

  /* Borders */
  --border-subtle:  rgba(255, 255, 255, 0.09);
  --border-light:   #E5E7EB;
  --border-scarlet: rgba(192, 57, 43, 0.4);

  /* Fonts */
  --font-heading:   'Outfit', sans-serif;
  --font-body:      'Inter', sans-serif;

  /* Shadows */
  --shadow-card:    0 20px 40px rgba(0, 0, 0, 0.35);
  --shadow-button:  0 8px 25px rgba(192, 57, 43, 0.45);

  /* Radii */
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-pill: 999px;
}

/* ─── Reset ─── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-primary);
  background: var(--bg-bg-light);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-primary);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--scarlet); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ─── Layout ─── */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container--narrow {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ─── Dark hero sections ─── */
.hero-dark {
  background: var(--bg-darkest);
  position: relative;
  overflow: hidden;
}

.hero-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%,  rgba(192, 57, 43, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 90% 20%,  rgba(212, 175, 55, 0.10) 0%, transparent 55%);
  pointer-events: none;
}

/* Animated mesh dots */
.mesh-bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
  animation: meshDrift 25s linear infinite;
}

@keyframes meshDrift {
  0%   { background-position: 0 0; }
  100% { background-position: 36px 36px; }
}

/* ─── Typography Utilities ─── */
.text-center   { text-align: center; }
.text-white    { color: var(--text-white) !important; }
.text-scarlet  { color: var(--scarlet) !important; }
.text-gold     { color: var(--gold) !important; }
.text-muted    { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }

.gradient-text {
  background: linear-gradient(135deg, var(--scarlet-light) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-light {
  background: linear-gradient(135deg, #FF8A80 0%, #F5D060 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ─── Spacing ─── */
.mt-1 { margin-top: 0.75rem; }
.mt-2 { margin-top: 1.5rem; }
.mt-3 { margin-top: 2.5rem; }
.mt-4 { margin-top: 3.5rem; }
.mt-5 { margin-top: 5rem; }
.mb-1 { margin-bottom: 0.75rem; }
.mb-2 { margin-bottom: 1.5rem; }
.mb-3 { margin-bottom: 2.5rem; }
.py-3 { padding-top: 3rem; padding-bottom: 3rem; }
.py-4 { padding-top: 4rem; padding-bottom: 4rem; }
.py-5 { padding-top: 6rem; padding-bottom: 6rem; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1rem 2.5rem;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--scarlet) 0%, #8B0000 100%);
  box-shadow: var(--shadow-button);
  animation: pulseCta 3s ease-in-out infinite;
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--scarlet-light) 0%, var(--scarlet) 100%);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 35px rgba(192, 57, 43, 0.65);
  color: #fff;
  text-decoration: none;
}

.btn-ghost {
  color: var(--scarlet);
  background: transparent;
  border: 2px solid var(--scarlet);
}

.btn-ghost:hover {
  background: var(--scarlet);
  color: #fff;
}

.btn-lg {
  padding: 1.25rem 3rem;
  font-size: 1.2rem;
}

@keyframes pulseCta {
  0%, 100% { box-shadow: 0 8px 25px rgba(192, 57, 43, 0.45); }
  50%       { box-shadow: 0 8px 40px rgba(192, 57, 43, 0.75), 0 0 30px rgba(212,175,55,0.25); }
}

/* ─── Cards / Panels ─── */
.card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.07);
}

.card-dark {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.card-scarlet {
  border: 1.5px dashed rgba(192,57,43,0.5);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  background: rgba(192,57,43,0.04);
}

/* ─── Stat Boxes ─── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.stat-box {
  border: 1.5px dashed rgba(192,57,43,0.5);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(192,57,43,0.03);
  transition: border-color 0.3s;
}

.stat-box:hover {
  border-color: var(--scarlet);
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--scarlet);
  display: block;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* Dark variant stat boxes */
.stat-box-dark {
  border: 1.5px dashed rgba(192,57,43,0.45);
  border-radius: var(--radius-md);
  padding: 1.5rem 1rem;
  text-align: center;
  background: rgba(255,255,255,0.04);
  transition: all 0.3s;
}

.stat-box-dark:hover {
  border-color: var(--scarlet-light);
  background: rgba(255,255,255,0.07);
  transform: translateY(-2px);
}

.stat-box-dark .stat-number {
  color: var(--rose);
}

.stat-box-dark .stat-label {
  color: var(--text-on-dark);
}

/* ─── Social Proof / Avatars ─── */
.social-proof-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.avatar-stack {
  display: flex;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2.5px solid #fff;
  margin-right: -10px;
  background: linear-gradient(135deg, var(--scarlet), var(--gold));
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

/* Photo avatar — individual headshot per circle */
.avatar.avatar-photo {
  background: #E5E7EB;
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(0,0,0,0.08);
  overflow: hidden;
}

.avatar.avatar-photo img {
  position: static;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  inset: auto;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.social-proof-text {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding-left: 14px;
}

/* ─── Logo / Brand ─── */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text-primary);
}

.brand-logo-dark {
  color: var(--text-white);
}

.brand-logo .brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--scarlet), #8B0000);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

/* ─── Alert Bar ─── */
.alert-bar {
  background: var(--gold);
  color: #1A1A1A;
  text-align: center;
  padding: 0.65rem 1.5rem;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

/* ─── Urgency Badge ─── */
.badge-urgency {
  display: inline-block;
  background: rgba(192, 57, 43, 0.12);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: var(--scarlet);
  border-radius: var(--radius-pill);
  padding: 0.4rem 1.1rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.badge-urgency-dark {
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.35);
  color: var(--rose);
}

/* ─── Divider ─── */
.divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--scarlet), var(--gold));
  border-radius: var(--radius-pill);
  margin: 0 auto;
}

/* ─── Footer ─── */
footer.main-footer {
  background: var(--bg-darkest);
  color: var(--text-on-dark);
  padding: 2.5rem 1.5rem;
  text-align: center;
  font-size: 0.82rem;
  margin-top: auto;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  list-style: none;
  margin-bottom: 1rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--scarlet-light);
  text-decoration: none;
}

.footer-disclaimer {
  color: var(--text-muted);
  font-size: 0.78rem;
  max-width: 680px;
  margin: 0.75rem auto 0;
  line-height: 1.6;
}

/* ─── Scheduling Placeholder ─── */
.calendar-placeholder {
  background: #f9f9f9;
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.calendar-placeholder strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

/* ─── Step indicators ─── */
.step-tag {
  display: inline-block;
  font-style: italic;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--scarlet);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.3rem;
}

/* ─── Testimonial cards ─── */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.testimonial-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  transition: all 0.3s;
}

.testimonial-card:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(192,57,43,0.35);
  transform: translateY(-2px);
}

.testimonial-roas {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--rose);
  margin-bottom: 0.4rem;
}

.testimonial-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-on-dark);
}

.testimonial-detail {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.3rem;
}

/* ─── Popup / Modal ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  max-width: 520px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.92);
  transition: transform 0.3s;
  box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.modal-overlay.is-open .modal-box {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border: none;
  background: #F3F4F6;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  transition: background 0.2s;
}

.modal-close:hover {
  background: #E5E7EB;
}

/* ─── FAQ ─── */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 1.25rem 0;
}

.faq-item:last-child { border-bottom: none; }

.faq-question {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--scarlet);
  font-weight: 400;
  flex-shrink: 0;
  transition: transform 0.3s;
}

.faq-item.is-open .faq-question::after {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

.faq-item.is-open .faq-answer {
  max-height: 400px;
  padding-top: 0.75rem;
}

/* ─── Schedule Duration Tag ─── */
.duration-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(192,57,43,0.08);
  border: 1px solid rgba(192,57,43,0.25);
  color: var(--scarlet);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ─── Geometric side decorations ─── */
.geo-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.07;
}

.geo-left  { left: 0;  top: 50%; transform: translateY(-50%); }
.geo-right { right: 0; top: 50%; transform: translateY(-50%); }

/* ─── Animations ─── */
.fade-in-up {
  opacity: 0;
  transform: translateY(28px);
  animation: fadeInUp 0.75s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.delay-1 { animation-delay: 0.15s; }
.delay-2 { animation-delay: 0.30s; }
.delay-3 { animation-delay: 0.45s; }
.delay-4 { animation-delay: 0.60s; }

@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-lg {
    padding: 1rem 2rem;
    font-size: 1.05rem;
  }

  .card, .card-dark {
    padding: 1.75rem 1.25rem;
  }
}

@media (max-width: 480px) {
  .container { padding: 0 1rem; }
  .container--narrow { padding: 0 1rem; }
}
