:root {
  --bg: #09090b;
  --bg-elev: #131316;
  --bg-elev-2: #1b1b20;
  --ink: #f4f4f5;
  --ink-dim: #a1a1aa;
  --ink-faint: #71717a;
  --line: #27272a;
  --accent: #5eaaa8;        /* muted teal — nods to the AINO advisory brand */
  --accent-strong: #0f4c5c;
  --native: #7dd3a0;
  --gateway: #6cb6e0;
  --retrofit: #e0b25c;
  --survey: #d98c8c;
  --radius: 10px;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.wrap { width: 100%; max-width: 880px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 5;
  background: rgba(9, 9, 11, 0.85);
  backdrop-filter: blur(8px);
}
.header-inner { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; }
.brand { color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -0.01em; }
.partner-line { color: var(--ink-dim); font-size: 0.85rem; }
.partner-line strong { color: var(--ink); font-weight: 600; }

/* Hero */
.hero { padding: 56px 0 28px; }
.eyebrow { color: var(--accent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 12px; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 14px; font-weight: 700; }
.lede { color: var(--ink-dim); font-size: 1.05rem; max-width: 60ch; }
.lede a { color: var(--accent); }

/* Tool */
.tool { padding: 8px 0 24px; }
.field-label { display: block; font-weight: 600; margin-bottom: 10px; }
.field-label .hint { display: block; color: var(--ink-faint); font-weight: 400; font-size: 0.85rem; margin-top: 4px; }
.field-label code { background: var(--bg-elev-2); padding: 1px 6px; border-radius: 5px; font-size: 0.82em; }

textarea {
  width: 100%;
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.9rem;
  resize: vertical;
}
textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }

.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
button { font: inherit; cursor: pointer; }
#assess {
  background: var(--ink); color: var(--bg);
  border: none; border-radius: var(--radius);
  padding: 12px 22px; font-weight: 600;
}
#assess:hover { background: #fff; }
.linkish { background: none; border: none; color: var(--accent); padding: 0; font-size: 0.9rem; text-decoration: underline; text-underline-offset: 3px; }

.error { color: var(--survey); margin-top: 12px; font-size: 0.9rem; }

/* Report */
.report { padding: 16px 0 32px; border-top: 1px solid var(--line); margin-top: 24px; }
.report h2 { font-size: 1.15rem; margin: 32px 0 12px; letter-spacing: -0.01em; }

.rating-card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 24px 0 8px;
}
.rating-card .rating-label { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.rating-card .rating-value { font-size: 1.9rem; font-weight: 700; margin: 6px 0; }
.rating-card .rating-reason { color: var(--ink-dim); margin: 0; }
.rating-value.ready { color: var(--native); }
.rating-value.partial { color: var(--gateway); }
.rating-value.notready { color: var(--retrofit); }
.rating-value.survey { color: var(--survey); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--ink-faint); font-weight: 500; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; background: var(--bg-elev); }
tbody tr:last-child td { border-bottom: none; }
td .crit { color: var(--retrofit); margin-left: 6px; font-size: 0.75rem; }

.legend { color: var(--ink-faint); font-size: 0.82rem; margin-top: 10px; }
.v { font-weight: 600; }
.v.native { color: var(--native); } .v.gateway { color: var(--gateway); }
.v.retrofit { color: var(--retrofit); } .v.survey { color: var(--survey); }

.partner-readiness { list-style: none; padding: 0; display: grid; gap: 10px; }
.partner-readiness li { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink-dim); }
.partner-readiness strong { color: var(--ink); }

.ladder { list-style: none; padding: 0; counter-reset: s; display: grid; gap: 10px; }
.ladder li { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; color: var(--ink-dim); }
.ladder li.active { border-color: var(--accent); color: var(--ink); }
.ladder li strong { color: var(--ink); }

.cta { background: var(--bg-elev); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 32px; text-align: center; }
.cta h2 { margin-top: 0; }
.cta p { color: var(--ink-dim); }
.cta-button { display: inline-block; margin: 10px 0 0; background: var(--accent); color: #06181a; text-decoration: none; font-weight: 600; padding: 12px 24px; border-radius: var(--radius); }
.cta-button:hover { background: var(--native); }
.cta-note { margin: 0; }

/* Principles */
.principles { padding: 24px 0 48px; border-top: 1px solid var(--line); margin-top: 32px; }
.principles h2 { font-size: 1.15rem; }
.principles ul { padding-left: 0; list-style: none; display: grid; gap: 8px; }
.principles li { color: var(--ink-dim); }
.principles strong { color: var(--ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--ink-faint); font-size: 0.85rem; }
.muted { color: var(--ink-faint); }

@media (max-width: 560px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .partner-line { font-size: 0.78rem; }
}
