/* 7-Day Challenge Page Styles */

/* Logo styling */
.hero img {
  height: 80px;
  margin: 10px auto 20px auto;
  display: block;
}

/* Base styles for the entire page */
body {
  font-family: "Source Sans Pro", -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  padding: 20px;
}

/* Hero section - wider */
.hero {
  max-width: 1050px;
  margin: 0 auto;
  text-align: center;
}

/* Standard content - narrower */
.hero ~ * {
  max-width: 750px;
  margin-left: auto;
  margin-right: auto;
}

/* HubSpot CTA styling - general for all instances */
.hs-cta-embed {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  margin-bottom: 30px;
}

/* HubSpot CTA spacing and centering - specific to hero */
.hero .hs-cta-embed {
  margin: 0 auto 30px auto !important;
  text-align: center !important;
  display: block !important;
}

/* Hero section - now handled by .hero container */
/* Removed conflicting rules since hero content is now wrapped in .hero div */

/* Standard content width is now handled by body */

/* Hide anchor links */
body .anchor {
  display: none !important;
}

/* Typography */
body p:first-of-type strong {
  font-size: 1.25rem;
}

body h1 {
  font-size: 3.125rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  color: #1a1a1a;
}

body h2 {
  font-size: 2.625rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: #2d2d2d;
}

/* Hero-specific h2 styling */
.hero h2 {
  font-size: 1.75rem;
  padding: 0 12%;
}

body h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: #404040;
}

body p {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
}

body strong {
  font-weight: 700;
  color: #1a1a1a;
}

body em {
  font-style: italic;
  color: #555;
}

/* Lists */
body ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

body li {
  margin-bottom: 0.5rem;
  font-size: 1.125rem;
}

/* Blockquotes */
body blockquote {
  margin: 2rem 0;
  padding: 1rem 12rem 1.875rem 1.875rem;
  font-weight: 700;
  font-style: normal;
  position: relative;
  font-size: 1.25rem;
}

body blockquote::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1.875rem;
  width: 200px;
  height: 8px;
  background: linear-gradient(
    90deg,
    #f59e0b 0%,
    #fbbf24 40%,
    #f59e0b 70%,
    #d97706 100%
  );
  border-radius: 3px 0 2px 1px;
  transform: rotate(-0.5deg);
}

body blockquote p {
  margin: 0;
}

body blockquote p::before {
  content: '"';
  font-size: 1.5rem;
  font-weight: 900;
  /* margin-right: 0.25rem; */
  color: #f59e0b;
}

body blockquote p::after {
  content: '"';
  font-size: 1.5rem;
  font-weight: 900;
  /* margin-left: 0.25rem; */
  color: #f59e0b;
}

/* Quote attribution styling - targets paragraphs that follow blockquotes and start with dash */
body blockquote + p {
  margin-top: -3rem;
  margin-bottom: 2rem;
  margin-left: 3rem;
  font-style: italic;
  font-size: 1rem;
  color: #555;
  text-align: left;
  padding-right: 1.875rem;
}

/* Links */
body a {
  color: #2563eb;
  text-decoration: underline;
}

body a:hover {
  color: #1d4ed8;
}

/* Call-to-action styling */
body p:has(strong:contains("Join the 7-Day")) {
  text-align: center;
  margin: 2rem 0;
  padding: 1.5rem;
  background-color: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

/* Flow transformation diagram */
body .remark-container.flow {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  padding: 2rem;
  margin: 2.5rem 0 4rem 0;
  position: relative;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Hide the title for flow containers */
body .remark-container-title.flow {
  display: none;
}

/* Transform the content into a vertical flow */
body .remark-container.flow p {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 1.25rem 1.5rem;
  margin: 0 0 2rem 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #475569;
  font-weight: 400;
  position: relative;
  text-align: left;
}

/* Remove margin from last item */
body .remark-container.flow p:last-child {
  margin-bottom: 0;
}

/* Add connecting arrows between items */
body .remark-container.flow p:not(:last-child)::after {
  content: "↓";
  position: absolute;
  bottom: -1.25rem;
  left: 50%;
  transform: translateX(-50%);
  background: #f8fafc;
  color: #64748b;
  font-size: 1.25rem;
  font-weight: 600;
  width: 1.5rem;
  height: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #e2e8f0;
}

/* Add a subtle transformation indicator */
body .remark-container.flow::before {
  content: "The Typical Path";
  position: absolute;
  top: -0.75rem;
  left: 1.5rem;
  background: #64748b;
  color: white;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.75rem;
}

/* Hide the title for checklist containers */
body .remark-container-title.checklist {
  display: none;
}

/* Style checklist items - just replace bullets with checkmarks */
body .remark-container.checklist ul {
  list-style: none;
}

body .remark-container.checklist li {
  position: relative;
}

/* Add checkmarks */
body .remark-container.checklist li::before {
  content: "✓";
  position: absolute;
  left: -1.2rem;
  top: 0;
  color: #10b981;
  font-weight: bold;
}

/* Step headings with marker highlight - using proper marker technique */
body h3 strong {
  margin: 0 -0.4em;
  padding: 0.1em 0.4em;
  border-radius: 0.8em 0.3em;
  background: transparent;
  background-image: linear-gradient(
    to right,
    rgba(245, 215, 110, 0.3),
    rgba(245, 215, 110, 0.9) 4%,
    rgba(245, 215, 110, 0.5)
  );
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  body h1 {
    font-size: 2rem;
  }

  body h2 {
    font-size: 1.75rem;
  }

  body h3 {
    font-size: 1.25rem;
  }

  body p,
  body li {
    font-size: 1rem;
  }
}
