/* ========== HEADER ========== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-4) 0;
  transition: background var(--transition-base), box-shadow var(--transition-base);
}

.header--solid {
  background: rgba(241, 240, 244, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--dark);
  letter-spacing: -0.02em;
}

.header__nav {
  display: none;
  align-items: center;
  gap: var(--space-8);
}

.header__nav a {
  font-size: var(--text-caption);
  font-weight: 500;
  color: var(--dark);
  transition: color var(--transition-fast);
}

.header__nav a:hover {
  color: var(--purple);
}

.header__cta {
  display: none;
}

.header__burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-2);
}

.header__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-fast);
}

.header__burger--open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.header__burger--open span:nth-child(2) {
  opacity: 0;
}

.header__burger--open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

@media (min-width: 1024px) {
  .header__nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__burger { display: none; }
}

/* Mobile nav overlay */
.mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-light);
  z-index: 99;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-8);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-base);
}

.mobile-nav--open {
  opacity: 1;
  pointer-events: all;
}

.mobile-nav a {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--dark);
}

/* ========== HERO ========== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  background: var(--purple-light);
  overflow: hidden;
  padding-top: 80px;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

@media (min-width: 1024px) {
  .hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
  }

  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
}

.hero__badge {
  margin-bottom: var(--space-6);
}

.hero h1 {
  font-family: var(--font-heading);
  font-size: var(--text-hero);
  color: var(--dark);
  margin-bottom: var(--space-6);
  line-height: 1.15;
}

.hero__subtitle {
  font-size: var(--text-body);
  color: var(--dark);
  margin-bottom: var(--space-8);
  max-width: 560px;
  line-height: 1.6;
}

.hero__decor {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.hero__mascot {
  right: -20px;
  bottom: -10px;
  width: 120px;
  height: 120px;
}

.hero__mascot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 24px rgba(178, 161, 254, 0.3));
}

.hero__sparkle-1 {
  right: 10%;
  top: 20%;
  width: 32px;
  height: 32px;
}

.hero__sparkle-2 {
  left: 8%;
  bottom: 15%;
  width: 24px;
  height: 24px;
}

@media (min-width: 768px) {
  .hero__mascot {
    right: 20px;
    bottom: 40px;
    width: 220px;
    height: 220px;
  }
}

@media (min-width: 1024px) {
  .hero__mascot {
    right: 80px;
    bottom: 60px;
    width: 280px;
    height: 280px;
  }
}

/* ========== WHY NOW ========== */
.why-now {
  background: var(--white);
  position: relative;
  overflow: hidden;
}

.why-now__robot {
  position: absolute;
  bottom: 20px;
  width: 100px;
  pointer-events: none;
  opacity: 0.9;
  z-index: 0;
}

.why-now__robot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.08));
}

.why-now__robot--left {
  left: 20px;
}

.why-now__robot--right {
  right: 20px;
}

.why-now .container {
  position: relative;
  z-index: 1;
}

@media (max-width: 767px) {
  .why-now__robot {
    width: 70px;
    bottom: 10px;
    opacity: 0.7;
  }
  .why-now__robot--left { left: 5px; }
  .why-now__robot--right { right: 5px; }
}

@media (min-width: 1024px) {
  .why-now__robot {
    width: 140px;
    bottom: 30px;
  }
  .why-now__robot--left { left: 60px; }
  .why-now__robot--right { right: 60px; }
}

@media (min-width: 1280px) {
  .why-now__robot {
    width: 160px;
  }
  .why-now__robot--left { left: 100px; }
  .why-now__robot--right { right: 100px; }
}

.why-now__content {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.why-now__content p {
  font-size: var(--text-body);
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: var(--space-6);
}

.why-now__content mark {
  background: var(--purple-light);
  color: var(--dark);
  padding: 2px 6px;
  border-radius: 4px;
}

/* ========== WHAT CHILD CREATES ========== */
.what-child {
  background: var(--bg-light);
}

.what-child .card__number {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--purple);
}

/* ========== PROGRAM ========== */
.program {
  background: var(--white);
}

.program__days {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .program__days {
    grid-template-columns: repeat(2, 1fr);
  }
}

.day-card {
  background: var(--bg-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
}

.day-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.day-card__number {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  line-height: 1;
}

.day-card__title {
  font-weight: 600;
  font-size: 1.125rem;
}

.day-card__subtitle {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  margin-bottom: var(--space-6);
  font-style: italic;
}

.timeline {
  position: relative;
  padding-left: var(--space-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--purple-light);
  border-radius: 1px;
}

.timeline__item {
  position: relative;
  padding-bottom: var(--space-6);
}

.timeline__item:last-child {
  padding-bottom: 0;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: calc(-1 * var(--space-8) + 4px);
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--purple);
  border: 2px solid var(--white);
}

.timeline__item h4 {
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: var(--space-1);
}

.timeline__item p {
  font-size: var(--text-caption);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ========== NOT A REGULAR COURSE ========== */
.not-regular {
  background: var(--yellow);
  position: relative;
  overflow: hidden;
}

.not-regular__splat {
  position: absolute;
  left: -60px;
  bottom: -40px;
  width: 220px;
  height: 220px;
  z-index: 0;
  opacity: 0.85;
  pointer-events: none;
}

.not-regular__splat svg {
  width: 100%;
  height: 100%;
}

@media (min-width: 768px) {
  .not-regular__splat {
    left: -20px;
    bottom: -20px;
    width: 280px;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .not-regular__splat {
    left: 40px;
    bottom: 20px;
    width: 320px;
    height: 320px;
  }
}

.not-regular .container {
  position: relative;
  z-index: 1;
}

.not-regular .section-header h2 {
  color: var(--dark);
}

.comparison {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .comparison {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }
}

.comparison__col {
  padding: var(--space-8);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.comparison__col--old {
  background: var(--white);
  opacity: 0.85;
}

.comparison__col--new {
  background: var(--white);
  border: 3px solid var(--purple);
  box-shadow: 0 8px 32px rgba(178, 161, 254, 0.25);
}

.comparison__col h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-6);
}

.comparison__col--old h3 {
  color: var(--text-secondary);
}

.comparison__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.comparison__list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-caption);
  line-height: 1.5;
}

.comparison__list li::before {
  flex-shrink: 0;
  font-size: 1.125rem;
  line-height: 1.3;
}

.comparison__col--old .comparison__list li::before {
  content: '✕';
  color: var(--text-secondary);
}

.comparison__col--new .comparison__list li::before {
  content: '✓';
  color: var(--purple);
  font-weight: 700;
}

/* ========== CASE STUDY (MARK) ========== */
.case-study {
  background: var(--white);
}

.case-study__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  align-items: center;
}

@media (min-width: 768px) {
  .case-study__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.case-study__text blockquote {
  font-size: var(--text-body);
  font-style: italic;
  line-height: 1.7;
  color: var(--dark);
  margin-bottom: var(--space-6);
  position: relative;
  padding-left: var(--space-8);
  padding-right: var(--space-2);
}

/* Opening quote mark — two thin bars */
.case-study__text blockquote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  width: 4px;
  height: 28px;
  background: var(--purple-light);
  border-radius: 2px;
  box-shadow: 10px 0 0 0 var(--purple-light);
}

/* Closing quote mark — two thin bars, inline after text */
.case-study__text blockquote::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--purple-light);
  border-radius: 2px;
  box-shadow: 8px 0 0 0 var(--purple-light);
  vertical-align: middle;
  margin-left: var(--space-3);
}

.case-study__text .btn {
  margin-left: var(--space-8);
}

/* ========== TEAM ========== */
.team {
  background: var(--bg-light);
}

.team__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .team__grid {
    grid-template-columns: 2fr 1fr 1fr;
  }
}

.team__founder {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .team__founder {
    flex-direction: row;
    text-align: left;
    gap: var(--space-8);
  }
}

.team__founder .team-card__photo {
  width: 160px;
  height: 160px;
  flex-shrink: 0;
}

/* ========== LOCATION ========== */
.location {
  background: var(--white);
}

.location__card {
  background: var(--purple-light);
  border-radius: var(--radius-2xl);
  padding: var(--space-10);
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.location__photo {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-6);
  object-fit: cover;
}

.location__card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

.location__card p {
  color: var(--dark);
  line-height: 1.6;
}

.location__icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
}

/* ========== FORMAT & DETAILS ========== */
.format {
  background: var(--bg-light);
}

.format__info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-10);
}

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

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

.format__pricing {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}

@media (min-width: 768px) {
  .format__pricing {
    grid-template-columns: 1fr 1fr;
  }
}

.format__pricing .pricing-card--highlight {
  border: 3px solid var(--orange);
  position: relative;
}

.format__note {
  background: var(--yellow);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.format__note h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-3);
}

/* ========== FAQ ========== */
.faq {
  background: var(--white);
}

.faq__list {
  max-width: 800px;
  margin: 0 auto;
}

/* ========== APPLICATION FORM ========== */
.apply {
  background: var(--purple-light);
  position: relative;
  overflow: hidden;
}

.apply__robot {
  position: absolute;
  right: -30px;
  top: 40px;
  width: 135px;
  z-index: 1;
  pointer-events: none;
  display: none;
}

.apply__robot img {
  width: 100%;
  height: auto;
  filter: drop-shadow(-4px 4px 16px rgba(0, 0, 0, 0.1));
}

@media (min-width: 768px) {
  .apply__robot {
    display: block;
    right: -10px;
    top: 60px;
    width: 180px;
  }
}

@media (min-width: 1024px) {
  .apply__robot {
    right: 40px;
    top: 80px;
    width: 240px;
  }
}

@media (min-width: 1280px) {
  .apply__robot {
    right: 80px;
    top: 60px;
    width: 285px;
  }
}

.apply__form {
  max-width: 600px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-2xl);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.form-group {
  margin-bottom: var(--space-6);
}

.form-group label {
  display: block;
  font-weight: 600;
  font-size: var(--text-caption);
  margin-bottom: var(--space-2);
}

.form-group label .required {
  color: var(--orange);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(178, 161, 254, 0.2);
}

.form-group input.error,
.form-group select.error {
  border-color: #E53E3E;
}

.form-group .error-message {
  color: #E53E3E;
  font-size: var(--text-small);
  margin-top: var(--space-1);
  display: none;
}

.form-group input.error + .error-message,
.form-group select.error + .error-message {
  display: block;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

/* Radio/checkbox groups */
.radio-group,
.checkbox-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.radio-group label,
.checkbox-group label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 400;
  cursor: pointer;
  padding: var(--space-2) var(--space-4);
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.radio-group label:has(input:checked),
.checkbox-group label:has(input:checked) {
  border-color: var(--purple);
  background: var(--purple-light);
}

.radio-group input,
.checkbox-group input {
  width: auto;
  accent-color: var(--purple);
}

/* Form thank you state */
.form-thanks {
  text-align: center;
  padding: var(--space-16) var(--space-8);
  display: none;
}

.form-thanks--visible {
  display: block;
}

.form-thanks__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-6);
  background: var(--lime);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
}

.form-thanks h3 {
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  margin-bottom: var(--space-4);
}

/* ========== FOOTER ========== */
.footer {
  background: var(--dark);
  color: var(--white);
  padding: var(--space-10) 0;
  text-align: center;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  margin-bottom: var(--space-4);
}

.footer p {
  font-size: var(--text-caption);
  color: rgba(255, 255, 255, 0.6);
}
