/* ═══════════════════════════════════════════════════════════════
   Language plan pages — shared CSS
   Used by: group / individual / duo / business / hybrid + flagship variants
   ═══════════════════════════════════════════════════════════════ */

/* ── hero ─────────────────────────────────────────────────────── */
.plan-hero {
  padding: 140px 40px 60px;
  position: relative; overflow: hidden;
  background:
    radial-gradient(ellipse 900px 500px at 20% 30%, rgba(155,48,255,0.14), transparent 60%),
    radial-gradient(ellipse 700px 400px at 85% 70%, rgba(245,158,11,0.10), transparent 60%);
}
.plan-hero-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 60px; align-items: center;
}
.plan-hero .label { margin-bottom: 22px; }
.plan-hero .badge-flagship {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,158,11,0.22), rgba(155,48,255,0.20));
  border: 1px solid rgba(245,158,11,0.5);
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi);
  margin-bottom: 18px;
}
.plan-hero h1 {
  font-family: 'Syne', sans-serif; font-weight: 800;
  font-size: clamp(46px, 5.5vw, 78px); line-height: 0.98; letter-spacing: -0.03em;
  margin: 8px 0 22px;
}
.plan-hero h1 em { font-style: italic;
  background: linear-gradient(90deg, var(--accent-hi), var(--gold-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-hero p.lead {
  font-size: 17px; line-height: 1.7; color: var(--text-1);
  font-weight: 300; margin: 0 0 30px; max-width: 540px;
}
.plan-hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* Price panel — glass card, gold accent for flagship */
.price-card {
  padding: 34px; border-radius: 24px;
  background: linear-gradient(135deg, rgba(245,158,11,0.10), rgba(107,28,255,0.06)), rgba(5,1,15,0.55);
  border: 1px solid rgba(245,158,11,0.35);
  backdrop-filter: blur(20px);
  box-shadow: 0 40px 80px rgba(155,48,255,0.15);
}
.price-card .plan-title {
  font-family: 'Azeret Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi);
}
.price-card .plan-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 26px; margin: 8px 0 22px; color: var(--text-0);
}
.price-card .price-row {
  display: flex; align-items: baseline; justify-content: space-between;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.price-card .price-row:last-of-type { border-bottom: 0; }
.price-card .price-method {
  font-family: 'Azeret Mono', monospace; font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
}
.price-card .price-amt {
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 26px;
  color: var(--text-0); letter-spacing: -0.02em;
}
.price-card .price-amt small {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 12px; color: var(--text-2); margin-left: 4px;
}
.price-card .cta {
  display: block; text-align: center; padding: 16px 24px;
  margin-top: 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--accent-hi), #b950ff);
  color: #fff; text-decoration: none;
  font-family: 'Syne', sans-serif; font-weight: 700; font-size: 15px;
  letter-spacing: 0.02em; transition: transform .2s, box-shadow .2s;
  box-shadow: 0 12px 32px rgba(155,48,255,0.4);
}
.price-card .cta:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(155,48,255,0.55); }
.price-card .fine {
  margin-top: 14px; text-align: center;
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.14em; color: var(--text-2); text-transform: uppercase;
}

/* Hero specs — 3-cell stat row */
.hero-specs {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  margin-top: 40px; max-width: 540px;
}
.hero-specs .spec .n {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 32px; color: var(--gold-hi); letter-spacing: -0.02em; line-height: 1;
}
.hero-specs .spec .l {
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-2);
  margin-top: 8px; line-height: 1.4;
}

/* ── section head (reusable) ───────────────────────────────── */
.plan-head { text-align: center; max-width: 800px; margin: 0 auto 60px; }
.plan-head h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(36px, 4.5vw, 60px); line-height: 1.02;
  letter-spacing: -0.02em; margin: 18px 0;
}
.plan-head h2 em { font-style: italic;
  background: linear-gradient(90deg, var(--accent-hi), var(--gold-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan-head p {
  color: var(--text-1); font-size: 16px; line-height: 1.7; font-weight: 300;
  max-width: 640px; margin: 0 auto;
}

/* ── variant compare — 3-4 side-by-side cards (base category pages) ── */
.variants { padding: 100px 40px 60px; }
.variant-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1240px; margin: 0 auto;
}
.variant-grid.g4 { grid-template-columns: repeat(4, 1fr); gap: 22px; }
.variant-card {
  position: relative;
  padding: 40px 32px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  display: flex; flex-direction: column;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  text-decoration: none; color: inherit;
}
.variant-card:hover { transform: translateY(-4px); border-color: rgba(155,48,255,0.5); }
.variant-card.flagship {
  background: linear-gradient(135deg, rgba(245,158,11,0.14), rgba(107,28,255,0.10)), rgba(5,1,15,0.55);
  border-color: rgba(245,158,11,0.45);
  box-shadow: 0 30px 60px rgba(245,158,11,0.10);
}
.variant-card.flagship:hover { border-color: rgba(245,158,11,0.65); }
.variant-card .v-tag {
  display: inline-flex; align-items: center; gap: 6px;
  align-self: flex-start;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(155,48,255,0.15); border: 1px solid rgba(155,48,255,0.35);
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--accent-hi);
  margin-bottom: 22px;
}
.variant-card.flagship .v-tag {
  background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.45); color: var(--gold-hi);
}
.variant-card .v-name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 26px; letter-spacing: -0.01em; margin: 0 0 6px;
  color: var(--text-0); line-height: 1.15;
}
.variant-card .v-sub {
  font-family: 'Azeret Mono', monospace; font-size: 11px;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-2);
  margin-bottom: 20px;
}
.variant-card .v-desc {
  font-size: 14.5px; line-height: 1.7; color: var(--text-1);
  font-weight: 300; margin: 0 0 24px; flex-grow: 1;
}
.variant-card .v-price {
  padding-top: 20px; border-top: 1px solid var(--line);
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 20px;
}
.variant-card .v-price .amt {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 30px; letter-spacing: -0.02em; color: var(--text-0);
}
.variant-card .v-price .amt small {
  font-family: 'Inter', sans-serif; font-weight: 400;
  font-size: 12px; color: var(--text-2); margin-left: 4px;
}
.variant-card .v-cta {
  display: block; text-align: center; padding: 13px 20px;
  border-radius: 999px;
  background: rgba(155,48,255,0.15); border: 1px solid rgba(155,48,255,0.4);
  color: var(--text-0); text-decoration: none;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 14px;
  letter-spacing: 0.02em;
  transition: background .2s, border-color .2s;
}
.variant-card:hover .v-cta {
  background: rgba(155,48,255,0.3); border-color: var(--accent-hi);
}
.variant-card.flagship .v-cta {
  background: linear-gradient(135deg, var(--accent-hi), #b950ff);
  border: 0; color: #fff; padding: 14px 20px;
  box-shadow: 0 12px 28px rgba(155,48,255,0.35);
}
.variant-card.flagship:hover .v-cta { transform: translateY(-1px); }

/* ── differentiator band — 3 side-by-side "why this vs alternative" ─── */
.diff-band { padding: 100px 40px;
  background:
    radial-gradient(ellipse 600px 300px at 50% 0%, rgba(245,158,11,0.08), transparent 60%),
    var(--bg-1);
}
.diff-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  max-width: 1200px; margin: 0 auto;
}
.diff-card {
  padding: 40px 34px; border-radius: 24px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  transition: transform .3s, border-color .3s;
}
.diff-card:hover { transform: translateY(-4px); border-color: rgba(245,158,11,0.4); }
.diff-card .diff-label {
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi);
}
.diff-card h3 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 26px; margin: 14px 0 16px; letter-spacing: -0.01em;
  color: var(--text-0); line-height: 1.15;
}
.diff-card p {
  font-size: 15px; line-height: 1.7; color: var(--text-1);
  font-weight: 300; margin: 0;
}

/* ── session anatomy — timeline of a class ───────────────────── */
.anatomy { padding: 120px 40px; }
.anatomy-inner { max-width: 1100px; margin: 0 auto; }
.timeline {
  position: relative; padding-left: 44px;
  border-left: 2px solid rgba(155,48,255,0.35);
  max-width: 780px; margin: 0 auto;
}
.timeline .step {
  position: relative; padding: 0 0 40px 0;
}
.timeline .step:last-child { padding-bottom: 0; }
.timeline .step::before {
  content: '';
  position: absolute; left: -55px; top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle, var(--gold-hi), transparent 70%);
  box-shadow: 0 0 20px rgba(245,158,11,0.6);
}
.timeline .step .time {
  font-family: 'Azeret Mono', monospace; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-hi);
}
.timeline .step h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 22px; margin: 6px 0 10px; color: var(--text-0);
}
.timeline .step p {
  font-size: 15px; line-height: 1.7; color: var(--text-1);
  font-weight: 300; margin: 0;
}

/* ── detail grid — 6 things included ─────────────────────────── */
.details { padding: 120px 40px;
  background:
    radial-gradient(ellipse 800px 400px at 50% 100%, rgba(155,48,255,0.12), transparent 60%),
    var(--bg-1);
}
.detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  max-width: 1240px; margin: 0 auto;
}
.detail-card {
  padding: 34px 28px; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.detail-card .num {
  font-family: 'Azeret Mono', monospace; font-size: 11px;
  letter-spacing: 0.24em; color: var(--accent-hi);
}
.detail-card h4 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 19px; margin: 14px 0 10px; color: var(--text-0);
  letter-spacing: -0.01em; line-height: 1.25;
}
.detail-card p {
  font-size: 14px; line-height: 1.7; color: var(--text-1);
  font-weight: 300; margin: 0;
}

/* ── weekly rhythm — visual week grid ────────────────────────── */
.rhythm { padding: 120px 40px; }
.rhythm-inner { max-width: 1200px; margin: 0 auto; }
.week-grid {
  display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px;
  max-width: 1100px; margin: 0 auto;
}
.day {
  padding: 20px 12px; border-radius: 14px;
  background: rgba(5,1,15,0.5); border: 1px solid var(--line);
  min-height: 200px;
  display: flex; flex-direction: column; gap: 8px;
}
.day .dname {
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--text-2);
  padding-bottom: 8px; border-bottom: 1px solid var(--line);
}
.day .activity {
  padding: 8px 10px; border-radius: 8px;
  background: rgba(155,48,255,0.15); border: 1px solid rgba(155,48,255,0.35);
  font-size: 11px; color: var(--text-0); line-height: 1.4;
}
.day .activity.gold {
  background: rgba(245,158,11,0.18); border-color: rgba(245,158,11,0.4);
}
.day .activity.dim { background: rgba(255,255,255,0.03); border-color: rgba(255,255,255,0.05); color: var(--text-2); }

/* ── teacher band ────────────────────────────────────────────── */
.teacher { padding: 120px 40px;
  background:
    radial-gradient(ellipse 700px 400px at 15% 50%, rgba(245,158,11,0.10), transparent 60%),
    var(--bg-1);
}
.teacher-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 60px; align-items: center;
}
.teacher-badge {
  padding: 44px 40px; border-radius: 28px;
  background: linear-gradient(135deg, rgba(155,48,255,0.18), rgba(245,158,11,0.10));
  border: 1px solid rgba(245,158,11,0.4);
  text-align: center;
}
.teacher-badge .avatar {
  width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 20px;
  background: radial-gradient(circle at 30% 30%, rgba(245,158,11,0.4), rgba(107,28,255,0.3));
  border: 2px solid rgba(245,158,11,0.6);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Syne', sans-serif; font-weight: 800; font-size: 32px;
  color: var(--text-0);
}
.teacher-badge .role {
  font-family: 'Azeret Mono', monospace; font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-hi);
}
.teacher-badge .name {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: 22px; margin: 8px 0 12px; color: var(--text-0);
}
.teacher-badge .credentials {
  font-size: 13px; color: var(--text-1); line-height: 1.6; font-weight: 300;
}
.teacher-copy .label { color: var(--gold-hi); }
.teacher-copy h2 {
  font-family: 'Syne', sans-serif; font-weight: 700;
  font-size: clamp(32px, 3.8vw, 48px); letter-spacing: -0.02em;
  margin: 14px 0 18px; line-height: 1.05;
}
.teacher-copy h2 em { font-style: italic;
  background: linear-gradient(90deg, var(--accent-hi), var(--gold-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.teacher-copy p {
  font-size: 15px; line-height: 1.75; color: var(--text-1);
  font-weight: 300; margin: 0 0 14px;
}

/* ── FAQ ─────────────────────────────────────────────────────── */
.plan-faq { padding: 100px 40px; }
.faq-inner { max-width: 800px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 20px 0;
}
.faq-item summary {
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
  font-family: 'Syne', sans-serif; font-weight: 600; font-size: 17px;
  color: var(--text-0); padding: 4px 0;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .plus {
  font-family: 'Azeret Mono', monospace; color: var(--accent-hi);
  transition: transform .2s; font-size: 20px;
}
.faq-item[open] .plus { transform: rotate(45deg); }
.faq-item .a {
  padding: 14px 0 4px; font-size: 15px; line-height: 1.7;
  color: var(--text-1); font-weight: 300;
}

/* ── final CTA ───────────────────────────────────────────────── */
.final-cta {
  padding: 130px 40px; text-align: center; position: relative;
  background:
    radial-gradient(ellipse 700px 400px at 50% 50%, rgba(245,158,11,0.14), transparent 60%),
    radial-gradient(ellipse 700px 400px at 50% 100%, rgba(155,48,255,0.16), transparent 60%);
}
.final-cta h2 {
  font-size: clamp(40px, 5vw, 76px); line-height: 0.95;
  letter-spacing: -0.03em; max-width: 900px; margin: 24px auto 24px;
}
.final-cta h2 em { font-style: italic;
  background: linear-gradient(90deg, var(--accent-hi), var(--gold-hi));
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.final-cta p {
  max-width: 560px; margin: 0 auto 40px;
  color: var(--text-1); font-size: 16px; line-height: 1.7;
}
.final-cta .buttons {
  display: inline-flex; gap: 16px; flex-wrap: wrap; justify-content: center;
}

/* ── responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .plan-hero-inner, .teacher-inner { grid-template-columns: 1fr; gap: 40px; }
  .diff-grid, .detail-grid, .variant-grid, .variant-grid.g4 { grid-template-columns: 1fr; }
  .week-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline { padding-left: 32px; }
  .timeline .step::before { left: -44px; }
}

/* ── Mobile hardening (≤640px) ─────────────────────────────────
   Grid items default to min-width:auto, so an unwrappable child (the
   flagship badge's long mono line) silently forces the hero column wider
   than the viewport — everything then bleeds off the right edge, clipped
   by overflow:hidden. min-width:0 lets columns actually shrink. */
.plan-hero-inner > * { min-width: 0; }
@media (max-width: 640px) {
  .plan-hero { padding: 120px 22px 50px; }
  .plan-hero .badge-flagship { max-width: 100%; flex-wrap: wrap; white-space: normal; line-height: 1.7; letter-spacing: 0.14em; }
  .plan-hero h1 { font-size: clamp(26px, 8.8vw, 44px); }
  .plan-hero p.lead { font-size: 15px; }
  .price-card { padding: 24px 18px; }
}

/* group.html's Infinity anchor card uses inline 2-col grids — stack them on
   phones (!important beats the inline styles) or they force a ~480px
   min-content and zoom the whole layout viewport out. */
@media (max-width: 640px) {
  #infinity-pass .price-card { padding: 32px 20px !important; }
  #infinity-pass .ip-prices { grid-template-columns: 1fr !important; }
  #infinity-pass .ip-prices .price-row { border-right: 0 !important; }
  #infinity-pass .ip-feats { grid-template-columns: 1fr !important; }
}
