/* ==========================================================================
   Marketing Pages - Industrial Athletic Editorial Design
   ========================================================================== */

/* --------------------------------------------------------------------------
   Marketing Navigation & Logo
   -------------------------------------------------------------------------- */

.marketing-nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1;
}

.marketing-nav-logo {
  height: 48px;
  width: auto;
  display: block;
  margin: 0;
  padding: 0;
}

.marketing-nav-text {
  display: inline;
  line-height: 1;
}

/* Responsive logo sizing */
@media (min-width: 768px) {
  .marketing-nav-logo {
    height: 56px;
  }
}

/* --------------------------------------------------------------------------
   Typography System
   Using Bebas Neue for headlines (bold, athletic) and Source Sans 3 for body
   -------------------------------------------------------------------------- */

:root {
  --font-display: 'Bebas Neue', 'Impact', sans-serif;
  --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Marketing-specific spacing */
  --section-padding-mobile: 3rem 1.25rem;
  --section-padding-desktop: 5rem 2rem;
  --container-max: 1200px;
  --content-max: 720px;

  /* Subtle grain texture via SVG */
  --grain-opacity: 0.03;
}

/* --------------------------------------------------------------------------
   Marketing Body & Main
   -------------------------------------------------------------------------- */

.marketing-body {
  font-family: var(--font-body);
  background: var(--dark-gray);
  color: var(--light-gray);
  line-height: 1.7;
  overflow-x: hidden;
}

.marketing-main {
  /* Remove container constraint for full-bleed sections */
}

/* --------------------------------------------------------------------------
   Section Containers
   -------------------------------------------------------------------------- */

.section-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section-container-reverse {
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   Section Labels (Pain / Dream / Fix badges)
   -------------------------------------------------------------------------- */

.section-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0.375rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 1rem;
}

.section-label-pain {
  background: oklch(45% 0.15 25);
  color: white;
}

.section-label-dream {
  background: oklch(65% 0.15 145);
  color: white;
}

.section-label-fix {
  background: var(--primary-color);
  color: white;
}

/* --------------------------------------------------------------------------
   Section Titles
   -------------------------------------------------------------------------- */

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
  color: var(--light-gray);
}

.section-title-large {
  font-size: clamp(2rem, 6vw, 3.5rem);
}

.section-title-light {
  color: white;
}

/* --------------------------------------------------------------------------
   Section Text
   -------------------------------------------------------------------------- */

.section-text {
  font-size: 1.125rem;
  line-height: 1.8;
  margin-bottom: 1.25rem;
  color: oklch(85% 0.01 255);
}

.section-text-large {
  font-size: 1.25rem;
}

.section-text-emphasis {
  font-weight: 600;
  color: var(--primary-color-light);
}

.section-text-light {
  color: oklch(90% 0.01 255);
}

.section-text-centered {
  text-align: center;
  max-width: var(--content-max);
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--section-padding-mobile);
  overflow: hidden;
}

.hero-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    oklch(15% 0.02 250 / 0.92) 0%,
    oklch(20% 0.03 250 / 0.85) 50%,
    oklch(25% 0.02 250 / 0.75) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--primary-color-light);
  margin-bottom: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.2s forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  margin-bottom: 1.5rem;
  color: white;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.4s forwards;
}

.hero-highlight {
  color: var(--primary-color-light);
  position: relative;
}

.hero-highlight::after {
  content: '';
  position: absolute;
  bottom: 0.1em;
  left: 0;
  right: 0;
  height: 0.15em;
  background: var(--primary-color);
  opacity: 0.5;
  transform: scaleX(0);
  transform-origin: left;
  animation: underlineGrow 0.4s ease-out 1s forwards;
}

.hero-subtitle {
  font-size: 1.25rem;
  line-height: 1.7;
  color: oklch(85% 0.01 255);
  margin-bottom: 2rem;
  max-width: 540px;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.6s forwards;
}

.hero-cta {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  opacity: 0;
  animation: fadeSlideUp 0.6s ease-out 0.8s forwards;
}

.btn-hero-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 1rem 2rem;
  background: var(--primary-color);
  color: white;
  text-decoration: none;
  border-radius: 3px;
  transition: all 0.2s ease;
  min-height: 52px;
}

.btn-hero-primary:hover {
  background: var(--primary-color-light);
  color: var(--dark-gray);
  transform: translateY(-2px);
}

.btn-hero-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  padding: 1rem 2rem;
  background: transparent;
  color: white;
  text-decoration: none;
  border: 2px solid oklch(100% 0 0 / 0.3);
  border-radius: 3px;
  transition: all 0.2s ease;
  min-height: 52px;
}

.btn-hero-secondary:hover {
  border-color: white;
  background: oklch(100% 0 0 / 0.1);
}

/* ==========================================================================
   PAIN SECTIONS
   ========================================================================== */

.pain-section {
  padding: var(--section-padding-mobile);
  position: relative;
}

.pain-section-dark {
  background: var(--dark-gray);
}

.pain-section-light {
  background: oklch(25% 0.02 250);
}

.pain-content {
  max-width: var(--content-max);
}

.pain-content-centered {
  max-width: var(--container-max);
  text-align: center;
}

.pain-visual {
  margin-bottom: 2rem;
}

/* Stacked cards visual for "copying workouts" section */
.visual-card-stack {
  position: relative;
  height: 180px;
  max-width: 280px;
  margin: 0 auto;
}

.stack-item {
  position: absolute;
  left: 50%;
  padding: 1rem 1.5rem;
  background: oklch(35% 0.02 250);
  border: 1px solid oklch(45% 0.02 250);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(70% 0.01 255);
  box-shadow: 0 4px 12px oklch(0% 0 0 / 0.3);
  transition: transform 0.3s ease;
}

.stack-item-1 {
  transform: translateX(-50%) rotate(-6deg);
  top: 0;
  z-index: 3;
}

.stack-item-2 {
  transform: translateX(-40%) rotate(3deg);
  top: 40px;
  z-index: 2;
}

.stack-item-3 {
  transform: translateX(-60%) rotate(-2deg);
  top: 80px;
  z-index: 1;
}

.visual-card-stack:hover .stack-item-1 {
  transform: translateX(-50%) rotate(-8deg) translateY(-5px);
}

.visual-card-stack:hover .stack-item-2 {
  transform: translateX(-35%) rotate(5deg);
}

.visual-card-stack:hover .stack-item-3 {
  transform: translateX(-65%) rotate(-4deg) translateY(5px);
}

/* Questions grid for "late night loop" section */
.questions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 2rem 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.question-card {
  background: oklch(28% 0.02 250);
  border: 1px solid oklch(35% 0.02 250);
  border-radius: 4px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.question-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: oklch(45% 0.15 25 / 0.2);
  color: oklch(65% 0.15 25);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.question-card p {
  margin: 0;
  font-size: 1rem;
  color: oklch(80% 0.01 255);
}

/* ==========================================================================
   TRANSITION SECTION (Athletes Comparing Notes)
   ========================================================================== */

.transition-section {
  padding: var(--section-padding-mobile);
  background: oklch(22% 0.02 250);
  border-top: 1px solid oklch(30% 0.02 250);
  border-bottom: 1px solid oklch(30% 0.02 250);
}

.quote-block {
  position: relative;
  max-width: 600px;
  margin: 0 auto 2rem;
  text-align: center;
}

.quote-marks {
  font-family: Georgia, serif;
  font-size: 6rem;
  line-height: 1;
  color: oklch(35% 0.02 250);
  position: absolute;
  top: -1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 0;
}

.quote-content {
  position: relative;
  z-index: 1;
}

.quote-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 1.25rem;
  color: oklch(75% 0.02 25);
  margin-bottom: 0.5rem;
}

.quote-text:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   DREAM SECTION
   ========================================================================== */

.dream-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: var(--section-padding-mobile);
  overflow: hidden;
}

.dream-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.dream-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.dream-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    oklch(18% 0.02 250 / 0.95) 0%,
    oklch(20% 0.02 250 / 0.85) 60%,
    oklch(22% 0.02 250 / 0.7) 100%
  );
}

.dream-content {
  position: relative;
  z-index: 1;
  max-width: 580px;
}

.dream-quote {
  background: oklch(65% 0.15 145 / 0.15);
  border-left: 4px solid oklch(65% 0.15 145);
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border-radius: 0 4px 4px 0;
}

.dream-quote p {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  color: white;
  margin: 0;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   FIX SECTION (The Solution)
   ========================================================================== */

.fix-section {
  padding: var(--section-padding-mobile);
  background: linear-gradient(
    180deg,
    oklch(25% 0.02 250) 0%,
    oklch(30% 0.03 250) 100%
  );
  text-align: center;
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-section {
  padding: var(--section-padding-mobile);
  background: var(--dark-gray);
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: oklch(28% 0.02 250);
  border: 1px solid oklch(35% 0.02 250);
  border-radius: 6px;
  padding: 2rem;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: oklch(45% 0.02 250);
}

.feature-card-primary {
  background: linear-gradient(
    135deg,
    oklch(35% 0.08 250) 0%,
    oklch(30% 0.06 250) 100%
  );
  border-color: var(--primary-color);
}

.feature-icon {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.feature-icon span:nth-child(1) { color: oklch(65% 0.15 145); }
.feature-icon span:nth-child(2) { color: oklch(70% 0.15 70); }
.feature-icon span:nth-child(3) { color: oklch(55% 0.15 25); }

.feature-icon-import span,
.feature-icon-groups span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.5rem;
  background: oklch(35% 0.02 250);
  border-radius: 3px;
  color: oklch(75% 0.01 255);
}

.feature-icon-calendar {
  display: block;
}

.mini-calendar {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  width: fit-content;
}

.cal-day {
  width: 16px;
  height: 16px;
  border-radius: 2px;
}

.cal-ready { background: oklch(65% 0.15 145); }
.cal-notice { background: oklch(85% 0.15 95); }
.cal-warning { background: oklch(55% 0.15 35); }

.feature-title {
  font-family: var(--font-display);
  font-size: 1.375rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: white;
}

.feature-text {
  font-size: 1rem;
  line-height: 1.7;
  color: oklch(80% 0.01 255);
  margin: 0;
}

/* ==========================================================================
   STORY SECTION (Built By Coaches)
   ========================================================================== */

.story-section {
  position: relative;
  padding: var(--section-padding-mobile);
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.story-image-container {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.story-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: grayscale(40%);
}

.story-image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    oklch(20% 0.02 250 / 0.98) 0%,
    oklch(22% 0.02 250 / 0.9) 40%,
    oklch(25% 0.02 250 / 0.75) 100%
  );
}

.story-content {
  position: relative;
  z-index: 1;
  max-width: 600px;
}

/* ==========================================================================
   TESTIMONIAL SECTION
   ========================================================================== */

.testimonial-section {
  padding: var(--section-padding-mobile);
  background: oklch(25% 0.02 250);
}

.testimonial-card {
  max-width: 680px;
  margin: 2rem auto;
  background: oklch(28% 0.02 250);
  border: 1px solid oklch(35% 0.02 250);
  border-radius: 6px;
  padding: 2rem;
  text-align: center;
}

.testimonial-quote {
  margin: 0;
}

.testimonial-quote p {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.7;
  color: white;
  margin: 0;
}

.testimonial-attribution {
  font-size: 0.875rem;
  color: oklch(65% 0.01 255);
  margin-top: 1rem;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
  padding: var(--section-padding-mobile);
  background: linear-gradient(
    180deg,
    oklch(28% 0.03 250) 0%,
    oklch(22% 0.02 250) 100%
  );
  text-align: center;
}

.cta-content {
  max-width: 600px;
  margin: 0 auto;
}

.cta-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  letter-spacing: 0.02em;
  margin-bottom: 1rem;
  color: white;
}

.cta-subtitle {
  font-size: 1.125rem;
  color: oklch(80% 0.01 255);
  margin-bottom: 2rem;
}

.cta-form {
  background: oklch(30% 0.02 250);
  border: 1px solid oklch(40% 0.02 250);
  border-radius: 8px;
  padding: 2rem;
  overflow: hidden;
}

/* Override ActiveCampaign form styles */
.cta-form ._form_1066 {
  font-family: var(--font-body) !important;
}

/* Contain reCAPTCHA on mobile */
.cta-form iframe,
.cta-form .g-recaptcha,
.cta-form [title*="reCAPTCHA"] {
  max-width: 100%;
}

/* Scale down reCAPTCHA on very narrow screens */
@media (max-width: 360px) {
  .cta-form .g-recaptcha,
  .cta-form [title*="reCAPTCHA"],
  .cta-form iframe[src*="recaptcha"] {
    transform: scale(0.85);
    transform-origin: left top;
  }
}

/* ==========================================================================
   MARKETING FOOTER
   ========================================================================== */

.marketing-footer {
  padding: 3rem 1.25rem;
  background: oklch(15% 0.01 250);
  text-align: center;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-link {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(70% 0.01 255);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--primary-color-light);
}

.footer-copyright {
  font-size: 0.75rem;
  color: oklch(50% 0.01 255);
  margin: 0;
}

/* ==========================================================================
   GUIDES INDEX PAGE
   ========================================================================== */

.guides-hero {
  padding: 4rem 1.25rem 3rem;
  background: linear-gradient(180deg, oklch(20% 0.02 250) 0%, var(--dark-gray) 100%);
  text-align: center;
}

.guides-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 8vw, 4rem);
  letter-spacing: 0.02em;
  color: white;
  margin-bottom: 1rem;
}

.guides-hero-subtitle {
  font-family: var(--font-body);
  font-size: 1.125rem;
  color: oklch(75% 0.01 255);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Quickstart Callout */
.guides-quickstart {
  padding: 2rem 1.25rem;
  background: var(--dark-gray);
}

.quickstart-card {
  background: linear-gradient(135deg, oklch(25% 0.03 250) 0%, oklch(22% 0.02 250) 100%);
  border: 1px solid oklch(35% 0.05 250);
  border-radius: 12px;
  padding: 2rem;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quickstart-badge {
  display: inline-block;
  background: var(--primary-color);
  color: white;
  font-family: var(--font-display);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.375rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.quickstart-title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: white;
  margin-bottom: 0.75rem;
}

.quickstart-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: oklch(75% 0.01 255);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.quickstart-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary-color);
  color: white;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.875rem 1.5rem;
  border-radius: 4px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.quickstart-cta:hover {
  background: var(--primary-color-light);
  color: var(--dark-gray);
}

.cta-arrow {
  transition: transform 0.2s ease;
}

.quickstart-cta:hover .cta-arrow {
  transform: translateX(4px);
}

/* Guides Grid */
.guides-grid-section {
  padding: 3rem 1.25rem;
  background: var(--dark-gray);
}

.guides-section-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: oklch(70% 0.01 255);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  text-align: center;
}

.guides-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1000px;
  margin: 0 auto;
}

.guide-card {
  display: flex;
  flex-direction: column;
  background: oklch(25% 0.02 250);
  border: 1px solid oklch(35% 0.02 250);
  border-radius: 8px;
  padding: 1.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.guide-card:hover {
  border-color: var(--primary-color);
  background: oklch(27% 0.02 250);
  transform: translateY(-2px);
}

.guide-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.guide-icon {
  font-size: 1.5rem;
}

.guide-category {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guide-card-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: white;
  margin-bottom: 0.5rem;
}

.guide-card-description {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: oklch(70% 0.01 255);
  line-height: 1.5;
  flex-grow: 1;
  margin-bottom: 1rem;
}

.guide-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.guide-reading-time {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: oklch(55% 0.01 255);
}

.guide-arrow {
  color: var(--primary-color);
  font-size: 1.25rem;
  transition: transform 0.2s ease;
}

.guide-card:hover .guide-arrow {
  transform: translateX(4px);
}

/* Help Section */
.guides-help {
  padding: 3rem 1.25rem;
  background: oklch(18% 0.01 250);
  text-align: center;
}

.help-content {
  max-width: 500px;
  margin: 0 auto;
}

.help-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 0.75rem;
}

.help-text {
  font-family: var(--font-body);
  font-size: 1rem;
  color: oklch(70% 0.01 255);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.help-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--primary-color-light);
  text-decoration: none;
  transition: color 0.2s ease;
}

.help-link:hover {
  color: white;
}

.help-link:hover .cta-arrow {
  transform: translateX(4px);
}

/* ==========================================================================
   INDIVIDUAL GUIDE PAGE
   ========================================================================== */

.guide-header {
  padding: 2rem 1.25rem 1.5rem;
  background: linear-gradient(180deg, oklch(20% 0.02 250) 0%, var(--dark-gray) 100%);
}

.guide-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  font-family: var(--font-body);
  font-size: 0.875rem;
}

.breadcrumb-link {
  color: oklch(60% 0.01 255);
  text-decoration: none;
  transition: color 0.2s ease;
}

.breadcrumb-link:hover {
  color: var(--primary-color-light);
}

.breadcrumb-separator {
  color: oklch(45% 0.01 255);
}

.breadcrumb-current {
  color: oklch(75% 0.01 255);
}

.guide-meta {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.guide-header-icon {
  font-size: 1.5rem;
}

.guide-header-category {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--primary-color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guide-header-dot {
  color: oklch(45% 0.01 255);
}

.guide-header-time {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: oklch(60% 0.01 255);
}

/* Guide Content */
.guide-content-section {
  padding: 2rem 1.25rem 3rem;
  background: var(--dark-gray);
}

.guide-article {
  max-width: 720px;
  margin: 0 auto;
}

.guide-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2rem);
  color: white;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid oklch(30% 0.02 250);
}

.guide-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.guide-article h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--light-gray);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.guide-article p {
  font-family: var(--font-body);
  font-size: 1rem;
  color: oklch(80% 0.01 255);
  line-height: 1.7;
  margin-bottom: 1rem;
}

.guide-article ul,
.guide-article ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.guide-article li {
  font-family: var(--font-body);
  font-size: 1rem;
  color: oklch(80% 0.01 255);
  line-height: 1.6;
  margin-bottom: 0.5rem;
}

.guide-article strong {
  color: white;
  font-weight: 600;
}

.guide-article code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
  background: oklch(25% 0.02 250);
  padding: 0.2em 0.4em;
  border-radius: 3px;
  color: var(--primary-color-light);
}

.guide-article pre {
  background: oklch(20% 0.02 250);
  border: 1px solid oklch(30% 0.02 250);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.guide-article pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: oklch(85% 0.01 255);
}

.guide-article hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid oklch(30% 0.02 250);
}

/* Guide Navigation */
.guide-navigation {
  padding: 2rem 1.25rem;
  background: oklch(22% 0.01 250);
}

.guide-nav-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
  margin: 0 auto;
}

.guide-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: oklch(25% 0.02 250);
  border: 1px solid oklch(35% 0.02 250);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-decoration: none;
  transition: all 0.2s ease;
}

.guide-nav-link:hover {
  border-color: var(--primary-color);
  background: oklch(27% 0.02 250);
}

.guide-nav-direction {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--primary-color-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.guide-nav-title {
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: white;
}

.guide-nav-spacer {
  display: none;
}

.guide-nav-next {
  text-align: right;
}

/* Back to Guides */
.guide-back-section {
  padding: 1.5rem 1.25rem 2rem;
  background: var(--dark-gray);
  text-align: center;
}

.guide-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: oklch(60% 0.01 255);
  text-decoration: none;
  transition: color 0.2s ease;
}

.guide-back-link:hover {
  color: var(--primary-color-light);
}

.back-arrow {
  transition: transform 0.2s ease;
}

.guide-back-link:hover .back-arrow {
  transform: translateX(-4px);
}

/* Guides Grid Responsive */
@media (min-width: 640px) {
  .guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .guide-nav-links {
    flex-direction: row;
    justify-content: space-between;
  }

  .guide-nav-link {
    flex: 1;
    max-width: 48%;
  }

  .guide-nav-spacer {
    display: block;
    flex: 1;
    max-width: 48%;
  }
}

@media (min-width: 768px) {
  .guides-hero {
    padding: 5rem 2rem 4rem;
  }

  .guides-hero-subtitle {
    font-size: 1.25rem;
  }

  .guides-grid-section {
    padding: 4rem 2rem;
  }

  .guide-card {
    padding: 1.75rem;
  }

  .guide-header {
    padding: 3rem 2rem 2rem;
  }

  .guide-content-section {
    padding: 3rem 2rem 4rem;
  }
}

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underlineGrow {
  from {
    transform: scaleX(0);
  }
  to {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   RESPONSIVE - TABLET & DESKTOP
   ========================================================================== */

@media (min-width: 640px) {
  .questions-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-cta {
    flex-direction: row;
  }
}

@media (min-width: 768px) {
  .hero-section,
  .pain-section,
  .dream-section,
  .fix-section,
  .features-section,
  .story-section,
  .testimonial-section,
  .cta-section,
  .transition-section {
    padding: var(--section-padding-desktop);
  }

  .section-container-reverse {
    flex-direction: row-reverse;
    align-items: center;
    gap: 4rem;
  }

  .pain-visual {
    flex: 0 0 300px;
    margin-bottom: 0;
  }

  .pain-content {
    flex: 1;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
  }

  .visual-card-stack {
    height: 220px;
    max-width: 320px;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .feature-card {
    padding: 2.5rem 2rem;
  }
}

/* ==========================================================================
   LEGACY MARKDOWN PAGE STYLES (for other pages)
   ========================================================================== */

.markdown-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.markdown-page h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  margin-bottom: 2rem;
  line-height: 1.2;
  color: var(--light-gray);
  letter-spacing: 0.02em;
}

.markdown-page h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--primary-color-light);
  letter-spacing: 0.02em;
}

.markdown-page h3 {
  font-family: var(--font-body);
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--light-gray);
}

.markdown-page p {
  font-family: var(--font-body);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.markdown-page strong {
  color: var(--primary-color-light);
  font-weight: 600;
}

.markdown-page a {
  color: var(--primary-color-light);
  text-decoration: none;
  border-bottom: 1px solid oklch(75% 0.15 250 / 0.3);
  transition: all 0.2s ease;
}

.markdown-page a:hover {
  color: white;
  border-bottom-color: var(--primary-color-light);
}

.markdown-page a:visited {
  color: var(--primary-color-light);
}

.markdown-page hr {
  margin: 3rem 0;
  border: none;
  border-top: 1px solid oklch(40% 0.02 250);
}

.markdown-page ul,
.markdown-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.markdown-page li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.markdown-page code {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.875em;
  background: oklch(25% 0.02 250);
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

.markdown-page pre {
  background: oklch(22% 0.02 250);
  border: 1px solid oklch(30% 0.02 250);
  border-radius: 6px;
  padding: 1.25rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.markdown-page pre code {
  background: none;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

.markdown-page blockquote {
  border-left: 4px solid var(--primary-color);
  padding-left: 1.5rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: oklch(80% 0.01 255);
}

/* Recovery Badges List Layout (uses existing rank-* styles from elements.css) */
.recovery-badges-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.recovery-badge-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Style the existing recovery-rank badge in marketing context */
.recovery-badges-list .recovery-rank {
  min-width: 100px;
  justify-content: center;
  display: inline-flex;
}

.recovery-badge-desc {
  color: oklch(75% 0.01 255);
  font-size: 0.9375rem;
}

@media (min-width: 480px) {
  .recovery-badges-list .recovery-rank {
    min-width: 120px;
  }
}

/* Email Capture Form */
.email-capture-form {
  background: oklch(30% 0.03 250);
  border: 1px solid var(--primary-color);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.email-capture-form .form-field {
  margin-bottom: 1rem;
}

.email-capture-form .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  color: var(--light-gray);
}

.email-capture-form .form-input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid oklch(45% 0.02 250);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 1rem;
  min-height: 48px;
  background: white;
  color: var(--dark-gray);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.email-capture-form .form-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px oklch(55% 0.15 250 / 0.2);
}

.email-capture-form .form-actions {
  margin-top: 1.5rem;
}

.email-capture-form .btn-primary {
  width: 100%;
  padding: 0.875rem 1.5rem;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  min-height: 48px;
  transition: background-color 0.2s ease, transform 0.1s ease;
}

.email-capture-form .btn-primary:hover {
  background: var(--primary-color-light);
  color: var(--dark-gray);
}

.email-capture-form .btn-primary:active {
  transform: scale(0.98);
}

/* Form Messages */
.form-message {
  padding: 1rem;
  border-radius: 4px;
  margin-top: 1rem;
  font-family: var(--font-body);
}

.form-message.hidden {
  display: none;
}

.form-message-success {
  background: oklch(65% 0.15 145 / 0.15);
  border: 1px solid oklch(65% 0.15 145);
  color: oklch(75% 0.15 145);
}

.form-message-error {
  background: oklch(55% 0.15 25 / 0.15);
  border: 1px solid oklch(55% 0.15 25);
  color: oklch(65% 0.15 25);
}

/* Responsive Design - Desktop */
@media (min-width: 768px) {
  .markdown-page {
    padding: 3rem 2rem;
  }

  .markdown-page h1 {
    font-size: 2.75rem;
  }

  .markdown-page h2 {
    font-size: 1.875rem;
  }

  .email-capture-form {
    padding: 2.5rem;
  }

  .email-capture-form .btn-primary {
    width: auto;
    min-width: 220px;
  }
}

/* Accessibility: Focus visible for keyboard navigation */
.btn-hero-primary:focus-visible,
.btn-hero-secondary:focus-visible,
.footer-link:focus-visible,
.email-capture-form .form-input:focus-visible,
.email-capture-form .btn-primary:focus-visible {
  outline: 2px solid var(--primary-color-light);
  outline-offset: 2px;
}

/* ==========================================================================
   Features Page
   ========================================================================== */

.features-hero {
  background: linear-gradient(135deg, oklch(25% 0.02 255) 0%, oklch(20% 0.02 255) 100%);
  padding: var(--section-padding-mobile);
  text-align: center;
  border-bottom: 1px solid oklch(35% 0.02 255);
}

.features-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.features-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: oklch(75% 0.01 255);
  max-width: 600px;
  margin: 0 auto;
}

.features-content-section {
  padding: var(--section-padding-mobile);
  background: oklch(22% 0.01 255);
}

.features-article {
  max-width: var(--content-max);
  margin: 0 auto;
}

.features-article h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
  color: var(--light-gray);
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-top: 2rem;
  border-top: 1px solid oklch(35% 0.02 255);
}

.features-article h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.features-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: oklch(85% 0.01 255);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.features-article p {
  color: oklch(75% 0.01 255);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.features-article ul,
.features-article ol {
  color: oklch(75% 0.01 255);
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.features-article li {
  margin-bottom: 0.5rem;
}

.features-article strong {
  color: oklch(85% 0.01 255);
}

.features-article pre {
  background: oklch(18% 0.01 255);
  border: 1px solid oklch(30% 0.02 255);
  border-radius: 0.375rem;
  padding: 1rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.features-article code {
  font-family: 'SF Mono', 'Monaco', 'Inconsolata', monospace;
  font-size: 0.875rem;
  color: oklch(80% 0.08 145);
}

.features-article hr {
  border: none;
  border-top: 1px solid oklch(35% 0.02 255);
  margin: 2.5rem 0;
}

/* ==========================================================================
   Pricing Page
   ========================================================================== */

.pricing-hero {
  background: linear-gradient(135deg, oklch(25% 0.02 255) 0%, oklch(20% 0.02 255) 100%);
  padding: var(--section-padding-mobile);
  text-align: center;
  border-bottom: 1px solid oklch(35% 0.02 255);
}

.pricing-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--light-gray);
  margin-bottom: 1rem;
}

.pricing-hero-subtitle {
  font-size: clamp(1.125rem, 2.5vw, 1.375rem);
  color: oklch(75% 0.01 255);
  max-width: 600px;
  margin: 0 auto;
}

.pricing-content-section {
  padding: var(--section-padding-mobile);
  background: oklch(22% 0.01 255);
}

.pricing-article {
  max-width: var(--content-max);
  margin: 0 auto;
}

.pricing-article h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: var(--primary-color);
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.pricing-article h2:first-child {
  margin-top: 0;
  text-align: center;
}

.pricing-article h3 {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  line-height: 1.2;
  letter-spacing: 0.02em;
  color: oklch(85% 0.01 255);
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.pricing-article p {
  color: oklch(75% 0.01 255);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.pricing-article strong {
  color: oklch(85% 0.01 255);
}

.pricing-article hr {
  border: none;
  border-top: 1px solid oklch(35% 0.02 255);
  margin: 2.5rem 0;
}

.pricing-article a {
  color: var(--primary-color-light);
  text-decoration: underline;
}

.pricing-article a:hover {
  color: var(--primary-color);
}

/* Desktop adjustments for Features and Pricing */
@media (min-width: 768px) {
  .features-hero,
  .pricing-hero {
    padding: var(--section-padding-desktop);
  }

  .features-content-section,
  .pricing-content-section {
    padding: var(--section-padding-desktop);
  }

  .features-article h2 {
    margin-top: 4rem;
    padding-top: 3rem;
  }
}

/* Print styles */
@media print {
  .hero-section,
  .dream-section,
  .story-section {
    min-height: auto;
  }

  .hero-image-container,
  .dream-image-container,
  .story-image-container {
    display: none;
  }

  .hero-image-overlay,
  .dream-image-overlay,
  .story-image-overlay {
    display: none;
  }

  .cta-section,
  .marketing-footer {
    display: none;
  }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow,
  .hero-title,
  .hero-subtitle,
  .hero-cta {
    animation: none;
    opacity: 1;
  }

  .hero-highlight::after {
    animation: none;
    transform: scaleX(1);
  }

  .feature-card,
  .stack-item,
  .btn-hero-primary,
  .btn-hero-secondary {
    transition: none;
  }
}
