/**
 * AI agent readiness assessment — /ai-tool/agent-readiness/
 *
 * matchfast.co is a dark site and remap.css only repaints prefixes it already
 * knows, so this template carries its own complete token block. Every rule is
 * scoped to .mfar and element resets are wrapped in :where(), because the
 * Elementor header and footer render on this page and a bare a/button/svg
 * selector would restyle them.
 *
 * Shape rule, applied everywhere: panels 16px, rows 14px, anything you click
 * is a 100px pill. Accent is one colour, royal #4F46FF, start to finish.
 */

.mfar {
  --mfar-bg: #070A12;
  --mfar-surface: #0E1222;
  --mfar-surface-2: #141A2E;
  --mfar-glass: rgba(255, 255, 255, .035);
  --mfar-glass-2: rgba(255, 255, 255, .06);
  --mfar-line: rgba(255, 255, 255, .10);
  --mfar-line-2: rgba(255, 255, 255, .16);
  --mfar-text: #F8FAFF;
  --mfar-text-2: rgba(248, 250, 255, .66);
  --mfar-text-3: rgba(248, 250, 255, .5);
  --mfar-royal: #4F46FF;
  --mfar-royal-hi: #635BFF;
  --mfar-accent: #93B4FB;
  --mfar-lav: #E9D8FF;
  --mfar-good: #4ADE80;
  --mfar-warn: #FBBF6A;
  --mfar-display: "DM Sans", system-ui, sans-serif;
  --mfar-body: "Inter", system-ui, sans-serif;
  --mfar-mono: "JetBrains Mono", ui-monospace, monospace;

  background: var(--mfar-bg);
  color: var(--mfar-text);
  font-family: var(--mfar-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.mfar :where(h1, h2, h3, h4, p, ul, ol, li, figure, dl, dd) { margin: 0; }
.mfar :where(ul, ol) { padding: 0; list-style: none; }
.mfar :where(h1, h2, h3, h4) { font-family: var(--mfar-display); line-height: 1.1; letter-spacing: -.02em; font-weight: 700; }
.mfar :where(button) { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.mfar :where(a) { color: inherit; }
.mfar :where(svg) { display: block; }
.mfar :where(*, *::before, *::after) { box-sizing: border-box; }
.mfar :focus-visible { outline: 2px solid var(--mfar-accent); outline-offset: 3px; border-radius: 10px; }

/* The royal bloom the rest of the site runs behind its headlines. */
.mfar-top {
  position: relative;
  background:
    radial-gradient(820px 420px at 50% -12%, rgba(79, 70, 255, .26), transparent 70%),
    var(--mfar-bg);
}

.mfar-wrap {
  max-width: 1244px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 40px) clamp(40px, 6vw, 72px);
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: start;
}
@media (max-width: 900px) { .mfar-wrap { grid-template-columns: minmax(0, 1fr); gap: 26px; } }

/* ---------- the ring ----------
   It does two jobs, which is why it earns the space: during the questions it
   is the progress indicator, and on the results it is the score breakdown.
   One segment is one question; the darker it fills, the stronger the answer. */

.mfar-rail { position: sticky; top: 92px; }
@media (max-width: 900px) {
  .mfar-rail { position: static; display: grid; grid-template-columns: 124px minmax(0, 1fr); gap: 18px; align-items: center; }
}

.mfar-ring { width: 100%; max-width: 330px; height: auto; display: block; }
.mfar-seg { fill: var(--mfar-glass-2); transition: fill .3s ease, opacity .3s ease; }
.mfar-cue { fill: none; stroke: var(--mfar-accent); stroke-width: 1.5; opacity: .85; }
.mfar-dim { font: 600 12px var(--mfar-body); fill: var(--mfar-text-3); letter-spacing: .02em; }
.mfar-dim-live { fill: var(--mfar-accent); }
.mfar-big { font: 700 58px var(--mfar-display); fill: var(--mfar-text); letter-spacing: -.03em; }
.mfar-small { font: 500 13px var(--mfar-body); fill: var(--mfar-text-3); }
.mfar-note { color: var(--mfar-text-3); font-size: 14px; line-height: 1.5; margin-top: 16px; max-width: 34ch; }
@media (max-width: 900px) { .mfar-note { margin-top: 0; font-size: 13px; } }

/* ---------- intro ---------- */

.mfar-eyebrow {
  font: 600 12px var(--mfar-mono);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--mfar-accent);
  margin-bottom: 18px;
}
.mfar h1 { font-size: clamp(34px, 5.2vw, 56px); font-weight: 800; max-width: 15ch; }
.mfar h1 em { font-style: normal; color: var(--mfar-lav); }
.mfar-lede { font-size: 18px; color: var(--mfar-text-2); max-width: 54ch; margin-top: 18px; }

.mfar-label { display: block; font-weight: 600; font-size: 15px; margin: 30px 0 12px; }
.mfar-chips { display: flex; flex-wrap: wrap; gap: 9px; }
.mfar-chip {
  border: 1.5px solid var(--mfar-line);
  background: var(--mfar-glass);
  border-radius: 100px;
  padding: 9px 17px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--mfar-text-2);
  transition: border-color .15s, color .15s, background .15s;
}
.mfar-chip:hover { border-color: var(--mfar-line-2); color: var(--mfar-text); }
.mfar-chip[aria-pressed="true"] { background: var(--mfar-royal); border-color: var(--mfar-royal); color: #fff; }

.mfar-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--mfar-royal); color: #fff;
  border-radius: 100px; padding: 14px 28px;
  font-size: 16px; font-weight: 600; white-space: nowrap;
  text-decoration: none;
  transition: background .15s, transform .12s;
}
.mfar-btn:hover { background: var(--mfar-royal-hi); color: #fff; }
.mfar-btn:active { transform: translateY(1px); }
.mfar-btn[disabled] { opacity: .4; cursor: not-allowed; }
.mfar-btn-2 {
  background: var(--mfar-glass); color: var(--mfar-text);
  border: 1.5px solid var(--mfar-line-2);
}
.mfar-btn-2:hover { background: var(--mfar-glass-2); color: var(--mfar-text); }
.mfar-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; align-items: center; }
.mfar-hint { color: var(--mfar-text-3); font-size: 13.5px; margin-top: 14px; }

/* ---------- questions ---------- */

.mfar-step { font: 600 12.5px var(--mfar-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--mfar-text-3); margin-bottom: 14px; }
.mfar-step b { color: var(--mfar-accent); font-weight: 600; }
.mfar-q { font-size: clamp(23px, 3.2vw, 33px); font-weight: 700; max-width: 24ch; }
.mfar-help { color: var(--mfar-text-2); font-size: 15.5px; margin-top: 12px; max-width: 56ch; }

.mfar-opts { display: grid; gap: 9px; margin-top: 26px; }
.mfar-opt {
  width: 100%; text-align: left;
  display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center;
  background: var(--mfar-surface);
  border: 1.5px solid var(--mfar-line);
  border-radius: 14px;
  padding: 15px 18px;
  transition: border-color .15s, background .15s, transform .12s;
}
.mfar-opt:hover { border-color: var(--mfar-line-2); background: var(--mfar-surface-2); }
.mfar-opt:active { transform: translateY(1px); }
.mfar-opt[aria-checked="true"] { border-color: var(--mfar-royal); background: var(--mfar-surface-2); }
.mfar-key {
  width: 30px; height: 30px; border-radius: 9px;
  border: 1.5px solid var(--mfar-line); display: grid; place-items: center;
  font: 600 13px var(--mfar-mono); color: var(--mfar-text-3);
  transition: background .15s, border-color .15s, color .15s;
}
.mfar-opt[aria-checked="true"] .mfar-key { background: var(--mfar-royal); border-color: var(--mfar-royal); color: #fff; }
.mfar-opt-t { font-weight: 500; font-size: 15.5px; }
.mfar-opt-s { display: block; color: var(--mfar-text-3); font-size: 14px; margin-top: 2px; }

.mfar-nav { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 24px; }
.mfar-link { color: var(--mfar-text-3); font-weight: 600; font-size: 14.5px; padding: 8px 0; transition: color .15s; }
.mfar-link:hover { color: var(--mfar-text); }

/* ---------- results ---------- */

.mfar-band { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; }
.mfar-band-d { color: var(--mfar-text-2); font-size: 17.5px; max-width: 56ch; margin-top: 14px; }

.mfar-panel {
  background: var(--mfar-surface);
  border: 1.5px solid var(--mfar-line);
  border-radius: 16px;
  padding: clamp(22px, 3.4vw, 32px);
  margin-top: 30px;
}
.mfar-panel-k { font: 600 12px var(--mfar-mono); letter-spacing: .15em; text-transform: uppercase; color: var(--mfar-accent); }
.mfar-panel h3 { font-size: clamp(23px, 3.1vw, 31px); margin-top: 10px; }
.mfar-panel p { color: var(--mfar-text-2); margin-top: 12px; max-width: 60ch; }

.mfar-meta { display: grid; gap: 1px; background: var(--mfar-line); border-radius: 12px; overflow: hidden; margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .mfar-meta { grid-template-columns: minmax(0, 1fr); } }
.mfar-meta div { background: var(--mfar-surface-2); padding: 14px 16px; }
.mfar-meta dt { font: 600 11px var(--mfar-mono); letter-spacing: .13em; text-transform: uppercase; color: var(--mfar-text-3); }
.mfar-meta dd { margin-top: 5px; font-size: 15px; color: var(--mfar-text); }

.mfar-steps { counter-reset: s; margin-top: 22px; display: grid; gap: 11px; }
.mfar-steps li { counter-increment: s; display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 13px; align-items: start; color: var(--mfar-text-2); font-size: 15.5px; }
.mfar-steps li::before {
  content: counter(s); width: 26px; height: 26px; border-radius: 100px;
  background: var(--mfar-glass-2); color: var(--mfar-accent);
  font: 600 12px var(--mfar-mono); display: grid; place-items: center;
}

.mfar-sec { margin-top: 36px; padding-top: 28px; border-top: 1.5px solid var(--mfar-line); }
.mfar-sec h2 { font-size: 23px; }
.mfar-sec > p { color: var(--mfar-text-2); margin-top: 10px; max-width: 60ch; }

.mfar-bars { display: grid; gap: 15px; margin-top: 20px; }
.mfar-bar { display: grid; grid-template-columns: 82px minmax(0, 1fr) 56px; gap: 14px; align-items: center; }
.mfar-bar > span { font-size: 14.5px; color: var(--mfar-text-2); }
.mfar-track { height: 8px; background: var(--mfar-glass-2); border-radius: 100px; overflow: hidden; }
.mfar-track i { display: block; height: 100%; background: var(--mfar-royal); border-radius: 100px; transition: width .7s cubic-bezier(.16, 1, .3, 1); }
.mfar-bar b { font: 600 14px var(--mfar-mono); text-align: right; font-variant-numeric: tabular-nums; }
.mfar-bar-low .mfar-track i { background: var(--mfar-warn); }
.mfar-bar-low b { color: var(--mfar-warn); }

.mfar-fix { margin-top: 18px; display: grid; gap: 10px; }
.mfar-fix li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 12px; color: var(--mfar-text-2); font-size: 15.5px; align-items: start; }
.mfar-fix li svg { width: 18px; height: 18px; margin-top: 4px; color: var(--mfar-accent); flex: none; }

.mfar-next {
  margin-top: 36px; border-radius: 16px; padding: clamp(24px, 3.6vw, 34px);
  background: linear-gradient(135deg, rgba(79, 70, 255, .22), rgba(99, 91, 255, .07)), var(--mfar-surface);
  border: 1.5px solid rgba(79, 70, 255, .4);
}
.mfar-next h2 { font-size: clamp(22px, 3vw, 29px); max-width: 22ch; }
.mfar-next p { color: var(--mfar-text-2); margin-top: 12px; max-width: 56ch; }

.mfar-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; align-items: center; }
.mfar-toast { color: var(--mfar-good); font-weight: 600; font-size: 14.5px; }

/* ---------- the static part, which is what search engines read ---------- */

.mfar-static { border-top: 1.5px solid var(--mfar-line); background: var(--mfar-bg); }
.mfar-static-in { max-width: 1244px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 40px); }
.mfar-static h2 { font-size: clamp(25px, 3.4vw, 34px); max-width: 22ch; }
.mfar-static > * + * { margin-top: 0; }
.mfar-static-sec + .mfar-static-sec { margin-top: clamp(40px, 5vw, 64px); }
.mfar-static-sec > p { color: var(--mfar-text-2); margin-top: 14px; max-width: 62ch; font-size: 17px; }

.mfar-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; margin-top: 26px; }
.mfar-card { background: var(--mfar-surface); border: 1.5px solid var(--mfar-line); border-radius: 16px; padding: 24px; }
.mfar-card h3 { font-size: 18px; }
.mfar-card p { color: var(--mfar-text-2); font-size: 15px; margin-top: 9px; }
/* Deliberately not an uppercase tracked kicker: it carries a real number
   (how many questions build this area), so it should read as data. */
.mfar-card span { font: 500 12.5px var(--mfar-mono); color: var(--mfar-text-3); display: block; margin-bottom: 10px; }

.mfar-faq { margin-top: 26px; display: grid; gap: 1px; background: var(--mfar-line); border: 1.5px solid var(--mfar-line); border-radius: 16px; overflow: hidden; }
.mfar-faq details { background: var(--mfar-surface); }
.mfar-faq summary { padding: 18px 22px; font-weight: 600; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.mfar-faq summary::-webkit-details-marker { display: none; }
.mfar-faq summary::after { content: "+"; font: 400 22px var(--mfar-body); color: var(--mfar-accent); line-height: 1; }
.mfar-faq details[open] summary::after { content: "\2013"; }
.mfar-faq p { padding: 0 22px 20px; color: var(--mfar-text-2); max-width: 70ch; }

.mfar-rules { margin-top: 22px; display: grid; gap: 10px; }
.mfar-rules li { color: var(--mfar-text-2); font-size: 16px; padding-left: 20px; position: relative; max-width: 62ch; }
.mfar-rules li::before { content: ""; position: absolute; left: 0; top: 12px; width: 8px; height: 1.5px; background: var(--mfar-accent); }
.mfar-rules b { color: var(--mfar-text); font-weight: 600; }

/* The theme prints the page title above the content and it is visible on
   this template, so the page announced itself twice before the hero said
   anything. Hidden here rather than globally, and paired with removing
   site-main's top padding so the hero meets the header cleanly. */
/* The step heading is given focus on every state change so a screen reader
   announces the new question. It is a target, not a control, so the visible
   ring says nothing actionable and reads as a box drawn round the headline.
   The focus move itself stays. */
.mfar [data-mfar-head]:focus, .mfar [data-mfar-head]:focus-visible { outline: none; }

/* At 124px the four area labels around the ring are too small to read, and
   the bars under the results already name every area in full. */
@media (max-width: 900px) { .mfar-dim { display: none; } }

body.mfar-page .page-header { display: none; }
body.mfar-page main.site-main { padding-top: 0; }

.mfar-hidden { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  .mfar *, .mfar *::before, .mfar *::after { transition: none !important; animation: none !important; }
}
