/* ==========================================================================
   LADDER'S OWN STYLES
   This file is yours. It loads on every page AFTER the site design, so any
   rule here adds to or overrides the main styles. Edit freely.
   ========================================================================== */

/* Landing-page tutor carousel */
#tutors .tutor-carousel-track {
  /* Exactly the visible tutors show at rest. --bleed is narrower than the gap,
     so the next tutor stays hidden, and gives moving cards room to fade at the
     edges instead of being cut off. */
  --bleed: 30px;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
  mask-image: linear-gradient(to right, transparent, #000 var(--bleed), #000 calc(100% - var(--bleed)), transparent);
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 68px) / 3);
  grid-template-columns: none;
  gap: 34px;
  margin-inline: calc(var(--bleed) * -1);
  padding-inline: var(--bleed);
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

#tutors .tutor-carousel-track.is-moving {
  scroll-snap-type: none;
}

#tutors .tutor-carousel-track.is-static .tutor-carousel-copy {
  display: none;
}

#tutors .tutor-carousel-track::-webkit-scrollbar {
  display: none;
}

#tutors .tutor-carousel-track:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: -3px;
  border-radius: 12px;
}

#tutors .tutor-carousel-track .tutor-card {
  min-width: 0;
  scroll-snap-align: start;
}

#tutors .tutor-carousel-bio {
  margin-top: 14px;
  color: rgba(255, 255, 255, .78);
  font-size: 15px;
}

.tutor-carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
}

.tutor-carousel-controls[hidden],
.tutor-carousel-btn[hidden] {
  display: none;
}

.tutor-carousel-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 999px;
  background: rgba(15, 48, 39, .38);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  touch-action: manipulation;
  transition: background .2s ease, border-color .2s ease, transform .12s ease;
}

.tutor-carousel-btn:active {
  transform: scale(.94);
}

.tutor-carousel-btn:focus-visible,
.tutor-carousel-dot:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.tutor-carousel-toggle {
  margin-left: 6px;
}

.tutor-carousel-dots {
  display: flex;
  align-items: center;
}

/* The button is 24px to be easy to tap; the visible dot is drawn inside it. */
.tutor-carousel-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  cursor: pointer;
  touch-action: manipulation;
}

.tutor-carousel-dot::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .4);
  transition: background .25s ease, transform .25s ease;
}

.tutor-carousel-dot[aria-current]::before {
  background: var(--gold);
  transform: scale(1.3);
}

@media (hover: hover) and (pointer: fine) {
  .tutor-carousel-btn:hover {
    border-color: var(--gold);
    background: rgba(15, 48, 39, .68);
  }

  .tutor-carousel-dot:hover::before {
    background: #fff;
  }
}

#tutors .tutor-carousel-controls + .tutors-more {
  margin-top: 28px;
}

@media (max-width: 960px) {
  #tutors .tutor-carousel-track {
    grid-auto-columns: calc((100% - 34px) / 2);
  }
}

@media (max-width: 620px) {
  #tutors .tutor-carousel-track {
    --bleed: 20px;
    grid-auto-columns: 100%;
    max-width: none;
  }

  /* Sits left so the floating booking button can't cover the pause button. */
  .tutor-carousel-controls {
    justify-content: flex-start;
    gap: 6px;
  }

  .tutor-carousel-toggle {
    margin-left: 0;
  }

  .tutor-carousel-dot {
    width: 20px;
  }
}


/* Price emphasis: hero pill */
#hero .price-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  padding: 9px 18px;
  border: 1px solid rgba(var(--gold-rgb), .55);
  border-radius: 999px;
  background: rgba(var(--gold-rgb), .14);
  color: #fff;
  font-size: 16px;
}

#hero .price-pill i { color: var(--gold); }
#hero .price-pill b { color: #f7c873; font-weight: 800; }

/* Price emphasis: "Why so affordable?" block inside Packages */
#packages .affordable {
  margin-top: 90px;
  padding-top: 70px;
  border-top: 1px solid var(--line);
}

#packages .affordable-heading {
  font-family: var(--display);
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.02em;
  margin-top: 14px;
  color: var(--g-2);
}

#packages .affordable-heading em {
  font-style: italic;
  color: var(--green);
}

.affordable-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  margin-top: 46px;
}

.affordable-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 24px;
  transition: transform .3s, box-shadow .3s;
}

.affordable-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 50px rgba(27, 75, 61, .1);
}

.affordable-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(var(--green-rgb), .1);
  color: var(--green);
  font-size: 18px;
}

.affordable-card h4 {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 800;
  color: var(--g-2);
  margin-top: 18px;
}

.affordable-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 8px;
}

@media (max-width: 960px) {
  #packages .affordable-heading { font-size: 30px; }
}

@media (max-width: 760px) {
  .affordable-grid { grid-template-columns: 1fr; max-width: 460px; }
}

@media (max-width: 620px) {
  #packages .affordable { margin-top: 64px; padding-top: 52px; }
  #hero .price-pill { font-size: 14px; padding: 8px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .affordable-card, .affordable-card:hover { transition: none; transform: none; }
}

/* Price + hours side by side on package cards */
.pk-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.pk-stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px 14px;
  border-radius: 16px;
  min-width: 0;
}

.pk-stat-price {
  background: rgba(var(--green-rgb), .07);
  border: 1px solid rgba(var(--green-rgb), .18);
}

.pk-stat-hours {
  background: linear-gradient(135deg, var(--gold-soft), #fff6e4);
  border: 1px solid rgba(var(--gold-rgb), .45);
}

.pk .pk-stat .price,
.pk-stat-big {
  margin-top: 0;
  font-family: var(--display);
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.02em;
  color: var(--green);
}

.pk-stat-big {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.pk-stat-big small {
  font-size: 20px;
  letter-spacing: 0;
  color: var(--g-2);
}

.pk-stat-label {
  margin-top: 6px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--g-2);
}

.pk .pk-stats + .unit {
  margin-top: 12px;
}

.pk.featured .pk-stat-price,
.pk.featured .pk-stat-hours {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(var(--gold-rgb), .5);
}

.pk.featured .pk-stat-big { color: #f7c873; }
.pk.featured .pk-stat-big small,
.pk.featured .pk-stat-label { color: #fff; }

@media (max-width: 620px) {
  .pk-stats { gap: 10px; }
  .pk-stat { padding: 14px 14px 12px; }
  .pk .pk-stat .price,
  .pk-stat-big { font-size: 38px; }
  .pk-stat-big small { font-size: 17px; }
}
