/* ====== BOTTOM CTA (shared: landing + course page) ====== */

.bottom-cta {
  background: linear-gradient(135deg, #1a2540 0%, #2d4260 100%);
  border-radius: 28px;
  padding: 60px 40px;
  text-align: center;
  margin: 60px 20px 80px;
  max-width: 900px;
  margin-inline: auto;
  border: 1px solid rgba(246, 166, 126, 0.2);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bottom-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(246, 166, 126, 0.15), transparent 60%);
  pointer-events: none;
}

.bottom-cta > * { position: relative; z-index: 1; }

.bottom-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin: 0 0 16px;
  color: #fff;
}

.bottom-cta p {
  font-size: clamp(15px, 2vw, 18px);
  color: #ffffffaa;
  max-width: 580px;
  margin: 0 auto 32px;
  line-height: 1.8;
}

/* ============================================
   COURSE PAGE (post-purchase), welcome + finish
   ============================================ */

.course-welcome {
  text-align: center;
  padding: 120px 20px 60px;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
}

.welcome-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(246, 166, 126, 0.12);
  border: 1px solid rgba(246, 166, 126, 0.35);
  color: #f6a67e;
  padding: 8px 18px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 22px;
}

.welcome-title {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  margin: 0 0 16px;
  line-height: 1.1;
  background: linear-gradient(180deg, #fff 0%, #c5d4e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.02em;
}

.welcome-sub {
  font-size: clamp(15px, 1.8vw, 17px);
  color: #ffffffaa;
  line-height: 1.85;
  margin: 0 0 28px;
}

.welcome-progress {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 13px;
  color: #ffffffbb;
}

.welcome-progress.has-progress {
  border-color: rgba(125, 211, 160, 0.35);
  color: #7dd3a0;
}

.welcome-progress svg { flex-shrink: 0; }

body.course-view .course-content { padding-top: 20px; }

.course-finish {
  max-width: 720px;
  margin: 40px auto 80px;
  padding: 56px 40px;
  text-align: center;
  background: linear-gradient(135deg, rgba(125, 211, 160, 0.08), rgba(78, 163, 116, 0.05));
  border: 1px solid rgba(125, 211, 160, 0.3);
  border-radius: 24px;
}

.finish-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: rgba(125, 211, 160, 0.12);
  color: #7dd3a0;
  margin-bottom: 22px;
}

.course-finish h2 {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 900;
  margin: 0 0 14px;
  color: #fff;
}

.course-finish p {
  color: #ffffffaa;
  font-size: 16px;
  line-height: 1.85;
  max-width: 520px;
  margin: 0 auto 28px;
}

.finish-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25d366;
  color: #fff;
  padding: 16px 32px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35);
}

.finish-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(37, 211, 102, 0.5);
}

.finish-btn svg { flex-shrink: 0; }

/* ============================================
   HERO IMAGE (the tiler photo)
   ============================================ */

.hero-image {
  margin: 0 0 36px;
  width: 100%;
  max-width: 920px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(246, 166, 126, 0.25);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================
   22-TILES VISUAL (the method, in floors section)
   ============================================ */

.tiles-visual {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 560px;
  margin: 0 auto 56px;
  padding: 26px 28px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 18px;
}

.tiles-floor {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tiles-floor-label {
  flex-shrink: 0;
  width: 56px;
  font-size: 12px;
  font-weight: 700;
  color: #f6a67e;
  text-align: left;
}

.tiles-row {
  display: flex;
  gap: 5px;
  flex: 1;
}

.tile {
  flex: 1;
  aspect-ratio: 1 / 1;
  max-width: 44px;
  background: linear-gradient(135deg, #d9c8a8 0%, #b89f7a 100%);
  border: 1px solid rgba(0, 0, 0, 0.18);
  border-radius: 3px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.35),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12),
    0 1px 2px rgba(0, 0, 0, 0.25);
}

@media (max-width: 720px) {
  .hero-image { margin-bottom: 28px; border-radius: 16px; }

  .tiles-visual {
    padding: 20px 18px;
    gap: 14px;
    margin-bottom: 40px;
  }
  .tiles-floor { gap: 12px; }
  .tiles-floor-label { width: 44px; font-size: 11px; }
  .tiles-row { gap: 4px; }
  .tile { max-width: 32px; border-radius: 2px; }
}

/* ============================================
   INTERACTIVE EXERCISE DEMO (landing page)
   Mirrors the real exercise.html visual language
   ============================================ */

.demo-section {
  background: linear-gradient(180deg, transparent 0%, rgba(246, 166, 126, 0.04) 50%, transparent 100%);
}

.demo-exercise {
  max-width: 760px;
  margin: 0 auto;
}

.demo-card {
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 28px;
  margin-bottom: 18px;
}

.demo-card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #f6a67e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 16px;
}

.demo-card-title svg { flex-shrink: 0; }

.demo-summary {
  font-size: 17px;
  line-height: 1.9;
  color: #ffffffdd;
  margin: 0;
}

.demo-golden {
  background: linear-gradient(135deg, rgba(246, 166, 126, 0.12), rgba(232, 131, 78, 0.08));
  border: 1.5px solid rgba(246, 166, 126, 0.4);
}

.demo-exercise-text {
  font-size: 19px;
  line-height: 1.9;
  color: #fff;
  font-weight: 500;
  margin: 0;
}

.demo-textarea {
  width: 100%;
  min-height: 140px;
  background: rgba(0, 0, 0, 0.3);
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 18px;
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  line-height: 1.8;
  resize: vertical;
  direction: rtl;
  transition: border-color 0.2s;
}

.demo-textarea:focus {
  outline: none;
  border-color: rgba(246, 166, 126, 0.5);
}

.demo-textarea::placeholder {
  color: #ffffff55;
}

.demo-write-hint {
  font-size: 13px;
  color: #ffffff88;
  margin-top: 10px;
}

.demo-write-saved {
  color: #7dd3a0;
  font-weight: 700;
}

.demo-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.demo-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 30px;
  border-radius: 100px;
  font-size: 16px;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.3s ease, background 0.2s ease, border-color 0.2s ease;
  border: none;
  text-decoration: none;
}

.demo-btn-primary {
  background: linear-gradient(135deg, #f6a67e, #e8834e);
  color: #0f1a2e;
  box-shadow: 0 10px 30px rgba(246, 166, 126, 0.35);
}

.demo-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px rgba(246, 166, 126, 0.5);
}

.demo-btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.15);
}

.demo-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(246, 166, 126, 0.4);
}

.demo-btn-secondary.demo-btn-done {
  background: linear-gradient(135deg, #7dd3a0, #4ea374);
  color: #0f1a2e;
  border-color: transparent;
  box-shadow: 0 10px 30px rgba(125, 211, 160, 0.3);
}

.demo-btn svg { flex-shrink: 0; }

.demo-note {
  text-align: center;
  color: #ffffff77;
  font-size: 13px;
  margin: 30px 0 0;
  line-height: 1.7;
}

@media (max-width: 640px) {
  .demo-card { padding: 22px 18px; }
  .demo-exercise-text { font-size: 17px; }
  .demo-summary { font-size: 16px; }
  .demo-textarea { padding: 16px; font-size: 15px; min-height: 130px; }
  .demo-actions { flex-direction: column-reverse; }
  .demo-btn { width: 100%; justify-content: center; padding: 14px 24px; font-size: 15px; }
  .bottom-cta { padding: 40px 24px; margin: 40px 14px 60px; }
}

