/* ════════════════════════════════════════════════════════════════════════
   AI readiness check (#/readiness)
   Hero: the question and the form on the left, the scan's rings on a deep
   ink stage on the right; with a result, the score, the three fixes to start
   with and Share, which draws the scorecard as a picture (the share dialog,
   below). Then three short beats: where agents get stuck (the
   four layers, each in a sentence, with the jobs that decide it), where to
   start (the jobs worth the most points, and a plan that adds them up), and
   where to go next. Every check opens in a side panel, a job at a time.
   ════════════════════════════════════════════════════════════════════════ */

/* the stage's glow takes the grade's colour, and eases there */
@property --rd-g { syntax: '<color>'; inherits: true; initial-value: #3D7BFF; }

/* ── Hero ──────────────────────────────────────────────────────────────── */
/* room under the stage for its shadow to fade out (the hero clips its overflow) */
.hero--rdy { padding-bottom: clamp(88px, 9vw, 124px); }
.hero--rdy .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: clamp(32px, 5vw, 84px); }
/* with a result the copy runs longer than the stage: the rings stay level with the score */
.rd[data-state="done"] .hero--rdy .hero__in { align-items: start; }
.hero--rdy::before { content: ''; position: absolute; z-index: -2; inset: 0; background: radial-gradient(50% 60% at 8% 12%, rgba(143, 122, 230, .10), transparent 70%), radial-gradient(40% 50% at 30% 100%, rgba(0, 93, 232, .08), transparent 70%); }
.rd-copy { gap: 24px; justify-items: stretch; }
.rd-copy > * { min-width: 0; }
.rd-view { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; justify-items: start; min-width: 0; }
.rd-view > * { min-width: 0; max-width: 100%; }
.rd-view[hidden] { display: none; }
.rd-view h1 > span { display: block; }
.rd-view.is-entering > * { animation: rd-in .75s var(--ease) both; }
.rd-view.is-entering > :nth-child(2) { animation-delay: .06s; }
.rd-view.is-entering > :nth-child(3) { animation-delay: .12s; }
.rd-view.is-entering > :nth-child(4) { animation-delay: .18s; }
.rd-view.is-entering > :nth-child(5) { animation-delay: .24s; }
.rd-view.is-entering > :nth-child(6) { animation-delay: .3s; }
.rd-view.is-entering > :nth-child(n+7) { animation-delay: .36s; }
@keyframes rd-in { from { opacity: 0; transform: translate3d(0, 14px, 0); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* the store, as a favicon (or its first letter, or a little shop) */
.rd-ico { position: relative; flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; overflow: hidden; background: #fff; color: var(--text-2); box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13px; font-weight: 700; line-height: 1; }
/* the letter and the shop icon share one cell (an empty letter would otherwise take a row and push the icon down) */
.rd-ico::before { content: attr(data-letter); grid-area: 1 / 1; transition: opacity .25s; }
.rd-ico svg { grid-area: 1 / 1; width: 58%; height: 58%; }
.rd-ico img { position: absolute; inset: 15%; width: 70%; height: 70%; object-fit: contain; opacity: 0; transition: opacity .3s var(--ease); }
.rd-ico.has-img img { opacity: 1; }
.rd-ico.has-img::before { opacity: 0; }
.rd-ico--lg { width: 46px; height: 46px; border-radius: 14px; font-size: 19px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .55); }
.rd-ico--lg svg { width: 50%; height: 50%; }

.rd-site { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; max-width: 100%; font-size: 15px; font-weight: 700; color: var(--text); }
.rd-site b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-site a { display: inline-flex; align-items: center; gap: 6px; min-width: 0; transition: color .25s; }
.rd-site a:hover { color: var(--primary); }
.rd-site .badge { flex: none; }
.rd-ext { flex: none; width: 10px; height: 10px; opacity: .6; transition: transform .4s var(--ease), opacity .25s; }
a:hover > .rd-ext { opacity: 1; transform: translate(2px, -2px); }
.rd-link { font-weight: 700; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; border-radius: 4px; }
.rd-link:hover { color: var(--primary-hover); }

/* the form: one field, the main call to action inside it */
.rd-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; width: 100%; max-width: 580px; }
.rd-form[hidden] { display: none; }
.rd-form__l { font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-field {
  position: relative; display: flex; align-items: center; gap: 12px; height: 70px; padding: 7px 7px 7px 18px; border-radius: var(--r-pill);
  background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2), 0 28px 60px -34px rgba(0, 39, 104, .5), 0 2px 4px rgba(9, 13, 31, .04);
  transition: box-shadow .35s var(--ease), transform .35s var(--ease);
}
.rd-field:focus-within { box-shadow: inset 0 0 0 2px var(--blue-400), 0 0 0 6px rgba(42, 139, 255, .13), 0 28px 60px -34px rgba(0, 39, 104, .5); }
.rd-field input { flex: 1; width: 100%; min-width: 0; height: 100%; padding: 0; border: 0; outline: 0; background: transparent; font-size: 18px; font-weight: 600; color: var(--text); }
.rd-field input::placeholder { color: var(--gray-400); font-weight: 500; }
.rd-field input:focus-visible { box-shadow: none; }
.rd-field__ico { flex: none; display: grid; }
.rd-field__ico .rd-ico { transition: transform .45s var(--ease); }
.rd-field.is-valid .rd-field__ico .rd-ico { transform: scale(1.08); }
.rd-field .btn { height: 56px; padding: 0 26px 0 28px; flex: none; }
.rd-field .btn svg { transition: transform .45s var(--ease); }
.rd-field .btn:hover svg, .rd-field.is-valid .btn svg { transform: translateX(3px); }
.rd-go__s { display: none; }
.rd-field.is-bad { animation: rd-shake .42s var(--ease-io); box-shadow: inset 0 0 0 2px var(--red-400), 0 0 0 6px rgba(240, 48, 48, .1), 0 28px 60px -34px rgba(0, 39, 104, .5); }
@keyframes rd-shake { 20% { transform: translateX(-6px); } 40% { transform: translateX(5px); } 60% { transform: translateX(-3px); } 80% { transform: translateX(2px); } }
.rd-hint { min-height: 0; font-size: 13.5px; font-weight: 600; color: var(--red-600); }
.rd-hint:empty { display: none; }
.rd-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 0; font-size: 13px; font-weight: 500; color: var(--text-3); }
.rd-note span { display: inline-flex; align-items: center; }
.rd-note span + span::before { content: ''; width: 3px; height: 3px; margin: 0 11px; border-radius: 50%; background: currentColor; opacity: .55; }
.rd-note a { color: var(--text-2); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; margin-left: .3em; }
.rd-note a:hover { color: var(--primary); }
.rd-try { font-size: 14px; color: var(--text-2); }
/* after a result, the form steps back: smaller, one line */
.rd-form--compact { gap: 10px; max-width: 520px; padding-top: 22px; border-top: 1px solid var(--line); }
.rd-form--compact .rd-field { height: 56px; padding: 5px 5px 5px 14px; box-shadow: inset 0 0 0 1.5px var(--line-2), 0 1px 2px rgba(9, 13, 31, .04); }
.rd-form--compact .rd-field:focus-within { box-shadow: inset 0 0 0 2px var(--blue-400), 0 0 0 5px rgba(42, 139, 255, .12); }
.rd-form--compact .rd-field input { font-size: 16px; }
.rd-form--compact .rd-field .btn { height: 46px; padding: 0 20px; font-size: var(--fs-sm); }
.rd-form--compact .rd-note, .rd-form--compact .rd-try { display: none; }

/* scanning */
.rd-run__h { max-width: 15em; }
.rd-probe { display: flex; align-items: center; gap: 12px; min-height: 30px; font-size: 16.5px; font-weight: 500; color: var(--text-2); }
.rd-probe i { flex: none; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(0, 93, 232, .18); border-top-color: var(--primary); animation: rd-spin .9s linear infinite; }
.rd-probe__t.is-new { animation: rd-probe .55s var(--ease) both; }
@keyframes rd-probe { from { opacity: 0; transform: translate3d(0, 10px, 0); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes rd-spin { to { transform: rotate(360deg); } }
.rd-steps { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-steps li {
  position: relative; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 15px 0 11px; border-radius: var(--r-pill); overflow: hidden;
  font-size: 13px; font-weight: 700; color: var(--text-3); background: rgba(9, 13, 31, .035); box-shadow: inset 0 0 0 1px var(--line);
  transition: color .45s var(--ease), background-color .45s var(--ease), box-shadow .45s var(--ease);
}
.rd-steps li span { display: grid; }
.rd-steps li svg { width: 17px; height: 17px; }
.rd-steps li.is-done { color: var(--text-2); }
.rd-steps li.is-done span { color: var(--green-600); }
.rd-steps li.is-on { color: var(--c); background: color-mix(in srgb, var(--cl) 14%, #fff); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 40%, transparent), 0 10px 24px -14px var(--c); }
.rd-steps li.is-on::after { content: ''; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .85) 50%, transparent 70%); transform: translateX(-110%); animation: rd-shim 1.5s var(--ease) infinite; }
@keyframes rd-shim { to { transform: translateX(110%); } }
.rd-run__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; font-size: 13.5px; font-weight: 500; color: var(--text-3); }
.rd-run__t { min-width: 3.4ch; font-weight: 700; color: var(--text); }

/* the result */
.rd-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 6px; }
.rd-score__n { font-size: clamp(4.4rem, 2.2rem + 5.4vw, 7.25rem); line-height: .92; font-weight: 700; letter-spacing: -.045em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; padding-right: .04em; }
.rd-score__of { font-size: clamp(1.35rem, 1rem + 1vw, 1.9rem); font-weight: 700; color: var(--text-3); letter-spacing: -.01em; }
.rd-grade { align-self: center; display: inline-flex; align-items: center; gap: 9px; height: 36px; margin-left: 14px; padding: 0 15px 0 5px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--gc, var(--text-2)); background: var(--gbg, rgba(9, 13, 31, .06)); }
.rd-grade b { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 50%; font-size: 14px; color: #fff; background: var(--gc, var(--gray-500)); box-shadow: 0 6px 14px -6px var(--gc, transparent); }
.rd-verdict { font-size: var(--fs-h5); line-height: 1.3; font-weight: var(--fw-head); max-width: 24em; text-wrap: balance; }
.rd-sum { font-size: 15.5px; line-height: 1.62; color: var(--text-2); max-width: 36em; }
.rd-sum[hidden] { display: none; }
.rd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; font-size: 13px; font-weight: 500; color: var(--text-3); }
.rd-meta > * + *::before { content: ''; display: inline-block; width: 3px; height: 3px; margin: 0 10px; border-radius: 50%; background: currentColor; opacity: .55; vertical-align: middle; }
.rd-meta a { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--primary); }
.rd-meta a::before { margin-right: 5px; }
/* the 100 points by layer: each part as wide as its weight, lit as far as it's earned */
.rd-split { display: flex; gap: 5px; width: 100%; max-width: 580px; }
.rd-split__s { flex: var(--f) 1 0; min-width: 0; display: grid; gap: 8px; }
.rd-split__s > i { position: relative; display: block; height: 10px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--cl) 20%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 10%, transparent); }
.rd-split__s > i::after { content: ''; position: absolute; inset: 0; width: calc(var(--w) * 100%); border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--cl)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease) var(--d, 0s); }
.rd-split.is-on .rd-split__s > i::after { transform: none; }
.rd-split__s span { font-size: 12px; font-weight: 500; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-split__s span b { font-weight: 700; color: var(--text); }
.rd-split__s span em { font-style: normal; }
.rd-acts { display: flex; flex-wrap: wrap; gap: 10px; }
.rd-acts .btn svg { width: 16px; height: 16px; }
/* where to start, up top: the three fixes the planner starts with, each a click from its job */
.rd-top { display: grid; gap: 10px; width: 100%; max-width: 580px; }
.rd-top[hidden] { display: none; }
.rd-top__hd { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 14px; }
.rd-top__eye { font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-top__pot { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.rd-top__pot svg { width: 14px; height: 14px; color: var(--text-3); }
.rd-top__pot b { font-weight: 700; color: var(--text); }
.rd-top__pot .rd-up { font-size: 15px; color: var(--green-600); }
.rd-top__ls { display: grid; overflow: hidden; border-radius: 18px; background: #fff; box-shadow: inset 0 0 0 1px var(--line-2), 0 22px 44px -30px rgba(0, 39, 104, .38), 0 1px 2px rgba(9, 13, 31, .04); }
.rd-top__ls li + li { box-shadow: inset 0 1px 0 var(--line); }
.rd-top__r { position: relative; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 16px; align-items: center; gap: 12px; width: 100%; padding: 11px 14px 11px 18px; text-align: left; transition: background-color .25s var(--ease); }
.rd-top__r::before { content: ''; position: absolute; left: 0; top: 11px; bottom: 11px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c); }
.rd-top__r:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-400); }
.rd-top__n { font-size: 13px; font-weight: 700; color: var(--c); }
.rd-top__t { display: grid; gap: 1px; min-width: 0; }
.rd-top__t b { overflow: hidden; font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); white-space: nowrap; text-overflow: ellipsis; }
.rd-top__t small { display: flex; align-items: center; gap: 7px; overflow: hidden; font-size: 12.5px; font-weight: 500; color: var(--text-3); white-space: nowrap; }
.rd-top__t small i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.rd-top__g { font-size: 17px; font-weight: 700; font-style: normal; color: var(--green-600); white-space: nowrap; }
.rd-top__g small { font-size: 11px; font-weight: 600; color: var(--text-3); }
.rd-top__chev { display: grid; color: var(--gray-400); transition: transform .35s var(--ease), color .25s; }
.rd-top__chev svg { width: 16px; height: 16px; }
@media (hover: hover) {
  .rd-top__r:hover { background: color-mix(in srgb, var(--cl) 10%, #fff); }
  .rd-top__r:hover .rd-top__chev { color: var(--c); transform: translateX(3px); }
}

/* errors */
.rd-err { display: flex; align-items: center; gap: 14px; max-width: 580px; padding: 14px 14px 14px 16px; border-radius: var(--r-md); background: #FFF5F5; box-shadow: inset 0 0 0 1px rgba(240, 48, 48, .2); }
.rd-err[hidden] { display: none; }
.rd-err.is-new { animation: rd-in .55s var(--ease) both; }
.rd-err__ico { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; background: var(--red-500); box-shadow: 0 8px 18px -8px var(--red-500); }
.rd-err__ico svg { width: 16px; height: 16px; }
.rd-err > div { min-width: 0; flex: 1; }
.rd-err b { display: block; font-size: 15px; font-weight: 700; }
.rd-err p { margin-top: 2px; font-size: 14px; line-height: 1.5; color: var(--text-2); }
.rd-err .btn { flex: none; }

/* ── The stage: rings on deep ink ──────────────────────────────────────── */
.rd-stage {
  height: clamp(500px, 70vh, 690px); color: #fff;
  background: radial-gradient(90% 80% at 50% 46%, #133584 0%, #0A1C57 44%, #050C2A 100%);
  box-shadow: 0 50px 100px -50px rgba(0, 21, 64, .7), 0 24px 48px -30px rgba(60, 51, 97, .45);
  transition: --rd-g 1.4s var(--ease);
}
.rd-stage::before {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(34% 34% at 50% 53%, color-mix(in srgb, var(--rd-g) 38%, transparent), transparent 72%),
    radial-gradient(55% 45% at 88% 102%, rgba(143, 122, 230, .34), transparent 70%),
    radial-gradient(48% 42% at 8% -4%, rgba(42, 139, 255, .3), transparent 70%);
}
.rd-stage::after { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.rd-stage__dots { position: absolute; inset: 0; z-index: 0; pointer-events: none; background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1.5px); background-size: 22px 22px; -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, transparent 30%, #000 60%, transparent 100%); mask-image: radial-gradient(60% 60% at 50% 50%, transparent 30%, #000 60%, transparent 100%); opacity: .7; }
.rd-rings { position: absolute; inset: 0 0 46px; z-index: 1; }
.rd-stage .motion-btn { color: #fff; background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.rd-stage .motion-btn:hover { background: rgba(255, 255, 255, .2); }
.rd-legend { position: absolute; z-index: 2; left: 0; right: 0; bottom: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 0 24px; font-size: 12.5px; font-weight: 500; color: rgba(255, 255, 255, .72); text-align: center; }
.rd-legend span { display: inline-flex; align-items: center; }
.rd-legend i { display: inline-block; width: 18px; height: 4px; margin-right: 8px; border-radius: 2px; }
.rd-legend .is-lit { background: linear-gradient(90deg, #62BCFF, #A991FF); box-shadow: 0 0 10px rgba(98, 188, 255, .6); }
.rd-legend .is-dark { background: rgba(255, 110, 130, .4); }
.rd-legend .rd-legend__h { color: rgba(255, 255, 255, .5); }

/* the rings (js/viz-rings.js) */
.rr { position: absolute; inset: 0; }
.rr canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.rr.is-pointing { cursor: var(--cur-hot); }
.rr__labels { position: absolute; inset: 0; pointer-events: none; }
.rr__lab {
  position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 10px 0 8px; border-radius: var(--r-pill);
  font-size: 10.5px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; white-space: nowrap; color: #fff;
  background: rgba(5, 12, 42, .62); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 50%, transparent);
  transition: opacity .4s var(--ease);
}
.rr__lab::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.rr__lab b { font-weight: 700; letter-spacing: 0; color: var(--c); }
.rr__lab.is-dim { opacity: .55; }
.rr__lab.is-dim::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--c); }
.rr__center { position: absolute; left: 50%; top: calc(50% + min(18px, 2%)); transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 7px; width: 34%; max-width: 170px; text-align: center; pointer-events: none; }
.rr__center b { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; font-weight: 700; }
.rr__center small { font-size: 10.5px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: rgba(255, 255, 255, .62); }
.rd-stage[data-state="scan"] .rr__center small::after { content: '…'; display: inline-block; width: 1.1em; text-align: left; animation: rd-dots 1.2s steps(4) infinite; overflow: hidden; vertical-align: bottom; }
@keyframes rd-dots { from { width: 0; } to { width: 1.1em; } }
.rr__grade { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: 13px; font-weight: 700; color: #fff; background: var(--gc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--gc) 25%, transparent), 0 0 18px color-mix(in srgb, var(--gc) 60%, transparent); }
.rr--mini .rr__center { top: 50%; width: 30%; }
.rr--mini .rr__center .rd-ico { width: 34px; height: 34px; border-radius: 11px; box-shadow: inset 0 0 0 1px var(--line-2), 0 8px 18px -10px rgba(0, 39, 104, .4); }
.rd-tipn { font-size: 13.5px; font-weight: 700; line-height: 1.35; margin-bottom: 6px; }
.rd-tipf { margin-top: 6px; font-size: 11.5px; color: rgba(255, 255, 255, .6); }

/* ── Rhythm: this page runs tighter than the reports ─────────────────── */
.rd .chap { padding-block: clamp(64px, 7.5vw, 112px); }
.rd .sec-head { margin-bottom: clamp(28px, 4vw, 48px); }
.rd-res .sec-head { margin-bottom: clamp(24px, 3vw, 36px); }

/* jargon gets a dotted underline; hover or focus it for plain words */
.rd-gl { text-decoration: underline dotted; text-decoration-thickness: 1.5px; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); cursor: var(--cur-hot); border-radius: 3px; transition: color .2s, text-decoration-color .2s; }
.rd-gl:hover, .rd-gl:focus-visible { color: var(--primary); text-decoration-color: currentColor; }
.rd-tipd { max-width: 250px; font-size: 12.5px; line-height: 1.5; color: rgba(255, 255, 255, .9); }

/* ── Before a scan: how it works ───────────────────────────────────────── */
.rd-how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.rd-how li { display: flex; align-items: flex-start; gap: 14px; padding: 18px 20px; border-radius: var(--r-md); background: rgba(255, 255, 255, .72); box-shadow: inset 0 0 0 1px var(--line); }
.rd-how__n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 14px; font-weight: 700; color: #fff; background: var(--grad-cta); box-shadow: var(--sh-cta); }
.rd-how b { display: block; font-size: 15.5px; font-weight: var(--fw-head); line-height: 1.35; }
.rd-how p { margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.rd[data-state="done"] .rd-how { display: none; }

/* ── The four layers ───────────────────────────────────────────────────── */
.rd-path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; align-items: start; }
.rd-lc {
  --pad: 24px; position: relative; display: flex; flex-direction: column; gap: 12px; padding: var(--pad); border-radius: var(--r-md);
  background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-2);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), box-shadow .5s var(--ease);
}
.rd-lc__top { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.rd-lc__ico { position: relative; z-index: 2; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--cl) 16%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 20%, transparent); }
.rd-lc__ico svg { width: 22px; height: 22px; }
/* before a scan, an agent hops from one layer to the next */
.rd-lc__link { position: absolute; z-index: 1; top: 50%; height: 2px; margin-top: -1px; left: 56px; right: calc(8px - 2 * var(--pad) - 16px); border-radius: 2px; background: linear-gradient(90deg, color-mix(in srgb, var(--c) 45%, transparent), color-mix(in srgb, var(--c) 12%, transparent)); }
.rd-lc__link i { position: absolute; top: 50%; left: 0; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--cl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl) 22%, transparent), 0 0 10px var(--cl); opacity: 0; animation: rd-hop 6.4s var(--ease-io) infinite; animation-delay: calc(var(--i) * 1.6s); }
@keyframes rd-hop { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 21% { opacity: 1; } 25% { left: calc(100% - 8px); opacity: 0; } 100% { left: calc(100% - 8px); opacity: 0; } }
.rd-lc__h { display: grid; gap: 1px; min-width: 0; }
.rd-lc__step { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-lc__name { font-size: var(--fs-h5); line-height: 1.2; font-weight: var(--fw-head); }
.rd-lc:not(.is-res) .rd-lc__name { margin-top: -6px; }
.rd-lc__q { font-size: 15px; line-height: 1.5; color: var(--text-2); }
.rd-lc__list { display: grid; gap: 7px; padding-top: 4px; }
.rd-lc__list li { position: relative; padding-left: 18px; font-size: 13.5px; line-height: 1.45; color: var(--text-2); }
.rd-lc__list li::before { content: ''; position: absolute; left: 1px; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: var(--cl); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cl) 18%, transparent); }
.rd-lc__pct { margin-left: auto; display: flex; align-items: baseline; gap: 1px; color: var(--c); }
.rd-lc__pct b { font-size: clamp(1.9rem, 1.45rem + 1vw, 2.5rem); line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.rd-lc__pct span { font-size: 16px; font-weight: 700; opacity: .7; }
.rd-lc__pct.is-na { align-self: center; font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }
/* the layer in one sentence: the line to remember */
.rd-lc__says { font-size: 16.5px; line-height: 1.38; font-weight: var(--fw-head); text-wrap: balance; min-height: 2.76em; }
.rd-lc__bar { height: 8px; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--cl) 18%, #fff); }
.rd-lc__bar i { display: block; width: calc(var(--w) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--cl)); transform: scaleX(0); transform-origin: left; transition: transform 1.3s var(--ease); transition-delay: calc(var(--d, 0s) + .25s); }
.rd-lc.is-in .rd-lc__bar i { transform: none; }
/* every check in the layer, one dot each (bigger dots carry more points) */
.rd-lc__dots { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; padding: 2px 0; }
.rd-dot { --dc: var(--gray-300); flex: none; width: var(--s); height: var(--s); border-radius: 50%; background: var(--dc); cursor: var(--cur-hot); }
.rd-dot--pass { --dc: #00B67C; } .rd-dot--warning { --dc: #F5A524; } .rd-dot--fail { --dc: #F03030; } .rd-dot--na { --dc: #BBC6DD; }
.rd-dot.is-free, .rd-dot--na { background: transparent; box-shadow: inset 0 0 0 1.5px var(--dc); }
.rd-lc__dots .rd-dot { opacity: 0; transform: scale(.3); transition: opacity .35s var(--ease), transform .5s var(--ease); transition-delay: calc(var(--d, 0s) + .35s + var(--k) * 14ms); }
.rd-lc.is-in .rd-lc__dots .rd-dot { opacity: 1; transform: none; }
.rd-lc.is-in .rd-lc__dots .rd-dot:hover { transform: scale(1.35); transition-delay: 0s; }
.rd-lc__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 12.5px; font-weight: 500; color: var(--text-3); }
.rd-lc__lbl { margin: 4px 0 -4px; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-lc__clear { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--green-700); background: rgba(0, 216, 148, .1); }
.rd-lc__clear svg { width: 15px; height: 15px; }
.rd-lc__why { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); font-size: 12.5px; line-height: 1.55; color: var(--text-3); }
.rd-lc__why b { font-weight: 700; color: var(--c); }
.rd-path__note { margin-top: 18px; max-width: 70em; }
/* a layer's jobs: the guide's units of work, problems first */
.rd-jobs { display: grid; gap: 6px; }
.rd-job { width: 100%; display: grid; grid-template-columns: 22px minmax(0, 1fr) auto 14px; align-items: center; gap: 10px; padding: 10px 10px 10px 9px; border-radius: 10px; text-align: left; background: var(--surface-2); transition: background-color .25s var(--ease), box-shadow .3s var(--ease); }
@media (hover: hover) { .rd-job:hover { background: #fff; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent), 0 8px 18px -12px rgba(0, 39, 104, .35); } }
.rd-job__i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: var(--red-500); }
.rd-job__i svg { width: 12px; height: 12px; }
.rd-job--warning .rd-job__i { background: var(--yellow-500); }
.rd-job--pass .rd-job__i { background: var(--green-600); }
.rd-job--na .rd-job__i { color: var(--gray-500); background: var(--gray-200); }
.rd-job__t { min-width: 0; font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.rd-job__t small { display: block; margin-top: 2px; font-size: 11.5px; font-weight: 500; color: var(--text-3); }
.rd-job__g { font-style: normal; font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.rd-job__chev { display: grid; color: var(--text-3); }
.rd-job__chev svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.rd-job:hover .rd-job__chev svg { transform: translateX(2px); }
.rd-jobs--rest { padding-top: 6px; }
.rd-jobs--rest .rd-job { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.rd-more__t { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 600; text-align: left; color: var(--text-2); transition: background-color .25s; }
.rd-more__t:hover { background: var(--surface-2); }
.rd-more__t > span { display: inline-flex; align-items: center; gap: 7px; }
.rd-more__t > span svg { width: 14px; height: 14px; color: var(--green-600); }
.rd-more__t > svg { width: 16px; height: 16px; color: var(--text-3); transition: transform .45s var(--ease); }
.rd-more.is-open .rd-more__t > svg { transform: rotate(180deg); }
.rd-more__b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rd-more__b > ul { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.rd-more.is-open .rd-more__b { grid-template-rows: 1fr; }
.rd-more.is-open .rd-more__b > ul { visibility: visible; transition-delay: 0s; }

/* ── Where to start: the fixes and the plan ────────────────────────────── */
.rd-fx { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(20px, 2.6vw, 36px); align-items: start; }
.rd-fx__main { display: grid; gap: 28px; min-width: 0; }
.rd-fcs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rd-fc {
  position: relative; display: flex; flex-direction: column; gap: 12px; padding: 22px 20px 16px; border-radius: var(--r-md); background: #fff;
  box-shadow: inset 0 0 0 1px var(--line), var(--sh-2);
  transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), translate .5s var(--ease), box-shadow .45s var(--ease);
}
@media (hover: hover) { .rd-fc:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 28%, transparent), var(--sh-3); } }
.rd-fc.is-plan { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 55%, transparent), var(--sh-2); }
.rd-fc__top { display: flex; align-items: center; gap: 10px; min-height: 30px; }
.rd-fc__rank { font-size: 13px; font-weight: 700; color: var(--text-3); }
.rd-fc__quick { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px 0 7px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; color: #8A5A00; background: rgba(247, 177, 60, .2); }
.rd-fc__quick svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.rd-fc__gain { margin-left: auto; display: grid; justify-items: end; line-height: 1; }
.rd-fc__gain b { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: var(--green-700); }
.rd-fc__gain small { margin-top: 2px; font-size: 11px; font-weight: 600; color: var(--text-3); }
.rd-fc__t { font-size: 18.5px; line-height: 1.28; font-weight: var(--fw-head); text-wrap: balance; }
.rd-fc__why { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rd-fc__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 2px; }
.rd-fc__acts { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
.rd-fc__go { display: inline-flex; align-items: center; gap: 6px; padding: 6px 2px; font-size: 13px; font-weight: 700; color: var(--c); border-radius: 8px; white-space: nowrap; }
.rd-fc__go svg { width: 15px; height: 15px; transition: transform .35s var(--ease); }
.rd-fc__go:hover svg { transform: translateX(3px); }
.rd-tag { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; color: var(--text-2); background: var(--surface-2); }
.rd-tag--layer { color: var(--c); background: color-mix(in srgb, var(--c) 9%, #fff); }
.rd-tag--forter { color: var(--primary); background: rgba(0, 93, 232, .08); }
/* the plan toggle: a box that ticks itself */
.rd-pt { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px 0 8px; border-radius: var(--r-pill); font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface-2); transition: background-color .3s var(--ease), color .3s var(--ease); }
.rd-pt__box { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; color: #fff; background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background-color .3s var(--ease), box-shadow .3s var(--ease), transform .35s var(--ease); }
.rd-pt__box svg { width: 14px; height: 14px; stroke-dasharray: 26; stroke-dashoffset: 26; transition: stroke-dashoffset .45s var(--ease); }
.rd-pt[aria-pressed="true"] { color: var(--c, var(--primary)); background: color-mix(in srgb, var(--cl, #62BCFF) 15%, #fff); }
.rd-pt[aria-pressed="true"] .rd-pt__box { background: var(--c, var(--primary)); box-shadow: 0 6px 14px -6px var(--c, var(--primary)); }
.rd-pt[aria-pressed="true"] .rd-pt__box svg { stroke-dashoffset: 0; }
@media (hover: hover) { .rd-pt:hover .rd-pt__box { transform: scale(1.1); } }
.rd-pt:active .rd-pt__box { transform: scale(.92); }
.rd-pt--icon { flex: none; width: 44px; height: 44px; padding: 0; justify-content: center; background: transparent; }
.rd-pt--icon[aria-pressed="true"] { background: transparent; }
.rd-pt--icon .rd-pt__l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.rd-pt--lg { height: 44px; padding: 0 18px 0 11px; font-size: 14px; }
/* the rest, as a ranked list: each bar is the job's points */
.rd-fx__h { margin-bottom: 10px; font-size: 14px; color: var(--text-2); }
.rd-fx__h b { color: var(--text); font-weight: 700; }
.rd-frs { display: grid; gap: 8px; }
.rd-fr { display: flex; align-items: center; gap: 2px; padding: 3px 8px 3px 4px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.rd-fr[hidden] { display: none; }
@media (hover: hover) { .rd-fr:hover { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 30%, transparent), var(--sh-1); } }
.rd-fr.is-plan { box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 50%, transparent); }
.rd-fr__h { flex: 1; min-width: 0; display: grid; grid-template-columns: 24px minmax(0, 1fr) minmax(48px, 120px) 44px 14px; align-items: center; gap: 12px; padding: 10px 6px; border-radius: 10px; text-align: left; }
.rd-fr__rank { font-size: 12.5px; font-weight: 700; color: var(--text-3); }
.rd-fr__t { min-width: 0; }
.rd-fr__t b { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.rd-fr__t small { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 6px; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.rd-dotc { width: 7px; height: 7px; border-radius: 50%; background: var(--cl); }
.rd-fr__bar { height: 6px; border-radius: 4px; overflow: hidden; background: var(--surface-2); }
.rd-fr__bar i { display: block; width: calc(var(--w) * 100%); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--c), var(--cl)); }
.rd-fr__g { font-size: 14px; font-weight: 700; text-align: right; color: var(--green-700); }
.rd-fr__chev { display: grid; color: var(--text-3); }
.rd-fr__chev svg { width: 14px; height: 14px; transition: transform .35s var(--ease); }
.rd-fr__h:hover .rd-fr__chev svg { transform: translateX(2px); }
.rd-fx__more { margin-top: 12px; }
.rd-fx__none { grid-column: 1 / -1; display: flex; align-items: center; gap: 20px; padding: 28px 30px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px rgba(0, 216, 148, .3), var(--sh-2); }
.rd-fx__none-ico { flex: none; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--green-600); box-shadow: 0 14px 28px -12px var(--green-600); }
.rd-fx__none-ico svg { width: 28px; height: 28px; }
.rd-fx__none h3 { font-size: var(--fs-h6); font-weight: var(--fw-head); }
.rd-fx__none p { margin-top: 4px; color: var(--text-2); }
/* the plan: the score you'd have, and how far each layer gets */
.rd-plan { position: sticky; top: calc(var(--nav-h) + 24px); display: grid; justify-items: center; gap: 12px; padding: 20px 22px 20px; border-radius: var(--r-md); text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-3); }
.rd-plan__eye { font-size: 11px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--primary); }
.rd-plan__ring { position: relative; width: 176px; height: 176px; }
.rd-plan__key { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; margin-top: -4px; font-size: 11.5px; font-weight: 600; color: var(--text-3); }
.rd-plan__key span { display: inline-flex; align-items: center; gap: 6px; }
.rd-plan__key i { width: 14px; height: 5px; border-radius: 3px; }
.rd-plan__key .is-now { background: linear-gradient(90deg, #005DE8, #6F57E8); }
.rd-plan__key .is-plan { background: linear-gradient(90deg, #66A9FF, #B9A8FF); opacity: .8; }
.rd-plan__key .is-miss { background: rgba(224, 45, 45, .16); }
.rd-plan__nums { display: flex; align-items: center; gap: 16px; }
.rd-plan__nums > div { display: grid; gap: 2px; }
.rd-plan__nums span { font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-plan__nums b { display: inline-block; font-size: 44px; line-height: 1; font-weight: 700; letter-spacing: -.03em; }
.rd-plan__nums > div:first-child b { color: var(--text-3); }
.rd-plan__nums b.is-up { animation: rd-up .7s var(--ease); }
@keyframes rd-up { 30% { transform: scale(1.14); } 100% { transform: none; } }
.rd-plan__arrow { display: grid; margin-top: 16px; color: var(--text-3); }
.rd-plan__arrow svg { width: 20px; height: 20px; }
.rd-plan__ls { width: 100%; display: grid; gap: 8px; padding: 4px 0 2px; text-align: left; }
.rd-plan__ls li { display: grid; grid-template-columns: 62px minmax(0, 1fr) 78px; align-items: center; gap: 10px; font-size: 12px; }
.rd-plan__ln { font-weight: 700; color: var(--c); }
.rd-plan__bar { position: relative; height: 6px; border-radius: 4px; overflow: hidden; background: color-mix(in srgb, var(--cl) 16%, #fff); }
.rd-plan__bar i { position: absolute; top: 0; bottom: 0; left: 0; border-radius: inherit; }
.rd-plan__bar .is-now { width: calc(var(--w) * 100%); background: linear-gradient(90deg, var(--c), var(--cl)); }
.rd-plan__bar .is-add { left: calc(var(--w0, 0) * 100%); width: calc((var(--w, 0) - var(--w0, 0)) * 100%); border-radius: 0 4px 4px 0; background: repeating-linear-gradient(-45deg, color-mix(in srgb, var(--cl) 75%, #fff) 0 3px, color-mix(in srgb, var(--cl) 40%, #fff) 3px 6px); transition: width .7s var(--ease), left .7s var(--ease); }
.rd-plan__ls em { font-style: normal; font-weight: 700; text-align: right; white-space: nowrap; color: var(--text-2); }
.rd-plan__ls li.is-closed em { color: var(--green-700); }
.rd-plan__ls li.is-closed em::after { content: ' ✓'; }
.rd-plan__t { font-size: 13.5px; font-weight: 600; color: var(--text-2); }
.rd-plan__copy { width: 100%; }
.rd-plan__copy svg { width: 16px; height: 16px; }
.rd-plan__copy:disabled { opacity: .45; pointer-events: none; box-shadow: none; }
.rd-plan__see { font-size: 13px; }
.rd-plan__note { font-size: 11.5px; line-height: 1.5; color: var(--text-3); }

/* ── The side panel ────────────────────────────────────────────────────── */
html.rd-lock { overflow: hidden; }
.rd-dw { position: fixed; inset: 0; z-index: 200; }
.rd-dw[hidden] { display: none; }
.rd-dw__bg { position: absolute; inset: 0; background: rgba(4, 8, 24, 0); transition: background-color .45s var(--ease), -webkit-backdrop-filter .45s var(--ease), backdrop-filter .45s var(--ease); }
.rd-dw.is-open .rd-dw__bg { background: rgba(4, 8, 24, .4); -webkit-backdrop-filter: blur(6px) saturate(120%); backdrop-filter: blur(6px) saturate(120%); }
.rd-dw__p { position: absolute; top: 12px; right: 12px; bottom: 12px; width: min(560px, calc(100vw - 24px)); display: flex; flex-direction: column; overflow: hidden; border-radius: var(--r-md); background: #fff; box-shadow: 0 0 0 1px rgba(9, 13, 31, .04), 0 50px 120px -40px rgba(0, 0, 0, .6); transform: translate3d(calc(100% + 24px), 0, 0); transition: transform .6s var(--ease); outline: none; }
.rd-dw.is-open .rd-dw__p { transform: none; }
.rd-dw__hd { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 14px 12px 24px; border-bottom: 1px solid var(--line); }
.rd-dw__crumb { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-dw__x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); background: var(--surface-2); transition: background-color .25s, color .25s, transform .45s var(--ease); }
.rd-dw__x svg { width: 16px; height: 16px; }
@media (hover: hover) { .rd-dw__x:hover { color: var(--text); background: var(--gray-200); transform: rotate(90deg); } }
.rd-dw__body { flex: 1; overflow: auto; overscroll-behavior: contain; padding: 24px 24px 32px; scrollbar-width: thin; }
.rd-dw__body.is-swap > * { animation: rd-in .5s var(--ease) both; }
.rd-dw__ft { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; padding: 12px 14px 12px 16px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .94); }
.rd-dw__hint { font-size: 12.5px; color: var(--text-3); }
.rd-dw__nav { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.rd-dw__nb { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); background: var(--surface-2); transition: background-color .25s, opacity .25s; }
.rd-dw__nb svg { width: 16px; height: 16px; }
.rd-dw__nb:hover:not(:disabled) { background: var(--gray-200); }
.rd-dw__nb:disabled { opacity: .35; cursor: var(--cur); }
.rd-dw__in { display: grid; gap: 16px; }
.rd-dw__k { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rd-jst { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--r-pill); font-size: 10.5px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.rd-jst--fail { color: var(--red-600); background: rgba(240, 48, 48, .1); }
.rd-jst--warning { color: var(--yellow-700); background: rgba(245, 158, 11, .14); }
.rd-jst--pass { color: var(--green-700); background: rgba(0, 216, 148, .14); }
.rd-jst--na { color: var(--text-3); background: var(--surface-2); }
.rd-dw__t { font-size: clamp(1.45rem, 1.15rem + .9vw, 1.85rem); line-height: 1.2; font-weight: var(--fw-head); text-wrap: balance; }
.rd-dw__why { font-size: 15.5px; line-height: 1.6; color: var(--text-2); }
.rd-dw__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.rd-dw__facts > div { display: grid; align-content: start; gap: 3px; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); }
.rd-dw__facts b { font-size: 15px; font-weight: 700; line-height: 1.25; }
.rd-dw__facts b.rd-up { font-size: 22px; letter-spacing: -.01em; color: var(--green-700); }
.rd-dw__facts span { font-size: 12px; line-height: 1.4; color: var(--text-3); }
.rd-dw__h { margin-top: 4px; font-size: 12px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-dw__h em { display: inline-grid; place-items: center; min-width: 22px; height: 20px; margin-left: 6px; padding: 0 6px; border-radius: var(--r-pill); font-style: normal; font-size: 11px; color: var(--text-2); background: var(--surface-2); }
.rd-dw__p2 { margin-top: -6px; font-size: 14.5px; line-height: 1.6; color: var(--text-2); }
.rd-dw__guide { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 13.5px; line-height: 1.4; color: var(--text-2); background: linear-gradient(135deg, rgba(0, 93, 232, .06), rgba(143, 122, 230, .09)); box-shadow: inset 0 0 0 1px rgba(0, 93, 232, .08); transition: box-shadow .3s var(--ease); }
.rd-dw__guide > svg:first-child { flex: none; width: 20px; height: 20px; color: var(--primary); }
.rd-dw__guide span { flex: 1; min-width: 0; }
.rd-dw__guide b { display: block; font-weight: 700; color: var(--text); }
.rd-dw__guide:hover { box-shadow: inset 0 0 0 1px rgba(0, 93, 232, .3); }
.rd-dw__guide:hover .rd-ext { opacity: 1; transform: translate(2px, -2px); }
/* the checks behind a job, each opening in place */
.rd-cks { display: grid; gap: 8px; }
.rd-ck { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .3s var(--ease); }
.rd-ck.is-open { box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); }
.rd-ck.is-flash { animation: rd-flash 1.8s var(--ease); }
@keyframes rd-flash { 0%, 35% { box-shadow: inset 0 0 0 2px var(--blue-400), 0 0 0 6px rgba(42, 139, 255, .14); } 100% { box-shadow: inset 0 0 0 1px var(--line-2), var(--sh-1); } }
.rd-ck__h { width: 100%; display: grid; grid-template-columns: 26px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; text-align: left; }
.rd-st { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; }
.rd-st svg { width: 14px; height: 14px; }
.rd-st--pass { background: var(--green-600); } .rd-st--warning { background: var(--yellow-500); } .rd-st--fail { background: var(--red-500); } .rd-st--na { color: var(--gray-500); background: var(--gray-200); }
.rd-ck__n { min-width: 0; font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.rd-ck__n small { display: block; margin-top: 1px; font-size: 11.5px; font-weight: 600; color: var(--c); }
.rd-ck__p { font-size: 12.5px; font-weight: 700; white-space: nowrap; color: var(--text-2); }
.rd-ck__chev svg { width: 18px; height: 18px; color: var(--text-3); transition: transform .45s var(--ease); }
.rd-ck.is-open .rd-ck__chev svg { transform: rotate(180deg); }
.rd-ck__body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.rd-ck__in { min-height: 0; overflow: hidden; visibility: hidden; transition: visibility 0s .45s; }
.rd-ck.is-open .rd-ck__body { grid-template-rows: 1fr; }
.rd-ck.is-open .rd-ck__in { visibility: visible; transition-delay: 0s; }
.rd-cb { display: grid; gap: 12px; padding: 0 16px 16px 52px; }
.rd-cb__desc { font-size: 14px; line-height: 1.6; color: var(--text-2); }
.rd-cb__k > span { display: block; margin-bottom: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-cb__k p { font-size: 14px; line-height: 1.6; color: var(--text); overflow-wrap: anywhere; }
.rd-cb .link { font-weight: 600; }
.rd-cb__links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.rd-cb__gain { font-size: 12.5px; font-weight: 700; color: var(--green-700); }
.rd-cb__note { font-size: 12.5px; color: var(--text-3); }
.rd-cb__a { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; padding: 5px 12px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--text); background: var(--surface-2); transition: color .25s, background-color .25s; }
.rd-cb__a > svg:first-child { flex: none; width: 15px; height: 15px; color: var(--text-3); }
.rd-cb__a:hover { color: var(--primary); background: rgba(0, 93, 232, .08); }
.rd-cb__forter { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(135deg, rgba(0, 93, 232, .07), rgba(143, 122, 230, .1)); box-shadow: inset 0 0 0 1px rgba(0, 93, 232, .1); }
.rd-cb__logo { flex: none; margin-top: 3px; color: var(--primary); }
.rd-cb__logo svg { width: 62px; height: auto; }
.rd-cb__forter p { font-size: 14px; line-height: 1.55; color: var(--text-2); }
.rd-cb__forter b { color: var(--text); }
/* the prompt, typed out in a terminal */
.rd-term { border-radius: 12px; overflow: hidden; background: #060B26; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08), 0 30px 60px -40px rgba(0, 21, 64, .8); }
.rd-term__bar { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 8px 0 16px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.rd-term__bar > i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; opacity: .85; }
.rd-term__bar > i:nth-child(2) { background: #FEBC2E; }
.rd-term__bar > i:nth-child(3) { background: #28C840; }
.rd-term__bar > span { margin-left: 8px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: rgba(255, 255, 255, .55); }
.rd-term__bar .btn { margin-left: auto; flex: none; }
.rd-term__bar .btn svg { width: 15px; height: 15px; }
.rd-term__pre { margin: 0; max-height: 340px; overflow: auto; padding: 16px 18px 26px; font: 12.5px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: rgba(255, 255, 255, .86); white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; }
.rd-term__pre:focus-visible { box-shadow: inset 0 0 0 2px var(--blue-300); border-radius: 0; }
.rd-term--sm .rd-term__pre { max-height: none; padding-bottom: 16px; font-size: 12px; }
.rd-term__p { color: #62BCFF; user-select: none; -webkit-user-select: none; }

/* ── Go further ────────────────────────────────────────────────────────── */
.rd-res__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rd-rc { display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--r-md); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--sh-1); transition: opacity .9s var(--ease) var(--d, 0s), transform 1.1s var(--ease) var(--d, 0s), translate .5s var(--ease), box-shadow .5s var(--ease); }
@media (hover: hover) { .rd-rc:hover { translate: 0 -4px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 24%, transparent), var(--sh-3); } }
.rd-rc__ico { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 50%, #fff)); box-shadow: 0 12px 24px -12px var(--c); transition: transform .5s var(--ease); }
.rd-rc:hover .rd-rc__ico { transform: rotate(-6deg) scale(1.06); }
.rd-rc__ico svg { width: 20px; height: 20px; }
.rd-rc__k { font-size: 10.5px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: var(--text-3); }
.rd-rc h3 { font-size: 17px; line-height: 1.3; font-weight: var(--fw-head); }
.rd-rc p { font-size: 13.5px; line-height: 1.5; color: var(--text-2); }
.rd-rc__go { margin-top: auto; padding-top: 6px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 700; color: var(--c); }
.rd-rc__go .rd-ext { width: 11px; height: 11px; }
.rd-rc:hover .rd-ext { opacity: 1; transform: translate(2px, -2px); }
.rd-cta {
  position: relative; isolation: isolate; overflow: hidden; display: grid; justify-items: start; gap: 28px;
  margin-top: clamp(40px, 5vw, 72px); padding: clamp(34px, 5vw, 68px); border-radius: var(--r-md);
  background: var(--grad-a); color: #fff; box-shadow: 0 60px 120px -60px rgba(0, 39, 104, .65);
}
.rd-cta canvas { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; }
.rd-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(0, 36, 130, .5), rgba(0, 36, 130, .08) 72%); }
.rd-cta__t h2 { text-wrap: balance; }
.rd-cta__t p { max-width: 36em; margin-top: 16px; font-size: var(--fs-lg); line-height: 1.55; color: rgba(255, 255, 255, .9); }
.rd-cta__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.rd-attr { max-width: 62em; margin-top: 28px; font-size: 13px; line-height: 1.6; color: var(--text-3); }
.rd-attr a { font-weight: 600; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }

/* ── Share the scorecard (js/readiness-share.js): a native dialog ─────────── */
html.rd-sh-lock { overflow: hidden; }
.rd-sh { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 18px; border: 0; background: transparent; color: var(--text); overflow: auto; overscroll-behavior: contain; }
/* auto margins centre the card, and still let a card taller than the screen scroll from its top */
.rd-sh[open] { display: flex; flex-direction: column; }
.rd-sh::backdrop { background: rgba(4, 8, 24, 0); transition: background-color .35s var(--ease), -webkit-backdrop-filter .35s var(--ease), backdrop-filter .35s var(--ease); }
.rd-sh.is-open::backdrop { background: rgba(4, 8, 24, .56); -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%); }
.rd-sh__card { position: relative; flex: none; display: grid; gap: 16px; width: min(820px, 100%); margin: auto; padding: 24px 26px 22px; border-radius: 28px; background: #fff; box-shadow: 0 0 0 1px rgba(9, 13, 31, .04), 0 70px 140px -50px rgba(0, 0, 0, .7); opacity: 0; transform: translateY(22px) scale(.97); transition: transform .65s var(--ease), opacity .35s var(--ease); }
.rd-sh.is-open .rd-sh__card { opacity: 1; transform: none; }
.rd-sh.is-closing .rd-sh__card { transform: translateY(12px) scale(.985); transition-duration: .3s, .25s; }
.rd-sh__hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.rd-sh__hd .eyebrow { font-size: 12px; letter-spacing: 1.2px; }
.rd-sh__t { margin-top: 6px; overflow-wrap: anywhere; font-size: clamp(1.3rem, 1.05rem + .8vw, 1.7rem); line-height: 1.15; font-weight: var(--fw-head); letter-spacing: -.01em; }
.rd-sh__x { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text-2); background: var(--surface-2); transition: background-color .25s, color .25s, transform .45s var(--ease); }
.rd-sh__x svg { width: 17px; height: 17px; }
@media (hover: hover) { .rd-sh__x:hover { color: var(--text); background: var(--gray-200); transform: rotate(90deg); } }
.rd-sh__d { margin-top: -6px; font-size: 14px; line-height: 1.55; color: var(--text-2); }
/* the picture, on the stage's own ink while it draws */
.rd-sh__fig { position: relative; display: grid; place-items: center; width: 100%; margin: 0; overflow: hidden; border-radius: 16px; aspect-ratio: 16 / 9; background: radial-gradient(90% 80% at 30% 50%, #133584 0%, #0A1C57 44%, #050C2A 100%); box-shadow: 0 30px 60px -36px rgba(0, 21, 64, .7), inset 0 0 0 1px rgba(9, 13, 31, .06); }
.rd-sh__fig[data-shape="tall"] { justify-self: center; width: auto; height: min(62vh, 600px); aspect-ratio: 4 / 5; }
.rd-sh__fig img { display: block; width: 100%; height: 100%; object-fit: contain; animation: rd-in .5s var(--ease) both; }
.rd-sh__fig img[hidden], .rd-sh__wait[hidden] { display: none; }
.rd-sh__wait { padding: 24px; font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .75); text-align: center; }
.rd-sh__fig[aria-busy="true"] .rd-sh__wait::before { content: ''; display: block; width: 22px; height: 22px; margin: 0 auto 12px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .2); border-top-color: #fff; animation: rd-spin .9s linear infinite; }
.rd-sh__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.rd-sh__fmt { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.rd-sh__fmt button { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 14px 0 11px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--text-2); transition: background-color .25s var(--ease), color .25s, box-shadow .25s; }
.rd-sh__fmt button[aria-pressed="true"] { color: var(--text); background: #fff; box-shadow: 0 6px 16px -10px rgba(0, 39, 104, .5), inset 0 0 0 1px var(--line-2); }
.rd-sh__fmt i { flex: none; display: block; border: 1.8px solid currentColor; border-radius: 3px; opacity: .75; }
.rd-sh__fmt i.is-wide { width: 22px; height: 13px; }
.rd-sh__fmt i.is-tall { width: 13px; height: 16px; }
.rd-sh__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.rd-sh__acts .btn[hidden] { display: none; }
.rd-sh__acts .btn svg { width: 16px; height: 16px; }
.rd-sh__acts .btn.is-done svg { color: var(--green-600); }
.rd-sh__acts .btn:not(.btn--sec).is-done svg { color: #fff; }
.rd-sh__fine { min-height: 1.5em; margin-top: -4px; font-size: 12.5px; line-height: 1.5; color: var(--text-3); overflow-wrap: anywhere; }
.rd-sh__fine.is-st { font-weight: 600; color: var(--green-700); }
@media (max-width: 640px) {
  .rd-sh { padding: 10px; }
  .rd-sh__card { gap: 14px; padding: 20px 16px 16px; border-radius: 24px; }
  .rd-sh__fig[data-shape="tall"] { width: 100%; height: auto; max-height: none; }
  .rd-sh__fmt { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rd-sh__fmt button { justify-content: center; }
  .rd-sh__acts { display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .rd-sh__acts .btn { justify-content: center; padding: 0 12px; }
}

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .rd-path, .rd-res__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-lc__link { display: none; }
  .rd-fx { grid-template-columns: minmax(0, 1fr) 290px; }
  .rd-fcs { grid-template-columns: 1fr; }
  .rd-plan__ring { width: 160px; height: 160px; }
}
@media (max-width: 980px) {
  .hero--rdy .hero__in { grid-template-columns: 1fr; }
  .rd-stage { height: clamp(420px, 96vw, 560px); }
  .rd-how { grid-template-columns: 1fr; }
  .rd-fx { grid-template-columns: 1fr; }
  .rd-plan { position: relative; top: 0; grid-template-columns: auto minmax(0, 1fr); justify-items: start; align-items: center; gap: 10px 22px; text-align: left; }
  .rd-plan > * { grid-column: 2; }
  .rd-plan__ring { grid-column: 1; grid-row: 1 / span 6; width: 150px; height: 150px; }
  .rd-plan__key { justify-content: flex-start; margin-top: 0; }
  .rd-plan__nums b { font-size: 36px; }
}
@media (max-width: 640px) {
  .rd-field { height: 62px; padding: 5px 5px 5px 14px; gap: 10px; }
  .rd-field input { font-size: 16px; }
  .rd-field .btn { height: 52px; padding: 0 18px; }
  .rd-go__l { display: none; }
  .rd-go__s { display: inline; }
  .rd-grade { margin-left: 6px; }
  .rd-split__s span em { display: none; }
  .rd-top__r { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; padding: 10px 12px 10px 15px; }
  .rd-top__chev { display: none; }
  .rd-top__t b { display: -webkit-box; font-size: 14.5px; line-height: 1.35; white-space: normal; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .rd-path, .rd-res__grid { grid-template-columns: 1fr; }
  .rd-lc__says { min-height: 0; }
  .rd-plan { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .rd-plan > *, .rd-plan__ring { grid-column: 1; grid-row: auto; }
  .rd-plan__key { justify-content: center; }
  .rd-fr__h { grid-template-columns: minmax(0, 1fr) 40px 14px; gap: 10px; }
  .rd-fr__rank, .rd-fr__bar { display: none; }
  .rd-legend .rd-legend__h { display: none; }
  .rd-rings { inset: 0 0 58px; }
  .rd-legend { bottom: 16px; gap: 4px 14px; font-size: 12px; }
  .rr__center { gap: 5px; }
  .rr__center .rd-ico--lg { width: 34px; height: 34px; border-radius: 11px; font-size: 15px; }
  .rr__center b { font-size: 11.5px; }
  .rr__center small { font-size: 9.5px; }
  .rr__grade { width: 21px; height: 21px; font-size: 11px; }
  .rr__lab { height: 20px; padding: 0 8px 0 7px; font-size: 9.5px; }
  .rd-err { flex-wrap: wrap; }
  .rd-cta__btns { width: 100%; }
  .rd-cta__btns .btn { flex: 1 1 100%; height: 54px; padding: 0 18px; font-size: 14.5px; }
  /* the side panel becomes a bottom sheet */
  .rd-dw__p { top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 88vh; max-height: 88dvh; border-radius: var(--r-md) var(--r-md) 0 0; transform: translate3d(0, 100%, 0); }
  .rd-dw__hd { position: relative; padding: 18px 12px 10px 20px; }
  .rd-dw__hd::before { content: ''; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--gray-300); }
  .rd-dw__body { padding: 20px 18px 28px; }
  .rd-dw__ft { padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); }
  .rd-dw__hint { display: none; }
  .rd-cb { padding: 0 14px 14px; }
}

/* ── Motion off ────────────────────────────────────────────────────────── */
html.motion-off .rd-lc__link i, html.motion-off .rd-steps li.is-on::after, html.motion-off .rd-probe i { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .rd-lc__link i { display: none; }
  .rd-split__s > i::after, .rd-lc__bar i { transform: none; }
  .rd-lc__dots .rd-dot { opacity: 1; transform: none; }
}
