.home-page {
  --home-ink: #14213d;
  --home-muted: #53627b;
  --home-blue: #3157d5;
  --home-blue-soft: #edf2ff;
  --home-green: #14845b;
  --home-line: #e4e9f2;
  background: #fff;
  color: var(--home-ink);
}

.home-page .top-announcement-bar {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 8px 24px;
  background: #14213d;
  color: #e7edfc;
  font-size: 12px;
  line-height: 1.5;
}

.home-page .top-announcement-bar a {
  color: #b8f3d7;
  font-weight: 750;
  white-space: nowrap;
}

.home-page .top-announcement-bar a:hover {
  color: #fff;
}

.home-page .sg-header {
  border-bottom-color: var(--home-line);
  box-shadow: 0 3px 16px rgba(20, 33, 61, .04);
}

.home-page .sg-bar {
  max-width: 1320px;
  min-height: 74px;
  padding: 12px 28px;
}

.home-page .sg-links > a,
.home-page .sg-links summary {
  color: #35435d;
}

.home-page .sg-links > a.sg-primary {
  border-radius: 11px;
  background: var(--home-blue);
  box-shadow: 0 5px 12px rgba(49, 87, 213, .16);
}

.home-page .sg-hero {
  padding: clamp(48px, 6.5vw, 86px) 0 clamp(40px, 5vw, 66px) !important;
  background:
    radial-gradient(ellipse at 83% 26%, rgba(198, 220, 255, .68), transparent 37%),
    linear-gradient(128deg, #f8faff 0%, #f1f5ff 55%, #f4fbff 100%) !important;
}

.home-page .sg-hero-grid {
  grid-template-columns: minmax(0, 1.04fr) minmax(380px, .96fr) !important;
  gap: clamp(32px, 5.4vw, 78px) !important;
  align-items: center;
}

.home-page .hero-kicker-pill {
  border: 1px solid #dce5f6;
  background: rgba(255, 255, 255, .78);
  color: #38527f;
  box-shadow: 0 3px 12px rgba(32, 61, 117, .04);
}

.home-page .hero-headline {
  max-width: 680px;
  margin: 20px 0 16px;
  color: var(--home-ink);
  font-size: clamp(2.6rem, 4.3vw, 4.15rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.052em !important;
}

.home-page .hero-headline .gradient {
  background: linear-gradient(100deg, #3157d5 4%, #446de3 56%, #147e8a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
}

.home-page .sg-lead {
  max-width: 570px;
  margin: 0 0 18px;
  color: #506079;
  font-size: clamp(16px, 1.35vw, 18px);
  line-height: 1.7;
}

.home-page .sg-home-solver .solver-input-wrap {
  width: 100%;
  border: 1px solid #d7dfef !important;
  border-radius: 15px !important;
  box-shadow: 0 10px 28px rgba(27, 48, 91, .08) !important;
}

.home-page .sg-home-solver input {
  min-height: 54px;
  flex: 1 1 auto;
  min-width: 120px;
}

.home-page .sg-home-solver .btn-solver-submit {
  padding: 11px 16px;
  border-radius: 11px !important;
  background: var(--home-blue) !important;
  box-shadow: none !important;
  font-size: 0.84rem;
}

.home-page .hero-prompt-strip {
  margin: 14px 0 16px !important;
}

.home-page .hero-prompt-label {
  color: #51617a;
  font-size: 12px !important;
  font-weight: 700;
}

.home-page .hero-chips-wrap {
  gap: 7px;
}

.home-page .hero-chip-btn {
  border: 1px solid #dfe6f2 !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .84) !important;
  color: #43536e !important;
  font-size: 12px !important;
}

.home-page .hero-chip-btn:hover {
  border-color: #aebfe6 !important;
  background: #fff !important;
  color: var(--home-blue) !important;
}

.home-page .hero-channel-actions {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  gap: 10px !important;
  margin-top: 18px;
}

.home-page .hero-channel-actions .channel-btn {
  min-height: 68px;
  border-radius: 14px !important;
  box-shadow: 0 5px 16px rgba(20, 33, 61, .09);
}

.home-page .hero-channel-actions .channel-btn-tg {
  grid-column: 1 / -1;
  min-height: 78px;
  border: 1px solid #1f96cf;
  background: linear-gradient(120deg, #229ED9, #1b7fb4);
  color: #fff;
}

.home-page .hero-channel-actions .channel-btn-tg:hover {
  box-shadow: 0 12px 26px rgba(34, 158, 217, .35);
  transform: translateY(-2px);
}

.home-page .hero-channel-actions .channel-btn-tg .btn-text strong,
.home-page .hero-channel-actions .channel-btn-tg .btn-text small {
  color: #fff !important;
}

.home-page .hero-channel-actions .channel-btn-tg .btn-text small {
  opacity: .92;
}

.home-page .hero-channel-actions .btn-wa {
  background: #16865f !important;
}

.home-page .hero-channel-actions .btn-web {
  border: 1px solid #d9e1f0 !important;
  background: #fff !important;
  color: #273b63 !important;
}

.home-page .hero-channel-actions .btn-web .btn-text strong,
.home-page .hero-channel-actions .btn-web .btn-text small,
.home-page .hero-channel-actions .btn-web .btn-arrow {
  color: inherit !important;
}

.home-page .hero-trust-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 7px 11px;
  margin-top: 19px;
  color: #58677f;
  font-size: 11px;
}

.home-page .hero-trust-ribbon .ribbon-dot {
  color: #aab4c5;
}

.home-page .hero-ai-demo-card {
  overflow: hidden;
  border: 1px solid rgba(213, 222, 238, .95) !important;
  border-radius: 22px !important;
  background: rgba(255, 255, 255, .97) !important;
  box-shadow: 0 28px 70px rgba(26, 47, 89, .15) !important;
  transform: none !important;
  animation: none !important;
}

/* Step badges are inline labels, not circles. premium.css turns .step-num into a
   42px circle, which overflowed the label and collided with the answer text. */
.home-page .hero-ai-demo-card .demo-step-tag {
  display: inline-block;
  width: auto;
  height: auto;
  min-width: 0;
  padding: 1px 6px;
  border: 1px solid #cadcfb;
  border-radius: 6px;
  background: #eef4ff;
  box-shadow: none;
  color: #1d4ed8;
  font-family: var(--font-body, "Plus Jakarta Sans", sans-serif);
  font-size: 0.66rem;
  font-weight: 800;
  line-height: 1.6;
  margin: 0 5px 0 0;
  vertical-align: 1px;
}

/* Floating chips sit outside the demo card so they never cover the header badge. */
.home-page .pg-hero-visual {
  padding-top: 34px;
}

.home-page .pg-float-chip.pg-chip-a {
  top: -30px;
  right: 6px;
}

.home-page .pg-float-chip.pg-chip-b {
  bottom: -26px;
  left: -20px;
}

/* ── Telegram band ───────────────────────────────────────────────── */
.home-page .pg-telegram {
  padding: clamp(30px, 4vw, 58px) 0 clamp(10px, 1.5vw, 20px);
  background: #fff;
}

.home-page .pg-tg-card {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  gap: clamp(24px, 3vw, 52px);
  align-items: center;
  padding: clamp(24px, 3vw, 44px);
  border: 1px solid #d6e8f5;
  border-radius: 26px;
  background:
    radial-gradient(720px 340px at 6% -20%, rgba(34, 158, 217, .16), transparent 68%),
    linear-gradient(165deg, #f4fbff 0%, #ffffff 58%);
  box-shadow: 0 20px 52px rgba(13, 70, 110, .09);
}

.home-page .pg-tg-kicker {
  display: inline-block;
  margin-bottom: 12px;
  padding: 5px 12px;
  border: 1px solid #bfe2f5;
  border-radius: 999px;
  background: #fff;
  color: #1677ab;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-page .pg-tg-head h2 {
  margin: 0 0 12px;
  color: var(--home-ink);
  font-size: clamp(23px, 2.4vw, 34px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.18;
}

.home-page .pg-tg-head > p {
  margin: 0 0 20px;
  max-width: 520px;
  color: var(--home-muted);
  font-size: 14.5px;
  line-height: 1.7;
}

.home-page .pg-tg-head > p strong {
  color: #12628f;
}

.home-page .pg-tg-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 66px;
  padding: 12px 20px 12px 16px;
  border-radius: 16px;
  background: linear-gradient(120deg, #229ED9, #1479ad);
  box-shadow: 0 14px 30px rgba(20, 128, 180, .32);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-page .pg-tg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 38px rgba(20, 128, 180, .38);
}

.home-page .pg-tg-btn-ico {
  font-size: 24px;
  line-height: 1;
}

.home-page .pg-tg-btn-text strong {
  display: block;
  font-size: 16px;
  font-weight: 800;
}

.home-page .pg-tg-btn-text small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .9);
  font-size: 12px;
  font-weight: 500;
}

.home-page .pg-tg-btn-arrow {
  margin-left: 4px;
  font-size: 18px;
}

.home-page .pg-tg-note {
  margin: 12px 0 0;
  color: var(--home-muted);
  font-size: 13px;
}

.home-page .pg-tg-note a {
  color: #12628f;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .pg-tg-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.home-page .pg-tg-item {
  min-width: 0;
  padding: 18px 18px 20px;
  border: 1px solid #e0edf5;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(13, 70, 110, .05);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-page .pg-tg-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(13, 70, 110, .1);
}

.home-page .pg-tg-item-ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: #e8f6fe;
  font-size: 20px;
}

.home-page .pg-tg-item h3 {
  margin: 0 0 7px;
  color: var(--home-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -.015em;
}

.home-page .pg-tg-item p {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.6;
}

.home-page .pg-tg-item p strong {
  color: #12628f;
}

/* ── Quick start: class + subject picker ───────────────────────────── */
.home-page .pg-quickstart {
  padding: clamp(30px, 4vw, 52px) 0 clamp(6px, 1vw, 14px);
  background: #fff;
}

.home-page .pg-qs-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: clamp(22px, 3vw, 48px);
  align-items: center;
  padding: clamp(22px, 2.6vw, 38px);
  border: 1px solid var(--home-line);
  border-radius: 24px;
  background:
    radial-gradient(680px 320px at 8% -30%, rgba(198, 220, 255, .6), transparent 70%),
    linear-gradient(160deg, #f8faff, #ffffff 62%);
  box-shadow: 0 16px 44px rgba(21, 41, 82, .07);
}

.home-page .pg-qs-kicker {
  display: inline-block;
  margin-bottom: 10px;
  padding: 5px 12px;
  border: 1px solid #dce5f6;
  border-radius: 999px;
  background: #fff;
  color: var(--home-blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.home-page .pg-qs-head h2 {
  margin: 0 0 10px;
  color: var(--home-ink);
  font-size: clamp(21px, 2.1vw, 30px);
  font-weight: 800;
  letter-spacing: -.03em;
  line-height: 1.2;
}

.home-page .pg-qs-head p {
  margin: 0;
  max-width: 460px;
  color: var(--home-muted);
  font-size: 14px;
  line-height: 1.65;
}

.home-page .pg-qs-head p strong {
  color: var(--home-ink);
}

.home-page .pg-qs-picker {
  display: grid;
  gap: 16px;
}

.home-page .pg-qs-field {
  min-width: 0;
}

.home-page .pg-qs-label {
  display: block;
  margin-bottom: 8px;
  color: #5b6a83;
  font-size: 12px;
  font-weight: 750;
}

.home-page .pg-qs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.home-page .pg-qs-chip {
  min-height: 40px;
  padding: 8px 15px;
  border: 1px solid #dde4f1;
  border-radius: 999px;
  background: #fff;
  color: #3b4a63;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, color .15s ease, transform .15s ease;
}

.home-page .pg-qs-chip:hover {
  border-color: #aebfe6;
  color: var(--home-blue);
  transform: translateY(-1px);
}

.home-page .pg-qs-chip.is-active {
  border-color: var(--home-blue);
  background: var(--home-blue);
  box-shadow: 0 6px 14px rgba(49, 87, 213, .2);
  color: #fff;
}

.home-page .pg-qs-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  grid-column: 1 / -1;
  padding-top: 6px;
  border-top: 1px solid var(--home-line);
}

.home-page .pg-qs-start {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 10px 22px 10px 16px;
  border-radius: 14px;
  background: linear-gradient(120deg, #3157d5, #1f3f9e);
  box-shadow: 0 12px 26px rgba(31, 63, 158, .28);
  color: #fff;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-page .pg-qs-start:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(31, 63, 158, .32);
}

.home-page .pg-qs-start-ico {
  font-size: 22px;
  line-height: 1;
}

.home-page .pg-qs-start-text {
  display: block;
}

.home-page .pg-qs-start-text strong {
  display: block;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
}

.home-page .pg-qs-start-text small {
  display: block;
  margin-top: 2px;
  color: rgba(255, 255, 255, .82);
  font-size: 12px;
  font-weight: 500;
}

.home-page .pg-qs-start-arrow {
  margin-left: 4px;
  font-size: 18px;
}

.home-page .pg-qs-note {
  margin: 0;
  color: var(--home-muted);
  font-size: 13px;
}

.home-page .pg-qs-note a {
  color: var(--home-blue);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .pg-float-chip {
  border: 1px solid #e1e7f1;
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 9px 22px rgba(24, 43, 79, .1);
}

.home-page .pg-wave {
  margin-top: 42px !important;
}

.home-page .pg-stats {
  padding: 22px 0 34px !important;
  background: #fff !important;
}

.home-page .pg-stats-grid {
  position: relative;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--home-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(21, 41, 82, .055) !important;
}

.home-page .pg-stat {
  min-width: 0;
  padding: 22px 18px;
  text-align: center;
}

.home-page .pg-stat + .pg-stat {
  border-left: 1px solid var(--home-line);
}

.home-page .pg-stat strong {
  display: block;
  color: var(--home-ink);
  font-size: clamp(15px, 1.35vw, 19px);
  line-height: 1.3;
}

.home-page .pg-stat span {
  display: block;
  margin-top: 5px;
  color: var(--home-muted);
  font-size: 12px;
  line-height: 1.5;
}

.home-page .sg-section {
  padding-top: 70px !important;
  padding-bottom: 70px !important;
}

.home-page #channels,
.home-page #faq {
  background: #f7f9fd !important;
}

.home-page .channel-comp-wrap {
  max-width: 1180px;
  margin: auto;
}

.home-page .channel-comp-card {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.home-page .channel-comp-grid {
  align-items: stretch;
  gap: 16px;
  margin-top: 28px;
}

.home-page .channel-pill-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--home-line) !important;
  border-radius: 18px !important;
  background: #fff !important;
  box-shadow: 0 8px 22px rgba(21, 41, 82, .045);
  transition: transform .18s ease, box-shadow .18s ease;
}

.home-page .channel-pill-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 32px rgba(21, 41, 82, .09);
}

.home-page .channel-pill-card.featured-wa {
  border-color: #b7e1ce !important;
  background: linear-gradient(180deg, #f7fffa, #fff 46%) !important;
}

.home-page .tag-green {
  border-color: #c9e8d7;
  background: #eaf8f0;
  color: #176b4d;
}

.home-page .channel-pill-title {
  margin: 12px 0 8px;
  color: var(--home-ink);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.home-page .channel-pill-card p {
  min-height: 70px;
  color: var(--home-muted);
  font-size: 13px;
  line-height: 1.65;
}

.home-page .channel-pill-features {
  display: grid;
  gap: 9px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.home-page .channel-pill-features li {
  position: relative;
  padding-left: 21px;
  color: #45546d;
  font-size: 13px;
  line-height: 1.5;
}

.home-page .channel-pill-features li::before {
  position: absolute;
  left: 0;
  color: var(--home-green);
  content: "✓";
  font-weight: 800;
}

.home-page .channel-pill-card .btn-wa-hero,
.home-page .channel-pill-card .btn-primary,
.home-page .channel-pill-card .btn-tg-hero {
  min-height: 46px;
  display: flex;
  align-items: center;
  border-radius: 11px;
  text-decoration: none;
}

.home-page .sg-section h2 {
  color: var(--home-ink) !important;
  letter-spacing: -.035em;
}

.home-page .sg-section .sg-kicker {
  color: var(--home-blue);
  font-size: 11px;
  letter-spacing: .12em;
}

.home-page .sg-card {
  border-color: var(--home-line);
  border-radius: 17px;
  box-shadow: 0 5px 18px rgba(21, 41, 82, .035);
}

.home-page .sg-card:hover {
  border-color: #c6d2ed;
  box-shadow: 0 14px 30px rgba(21, 41, 82, .08);
}

.home-page .home-start-cards .sg-card {
  min-height: 230px;
  padding: 25px;
}

.home-page .home-start-cards .sg-icon {
  color: var(--home-blue);
}

.home-page #faq details {
  max-width: 900px;
  margin: 0 auto;
  padding: 18px 20px;
  border: 1px solid var(--home-line);
  border-radius: 13px;
  background: #fff;
}

.home-page #faq details + details {
  margin-top: 10px;
}

.home-page #faq details[open] {
  border-color: #ccd8f0;
}

.home-page #start-today .sg-wrap > div {
  border-radius: 22px;
}

.home-page #start-today .pg-final > p:last-child a {
  color: #dce8ff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.home-page .sg-footer {
  margin-top: 0 !important;
}

.home-page :focus-visible {
  outline: 3px solid #3157d5 !important;
  outline-offset: 3px !important;
}

@media (max-width: 900px) {
  .home-page .sg-hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(320px, .9fr) !important;
    gap: 30px !important;
  }

  .home-page .pg-qs-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .pg-tg-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .home-page .hero-channel-actions {
    grid-template-columns: 1fr !important;
  }

  .home-page .pg-stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .pg-stat:nth-child(3) {
    border-left: 0;
  }

  .home-page .pg-stat:nth-child(n + 3) {
    border-top: 1px solid var(--home-line);
  }
}

@media (max-width: 700px) {
  .home-page .top-announcement-bar {
    justify-content: space-between;
    gap: 10px;
    padding: 8px 16px;
    font-size: 11px;
  }

  .home-page .top-announcement-bar span {
    max-width: 68%;
  }

  .home-page .sg-bar {
    min-height: 62px;
    padding: 9px 16px;
  }

  .home-page .sg-hero {
    padding: 36px 0 30px !important;
  }

  .home-page .sg-hero-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 28px !important;
  }

  .home-page .hero-headline {
    margin-top: 16px;
    font-size: clamp(2.3rem, 10vw, 3rem) !important;
  }

  .home-page .sg-lead {
    font-size: 15px;
  }

  .home-page .hero-chips-wrap {
    flex-wrap: nowrap !important;
    overflow-x: auto;
    padding: 2px 0 7px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .hero-chip-btn {
    flex: 0 0 auto;
  }

  .home-page .hero-trust-ribbon {
    gap: 7px;
    font-size: 10px;
  }

  .home-page .pg-float-chip {
    display: none;
  }

  .home-page .pg-hero-visual {
    padding-top: 0;
  }

  .home-page .pg-qs-card {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding: 20px 16px;
    border-radius: 20px;
  }

  .home-page .pg-qs-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 2px 0 7px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }

  .home-page .pg-qs-chip {
    flex: 0 0 auto;
  }

  .home-page .pg-qs-foot {
    flex-direction: column;
    align-items: stretch;
  }

  .home-page .pg-qs-start {
    justify-content: center;
    width: 100%;
    text-align: center;
  }

  .home-page .pg-qs-note {
    text-align: center;
  }

  .home-page .pg-telegram {
    padding: 26px 0 8px;
  }

  .home-page .pg-tg-card {
    padding: 20px 16px;
    border-radius: 20px;
  }

  .home-page .pg-tg-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-page .pg-tg-btn {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .home-page .pg-tg-note {
    text-align: center;
  }

  .home-page .pg-wave {
    height: 36px !important;
    margin-top: 26px !important;
  }

  .home-page .pg-stats {
    padding: 14px 0 30px !important;
  }

  .home-page .pg-stats-grid {
    border-radius: 15px;
  }

  .home-page .pg-stat {
    padding: 16px 11px;
  }

  .home-page .pg-stat strong {
    font-size: 14px;
  }

  .home-page .pg-stat span {
    font-size: 10px;
  }

  .home-page .sg-section {
    padding-top: 48px !important;
    padding-bottom: 48px !important;
  }

  .home-page .channel-comp-grid,
  .home-page .home-start-cards {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .home-page .channel-pill-card p {
    min-height: 0;
  }

  .home-page .home-start-cards .sg-card {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page *,
  .home-page *::before,
  .home-page *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}


/* ═══════════════════════════════════════════════════════════════
   2026-10-22 NEW FEATURES: BOARD COUNTDOWN, FORMULA VAULT, GRAMMAR QUIZ
   ═══════════════════════════════════════════════════════════════ */

/* ── 1. Board Exam Countdown & Roadmap ───────────────────────── */
.exam-countdown-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: clamp(24px, 4vw, 36px);
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.ecc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid #f1f5f9;
}

.ecc-timer {
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  padding: 16px 24px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.2);
}

.timer-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 44px;
}

.timer-num {
  font-size: 1.8rem;
  font-weight: 900;
  color: #38bdf8;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-family: 'Outfit', sans-serif;
}

.timer-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

.timer-sep {
  font-size: 1.6rem;
  font-weight: 900;
  color: #475569;
  line-height: 1;
  margin-bottom: 14px;
}

.ecc-roadmap {
  margin-top: 26px;
}

.roadmap-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.roadmap-head strong {
  font-size: 1.15rem;
  color: #0f172a;
}

.roadmap-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.roadmap-pill {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.roadmap-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.roadmap-pill.active {
  background: #0052ff;
  border-color: #0052ff;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 82, 255, 0.25);
}

.roadmap-panel {
  display: none;
}

.roadmap-panel.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.rm-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.rm-item:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.08);
}

.rm-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #e0e7ff;
  color: #3730a3;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

.rm-item h4 {
  font-size: 1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 6px;
}

.rm-item p {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0 0 12px;
  flex: 1;
}

.rm-link {
  font-size: 0.85rem;
  font-weight: 750;
  color: #0052ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.rm-link:hover {
  text-decoration: underline;
}

.ecc-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #f1f5f9;
}


/* ── 2. Formula Quick-Vault Widget ───────────────────────────── */
.formula-vault-widget {
  margin-top: 36px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 32px);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.fvw-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.fvw-search-wrap {
  position: relative;
  min-width: 280px;
  flex: 1;
  max-width: 420px;
}

.fvw-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.95rem;
  opacity: 0.6;
}

.fvw-search-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  font-size: 0.88rem;
  background: #f8fafc;
  outline: none;
  transition: all 0.2s ease;
}

.fvw-search-wrap input:focus {
  border-color: #0052ff;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.fvw-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.fvw-chip {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 13px;
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fvw-chip.active {
  background: #0f172a;
  border-color: #0f172a;
  color: #ffffff;
}

.fvw-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.fvw-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.fvw-card:hover {
  background: #ffffff;
  border-color: #0052ff;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 82, 255, 0.08);
}

.fvw-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.fvw-sub {
  font-size: 0.75rem;
  font-weight: 750;
  color: #64748b;
  text-transform: uppercase;
}

.fvw-badge {
  background: #dcfce7;
  color: #166534;
  font-size: 0.68rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 4px;
}

.fvw-card h4 {
  font-size: 0.98rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 8px;
}

.fvw-formula {
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 750;
  font-size: 0.95rem;
  color: #0052ff;
  margin-bottom: 8px;
}

.fvw-desc {
  font-size: 0.82rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 12px;
  flex: 1;
}

.fvw-link {
  font-size: 0.82rem;
  font-weight: 750;
  color: #0052ff;
  text-decoration: none;
}

.fvw-link:hover {
  text-decoration: underline;
}


/* ── 3. Grammar Challenge Widget ─────────────────────────────── */
.grammar-challenge-widget {
  margin-top: 32px;
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1.5px solid #bbf7d0;
  border-radius: 18px;
  padding: clamp(20px, 3.5vw, 30px);
  box-shadow: 0 8px 24px rgba(22, 101, 52, 0.05);
}

.gc-quiz-box {
  background: #ffffff;
  border: 1px solid #dcfce7;
  border-radius: 14px;
  padding: 20px;
  margin: 18px 0 14px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
}

.gc-question-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 14px;
}

.gc-qnum {
  font-size: 0.82rem;
  font-weight: 800;
  color: #15803d;
  background: #dcfce7;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.gc-qtext {
  font-size: 1.05rem;
  font-weight: 750;
  color: #0f172a;
  margin: 0;
}

.gc-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gc-opt-btn {
  text-align: left;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gc-opt-btn:hover:not(:disabled) {
  background: #f0fdf4;
  border-color: #22c55e;
  transform: translateX(4px);
}

.gc-opt-btn.correct {
  background: #dcfce7 !important;
  border-color: #16a34a !important;
  color: #14532d !important;
  font-weight: 750;
}

.gc-opt-btn.incorrect {
  background: #fee2e2 !important;
  border-color: #dc2626 !important;
  color: #7f1d1d !important;
}

.gc-feedback {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 0.88rem;
  line-height: 1.5;
  animation: fadeIn 0.3s ease;
}

.gc-fb-correct {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #86efac;
}

.gc-fb-incorrect {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.gc-next-btn {
  background: #15803d;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  margin-left: 10px;
}

.gc-next-btn:hover {
  background: #166534;
}

.gc-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: #475569;
}

