/*
 * Homepage sections below the hero (resources/views/site/home/partials).
 * Builds on the brand tokens in site-fonts.css.
 */

body.page-site {
  --ph-ink: #1f1d2b;
  --ph-muted: #6b6a7b;
  --ph-line: #e9e7f2;
  --ph-surface: #ffffff;
  --ph-radius: 20px;
  --ph-radius-sm: 14px;
  --ph-shadow: 0 1px 2px rgba(31, 29, 43, 0.04), 0 8px 24px rgba(31, 29, 43, 0.06);
  --ph-shadow-hover: 0 2px 4px rgba(31, 29, 43, 0.05), 0 18px 40px rgba(var(--pedagoge-brand-rgb), 0.16);
  --ph-ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Shared ---------- */

.ph-section {
  padding: 100px 0;
}

.ph-head {
  max-width: 680px;
  margin: 0 auto 56px;
}

.ph-head--split {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.ph-head--split > div {
  max-width: 640px;
}

.ph-title {
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.25;
  font-weight: 600;
  color: var(--ph-ink);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.ph-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ph-muted);
  margin-bottom: 0;
}

.ph-lead--light {
  color: rgba(255, 255, 255, 0.72);
}

.ph-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  font-size: 14px;
  font-weight: 500;
}

.ph-eyebrow--light {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.ph-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  font-weight: 500;
  color: var(--pedagoge-brand);
  white-space: nowrap;
}

.ph-link i,
.ph-audience__cta i,
.ph-btn i {
  transition: transform 0.25s var(--ph-ease);
}

.ph-link:hover {
  color: var(--pedagoge-brand-hover);
}

.ph-link:hover i,
.ph-audience__cta:hover i,
.ph-btn:hover i {
  transform: translateX(4px);
}

.ph-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 28px;
  border-radius: 14px;
  border: 1.5px solid transparent;
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s var(--ph-ease), box-shadow 0.2s;
}

.ph-btn:hover {
  transform: translateY(-1px);
}

.ph-btn--brand {
  background: var(--pedagoge-brand);
  color: #ffffff;
  box-shadow: 0 8px 20px rgba(var(--pedagoge-brand-rgb), 0.28);
}

.ph-btn--brand:hover {
  background: var(--pedagoge-brand-hover);
  color: #ffffff;
}

.ph-btn--outline {
  border-color: var(--ph-line);
  color: var(--ph-ink);
  background: var(--ph-surface);
}

.ph-btn--outline:hover {
  border-color: var(--pedagoge-brand);
  color: var(--pedagoge-brand);
}

.ph-btn--light {
  background: #ffffff;
  color: var(--pedagoge-brand);
}

.ph-btn--light:hover {
  background: #f4f2ff;
  color: var(--pedagoge-brand-hover);
}

.ph-btn--ghost {
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

.ph-btn--ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.ph-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
}

.ph-checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 12px;
  line-height: 1.55;
  color: var(--ph-ink);
}

.ph-checklist li i {
  position: absolute;
  left: 0;
  top: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
}

/* ---------- How it works ---------- */

.ph-how {
  padding-top: 40px;
}

.ph-steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  counter-reset: step;
  position: relative;
}

.ph-steps::before {
  content: '';
  position: absolute;
  top: 44px;
  left: 12.5%;
  right: 12.5%;
  border-top: 2px dashed #dcd6fb;
  z-index: 0;
}

.ph-step {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 8px;
}

.ph-step__icon {
  width: 88px;
  height: 88px;
  margin: 0 auto 24px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  box-shadow: var(--ph-shadow);
  color: var(--pedagoge-brand);
  font-size: 30px;
  transition: transform 0.3s var(--ph-ease), background-color 0.3s, color 0.3s, box-shadow 0.3s;
}

.ph-step:hover .ph-step__icon {
  transform: translateY(-6px) rotate(-3deg);
  background: var(--pedagoge-brand);
  color: #ffffff;
  box-shadow: var(--ph-shadow-hover);
}

.ph-step__num {
  position: absolute;
  top: -8px;
  left: calc(50% + 28px);
  z-index: 2;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pedagoge-hero-subject-underline);
  color: #3d5a0c;
  font-size: 14px;
  font-weight: 600;
  border: 3px solid #ffffff;
}

.ph-step__title {
  font-size: 19px;
  font-weight: 600;
  color: var(--ph-ink);
  margin-bottom: 10px;
}

.ph-step__text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ph-muted);
  margin: 0;
}

/* ---------- Subjects ---------- */

.ph-subjects {
  padding-top: 0;
}

.ph-subject-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.ph-subject {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--ph-radius-sm);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  color: var(--ph-ink);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.25s var(--ph-ease);
}

.ph-subject:hover {
  border-color: transparent;
  box-shadow: var(--ph-shadow-hover);
  transform: translateY(-3px);
  color: var(--ph-ink);
}

.ph-subject__mark {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--ph-tint, var(--pedagoge-brand-light));
  font-size: 19px;
  font-weight: 600;
  color: var(--ph-ink);
}

.ph-subject__name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  line-height: 1.35;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.ph-subject__arrow {
  color: var(--pedagoge-brand);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.2s, transform 0.25s var(--ph-ease);
}

.ph-subject:hover .ph-subject__arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ---------- Audiences ---------- */

.ph-audience {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 36px 32px 32px;
  border-radius: var(--ph-radius);
  background: var(--ph-surface);
  box-shadow: var(--ph-shadow);
  scroll-margin-top: 110px;
  transition: transform 0.3s var(--ph-ease), box-shadow 0.3s;
}

.ph-audience:hover {
  transform: translateY(-6px);
  box-shadow: var(--ph-shadow-hover);
}

.ph-audience__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.ph-audience__icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  font-size: 22px;
}

.ph-audience__tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--ph-muted);
}

.ph-audience__title {
  font-size: 22px;
  line-height: 1.35;
  font-weight: 600;
  color: var(--ph-ink);
  margin-bottom: 22px;
}

.ph-audience .ph-checklist {
  flex: 1;
  margin-bottom: 24px;
}

.ph-audience__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  align-self: flex-start;
  padding-top: 20px;
  width: 100%;
  border-top: 1px solid var(--ph-line);
  font-weight: 500;
  color: var(--pedagoge-brand);
}

.ph-audience__cta:hover {
  color: var(--pedagoge-brand-hover);
}

/* ---------- Platform ---------- */

.ph-platform .ph-lead {
  margin-bottom: 32px;
}

.ph-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 28px;
}

.ph-feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.ph-feature > i {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  font-size: 18px;
}

.ph-feature strong {
  display: block;
  color: var(--ph-ink);
  font-weight: 600;
  margin-bottom: 2px;
}

.ph-feature span {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ph-muted);
}

/* App mock */
.ph-mock {
  position: relative;
  padding: 36px 40px 48px 0;
}

.ph-mock::before {
  content: '';
  position: absolute;
  inset: 0 0 0 40px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.35), transparent 45%),
    linear-gradient(140deg, #7b66f0 0%, var(--pedagoge-brand) 55%, #4b36c9 100%);
}

.ph-mock__window {
  position: relative;
  border-radius: 20px;
  background: var(--ph-surface);
  box-shadow: 0 30px 60px rgba(39, 24, 120, 0.28);
  overflow: hidden;
}

.ph-mock__bar {
  display: flex;
  gap: 6px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--ph-line);
}

.ph-mock__bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e4e1ee;
}

.ph-mock__body {
  padding: 22px;
  display: grid;
  gap: 14px;
  background: #faf9fe;
}

.ph-mock__body strong {
  display: block;
  color: var(--ph-ink);
  font-weight: 600;
}

.ph-mock__body small {
  display: block;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ph-muted);
}

.ph-mock__class {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ph-mock__avatar {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--pedagoge-hero-subject-underline);
  font-weight: 600;
  font-size: 20px;
  color: #3d5a0c;
}

.ph-mock__card {
  padding: 16px 18px;
  border-radius: 14px;
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
}

.ph-mock__card p {
  font-size: 14px;
  color: var(--ph-muted);
  margin: 6px 0 14px;
  line-height: 1.5;
}

.ph-mock__card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.ph-mock__badge {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  font-size: 12px;
  font-weight: 500;
}

.ph-mock__due {
  font-size: 12px;
  color: #c2410c;
}

.ph-mock__progress {
  height: 6px;
  border-radius: 999px;
  background: #efedf6;
  margin-bottom: 8px;
  overflow: hidden;
}

.ph-mock__progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--pedagoge-brand);
}

.ph-mock__card--meet {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ph-mock__card--meet > div {
  flex: 1;
  min-width: 0;
}

.ph-mock__card--meet strong {
  line-height: 1.4;
}

.ph-mock__meet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #e6f6ef;
  color: #0f9d58;
}

.ph-mock__join {
  flex-shrink: 0;
  padding: 8px 16px;
  border-radius: 10px;
  background: var(--pedagoge-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.ph-mock__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--ph-surface);
  box-shadow: 0 18px 40px rgba(31, 29, 43, 0.16);
}

.ph-mock__float > span {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #ffffff;
}

.ph-mock__float strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ph-ink);
}

.ph-mock__float small {
  font-size: 12px;
  color: var(--ph-muted);
}

.ph-mock__float--ai {
  top: 6px;
  right: 0;
  animation: ph-float 5s ease-in-out infinite;
}

.ph-mock__float--ai > span {
  background: linear-gradient(135deg, #8b5cf6, var(--pedagoge-brand));
}

.ph-mock__float--chat {
  bottom: 12px;
  left: -16px;
  animation: ph-float 5s ease-in-out 1.2s infinite;
}

.ph-mock__float--chat > span {
  background: #0ea5e9;
}

@keyframes ph-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ---------- AI ---------- */

.ph-ai {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 10% 0%, rgba(var(--pedagoge-brand-rgb), 0.45), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(139, 92, 246, 0.3), transparent 50%),
    #15132a;
}

.ph-ai .ph-lead {
  margin-bottom: 32px;
}

.ph-ai-card {
  height: 100%;
  padding: 28px;
  border-radius: var(--ph-radius);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  transition: background-color 0.3s, border-color 0.3s, transform 0.3s var(--ph-ease);
}

.ph-ai-card:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-4px);
}

.ph-ai-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  background: rgba(var(--pedagoge-brand-rgb), 0.35);
  color: #ffffff;
  font-size: 20px;
}

.ph-ai-card__title {
  font-size: 18px;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 8px;
}

.ph-ai-card__text {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.68);
  margin: 0;
}

/* ---------- Teachers ---------- */

.ph-teacher {
  height: 100%;
  display: flex;
  flex-direction: column;
  padding: 28px 24px 22px;
  border-radius: var(--ph-radius);
  border: 1px solid var(--ph-line);
  background: var(--ph-surface);
  text-align: center;
  transition: transform 0.3s var(--ph-ease), box-shadow 0.3s, border-color 0.3s;
}

.ph-teacher:hover {
  transform: translateY(-6px);
  border-color: transparent;
  box-shadow: var(--ph-shadow-hover);
}

.ph-teacher__photo {
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  font-size: 34px;
  font-weight: 600;
  box-shadow: 0 0 0 5px #ffffff, 0 0 0 6px var(--ph-line);
}

.ph-teacher__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ph-teacher__name {
  font-size: 18px;
  font-weight: 600;
  color: var(--ph-ink);
  margin-bottom: 6px;
}

.ph-teacher__subjects {
  font-size: 14px;
  color: var(--pedagoge-brand);
  margin-bottom: 12px;
}

.ph-teacher__meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 14px;
  font-size: 13px;
  color: var(--ph-muted);
  margin-bottom: 18px;
}

.ph-teacher__meta i {
  margin-right: 6px;
}

.ph-teacher__foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--ph-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ph-teacher__price {
  font-weight: 600;
  color: var(--ph-ink);
}

.ph-teacher__price small {
  font-weight: 400;
  color: var(--ph-muted);
}

.ph-teacher__price--muted {
  font-weight: 400;
  font-size: 14px;
  color: var(--ph-muted);
}

.ph-teacher__link {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  transition: background-color 0.2s, color 0.2s;
}

.ph-teacher:hover .ph-teacher__link {
  background: var(--pedagoge-brand);
  color: #ffffff;
}

/* ---------- Pricing ---------- */

.ph-pricing__switch {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.ph-pricing__switch > input {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.ph-pricing__switch > label {
  margin: 0 0 48px;
  padding: 12px 24px;
  cursor: pointer;
  font-weight: 500;
  color: var(--ph-muted);
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.ph-pricing__switch > label:first-of-type {
  border-radius: 999px 0 0 999px;
  border-right: 0;
}

.ph-pricing__switch > label:last-of-type {
  border-radius: 0 999px 999px 0;
  border-left: 0;
}

.ph-pricing__switch > input:checked + label {
  background: var(--pedagoge-brand);
  border-color: var(--pedagoge-brand);
  color: #ffffff;
}

.ph-pricing__switch > input:focus-visible + label {
  outline: 2px solid var(--pedagoge-brand);
  outline-offset: 3px;
}

.ph-plans {
  width: 100%;
  display: none;
  gap: 24px;
  justify-content: center;
}

#ph-plans-teacher:checked ~ .ph-plans--teacher,
#ph-plans-student:checked ~ .ph-plans--student {
  display: grid;
  animation: ph-fade-up 0.4s var(--ph-ease);
}

.ph-plans--count-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ph-plans--count-2 {
  grid-template-columns: repeat(2, minmax(0, 380px));
}

@keyframes ph-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ph-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 36px 32px;
  border-radius: var(--ph-radius);
  background: var(--ph-surface);
  border: 1px solid var(--ph-line);
  transition: transform 0.3s var(--ph-ease), box-shadow 0.3s;
}

.ph-plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--ph-shadow);
}

.ph-plan--popular {
  border: 2px solid var(--pedagoge-brand);
  box-shadow: var(--ph-shadow-hover);
}

.ph-plan__badge {
  position: absolute;
  top: -14px;
  left: 32px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--pedagoge-brand);
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
}

.ph-plan__name {
  font-size: 22px;
  font-weight: 600;
  color: var(--ph-ink);
  margin-bottom: 8px;
}

.ph-plan__desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ph-muted);
  min-height: 48px;
  margin-bottom: 24px;
}

.ph-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 24px;
}

.ph-plan__price strong {
  font-size: 44px;
  line-height: 1;
  font-weight: 600;
  color: var(--ph-ink);
  letter-spacing: -0.02em;
}

.ph-plan__price span {
  color: var(--ph-muted);
}

.ph-checklist--plan {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ph-line);
}

.ph-checklist--plan li {
  font-size: 15px;
}

/* ---------- FAQ ---------- */

.ph-faq__intro {
  position: sticky;
  top: 120px;
}

.ph-faq__item {
  border-bottom: 1px solid var(--ph-line);
}

.ph-faq__item summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  color: var(--ph-ink);
}

.ph-faq__item summary::-webkit-details-marker {
  display: none;
}

.ph-faq__item summary i {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pedagoge-brand-light);
  color: var(--pedagoge-brand);
  transition: transform 0.3s var(--ph-ease), background-color 0.2s, color 0.2s;
}

.ph-faq__item[open] summary i {
  transform: rotate(45deg);
  background: var(--pedagoge-brand);
  color: #ffffff;
}

.ph-faq__item summary:hover {
  color: var(--pedagoge-brand);
}

.ph-faq__item p {
  margin: -6px 56px 24px 0;
  font-size: 16px;
  line-height: 1.75;
  color: var(--ph-muted);
}

/* ---------- Closing CTA ---------- */

.ph-cta-wrap {
  padding-top: 0;
}

.ph-cta {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 64px 72px;
  border-radius: 32px;
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.22), transparent 40%),
    radial-gradient(circle at 0% 100%, rgba(234, 244, 212, 0.25), transparent 45%),
    linear-gradient(135deg, #7b66f0 0%, var(--pedagoge-brand) 50%, #4b36c9 100%);
}

.ph-cta h2 {
  font-size: clamp(26px, 2.8vw, 36px);
  line-height: 1.3;
  color: #ffffff;
  margin-bottom: 12px;
}

.ph-cta p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.78);
  margin: 0;
}

.ph-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
  .ph-subject-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ph-cta {
    padding: 52px 48px;
  }
}

@media (max-width: 991.98px) {
  .ph-section {
    padding: 72px 0;
  }

  .ph-how {
    padding-top: 24px;
  }

  .ph-subjects,
  .ph-cta-wrap {
    padding-top: 0;
  }

  .ph-head {
    margin-bottom: 40px;
  }

  .ph-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 48px;
  }

  .ph-steps::before {
    display: none;
  }

  .ph-plans--count-3,
  .ph-plans--count-2 {
    grid-template-columns: minmax(0, 480px);
  }

  .ph-plan__desc {
    min-height: 0;
  }

  .ph-faq__intro {
    position: static;
  }

  .ph-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .ph-mock {
    max-width: 560px;
    margin: 0 auto;
  }
}

@media (max-width: 767.98px) {
  .ph-head--split {
    flex-direction: column;
    align-items: flex-start;
  }

  .ph-subject-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .ph-feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .ph-mock {
    padding: 28px 16px 44px 0;
  }

  .ph-mock::before {
    left: 24px;
  }

  .ph-mock__float--chat {
    left: 0;
  }

  .ph-cta {
    padding: 40px 28px;
    border-radius: 24px;
  }

  .ph-cta__actions,
  .ph-cta__actions .ph-btn {
    width: 100%;
  }

  .ph-faq__item p {
    margin-right: 0;
  }
}

@media (max-width: 575.98px) {
  .ph-steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 28px;
  }

  .ph-step {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    column-gap: 18px;
    text-align: left;
    padding: 0;
  }

  .ph-step__icon {
    grid-row: span 2;
    width: 64px;
    height: 64px;
    margin: 0;
    border-radius: 20px;
    font-size: 22px;
  }

  .ph-step__num {
    top: -6px;
    left: 46px;
    width: 26px;
    height: 26px;
    font-size: 12px;
  }

  .ph-step__title {
    font-size: 17px;
    margin: 4px 0 6px;
  }

  .ph-mock__float--chat {
    display: none;
  }

  .ph-mock__float--ai {
    right: -4px;
  }

  .ph-subject {
    padding: 12px;
    gap: 10px;
  }

  .ph-subject__mark {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .ph-audience,
  .ph-plan {
    padding: 28px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-mock__float,
  .ph-plans {
    animation: none !important;
  }
}

@media (max-width: 575.98px) {
  .ph-pricing__switch > label {
    padding: 11px 14px;
    font-size: 13px;
    margin-bottom: 32px;
    white-space: nowrap;
  }
}

@media (max-width: 767.98px) {
  .ph-section .row.g-5 {
    --bs-gutter-x: 1.5rem;
  }
}

/* Whole teacher card is clickable via the name link. */
.ph-teacher {
  position: relative;
}

.ph-teacher__name-link {
  color: inherit;
}

.ph-teacher__name-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.ph-teacher__name-link:focus-visible {
  outline: none;
}

.ph-teacher:has(.ph-teacher__name-link:focus-visible) {
  outline: 2px solid var(--pedagoge-brand);
  outline-offset: 2px;
}

/* Featured teacher card: one line per billing period */
.ph-teacher__prices {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.ph-teacher__price--second {
  font-size: 13px;
}

.ph-teacher__prices {
  align-items: flex-start;
  text-align: left;
}

/* "როგორ მუშაობს?" sub-menu: land just above the section heading */
.ph-audiences {
  position: relative;
}

.ph-anchor {
  position: absolute;
  top: 48px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ...and briefly mark the card that was picked. A pseudo-element, because WOW.js sets
   animation-name inline on the card itself. */
.ph-audience {
  position: relative;
}

.ph-audience.is-highlighted::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  border: 2px solid var(--pedagoge-brand);
  box-shadow: 0 0 0 6px rgba(var(--pedagoge-brand-rgb), 0.14);
  pointer-events: none;
  animation: ph-audience-pick 2.4s var(--ph-ease) forwards;
}

@keyframes ph-audience-pick {
  0%,
  55% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ph-audience.is-highlighted::after {
    animation: none;
  }
}
