/* ===========================================================
   StreakOwl — shared rules for the search landing pages
   (class-4 … class-10, ask-owl-ai, byjus-alternative).

   Loaded after styles.css by those pages only. children.html and
   parents.html carry the same .page-hero / .ph-* / .promise /
   .cta-band rules inline; they are copied here once so nine new
   pages do not each carry a copy. Change a rule here, not in a
   page. Versioned by query string (landing.css?v=N) because the
   deploy script caches CSS for seven days.
   =========================================================== */

/* ---------- Page hero: copy left, one real screenshot right ---------- */
.page-hero { background: linear-gradient(165deg, var(--cream), var(--cream-3)); }
.ph-inner { display: flex; gap: 48px; align-items: center; padding: 72px 0; }
.ph-copy { flex: 1; min-width: 0; }
.ph-copy h1 { font-size: clamp(32px, 4.2vw, 46px); font-weight: 900; letter-spacing: -1.5px; }
.ph-copy .lead { font-size: 18px; color: var(--gray-light); margin: 18px 0 28px; max-width: 520px; }
.ph-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.ph-art { flex: 1; display: flex; justify-content: center; }
.ph-shot {
  width: 100%; max-width: 320px; height: auto;
  border-radius: 26px;
  border: 7px solid #241C33;
  box-shadow: 0 0 0 1px rgba(255,255,255,.12), var(--shadow-lg), 0 0 70px rgba(255,107,53,.22);
}
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 18px; }
.crumbs a { color: var(--gray-light); }
.crumbs a:hover { color: var(--orange-lift); }
.crumbs span { margin: 0 6px; }

/* ---------- Subject cards (generated from the syllabus JSON) ---------- */
.subj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.subj-card {
  background: var(--glass); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px; box-shadow: var(--shadow-sm); min-width: 0;
}
.subj-card .em { font-size: 26px; line-height: 1; margin-bottom: 10px; }
.subj-card h3 { font-size: 19px; font-weight: 800; color: var(--ink); }
.subj-card .book { font-size: 13px; color: var(--orange-lift); font-weight: 700; margin: 4px 0 12px; }
.subj-card p { font-size: 14px; color: var(--gray-light); line-height: 1.6; overflow-wrap: anywhere; }
.subj-card p b { color: var(--gray); font-weight: 700; }

/* ---------- Feature rows ---------- */
.feature-card h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; }
.feature-card p { color: var(--gray-light); font-size: 15px; }

/* ---------- Highlight box (board year, first year, safety …) ---------- */
.promise {
  background: linear-gradient(135deg, rgba(107,203,119,.16), rgba(76,139,245,.14));
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(143,224,154,.26); border-radius: 22px;
  padding: 40px; max-width: 860px; margin: 0 auto;
}
.promise.orange { background: linear-gradient(135deg, rgba(255,107,53,.18), rgba(255,217,61,.12)); border-color: rgba(255,165,117,.28); }
.promise h2 { font-size: 26px; font-weight: 900; margin-bottom: 12px; }
.promise p { color: var(--gray); font-size: 16px; }
.promise ul { margin: 16px 0 0 0; padding: 0; list-style: none; }
.promise li { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; color: var(--gray); font-size: 15px; }
.promise li::before { content: "✓"; color: var(--green-lift); font-weight: 800; flex: none; }

/* ---------- Checklist: what a good app needs, and how this one does ---------- */
.ckl { max-width: 860px; margin: 0 auto; display: grid; gap: 14px; }
.ckl-row {
  display: grid; grid-template-columns: 1.1fr 1.4fr; gap: 18px; align-items: start;
  background: var(--glass); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px;
}
.ckl-row h4 { font-size: 15px; font-weight: 800; color: var(--ink); }
.ckl-row p { font-size: 14px; color: var(--gray-light); margin: 0; }
.ckl-row .yes { color: var(--green-lift); font-weight: 800; }
.ckl-row .no { color: var(--orange-lift); font-weight: 800; }

/* ---------- Comparison table (byjus-alternative) ---------- */
.cmp-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 560px; }
.cmp th, .cmp td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14.5px; }
.cmp th { font-family: 'Nunito', sans-serif; font-weight: 800; color: var(--ink); font-size: 14px; background: var(--glass-2); }
.cmp th:first-child, .cmp td:first-child { font-weight: 700; color: var(--gray); width: 28%; }
.cmp td.us { color: var(--ink); }
.cmp td .y { color: var(--green-lift); font-weight: 800; }
.cmp tr:last-child td { border-bottom: 0; }
.cmp-note { font-size: 13px; color: var(--faint); margin-top: 14px; max-width: 760px; }
/* On a phone the BYJU'S column sits off-screen inside the scrolling wrapper; say so. */
.cmp-hint { display: none; font-size: 13px; color: var(--orange-lift); font-weight: 700; margin-bottom: 10px; }
@media (max-width: 640px) { .cmp-hint { display: block; } }

/* ---------- Row of links to the other classes ---------- */
.class-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.class-links a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--border-2);
  color: var(--gray); font-weight: 700; font-size: 14px;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.class-links a:hover { background: var(--glass-2); color: var(--orange-lift); border-color: var(--orange-lift); }
.class-links a.here { background: var(--orange-cta); border-color: var(--orange-cta); color: #fff; }

/* ---------- FAQ heading above the shared accordion ---------- */
.faq-title { text-align: center; margin-bottom: 36px; }
.faq-title h2 { font-size: var(--fs-h2); font-weight: 900; }

/* ---------- Closing band ---------- */
.cta-band { background: linear-gradient(135deg, var(--orange), #ff8a4c); color: #fff; text-align: center; padding: 64px 0; }
.cta-band h2 { font-size: 34px; font-weight: 900; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.9); margin-bottom: 24px; font-size: 16px; }
.cta-band .btn-primary { background: #fff; color: var(--orange-cta); }

/* ---------- Narrow widths ---------- */
@media (max-width: 960px) {
  .subj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .ph-inner { flex-direction: column; text-align: center; padding: 56px 0; }
  .ph-copy .lead { margin-left: auto; margin-right: auto; }
  .ph-actions { justify-content: center; }
  .ckl-row { grid-template-columns: 1fr; gap: 8px; }
}
@media (max-width: 640px) {
  .subj-grid { grid-template-columns: 1fr; }
  .promise { padding: 26px 20px; }
  .promise h2 { font-size: 22px; }
  .cta-band h2 { font-size: 28px; }
  .ph-copy h1 { font-size: 30px; letter-spacing: -1px; }
}
