/* ============================================================
   Parquet — Landing page styles (DP-600 / 700 / 800)
   ============================================================ */

.landing-hero {
  padding: 56px 0 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 56px;
  align-items: start;
}
.landing-hero h1 {
  font-size: clamp(40px, 5vw, 64px);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 16px 0 20px;
  max-width: 14ch;
}
.landing-hero h1 em {
  font-style: italic;
  font-weight: 450;
  color: var(--accent);
}
.landing-hero .lede {
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 56ch;
}
.landing-hero .lede em {
  font-style: normal;
  font-weight: 600;
  color: var(--text);
}

/* Hero side card — exam at-a-glance */
.exam-glance {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 24px 20px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.exam-glance::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent);
}
.exam-glance .head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.exam-glance .head .badge {
  padding: 3px 8px;
  border-radius: var(--r-sm);
  background: var(--accent-soft);
  color: var(--accent-text);
  letter-spacing: 0.1em;
}
.exam-glance .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 12px 0;
  border-top: 1px solid var(--divider);
}
.exam-glance .row:first-of-type { border-top: none; padding-top: 0; }
.exam-glance .row .k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.exam-glance .row .v {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}
.exam-glance .row .v small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
  margin-left: 4px;
}
.exam-glance .guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}
.exam-glance .guide-link:hover { text-decoration: underline; }

/* Stats strip */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
  margin: 24px 0 32px;
  overflow: hidden;
}
.stats-strip .stat {
  padding: 20px 18px;
  text-align: center;
  border-right: 1px solid var(--divider);
}
.stats-strip .stat:last-child { border-right: none; }
.stats-strip .stat-num {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
}
.stats-strip .stat-num small {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-faint);
  margin-left: 1px;
}
.stats-strip .stat-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Recommendation banner */
.reco {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 18px 22px;
  background: linear-gradient(135deg,
    var(--accent-soft),
    color-mix(in srgb, var(--accent-soft) 50%, var(--surface)));
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--r-lg);
  margin-bottom: 40px;
}
.reco .reco-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: var(--accent);
  color: white;
  display: grid; place-items: center;
  flex-shrink: 0;
  box-shadow: 0 6px 14px -4px var(--ring);
}
.reco .reco-icon svg { width: 20px; height: 20px; }
.reco .reco-body { flex: 1; min-width: 0; }
.reco .reco-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin-bottom: 2px;
}
.reco .reco-text {
  font-size: 16px;
  font-weight: 550;
  color: var(--text);
}
.reco .reco-text em { font-style: normal; color: var(--accent); font-weight: 700; }
.reco .reco-cta {
  flex-shrink: 0;
}

/* Section heading */
.sh {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 8px 0 20px;
}
.sh h2 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.sh h2 .num {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
}
.sh .sh-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

/* Chapter grid */
.chapter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 40px;
}
.chapter {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  transition:
    border-color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
  min-height: 168px;
}
.chapter:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.chapter:hover .arrow { transform: translateX(4px); color: var(--accent); }
.chapter.featured {
  background: linear-gradient(135deg, var(--accent-soft), var(--surface));
}
.chapter .chap-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.chapter .chap-num {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.chapter .chap-status {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.chapter .chap-status.attempted { color: var(--warn-text); }
.chapter .chap-status.attempted::before { content: '○'; }
.chapter .chap-status.mastered { color: var(--success-text); }
.chapter .chap-status.mastered::before { content: '✓'; }
.chapter .chap-title {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}
.chapter .chap-title em { font-style: italic; }
.chapter .chap-sub {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.chapter .chap-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--divider);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.chapter .chap-score {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}
.chapter .chap-score .mini-bar {
  width: 40px; height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
}
.chapter .chap-score .mini-bar > div {
  height: 100%;
  background: var(--accent);
}
.chapter .chap-score.none { font-style: italic; color: var(--text-faint); }
.chapter .arrow {
  color: var(--text-faint);
  font-size: 16px;
  transition: transform var(--t-fast) var(--ease-out), color var(--t-fast) var(--ease-out);
}

/* Featured cards (Random + Bookmarks) */
.featured-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 56px;
}
.fcard {
  position: relative;
  padding: 32px;
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow: hidden;
  transition: transform var(--t-base) var(--ease-out), box-shadow var(--t-base) var(--ease-out);
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fcard.dark {
  background: linear-gradient(135deg, var(--text), color-mix(in srgb, var(--text) 75%, var(--accent)));
  color: white;
  border-color: transparent;
}
[data-theme="dark"] .fcard.dark {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 30%, var(--surface-3)), var(--surface-2));
}
.fcard.dark .fc-eyebrow { color: color-mix(in srgb, var(--accent) 40%, white); }
.fcard.dark .fc-desc { color: rgba(255,255,255,.78); }
[data-theme="dark"] .fcard.dark .fc-desc { color: var(--text-2); }
.fcard.dark .fc-link { color: white; border-top-color: rgba(255,255,255,.2); }

.fcard .fc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-text);
}
.fcard .fc-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.fcard .fc-title em {
  font-style: italic;
  color: var(--accent);
}
.fcard.dark .fc-title em { color: color-mix(in srgb, var(--accent) 40%, white); }
.fcard .fc-desc { font-size: 14px; line-height: 1.55; color: var(--text-muted); flex: 1; }
.fcard .fc-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--divider);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Topic map */
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 48px;
}
.topic {
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: border-color var(--t-fast), transform var(--t-fast);
}
.topic:hover { border-color: var(--border-strong); }
.topic .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.topic .meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.topic .meta .pct { color: var(--accent); font-weight: 600; }
.topic .topic-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--surface-3);
  overflow: hidden;
  margin-top: 4px;
}
.topic .topic-bar > div {
  height: 100%;
  background: var(--accent);
  transition: width var(--t-slow) var(--ease-out);
}

/* Footer */
.landing-footer {
  padding: 32px 0 48px;
  margin-top: 32px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: var(--text-muted);
}
.landing-footer .reset {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  transition: all var(--t-fast);
}
.landing-footer .reset:hover {
  background: var(--danger-soft);
  border-color: var(--danger);
  color: var(--danger-text);
}

/* Animations */
.landing-hero { animation: fadeUp .6s var(--ease-out) backwards; }
.exam-glance { animation: fadeUp .6s var(--ease-out) .15s backwards; }
.stats-strip { animation: fadeUp .5s var(--ease-out) .25s backwards; }
.reco { animation: fadeUp .5s var(--ease-out) .3s backwards; }

@media (max-width: 900px) {
  .landing-hero { grid-template-columns: 1fr; gap: 32px; }
  .stats-strip { grid-template-columns: repeat(3, 1fr); }
  .stats-strip .stat:nth-child(4),
  .stats-strip .stat:nth-child(5) { border-top: 1px solid var(--divider); }
  .stats-strip .stat:nth-child(3) { border-right: none; }
  .featured-cards { grid-template-columns: 1fr; }
  .reco { flex-direction: column; align-items: stretch; }
  .reco .reco-cta { width: 100%; }
  .reco .reco-cta .btn { width: 100%; }
}
