/* ==========================================
   VIBE LAB PAGE - SPECIFIC STYLES
   AI Innovation Lab with registration flow
   ========================================== */

/* ==========================================
   NAVIGATION HIGHLIGHT
   ========================================== */

.nav-highlight {
  position: relative;
  color: var(--ss-red) !important;
  font-weight: 600;
}

.nav-highlight:hover {
  color: var(--ss-accent-1) !important;
}

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

.vibe-lab-hero {
  position: relative;
  min-height: var(--hero-min-height);
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--ss-dark);
  padding: var(--hero-padding-top) 0 var(--hero-padding-bottom);
}

.vibe-lab-hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
}

.hero-bg-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.vibe-lab-hero-container {
  position: relative;
  z-index: 3;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
}

.hero-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: flex-start;
  justify-items: start;
  width: 100%;
  max-width: 1200px;
}

.hero-text-section {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  gap: var(--space-2xl) var(--space-xl);
  text-align: left;
  width: 100%;
  align-items: end;
  z-index: 3;
  position: relative;
}

.vibe-lab-hero-title {
  font-size: clamp(28px, 4.8vw, 56px);
  line-height: 1.1;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: left;
  color: white;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  max-width: 700px;
  grid-column: 1 / -1;
  grid-row: 1;
}

.vibe-lab-hero-title .gradient-text {
  color: white;
  background: none;
  -webkit-background-clip: unset;
  -webkit-text-fill-color: unset;
  background-clip: unset;
  position: relative;
  display: inline-block;
}

/* Pen underline effect matching site pattern */
.vibe-lab-hero-title .gradient-text::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -15px;
  height: 20px;
  background-image: url('https://pub-dcb79d88e2ec4567824453cc853f55f3.r2.dev/images/icons/pen-underline.svg');
  background-repeat: no-repeat;
  background-size: 100% 100%;
  transform: translateY(50%) translateX(-15%) scaleX(30) scaleY(30) rotate(5deg);
  background-position: center bottom;
  opacity: 0.9;
  z-index: 1;
  pointer-events: none;
}

.vibe-lab-hero-subtitle {
  font-size: var(--text-xl);
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
  max-width: 580px;
  text-align: left;
  grid-column: 1 / -1;
  grid-row: 2;
}


/* ==========================================
   MAIN CONTENT SECTION
   ========================================== */

.vibe-content-section {
  position: relative;
  padding: var(--space-4xl) 0;
  background: linear-gradient(180deg, var(--surface-secondary) 0%, rgba(250, 249, 246, 0.8) 30%, transparent 100%);
  overflow: hidden;
}

.vibe-content-section::before{
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(180deg, var(--surface-secondary) 0%, rgba(250, 249, 246, 0.8) 30%, transparent 100%);
  pointer-events: none;
  z-index: -1;
}

.vibe-content-section::after{
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(180deg, transparent 0%, rgba(245, 243, 240, 0.3) 70%, var(--surface-secondary) 100%);
  pointer-events: none;
}


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

.content-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  align-items: start;
}

.content-text {
  padding-right: var(--space-lg);
}

.content-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-xl);
}

.content-title .gradient-text {
  background: var(--ss-accent-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.content-description {
  margin-bottom: var(--space-2xl);
}

.content-description p {
  font-size: var(--text-lg);
  line-height: 1.7;
  color: var(--text-secondary);
  margin: 0;
}

.content-actions {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: nowrap;
}

.content-video {
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-container {
  position: relative;
  width: 100%;
  max-width: 560px;
  height: 0;
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  border-radius: var(--border-radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: var(--border-radius-xl);
}

/* ==========================================
   LEARNING OUTCOMES SECTION - CARD LAYOUT
   ========================================== */

.learning-outcomes-section {
  background: white;
  padding: var(--space-5xl) 0;
  position: relative;
}

.learning-outcomes-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
  position: relative;
  z-index: 2;
}

/* Vibe Skills Grid - Card Layout */
.vibe-skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
}

.vibe-skill-card {
  background: white;
  border-radius: var(--border-radius-xl);
  padding: var(--space-2xl);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-subtle);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.vibe-skill-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--gradient-primary);
}

.vibe-skill-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}

.skill-icon {
  width: 72px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
  border-radius: var(--border-radius-full);
  transition: all var(--transition-normal);
}

.vibe-skill-card:hover .skill-icon {
  transform: scale(1.05);
}

.vibe-skill-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-md);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.3;
}

.vibe-skill-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: var(--text-base);
}

/* ==========================================
   DETAILS SECTION
   ========================================== */

.details-section {
  background: var(--ss-red);
  padding: var(--space-3xl) 0;
  color: white;
}

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

.details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.details-text {
  padding-right: var(--space-lg);
}

.details-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: white;
  margin-bottom: var(--space-xl);
}

.details-content {
  margin-bottom: var(--space-lg);
}

.detail-item {
  margin-bottom: var(--space-md);
}

.detail-item h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: white;
  margin-bottom: var(--space-sm);
}

.detail-item p {
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  margin: 0;
}

.details-cta {
  margin-top: var(--space-lg);
}

.details-section .btn-secondary {
  background: white;
  color: var(--ss-red);
  border: 2px solid white;
}

.details-section .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.details-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.details-bg-image {
  width: 100%;
  max-width: 320px;
  height: auto;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
}

/* ==========================================
   COURSE SCHEDULE SECTION
   ========================================== */

.course-schedule-section {
  background: white;
  padding: var(--space-5xl) 0;
}

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

.schedule-table-wrapper {
  overflow-x: auto;
  border-radius: var(--border-radius-lg);
  box-shadow: var(--shadow-md);
  margin-bottom: var(--space-lg);
}

.schedule-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  font-size: var(--text-base);
  line-height: 1.5;
}

.schedule-table thead tr {
  background: var(--gradient-primary);
}

.schedule-table th {
  padding: var(--space-lg);
  text-align: left;
  font-weight: 700;
  color: white;
  font-size: var(--text-lg);
  line-height: 1.2;
  vertical-align: middle;
}

.date-column {
  width: 12%;
  min-width: 100px;
}

.module-column {
  width: 35%;
  min-width: 280px;
}

.description-column {
  width: 53%;
  min-width: 300px;
}

.schedule-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color var(--transition-normal);
}

.schedule-table tbody tr:nth-child(odd) {
  background: var(--surface-secondary);
}

.schedule-table tbody tr:nth-child(even) {
  background: white;
}

.schedule-table td {
  padding: var(--space-lg);
  vertical-align: top;
  border-right: 1px solid var(--border-subtle);
}

.schedule-table td:last-child {
  border-right: none;
}

.date-cell {
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  text-align: center;
  font-size: var(--text-base);
  background: rgba(44, 44, 44, 0.05);
}

.module-cell {
  font-weight: 700;
  color: var(--ss-red);
  line-height: 1.3;
  font-size: var(--text-base);
}

.description-cell {
  color: var(--text-secondary);
  line-height: 1.6;
  font-size: var(--text-base);
}

/* ==========================================
   COURSE OUTCOMES
   ========================================== */

.course-outcomes-container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-4xl) 0 0 0;
  text-align: left;
}

.outcomes-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ss-accent-1);
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.outcomes-checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-xl);
  max-width: 1000px;
  margin: 0 auto;
}

.outcome-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  padding: 0;
  background: none;
  text-align: left;
  transition: all var(--transition-normal);
}

.outcome-item:hover {
  transform: translateX(4px);
}

.outcome-icon-gradient {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 2px 8px rgba(231, 48, 82, 0.25);
}

.outcome-icon-gradient svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.5;
}

.outcome-item span {
  font-size: var(--text-lg);
  color: var(--text-primary);
  line-height: 1.5;
  font-weight: 500;
}

/* ==========================================
   REGISTRATION FORM SECTION
   ========================================== */

.registration-section {
  position: relative;
  padding: var(--space-5xl) 0;
  background: linear-gradient(180deg,
    var(--surface-secondary) 0%,
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
}

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

.registration-grid {
  display: grid;
  grid-template-columns: 45% 55%;
  gap: var(--space-4xl);
  align-items: start;
}

.registration-image-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-2xl);
  padding: var(--space-2xl);
  padding-top: 0;
  background-color: var(--surface-secondary);
  top: var(--space-2xl);
  text-align: left;
}

.robot-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: left;
  margin-top: -5rem;
}

.robot-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: var(--border-radius-lg);
}

.registration-info {
  text-align: left;
}

.registration-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-xl);
}

.registration-title .gradient-text {
  background: linear-gradient(135deg, #E73052 0%, #EE2D6E 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

.registration-subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  font-weight: 600;
  margin-bottom: var(--space-xl);
  line-height: 1.5;
}

.pricing-section {
  margin-bottom: var(--space-xl);
  padding: var(--space-lg) var(--space-xl);
  background: rgba(231, 48, 82, 0.05);
  border-radius: var(--border-radius-lg);
  border: 2px solid rgba(231, 48, 82, 0.15);
  text-align: left;
}

.pricing-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--ss-red);
  margin-bottom: var(--space-sm);
}

.pricing-details {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.4;
}

.discount-text {
  font-size: var(--text-lg);
  font-weight: 600;
}

.discount-text strong {
  background: var(--ss-red);
  color: white;
  padding: 2px 8px;
  border-radius: var(--border-radius-sm);
  font-weight: 700;
}

.scholarship-text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.scholarship-text a {
  color: var(--ss-red);
  text-decoration: underline;
  font-weight: 600;
}

.scholarship-text a:hover {
  color: var(--ss-accent-1);
}

/* Registration Form Container */
.registration-form-container {
  background: white;
  border-radius: var(--border-radius-xl);
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
}

.registration-form {
  padding: var(--space-2xl);
}

.form-section {
  margin-bottom: var(--space-2xl);
}

.form-section:last-child {
  margin-bottom: 0;
}

.form-section-title {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

.form-section-title .required {
  color: var(--text-muted);
  font-weight: 400;
  font-size: var(--text-base);
}

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

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.form-group label {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-transform: capitalize;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="number"] {
  width: 100%;
  padding: var(--space-md);
  font-size: var(--text-base);
  border: 2px solid var(--border-subtle);
  border-radius: var(--border-radius-md);
  background: white;
  color: var(--text-primary);
  transition: all var(--transition-normal);
  font-family: inherit;
}

.form-group input[type="text"]:focus,
.form-group input[type="email"]:focus,
.form-group input[type="number"]:focus {
  outline: none;
  border-color: var(--ss-red);
  box-shadow: 0 0 0 3px rgba(231, 48, 82, 0.1);
  background: rgba(231, 48, 82, 0.01);
}

.form-group input:required:valid {
  border-color: #10b981;
}

.form-group input:required:valid:not(:focus) {
  background: rgba(16, 185, 129, 0.05);
}

.form-checkbox {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-sm);
  background: var(--surface-secondary);
  border-radius: var(--border-radius-md);
  border: 1px solid var(--border-subtle);
}

.form-checkbox input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--ss-red);
  cursor: pointer;
}

.form-checkbox label {
  font-size: var(--text-base);
  color: var(--text-secondary);
  cursor: pointer;
  margin: 0;
  line-height: 1.4;
}

.form-note {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
  margin: 0 0 var(--space-sm) 0;
}

.form-submit {
  margin-top: var(--space-3xl);
  text-align: center;
  padding-top: var(--space-xl);
  border-top: 1px solid var(--border-subtle);
}

.form-submit .btn {
  width: 100%;
  max-width: 400px;
  justify-content: center;
}

/* ==========================================
   BUTTON OVERRIDES FOR THIS PAGE
   ========================================== */

.vibe-content-section .btn-secondary {
  background: white;
  color: var(--ss-red);
  border: 2px solid var(--ss-red);
  box-shadow: none;
}

.vibe-content-section .btn-secondary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

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

/* Tablet (768px) */
@media (max-width: 768px) {
  /* Hero — mirrors K-12 mobile hero rhythm (shorter, vertically centered block) */
  .vibe-lab-hero {
    padding: 100px 0 40px;
    min-height: 55vh;
  }

  .vibe-lab-hero-container {
    min-height: 40vh;
    align-items: center;
    justify-content: flex-start;
  }

  .vibe-lab-hero .hero-content-grid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: var(--space-xl);
    min-height: 40vh;
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .vibe-lab-hero .hero-text-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    gap: var(--space-xl);
    max-width: 100%;
  }

  .vibe-lab-hero-title {
    font-size: clamp(28px, 6vw, 48px);
    text-align: left;
    grid-column: unset;
    grid-row: unset;
    max-width: 100%;
  }

  .vibe-lab-hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    text-align: left;
    grid-column: unset;
    grid-row: unset;
    padding-top: 0;
    margin-top: 0;
    max-width: 100%;
  }

  /* Pen underline — match K-12 mobile scale so it sits under the title only */
  .vibe-lab-hero-title .gradient-text::after {
    bottom: -10px;
    height: 14px;
    transform: translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }

  /* Content */
  .content-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .content-text {
    padding-right: 0;
    text-align: center;
  }

  .content-actions {
    justify-content: center;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .content-actions .btn {
    flex: 0 1 auto;
    min-width: 200px;
  }

  .video-container {
    max-width: 100%;
  }

  /* Skills grid */
  .vibe-skills-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .vibe-skill-card {
    padding: var(--space-xl);
  }

  .skill-icon {
    width: 56px;
    height: 56px;
  }

  .vibe-skill-card h3 {
    font-size: var(--text-lg);
  }

  /* Details */
  .details-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .details-text {
    padding-right: 0;
    text-align: center;
  }

  .details-title {
    font-size: var(--text-3xl);
  }

  .details-bg-image {
    max-width: 100%;
  }

  .details-section {
    padding: var(--space-3xl) 0;
  }

  /* Schedule table — journey trail layout on mobile
     Winding dashed path with alternating left/right checkpoints.
     Tapping a checkpoint toggles the description panel (JS-driven). */
  .schedule-table-wrapper {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    padding: 24px 0 0;
    overflow-x: visible;
    box-shadow: none;
    border-radius: 0;
    background: transparent;
  }

  /* Dashed winding trail rendered as an inline-SVG data URI.
     Checkpoints sit at y = 52, 192, 332, 472, 612, 752 in a 360x904 viewBox
     so they align with the dot centers (padding-top 24 + rowTop + dotRadius 28)
     when row min-height is 140px. SVG stretches to fill wrapper, so scaling
     holds on the small-mobile breakpoint too. */
  .schedule-table-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 360 904' preserveAspectRatio='none'%3E%3Cpath d='M 180 52 C 180 112 270 132 270 192 C 270 252 90 272 90 332 C 90 392 270 412 270 472 C 270 532 90 552 90 612 C 90 672 180 692 180 752' stroke='%23E73052' stroke-width='2.5' stroke-linecap='round' stroke-dasharray='2 9' opacity='0.55' fill='none'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    background-repeat: no-repeat;
  }

  .schedule-table {
    display: block;
    width: 100%;
    background: transparent;
  }

  .schedule-table thead {
    display: none;
  }

  .schedule-table tbody {
    display: block;
    width: 100%;
    position: relative;
    z-index: 1;
    counter-reset: module-counter;
  }

  /* Row resets — wipe desktop table chrome, turn each row into a grid */
  .schedule-table tbody tr,
  .schedule-table tbody tr:nth-child(odd),
  .schedule-table tbody tr:nth-child(even) {
    display: grid;
    width: 100%;
    min-height: 140px;
    column-gap: 14px;
    padding: 0 16px;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
    align-items: start;
    cursor: pointer;
  }

  /* Odd rows — checkpoint on LEFT (aligned to trail x=90 of 360) */
  .schedule-table tbody tr:nth-child(odd) {
    grid-template-columns: 46px 56px 1fr;
    grid-template-areas:
      ". dot label"
      "desc desc desc";
    text-align: left;
  }

  /* Even rows — checkpoint on RIGHT (aligned to trail x=270 of 360) */
  .schedule-table tbody tr:nth-child(even) {
    grid-template-columns: 1fr 56px 46px;
    grid-template-areas:
      "label dot ."
      "desc desc desc";
    text-align: right;
  }

  /* Module 1 — trail start, dot centered, label on the right */
  .schedule-table tbody tr:first-child {
    grid-template-columns: 1fr 56px 1fr;
    grid-template-areas:
      ". dot label"
      "desc desc desc";
    text-align: left;
  }

  /* Module 6 — trail end, dot centered, label on the left */
  .schedule-table tbody tr:last-child {
    grid-template-columns: 1fr 56px 1fr;
    grid-template-areas:
      "label dot ."
      "desc desc desc";
    text-align: right;
  }

  /* Trophy replaces the number in the last checkpoint */
  .schedule-table tbody tr:last-child .date-cell::before {
    content: '🏆';
    font-size: 20px;
  }

  /* Cell resets */
  .schedule-table td {
    display: block;
    width: auto !important;
    min-width: 0 !important;
    padding: 0;
    margin: 0;
    border: none;
    background: transparent;
    font-size: var(--text-sm);
    line-height: 1.5;
    text-transform: none;
    letter-spacing: normal;
    white-space: normal;
    vertical-align: baseline;
  }

  /* Checkpoint dot */
  .schedule-table .date-cell {
    grid-area: dot;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    color: var(--ss-red);
    border: 3px solid var(--ss-red);
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(231, 48, 82, 0.25);
    font-size: 0;
    font-weight: 800;
    text-align: center;
    transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  }

  .schedule-table .date-cell::before {
    counter-increment: module-counter;
    content: counter(module-counter);
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
  }

  /* Active checkpoint — keep a clean circle by painting the gradient inside
     the padding-box (not the border) and dropping the scale transform, which
     was rasterizing the edge into a squircle on some devices. */
  .schedule-table tbody tr.is-open .date-cell {
    background: var(--gradient-primary);
    background-clip: padding-box;
    color: white;
    border-color: var(--ss-red);
    border-radius: 50%;
    transform: none;
    box-shadow: 0 6px 18px rgba(231, 48, 82, 0.35);
  }

  /* Module title (label) — "Module N:" prefix is hidden; title reads as a
     subdued grey label next to the red checkpoint. */
  .schedule-table .module-cell {
    grid-area: label;
    padding: 8px 0;
    font-size: var(--text-sm);
    font-weight: 500;
    line-height: 1.35;
    color: var(--text-muted);
  }

  .schedule-table .module-prefix {
    display: none;
  }

  /* Description panel — collapsed by default, expands when row is open */
  .schedule-table .description-cell {
    grid-area: desc;
    max-height: 0;
    opacity: 0;
    padding: 0 16px;
    margin: 0 8px;
    overflow: hidden;
    background: white;
    border: 1px solid rgba(231, 48, 82, 0.15);
    border-radius: var(--border-radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
    text-align: left;
    transition: max-height 0.4s ease, opacity 0.3s ease 0.05s, padding 0.3s ease, margin 0.3s ease;
  }

  .schedule-table tbody tr.is-open .description-cell {
    max-height: 400px;
    opacity: 1;
    padding: 16px;
    margin-top: 12px;
    margin-bottom: 20px;
  }

  /* Accessibility — keyboard focus ring lives on the dot */
  .schedule-table tbody tr:focus {
    outline: none;
  }

  .schedule-table tbody tr:focus-visible {
    outline: none;
  }

  .schedule-table tbody tr:focus-visible .date-cell {
    box-shadow: 0 0 0 3px rgba(231, 48, 82, 0.35), 0 4px 12px rgba(231, 48, 82, 0.25);
  }

  /* Reset desktop column min-widths for mobile */
  .date-column,
  .module-column,
  .description-column {
    width: auto;
    min-width: 0;
  }

  /* Tighten seam between trail and outcomes on mobile */
  .course-outcomes-container {
    padding-top: 0;
  }

  /* Outcomes */
  .outcomes-checklist {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }

  .outcomes-title {
    font-size: var(--text-2xl);
  }

  .outcome-item span {
    font-size: var(--text-base);
  }

  .outcome-icon-gradient {
    width: 24px;
    height: 24px;
  }

  .outcome-icon-gradient svg {
    width: 14px;
    height: 14px;
  }

  /* Registration */
  .registration-grid {
    grid-template-columns: 1fr;
    gap: var(--space-2xl);
  }

  .registration-image-content {
    position: static;
    order: 1;
  }

  .registration-form-container {
    order: 2;
  }

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

  .registration-title {
    font-size: var(--text-2xl);
  }

  .registration-section {
    padding: var(--space-4xl) 0;
  }

  .registration-container {
    padding: 0 var(--space-md);
  }

  .registration-form {
    padding: var(--space-xl);
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }

  .robot-image-container {
    padding: var(--space-md);
  }

  .robot-image {
    max-width: 200px;
  }

  .discount-text {
    font-size: var(--text-base);
  }

  /* Unified mobile section spacing */
  .vibe-content-section,
  .learning-outcomes-section,
  .course-schedule-section,
  .registration-section {
    padding-top: var(--mobile-section-padding);
    padding-bottom: var(--mobile-section-padding);
  }
}

/* Small mobile (480px) */
@media (max-width: 480px) {
  /* Hero — matches K-12 small mobile treatment */
  .vibe-lab-hero {
    padding: 70px 0 20px;
    min-height: 50vh;
  }

  .vibe-lab-hero .hero-content-grid,
  .vibe-lab-hero .hero-text-section {
    gap: var(--space-lg);
  }

  .vibe-lab-hero-subtitle {
    margin-bottom: var(--space-xs);
  }

  /* Pen underline — tighter at small mobile */
  .vibe-lab-hero-title .gradient-text::after {
    bottom: -8px;
    height: 12px;
    transform: translateY(80%) translateX(-15%) scaleX(25) scaleY(25) rotate(4deg);
  }

  /* Skills */
  .vibe-skill-card {
    padding: var(--space-lg);
  }

  .skill-icon {
    width: 48px;
    height: 48px;
  }

  .vibe-skill-card h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-sm);
  }

  .vibe-skill-card p {
    font-size: var(--text-sm);
    line-height: 1.4;
  }

  /* Details */
  .details-title {
    font-size: var(--text-2xl);
  }

  /* Schedule trail — tighter geometry on small mobile */
  .schedule-table-wrapper {
    max-width: 320px;
    padding: 20px 0 0;
  }

  .schedule-table tbody tr,
  .schedule-table tbody tr:nth-child(odd),
  .schedule-table tbody tr:nth-child(even) {
    min-height: 120px;
    column-gap: 12px;
  }

  /* Keep dots aligned to the new trail (x=80 / x=240 on a 320px wrapper) */
  .schedule-table tbody tr:nth-child(odd) {
    grid-template-columns: 40px 48px 1fr;
  }

  .schedule-table tbody tr:nth-child(even) {
    grid-template-columns: 1fr 48px 40px;
  }

  .schedule-table tbody tr:first-child,
  .schedule-table tbody tr:last-child {
    grid-template-columns: 1fr 48px 1fr;
  }

  .schedule-table .date-cell {
    width: 48px;
    height: 48px;
    border-width: 2.5px;
  }

  .schedule-table .date-cell::before {
    font-size: 18px;
  }

  .schedule-table tbody tr.is-open .description-cell {
    padding: 14px;
  }

  /* Outcomes */
  .course-outcomes-container {
    padding: 0;
  }

  .outcomes-title {
    font-size: var(--text-xl);
    margin-bottom: var(--space-xl);
  }

  .outcome-item {
    gap: var(--space-md);
  }

  .outcome-item span {
    font-size: var(--text-sm);
  }

  .outcome-icon-gradient {
    width: 20px;
    height: 20px;
  }

  .outcome-icon-gradient svg {
    width: 12px;
    height: 12px;
    stroke-width: 2;
  }

  /* Registration */
  .registration-form {
    padding: var(--space-lg);
  }

  .registration-image-content {
    padding: var(--space-lg);
  }

  .form-group input[type="text"],
  .form-group input[type="email"],
  .form-group input[type="number"] {
    padding: var(--space-sm) var(--space-md);
  }

  .form-submit .btn {
    padding: var(--space-md) var(--space-lg);
    font-size: var(--text-base);
  }

  .robot-image {
    max-width: 150px;
  }

  .registration-title {
    font-size: var(--text-xl);
  }

  /* Unified small mobile section spacing */
  .vibe-content-section,
  .learning-outcomes-section,
  .course-schedule-section,
  .registration-section {
    padding-top: var(--mobile-section-padding-sm);
    padding-bottom: var(--mobile-section-padding-sm);
  }
}

/* ==========================================
   FINAL CTA SECTION (.impact-cta)
   Mirrors the canonical .impact-cta block used by
   higher-ed.css / k12.css / students.css
   ========================================== */

.impact-cta {
  background: linear-gradient(180deg, 
    var(--surface-secondary) 0%, 
    rgba(250, 249, 246, 0.8) 30%,
    transparent 100%
  );
  padding: var(--space-4xl) 0;
  position: relative;
  overflow: hidden;
  margin-top: 0;
}

.impact-cta::before {
      content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(180deg, var(--surface-secondary) 0%, rgba(250, 249, 246, 0.8) 30%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}


.impact-cta::after {
  content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(180deg, transparent 0%, rgba(245, 243, 240, 0.3) 70%, var(--surface-secondary) 100%);
    pointer-events: none;
}

.impact-cta .cta-container {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.impact-cta .cta-content {
  text-align: left;
  max-width: 1200px;
  margin: 0;
  display: flex;
  flex-direction: row;
  gap: var(--space-2xl);
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.impact-cta .cta-content::before {
  content: '';
  position: absolute;
  top: -40px;
  left: 6%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background: var(--gradient-primary);
  border-radius: var(--border-radius-full);
}

.impact-cta .spotlight-title {
  font-size: var(--text-4xl);
  color: var(--ss-accent-1);
  line-height: 1.4;
  margin: 0;
  font-weight: 700;
  flex: 1;
}

.impact-cta .cta-actions {
  display: flex;
  justify-content: flex-end;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Mobile responsive — matches reference pages */
@media (max-width: 768px) {
  .impact-cta .cta-content {
    flex-direction: column;
    text-align: center;
    gap: var(--space-xl);
  }

  .impact-cta .cta-content::before {
    left: 50%;
    transform: translateX(-50%);
  }

  .impact-cta .spotlight-title {
    text-align: center;
    max-width: 100%;
  }

  .impact-cta .cta-actions {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .impact-cta .cta-content {
    gap: var(--space-lg);
  }

  .impact-cta .spotlight-title {
    font-size: var(--text-2xl);
  }
}

/* ==========================================
   ORANGE → PINK GRADIENT BUTTON
   ========================================== */

.btn-gradient-orange-pink {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-xl);
  background: linear-gradient(135deg, var(--ss-orange) 0%, var(--ss-pink) 100%);
  color: white;
  font-weight: 600;
  border: none;
  border-radius: var(--border-radius-full, 50px);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-gradient-orange-pink:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(237, 124, 75, 0.4);
}
