/* SAT Practice — Landing Page (chapter index)
   Layered on top of style.css (uses same --ink, --char, --muted tokens). */

.landing-body {
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
}

.landing-topbar {
  grid-template-columns: auto 1fr auto;
}

/* ── Hero ─────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 56px 24px 36px;
  border-bottom: 1px solid var(--line);
  max-width: 920px;
  margin: 0 auto;
}
.hero-eyebrow {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.hero-title {
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1px;
  margin: 0 0 6px;
  color: var(--ink);
}
.hero-sub {
  font-size: 17px;
  color: var(--char);
  font-style: italic;
  margin-bottom: 32px;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 640px;
  margin: 0 auto;
}
.hero-stats .stat {
  text-align: center;
  padding: 14px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
}
.hero-stats .stat-num {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.1;
}
.hero-stats .stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 4px;
}

/* ── Section bands ────────────────────────────────────── */
.sections {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 24px 48px;
}
.section-band {
  margin-bottom: 36px;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-top: 2px solid var(--ink);
  padding: 14px 4px 12px;
  margin-bottom: 14px;
}
.section-name {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.2px;
  color: var(--ink);
}
.section-name .range {
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
  font-size: 14px;
}
.section-meta {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  gap: 16px;
}
.section-meta .meta-num {
  color: var(--ink);
  font-weight: 600;
}

/* ── Chapter cards ────────────────────────────────────── */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.chapter-card {
  display: block;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: white;
  text-decoration: none;
  color: var(--ink);
  position: relative;
  transition: transform 0.08s, box-shadow 0.08s, border-color 0.08s;
  min-height: 154px;
}
.chapter-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.06);
  border-color: var(--ink);
}
.chapter-card .card-eyebrow {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 1.8px;
  text-transform: uppercase;
}
.chapter-card .card-title {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.1px;
  margin: 5px 0 4px;
  line-height: 1.25;
}
.chapter-card .card-sub {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin-bottom: 10px;
  /* clamp to 2 lines to keep cards uniform */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.chapter-card .card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--char);
}
.chapter-card .stat-tier {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.chapter-card .tier-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--ink);
}
.chapter-card .tier-dot.t1 { background: #444; }
.chapter-card .tier-dot.t2 { background: #888; }
.chapter-card .tier-dot.t3 { background: #BBB; }

.chapter-card .card-badge-row {
  position: absolute;
  top: 14px;
  right: 14px;
  display: flex;
  gap: 6px;
}
.chapter-card .badge-flag {
  background: var(--status-fix);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  line-height: 1.4;
}
.chapter-card .badge-resolved {
  background: var(--status-ok);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  line-height: 1.4;
}
.chapter-card .badge-discuss {
  background: var(--status-discuss);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 9px;
  line-height: 1.4;
}

/* Total problem count: show prominently in card */
.chapter-card .card-total {
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1;
}
.chapter-card .card-total-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 1.4px;
  text-transform: uppercase;
  margin-left: 4px;
  vertical-align: 2px;
}

/* ── Footer ──────────────────────────────────────────── */
.landing-footer {
  border-top: 1px solid var(--line);
  padding: 22px 24px;
  font-size: 12px;
  color: var(--char);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  max-width: 1100px;
  margin: 0 auto;
}
.landing-footer .muted { color: var(--muted); }

/* Loading state */
.loading {
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
  font-style: italic;
}

/* ── Brand link in topbar (back to landing) ───────────── */
.brand-link {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 13px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: white;
  transition: background 0.08s;
}
.brand-link:hover { background: var(--hover); }

@media (max-width: 720px) {
  .hero-title { font-size: 40px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .chapter-grid { grid-template-columns: 1fr 1fr; }
  .section-head { flex-direction: column; gap: 4px; align-items: flex-start; }
}
