/* aeo.css — shared design system (dark glass / cyan-blue) + the report page.
   Loaded by BOTH the landing (index.html, which also loads landing.css) and the
   rendered report (render-report.js links /aeo.css). Keep ONLY tokens, global
   base, shared components, and .report* styles here so the landing's
   bare-element rules (in landing.css) never reach the report page. */

:root {
  --bg: #050711;
  --bg-soft: #09111f;
  --card: rgba(255,255,255,0.075);
  --card-strong: rgba(255,255,255,0.12);
  --border: rgba(255,255,255,0.14);
  --text: #f6fbff;
  --muted: #a6b5c8;
  --muted2: #7f8ea3;
  --cyan: #38d8ff;
  --blue: #5b7cff;
  --green: #55efb0;
  --yellow: #ffd166;
  --orange: #ff9f43;
  --red: #ff4d6d;
  --purple: #9b7cff;
  --shadow: 0 30px 90px rgba(0,0,0,0.45);
  --radius: 26px;
  --radius-sm: 16px;
  --max: 1180px;

  /* readiness tiers mapped onto the palette */
  --t-strong: var(--green);
  --t-moderate: var(--yellow);
  --t-weak: var(--orange);
  --t-critical: var(--red);
  --t-unknown: var(--muted2);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 15% 6%, rgba(56,216,255,0.20), transparent 30%),
    radial-gradient(circle at 88% 9%, rgba(91,124,255,0.18), transparent 32%),
    radial-gradient(circle at 50% 88%, rgba(85,239,176,0.10), transparent 32%),
    linear-gradient(180deg, #050711 0%, #07101e 42%, #050711 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.container { width: min(var(--max), calc(100% - 36px)); margin: 0 auto; position: relative; z-index: 1; }

/* shared button */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 14px 22px; border-radius: 999px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #03101d; font-weight: 950; letter-spacing: -0.025em; border: 0; cursor: pointer;
  box-shadow: 0 18px 45px rgba(56,216,255,0.22);
  transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease;
  white-space: nowrap; font-size: 15px; font-family: inherit;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 24px 60px rgba(56,216,255,0.34); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn.secondary { background: rgba(255,255,255,0.07); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn.full { width: 100%; }

/* ============================ REPORT PAGE ============================== */
.report { width: min(820px, calc(100% - 36px)); margin: 0 auto; padding: 40px 0 72px; position: relative; z-index: 1; }

.report h1, .report h2, .report h3 { letter-spacing: -0.04em; margin: 0; }

/* tier badge colors — applied to the hero / scoreboard / card tier pills the
   renderer emits as `<prefix>--<TIER>`. */
.hero__tier--STRONG, .score__tier--STRONG, .card__tier--STRONG       { background: rgba(85,239,176,0.13);  color: var(--t-strong); }
.hero__tier--MODERATE, .score__tier--MODERATE, .card__tier--MODERATE { background: rgba(255,209,102,0.14); color: var(--t-moderate); }
.hero__tier--WEAK, .score__tier--WEAK, .card__tier--WEAK             { background: rgba(255,159,67,0.15);  color: var(--t-weak); }
.hero__tier--CRITICAL, .score__tier--CRITICAL, .card__tier--CRITICAL { background: rgba(255,77,109,0.16);  color: var(--t-critical); }
.hero__tier--UNKNOWN, .score__tier--UNKNOWN, .card__tier--UNKNOWN    { background: rgba(127,142,163,0.16); color: var(--t-unknown); }

.hero {
  padding: 26px 28px; border-radius: var(--radius);
  background: radial-gradient(circle at 25% 0%, rgba(56,216,255,0.16), transparent 40%), var(--card);
  border: 1px solid var(--border); box-shadow: var(--shadow); margin-bottom: 22px;
}
.hero__eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); font-weight: 850; margin: 0 0 10px; }
.hero__name { font-size: clamp(30px, 5vw, 46px); line-height: 1.02; }
.hero__url { color: var(--muted); font-size: 14px; margin: 8px 0 18px; }
.hero__verdict { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.hero__tier { flex: none; font-weight: 950; font-size: 15px; letter-spacing: 0.02em; padding: 10px 18px; border-radius: 14px; }
.hero__headline { font-size: 18px; line-height: 1.5; color: var(--text); margin: 0; flex: 1; min-width: 240px; }

.scoreboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(168px, 1fr)); gap: 12px; margin-bottom: 26px; }
.score { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); transition: transform .2s ease, border-color .2s ease; }
.score:hover { transform: translateY(-3px); border-color: rgba(56,216,255,0.32); }
.score__q { font-weight: 800; font-size: 15px; letter-spacing: -0.02em; }
.score__tier { align-self: flex-start; font-size: 12px; font-weight: 900; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 999px; }

.quick-wins { padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--green); margin-bottom: 22px; }
.quick-wins h2 { font-size: 20px; margin: 0 0 12px; }
.quick-wins ol { margin: 0; padding-left: 20px; color: var(--text); }
.quick-wins li { margin: 8px 0; line-height: 1.5; }

.card { padding: 24px 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--border); border-left: 4px solid var(--border); margin-bottom: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.18); }
.card--STRONG   { border-left-color: var(--t-strong); }
.card--MODERATE { border-left-color: var(--t-moderate); }
.card--WEAK     { border-left-color: var(--t-weak); }
.card--CRITICAL { border-left-color: var(--t-critical); }
.card--UNKNOWN  { border-left-color: var(--t-unknown); }
.card__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 12px; }
.card__kicker { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted2); font-weight: 800; margin: 0 0 4px; }
.card__title { font-size: 22px; letter-spacing: -0.03em; }
.card__tier { flex: none; font-size: 12px; font-weight: 900; letter-spacing: 0.03em; padding: 5px 12px; border-radius: 999px; white-space: nowrap; }
.card__narrative { color: var(--muted); line-height: 1.6; margin: 0 0 16px; }
.findings { margin: 0 0 16px; padding: 0; list-style: none; }
.findings li { position: relative; padding-left: 18px; margin: 7px 0; color: var(--muted); line-height: 1.5; font-size: 15px; }
.findings li::before { content: ""; position: absolute; left: 3px; top: 9px; width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.recs { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.rec { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.rec__action { flex: 1 1 60%; line-height: 1.45; }
.rec__tags { display: flex; gap: 6px; }
.rec__tag { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; padding: 3px 9px; border-radius: 999px; }
.rec__tag--impact-high   { background: rgba(85,239,176,0.14); color: var(--green); }
.rec__tag--impact-medium { background: rgba(255,209,102,0.15); color: var(--yellow); }
.rec__tag--impact-low    { background: rgba(127,142,163,0.18); color: var(--muted); }
.rec__tag--effort        { background: rgba(56,216,255,0.12); color: var(--cyan); }

/* prompt grid — the centerpiece */
.prompt-grid { margin-top: 18px; overflow-x: auto; }
.pg { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.pg th, .pg td { border: 1px solid var(--border); padding: 11px 13px; text-align: left; vertical-align: top; }
.pg th { background: rgba(255,255,255,0.05); font-size: 12px; letter-spacing: 0.02em; }
.pg__q { max-width: 320px; color: var(--text); }
.pg__cell--yes { background: rgba(85,239,176,0.10); }
.pg__cell--no  { background: rgba(255,77,109,0.09); }
.pg__cell--na  { color: var(--muted2); text-align: center; }
.pg__mark { display: block; font-weight: 850; }
.pg__comp { display: block; margin-top: 4px; font-size: 12px; color: var(--orange); }
.prompt-grid__note { margin: 10px 2px 0; font-size: 12.5px; color: var(--muted2); font-style: italic; }

/* crawler matrix */
.crawl { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-top: 18px; }
.crawl__group { background: rgba(255,255,255,0.05); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.crawl__h { font-size: 14px; margin: 0 0 10px; font-weight: 850; }
.crawl__sub { font-weight: 500; color: var(--muted2); font-size: 12.5px; }
.crawl__list { list-style: none; margin: 0; padding: 0; }
.crawl__bot { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06); }
.crawl__bot:last-child { border-bottom: none; }
.crawl__state { font-weight: 850; font-size: 12.5px; }
.crawl__bot--ok .crawl__state { color: var(--green); }
.crawl__bot--blocked .crawl__state { color: var(--red); }

/* evidence + tags */
.evidence-block { margin-top: 30px; }
.evidence-block h2 { font-size: 20px; border-bottom: 1px solid var(--border); padding-bottom: 10px; }
.evidence { list-style: none; margin: 0; padding: 0; }
.evidence li { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13.5px; color: var(--muted); }
.tag { display: inline-block; font-size: 10px; font-weight: 900; padding: 2px 8px; border-radius: 6px; margin-right: 6px; letter-spacing: .05em; }
.tag--VERIFIED    { background: rgba(85,239,176,0.14); color: var(--green); }
.tag--OBSERVED    { background: rgba(56,216,255,0.14); color: var(--cyan); }
.tag--CLAIMED     { background: rgba(127,142,163,0.18); color: var(--muted); }
.tag--THIRD_PARTY { background: rgba(255,209,102,0.15); color: var(--yellow); }
.evidence__no-link { color: var(--muted2); }

.unknowns { margin-top: 26px; padding: 18px 22px; border: 1px dashed var(--border); border-radius: var(--radius); background: rgba(255,255,255,0.04); }
.unknowns h2 { font-size: 17px; color: var(--muted); margin: 0 0 8px; }
.unknowns ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }

.report__footer { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--border); color: var(--muted2); font-size: 13px; }
.report__disclaimer { font-style: italic; }

@media (max-width: 600px) {
  .hero, .card { padding: 20px; }
  .hero__verdict { flex-direction: column; }
}
