@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  --terracotta: #C96A4A;
  --terracotta-deep: #a84d32;
  --sand: #E8D6B8;
  --sand-soft: #f3e7d2;
  --sage: #7C8F73;
  --beige: #F7F1E6;
  --beige-strong: #f4ecde;
  --ink: #2D2A26;
  --ink-soft: #4a463f;
  --cta: #9C2F17;
  --line: rgba(45, 42, 38, 0.12);
  --shadow-soft: 0 14px 38px rgba(45, 42, 38, 0.08);
  --shadow-strong: 0 22px 50px rgba(45, 42, 38, 0.14);
  --radius-xl: 1.25rem;
}

html {
  scroll-behavior: smooth;
}

#about,
#teacher,
#program,
#level-test,
#reviews,
#pricing {
  scroll-margin-top: 6.8rem;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -20%, rgba(201, 106, 74, 0.14), transparent 60%),
    radial-gradient(1000px 600px at 95% 0%, rgba(124, 143, 115, 0.16), transparent 62%),
    linear-gradient(180deg, var(--beige), var(--beige-strong));
  padding-bottom: 7.2rem;
}

::selection {
  background: rgba(201, 106, 74, 0.25);
  color: var(--ink);
}

header {
  box-shadow: 0 6px 18px rgba(45, 42, 38, 0.05);
}

.site-logo-wrap {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(45, 42, 38, 0.08);
}

.site-logo {
  width: 300px;
  height: 62px;
  object-fit: contain;
  object-position: left center;
  image-rendering: -webkit-optimize-contrast;
}

.site-logo-fallback {
  display: none;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ink);
}

header nav a {
  position: relative;
}

header nav a:not(.bg-cta)::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--terracotta);
  transition: transform 220ms ease;
}

header nav a:not(.bg-cta):hover::after {
  transform: scaleX(1);
}

.bg-cta {
  background: linear-gradient(135deg, var(--cta), #b5482b) !important;
  box-shadow: 0 10px 20px rgba(156, 47, 23, 0.25);
}

.bg-cta:hover {
  filter: none !important;
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(156, 47, 23, 0.32);
}

#about h1 {
  letter-spacing: -0.02em;
  line-height: 1.04;
}

#about h1::after {
  content: '';
  display: block;
  width: 6rem;
  height: 0.28rem;
  margin-top: 1rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--terracotta), rgba(201, 106, 74, 0.25));
}

.trust-bar {
  display: grid;
  gap: 0.45rem;
  max-width: 42rem;
}

.trust-bar p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.trust-icon {
  display: inline-block;
  width: 1.35rem;
  text-align: center;
  margin-right: 0.25rem;
}

.quick-facts-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.quick-fact-card {
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.78);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow-soft);
}

.quick-fact-label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.quick-fact-value {
  margin: 0.35rem 0 0;
  font-size: 0.93rem;
  font-weight: 700;
  color: var(--ink);
}

.founding-bonus {
  position: relative;
  overflow: hidden;
  border-radius: 1.25rem;
  border: 1px solid rgba(201, 106, 74, 0.28);
  background:
    radial-gradient(700px 180px at 12% -20%, rgba(255, 255, 255, 0.35), transparent 62%),
    linear-gradient(120deg, #bb4f33 0%, #9c2f17 48%, #7a2f1f 100%);
  color: #fff9f2;
  padding: 1.2rem 1.25rem 1.25rem;
  box-shadow: 0 20px 36px rgba(156, 47, 23, 0.28);
}

.founding-kicker {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  padding: 0.25rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.founding-bonus h2 {
  margin: 0.65rem 0 0;
  max-width: 48rem;
  font-size: clamp(1.2rem, 2.3vw, 1.65rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.founding-points {
  margin-top: 0.8rem;
  display: grid;
  gap: 0.35rem;
}

.founding-points p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
  color: rgba(255, 249, 242, 0.96);
}

.founding-points span {
  margin-right: 0.3rem;
  font-weight: 800;
}

.founding-cta {
  margin-top: 0.95rem;
  display: inline-block;
  border-radius: 999px;
  background: #f7e5cf;
  color: #7c2a17;
  font-weight: 700;
  padding: 0.56rem 1rem;
  text-decoration: none;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.18);
  transition: transform 160ms ease, filter 160ms ease;
}

.founding-cta:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

#about img {
  transition: transform 300ms ease, filter 300ms ease;
  filter: saturate(1.02) contrast(1.02);
}

#about img:hover {
  transform: scale(1.015);
}

#teacher img {
  transition: transform 260ms ease;
}

#teacher img:hover {
  transform: scale(1.012);
}

.hero-media {
  position: relative;
  overflow: hidden;
}

.hero-media::before {
  content: '';
  position: absolute;
  inset: -20% -10% auto auto;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(201, 106, 74, 0.22), transparent 65%);
  pointer-events: none;
}

#heroImageFallback {
  display: none;
}

#heroImageFallback.is-visible {
  display: block;
}

#heroImage.is-hidden {
  display: none;
}

#method article,
#program .rounded-xl,
#pricing > div,
#bookingModal .rounded-xl {
  border-color: var(--line) !important;
}

#method article {
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
}

#program .rounded-xl {
  border: 1px solid var(--line);
  border-radius: 0.95rem;
  box-shadow: 0 7px 18px rgba(45, 42, 38, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

#program .rounded-xl:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(45, 42, 38, 0.1);
}

#pricing > div {
  position: relative;
  overflow: hidden;
  border-radius: 1.6rem;
  box-shadow: var(--shadow-strong);
}

#pricing > div::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(500px 130px at -10% -10%, rgba(201, 106, 74, 0.16), transparent 60%),
    radial-gradient(450px 120px at 100% 0%, rgba(124, 143, 115, 0.17), transparent 60%);
  pointer-events: none;
}

#pricing ul li {
  padding-left: 0.2rem;
  color: var(--ink-soft);
}

.check-list li {
  position: relative;
  padding-left: 1.5rem !important;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--terracotta-deep);
  font-weight: 800;
}

#spotsLeft {
  min-width: 1.6ch;
  display: inline-block;
  text-align: center;
}

#bookNowBtn,
#confirmBookingBtn,
#cancelBookingBtn,
#closeBookingModal {
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

#cancelBookingBtn:hover,
#closeBookingModal:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 14px rgba(45, 42, 38, 0.08);
}

.card-lift {
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card-lift:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 26px rgba(45, 42, 38, 0.08);
}

#bookingModal {
  backdrop-filter: blur(2px);
}

#reviewModal {
  backdrop-filter: blur(2px);
}

.review-stars {
  color: var(--terracotta-deep);
  letter-spacing: 0.06em;
}

.flag-emoji {
  font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif;
  font-size: 1.05em;
  line-height: 1;
  vertical-align: -0.04em;
}

#reviewsList article {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

#reviewsList article:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(45, 42, 38, 0.09);
}

.next-cohort-bar {
  box-shadow: 0 14px 32px rgba(45, 42, 38, 0.12);
  width: min(94%, 980px);
  max-width: 980px;
  bottom: 1.35rem !important;
}

.next-cohort-copy {
  min-width: 0;
}

.next-cohort-copy p {
  margin: 0;
  line-height: 1.35;
}

#submitReviewBtn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

#bookingModal > div {
  border: 1px solid rgba(45, 42, 38, 0.1);
}

#bookingModal .max-h-80 {
  scrollbar-width: thin;
  scrollbar-color: rgba(124, 143, 115, 0.6) transparent;
}

#bookingModal .max-h-80::-webkit-scrollbar {
  width: 10px;
}

#bookingModal .max-h-80::-webkit-scrollbar-track {
  background: transparent;
}

#bookingModal .max-h-80::-webkit-scrollbar-thumb {
  background: rgba(124, 143, 115, 0.5);
  border-radius: 999px;
  border: 2px solid rgba(247, 241, 230, 0.9);
}

#bookingModal table th,
#bookingModal table td {
  vertical-align: top;
}

#bookingModal table thead th {
  color: var(--ink);
  letter-spacing: 0.01em;
}

#bookingModal table tbody tr:nth-child(even) {
  background: rgba(247, 241, 230, 0.45);
}

#bookingModal table tbody tr:hover {
  background: rgba(233, 214, 184, 0.2);
}

.planning-list {
  background: linear-gradient(180deg, rgba(247, 241, 230, 0.9), rgba(247, 241, 230, 0.5));
}

.planning-card {
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  background: white;
  padding: 0.8rem;
  box-shadow: 0 6px 14px rgba(45, 42, 38, 0.05);
}

.planning-card + .planning-card {
  margin-top: 0.65rem;
}

.planning-card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.planning-card p + p {
  margin-top: 0.32rem;
}

.planning-week {
  display: inline-block;
  margin-bottom: 0.35rem !important;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--terracotta);
  background: rgba(201, 106, 74, 0.12);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
}

#bookingStatus {
  min-height: 1.25rem;
}

#confirmBookingBtn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

@media (max-width: 640px) {
  .site-logo {
    width: 220px;
    height: 48px;
  }

  .site-logo-fallback {
    font-size: 1.2rem;
  }

  #bookingModal .max-h-80 {
    max-height: 18rem;
  }

  #about h1::after {
    margin-top: 0.7rem;
    width: 4.8rem;
  }

  body {
    padding-bottom: 8.6rem;
  }

  .quick-facts-grid {
    grid-template-columns: 1fr;
  }

  .founding-bonus {
    padding: 1rem 0.9rem 1.05rem;
  }

  .founding-points p {
    font-size: 0.88rem;
  }

  .next-cohort-bar {
    bottom: 1.1rem !important;
    width: calc(100% - 1rem);
    border-radius: 1rem;
    padding: 0.7rem 0.8rem;
    gap: 0.55rem;
  }

  .next-cohort-copy {
    width: 100%;
    font-size: 0.82rem;
  }

  .next-cohort-cta {
    width: 100%;
    text-align: center;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
  }

  body {
    padding-bottom: 10.4rem;
  }
}
