/* =================================================================
   TOOLKIT-THEATER.CSS
   Dedicated styles for toolkit.html onboarding page.
   One scrollytelling theater (low-tech demo).
   All Safari-compatible: -webkit- prefixes, no flex gap, explicit colors.
   ================================================================= */

/* ========== TOOLKIT HERO ========== */

.tk-hero {
  background-color: #1a5c57;
  background: linear-gradient(135deg, #1a5c57 0%, #0f3d39 100%);
  color: white;
  padding: 6rem 2rem 4.5rem;
  text-align: center;
}

.tk-hero-content {
  max-width: 760px;
  margin: 0 auto;
}

.tk-hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
  color: white !important;
}

.tk-hero-promise {
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-style: italic;
  color: #d4a853 !important;
  line-height: 1.6;
  margin: 0 0 1rem;
}

.tk-hero-sub {
  font-size: clamp(0.92rem, 1.7vw, 1.05rem);
  line-height: 1.75;
  color: rgba(255,255,255,0.8);
  margin: 0 0 2rem;
}

.tk-hero-actions {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: center;
  justify-content: center;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.5rem;
}

.tk-hero-actions .btn {
  margin: 0.5rem;
}

.tk-hero-btn-primary {
  background: #d4a853 !important;
  color: #1a1a1a !important;
  font-weight: 700;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  border: none;
  transition: all 0.3s ease;
}

.tk-hero-btn-primary:hover {
  background: #e0b964 !important;
  color: #1a1a1a !important;
  -webkit-transform: translateY(-1px);
  transform: translateY(-1px);
}

.tk-hero-btn-secondary {
  border: 2px solid rgba(255,255,255,0.4) !important;
  color: white !important;
  padding: 0.85rem 2rem;
  font-size: 1rem;
  border-radius: 8px;
  background: transparent !important;
  transition: all 0.3s ease;
}

.tk-hero-btn-secondary:hover {
  border-color: rgba(255,255,255,0.7) !important;
  background: rgba(255,255,255,0.08) !important;
}


/* ========== FIXED SIDE CTA ========== */

.tk-fixed-cta {
  position: fixed;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
  transform: translateY(-50%);
  z-index: 900;
  background: #d4a853;
  color: #1a1a1a !important;
  text-decoration: none;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  padding: 1rem 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  border-radius: 8px 0 0 8px;
  box-shadow: -2px 2px 12px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
  opacity: 0;
  pointer-events: none;
}

.tk-fixed-cta.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.tk-fixed-cta:hover {
  background: #e0b964;
  padding-right: 0.85rem;
  color: #1a1a1a !important;
}

.tk-fixed-cta-icon {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.tk-fixed-cta-text {
  display: block;
}


/* ========== CHAPTER LAYOUT ========== */

.tk-chapter {
  padding: 4rem 0;
}

.tk-chapter .container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

.tk-chapter-label {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #1a5c57;
  margin-bottom: 0.5rem;
}

.tk-chapter-intro {
  font-size: 1rem;
  color: #666;
  margin: 0.25rem 0 2.5rem;
  max-width: 680px;
}

.tk-chapter-alt {
  background-color: #f5f3ef;
}


/* ========== DARK CHAPTER ========== */

.tk-chapter-dark {
  background-color: #1a2a2a !important;
  color: #e8e3db !important;
}

.tk-chapter-dark .tk-chapter-label {
  color: rgba(255,255,255,0.4) !important;
}

.tk-chapter-dark h2 {
  color: white !important;
}

.tk-intro-dark {
  color: rgba(255,255,255,0.7) !important;
}


/* ========== SECTION 2: PREVIEW GRID ========== */

.tk-preview-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.65rem;
}

.tk-preview-card {
  -webkit-flex: 0 0 calc(50% - 1.3rem);
  flex: 0 0 calc(50% - 1.3rem);
  margin: 0.65rem;
  background: white;
  border: 1px solid #e8e3db;
  border-radius: 10px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tk-preview-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
}

.tk-preview-icon {
  font-size: 1.5rem;
  color: #1a5c57;
  margin-bottom: 0.65rem;
}

.tk-preview-card h3 {
  font-size: 1rem;
  color: #1a5c57;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.tk-preview-card p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.6;
  margin: 0;
}


/* ========== SECTION 3: THREE MODES ========== */

.tk-modes-row {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.tk-mode-card {
  -webkit-flex: 1 1 280px;
  flex: 1 1 280px;
  margin: 0.75rem;
  background: white;
  border: 2px solid #e8e3db;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.tk-mode-card:hover {
  border-color: #1a5c57;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.tk-mode-header {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  padding: 1.25rem 1.5rem 0;
}

.tk-mode-icon {
  font-size: 1.8rem;
  margin-right: 0.75rem;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
}

.tk-mode-header h3 {
  font-size: 1.15rem;
  color: #1a5c57;
  margin: 0;
}

.tk-mode-tagline {
  font-size: 0.88rem;
  font-weight: 600;
  color: #d4a853;
  padding: 0.5rem 1.5rem 0;
  margin: 0;
}

.tk-mode-body {
  padding: 0.75rem 1.5rem;
}

.tk-mode-body p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin-bottom: 0.75rem;
}

.tk-mode-body p:last-child {
  margin-bottom: 0;
}

.tk-mode-best {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #1a5c57;
  background: #f0ede8;
  padding: 0.75rem 1.5rem;
  margin-top: 0.75rem;
}


/* ========== SECTION 4: TIMELINE ========== */

.tk-timeline {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -1.25rem;
}

.tk-timeline-phase {
  -webkit-flex: 1 1 340px;
  flex: 1 1 340px;
  margin: 0 1.25rem;
}

.tk-timeline-marker {
  margin-bottom: 1.5rem;
}

.tk-marker-label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d4a853 !important;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid #d4a853;
}

.tk-timeline-steps {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: column;
  flex-direction: column;
}

.tk-timeline-steps > * + * {
  margin-top: 1rem;
}

.tk-step {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: flex-start;
  align-items: flex-start;
  background: rgba(255,255,255,0.06);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  border-left: 3px solid rgba(212, 168, 83, 0.35);
}

.tk-step-num {
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(212, 168, 83, 0.2);
  color: #d4a853 !important;
  font-size: 0.78rem;
  font-weight: 800;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  margin-right: 1rem;
  margin-top: 0.1rem;
}

.tk-step-content h4 {
  font-size: 0.92rem;
  color: white !important;
  margin: 0 0 0.25rem;
  font-weight: 700;
}

.tk-step-content p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7) !important;
  line-height: 1.6;
  margin: 0;
}


/* ========== SECTION 5: SCROLLYTELLING (LOW-TECH DEMO) ========== */

.tk-scrolly {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-direction: row;
  flex-direction: row;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem 3rem;
  position: relative;
}

.tk-scrolly-sticky {
  -webkit-flex: 0 0 400px;
  flex: 0 0 400px;
  position: -webkit-sticky;
  position: sticky;
  top: 80px;
  height: -webkit-fit-content;
  height: fit-content;
  max-height: calc(100vh - 120px);
  z-index: 10;
}

.tk-scrolly-steps {
  -webkit-flex: 1;
  flex: 1;
  padding-left: 3rem;
  min-height: 100vh;
}

.tk-scroll-step {
  min-height: 65vh;
  padding: 2rem 0;
  display: -webkit-flex;
  display: flex;
  -webkit-align-items: center;
  align-items: center;
}

.tk-step-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
  opacity: 0.4;
}

.tk-scroll-step.is-active .tk-step-card {
  opacity: 1;
  box-shadow: 0 4px 20px rgba(0,0,0,0.18);
}

.tk-step-card h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #1a5c57;
}

.tk-step-card p {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #444;
  margin-bottom: 0.75rem;
}

.tk-step-card p:last-child {
  margin-bottom: 0;
}


/* ========== LOW-TECH DEMO VISUAL ========== */

.tk-demo-visual {
  padding: 1.5rem;
}

.tk-demo-stage {
  background: #faf7f2;
  border: 2px solid #e8e3db;
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: all 0.5s ease;
}

.tk-demo-stage.stage-paper {
  background: #faf7f2;
  border-color: #e8e3db;
}

.tk-demo-stage.stage-notes {
  background: #fffde6;
  border-color: #e8dfa0;
}

.tk-demo-stage.stage-sheets {
  background: #eef7ee;
  border-color: #a8d4a8;
}

.tk-demo-stage.stage-practice {
  background: #f0f7f6;
  border-color: #1a5c57;
  border-width: 3px;
}

.tk-demo-card-mock {
  transition: all 0.5s ease;
}

.tk-demo-card-header {
  display: -webkit-flex;
  display: flex;
  -webkit-justify-content: space-between;
  justify-content: space-between;
  -webkit-align-items: center;
  align-items: center;
  padding: 0.85rem 1.2rem;
  background: #1a5c57;
  color: white;
}

.tk-demo-card-title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.tk-demo-card-state {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: rgba(255,255,255,0.2);
  padding: 3px 10px;
  border-radius: 10px;
}

.tk-demo-card-fields {
  padding: 1.2rem 1.4rem;
}

.tk-demo-field {
  padding: 0.7rem 0;
  border-bottom: 1px dashed #e0dbd4;
  display: block;
}

.tk-demo-field:last-child {
  border-bottom: none;
}

.tk-demo-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #1a5c57;
  display: block;
  margin-bottom: 0.2rem;
}

.tk-demo-field-value {
  font-size: 0.85rem;
  color: #2d2d2d;
  display: block;
  line-height: 1.4;
  transition: all 0.4s ease;
}

.tk-demo-caption {
  font-size: 0.8rem;
  font-style: italic;
  color: #999;
  text-align: center;
  margin-top: 1rem;
  transition: all 0.4s ease;
}


/* ========== SECTION 6: FUTURE APP ========== */

.tk-future-grid {
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0 -0.75rem;
}

.tk-future-principle {
  -webkit-flex: 1 1 calc(50% - 1.5rem);
  flex: 1 1 calc(50% - 1.5rem);
  margin: 0.75rem;
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  border-left: 4px solid #1a5c57;
  transition: all 0.3s ease;
}

.tk-future-principle:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.tk-future-principle h3 {
  font-size: 1rem;
  color: #1a5c57;
  margin-bottom: 0.5rem;
}

.tk-future-principle p {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.tk-future-summary {
  margin-top: 2.5rem;
  padding: 1.5rem 2rem;
  background: #f0ede8;
  border-radius: 10px;
  text-align: center;
}

.tk-future-summary p {
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin: 0;
  font-style: italic;
}


/* ========== SECTION 7: CLOSING CTA ========== */

.tk-closing {
  background-color: #1a5c57;
  background: linear-gradient(135deg, #0f3d39 0%, #1a5c57 100%);
  color: white;
  padding: 5rem 2rem;
  text-align: center;
}

.tk-closing .container {
  max-width: 680px;
  margin: 0 auto;
}

.tk-closing h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  color: white !important;
  margin-bottom: 1rem;
}

.tk-closing-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8) !important;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.tk-closing-actions {
  margin-bottom: 2rem;
}

.tk-closing-btn {
  background: #d4a853 !important;
  color: #1a1a1a !important;
  font-weight: 700;
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
  border-radius: 8px;
  border: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.tk-closing-btn:hover {
  background: #e0b964 !important;
  color: #1a1a1a !important;
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212, 168, 83, 0.3);
}

.tk-closing-reminder p {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.5);
  margin: 0;
  font-style: italic;
}


/* =================================================================
   RESPONSIVE
   ================================================================= */

@media (max-width: 800px) {
  .tk-scrolly {
    -webkit-flex-direction: column;
    flex-direction: column;
  }
  .tk-scrolly-sticky {
    position: relative;
    top: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
    margin-bottom: 2rem;
  }
  .tk-scrolly-steps {
    padding-left: 0;
    min-height: auto;
  }
  .tk-scroll-step {
    min-height: auto;
    padding: 1rem 0;
  }
  .tk-step-card {
    opacity: 1;
  }

  .tk-fixed-cta {
    display: none;
  }
}

@media (max-width: 700px) {
  .tk-preview-card {
    -webkit-flex: 0 0 calc(100% - 1.3rem);
    flex: 0 0 calc(100% - 1.3rem);
  }

  .tk-modes-row {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .tk-timeline {
    -webkit-flex-direction: column;
    flex-direction: column;
  }

  .tk-timeline-phase {
    margin: 0 0 2rem;
  }

  .tk-future-principle {
    -webkit-flex: 1 1 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 480px) {
  .tk-hero {
    padding: 4rem 1.5rem 3.5rem;
  }

  .tk-chapter .container {
    padding: 0 1.25rem;
  }

  .tk-closing {
    padding: 3.5rem 1.5rem;
  }
}
