/* methodology-ui2.css — Methodology page UI2 layer.
 *
 * Loaded after ui2-tokens, ui2-components, public-marketing-ui2.
 * Page-specific layout: 4 score-layer stack, 7 engine cards grid,
 * good-vs-bad comparison cards, FAQ list, final CTA.
 */

/* ─── Hero notice cards (under page header) ──────────────── */

body.ui2 .meth-notice {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin: 32px auto 0;
  max-width: 1120px;
  padding: 0 32px;
}
body.ui2 .meth-notice-card {
  background: white;
  border: 1px solid var(--ui2-rule);
  border-radius: 8px;
  padding: 24px 28px;
}
body.ui2 .meth-notice-card h2,
body.ui2 .meth-notice-card h3 {
  font-family: var(--ui2-font-serif);
  font-weight: 500;
  font-size: 20px;
  margin: 0 0 10px;
  color: var(--ui2-ink);
}
body.ui2 .meth-notice-card p,
body.ui2 .meth-notice-card li {
  color: var(--ui2-ink-3);
  font-size: 14.5px;
  line-height: 1.55;
}
body.ui2 .meth-notice-card ul {
  padding-left: 20px;
  margin: 0;
}
body.ui2 .meth-notice-card li + li { margin-top: 6px; }

body.ui2 .hero-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
body.ui2 .hero-links .btn-primary,
body.ui2 .hero-links .btn-secondary {
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: transform 0.15s, background 0.18s, color 0.18s, border-color 0.18s;
}
body.ui2 .hero-links .btn-primary {
  background: var(--ui2-amber-500);
  color: white;
  border: 1px solid var(--ui2-amber-500);
}
body.ui2 .hero-links .btn-primary:hover {
  background: var(--ui2-amber-600);
  border-color: var(--ui2-amber-600);
  transform: translateY(-1px);
}
body.ui2 .hero-links .btn-secondary {
  border: 1px solid var(--ui2-rule);
  color: var(--ui2-ink-2);
  background: transparent;
}
body.ui2 .hero-links .btn-secondary:hover {
  border-color: var(--ui2-ink);
  color: var(--ui2-ink);
}

/* ─── Section ─────────────────────────────────────────────── */

body.ui2 .meth-section {
  padding: 56px 32px;
  max-width: 1120px;
  margin: 0 auto;
  border-top: 1px solid var(--ui2-rule);
}
body.ui2 .meth-section:first-of-type { border-top: none; }
body.ui2 .meth-section-header {
  max-width: 760px;
  margin-bottom: 32px;
}
body.ui2 .meth-section-header h2 {
  font-family: var(--ui2-font-serif);
  font-weight: 400;
  font-size: clamp(28px, 3.5vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ui2-ink);
  margin: 16px 0 0;
}
body.ui2 .meth-section-header p {
  margin-top: 12px;
  color: var(--ui2-ink-3);
  font-size: 16px;
  line-height: 1.55;
}

/* ─── Framework: 4 layer stack + cards ───────────────────── */

body.ui2 .framework {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 24px;
  align-items: start;
}
body.ui2 .stack {
  background: var(--ui2-paper);
  border: 1px solid var(--ui2-rule);
  border-radius: 12px;
  padding: 22px;
}
body.ui2 .stack-caption {
  font-family: var(--ui2-font-mono);
  font-size: 11px;
  color: var(--ui2-ink-4);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}
body.ui2 .layer {
  padding: 16px 18px;
  border-radius: 10px;
  margin-bottom: 12px;
  border: 1px solid var(--ui2-rule);
  background: white;
}
body.ui2 .layer:last-child { margin-bottom: 0; }
body.ui2 .layer span {
  display: block;
  font-family: var(--ui2-font-mono);
  font-size: 10px;
  color: var(--ui2-amber-600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
body.ui2 .layer strong {
  display: block;
  font-family: var(--ui2-font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--ui2-ink);
}
body.ui2 .layer p {
  font-size: 13.5px;
  color: var(--ui2-ink-3);
  margin-top: 6px;
  line-height: 1.5;
}
body.ui2 .layer.entity   { border-left: 3px solid var(--ui2-amber-500); }
body.ui2 .layer.answer   { border-left: 3px solid var(--ui2-amber-400); }
body.ui2 .layer.evidence { border-left: 3px solid var(--ui2-amber-600); }
body.ui2 .layer.crawl    { border-left: 3px solid var(--ui2-amber-700); }

body.ui2 .meth-cards {
  display: grid;
  gap: 14px;
}
body.ui2 .meth-card {
  background: white;
  border: 1px solid var(--ui2-rule);
  border-radius: 10px;
  padding: 20px 22px;
}
body.ui2 .meth-card h3 {
  font-family: var(--ui2-font-serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 8px;
  color: var(--ui2-ink);
}
body.ui2 .meth-card p {
  color: var(--ui2-ink-3);
  font-size: 14px;
  margin-bottom: 12px;
  line-height: 1.55;
}
body.ui2 .meth-card ul {
  padding-left: 18px;
  margin: 0;
}
body.ui2 .meth-card li {
  color: var(--ui2-ink-3);
  font-size: 13.5px;
  line-height: 1.55;
}
body.ui2 .meth-card li + li { margin-top: 4px; }
body.ui2 .meth-card .mini {
  font-family: var(--ui2-font-mono);
  font-size: 10px;
  color: var(--ui2-amber-600);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

body.ui2 .what-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

/* ─── Engine cards (7 modeled engines) ───────────────────── */

body.ui2 .engines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
body.ui2 .engine-card {
  background: white;
  border: 1px solid var(--ui2-rule);
  border-radius: 10px;
  padding: 18px 18px 16px;
  position: relative;
}
body.ui2 .engine-card h3 {
  font-family: var(--ui2-font-serif);
  font-weight: 500;
  font-size: 15px;
  margin: 0 0 6px;
  color: var(--ui2-ink);
}
body.ui2 .engine-card p {
  font-size: 13px;
  color: var(--ui2-ink-3);
  line-height: 1.5;
}
body.ui2 .engine-card .tag {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--ui2-amber-50);
  color: var(--ui2-amber-700);
  font-family: var(--ui2-font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--ui2-amber-200);
}
body.ui2 .engine-note {
  margin-top: 16px;
  color: var(--ui2-ink-3);
  font-size: 14px;
  font-style: italic;
}

/* ─── Compare cards (good vs bad) ────────────────────────── */

body.ui2 .meth-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
body.ui2 .compare-card {
  background: white;
  border: 1px solid var(--ui2-rule);
  border-radius: 10px;
  padding: 22px 24px;
}
body.ui2 .compare-card.good { border-left: 3px solid var(--ui2-good); }
body.ui2 .compare-card.bad  { border-left: 3px solid var(--ui2-bad); }
body.ui2 .compare-card h3 {
  font-family: var(--ui2-font-serif);
  font-weight: 500;
  font-size: 18px;
  margin: 0 0 12px;
  color: var(--ui2-ink);
}
body.ui2 .compare-card ul {
  padding-left: 18px;
  margin: 0;
}
body.ui2 .compare-card li {
  font-size: 14px;
  color: var(--ui2-ink-3);
  line-height: 1.55;
}
body.ui2 .compare-card li + li { margin-top: 8px; }
body.ui2 .compare-card li strong { color: var(--ui2-ink); }

/* ─── FAQ ─────────────────────────────────────────────────── */

body.ui2 .meth-faq {
  display: grid;
  gap: 10px;
}
body.ui2 details.ui2-faq.meth-faq-item {
  background: white;
  border: 1px solid var(--ui2-rule);
  border-radius: 10px;
  padding: 18px 22px;
}
body.ui2 details.ui2-faq.meth-faq-item summary h3 {
  display: inline;
  margin: 0;
  font-family: var(--ui2-font-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--ui2-ink);
}
body.ui2 details.ui2-faq.meth-faq-item p {
  font-size: 14px;
  color: var(--ui2-ink-3);
  margin-top: 10px;
}

/* ─── Inline CTA card (end of page) ──────────────────────── */

body.ui2 .meth-cta {
  background: linear-gradient(
    135deg,
    var(--ui2-amber-50),
    var(--ui2-paper)
  );
  border: 1px solid var(--ui2-amber-200);
  border-radius: 16px;
  padding: 40px 32px;
  text-align: center;
}
body.ui2 .meth-cta h2 {
  font-family: var(--ui2-font-serif);
  font-weight: 400;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
  color: var(--ui2-ink);
  margin: 0 0 12px;
}
body.ui2 .meth-cta p {
  max-width: 640px;
  margin: 0 auto 24px;
  color: var(--ui2-ink-3);
  font-size: 15px;
}
body.ui2 .meth-cta-links {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ─── Responsive ─────────────────────────────────────────── */

@media (max-width: 920px) {
  body.ui2 .framework,
  body.ui2 .what-grid,
  body.ui2 .meth-compare,
  body.ui2 .meth-notice { grid-template-columns: 1fr; }
  body.ui2 .engines { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  body.ui2 .engines { grid-template-columns: 1fr; }
  body.ui2 .meth-section { padding: 40px 20px; }
}
