/* ============================================================
   home-deferred.css — Homepage below-the-fold only (load async).
   ============================================================ */

/* Homepage below-the-fold (load async via home-deferred.css) */
/* ---- Premium homepage layout (scoped, no global CSS file bump) ---- */
    /* Course cards */
    .home-course-grid.course-grid { margin-top: 24px; }
    .home-course-card h3 {
      font-size: 1.28rem; margin: 0 0 10px; letter-spacing: -0.03em;
    }
    .home-course-desc {
      color: #1f2545; margin: 0 0 14px; line-height: 1.55; font-size: 0.96rem;
    }
    .home-course-chips {
      display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px;
    }
    .home-course-chips span {
      font-size: 0.78rem; font-weight: 750;
      padding: 5px 10px; border-radius: 999px;
      background: #f0f9ff; border: 1px solid #bae6fd; color: #0c4a6e;
    }
    .home-course-card--hug .home-course-chips span {
      background: #ecfdf5; border-color: #a7f3d0; color: #065f46;
    }
    .home-course-card--csp .home-course-chips span {
      background: #fffbeb; border-color: #fde68a; color: #92400e;
    }
    .home-course-cue { margin: 0 0 18px; font-size: 0.88rem; }
    .home-course-cta { width: 100%; justify-content: center; }
    @media (min-width: 700px) and (max-width: 899px) {
      .home-course-grid.course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
    }
    /* Need a 5 */
    .home-need-five {
      background: linear-gradient(135deg, #f8fafc 0%, #fff 40%, #eff6ff 100%);
      border: 1px solid #e2e8f0;
      box-shadow: 0 20px 50px rgba(10,15,90,0.08);
    }
    .home-steps {
      list-style: none; margin: 22px 0 24px; padding: 0;
      display: grid; gap: 16px;
    }
    @media (min-width: 768px) {
      .home-steps { grid-template-columns: repeat(3, 1fr); gap: 18px; }
    }
    .home-step {
      display: flex; gap: 14px; align-items: flex-start;
      background: #fff; border: 1px solid #e2e8f0; border-radius: 18px;
      padding: 16px 16px 18px;
      box-shadow: 0 8px 24px rgba(10,15,90,0.05);
      transition: border-color .15s ease, box-shadow .15s ease;
    }
    .home-step:hover { border-color: #93c5fd; box-shadow: 0 12px 28px rgba(10,15,90,0.08); }
    .home-step-num {
      flex-shrink: 0; width: 40px; height: 40px; border-radius: 14px;
      display: grid; place-items: center;
      background: linear-gradient(135deg, #0a0f5a, #2a35a3);
      color: #fff; font-weight: 900; font-size: 1.05rem;
      box-shadow: 0 8px 18px rgba(10,15,90,0.2);
    }
    .home-step h3 { margin: 0 0 6px; font-size: 1.05rem; }
    .home-step p { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; }
    .home-need-five-cta { margin-top: 8px; }
    /* Features */
    .home-features-grid {
      display: grid; gap: 14px;
      grid-template-columns: 1fr;
      margin-top: 22px;
    }
    @media (min-width: 640px) { .home-features-grid { grid-template-columns: repeat(2, 1fr); } }
    @media (min-width: 980px) { .home-features-grid { grid-template-columns: repeat(3, 1fr); } }
    .home-feature {
      display: flex; gap: 14px; align-items: flex-start;
      padding: 18px; border-radius: 18px;
      border: 1px solid #e8eef7;
      background: linear-gradient(180deg, #ffffff, #fbfcff);
      box-shadow: 0 6px 18px rgba(10,15,90,0.04);
      transition: transform .15s ease, box-shadow .15s ease;
    }
    .home-feature:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(10,15,90,0.07); }
    .home-feature-icon {
      width: 42px; height: 42px; border-radius: 14px; flex-shrink: 0;
      display: grid; place-items: center;
      background: linear-gradient(135deg, #eff6ff, #dbeafe);
      border: 1px solid #bfdbfe; font-size: 1.15rem;
    }
    #need-a-5 .home-feature-icon {
      font-weight: 950;
      font-size: 1.08rem;
      color: #0a0f5a;
      font-variant-numeric: tabular-nums;
    }
    .home-feature h3 { margin: 0 0 6px; font-size: 1rem; }
    .home-feature p { margin: 0; font-size: 0.9rem; color: var(--muted); line-height: 1.45; }
    /* Checklist mock */
    .home-checklist-split {
      display: grid; gap: 22px; align-items: start;
      margin-top: 20px;
    }
    @media (min-width: 900px) {
      .home-checklist-split { grid-template-columns: 1fr 1.05fr; gap: 28px; }
    }
    .home-mock-checklist {
      border: 1px solid #e2e8f0; border-radius: 20px;
      background: #fff;
      box-shadow: 0 16px 40px rgba(10,15,90,0.07);
      overflow: hidden;
    }
    .home-mock-checklist-head {
      padding: 14px 18px;
      background: linear-gradient(135deg, #0a0f5a, #1c2580);
      color: #fff;
      font-weight: 800; font-size: 0.92rem;
    }
    .home-mock-rows { padding: 8px 0; }
    .home-mock-row {
      display: flex; justify-content: space-between; align-items: flex-start;
      gap: 12px; padding: 12px 18px;
      border-bottom: 1px solid #f1f5f9; font-size: 0.9rem;
    }
    .home-mock-row:last-child { border-bottom: 0; }
    .home-mock-course { color: #1f2545; font-weight: 650; line-height: 1.35; }
    .home-status {
      flex-shrink: 0; font-size: 0.72rem; font-weight: 850;
      letter-spacing: 0.04em; text-transform: uppercase;
      padding: 5px 10px; border-radius: 999px; border: 1px solid transparent;
    }
    .home-status--done { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
    .home-status--progress { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
    .home-status--review { background: #fffbeb; color: #b45309; border-color: #fde68a; }
    .home-status--next { background: #f8fafc; color: #475569; border-color: #e2e8f0; }
    /* Popular topics */
    .home-popular-grid {
      display: grid; gap: 18px;
      margin-top: 22px;
    }
    @media (min-width: 760px) { .home-popular-grid { grid-template-columns: repeat(2, 1fr); } }
    .home-popular-col {
      border: 1px solid #e8eef7; border-radius: 20px;
      padding: 20px;
      background: linear-gradient(180deg, #ffffff, #f8fafc);
      box-shadow: 0 8px 22px rgba(10,15,90,0.04);
    }
    .home-popular-col h3 {
      margin: 0 0 14px; font-size: 1.05rem;
      display: flex; align-items: center; gap: 8px;
    }
    .home-popular-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
    .home-popular-col a {
      display: block; padding: 11px 14px; border-radius: 12px;
      background: #fff; border: 1px solid #e2e8f0;
      color: #0a0f5a; font-weight: 700; font-size: 0.92rem;
      text-decoration: none;
      transition: background .15s ease, border-color .15s ease, transform .15s ease;
    }
    .home-popular-col a:hover,
    .home-popular-col a:focus-visible {
      background: #eff6ff; border-color: #93c5fd;
      outline: none;
    }
    .home-popular-foot {
      margin-top: 18px; padding-top: 16px; border-top: 1px solid #e8eef7;
      font-size: 0.9rem;
    }
    .home-popular-foot a { font-weight: 750; color: #19238B; }
    /* FAQ — rely on .faq styles; tighten rhythm only */
    .home-faq .faq-column { gap: 12px; }
    @media (min-width: 900px) {
      .home-faq .faq-grid { gap: 14px 22px; }
    }
    /* Final CTA */
    .home-final-cta.panel {
      text-align: center;
      background:
        radial-gradient(circle at 20% 30%, rgba(245,158,11,0.15), transparent 45%),
        radial-gradient(circle at 80% 70%, rgba(59,130,246,0.12), transparent 40%),
        linear-gradient(135deg, #070b43, #0a0f5a 45%, #15207a) !important;
      color: #fff;
      border: 1px solid rgba(255,255,255,0.12) !important;
      box-shadow: 0 24px 60px rgba(10,15,90,0.25);
      backdrop-filter: none;
    }
    .home-final-cta h2 { color: #fff !important; }
    .home-final-cta > p { color: rgba(255,255,255,0.88); max-width: 560px; margin: 0 auto 22px; }
    .home-final-cta-btns {
      display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
    }
    .home-final-cta-btns .btn-primary { min-width: 200px; }
    .why-ap-grid{display:grid;grid-template-columns:1fr;gap:14px;max-width:820px;}
    @media (min-width:900px){.why-ap-grid{grid-template-columns:1fr 1fr;max-width:none;}}
    .why-ap-grid ul{margin:0;padding-left:1.2rem;line-height:1.75;color:#1f2545;}
    .home-checklist-metrics {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 10px;
      margin: 18px 0 6px;
      max-width: 820px;
    }
    @media (min-width: 640px) {
      .home-checklist-metrics {
        grid-template-columns: repeat(4, minmax(0, 1fr));
      }
    }
    .home-checklist-metric {
      border: 1px solid #e8eef7;
      border-radius: 14px;
      padding: 11px 12px;
      background: #fbfcff;
      box-shadow: 0 4px 12px rgba(10, 15, 90, 0.04);
    }
    .home-checklist-metric strong {
      display: block;
      font-size: 0.84rem;
      color: #0a0f5a;
      margin-bottom: 4px;
    }
    .home-checklist-metric span {
      font-size: 0.78rem;
      color: #64748b;
      line-height: 1.35;
    }
    .table-scroll {
      overflow-x: auto;
      -webkit-overflow-scrolling: touch;
      margin-top: 16px;
    }
    .table-scroll table { min-width: 720px; }
    .home-final-cta .home-final-cta-account {
      border-color: rgba(255, 255, 255, 0.4);
      background: rgba(255, 255, 255, 0.14);
      color: #fff;
      min-width: 200px;
    }
    .home-final-cta .home-final-cta-account:hover {
      background: rgba(255, 255, 255, 0.22);
      border-color: rgba(255, 255, 255, 0.55);
      color: #fff;
    }
    /* --- Study habits section layout --- */
    .home-prep-habits .home-prep-habits-head {
      margin-bottom: 4px;
    }
    .home-prep-habits .home-prep-habits-body {
      display: grid;
      gap: 22px;
      margin-top: 8px;
    }
    .home-prep-habits .home-prep-lead {
      margin: 0;
      font-size: 1.02rem;
      line-height: 1.65;
      color: #1f2545;
      max-width: 52rem;
    }
    .home-prep-habits .home-prep-lead a {
      font-weight: 750;
      color: #19238b;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .home-prep-habits .home-prep-lead a:hover,
    .home-prep-habits .home-prep-lead a:focus-visible {
      color: #0a0f5a;
    }
    .home-prep-callout {
      border-radius: 16px;
      padding: 16px 18px 16px 20px;
      border: 1px solid #e2e8f0;
      border-left-width: 4px;
      border-left-color: #f59e0b;
      background: linear-gradient(135deg, #f8fafc 0%, #fffbeb 55%, #ffffff 100%);
      box-shadow: 0 6px 18px rgba(10, 15, 90, 0.05);
    }
    .home-prep-callout-label {
      display: block;
      font-size: 0.72rem;
      font-weight: 950;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      color: #b45309;
      margin-bottom: 8px;
    }
    .home-prep-callout p {
      margin: 0;
      font-size: 0.96rem;
      line-height: 1.58;
      color: #1f2545;
    }
    .home-prep-callout strong {
      color: #0a0f5a;
    }
    .home-prep-routine-kicker {
      margin: 0 0 12px;
      font-size: 0.95rem;
      font-weight: 800;
      color: #0a0f5a;
      letter-spacing: -0.02em;
    }
    .home-prep-link-grid {
      list-style: none;
      margin: 0;
      padding: 0;
      display: grid;
      gap: 10px;
      grid-template-columns: 1fr;
    }
    @media (min-width: 560px) {
      .home-prep-link-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }
    }
    .home-prep-quick-link {
      display: flex;
      align-items: flex-start;
      gap: 12px;
      min-height: 48px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid #e2e8f0;
      background: #ffffff;
      box-shadow: 0 4px 14px rgba(10, 15, 90, 0.05);
      text-decoration: none;
      color: #0a0f5a;
      transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }
    .home-prep-quick-link:hover {
      border-color: #93c5fd;
      box-shadow: 0 8px 22px rgba(10, 15, 90, 0.09);
      transform: translateY(-1px);
    }
    .home-prep-quick-link:focus-visible {
      outline: 3px solid rgba(245, 158, 11, 0.55);
      outline-offset: 2px;
    }
    .home-prep-quick-ico {
      flex-shrink: 0;
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border-radius: 12px;
      background: linear-gradient(135deg, #eff6ff, #dbeafe);
      border: 1px solid #bfdbfe;
      font-size: 1.05rem;
      line-height: 1;
    }
    .home-prep-quick-text {
      display: flex;
      flex-direction: column;
      gap: 2px;
      min-width: 0;
    }
    .home-prep-quick-title {
      display: block;
      font-size: 0.88rem;
      font-weight: 850;
      letter-spacing: -0.02em;
      line-height: 1.25;
      text-transform: none;
    }
    .home-prep-quick-sub {
      font-size: 0.8rem;
      font-weight: 650;
      color: #4a5276;
      line-height: 1.3;
    }
    .home-prep-routine-foot {
      margin: 18px 0 0;
      padding-top: 16px;
      border-top: 1px solid #e8eef7;
      font-size: 0.92rem;
      line-height: 1.58;
      color: #4a5276;
      max-width: 52rem;
    }
    .home-prep-routine-foot a {
      font-weight: 750;
      color: #19238b;
      text-decoration: underline;
      text-underline-offset: 3px;
    }
    .home-prep-routine-foot a:hover,
    .home-prep-routine-foot a:focus-visible {
      color: #0a0f5a;
    }
    /* Resources + trust bands: soft grey canvas, cards stay white */
    .panel.home-band-soft {
      background: #f5f7fb;
      border-color: #e2e8f0;
      box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
    }
    #resources.home-band-soft .resources-grid {
      align-items: stretch;
    }
    #resources.home-band-soft .resource-card {
      display: flex;
      flex-direction: column;
      min-height: 0;
    }
    #resources.home-band-soft .resource-card-body {
      flex: 1 1 auto;
      margin-bottom: 0;
      color: var(--muted);
    }
    #resources.home-band-soft .resource-card-more {
      margin: 0;
      padding-top: 14px;
      margin-top: auto;
      border-top: 1px solid #eef2f7;
    }
    #resources.home-band-soft .resource-card-more a {
      display: inline-flex;
      align-items: center;
      gap: 4px;
      font-weight: 850;
    }
    section.home-band-soft .trust-grid {
      align-items: stretch;
    }
    section.home-band-soft .trust-card {
      display: flex;
      flex-direction: column;
      height: 100%;
      min-height: 100%;
    }
    section.home-band-soft .trust-card h3 {
      flex-shrink: 0;
    }
    section.home-band-soft .trust-card .muted {
      flex: 1 1 auto;
      margin-bottom: 0;
    }
