/* ==========================================================================
   CB IELTS — landing page redesign
   Applies the Claude design to index.html. Scoped to body.cb-landing so the
   other pages (which share custom.css) are untouched.

   The package cards are still rendered by home.js from the bundles API; the
   .pack-card-* rules below only restyle that existing markup into the
   design's purple/magenta card system.
   ========================================================================== */

body{margin:0;background:#FFFFFF;-webkit-font-smoothing:antialiased}
p{text-wrap:pretty}
a{color:#5B34D6;text-decoration:none}
a:hover{color:#2E1F92}
@keyframes beltLeft{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@keyframes beltRight{from{transform:translateX(-50%)}to{transform:translateX(0)}}

.cbh0:hover{opacity:.9}
.cbh1:hover{opacity:.92}
.cbh2:hover{background:#F7F6FD}
.cbh3:hover{animation-play-state:paused}
.cbh4:hover{animation-play-state:paused}
.cbh5:hover{opacity:.92}
.cbh6:hover{background:#F3F0FE}
.cbh7:hover{opacity:.92}
.cbh8:hover{opacity:.92}
.cbh9:hover{opacity:.92}
.cbh10:hover{background:rgba(255,255,255,.14)}

body.cb-landing { background: #FFFFFF; }
body.cb-landing img { max-width: 100%; }

/* --- footer -------------------------------------------------------------- */
.cb-foot-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 32px 26px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.cb-foot-head {
  font: 700 15px/1 "Hind Siliguri";
  color: #fff;
  margin: 0 0 16px;
  letter-spacing: 0.02em;
}
.cb-foot-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.cb-foot-list li { font: 400 15px/1.6 "Hind Siliguri"; color: rgba(255, 255, 255, 0.6); }
.cb-foot-list a { color: rgba(255, 255, 255, 0.7); transition: color 0.2s; }
.cb-foot-list a:hover { color: #fff; }
.cb-foot-contact li { line-height: 1.7; }
.cb-foot-cta {
  display: inline-block;
  font: 700 15px/1 "Hind Siliguri";
  color: #fff;
  background: linear-gradient(90deg, #5B34D6, #C13AC6);
  padding: 13px 20px;
  border-radius: 99px;
}
.cb-foot-cta:hover { opacity: 0.9; color: #fff; }
.cb-foot-social { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cb-foot-social a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font: 500 13.5px/1 "Hind Siliguri";
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 99px;
  padding: 9px 14px;
  transition: background 0.2s, color 0.2s;
}
.cb-foot-social a:hover { background: rgba(255, 255, 255, 0.16); color: #fff; }
.cb-foot-jump { display: flex; flex-wrap: wrap; gap: 20px; padding: 22px 0 0; }
.cb-foot-jump a { font: 500 15px/1 "Hind Siliguri"; color: rgba(255, 255, 255, 0.55); }
.cb-foot-jump a:hover { color: #fff; }
.cb-foot-bottom { padding-top: 20px; }
.cb-foot-bottom p { font: 400 14.5px/1 "Hind Siliguri"; color: rgba(255, 255, 255, 0.42); margin: 0; }

@media (max-width: 1024px) {
  .cb-foot-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media (max-width: 640px) {
  .cb-foot-grid { grid-template-columns: 1fr 1fr; }
}

/* --- header -------------------------------------------------------------- */
@media (max-width: 900px) { body.cb-landing header nav { display: none !important; } }

/* --- packages: restyle the live home.js cards to the design --------------- */
body.cb-landing .cb-packs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 22px;
  align-items: center;
  white-space: normal;
  overflow: visible;
}
body.cb-landing .cb-packs > * { display: block; width: auto; margin-right: 0; }
body.cb-landing .cb-packs > .subscription-pack-card { width: auto; min-width: 0; }

body.cb-landing .subscription-pack-card {
  position: relative;
  border-radius: 24px;
  box-shadow: none;
  font-family: "Hind Siliguri", system-ui, sans-serif;
}
body.cb-landing .pack-card-default,
body.cb-landing .pack-card-savings {
  background: #fff;
  border: 1px solid #ECEAF8;
}
body.cb-landing .pack-card-featured {
  background: linear-gradient(135deg, #3B1F9E 0%, #5B34D6 48%, #C13AC6 100%);
  border: 0;
  box-shadow: 0 22px 50px rgba(91, 52, 214, 0.3);
}
body.cb-landing .pack-card-body { padding: 30px 32px; }
body.cb-landing .pack-card-featured .pack-card-body { padding: 40px 32px; }

body.cb-landing .pack-card-title {
  font: 700 23px/1.4 "Anek Bangla", "Hind Siliguri", sans-serif;
  color: #16123F;
  margin: 0 0 16px;
}
body.cb-landing .pack-card-featured .pack-card-title { color: #fff; }

body.cb-landing .pack-card-price-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 14px;
}
body.cb-landing .pack-card-price {
  font: 800 46px/1.1 "Anek Bangla", "Hind Siliguri", sans-serif;
  color: #16123F;
  margin: 0;
  letter-spacing: normal;
  overflow: hidden;
}
body.cb-landing .pack-card-featured .pack-card-price {
  font-size: 52px;
  color: #fff;
  width: 100%;
}
body.cb-landing .pack-card-duration {
  flex: 0 0 auto;
  white-space: nowrap;
  position: relative;
  z-index: 1;
  font: 600 16px/1.45 "Hind Siliguri";
  color: #7A759B;
  background: none;
  padding: 0;
  border-radius: 0;
}
body.cb-landing .pack-card-featured .pack-card-duration {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 99px;
  padding: 6px 12px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
body.cb-landing .pack-card-meta {
  font: 600 12px/1 "Hind Siliguri";
  color: #A9A4C4;
  letter-spacing: 0.08em;
  margin: 8px 0 0;
}
body.cb-landing .pack-card-featured .pack-card-meta { color: rgba(255, 255, 255, 0.7); }
body.cb-landing .pack-card-perday {
  display: inline-flex;
  /* .pack-card-body is a flex column, so an inline-level child stretches to
     full width unless it opts out. */
  align-self: flex-start;
  width: auto;
  min-height: 0;
  font: 600 15px/1 "Hind Siliguri";
  color: #5B34D6;
  background: #F3F0FE;
  border-radius: 99px;
  padding: 9px 15px;
  margin-top: 16px;
}
body.cb-landing .pack-card-savings .pack-card-perday { color: #0F7A3D; background: #E9F8EF; }
body.cb-landing .pack-card-featured .pack-card-perday { color: #fff; background: rgba(255, 255, 255, 0.2); }
body.cb-landing .pack-card-divider { height: 1px; background: #ECEAF8; margin: 24px 0; }
body.cb-landing .pack-card-featured .pack-card-divider { background: rgba(255, 255, 255, 0.25); }

body.cb-landing .subscription-pack-usps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
body.cb-landing .subscription-pack-usp {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font: 400 16px/1.75 "Hind Siliguri";
  color: #16123F;
}
body.cb-landing .pack-card-featured .subscription-pack-usp { color: #fff; }
body.cb-landing .pack-check {
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #F3F0FE;
  color: #5B34D6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 3px;
  font-size: 12px;
}
body.cb-landing .pack-card-savings .pack-check { background: #E9F8EF; color: #0F7A3D; }
body.cb-landing .pack-card-featured .pack-check { background: rgba(255, 255, 255, 0.22); color: #fff; }

body.cb-landing .pack-card-badge {
  position: absolute;
  top: 30px;
  right: 32px;
  font: 700 13px/1 "Hind Siliguri";
  border-radius: 99px;
  padding: 8px 13px;
  white-space: nowrap;
  z-index: 3;
}
body.cb-landing .pack-card-badge-popular { color: #3B1F9E; background: #fff; top: 40px; }
body.cb-landing .pack-card-badge-savings { color: #0F7A3D; background: #E9F8EF; font-weight: 600; }

body.cb-landing .pack-card-cta {
  display: block;
  align-self: stretch;
  width: 100%;
  text-align: center;
  margin-top: 26px;
  font: 700 17px/1 "Hind Siliguri";
  border-radius: 99px;
  padding: 17px 20px;
  min-height: 0;
}
body.cb-landing .pack-card-default .pack-card-cta {
  color: #5B34D6;
  background: #fff;
  border: 1.5px solid #DDD8F3;
}
body.cb-landing .pack-card-default .pack-card-cta:hover { background: #F3F0FE; }
body.cb-landing .pack-card-savings .pack-card-cta {
  color: #fff;
  background: linear-gradient(90deg, #5B34D6, #C13AC6);
  border: 0;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(91, 52, 214, 0.24);
}
body.cb-landing .pack-card-featured .pack-card-cta {
  color: #3B1F9E;
  background: #fff;
  border: 0;
  padding: 18px 20px;
  box-shadow: 0 8px 22px rgba(22, 18, 63, 0.2);
}
body.cb-landing .pack-card-savings .pack-card-cta:hover,
body.cb-landing .pack-card-featured .pack-card-cta:hover { opacity: 0.92; }

body.cb-landing .subscription-pack-list-message {
  font: 400 16px/1.7 "Hind Siliguri";
  color: #5B5680;
  grid-column: 1 / -1;
  width: 100%;
}

/* Mobile: hand the row back to the home.js swipe carousel */
@media (max-width: 767px) {
  /* On a ~320px card the absolutely-positioned badge collides with the title,
     so let it flow above the title instead. */
  body.cb-landing .pack-card-badge {
    position: static;
    display: inline-block;
    margin: 26px 32px 0;
  }
  body.cb-landing .pack-card-featured .pack-card-badge { margin-top: 32px; }
  body.cb-landing .subscription-pack-card > .pack-card-badge + .pack-card-body { padding-top: 14px; }
  body.cb-landing .pack-card-title { padding-right: 0; }

  body.cb-landing .cb-packs {
    display: block;
    white-space: nowrap;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
  }
  body.cb-landing .cb-packs > .subscription-pack-card {
    display: inline-block;
    width: 82%;
    min-width: 280px;
    margin-right: 1rem;
    white-space: normal;
    vertical-align: top;
    scroll-snap-align: start;
  }
  body.cb-landing .cb-packs > .subscription-pack-card:last-child { margin-right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  body.cb-landing * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
