/* ═══════════════════════════════════════════
   QUANTA — Courses Page
   ═══════════════════════════════════════════ */

.courses-main { padding: 0; max-width: 100%; }

/* ── Shared ── */
.c-wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 clamp(16px,4vw,32px);
}

.c-label {
  display: inline-block;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--q-accent);
  background: rgba(228,91,124,.1);
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(228,91,124,.22);
  margin-bottom: 12px;
}

.c-label--light {
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.15);
}

.c-h2 {
  font-size: clamp(1.5rem,3vw,2.1rem);
  font-weight: 800;
  color: var(--q-navy);
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: 8px;
}

.c-h2--light { color: #fff; }

/* ── Buttons ── */
.c-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap;
}

.c-btn:hover { transform: translateY(-2px); }

.c-btn--primary {
  background: linear-gradient(105deg, #dc2626, #b91c1c);
  color: #fff;
  box-shadow: 0 4px 16px rgba(220,38,38,.35);
}

.c-btn--accent {
  background: linear-gradient(105deg, var(--q-accent), var(--q-accent2));
  color: #fff;
  box-shadow: 0 4px 16px rgba(228,91,124,.35);
}

.c-btn--outline {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,.25);
}

.c-btn--ghost {
  background: transparent;
  color: var(--q-navy);
  border: 1.5px solid rgba(20,27,79,.18);
}

.c-btn--ghost:hover { background: rgba(20,27,79,.05); }

/* ══ HERO ══════════════════════════════════════════════════════════════ */
.c-hero {
  background: linear-gradient(135deg, var(--q-navy-d) 0%, var(--q-navy) 55%, var(--q-navy-l) 100%);
  padding: clamp(100px,14vw,130px) clamp(16px,4vw,32px) clamp(56px,8vw,80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.c-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(228,91,124,.18) 0%, transparent 55%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(53,40,217,.2) 0%, transparent 50%);
  pointer-events: none;
}

.c-hero__wrap { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }

.c-hero__kicker {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.08);
  padding: 5px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.12);
  margin-bottom: 20px;
}

.c-hero__h1 {
  font-size: clamp(2rem,5vw,3.4rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

.c-hero__plus {
  display: inline-block;
  color: var(--q-accent);
  font-size: .7em;
  vertical-align: middle;
  margin: 0 4px;
}

.c-hero__lead {
  font-size: clamp(.95rem,1.8vw,1.1rem);
  color: rgba(255,255,255,.68);
  line-height: 1.72;
  max-width: 560px;
  margin: 0 auto 28px;
}

.c-hero__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ══ HOW IT WORKS ══════════════════════════════════════════════════════ */
.c-how {
  padding: clamp(56px,8vw,80px) 0;
  background: var(--q-warm-b);
}

.c-how__grid {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 36px;
}

.c-how__step {
  flex: 1;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.c-how__num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--q-navy-l), var(--q-navy));
  color: #fff;
  font-size: .95rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(20,27,79,.2);
}

.c-how__body h3 {
  font-size: .95rem;
  font-weight: 700;
  color: var(--q-navy);
  margin-bottom: 6px;
}

.c-how__body p {
  font-size: .85rem;
  color: var(--q-muted);
  line-height: 1.6;
  margin-bottom: 10px;
}

.c-how__link {
  font-size: .82rem;
  font-weight: 700;
  color: var(--q-royal);
  text-decoration: none;
}

.c-how__link:hover { text-decoration: underline; }

.c-how__arrow {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--q-muted);
  padding: 10px 16px;
  opacity: .4;
  align-self: flex-start;
  margin-top: 8px;
}

/* ══ SUBJECTS ══════════════════════════════════════════════════════════ */
.c-subjects {
  padding: clamp(56px,8vw,80px) 0;
}

.c-subjects__grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-top: 32px;
}

.c-subject {
  border-radius: 18px;
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--q-sh-md);
  transition: transform .25s ease;
}

.c-subject:hover { transform: translateY(-4px); }

.c-subject--sci  { background: linear-gradient(145deg, #1e1b4b, #3730a3); }
.c-subject--math { background: linear-gradient(145deg, #1c1917, #57534e); }
.c-subject--sst  { background: linear-gradient(145deg, #052e16, #166534); }

.c-subject__head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.c-subject__icon { font-size: 2rem; flex-shrink: 0; }

.c-subject__name {
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.c-subject__sub {
  font-size: .72rem;
  color: rgba(255,255,255,.5);
  font-weight: 600;
  margin: 2px 0 0;
}

.c-subject__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.c-subject__list li {
  font-size: .84rem;
  color: rgba(255,255,255,.72);
  padding-left: 16px;
  position: relative;
  line-height: 1.45;
}

.c-subject__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: rgba(255,255,255,.35);
  font-size: .75rem;
}

/* ══ PREMIUM ═══════════════════════════════════════════════════════════ */
.c-premium {
  padding: clamp(56px,8vw,80px) 0;
  background: linear-gradient(135deg, var(--q-navy-d) 0%, var(--q-navy) 55%, var(--q-navy-l) 100%);
  position: relative;
  overflow: hidden;
}

.c-premium::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 55% 65% at 100% 50%, rgba(228,91,124,.15) 0%, transparent 55%),
    radial-gradient(ellipse 40% 50% at 0% 30%, rgba(53,40,217,.18) 0%, transparent 50%);
  pointer-events: none;
}

.c-premium .c-wrap { position: relative; z-index: 1; }

.c-premium__sub {
  font-size: .95rem;
  color: rgba(255,255,255,.55);
  margin-top: 8px;
  margin-bottom: 36px;
}

.c-plans {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 18px;
  margin-bottom: 20px;
}

.c-plan {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: background .2s ease, transform .2s ease;
}

.c-plan:hover {
  background: rgba(255,255,255,.1);
  transform: translateY(-3px);
}

.c-plan__top {
  display: flex;
  align-items: center;
  gap: 10px;
}

.c-plan__icon { font-size: 1.5rem; flex-shrink: 0; }

.c-plan__name {
  font-size: .92rem;
  font-weight: 800;
  color: #fff;
  margin: 0;
}

.c-plan__hi {
  font-size: .72rem;
  font-weight: 500;
  color: rgba(255,255,255,.45);
  display: block;
  margin-top: 1px;
}

.c-plan__class {
  font-size: .65rem;
  color: rgba(255,255,255,.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

.c-plan__off {
  margin-left: auto;
  flex-shrink: 0;
  font-size: .65rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(228,91,124,.25);
  color: #fda4af;
  border: 1px solid rgba(228,91,124,.3);
}

.c-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.c-plan__curr {
  font-size: 2rem;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}

.c-plan__orig {
  font-size: .88rem;
  color: rgba(255,255,255,.3);
  text-decoration: line-through;
}

.c-plan__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.c-plan__list li {
  font-size: .82rem;
  color: rgba(255,255,255,.72);
  padding-left: 20px;
  position: relative;
  line-height: 1.4;
}

.c-plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #86efac;
  font-weight: 700;
}

.c-plan__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  color: #fff;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  transition: background .18s ease, transform .18s ease;
}

.c-plan__btn:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-1px);
}

/* Combo */
.c-combo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: rgba(228,91,124,.12);
  border: 1px solid rgba(228,91,124,.25);
  border-radius: 16px;
  padding: 20px 26px;
  flex-wrap: wrap;
}

.c-combo__text {
  font-size: .92rem;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}

.c-combo__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 10px 22px;
  background: linear-gradient(105deg, var(--q-accent), var(--q-accent2));
  color: #fff;
  border-radius: 999px;
  font-weight: 700;
  font-size: .85rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(228,91,124,.35);
  transition: transform .2s ease;
  white-space: nowrap;
}

.c-combo__btn:hover { transform: translateY(-1px); }

/* ══ FREE vs PREMIUM ═══════════════════════════════════════════════════ */
.c-compare {
  padding: clamp(56px,8vw,80px) 0;
  background: var(--q-warm-b);
}

.c-compare__table {
  margin-top: 32px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(20,27,79,.08);
  box-shadow: var(--q-sh-sm);
}

.c-compare__head {
  display: grid;
  grid-template-columns: 1fr 100px 120px;
  background: var(--q-navy);
  padding: 12px 20px;
}

.c-compare__row {
  display: grid;
  grid-template-columns: 1fr 100px 120px;
  padding: 13px 20px;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  transition: background .15s ease;
}

.c-compare__row:last-child { border-bottom: none; }
.c-compare__row:hover { background: #f8fafc; }

.c-compare__col {
  font-size: .88rem;
  display: flex;
  align-items: center;
}

.c-compare__col--feature {
  font-weight: 600;
  color: var(--q-ink);
}

.c-compare__head .c-compare__col--feature {
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: rgba(255,255,255,.6);
}

.c-compare__col--free,
.c-compare__col--premium {
  justify-content: center;
  font-size: 1rem;
}

.c-compare__head .c-compare__col--free {
  font-size: .78rem;
  font-weight: 700;
  color: rgba(255,255,255,.7);
  justify-content: center;
}

.c-compare__head .c-compare__col--premium {
  font-size: .78rem;
  font-weight: 800;
  color: #fda4af;
  justify-content: center;
}

/* ══ CTA ═══════════════════════════════════════════════════════════════ */
.c-cta {
  padding: clamp(56px,8vw,80px) clamp(16px,4vw,32px);
  background: linear-gradient(135deg, var(--q-navy-d) 0%, var(--q-navy) 55%, var(--q-navy-l) 100%);
}

.c-cta__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
}

.c-cta__title {
  font-size: clamp(1.4rem,3vw,2rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
  letter-spacing: -.02em;
}

.c-cta__desc {
  font-size: .95rem;
  color: rgba(255,255,255,.6);
  line-height: 1.6;
}

.c-cta__btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* ══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .c-subjects__grid { grid-template-columns: 1fr 1fr; }
  .c-plans { grid-template-columns: 1fr 1fr; }
  .c-how__grid { flex-direction: column; gap: 24px; }
  .c-how__arrow { display: none; }
}

@media (max-width: 600px) {
  .c-subjects__grid { grid-template-columns: 1fr; }
  .c-plans { grid-template-columns: 1fr; }
  .c-cta__inner { flex-direction: column; align-items: flex-start; }
  .c-compare__head,
  .c-compare__row { grid-template-columns: 1fr 70px 90px; padding: 11px 14px; }
  .c-compare__col { font-size: .8rem; }
  .c-combo { flex-direction: column; align-items: flex-start; }
}

/* ══ RESPONSIVE ════════════════════════════════════════════════════════ */
@media (max-width: 860px) {
  .c-subjects__grid { grid-template-columns: 1fr 1fr; }
  .c-plans { grid-template-columns: 1fr 1fr; }
  .c-how__grid { flex-direction: column; gap: 24px; }
  .c-how__arrow { display: none; }
}

@media (max-width: 600px) {
  /* Hero */
  .c-hero { padding-top: 96px; padding-bottom: 48px; }
  .c-hero__h1 { font-size: 1.65rem; letter-spacing: -.02em; }
  .c-hero__lead { font-size: .88rem; }
  .c-hero__kicker { font-size: .62rem; }
  .c-hero__actions { flex-direction: column; align-items: center; }
  .c-btn { font-size: .82rem; padding: 11px 20px; }

  /* Sections */
  .c-h2 { font-size: 1.3rem; }
  .c-subjects__grid { grid-template-columns: 1fr; }
  .c-plans { grid-template-columns: 1fr; }
  .c-subject { padding: 20px 18px; }
  .c-plan { padding: 20px 18px; }
  .c-plan__curr { font-size: 1.6rem; }

  /* Compare table */
  .c-cta__inner { flex-direction: column; align-items: flex-start; }
  .c-compare__head,
  .c-compare__row { grid-template-columns: 1fr 60px 80px; padding: 10px 12px; }
  .c-compare__col { font-size: .78rem; }
  .c-combo { flex-direction: column; align-items: flex-start; }
  .c-combo__text { font-size: .85rem; }

  /* How it works */
  .c-how__step { gap: 12px; }
  .c-how__num { width: 34px; height: 34px; font-size: .85rem; }
  .c-how__body h3 { font-size: .88rem; }
  .c-how__body p { font-size: .8rem; }
}
