/* ============================================
   AI FOR THE LONG GAME -- Design System + Styles
   Milestone 4: Layout Refinements
   ============================================ */

/* --- Design Tokens --- */
:root {
  /* Colors */
  --color-bg:         #FFFFFF;
  --color-bg-alt:     #F7F8FA;
  --color-text:       #1a1a2e;
  --color-text-muted: #6B7280;
  --color-text-light: #9CA3AF;
  --color-accent:     #E8600A;
  --color-accent-hover:#D05508;
  --color-accent-light: rgba(232, 96, 10, 0.08);
  --color-border:     #E5E7EB;
  --color-border-light:#F0F1F3;
  --color-white:      #FFFFFF;
  --color-success:    #059669;
  --color-danger:     #DC2626;

  /* Typography */
  --font-family:      'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-size-base:   18px;
  --font-size-sm:     15px;
  --font-size-lg:     20px;
  --font-size-xl:     24px;
  --font-size-2xl:    32px;
  --font-size-3xl:    42px;
  --font-size-hero:   52px;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semi:   600;
  --font-weight-bold:   700;
  --line-height-tight:  1.2;
  --line-height-snug:   1.35;
  --line-height-base:   1.65;
  --line-height-loose:  1.8;

  /* Spacing */
  --space-xs:   8px;
  --space-sm:   16px;
  --space-md:   24px;
  --space-lg:   40px;
  --space-xl:   64px;
  --space-2xl:  96px;
  --space-3xl:  128px;

  /* Layout */
  --container-width:  720px;
  --container-wide:   960px;
  --container-max:    1100px;

  /* Borders & Shadows */
  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 12px rgba(0,0,0,0.07), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 10px 40px rgba(0,0,0,0.08), 0 4px 12px rgba(0,0,0,0.04);
  --shadow-xl:  0 20px 60px rgba(0,0,0,0.1), 0 8px 20px rgba(0,0,0,0.06);
}


/* --- Reset & Base --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: var(--font-size-base);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: var(--line-height-base);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

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

strong {
  font-weight: var(--font-weight-semi);
}


/* --- Typography --- */
h1, h2, h3, h4 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--color-text);
}

h1 {
  font-size: var(--font-size-hero);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

h2 {
  font-size: var(--font-size-3xl);
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: var(--font-size-2xl);
}

h4 {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semi);
}

p {
  margin-bottom: var(--space-sm);
  line-height: var(--line-height-base);
}

p:last-child {
  margin-bottom: 0;
}

.text-muted {
  color: var(--color-text-muted);
}

.text-accent {
  color: var(--color-accent);
}

.text-center {
  text-align: center;
}

.lead {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
}


/* --- Layout --- */
.section {
  padding: var(--space-2xl) var(--space-md);
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section--accent {
  background-color: var(--color-text);
  color: var(--color-white);
}

.section--accent h2,
.section--accent h3,
.section--accent h4 {
  color: var(--color-white);
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--container-wide);
}

.container--max {
  max-width: var(--container-max);
}


/* --- Section Header (centered headline + subtitle pattern) --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
}


/* --- Eyebrow label (small label above headlines) --- */
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: var(--font-weight-semi);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}


/* --- Hero --- */
.hero {
  padding: var(--space-3xl) var(--space-md) var(--space-2xl);
  text-align: center;
}

.hero h1 {
  margin-bottom: var(--space-md);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
}

.hero .subheadline {
  font-size: var(--font-size-xl);
  color: var(--color-text-muted);
  max-width: 660px;
  margin: 0 auto var(--space-lg);
  line-height: var(--line-height-snug);
  font-weight: var(--font-weight-normal);
}


/* --- CTA Buttons --- */
.btn {
  display: inline-block;
  padding: 18px 44px;
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  text-align: center;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  letter-spacing: 0.01em;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
  box-shadow: 0 2px 8px rgba(232, 96, 10, 0.25);
}

.btn--primary:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232, 96, 10, 0.3);
}

.btn--large {
  padding: 22px 56px;
  font-size: var(--font-size-lg);
}

.cta-block {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}

.cta-subtext {
  display: block;
  margin-top: var(--space-sm);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}


/* --- Testimonial Cards --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.testimonial-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-md);
}

.testimonial-card blockquote {
  font-size: var(--font-size-base);
  line-height: var(--line-height-loose);
  margin-bottom: var(--space-md);
  font-style: italic;
  color: var(--color-text);
  position: relative;
}

.testimonial-card blockquote::before {
  content: "\201C";
  font-size: 48px;
  color: var(--color-accent);
  opacity: 0.2;
  position: absolute;
  top: -12px;
  left: -4px;
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card .attribution {
  font-weight: var(--font-weight-semi);
  font-size: var(--font-size-sm);
  font-style: normal;
  color: var(--color-text-muted);
}


/* --- Module / Deliverable Cards (timeline layout) --- */
.modules-timeline {
  position: relative;
  padding-left: 48px;
}

.modules-timeline::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

.module-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
  position: relative;
}

.module-card::before {
  content: attr(data-step);
  position: absolute;
  left: -48px;
  top: var(--space-lg);
  width: 32px;
  height: 32px;
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: var(--font-weight-bold);
  z-index: 1;
}

.module-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.module-card h4 {
  margin-bottom: var(--space-sm);
}

.module-card ul {
  list-style: none;
  padding: 0;
}

.module-card ul li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  line-height: var(--line-height-base);
  border-bottom: 1px solid var(--color-border-light);
}

.module-card ul li:last-child {
  border-bottom: none;
}

.module-card ul li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  position: absolute;
  left: 0;
  font-size: 14px;
}


/* --- Bonus Cards --- */
.bonuses-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.bonus-card {
  background: var(--color-white);
  border: 1px solid var(--color-border-light);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}

.bonus-card h4 {
  margin-bottom: var(--space-xs);
}

.bonus-card p {
  color: var(--color-text);
}


/* --- Value Stack --- */
.value-stack {
  list-style: none;
  padding: 0;
  max-width: 600px;
}

.value-stack li {
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border-light);
  display: flex;
  align-items: baseline;
  gap: 12px;
  font-size: var(--font-size-base);
}

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

.value-stack li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  flex-shrink: 0;
  font-size: 14px;
}


/* --- Pricing --- */
.pricing-block {
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  background: var(--color-white);
  border: 2px solid var(--color-accent);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.pricing-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--color-accent);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pricing-block .price {
  font-size: 64px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  margin: var(--space-sm) 0;
  letter-spacing: -0.02em;
}

.pricing-block .price-alt {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}


/* --- FAQ Accordion --- */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-md) 0;
  cursor: pointer;
  gap: var(--space-md);
  -webkit-user-select: none;
  user-select: none;
}

.faq-question h4 {
  margin-bottom: 0;
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semi);
  flex: 1;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  transition: transform 0.25s ease;
  font-size: 20px;
}

.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;
}

.faq-answer p {
  color: var(--color-text-muted);
  padding-bottom: var(--space-md);
  margin-bottom: 0;
  line-height: var(--line-height-base);
}


/* --- Image Placeholder --- */
.img-placeholder {
  background: var(--color-bg-alt);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  min-height: 300px;
  text-align: center;
  padding: var(--space-md);
}


/* --- Authority / Bio --- */
.bio-layout {
  display: flex;
  gap: var(--space-xl);
  align-items: flex-start;
}

.bio-layout .bio-image {
  flex: 0 0 300px;
}

.bio-layout .bio-text {
  flex: 1;
}

.bio-layout .bio-text p:first-of-type {
  font-size: var(--font-size-lg);
}


/* --- Who Is This For (check / x lists) --- */
.who-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

.who-column h2 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-md);
}

.check-list, .x-list {
  list-style: none;
  padding: 0;
}

.check-list li, .x-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  line-height: var(--line-height-base);
}

.check-list li::before {
  content: "\2713";
  color: var(--color-success);
  font-weight: var(--font-weight-bold);
  position: absolute;
  left: 0;
  font-size: 14px;
}

.x-list li::before {
  content: "\2717";
  color: var(--color-danger);
  font-weight: var(--font-weight-bold);
  position: absolute;
  left: 0;
  font-size: 14px;
}


/* --- Countdown --- */
.countdown {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.countdown-unit {
  text-align: center;
  min-width: 90px;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-sm);
  box-shadow: var(--shadow-sm);
}

.countdown-unit .number {
  font-size: 42px;
  font-weight: var(--font-weight-bold);
  color: var(--color-text);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 6px;
}

.countdown-unit .label {
  font-size: 11px;
  font-weight: var(--font-weight-medium);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}


/* --- Divider --- */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--color-accent);
  border: none;
  margin: 0 auto var(--space-lg);
  border-radius: 2px;
}


/* --- Emphasis block (for standout paragraphs) --- */
.emphasis-block {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
  text-align: center;
  max-width: 600px;
  margin: var(--space-lg) auto;
  color: var(--color-text);
}


/* --- Video Embed Placeholder --- */
.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: var(--space-lg) auto;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  background: #0a0a14;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.video-embed .video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: var(--font-size-sm);
  gap: var(--space-sm);
}

.video-embed .play-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232, 96, 10, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-embed .play-icon::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 12px 0 12px 22px;
  border-color: transparent transparent transparent white;
  margin-left: 4px;
}


/* --- CTA Section (enhanced) --- */
.cta-section {
  text-align: center;
  padding: var(--space-2xl) var(--space-md);
  position: relative;
}

.cta-section--bordered {
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
}


/* --- Accent stripe (thin orange line for visual separation) --- */
.accent-stripe {
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  border: none;
  margin: 0;
  opacity: 0.4;
}


/* --- Guarantee (enhanced) --- */
.guarantee-block {
  text-align: center;
  padding: var(--space-xl);
  background: var(--color-white);
  border: 2px solid var(--color-border);
  border-radius: var(--radius-lg);
  max-width: 640px;
  margin: 0 auto;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.guarantee-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--color-success);
}

.guarantee-icon {
  font-size: 48px;
  margin-bottom: var(--space-md);
  display: block;
}

.guarantee-block h2 {
  font-size: var(--font-size-2xl);
}


/* --- Footer --- */
.footer {
  padding: var(--space-xl) var(--space-md);
  text-align: center;
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  border-top: 1px solid var(--color-border);
}

.footer p {
  margin-bottom: var(--space-xs);
}


/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
  :root {
    --font-size-hero: 36px;
    --font-size-3xl:  30px;
    --font-size-2xl:  26px;
    --font-size-xl:   20px;
    --space-2xl:      64px;
    --space-3xl:      80px;
  }

  .bio-layout {
    flex-direction: column;
  }

  .bio-layout .bio-image {
    flex: none;
    width: 100%;
    max-width: 300px;
    margin: 0 auto var(--space-lg);
  }

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

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

  .who-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .modules-timeline {
    padding-left: 0;
  }

  .modules-timeline::before {
    display: none;
  }

  .module-card::before {
    position: static;
    display: inline-flex;
    margin-bottom: var(--space-sm);
  }

  .countdown {
    gap: var(--space-sm);
  }

  .countdown-unit {
    min-width: 70px;
    padding: var(--space-sm) var(--space-xs);
  }

  .countdown-unit .number {
    font-size: 32px;
  }

  .btn--large {
    padding: 18px 36px;
    font-size: var(--font-size-base);
  }

  .pricing-block .price {
    font-size: 48px;
  }
}
